PageSourceSearch

https://www.loco.brussels/wp-content/themes/loco/dist/assets/main-ef0f8992.js?ver=7.1.3

js loco.brussels collected 2026-10-08 01:31:27 UTC 707,266 bytes, 126 lines download raw bytes

vendor: 4,283 bytes, lines 1-10
1var Yo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Va(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var pu={exports:{}};/*!
2 * jQuery JavaScript Library v3.7.1
3 * https://jquery.com/
4 *
5 * Copyright OpenJS Foundation and other contributors
6 * Released under the MIT license
7 * https://jquery.org/license
8 *
9 * Date: 2023-08-28T13:37Z
10 */var Sh;function Hl(){return Sh||(Sh=1,function(p){(function(t,n){p.exports=t.document?n(t,!0):function(s){if(!s.document)throw new Error("jQuery requires a window with a document");return n(s)}})(typeof window!="undefined"?window:Yo,function(t,n){var s=[],e=Object.getPrototypeOf,i=s.slice,o=s.flat?function(d){return s.flat.call(d)}:function(d){return s.concat.apply([],d)},a=s.push,l=s.indexOf,c={},h=c.toString,g=c.hasOwnProperty,m=g.toString,v=m.call(Object),x={},C=function(_){return typeof _=="function"&&typeof _.nodeType!="number"&&typeof _.item!="function"},k=function(_){return _!=null&&_===_.window},S=t.document,A={type:!0,src:!0,nonce:!0,noModule:!0};function z(d,_,w){w=w||S;var T,P,M=w.createElement("script");if(M.text=d,_)for(T in A)P=_[T]||_.getAttribute&&_.getAttribute(T),P&&M.setAttribute(T,P);w.head.appendChild(M).parentNode.removeChild(M)}function R(d){return d==null?d+"":typeof d=="object"||typeof d=="function"?c[h.call(d)]||"object":typeof d}var W="3.7.1",Y=/HTML$/i,b=function(d,_){return new b.fn.init(d,_)};b.fn=b.prototype={jquery:W,constructor:b,length:0,toArray:function(){return i.call(this)},get:function(d){return d==null?i.call(this):d<0?this[d+this.length]:this[d]},pushStack:function(d){var _=b.merge(this.constructor(),d);return _.prevObject=this,_},each:function(d){return b.each(this,d)},map:function(d){return this.pushStack(b.map(this,function(_,w){return d.call(_,w,_)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(b.grep(this,function(d,_){return(_+1)%2}))},odd:function(){return this.pushStack(b.grep(this,function(d,_){return _%2}))},eq:function(d){var _=this.length,w=+d+(d<0?_:0);return this.pushStack(w>=0&&w<_?[this[w]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:s.sort,splice:s.splice},b.extend=b.fn.extend=function(){var d,_,w,T,P,M,O=arguments[0]||{},N=1,F=arguments.length,Z=!1;for(typeof O=="boolean"&&(Z=O,O=arguments[N]||{},N++),typeof O!="object"&&!C(O)&&(O={}),N===F&&(O=this,N--);N<F;N++)if((d=arguments[N])!=null)for(_ in d)T=d[_],!(_==="__proto__"||O===T)&&(Z&&T&&(b.isPlainObject(T)||(P=Array.isArray(T)))?(w=O[_],P&&!Array.isArray(w)?M=[]:!P&&!b.isPlainObject(w)?M={}:M=w,P=!1,O[_]=b.extend(Z,M,T)):T!==void 0&&(O[_]=T));return O},b.extend({expando:"jQuery"+(W+Math.random()).replace(/\D/g,""),isReady:!0,error:function(d){throw new Error(d)},noop:function(){},isPlainObject:function(d){var _,w;return!d||h.call(d)!=="[object Object]"?!1:(_=e(d),_?(w=g.call(_,"constructor")&&_.constructor,typeof w=="function"&&m.call(w)===v):!0)},isEmptyObject:function(d){var _;for(_ in d)return!1;return!0},globalEval:function(d,_,w){z(d,{nonce:_&&_.nonce},w)},each:function(d,_){var w,T=0;if(rt(d))for(w=d.length;T<w&&_.call(d[T],T,d[T])!==!1;T++);else for(T in d)if(_.call(d[T],T,d[T])===!1)break;return d},text:function(d){var _,w="",T=0,P=d.nodeType;if(!P)for(;_=d[T++];)w+=b.text(_);return P===1||P===11?d.textContent:P===9?d.documentElement.textContent:P===3||P===4?d.nodeValue:w},makeArray:function(d,_){var w=_||[];return d!=null&&(rt(Object(d))?b.merge(w,typeof d=="string"?[d]:d):a.call(w,d)),w},inArray:function(d,_,w){return _==null?-1:l.call(_,d,w)},isXMLDoc:function(d){var _=d&&d.namespaceURI,w=d&&(d.ownerDocument||d).documentElement;return!Y.test(_||w&&w.nodeName||"HTML")},merge:function(d,_){for(var w=+_.length,T=0,P=d.length;T<w;T++)d[P++]=_[T];return d.length=P,d},grep:function(d,_,w){for(var T,P=[],M=0,O=d.length,N=!w;M<O;M++)T=!_(d[M],M),T!==N&&P.push(d[M]);return P},map:function(d,_,w){var T,P,M=0,O=[];if(rt(d))for(T=d.length;M<T;M++)P=_(d[M],M,w),P!=null&&O.push(P);else for(M in d)P=_(d[M],M,w),P!=null&&O.push(P);return o(O)},guid:1,support:x}
10),typeof Symbol=="function"&&(b.fn[Symbol.iterator]=s[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(d,_){c["[object "+_+"]"]=_.toLowerCase()});function rt(d){var _=!!d&&"length"in d&&d.length,w=R(d);return C(d)||k(d)?!1:w==="array"||_===0||typeof _=="number"&&_>0&&_-1 in d}function J(d,_){return d.nodeName&&d.nodeName.toLowerCase()===_.toLowerCase()}var at=s.pop,St=s.sort,ut=s.splice,q="[\\x20\\t\\r\\n\\f]",st=new RegExp("^"+q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+q+"+$","g");b.contains=function(d,_){var w=_&&_.parentNode;return d===w||!!(w&&w.nodeType===1&&(d.contains?d.contains(w):d.compareDocumentPosition&&d.compareDocumentPosition(w)&16))};var mt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function xt(d,_){return _?d==="\0"?"�":d.slice(0,-1)+"\\"+d.charCodeAt(d.length-1).toString(16)+" ":"\\"+d}b.escapeSelector=function(d){return(d+"").replace(mt,xt)};var ht=S,ot=a;(function(){var d,_,w,T,P,M=ot,O,N,F,Z,tt,nt=b.expando,V=0,ct=0,Ft=_o(),ne=_o(),Gt=_o(),yi=_o(),qe=function(I,j){return I===j&&(P=!0),0},Vn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",kn="(?:\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Kt="\\["+q+"*("+kn+")(?:"+q+"*([*^$|!~]?=)"+q+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+kn+"))|)"+q+"*\\]",Yn=":("+kn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Kt+")*)|.*)\\)|)",Vt=new RegExp(q+"+","g"),Fe=new RegExp("^"+q+"*,"+q+"*"),yr=new RegExp("^"+q+"*([>+~]|"+q+")"+q+"*"),Ni=new RegExp(q+"|>"),Mn=new RegExp(Yn),is=new RegExp("^"+kn+"$"),Xn={ID:new RegExp("^#("+kn+")"),CLASS:new RegExp("^\\.("+kn+")"),TAG:new RegExp("^("+kn+"|[*])"),ATTR:new RegExp("^"+Kt),PSEUDO:new RegExp("^"+Yn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+Vn+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},Kn=/^(?:input|select|textarea|button)$/i,Jn=/^h\d$/i,hn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,Qn=new RegExp("\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\([^\\r\\n\\f])","g"),br=function(I,j){var G="0x"+I.slice(1)-65536;return j||(G<0?String.fromCharCode(G+65536):String.fromCharCode(G>>10|55296,G&1023|56320))},An=function(){On()},ns=dn(function(I){return I.disabled===!0&&J(I,"fieldset")},{dir:"parentNode",next:"legend"});function du(){try{return O.activeElement}catch(I){}}try{M.apply(s=i.call(ht.childNodes),ht.childNodes),s[ht.childNodes.length].nodeType}catch(I){M={apply:function(j,G){ot.apply(j,i.call(G))},call:function(j){ot.apply(j,i.call(arguments,1))}}}function Jt(I,j,G,X){var it,ft,Ct,Pt,Tt,Xt,Rt,Ht=j&&j.ownerDocument,Qt=j?j.nodeType:9;if(G=G||[],typeof I!="string"||!I||Qt!==1&&Qt!==9&&Qt!==11)return G;if(!X&&(On(j),j=j||O,F)){if(Qt!==11&&(Tt=hn.exec(I)))if(it=Tt[1]){if(Qt===9)if(Ct=j.getElementById(it)){if(Ct.id===it)return M.call(G,Ct),G}else return G;else if(Ht&&(Ct=Ht.getElementById(it))&&Jt.contains(j,Ct)&&Ct.id===it)return M.call(G,Ct),G}else{if(Tt[2])return M.apply(G,j.getElementsByTagName(I)),G;if((it=Tt[3])&&j.getElementsByClassName)return M.apply(G,j.getElementsByClassName(it)),G}if(!yi[I+" "]&&(!Z||!Z.test(I))){if(Rt=I,Ht=j,Qt===1&&(Ni.test(I)||yr.test(I))){for(Ht=aa.test(I)&&tr(j.parentNode)||j,(Ht!=j||!x.scope)&&((Pt=j.getAttribute("id"))?Pt=b.escapeSelector(Pt):j.setAttribute("id",Pt=nt)),Xt=qr(I),ft=Xt.length;ft--;)Xt[ft]=(Pt?"#"+Pt:":scope")+" "+vo(Xt[ft]);Rt=Xt.join(",")}try{return M.apply(G,Ht.querySelectorAll(Rt)),G}catch(Mt){yi(I,!0)}finally{Pt===nt&&j.removeAttribute("id")}}}return Is(I.replace(st,"$1"),j,G,X)}function _o(){var I=[];function j(G,X){return I.push(G+" ")>_.cacheLength&&delete j[I.shift()],j[G+" "]=X}return j}function Ti(I){return I[nt]=!0,I}function rs(I){var j=O.createElement("fieldset");try{return!!I(j)}catch(G){return!1}finally{j.parentNode&&j.parentNode.removeChild(j),j=null}}function Os(I){return function(j){return J(j,"input")&&j.type===I}}function el(I){return function(j){return(J(j,"input")||J(j,"button"))&&j.type===I}}function Ds(I){return function(j){return"form"in j?j.parentNode&&j.disabled===!1?"label"in j?"label"in j.parentNode?j.parentNode.disabled===I:j.disabled===I:j.isDisabled===I||j.isDisabled!==!I&&ns(j)===I:j.disabled===I:"label"in j?j.disabled===I:!1}}function jr(I){return Ti(function(j){return j=+j,Ti(function(G,X){for(var it,ft=I([],G.length,j),Ct=ft.length;Ct--;)G[it=ft[Ct]]&&(G[it]=!(X[it]=G[it]))})})}function tr(I){return I&&typeof I.getElementsByTagName!="undefined"&&I}function On(I){var j,G=I?I.ownerDocument||I:ht;return G==O||G.nodeType!==9||!G.documentElement||(O=G,N=O.documentElement,F=!b.isXMLDoc(O),tt
vendor: 19,337 bytes, line 10
10=N.matches||N.webkitMatchesSelector||N.msMatchesSelector,N.msMatchesSelector&&ht!=O&&(j=O.defaultView)&&j.top!==j&&j.addEventListener("unload",An),x.getById=rs(function(X){return N.appendChild(X).id=b.expando,!O.getElementsByName||!O.getElementsByName(b.expando).length}),x.disconnectedMatch=rs(function(X){return tt.call(X,"*")}),x.scope=rs(function(){return O.querySelectorAll(":scope")}),x.cssHas=rs(function(){try{return O.querySelector(":has(*,:jqfake)"),!1}catch(X){return!0}}),x.getById?(_.filter.ID=function(X){var it=X.replace(Qn,br);return function(ft){return ft.getAttribute("id")===it}},_.find.ID=function(X,it){if(typeof it.getElementById!="undefined"&&F){var ft=it.getElementById(X);return ft?[ft]:[]}}):(_.filter.ID=function(X){var it=X.replace(Qn,br);return function(ft){var Ct=typeof ft.getAttributeNode!="undefined"&&ft.getAttributeNode("id");return Ct&&Ct.value===it}},_.find.ID=function(X,it){if(typeof it.getElementById!="undefined"&&F){var ft,Ct,Pt,Tt=it.getElementById(X);if(Tt){if(ft=Tt.getAttributeNode("id"),ft&&ft.value===X)return[Tt];for(Pt=it.getElementsByName(X),Ct=0;Tt=Pt[Ct++];)if(ft=Tt.getAttributeNode("id"),ft&&ft.value===X)return[Tt]}return[]}}),_.find.TAG=function(X,it){return typeof it.getElementsByTagName!="undefined"?it.getElementsByTagName(X):it.querySelectorAll(X)},_.find.CLASS=function(X,it){if(typeof it.getElementsByClassName!="undefined"&&F)return it.getElementsByClassName(X)},Z=[],rs(function(X){var it;N.appendChild(X).innerHTML="<a id='"+nt+"' href='' disabled='disabled'></a><select id='"+nt+"-\r\\' disabled='disabled'><option selected=''></option></select>",X.querySelectorAll("[selected]").length||Z.push("\\["+q+"*(?:value|"+Vn+")"),X.querySelectorAll("[id~="+nt+"-]").length||Z.push("~="),X.querySelectorAll("a#"+nt+"+*").length||Z.push(".#.+[+~]"),X.querySelectorAll(":checked").length||Z.push(":checked"),it=O.createElement("input"),it.setAttribute("type","hidden"),X.appendChild(it).setAttribute("name","D"),N.appendChild(X).disabled=!0,X.querySelectorAll(":disabled").length!==2&&Z.push(":enabled",":disabled"),it=O.createElement("input"),it.setAttribute("name",""),X.appendChild(it),X.querySelectorAll("[name='']").length||Z.push("\\["+q+"*name"+q+"*="+q+`*(?:''|"")`)}),x.cssHas||Z.push(":has"),Z=Z.length&&new RegExp(Z.join("|")),qe=function(X,it){if(X===it)return P=!0,0;var ft=!X.compareDocumentPosition-!it.compareDocumentPosition;return ft||(ft=(X.ownerDocument||X)==(it.ownerDocument||it)?X.compareDocumentPosition(it):1,ft&1||!x.sortDetached&&it.compareDocumentPosition(X)===ft?X===O||X.ownerDocument==ht&&Jt.contains(ht,X)?-1:it===O||it.ownerDocument==ht&&Jt.contains(ht,it)?1:T?l.call(T,X)-l.call(T,it):0:ft&4?-1:1)}),O}Jt.matches=function(I,j){return Jt(I,null,null,j)},Jt.matchesSelector=function(I,j){if(On(I),F&&!yi[j+" "]&&(!Z||!Z.test(j)))try{var G=tt.call(I,j);if(G||x.disconnectedMatch||I.document&&I.document.nodeType!==11)return G}catch(X){yi(j,!0)}return Jt(j,O,null,[I]).length>0},Jt.contains=function(I,j){return(I.ownerDocument||I)!=O&&On(I),b.contains(I,j)},Jt.attr=function(I,j){(I.ownerDocument||I)!=O&&On(I);var G=_.attrHandle[j.toLowerCase()],X=G&&g.call(_.attrHandle,j.toLowerCase())?G(I,j,!F):void 0;return X!==void 0?X:I.getAttribute(j)},Jt.error=function(I){throw new Error("Syntax error, unrecognized expression: "+I)},b.uniqueSort=function(I){var j,G=[],X=0,it=0;if(P=!x.sortStable,T=!x.sortStable&&i.call(I,0),St.call(I,qe),P){for(;j=I[it++];)j===I[it]&&(X=G.push(it));for(;X--;)ut.call(I,G[X],1)}return T=null,I},b.fn.uniqueSort=function(){return this.pushStack(b.uniqueSort(i.apply(this)))},_=b.expr={cacheLength:50,createPseudo:Ti,match:Xn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(I){return I[1]=I[1].replace(Qn,br),I[3]=(I[3]||I[4]||I[5]||"").replace(Qn,br),I[2]==="~="&&(I[3]=" "+I[3]+" "),I.slice(0,4)},CHILD:function(I){return I[1]=I[1].toLowerCase(),I[1].slice(0,3)==="nth"?(I[3]||Jt.error(I[0]),I[4]=+(I[4]?I[5]+(I[6]||1):2*(I[3]==="even"||I[3]==="odd")),I[5]=+(I[7]+I[8]||I[3]==="odd")):I[3]&&Jt.error(I[0]),I},PSEUDO:function(I){var j,G=!I[6]&&I[2];return Xn.CHILD.test(I[0])?null:(I[3]?I[2]=I[4]||I[5]||"":G&&Mn.test(G)&&(j=qr(G,!0))&&(j=G.indexOf(")",G.length-j)-G.length)&&(I[0]=I[0].slice(0,j),I[2]=G.slice(0,j)),I.slice(0,3))}},filter:{TAG:function(I){var j=I.replace(Qn,br).toLowerCase();return I==="*"?function(){return!0}:function(G){return J(G,j)}},CLASS:function(I){var j=Ft[I+" "];return j||(j=new RegExp("(^|"+q+")"+I+"("+q+"|$)"))&&Ft(I,function(G){return j.test(typeof G.className=="string"&&G.className||typeof G.getAttribute!="undefined"&&G.getAttribute("class")||"")})},ATTR:function(I,j,G){return function(X){var it=Jt.attr(X,I);return it==null?j==="!=":j?(it+="",j==="="?it===G:j==="!="?it!==G:j==="^="?G&&it.indexOf(G)===0:j==="*="?G&&it.indexOf(G)>-1:j==="$="?G&&it.slice(-G.length)===G:j==="~="?(" "+it.replace(Vt," ")+" ").indexOf(G)>-1:j==="|="?it===G||it.slice(0,G.length+1)===G+"-":!1):!0}},CHILD:function(I,j,G,X,it){var ft=I.slice(0,3)!=="nth",Ct=I.slice(-4)!=="last",Pt=j==="of-type";return X===1&&it===0?function(Tt){return!!Tt.parentNode}:function(Tt,Xt,Rt){var Ht,Qt,Mt,pe,Hi,ei=ft!==Ct?"nextSibling":"previousSibling",fn=Tt.parentNode,zn=Pt&&Tt.nodeName.toLowerCase(),as=!Rt&&!Pt,ii=!1;if(fn){if(ft){for(;ei;){for(Mt=Tt;Mt=Mt[ei];)if(Pt?J(Mt,zn):Mt.nodeType===1)return!1;Hi=ei=I==="only"&&!Hi&&"nextSibling"}return!0}if(Hi=[Ct?fn.firstChild:fn.lastChild],Ct&&as){for(Qt=fn[nt]||(fn[nt]={}),Ht=Qt[I]||[],pe=Ht[0]===V&&Ht[1],ii=pe&&Ht[2],Mt=pe&&fn.childNodes[pe];Mt=++pe&&Mt&&Mt[ei]||(ii=pe=0)||Hi.pop();)if(Mt.nodeType===1&&++ii&&Mt===Tt){Qt[I]=[V,pe,ii];break}}else if(as&&(Qt=Tt[nt]||(Tt[nt]={}),Ht=Qt[I]||[],pe=Ht[0]===V&&Ht[1],ii=pe),ii===!1)for(;(Mt=++pe&&Mt&&Mt[ei]||(ii=pe=0)||Hi.pop())&&!((Pt?J(Mt,zn):Mt.nodeType===1)&&++ii&&(as&&(Qt=Mt[nt]||(Mt[nt]={}),Qt[I]=[V,ii]),Mt===Tt)););return ii-=it,ii===X||ii%X===0&&ii/X>=0}}},PSEUDO:function(I,j){var G,X=_.pseudos[I]||_.setFilters[I.toLowerCase()]||Jt.error("unsupported pseudo: "+I);return X[nt]?X(j):X.length>1?(G=[I,I,"",j],_.setFilters.hasOwnProperty(I.toLowerCase())?Ti(function(it,ft){for(var Ct,Pt=X(it,j),Tt=Pt.length;Tt--;)Ct=l.call(it,Pt[Tt]),it[Ct]=!(ft[Ct]=Pt[Tt])}):function(it){return X(it,0,G)}):X}},pseudos:{not:Ti(function(I){var j=[],G=[],X=zs(I.replace(st,"$1"));return X[nt]?Ti(function(it,ft,Ct,Pt){for(var Tt,Xt=X(it,null,Pt,[]),Rt=it.length;Rt--;)(Tt=Xt[Rt])&&(it[Rt]=!(ft[Rt]=Tt))}):function(it,ft,Ct){return j[0]=it,X(j,null,Ct,G),j[0]=null,!G.pop()}}),has:Ti(function(I){return function(j){return Jt(I,j).length>0}}),contains:Ti(function(I){return I=I.replace(Qn,br),function(j){return(j.textContent||b.text(j)).indexOf(I)>-1}}),lang:Ti(function(I){return is.test(I||"")||Jt.error("unsupported lang: "+I),I=I.replace(Qn,br).toLowerCase(),function(j){var G;do if(G=F?j.lang:j.getAttribute("xml:lang")||j.getAttribute("lang"))return G=G.toLowerCase(),G===I||G.indexOf(I+"-")===0;while((j=j.parentNode)&&j.nodeType===1);return!1}}),target:function(I){var j=t.location&&t.location.hash;return j&&j.slice(1)===I.id},root:function(I){return I===N},focus:function(I){return I===du()&&O.hasFocus()&&!!(I.type||I.href||~I.tabIndex)},enabled:Ds(!1),disabled:Ds(!0),checked:function(I){return J(I,"input")&&!!I.checked||J(I,"option")&&!!I.selected},selected:function(I){return I.parentNode&&I.parentNode.selectedIndex,I.selected===!0},empty:function(I){for(I=I.firstChild;I;I=I.nextSibling)if(I.nodeType<6)return!1;return!0},parent:function(I){return!_.pseudos.empty(I)},header:function(I){return Jn.test(I.nodeName)},input:function(I){return Kn.test(I.nodeName)},button:function(I){return J(I,"input")&&I.type==="button"||J(I,"button")},text:function(I){var j;return J(I,"input")&&I.type==="text"&&((j=I.getAttribute("type"))==null||j.toLowerCase()==="text")},first:jr(function(){return[0]}),last:jr(function(I,j){return[j-1]}),eq:jr(function(I,j,G){return[G<0?G+j:G]}),even:jr(function(I,j){for(var G=0;G<j;G+=2)I.push(G);return I}),odd:jr(function(I,j){for(var G=1;G<j;G+=2)I.push(G);return I}),lt:jr(function(I,j,G){var X;for(G<0?X=G+j:G>j?X=j:X=G;--X>=0;)I.push(X);return I}),gt:jr(function(I,j,G){for(var X=G<0?G+j:G;++X<j;)I.push(X);return I})}},_.pseudos.nth=_.pseudos.eq;for(d in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[d]=Os(d);for(d in{submit:!0,reset:!0})_.pseudos[d]=el(d);function il(){}il.prototype=_.filters=_.pseudos,_.setFilters=new il;function qr(I,j){var G,X,it,ft,Ct,Pt,Tt,Xt=ne[I+" "];if(Xt)return j?0:Xt.slice(0);for(Ct=I,Pt=[],Tt=_.preFilter;Ct;){(!G||(X=Fe.exec(Ct)))&&(X&&(Ct=Ct.slice(X[0].length)||Ct),Pt.push(it=[])),G=!1,(X=yr.exec(Ct))&&(G=X.shift(),it.push({value:G,type:X[0].replace(st," ")}),Ct=Ct.slice(G.length));for(ft in _.filter)(X=Xn[ft].exec(Ct))&&(!Tt[ft]||(X=Tt[ft](X)))&&(G=X.shift(),it.push({value:G,type:ft,matches:X}),Ct=Ct.slice(G.length));if(!G)break}return j?Ct.length:Ct?Jt.error(I):ne(I,Pt).slice(0)}function vo(I){for(var j=0,G=I.length,X="";j<G;j++)X+=I[j].value;return X}function dn(I,j,G){var X=j.dir,it=j.next,ft=it||X,Ct=G&&ft==="parentNode",Pt=ct++;return j.first?function(Tt,Xt,Rt){for(;Tt=Tt[X];)if(Tt.nodeType===1||Ct)return I(Tt,Xt,Rt);return!1}:function(Tt,Xt,Rt){var Ht,Qt,Mt=[V,Pt];if(Rt){for(;Tt=Tt[X];)if((Tt.nodeType===1||Ct)&&I(Tt,Xt,Rt))return!0}else for(;Tt=Tt[X];)if(Tt.nodeType===1||Ct)if(Qt=Tt[nt]||(Tt[nt]={}),it&&J(Tt,it))Tt=Tt[X]||Tt;else{if((Ht=Qt[ft])&&Ht[0]===V&&Ht[1]===Pt)return Mt[2]=Ht[2];if(Qt[ft]=Mt,Mt[2]=I(Tt,Xt,Rt))return!0}return!1}}function la(I){return I.length>1?function(j,G,X){for(var it=I.length;it--;)if(!I[it](j,G,X))return!1;return!0}:I[0]}function ss(I,j,G){for(var X=0,it=j.length;X<it;X++)Jt(I,j[X],G);return G}function yo(I,j,G,X,it){for(var ft,Ct=[],Pt=0,Tt=I.length,Xt=j!=null;Pt<Tt;Pt++)(ft=I[Pt])&&(!G||G(ft,X,it))&&(Ct.push(ft),Xt&&j.push(Pt));return Ct}function Dn(I,j,G,X,it,ft){return X&&!X[nt]&&(X=Dn(X)),it&&!it[nt]&&(it=Dn(it,ft)),Ti(function(Ct,Pt,Tt,Xt){var Rt,Ht,Qt,Mt,pe=[],Hi=[],ei=Pt.length,fn=Ct||ss(j||"*",Tt.nodeType?[Tt]:Tt,[]),zn=I&&(Ct||!j)?yo(fn,pe,I,Tt,Xt):fn;if(G?(Mt=it||(Ct?I:ei||X)?[]:Pt,G(zn,Mt,Tt,Xt)):Mt=zn,X)for(Rt=yo(Mt,Hi),X(Rt,[],Tt,Xt),Ht=Rt.length;Ht--;)(Qt=Rt[Ht])&&(Mt[Hi[Ht]]=!(zn[Hi[Ht]]=Qt));if(Ct){if(it||I){if(it){for(Rt=[],Ht=Mt.length;Ht--;)(Qt=Mt[Ht])&&Rt.push(zn[Ht]=Qt);it(null,Mt=[],Rt,Xt)}for(Ht=Mt.length;Ht--;)(Qt=Mt[Ht])&&(Rt=it?l.call(Ct,Qt):pe[Ht])>-1&&(Ct[Rt]=!(Pt[Rt]=Qt))}}else Mt=yo(Mt===Pt?Mt.splice(ei,Mt.length):Mt),it?it(null,Pt,Mt,Xt):M.apply(Pt,Mt)})}function os(I){for(var j,G,X,it=I.length,ft=_.relative[I[0].type],Ct=ft||_.relative[" "],Pt=ft?1:0,Tt=dn(function(Ht){return Ht===j},Ct,!0),Xt=dn(function(Ht){return l.call(j,Ht)>-1},Ct,!0),Rt=[function(Ht,Qt,Mt){var pe=!ft&&(Mt||Qt!=w)||((j=Qt).nodeType?Tt(Ht,Qt,Mt):Xt(Ht,Qt,Mt));return j=null,pe}];Pt<it;Pt++)if(G=_.relative[I[Pt].type])Rt=[dn(la(Rt),G)];else{if(G=_.filter[I[Pt].type].apply(null,I[Pt].matches),G[nt]){for(X=++Pt;X<it&&!_.relative[I[X].type];X++);return Dn(Pt>1&&la(Rt),Pt>1&&vo(I.slice(0,Pt-1).concat({value:I[Pt-2].type===" "?"*":""})).replace(st,"$1"),G,Pt<X&&os(I.slice(Pt,X)),X<it&&os(I=I.slice(X)),X<it&&vo(I))}Rt.push(G)}return la(Rt)}function nl(I,j){var G=j.length>0,X=I.length>0,it=function(ft,Ct,Pt,Tt,Xt){var Rt,Ht,Qt,Mt=0,pe="0",Hi=ft&&[],ei=[],fn=w,zn=ft||X&&_.find.TAG("*",Xt),as=V+=fn==null?1:Math.random()||.1,ii=zn.length;for(Xt&&(w=Ct==O||Ct||Xt);pe!==ii&&(Rt=zn[pe])!=null;pe++){if(X&&Rt){for(Ht=0,!Ct&&Rt.ownerDocument!=O&&(On(Rt),Pt=!F);Qt=I[Ht++];)if(Qt(Rt,Ct||O,Pt)){M.call(Tt,Rt);break}Xt&&(V=as)}G&&((Rt=!Qt&&Rt)&&Mt--,ft&&Hi.push(Rt))}if(Mt+=pe,G&&pe!==Mt){for(Ht=0;Qt=j[Ht++];)Qt(Hi,ei,Ct,Pt);if(ft){if(Mt>0)for(;pe--;)Hi[pe]||ei[pe]||(ei[pe]=at.call(Tt));ei=yo(ei)}M.apply(Tt,ei),Xt&&!ft&&ei.length>0&&Mt+j.length>1&&b.uniqueSort(Tt)}return Xt&&(V=as,w=fn),Hi};return G?Ti(it):it}function zs(I,j){var G,X=[],it=[],ft=Gt[I+" "];if(!ft){for(j||(j=qr(I)),G=j.length;G--;)ft=os(j[G]),ft[nt]?X.push(ft):it.push(ft);ft=Gt(I,nl(it,X)),ft.selector=I}return ft}function Is(I,j,G,X){var it,ft,Ct,Pt,Tt,Xt=typeof I=="function"&&I,Rt=!X&&qr(I=Xt.selector||I);if(G=G||[],Rt.length===1){if(ft=Rt[0]=Rt[0].slice(0),ft.length>2&&(Ct=ft[0]).type==="ID"&&j.nodeType===9&&F&&_.relative[ft[1].type]){if(j=(_.find.ID(Ct.matches[0].replace(Qn,br),j)||[])[0],j)Xt&&(j=j.parentNode);else return G;I=I.slice(ft.shift().value.length)}for(it=Xn.needsContext.test(I)?0:ft.length;it--&&(Ct=ft[it],!_.relative[Pt=Ct.type]);)if((Tt=_.find[Pt])&&(X=Tt(Ct.matches[0].replace(Qn,br),aa.test(ft[0].type)&&tr(j.parentNode)||j))){if(ft.splice(it,1),I=X.length&&vo(ft),!I)return M.apply(G,X),G;break}}return(Xt||zs(I,Rt))(X,j,!F,G,!j||aa.test(I)&&tr(j.parentNode)||j),G}x.sortStable=nt.split("").sort(qe).join("")===nt,On(),x.sortDetached=rs(function(I){return I.compareDocumentPosition(O.createElement("fieldset"))&1}),b.find=Jt,b.expr[":"]=b.expr.pseudos,b.unique=b.uniqueSort,Jt.compile=zs,Jt.select=Is,Jt.setDocument=On,Jt.tokenize=qr,Jt.escape=b.escapeSelector,Jt.getText=b.text,Jt.isXML=b.isXMLDoc,Jt.selectors=b.expr,Jt.support=b.support,Jt.uniqueSort=b.uniqueSort})();var Nt=function(d,_,w){for(var T=[],P=w!==void 0;(d=d[_])&&d.nodeType!==9;)if(d.nodeType===1){if(P&&b(d).is(w))break;T.push(d)}return T},B=function(d,_){for(var w=[];d;d=d.nextSibling)d.nodeType===1&&d!==_&&w.push(d);return w},Lt=b.expr.match.needsContext,Q=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function yt(d,_,w){return C(_)?b.grep(d,function(T,P){return!!_.call(T,P,T)!==w}):_.nodeType?b.grep(d,function(T){return T===_!==w}):typeof _!="string"?b.grep(d,function(T){return l.call(_,T)>-1!==w}):b.filter(_,d,w)}b.filter=function(d,_,w){var T=_[0];return w&&(d=":not("+d+")"),_.length===1&&T.nodeType===1?b.find.matchesSelector(T,d)?[T]:[]:b.find.matches(d,b.grep(_,function(P){return P.nodeType===1}))},b.fn.extend({find:function(d){var _,w,T=this.length,P=this;if(typeof d!="string")return this.pushStack(b(d).filter(function(){for(_=0;_<T;_++)if(b.contains(P[_],this))return!0}));for(w=this.pushStack([]),_=0;_<T;_++)b.find(d,P[_],w);return T>1?b.uniqueSort(w):w},filter:function(d){return this.pushStack(yt(this,d||[],!1))},not:function(d){return this.pushStack(yt(this,d||[],!0))},is:function(d){return!!yt(this,typeof d=="string"&&Lt.test(d)?b(d):d||[],!1).length}});var pt,dt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,_t=b.fn.init=function(d,_,w){var T,P;if(!d)return this;if(w=w||pt,typeof d=="string")if(d[0]==="<"&&d[d.length-1]===">"&&d.length>=3?T=[null,d,null]:T=dt.exec(d),T&&(T[1]||!_))if(T[1]){if(_=_ instanceof b?_[0]:_,b.merge(this,b.parseHTML(T[1],_&&_.nodeType?_.ownerDocument||_:S,!0)),Q.test(T[1])&&b.isPlainObject(_))for(T in _)C(this[T])?this[T](_[T]):this.attr(T,_[T]);return this}else return P=S.getElementById(T[2]),P&&(this[0]=P,this.length=1),this;else return!_||_.jquery?(_||w).find(d):this.constructor(_).find(d);else{if(d.nodeType)return this[0]=d,this.length=1,this;if(C(d))return w.ready!==void 0?w.ready(d):d(b)}return b.makeArray(d,this)};_t.prototype=b.fn,pt=b(S);var At=/^(?:parents|prev(?:Until|All))/,se={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({has:function(d){var _=b(d,this),w=_.length;return this.filter(function(){for(var T=0;T<w;T++)if(b.contains(this,_[T]))return!0})},closest:function(d,_){var w,T=0,P=this.length,M=[],O=typeof d!="string"&&b(d);if(!Lt.test(d)){for(;T<P;T++)for(w=this[T];w&&w!==_;w=w.parentNode)if(w.nodeType<11&&(O?O.index(w)>-1:w.nodeType===1&&b.find.matchesSelector(w,d))){M.push(w);break}}return this.pushStack(M.length>1?b.uniqueSort(M):M)},index:function(d){return d?typeof d=="string"?l.call(b(d),this[0]):l.call(this,d.jquery?d[0]:d):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(d,_){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(d,_))))},addBack:function(d){return this.add(d==null?this.prevObject:this.prevObject.filter(d))}});function me(d,_){for(;(d=d[_])&&d.nodeType!==1;);return d}b.each({parent:function(d){var _=d.parentNode;return _&&_.nodeType!==11?_:null},parents:function(d){return Nt(d,"parentNode")},parentsUntil:function(d,_,w){return Nt(d,"parentNode",w)},next:function(d){return me(d,"nextSibling")},prev:function(d){return me(d,"previousSibling")},nextAll:function(d){return Nt(d,"nextSibling")},prevAll:function(d){return Nt(d,"previousSibling")},nextUntil:function(d,_,w){return Nt(d,"nextSibling",w)},prevUntil:function(d,_,w){return Nt(d,"previousSibling",w)},siblings:function(d){return B((d.parentNode||{}).firstChild,d)},children:function(d){return B(d.firstChild)},contents:function(d){return d.contentDocument!=null&&e(d.contentDocument)?d.contentDocument:(J(d,"template")&&(d=d.content||d),b.merge([],d.childNodes))}},function(d,_){b.fn[d]=function(w,T){var P=b.map(this,_,w);return d.slice(-5)!=="Until"&&(T=w),T&&typeof T=="string"&&(P=b.filter(T,P)),this.length>1&&(se[d]||b.uniqueSort(P),At.test(d)&&P.reverse()),this.pushStack(P)}});var Oe=/[^\x20\t\r\n\f]+/g;function Ne(d){var _={};return b.each(d.match(Oe)||[],function(w,T){_[T]=!0}),_}b.Callbacks=function(d){d=typeof d=="string"?Ne(d):b.extend({},d);var _,w,T,P,M=[],O=[],N=-1,F=function(){for(P=P||d.once,T=_=!0;O.length;N=-1)for(w=O.shift();++N<M.length;)M[N].apply(w[0],w[1])===!1&&d.stopOnFalse&&(N=M.length,w=!1);d.memory||(w=!1),_=!1,P&&(w?M=[]:M="")},Z={add:function(){return M&&(w&&!_&&(N=M.length-1,O.push(w)),function tt(nt){b.each(nt,function(V,ct){C(ct)?(!d.unique||!Z.has(ct))&&M.push(ct):ct&&ct.length&&R(ct)!=="string"&&tt(ct)})}(arguments),w&&!_&&F()),this},remove:function(){return b.each(arguments,function(tt,nt){for(var V;(V=b.inArray(nt,M,V))>-1;)M.splice(V,1),V<=N&&N--}),this},has:function(tt){return tt?b.inArray(tt,M)>-1:M.length>0},empty:function(){return M&&(M=[]),this},disable:function(){return P=O=[],M=w="",this},disabled:function(){return!M},lock:function(){return P=O=[],!w&&!_&&(M=w=""),this},locked:function(){return!!P},fireWith:function(tt,nt){return P||(nt=nt||[],nt=[tt,nt.slice?nt.slice():nt],O.push(nt),_||F()),this},fire:function(){return Z.fireWith(this,arguments),this},fired:function(){return!!T}};return Z};function Ie(d){return d}function Ut(d){throw d}function Se(d,_,w,T){var P;try{d&&C(P=d.promise)?P.call(d).done(_).fail(w):d&&C(P=d.then)?P.call(d,_,w):_.apply(void 0,[d].slice(T))}catch(M){w.apply(void 0,[M])}}b.extend({Deferred:function(d){var _=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],w="pending",T={state:function(){return w},always:function(){return P.done(arguments).fail(arguments),this},catch:function(M){return T.then(null,M)},pipe:function(){var M=arguments;return b.Deferred(function(O){b.each(_,function(N,F){var Z=C(M[F[4]])&&M[F[4]];P[F[1]](function(){var tt=Z&&Z.apply(this,arguments);tt&&C(tt.promise)?tt.promise().progress(O.notify).done(O.resolve).fail(O.reject):O[F[0]+"With"](this,Z?[tt]:arguments)})}),M=null}).promise()},then:function(M,O,N){var F=0;function Z(tt,nt,V,ct){return function(){var Ft=this,ne=arguments,Gt=function(){var qe,Vn;if(!(tt<F)){if(qe=V.apply(Ft,ne),qe===nt.promise())throw new TypeError("Thenable self-resolution");
vendor: 8,151 bytes, line 10
10Vn=qe&&(typeof qe=="object"||typeof qe=="function")&&qe.then,C(Vn)?ct?Vn.call(qe,Z(F,nt,Ie,ct),Z(F,nt,Ut,ct)):(F++,Vn.call(qe,Z(F,nt,Ie,ct),Z(F,nt,Ut,ct),Z(F,nt,Ie,nt.notifyWith))):(V!==Ie&&(Ft=void 0,ne=[qe]),(ct||nt.resolveWith)(Ft,ne))}},yi=ct?Gt:function(){try{Gt()}catch(qe){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(qe,yi.error),tt+1>=F&&(V!==Ut&&(Ft=void 0,ne=[qe]),nt.rejectWith(Ft,ne))}};tt?yi():(b.Deferred.getErrorHook?yi.error=b.Deferred.getErrorHook():b.Deferred.getStackHook&&(yi.error=b.Deferred.getStackHook()),t.setTimeout(yi))}}return b.Deferred(function(tt){_[0][3].add(Z(0,tt,C(N)?N:Ie,tt.notifyWith)),_[1][3].add(Z(0,tt,C(M)?M:Ie)),_[2][3].add(Z(0,tt,C(O)?O:Ut))}).promise()},promise:function(M){return M!=null?b.extend(M,T):T}},P={};return b.each(_,function(M,O){var N=O[2],F=O[5];T[O[1]]=N.add,F&&N.add(function(){w=F},_[3-M][2].disable,_[3-M][3].disable,_[0][2].lock,_[0][3].lock),N.add(O[3].fire),P[O[0]]=function(){return P[O[0]+"With"](this===P?void 0:this,arguments),this},P[O[0]+"With"]=N.fireWith}),T.promise(P),d&&d.call(P,P),P},when:function(d){var _=arguments.length,w=_,T=Array(w),P=i.call(arguments),M=b.Deferred(),O=function(N){return function(F){T[N]=this,P[N]=arguments.length>1?i.call(arguments):F,--_||M.resolveWith(T,P)}};if(_<=1&&(Se(d,M.done(O(w)).resolve,M.reject,!_),M.state()==="pending"||C(P[w]&&P[w].then)))return M.then();for(;w--;)Se(P[w],O(w),M.reject);return M.promise()}});var gi=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(d,_){t.console&&t.console.warn&&d&&gi.test(d.name)&&t.console.warn("jQuery.Deferred exception: "+d.message,d.stack,_)},b.readyException=function(d){t.setTimeout(function(){throw d})};var si=b.Deferred();b.fn.ready=function(d){return si.then(d).catch(function(_){b.readyException(_)}),this},b.extend({isReady:!1,readyWait:1,ready:function(d){(d===!0?--b.readyWait:b.isReady)||(b.isReady=!0,!(d!==!0&&--b.readyWait>0)&&si.resolveWith(S,[b]))}}),b.ready.then=si.then;function et(){S.removeEventListener("DOMContentLoaded",et),t.removeEventListener("load",et),b.ready()}S.readyState==="complete"||S.readyState!=="loading"&&!S.documentElement.doScroll?t.setTimeout(b.ready):(S.addEventListener("DOMContentLoaded",et),t.addEventListener("load",et));var be=function(d,_,w,T,P,M,O){var N=0,F=d.length,Z=w==null;if(R(w)==="object"){P=!0;for(N in w)be(d,_,N,w[N],!0,M,O)}else if(T!==void 0&&(P=!0,C(T)||(O=!0),Z&&(O?(_.call(d,T),_=null):(Z=_,_=function(tt,nt,V){return Z.call(b(tt),V)})),_))for(;N<F;N++)_(d[N],w,O?T:T.call(d[N],N,_(d[N],w)));return P?d:Z?_.call(d):F?_(d[0],w):M},Cn=/^-ms-/,Tn=/-([a-z])/g;function Ee(d,_){return _.toUpperCase()}function Ue(d){return d.replace(Cn,"ms-").replace(Tn,Ee)}var zi=function(d){return d.nodeType===1||d.nodeType===9||!+d.nodeType};function ln(){this.expando=b.expando+ln.uid++}ln.uid=1,ln.prototype={cache:function(d){var _=d[this.expando];return _||(_={},zi(d)&&(d.nodeType?d[this.expando]=_:Object.defineProperty(d,this.expando,{value:_,configurable:!0}))),_},set:function(d,_,w){var T,P=this.cache(d);if(typeof _=="string")P[Ue(_)]=w;else for(T in _)P[Ue(T)]=_[T];return P},get:function(d,_){return _===void 0?this.cache(d):d[this.expando]&&d[this.expando][Ue(_)]},access:function(d,_,w){return _===void 0||_&&typeof _=="string"&&w===void 0?this.get(d,_):(this.set(d,_,w),w!==void 0?w:_)},remove:function(d,_){var w,T=d[this.expando];if(T!==void 0){if(_!==void 0)for(Array.isArray(_)?_=_.map(Ue):(_=Ue(_),_=_ in T?[_]:_.match(Oe)||[]),w=_.length;w--;)delete T[_[w]];(_===void 0||b.isEmptyObject(T))&&(d.nodeType?d[this.expando]=void 0:delete d[this.expando])}},hasData:function(d){var _=d[this.expando];return _!==void 0&&!b.isEmptyObject(_)}};var vt=new ln,xe=new ln,Le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ii=/[A-Z]/g;function $i(d){return d==="true"?!0:d==="false"?!1:d==="null"?null:d===+d+""?+d:Le.test(d)?JSON.parse(d):d}function Vi(d,_,w){var T;if(w===void 0&&d.nodeType===1)if(T="data-"+_.replace(Ii,"-$&").toLowerCase(),w=d.getAttribute(T),typeof w=="string"){try{w=$i(w)}catch(P){}xe.set(d,_,w)}else w=void 0;return w}b.extend({hasData:function(d){return xe.hasData(d)||vt.hasData(d)},data:function(d,_,w){return xe.access(d,_,w)},removeData:function(d,_){xe.remove(d,_)},_data:function(d,_,w){return vt.access(d,_,w)},_removeData:function(d,_){vt.remove(d,_)}}),b.fn.extend({data:function(d,_){var w,T,P,M=this[0],O=M&&M.attributes;if(d===void 0){if(this.length&&(P=xe.get(M),M.nodeType===1&&!vt.get(M,"hasDataAttrs"))){for(w=O.length;w--;)O[w]&&(T=O[w].name,T.indexOf("data-")===0&&(T=Ue(T.slice(5)),Vi(M,T,P[T])));vt.set(M,"hasDataAttrs",!0)}return P}return typeof d=="object"?this.each(function(){xe.set(this,d)}):be(this,function(N){var F;if(M&&N===void 0)return F=xe.get(M,d),F!==void 0||(F=Vi(M,d),F!==void 0)?F:void 0;this.each(function(){xe.set(this,d,N)})},null,_,arguments.length>1,null,!0)},removeData:function(d){return this.each(function(){xe.remove(this,d)})}}),b.extend({queue:function(d,_,w){var T;if(d)return _=(_||"fx")+"queue",T=vt.get(d,_),w&&(!T||Array.isArray(w)?T=vt.access(d,_,b.makeArray(w)):T.push(w)),T||[]},dequeue:function(d,_){_=_||"fx";var w=b.queue(d,_),T=w.length,P=w.shift(),M=b._queueHooks(d,_),O=function(){b.dequeue(d,_)};P==="inprogress"&&(P=w.shift(),T--),P&&(_==="fx"&&w.unshift("inprogress"),delete M.stop,P.call(d,O,M)),!T&&M&&M.empty.fire()},_queueHooks:function(d,_){var w=_+"queueHooks";return vt.get(d,w)||vt.access(d,w,{empty:b.Callbacks("once memory").add(function(){vt.remove(d,[_+"queue",w])})})}}),b.fn.extend({queue:function(d,_){var w=2;return typeof d!="string"&&(_=d,d="fx",w--),arguments.length<w?b.queue(this[0],d):_===void 0?this:this.each(function(){var T=b.queue(this,d,_);b._queueHooks(this,d),d==="fx"&&T[0]!=="inprogress"&&b.dequeue(this,d)})},dequeue:function(d){return this.each(function(){b.dequeue(this,d)})},clearQueue:function(d){return this.queue(d||"fx",[])},promise:function(d,_){var w,T=1,P=b.Deferred(),M=this,O=this.length,N=function(){--T||P.resolveWith(M,[M])};for(typeof d!="string"&&(_=d,d=void 0),d=d||"fx";O--;)w=vt.get(M[O],d+"queueHooks"),w&&w.empty&&(T++,w.empty.add(N));return N(),P.promise(_)}});var fr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,we=new RegExp("^(?:([+-])=|)("+fr+")([a-z%]*)$","i"),Ai=["Top","Right","Bottom","Left"],oi=S.documentElement,Ri=function(d){return b.contains(d.ownerDocument,d)},Tr={composed:!0};oi.getRootNode&&(Ri=function(d){return b.contains(d.ownerDocument,d)||d.getRootNode(Tr)===d.ownerDocument});var mi=function(d,_){return d=_||d,d.style.display==="none"||d.style.display===""&&Ri(d)&&b.css(d,"display")==="none"};function Zn(d,_,w,T){var P,M,O=20,N=T?function(){return T.cur()}:function(){return b.css(d,_,"")},F=N(),Z=w&&w[3]||(b.cssNumber[_]?"":"px"),tt=d.nodeType&&(b.cssNumber[_]||Z!=="px"&&+F)&&we.exec(b.css(d,_));if(tt&&tt[3]!==Z){for(F=F/2,Z=Z||tt[3],tt=+F||1;O--;)b.style(d,_,tt+Z),(1-M)*(1-(M=N()/F||.5))<=0&&(O=0),tt=tt/M;tt=tt*2,b.style(d,_,tt+Z),w=w||[]}return w&&(tt=+tt||+F||0,P=w[1]?tt+(w[1]+1)*w[2]:+w[2],T&&(T.unit=Z,T.start=tt,T.end=P)),P}var Zt={};function Wn(d){var _,w=d.ownerDocument,T=d.nodeName,P=Zt[T];return P||(_=w.body.appendChild(w.createElement(T)),P=b.css(_,"display"),_.parentNode.removeChild(_),P==="none"&&(P="block"),Zt[T]=P,P)}function Je(d,_){for(var w,T,P=[],M=0,O=d.length;M<O;M++)T=d[M],T.style&&(w=T.style.display,_?(w==="none"&&(P[M]=vt.get(T,"display")||null,P[M]||(T.style.display="")),T.style.display===""&&mi(T)&&(P[M]=Wn(T))):w!=="none"&&(P[M]="none",vt.set(T,"display",w)));for(M=0;M<O;M++)P[M]!=null&&(d[M].style.display=P[M]);return d}b.fn.extend({show:function(){return Je(this,!0)},hide:function(){return Je(this)},toggle:function(d){return typeof d=="boolean"?d?this.show():this.hide():this.each(function(){mi(this)?b(this).show():b(this).hide()})}});var ai=/^(?:checkbox|radio)$/i,Fi=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Gn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var d=S.createDocumentFragment(),_=d.appendChild(S.createElement("div")),w=S.createElement("input");w.setAttribute("type","radio"),w.setAttribute("checked","checked"),w.setAttribute("name","t"),_.appendChild(w),x.checkClone
vendor: 19,494 bytes, line 10
10=_.cloneNode(!0).cloneNode(!0).lastChild.checked,_.innerHTML="<textarea>x</textarea>",x.noCloneChecked=!!_.cloneNode(!0).lastChild.defaultValue,_.innerHTML="<option></option>",x.option=!!_.lastChild})();var Qe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Qe.tbody=Qe.tfoot=Qe.colgroup=Qe.caption=Qe.thead,Qe.th=Qe.td,x.option||(Qe.optgroup=Qe.option=[1,"<select multiple='multiple'>","</select>"]);function Pe(d,_){var w;return typeof d.getElementsByTagName!="undefined"?w=d.getElementsByTagName(_||"*"):typeof d.querySelectorAll!="undefined"?w=d.querySelectorAll(_||"*"):w=[],_===void 0||_&&J(d,_)?b.merge([d],w):w}function pr(d,_){for(var w=0,T=d.length;w<T;w++)vt.set(d[w],"globalEval",!_||vt.get(_[w],"globalEval"))}var jt=/<|&#?\w+;/;function It(d,_,w,T,P){for(var M,O,N,F,Z,tt,nt=_.createDocumentFragment(),V=[],ct=0,Ft=d.length;ct<Ft;ct++)if(M=d[ct],M||M===0)if(R(M)==="object")b.merge(V,M.nodeType?[M]:M);else if(!jt.test(M))V.push(_.createTextNode(M));else{for(O=O||nt.appendChild(_.createElement("div")),N=(Fi.exec(M)||["",""])[1].toLowerCase(),F=Qe[N]||Qe._default,O.innerHTML=F[1]+b.htmlPrefilter(M)+F[2],tt=F[0];tt--;)O=O.lastChild;b.merge(V,O.childNodes),O=nt.firstChild,O.textContent=""}for(nt.textContent="",ct=0;M=V[ct++];){if(T&&b.inArray(M,T)>-1){P&&P.push(M);continue}if(Z=Ri(M),O=Pe(nt.appendChild(M),"script"),Z&&pr(O),w)for(tt=0;M=O[tt++];)Gn.test(M.type||"")&&w.push(M)}return nt}var oe=/^([^.]*)(?:\.(.+)|)/;function gt(){return!0}function $t(){return!1}function zt(d,_,w,T,P,M){var O,N;if(typeof _=="object"){typeof w!="string"&&(T=T||w,w=void 0);for(N in _)zt(d,N,w,T,_[N],M);return d}if(T==null&&P==null?(P=w,T=w=void 0):P==null&&(typeof w=="string"?(P=T,T=void 0):(P=T,T=w,w=void 0)),P===!1)P=$t;else if(!P)return d;return M===1&&(O=P,P=function(F){return b().off(F),O.apply(this,arguments)},P.guid=O.guid||(O.guid=b.guid++)),d.each(function(){b.event.add(this,_,P,T,w)})}b.event={global:{},add:function(d,_,w,T,P){var M,O,N,F,Z,tt,nt,V,ct,Ft,ne,Gt=vt.get(d);if(zi(d))for(w.handler&&(M=w,w=M.handler,P=M.selector),P&&b.find.matchesSelector(oi,P),w.guid||(w.guid=b.guid++),(F=Gt.events)||(F=Gt.events=Object.create(null)),(O=Gt.handle)||(O=Gt.handle=function(yi){return typeof b!="undefined"&&b.event.triggered!==yi.type?b.event.dispatch.apply(d,arguments):void 0}),_=(_||"").match(Oe)||[""],Z=_.length;Z--;)N=oe.exec(_[Z])||[],ct=ne=N[1],Ft=(N[2]||"").split(".").sort(),ct&&(nt=b.event.special[ct]||{},ct=(P?nt.delegateType:nt.bindType)||ct,nt=b.event.special[ct]||{},tt=b.extend({type:ct,origType:ne,data:T,handler:w,guid:w.guid,selector:P,needsContext:P&&b.expr.match.needsContext.test(P),namespace:Ft.join(".")},M),(V=F[ct])||(V=F[ct]=[],V.delegateCount=0,(!nt.setup||nt.setup.call(d,T,Ft,O)===!1)&&d.addEventListener&&d.addEventListener(ct,O)),nt.add&&(nt.add.call(d,tt),tt.handler.guid||(tt.handler.guid=w.guid)),P?V.splice(V.delegateCount++,0,tt):V.push(tt),b.event.global[ct]=!0)},remove:function(d,_,w,T,P){var M,O,N,F,Z,tt,nt,V,ct,Ft,ne,Gt=vt.hasData(d)&&vt.get(d);if(!(!Gt||!(F=Gt.events))){for(_=(_||"").match(Oe)||[""],Z=_.length;Z--;){if(N=oe.exec(_[Z])||[],ct=ne=N[1],Ft=(N[2]||"").split(".").sort(),!ct){for(ct in F)b.event.remove(d,ct+_[Z],w,T,!0);continue}for(nt=b.event.special[ct]||{},ct=(T?nt.delegateType:nt.bindType)||ct,V=F[ct]||[],N=N[2]&&new RegExp("(^|\\.)"+Ft.join("\\.(?:.*\\.|)")+"(\\.|$)"),O=M=V.length;M--;)tt=V[M],(P||ne===tt.origType)&&(!w||w.guid===tt.guid)&&(!N||N.test(tt.namespace))&&(!T||T===tt.selector||T==="**"&&tt.selector)&&(V.splice(M,1),tt.selector&&V.delegateCount--,nt.remove&&nt.remove.call(d,tt));O&&!V.length&&((!nt.teardown||nt.teardown.call(d,Ft,Gt.handle)===!1)&&b.removeEvent(d,ct,Gt.handle),delete F[ct])}b.isEmptyObject(F)&&vt.remove(d,"handle events")}},dispatch:function(d){var _,w,T,P,M,O,N=new Array(arguments.length),F=b.event.fix(d),Z=(vt.get(this,"events")||Object.create(null))[F.type]||[],tt=b.event.special[F.type]||{};for(N[0]=F,_=1;_<arguments.length;_++)N[_]=arguments[_];if(F.delegateTarget=this,!(tt.preDispatch&&tt.preDispatch.call(this,F)===!1)){for(O=b.event.handlers.call(this,F,Z),_=0;(P=O[_++])&&!F.isPropagationStopped();)for(F.currentTarget=P.elem,w=0;(M=P.handlers[w++])&&!F.isImmediatePropagationStopped();)(!F.rnamespace||M.namespace===!1||F.rnamespace.test(M.namespace))&&(F.handleObj=M,F.data=M.data,T=((b.event.special[M.origType]||{}).handle||M.handler).apply(P.elem,N),T!==void 0&&(F.result=T)===!1&&(F.preventDefault(),F.stopPropagation()));return tt.postDispatch&&tt.postDispatch.call(this,F),F.result}},handlers:function(d,_){var w,T,P,M,O,N=[],F=_.delegateCount,Z=d.target;if(F&&Z.nodeType&&!(d.type==="click"&&d.button>=1)){for(;Z!==this;Z=Z.parentNode||this)if(Z.nodeType===1&&!(d.type==="click"&&Z.disabled===!0)){for(M=[],O={},w=0;w<F;w++)T=_[w],P=T.selector+" ",O[P]===void 0&&(O[P]=T.needsContext?b(P,this).index(Z)>-1:b.find(P,this,null,[Z]).length),O[P]&&M.push(T);M.length&&N.push({elem:Z,handlers:M})}}return Z=this,F<_.length&&N.push({elem:Z,handlers:_.slice(F)}),N},addProp:function(d,_){Object.defineProperty(b.Event.prototype,d,{enumerable:!0,configurable:!0,get:C(_)?function(){if(this.originalEvent)return _(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[d]},set:function(w){Object.defineProperty(this,d,{enumerable:!0,configurable:!0,writable:!0,value:w})}})},fix:function(d){return d[b.expando]?d:new b.Event(d)},special:{load:{noBubble:!0},click:{setup:function(d){var _=this||d;return ai.test(_.type)&&_.click&&J(_,"input")&&Ot(_,"click",!0),!1},trigger:function(d){var _=this||d;return ai.test(_.type)&&_.click&&J(_,"input")&&Ot(_,"click"),!0},_default:function(d){var _=d.target;return ai.test(_.type)&&_.click&&J(_,"input")&&vt.get(_,"click")||J(_,"a")}},beforeunload:{postDispatch:function(d){d.result!==void 0&&d.originalEvent&&(d.originalEvent.returnValue=d.result)}}}};function Ot(d,_,w){if(!w){vt.get(d,_)===void 0&&b.event.add(d,_,gt);return}vt.set(d,_,!1),b.event.add(d,_,{namespace:!1,handler:function(T){var P,M=vt.get(this,_);if(T.isTrigger&1&&this[_]){if(M)(b.event.special[_]||{}).delegateType&&T.stopPropagation();else if(M=i.call(arguments),vt.set(this,_,M),this[_](),P=vt.get(this,_),vt.set(this,_,!1),M!==P)return T.stopImmediatePropagation(),T.preventDefault(),P}else M&&(vt.set(this,_,b.event.trigger(M[0],M.slice(1),this)),T.stopPropagation(),T.isImmediatePropagationStopped=gt)}})}b.removeEvent=function(d,_,w){d.removeEventListener&&d.removeEventListener(_,w)},b.Event=function(d,_){if(!(this instanceof b.Event))return new b.Event(d,_);d&&d.type?(this.originalEvent=d,this.type=d.type,this.isDefaultPrevented=d.defaultPrevented||d.defaultPrevented===void 0&&d.returnValue===!1?gt:$t,this.target=d.target&&d.target.nodeType===3?d.target.parentNode:d.target,this.currentTarget=d.currentTarget,this.relatedTarget=d.relatedTarget):this.type=d,_&&b.extend(this,_),this.timeStamp=d&&d.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:$t,isPropagationStopped:$t,isImmediatePropagationStopped:$t,isSimulated:!1,preventDefault:function(){var d=this.originalEvent;this.isDefaultPrevented=gt,d&&!this.isSimulated&&d.preventDefault()},stopPropagation:function(){var d=this.originalEvent;this.isPropagationStopped=gt,d&&!this.isSimulated&&d.stopPropagation()},stopImmediatePropagation:function(){var d=this.originalEvent;this.isImmediatePropagationStopped=gt,d&&!this.isSimulated&&d.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},function(d,_){function w(T){if(S.documentMode){var P=vt.get(this,"handle"),M=b.event.fix(T);M.type=T.type==="focusin"?"focus":"blur",M.isSimulated=!0,P(T),M.target===M.currentTarget&&P(M)}else b.event.simulate(_,T.target,b.event.fix(T))}b.event.special[d]={setup:function(){var T;if(Ot(this,d,!0),S.documentMode)T=vt.get(this,_),T||this.addEventListener(_,w),vt.set(this,_,(T||0)+1);else return!1},trigger:function(){return Ot(this,d),!0},teardown:function(){var T;if(S.documentMode)T=vt.get(this,_)-1,T?vt.set(this,_,T):(this.removeEventListener(_,w),vt.remove(this,_));else return!1},_default:function(T){return vt.get(T.target,d)},delegateType:_},b.event.special[_]={setup:function(){var T=this.ownerDocument||this.document||this,P=S.documentMode?this:T,M=vt.get(P,_);M||(S.documentMode?this.addEventListener(_,w):T.addEventListener(d,w,!0)),vt.set(P,_,(M||0)+1)},teardown:function(){var T=this.ownerDocument||this.document||this,P=S.documentMode?this:T,M=vt.get(P,_)-1;M?vt.set(P,_,M):(S.documentMode?this.removeEventListener(_,w):T.removeEventListener(d,w,!0),vt.remove(P,_))}}}),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(d,_){b.event.special[d]={delegateType:_,bindType:_,handle:function(w){var T,P=this,M=w.relatedTarget,O=w.handleObj;return(!M||M!==P&&!b.contains(P,M))&&(w.type=O.origType,T=O.handler.apply(this,arguments),w.type=_),T}}}),b.fn.extend({on:function(d,_,w,T){return zt(this,d,_,w,T)},one:function(d,_,w,T){return zt(this,d,_,w,T,1)},off:function(d,_,w){var T,P;if(d&&d.preventDefault&&d.handleObj)return T=d.handleObj,b(d.delegateTarget).off(T.namespace?T.origType+"."+T.namespace:T.origType,T.selector,T.handler),this;if(typeof d=="object"){for(P in d)this.off(P,_,d[P]);return this}return(_===!1||typeof _=="function")&&(w=_,_=void 0),w===!1&&(w=$t),this.each(function(){b.event.remove(this,d,w,_)})}});var bt=/<script|<style|<link/i,Yt=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ve(d,_){return J(d,"table")&&J(_.nodeType!==11?_:_.firstChild,"tr")&&b(d).children("tbody")[0]||d}function Ce(d){return d.type=(d.getAttribute("type")!==null)+"/"+d.type,d}function _e(d){return(d.type||"").slice(0,5)==="true/"?d.type=d.type.slice(5):d.removeAttribute("type"),d}function de(d,_){var w,T,P,M,O,N,F;if(_.nodeType===1){if(vt.hasData(d)&&(M=vt.get(d),F=M.events,F)){vt.remove(_,"handle events");for(P in F)for(w=0,T=F[P].length;w<T;w++)b.event.add(_,P,F[P][w])}xe.hasData(d)&&(O=xe.access(d),N=b.extend({},O),xe.set(_,N))}}function li(d,_){var w=_.nodeName.toLowerCase();w==="input"&&ai.test(d.type)?_.checked=d.checked:(w==="input"||w==="textarea")&&(_.defaultValue=d.defaultValue)}function fe(d,_,w,T){_=o(_);var P,M,O,N,F,Z,tt=0,nt=d.length,V=nt-1,ct=_[0],Ft=C(ct);if(Ft||nt>1&&typeof ct=="string"&&!x.checkClone&&Yt.test(ct))return d.each(function(ne){var Gt=d.eq(ne);Ft&&(_[0]=ct.call(this,ne,Gt.html())),fe(Gt,_,w,T)});if(nt&&(P=It(_,d[0].ownerDocument,!1,d,T),M=P.firstChild,P.childNodes.length===1&&(P=M),M||T)){for(O=b.map(Pe(P,"script"),Ce),N=O.length;tt<nt;tt++)F=P,tt!==V&&(F=b.clone(F,!0,!0),N&&b.merge(O,Pe(F,"script"))),w.call(d[tt],F,tt);if(N)for(Z=O[O.length-1].ownerDocument,b.map(O,_e),tt=0;tt<N;tt++)F=O[tt],Gn.test(F.type||"")&&!vt.access(F,"globalEval")&&b.contains(Z,F)&&(F.src&&(F.type||"").toLowerCase()!=="module"?b._evalUrl&&!F.noModule&&b._evalUrl(F.src,{nonce:F.nonce||F.getAttribute("nonce")},Z):z(F.textContent.replace(ke,""),F,Z))}return d}function xi(d,_,w){for(var T,P=_?b.filter(_,d):d,M=0;(T=P[M])!=null;M++)!w&&T.nodeType===1&&b.cleanData(Pe(T)),T.parentNode&&(w&&Ri(T)&&pr(Pe(T,"script")),T.parentNode.removeChild(T));return d}b.extend({htmlPrefilter:function(d){return d},clone:function(d,_,w){var T,P,M,O,N=d.cloneNode(!0),F=Ri(d);if(!x.noCloneChecked&&(d.nodeType===1||d.nodeType===11)&&!b.isXMLDoc(d))for(O=Pe(N),M=Pe(d),T=0,P=M.length;T<P;T++)li(M[T],O[T]);if(_)if(w)for(M=M||Pe(d),O=O||Pe(N),T=0,P=M.length;T<P;T++)de(M[T],O[T]);else de(d,N);return O=Pe(N,"script"),O.length>0&&pr(O,!F&&Pe(d,"script")),N},cleanData:function(d){for(var _,w,T,P=b.event.special,M=0;(w=d[M])!==void 0;M++)if(zi(w)){if(_=w[vt.expando]){if(_.events)for(T in _.events)P[T]?b.event.remove(w,T):b.removeEvent(w,T,_.handle);w[vt.expando]=void 0}w[xe.expando]&&(w[xe.expando]=void 0)}}}),b.fn.extend({detach:function(d){return xi(this,d,!0)},remove:function(d){return xi(this,d)},text:function(d){return be(this,function(_){return _===void 0?b.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=_)})},null,d,arguments.length)},append:function(){return fe(this,arguments,function(d){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var _=Ve(this,d);_.appendChild(d)}})},prepend:function(){return fe(this,arguments,function(d){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var _=Ve(this,d);_.insertBefore(d,_.firstChild)}})},before:function(){return fe(this,arguments,function(d){this.parentNode&&this.parentNode.insertBefore(d,this)})},after:function(){return fe(this,arguments,function(d){this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling)})},empty:function(){for(var d,_=0;(d=this[_])!=null;_++)d.nodeType===1&&(b.cleanData(Pe(d,!1)),d.textContent="");return this},clone:function(d,_){return d=d==null?!1:d,_=_==null?d:_,this.map(function(){return b.clone(this,d,_)})},html:function(d){return be(this,function(_){var w=this[0]||{},T=0,P=this.length;if(_===void 0&&w.nodeType===1)return w.innerHTML;if(typeof _=="string"&&!bt.test(_)&&!Qe[(Fi.exec(_)||["",""])[1].toLowerCase()]){_=b.htmlPrefilter(_);try{for(;T<P;T++)w=this[T]||{},w.nodeType===1&&(b.cleanData(Pe(w,!1)),w.innerHTML=_);w=0}catch(M){}}w&&this.empty().append(_)},null,d,arguments.length)},replaceWith:function(){var d=[];return fe(this,arguments,function(_){var w=this.parentNode;b.inArray(this,d)<0&&(b.cleanData(Pe(this)),w&&w.replaceChild(_,this))},d)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,_){b.fn[d]=function(w){for(var T,P=[],M=b(w),O=M.length-1,N=0;N<=O;N++)T=N===O?this:this.clone(!0),b(M[N])[_](T),a.apply(P,T.get());return this.pushStack(P)}});var Bi=new RegExp("^("+fr+")(?!px)[a-z%]+$","i"),He=/^--/,$e=function(d){var _=d.ownerDocument.defaultView;return(!_||!_.opener)&&(_=t),_.getComputedStyle(d)},Ye=function(d,_,w){var T,P,M={};for(P in _)M[P]=d.style[P],d.style[P]=_[P];T=w.call(d);for(P in _)d.style[P]=M[P];return T},gr=new RegExp(Ai.join("|"),"i");(function(){function d(){if(Z){F.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Z.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oi.appendChild(F).appendChild(Z);var tt=t.getComputedStyle(Z);w=tt.top!=="1%",N=_(tt.marginLeft)===12,Z.style.right="60%",M=_(tt.right)===36,T=_(tt.width)===36,Z.style.position="absolute",P=_(Z.offsetWidth/3)===12,oi.removeChild(F),Z=null}}function _(tt){return Math.round(parseFloat(tt))}var w,T,P,M,O,N,F=S.createElement("div"),Z=S.createElement("div");Z.style&&(Z.style.backgroundClip="content-box",Z.cloneNode(!0).style.backgroundClip="",x.clearCloneStyle=Z.style.backgroundClip==="content-box",b.extend(x,{boxSizingReliable:function(){return d(),T},pixelBoxStyles:function(){return d(),M},pixelPosition:function(){return d(),w},reliableMarginLeft:function(){return d(),N},scrollboxSize:function(){return d(),P},reliableTrDimensions:function(){var tt,nt,V,ct;return O==null&&(tt=S.createElement("table"),nt=S.createElement("tr"),V=S.createElement("div"),tt.style.cssText="position:absolute;left:-11111px;border-collapse:separate",nt.style.cssText="box-sizing:content-box;border:1px solid",nt.style.height="1px",V.style.height="9px",V.style.display="block",oi.appendChild(tt).appendChild(nt).appendChild(V),ct=t.getComputedStyle(nt),O=parseInt(ct.height,10)+parseInt(ct.borderTopWidth,10)+parseInt(ct.borderBottomWidth,10)===nt.offsetHeight,oi.removeChild(tt)),O}}))})();function Yi(d,_,w){var T,P,M,O,N=He.test(_),F=d.style;return w=w||$e(d),w&&(O=w.getPropertyValue(_)||w[_],N&&O&&(O=O.replace(st,"$1")||void 0),O===""&&!Ri(d)&&(O=b.style(d,_)),!x.pixelBoxStyles()&&Bi.test(O)&&gr.test(_)&&(T=F.width,P=F.minWidth,M=F.maxWidth,F.minWidth=F.maxWidth=F.width=O,O=w.width,F.width=T,F.minWidth=P,F.maxWidth=M)),O!==void 0?O+"":O}function ti(d,_){return{get:function(){if(d()){delete this.get;return}return(this.get=_).apply(this,arguments)}}}var Re=["Webkit","Moz","ms"],Xi=S.createElement("div").style,es={};function ho(d){for(var _=d[0].toUpperCase()+d.slice(1),w=Re.length;w--;)if(d=Re[w]+_,d in Xi)return d}function Sn(d){var _=b.cssProps[d]||es[d];return _||(d in Xi?d:es[d]=ho(d)||d)}var Ci=/^(none|table(?!-c[ea]).+)/,Sr={position:"absolute",visibility:"hidden",display:"block"},Er={letterSpacing:"0",fontWeight:"400"};function un(d,_,w){var T=we.exec(_);return T?Math.max(0,T[2]-(w||0))+(T[3]||"px"):_}function ae(d,_,w,T,P,M){var O=_==="width"?1:0,N=0,F=0,Z=0;if(w===(T?"border":"content"))return 0;for(;O<4;O+=2)w==="margin"&&(Z+=b.css(d,w+Ai[O],!0,P)),T?(w==="content"&&(F-=b.css(d,"padding"+Ai[O],!0,P)),w!=="margin"&&(F-=b.css(d,"border"+Ai[O]+"Width",!0,P))):(F+=b.css(d,"padding"+Ai[O],!0,P),w!=="padding"?F+=b.css(d,"border"+Ai[O]+"Width",!0,P):N+=b.css(d,"border"+Ai[O]+"Width",!0,P));return!T&&M>=0&&(F+=Math.max(0,Math.ceil(d["offset"+_[0].toUpperCase()+_.slice(1)]-M-F-N-.5))||0),F+Z}function Me(d,_,w){var T=$e(d),P=!x.boxSizingReliable()||w,M=P&&b.css(d,"boxSizing",!1,T)==="border-box",O=M,N=Yi(d,_,T),F="offset"+_[0].toUpperCase()+_.slice(1);if(Bi.test(N)){if(!w)return N;N="auto"}return(!x.boxSizingReliable()&&M||!x.reliableTrDimensions()&&J(d,"tr")||N==="auto"||!parseFloat(N)&&b.css(d,"display",!1,T)==="inline")&&d.getClientRects().length&&(M=b.css(d,"boxSizing",!1,T)==="border-box",O=F in d,O&&(N=d[F])),N=parseFloat(N)||0,N+ae(d,_,w||(M?"border":"content"),O,T,N)+"px"}b.extend({cssHooks:{opacity:{get:function(d,_){if(_){var w=Yi(d,"opacity");return w===""?"1":w}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(d,_,w,T){if(!(!d||d.nodeType===3||d.nodeType===8||!d.style)){var P,M,O,N=Ue(_),F=He.test(_),Z=d.style;if(F||(_=Sn(N)),O=b.cssHooks[_]||b.cssHooks[N],w!==void 0){if(M=typeof w,M==="string"&&(P=we.exec(w))&&P[1]&&(w=Zn(d,_,P),M="number"),w==null||w!==w)return;M==="number"&&!F&&(w+=P&&P[3]||(b.cssNumber[N]?"":"px")),!x.clearCloneStyle&&w===""&&_.indexOf("background")===0&&(Z[_]="inherit"),(!O||!("set"in O)||(w=O.set(d,w,T))!==void 0)&&(F?Z.setProperty(_,w):Z[_]=w)}else return O&&"get"in O&&(P=O.get(d,!1,T))!==void 0?P:Z[_]}},css:function(d,_,w,T){var P,M,O,N=Ue(_),F=He.test(_);return F||(_=Sn(N)),O=b.cssHooks[_]||b.cssHooks[N],O&&"get"in O&&(P=O.get(d,!0,w)),P===void 0&&(P=Yi(d,_,T)),P==="normal"&&_ in Er&&(P=Er[_]),w===""||w?(M=parseFloat(P),w===!0||isFinite(M)?M||0:P):P}}),b.each(["height","width"],function(d,_){b.cssHooks[_]={get:function(w,T,P){if(T)return Ci.test(b.css(w,"dis
10play"))&&(!w.getClientRects().length||!w.getBoundingClientRect().width)?Ye(w,Sr,function(){return Me(w,_,P)}):Me(w,_,P)},set:function(w,T,P){var M,O=$e(w),N=!x.scrollboxSize()&&O.position==="absolute",F=N||P,Z=F&&b.css(w,"boxSizing",!1,O)==="border-box",tt=P?ae(w,_,P,Z,O):0;return Z&&N&&(tt-=Math.ceil(w["offset"+_[0].toUpperCase()+_.slice(1)]-parseFloat(O[_])-ae(w,_,"border",!1,O)-.5)),tt&&(M=we.exec(T))&&(M[3]||"px")!=="px"&&(w.style[_]=T,T=b.css(w,_)),un(w,T,tt)}}}),b.cssHooks.marginLeft=ti(x.reliableMarginLeft,function(d,_){if(_)return(parseFloat(Yi(d,"marginLeft"))||d.getBoundingClientRect().left-Ye(d,{marginLeft:0},function(){return d.getBoundingClientRect().left}))+"px"}),b.each({margin:"",padding:"",border:"Width"},function(d,_){b.cssHooks[d+_]={expand:function(w){for(var T=0,P={},M=typeof w=="string"?w.split(" "):[w];T<4;T++)P[d+Ai[T]+_]=M[T]||M[T-2]||M[0];return P}},d!=="margin"&&(b.cssHooks[d+_].set=un)}),b.fn.extend({css:function(d,_){return be(this,function(w,T,P){var M,O,N={},F=0;if(Array.isArray(T)){for(M=$e(w),O=T.length;F<O;F++)N[T[F]]=b.css(w,T[F],!1,M);return N}return P!==void 0?b.style(w,T,P):b.css(w,T)},d,_,arguments.length>1)}});function _i(d,_,w,T,P){return new _i.prototype.init(d,_,w,T,P)}b.Tween=_i,_i.prototype={constructor:_i,init:function(d,_,w,T,P,M){this.elem=d,this.prop=w,this.easing=P||b.easing._default,this.options=_,this.start=this.now=this.cur(),this.end=T,this.unit=M||(b.cssNumber[w]?"":"px")},cur:function(){var d=_i.propHooks[this.prop];return d&&d.get?d.get(this):_i.propHooks._default.get(this)},run:function(d){var _,w=_i.propHooks[this.prop];return this.options.duration?this.pos=_=b.easing[this.easing](d,this.options.duration*d,0,1,this.options.duration):this.pos=_=d,this.now=(this.end-this.start)*_+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),w&&w.set?w.set(this):_i.propHooks._default.set(this),this}},_i.prototype.init.prototype=_i.prototype,_i.propHooks={_default:{get:function(d){var _;return d.elem.nodeType!==1||d.elem[d.prop]!=null&&d.elem.style[d.prop]==null?d.elem[d.prop]:(_=b.css(d.elem,d.prop,""),!_||_==="auto"?0:_)},set:function(d){b.fx.step[d.prop]?b.fx.step[d.prop](d):d.elem.nodeType===1&&(b.cssHooks[d.prop]||d.elem.style[Sn(d.prop)]!=null)?b.style(d.elem,d.prop,d.now+d.unit):d.elem[d.prop]=d.now}}},_i.propHooks.scrollTop=_i.propHooks.scrollLeft={set:function(d){d.elem.nodeType&&d.elem.parentNode&&(d.elem[d.prop]=d.now)}},b.easing={linear:function(d){return d},swing:function(d){return .5-Math.cos(d*Math.PI)/2},_default:"swing"},b.fx=_i.prototype.init,b.fx.step={};var En,mr,Xo=/^(?:toggle|show|hide)$/,Wt=/queueHooks$/;function De(){mr&&(S.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(De):t.setTimeout(De,b.fx.interval),b.fx.tick())}function fo(){return t.setTimeout(function(){En=void 0}),En=Date.now()}function Br(d,_){var w,T=0,P={height:d};for(_=_?1:0;T<4;T+=2-_)w=Ai[T],P["margin"+w]=P["padding"+w]=d;return _&&(P.opacity=P.width=d),P}function Ki(d,_,w){for(var T,P=(vi.tweeners[_]||[]).concat(vi.tweeners["*"]),M=0,O=P.length;M<O;M++)if(T=P[M].call(w,_,d))return T}function uu(d,_,w){var T,P,M,O,N,F,Z,tt,nt="width"in _||"height"in _,V=this,ct={},Ft=d.style,ne=d.nodeType&&mi(d),Gt=vt.get(d,"fxshow");w.queue||(O=b._queueHooks(d,"fx"),O.unqueued==null&&(O.unqueued=0,N=O.empty.fire,O.empty.fire=function(){O.unqueued||N()}),O.unqueued++,V.always(function(){V.always(function(){O.unqueued--,b.queue(d,"fx").length||O.empty.fire()})}));for(T in _)if(P=_[T],Xo.test(P)){if(delete _[T],M=M||P==="toggle",P===(ne?"hide":"show"))if(P==="show"&&Gt&&Gt[T]!==void 0)ne=!0;else continue;ct[T]=Gt&&Gt[T]||b.style(d,T)}if(F=!b.isEmptyObject(_),!(!F&&b.isEmptyObject(ct))){nt&&d.nodeType===1&&(w.overflow=[Ft.overflow,Ft.overflowX,Ft.overflowY],Z=Gt&&Gt.display,Z==null&&(Z=vt.get(d,"display")),tt=b.css(d,"display"),tt==="none"&&(Z?tt=Z:(Je([d],!0),Z=d.style.display||Z,tt=b.css(d,"display"),Je([d]))),(tt==="inline"||tt==="inline-block"&&Z!=null)&&b.css(d,"float")==="none"&&(F||(V.done(function(){Ft.display=Z}),Z==null&&(tt=Ft.display,Z=tt==="none"?"":tt)),Ft.display="inline-block")),w.overflow&&(Ft.overflow="hidden",V.always(function(){Ft.overflow=w.overflow[0],Ft.overflowX=w.overflow[1],Ft.overflowY=w.overflow[2]})),F=!1;for(T in ct)F||(Gt?"hidden"in Gt&&(ne=Gt.hidden):Gt=vt.access(d,"fxshow",{display:Z}),M&&(Gt.hidden=!ne),ne&&Je([d],!0),V.done(function(){ne||Je([d]),vt.remove(d,"fxshow");for(T in ct)b.style(d,T,ct[T])})),F=Ki(ne?Gt[T]:0,T,V),T in Gt||(Gt[T]=F.start,ne&&(F.end=F.start,F.start=0))}}function po(d,_){var w,T,P,M,O;for(w in d)if(T=Ue(w),P=_[T],M=d[w],Array.isArray(M)&&(P=M[1],M=d[w]=M[0]),w!==T&&(d[T]=M,delete d[w]),O=b.cssHooks[T],O&&"expand"in O){M=O.expand(M),delete d[T];for(w in M)w in d||(d[w]=M[w],_[w]=P)}else _[T]=P}function vi(d,_,w){var T,P,M=0,O=vi.prefilters.length,N=b.Deferred().always(function(){delete F.elem}),F=function(){if(P)return!1;for(var nt=En||fo(),V=Math.max(0,Z.startTime+Z.duration-nt),ct=V/Z.duration||0,Ft=1-ct,ne=0,Gt=Z.tweens.length;ne<Gt;ne++)Z.tweens[ne].run(Ft);return N.notifyWith(d,[Z,Ft,V]),Ft<1&&Gt?V:(Gt||N.notifyWith(d,[Z,1,0]),N.resolveWith(d,[Z]),!1)},Z=N.promise({elem:d,props:b.extend({},_),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},w),originalProperties:_,originalOptions:w,startTime:En||fo(),duration:w.duration,tweens:[],createTween:function(nt,V){var ct=b.Tween(d,Z.opts,nt,V,Z.opts.specialEasing[nt]||Z.opts.easing);return Z.tweens.push(ct),ct},stop:function(nt){var V=0,ct=nt?Z.tweens.length:0;if(P)return this;for(P=!0;V<ct;V++)Z.tweens[V].run(1);return nt?(N.notifyWith(d,[Z,1,0]),N.resolveWith(d,[Z,nt])):N.rejectWith(d,[Z,nt]),this}}),tt=Z.props;for(po(tt,Z.opts.specialEasing);M<O;M++)if(T=vi.prefilters[M].call(Z,d,tt,Z.opts),T)return C(T.stop)&&(b._queueHooks(Z.elem,Z.opts.queue).stop=T.stop.bind(T)),T;return b.map(tt,Ki,Z),C(Z.opts.start)&&Z.opts.start.call(d,Z),Z.progress(Z.opts.progress).done(Z.opts.done,Z.opts.complete).fail(Z.opts.fail).always(Z.opts.always),b.fx.timer(b.extend(F,{elem:d,anim:Z,queue:Z.opts.queue})),Z}b.Animation=b.extend(vi,{tweeners:{"*":[function(d,_){var w=this.createTween(d,_);return Zn(w.elem,d,we.exec(_),w),w}]},tweener:function(d,_){C(d)?(_=d,d=["*"]):d=d.match(Oe);for(var w,T=0,P=d.length;T<P;T++)w=d[T],vi.tweeners[w]=vi.tweeners[w]||[],vi.tweeners[w].unshift(_)},prefilters:[uu],prefilter:function(d,_){_?vi.prefilters.unshift(d):vi.prefilters.push(d)}}),b.speed=function(d,_,w){var T=d&&typeof d=="object"?b.extend({},d):{complete:w||!w&&_||C(d)&&d,duration:d,easing:w&&_||_&&!C(_)&&_};return b.fx.off?T.duration=0:typeof T.duration!="number"&&(T.duration in b.fx.speeds?T.duration=b.fx.speeds[T.duration]:T.duration=b.fx.speeds._default),(T.queue==null||T.queue===!0)&&(T.queue="fx"),T.old=T.complete,T.complete=function(){C(T.old)&&T.old.call(this),T.queue&&b.dequeue(this,T.queue)},T},b.fn.extend({fadeTo:function(d,_,w,T){return this.filter(mi).css("opacity",0).show().end().animate({opacity:_},d,w,T)},animate:function(d,_,w,T){var P=b.isEmptyObject(d),M=b.speed(_,w,T),O=function(){var N=vi(this,b.extend({},d),M);(P||vt.get(this,"finish"))&&N.stop(!0)};return O.finish=O,P||M.queue===!1?this.each(O):this.queue(M.queue,O)},stop:function(d,_,w){var T=function(P){var M=P.stop;delete P.stop,M(w)};return typeof d!="string"&&(w=_,_=d,d=void 0),_&&this.queue(d||"fx",[]),this.each(function(){var P=!0,M=d!=null&&d+"queueHooks",O=b.timers,N=vt.get(this);if(M)N[M]&&N[M].stop&&T(N[M]);
vendor: 4,107 bytes, line 10
10else for(M in N)N[M]&&N[M].stop&&Wt.test(M)&&T(N[M]);for(M=O.length;M--;)O[M].elem===this&&(d==null||O[M].queue===d)&&(O[M].anim.stop(w),P=!1,O.splice(M,1));(P||!w)&&b.dequeue(this,d)})},finish:function(d){return d!==!1&&(d=d||"fx"),this.each(function(){var _,w=vt.get(this),T=w[d+"queue"],P=w[d+"queueHooks"],M=b.timers,O=T?T.length:0;for(w.finish=!0,b.queue(this,d,[]),P&&P.stop&&P.stop.call(this,!0),_=M.length;_--;)M[_].elem===this&&M[_].queue===d&&(M[_].anim.stop(!0),M.splice(_,1));for(_=0;_<O;_++)T[_]&&T[_].finish&&T[_].finish.call(this);delete w.finish})}}),b.each(["toggle","show","hide"],function(d,_){var w=b.fn[_];b.fn[_]=function(T,P,M){return T==null||typeof T=="boolean"?w.apply(this,arguments):this.animate(Br(_,!0),T,P,M)}}),b.each({slideDown:Br("show"),slideUp:Br("hide"),slideToggle:Br("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(d,_){b.fn[d]=function(w,T,P){return this.animate(_,w,T,P)}}),b.timers=[],b.fx.tick=function(){var d,_=0,w=b.timers;for(En=Date.now();_<w.length;_++)d=w[_],!d()&&w[_]===d&&w.splice(_--,1);w.length||b.fx.stop(),En=void 0},b.fx.timer=function(d){b.timers.push(d),b.fx.start()},b.fx.interval=13,b.fx.start=function(){mr||(mr=!0,De())},b.fx.stop=function(){mr=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(d,_){return d=b.fx&&b.fx.speeds[d]||d,_=_||"fx",this.queue(_,function(w,T){var P=t.setTimeout(w,d);T.stop=function(){t.clearTimeout(P)}})},function(){var d=S.createElement("input"),_=S.createElement("select"),w=_.appendChild(S.createElement("option"));d.type="checkbox",x.checkOn=d.value!=="",x.optSelected=w.selected,d=S.createElement("input"),d.value="t",d.type="radio",x.radioValue=d.value==="t"}();var je,Ln=b.expr.attrHandle;b.fn.extend({attr:function(d,_){return be(this,b.attr,d,_,arguments.length>1)},removeAttr:function(d){return this.each(function(){b.removeAttr(this,d)})}}),b.extend({attr:function(d,_,w){var T,P,M=d.nodeType;if(!(M===3||M===8||M===2)){if(typeof d.getAttribute=="undefined")return b.prop(d,_,w);if((M!==1||!b.isXMLDoc(d))&&(P=b.attrHooks[_.toLowerCase()]||(b.expr.match.bool.test(_)?je:void 0)),w!==void 0){if(w===null){b.removeAttr(d,_);return}return P&&"set"in P&&(T=P.set(d,w,_))!==void 0?T:(d.setAttribute(_,w+""),w)}return P&&"get"in P&&(T=P.get(d,_))!==null?T:(T=b.find.attr(d,_),T==null?void 0:T)}},attrHooks:{type:{set:function(d,_){if(!x.radioValue&&_==="radio"&&J(d,"input")){var w=d.value;return d.setAttribute("type",_),w&&(d.value=w),_}}}},removeAttr:function(d,_){var w,T=0,P=_&&_.match(Oe);if(P&&d.nodeType===1)for(;w=P[T++];)d.removeAttribute(w)}}),je={set:function(d,_,w){return _===!1?b.removeAttr(d,w):d.setAttribute(w,w),w}},b.each(b.expr.match.bool.source.match(/\w+/g),function(d,_){var w=Ln[_]||b.find.attr;Ln[_]=function(T,P,M){var O,N,F=P.toLowerCase();return M||(N=Ln[F],Ln[F]=O,O=w(T,P,M)!=null?F:null,Ln[F]=N),O}});var Ts=/^(?:input|select|textarea|button)$/i,Ss=/^(?:a|area)$/i;b.fn.extend({prop:function(d,_){return be(this,b.prop,d,_,arguments.length>1)},removeProp:function(d){return this.each(function(){delete this[b.propFix[d]||d]})}}),b.extend({prop:function(d,_,w){var T,P,M=d.nodeType;if(!(M===3||M===8||M===2))return(M!==1||!b.isXMLDoc(d))&&(_=b.propFix[_]||_,P=b.propHooks[_]),w!==void 0?P&&"set"in P&&(T=P.set(d,w,_))!==void 0?T:d[_]=w:P&&"get"in P&&(T=P.get(d,_))!==null?T:d[_]},propHooks:{tabIndex:{get:function(d){var _=b.find.attr(d,"tabindex");return _?parseInt(_,10):Ts.test(d.nodeName)||Ss.test(d.nodeName)&&d.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),x.optSelected||(b.propHooks.selected={get:function(d){var _=d.parentNode;return _&&_.parentNode&&_.parentNode.selectedIndex,null},set:function(d){var _=d.parentNode;_&&(_.selectedIndex,_.parentNode&&_.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b.propFix[this.toLowerCase()]=this});function _r(d){var _=d.match(Oe)||[];return _.join(" ")}function Pn(d){return d.getAttribute&&d.getAttribute("class")||""}
10function Es(d){return Array.isArray(d)?d:typeof d=="string"?d.match(Oe)||[]:[]}b.fn.extend({addClass:function(d){var _,w,T,P,M,O;return C(d)?this.each(function(N){b(this).addClass(d.call(this,N,Pn(this)))}):(_=Es(d),_.length?this.each(function(){if(T=Pn(this),w=this.nodeType===1&&" "+_r(T)+" ",w){for(M=0;M<_.length;M++)P=_[M],w.indexOf(" "+P+" ")<0&&(w+=P+" ");O=_r(w),T!==O&&this.setAttribute("class",O)}}):this)},removeClass:function(d){var _,w,T,P,M,O;return C(d)?this.each(function(N){b(this).removeClass(d.call(this,N,Pn(this)))}):arguments.length?(_=Es(d),_.length?this.each(function(){if(T=Pn(this),w=this.nodeType===1&&" "+_r(T)+" ",w){for(M=0;M<_.length;M++)for(P=_[M];w.indexOf(" "+P+" ")>-1;)w=w.replace(" "+P+" "," ");O=_r(w),T!==O&&this.setAttribute("class",O)}}):this):this.attr("class","")},toggleClass:function(d,_){var w,T,P,M,O=typeof d,N=O==="string"||Array.isArray(d);return C(d)?this.each(function(F){b(this).toggleClass(d.call(this,F,Pn(this),_),_)}):typeof _=="boolean"&&N?_?this.addClass(d):this.removeClass(d):(w=Es(d),this.each(function(){if(N)for(M=b(this),P=0;P<w.length;P++)T=w[P],M.hasClass(T)?M.removeClass(T):M.addClass(T);else(d===void 0||O==="boolean")&&(T=Pn(this),T&&vt.set(this,"__className__",T),this.setAttribute&&this.setAttribute("class",T||d===!1?"":vt.get(this,"__className__")||""))}))},hasClass:function(d){var _,w,T=0;for(_=" "+d+" ";w=this[T++];)if(w.nodeType===1&&(" "+_r(Pn(w))+" ").indexOf(_)>-1)return!0;return!1}});var Ko=/\r/g;b.fn.extend({val:function(d){var _,w,T,P=this[0];return arguments.length?(T=C(d),this.each(function(M){var O;this.nodeType===1&&(T?O=d.call(this,M,b(this).val()):O=d,O==null?O="":typeof O=="number"?O+="":Array.isArray(O)&&(O=b.map(O,function(N){return N==null?"":N+""})),_=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],(!_||!("set"in _)||_.set(this,O,"value")===void 0)&&(this.value=O))})):P?(_=b.valHooks[P.type]||b.valHooks[P.nodeName.toLowerCase()],_&&"get"in _&&(w=_.get(P,"value"))!==void 0?w:(w=P.value,typeof w=="string"?w.replace(Ko,""):w==null?"":w)):void 0}}),b.extend({valHooks:{option:{get:function(d){var _=b.find.attr(d,"value");return _!=null?_:_r(b.text(d))}},select:{get:function(d){var _,w,T,P=d.options,M=d.selectedIndex,O=d.type==="select-one",N=O?null:[],F=O?M+1:P.length;for(M<0?T=F:T=O?M:0;T<F;T++)if(w=P[T],(w.selected||T===M)&&!w.disabled&&(!w.parentNode.disabled||!J(w.parentNode,"optgroup"))){if(_=b(w).val(),O)return _;N.push(_)}return N},set:function(d,_){for(var w,T,P=d.options,M=b.makeArray(_),O=P.length;O--;)T=P[O],(T.selected=b.inArray(b.valHooks.option.get(T),M)>-1)&&(w=!0);return w||(d.selectedIndex=-1),M}}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]={set:function(d,_){if(Array.isArray(_))return d.checked=b.inArray(b(d).val(),_)>-1}},x.checkOn||(b.valHooks[this].get=function(d){return d.getAttribute("value")===null?"on":d.value})});var Lr=t.location,go={guid:Date.now()},Ls=/\?/;b.parseXML=function(d){var _,w;if(!d||typeof d!="string")return null;try{_=new t.DOMParser().parseFromString(d,"text/xml")}catch(T){}return w=_&&_.getElementsByTagName("parsererror")[0],(!_||w)&&b.error("Invalid XML: "+(w?b.map(w.childNodes,function(T){return T.textContent}).join(`
11`):d)),_};var Ps=/^(?:focusinfocus|focusoutblur)$/,Jo=function(d){d.stopPropagation()};b.extend(b.event,{trigger:function(d,_,w,T){var P,M,O,N,F,Z,tt,nt,V=[w||S],ct=g.call(d,"type")?d.type:d,Ft=g.call(d,"namespace")?d.namespace.split("."):[];if(M=nt=O=w=w||S,!(w.nodeType===3||w.nodeType===8)&&!Ps.test(ct+b.event.triggered)&&(ct.indexOf(".")>-1&&(Ft=ct.split("."),ct=Ft.shift(),Ft.sort()),F=ct.indexOf(":")<0&&"on"+ct,d=d[b.expando]?d:new b.Event(ct,typeof d=="object"&&d),d.isTrigger=T?2:3,d.namespace=Ft.join("."),d.rnamespace=d.namespace?new RegExp("(^|\\.)"+Ft.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,d.result=void 0,d.target||(d.target=w),_=_==null?[d]:b.makeArray(_,[d]),tt=b.event.special[ct]||{},!(!T&&tt.trigger&&tt.trigger.apply(w,_)===!1))){if(!T&&!tt.noBubble&&!k(w)){for(N=tt.delegateType||ct,Ps.test(N+ct)||(M=M.parentNode);M;M=M.parentNode)V.push(M),O=M;O===(w.ownerDocument||S)&&V.push(O.defaultView||O.parentWindow||t)}for(P=0;(M=V[P++])&&!d.isPropagationStopped();
vendor: 6,286 bytes, lines 11-13
11)nt=M,d.type=P>1?N:tt.bindType||ct,Z=(vt.get(M,"events")||Object.create(null))[d.type]&&vt.get(M,"handle"),Z&&Z.apply(M,_),Z=F&&M[F],Z&&Z.apply&&zi(M)&&(d.result=Z.apply(M,_),d.result===!1&&d.preventDefault());return d.type=ct,!T&&!d.isDefaultPrevented()&&(!tt._default||tt._default.apply(V.pop(),_)===!1)&&zi(w)&&F&&C(w[ct])&&!k(w)&&(O=w[F],O&&(w[F]=null),b.event.triggered=ct,d.isPropagationStopped()&&nt.addEventListener(ct,Jo),w[ct](),d.isPropagationStopped()&&nt.removeEventListener(ct,Jo),b.event.triggered=void 0,O&&(w[F]=O)),d.result}},simulate:function(d,_,w){var T=b.extend(new b.Event,w,{type:d,isSimulated:!0});b.event.trigger(T,null,_)}}),b.fn.extend({trigger:function(d,_){return this.each(function(){b.event.trigger(d,_,this)})},triggerHandler:function(d,_){var w=this[0];if(w)return b.event.trigger(d,_,w,!0)}});var Qo=/\[\]$/,Xa=/\r?\n/g,qt=/^(?:submit|button|image|reset|file)$/i,Un=/^(?:input|select|textarea|keygen)/i;function ve(d,_,w,T){var P;if(Array.isArray(_))b.each(_,function(M,O){w||Qo.test(d)?T(d,O):ve(d+"["+(typeof O=="object"&&O!=null?M:"")+"]",O,w,T)});else if(!w&&R(_)==="object")for(P in _)ve(d+"["+P+"]",_[P],w,T);else T(d,_)}b.param=function(d,_){var w,T=[],P=function(M,O){var N=C(O)?O():O;T[T.length]=encodeURIComponent(M)+"="+encodeURIComponent(N==null?"":N)};if(d==null)return"";if(Array.isArray(d)||d.jquery&&!b.isPlainObject(d))b.each(d,function(){P(this.name,this.value)});else for(w in d)ve(w,d[w],_,P);return T.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var d=b.prop(this,"elements");return d?b.makeArray(d):this}).filter(function(){var d=this.type;return this.name&&!b(this).is(":disabled")&&Un.test(this.nodeName)&&!qt.test(d)&&(this.checked||!ai.test(d))}).map(function(d,_){var w=b(this).val();return w==null?null:Array.isArray(w)?b.map(w,function(T){return{name:_.name,value:T.replace(Xa,`\r
12`)}}):{name:_.name,value:w.replace(Xa,`\r
13`)}}).get()}});var Ka=/%20/g,ta=/#.*$/,ea=/([?&])_=[^&]*/,ia=/^(.*?):[ \t]*([^\r\n]*)$/mg,Nr=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,na=/^(?:GET|HEAD)$/,ks=/^\/\//,ui={},vr={},ra="*/".concat("*"),mo=S.createElement("a");mo.href=Lr.href;function Ja(d){return function(_,w){typeof _!="string"&&(w=_,_="*");var T,P=0,M=_.toLowerCase().match(Oe)||[];if(C(w))for(;T=M[P++];)T[0]==="+"?(T=T.slice(1)||"*",(d[T]=d[T]||[]).unshift(w)):(d[T]=d[T]||[]).push(w)}}function sa(d,_,w,T){var P={},M=d===vr;function O(N){var F;return P[N]=!0,b.each(d[N]||[],function(Z,tt){var nt=tt(_,w,T);if(typeof nt=="string"&&!M&&!P[nt])return _.dataTypes.unshift(nt),O(nt),!1;if(M)return!(F=nt)}),F}return O(_.dataTypes[0])||!P["*"]&&O("*")}function Ms(d,_){var w,T,P=b.ajaxSettings.flatOptions||{};for(w in _)_[w]!==void 0&&((P[w]?d:T||(T={}))[w]=_[w]);return T&&b.extend(!0,d,T),d}function cu(d,_,w){for(var T,P,M,O,N=d.contents,F=d.dataTypes;F[0]==="*";)F.shift(),T===void 0&&(T=d.mimeType||_.getResponseHeader("Content-Type"));if(T){for(P in N)if(N[P]&&N[P].test(T)){F.unshift(P);break}}if(F[0]in w)M=F[0];else{for(P in w){if(!F[0]||d.converters[P+" "+F[0]]){M=P;break}O||(O=P)}M=M||O}if(M)return M!==F[0]&&F.unshift(M),w[M]}function Qa(d,_,w,T){var P,M,O,N,F,Z={},tt=d.dataTypes.slice();if(tt[1])for(O in d.converters)Z[O.toLowerCase()]=d.converters[O];for(M=tt.shift();M;)if(d.responseFields[M]&&(w[d.responseFields[M]]=_),!F&&T&&d.dataFilter&&(_=d.dataFilter(_,d.dataType)),F=M,M=tt.shift(),M){if(M==="*")M=F;else if(F!=="*"&&F!==M){if(O=Z[F+" "+M]||Z["* "+M],!O){for(P in Z)if(N=P.split(" "),N[1]===M&&(O=Z[F+" "+N[0]]||Z["* "+N[0]],O)){O===!0?O=Z[P]:Z[P]!==!0&&(M=N[0],tt.unshift(N[1]));break}}if(O!==!0)if(O&&d.throws)_=O(_);else try{_=O(_)}catch(nt){return{state:"parsererror",error:O?nt:"No conversion from "+F+" to "+M}}}}return{state:"success",data:_}}b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lr.href,type:"GET",isLocal:Nr.test(Lr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ra,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(d,_){return _?Ms(Ms(d,b.ajaxSettings),_):Ms(b.ajaxSettings,d)},ajaxPrefilter:Ja(ui),ajaxTransport:Ja(vr),ajax:function(d,_){typeof d=="object"&&(_=d,d=void 0),_=_||{};var w,T,P,M,O,N,F,Z,tt,nt,V=b.ajaxSetup({},_),ct=V.context||V,Ft=V.context&&(ct.nodeType||ct.jquery)?b(ct):b.event,ne=b.Deferred(),Gt=b.Callbacks("once memory"),yi=V.statusCode||{},qe={},Vn={},kn="canceled",Kt={readyState:0,getResponseHeader:function(Vt){var Fe;if(F){if(!M)for(M={};Fe=ia.exec(P);)M[Fe[1].toLowerCase()+" "]=(M[Fe[1].toLowerCase()+" "]||[]).concat(Fe[2]);Fe=M[Vt.toLowerCase()+" "]}return Fe==null?null:Fe.join(", ")},getAllResponseHeaders:function(){return F?P:null},setRequestHeader:function(Vt,Fe){return F==null&&(Vt=Vn[Vt.toLowerCase()]=Vn[Vt.toLowerCase()]||Vt,qe[Vt]=Fe),this},overrideMimeType:function(Vt){return F==null&&(V.mimeType=Vt),this},statusCode:function(Vt){var Fe;if(Vt)if(F)Kt.always(Vt[Kt.status]);else for(Fe in Vt)yi[Fe]=[yi[Fe],Vt[Fe]];return this},abort:function(Vt){var Fe=Vt||kn;return w&&w.abort(Fe),Yn(0,Fe),this}};if(ne.promise(Kt),V.url=((d||V.url||Lr.href)+"").replace(ks,Lr.protocol+"//"),V.type=_.method||_.type||V.method||V.type,V.dataTypes=(V.dataType||"*").toLowerCase().match(Oe)||[""],V.crossDomain==null){N=S.createElement("a");try{N.href=V.url,N.href=N.href,V.crossDomain=mo.protocol+"//"+mo.host!=N.protocol+"//"+N.host}catch(Vt){V.crossDomain=!0}}if(V.data&&V.processData&&typeof V.data!="string"&&(V.data=b.param(V.data,V.traditional)),sa(ui,V,_,Kt),F)return Kt;Z=b.event&&V.global,Z&&b.active++===0&&b.event.trigger("ajaxStart"),V.type=V.type.toUpperCase(),V.hasContent=!na.test(V.type),T=V.url.replace(ta,""),V.hasContent?V.data&&V.processData&&(V.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(V.data=V.data.replace(Ka,"+")):(nt=V.url.slice(T.length),V.data&&(V.processData||typeof V.data=="str
13ing")&&(T+=(Ls.test(T)?"&":"?")+V.data,delete V.data),V.cache===!1&&(T=T.replace(ea,"$1"),nt=(Ls.test(T)?"&":"?")+"_="+go.guid+++nt),V.url=T+nt),V.ifModified&&(b.lastModified[T]&&Kt.setRequestHeader("If-Modified-Since",b.lastModified[T]),b.etag[T]&&Kt.setRequestHeader("If-None-Match",b.etag[T])),(V.data&&V.hasContent&&V.contentType!==!1||_.contentType)&&Kt.setRequestHeader("Content-Type",V.contentType),Kt.setRequestHeader("Accept",V.dataTypes[0]&&V.accepts[V.dataTypes[0]]?V.accepts[V.dataTypes[0]]+(V.dataTypes[0]!=="*"?", "+ra+"; q=0.01":""):V.accepts["*"]);for(tt in V.headers)Kt.setRequestHeader(tt,V.headers[tt]);if(V.beforeSend&&(V.beforeSend.call(ct,Kt,V)===!1||F))return Kt.abort();if(kn="abort",Gt.add(V.complete),Kt.done(V.success),Kt.fail(V.error),w=sa(vr,V,_,Kt),!w)Yn(-1,"No Transport");else{if(Kt.readyState=1,Z&&Ft.trigger("ajaxSend",[Kt,V]),F)return Kt;V.async&&V.timeout>0&&(O=t.setTimeout(function(){Kt.abort("timeout")},V.timeout));try{F=!1,w.send(qe,Yn)}catch(Vt){if(F)throw Vt;Yn(-1,Vt)}}function Yn(Vt,Fe,yr,Ni){var Mn,is,Xn,Kn,Jn,hn=Fe;F||(F=!0,O&&t.clearTimeout(O),w=void 0,P=Ni||"",Kt.readyState=Vt>0?4:0,Mn=Vt>=200&&Vt<300||Vt===304,yr&&(Kn=cu(V,Kt,yr)),!Mn&&b.inArray("script",V.dataTypes)>-1&&b.inArray("json",V.dataTypes)<0&&(V.converters["text script"]=function(){}),Kn=Qa(V,Kn,Kt,Mn),Mn?(V.ifModified&&(Jn=Kt.getResponseHeader("Last-Modified"),Jn&&(b.lastModified[T]=Jn),Jn=Kt.getResponseHeader("etag"),Jn&&(b.etag[T]=Jn)),Vt===204||V.type==="HEAD"?hn="nocontent":Vt===304?hn="notmodified":(hn=Kn.state,is=Kn.data,Xn=Kn.error,Mn=!Xn)):(Xn=hn,(Vt||!hn)&&(hn="error",Vt<0&&(Vt=0))),Kt.status=Vt,Kt.statusText=(Fe||hn)+"",Mn?ne.resolveWith(ct,[is,hn,Kt]):ne.rejectWith(ct,[Kt,hn,Xn]),Kt.statusCode(yi),yi=void 0,Z&&Ft.trigger(Mn?"ajaxSuccess":"ajaxError",[Kt,V,Mn?is:Xn]),Gt.fireWith(ct,[Kt,hn]),Z&&(Ft.trigger("ajaxComplete",[Kt,V]),--b.active||b.event.trigger("ajaxStop")))}return Kt},getJSON:function(d,_,w){return b.get(d,_,w,"json")},getScript:function(d,_){return b.get(d,void 0,_,"script")}}),b.each(["get","post"],function(d,_){b[_]=function(w,T,P,M){return C(T)&&(M=M||P,P=T,T=void 0),b.ajax(b.extend({url:w,type:_,dataType:M,data:T,success:P},b.isPlainObject(w)&&w))}}),b.ajaxPrefilter(function(d){var _;for(_ in d.headers)_.toLowerCase()==="content-type"&&(d.contentType=d.headers[_]||"")}),b._evalUrl=function(d,_,w){return b.ajax({url:d,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(T){b.globalEval(T,_,w)}})},b.fn.extend({wrapAll:function(d){var _;return this[0]&&(C(d)&&(d=d.call(this[0])),_=b(d,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&_.insertBefore(this[0]),_.map(function(){for(var w=this;w.firstElementChild;)w=w.firstElementChild;return w}).append(this)),this},wrapInner:function(d){return C(d)?this.each(function(_){b(this).wrapInner(d.call(this,_))}):this.each(function(){var _=b(this),w=_.contents();w.length?w.wrapAll(d):_.append(d)})},wrap:function(d){var _=C(d);return this.each(function(w){b(this).wrapAll(_?d.call(this,w):d)})},unwrap:function(d){return this.parent(d).not("body").each(function(){b(this).replaceWith(this.childNodes)}),this}}),b.expr.pseudos.hidden=function(d){return!b.expr.pseudos.visible(d)},b.expr.pseudos.visible=function(d){return!!(d.offsetWidth||d.offsetHeight||d.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(d){}};var le={0:200,1223:204},As=b.ajaxSettings.xhr();x.cors=!!As&&"withCredentials"in As,x.ajax=As=!!As,b.ajaxTransport(function(d){var _,w;if(x.cors||As&&!d.crossDomain)return{send:function(T,P){var M,O=d.xhr();if(O.open(d.type,d.url,d.async,d.username,d.password),d.xhrFields)for(M in d.xhrFields)O[M]=d.xhrFields[M];d.mimeType&&O.overrideMimeType&&O.overrideMimeType(d.mimeType),!d.crossDomain&&!T["X-Requested-With"]&&(T["X-Requested-With"]="XMLHttpRequest");for(M in T)O.setRequestHeader(M,T[M]);_=function(N){return function(){_&&(_=w=O.onload=O.onerror=O.onabort=O.ontimeout=O.onreadystatechange=null,N==="abort"?O.abort():N==="error"?typeof O.status!="number"?P(0,"error"):P(O.status,O.statusText):P(le[O.status]||O.status,O.statusText,(O.responseType||"text")!=="text"||typeof O.responseText!="string"?{binary:O.response}:{text:O.responseText},O.getAllResponseHeaders()))}},O.onload=_(),w=O.onerror=O.ontimeout=_("error"),O.onabort!==void 0?O.onabort=w:O.onreadystatechange=function(){O.readyState===4&&t.setTimeout(function(){_&&w()})},_=_("abort");try{O.send(d.hasContent&&d.data||null)}catch(N){if(_)throw N}},abort:function(){_&&_()}}}),b.ajaxPrefilter(function(d){d.crossDomain&&(d.contents.script=!1)}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(d){return b.globalEval(d),d}}}),b.ajaxPrefilter("script",function(d){d.cache===void 0&&(d.cache=!1),d.crossDomain&&(d.type="GET")}),b.ajaxTransport("script",function(d){if(d.crossDomain||d.scriptAttrs){var _,w;return{send:function(T,P){_=b("<script>").attr(d.scriptAttrs||{}
13).prop({charset:d.scriptCharset,src:d.url}).on("load error",w=function(M){_.remove(),w=null,M&&P(M.type==="error"?404:200,M.type)}),S.head.appendChild(_[0])},abort:function(){w&&w()}}}});var cn=[],Hr=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var d=cn.pop()||b.expando+"_"+go.guid++;return this[d]=!0,d}}),b.ajaxPrefilter("json jsonp",function(d,_,w){var T,P,M,O=d.jsonp!==!1&&(Hr.test(d.url)?"url":typeof d.data=="string"&&(d.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Hr.test(d.data)&&"data");if(O||d.dataTypes[0]==="jsonp")return T=d.jsonpCallback=C(d.jsonpCallback)?d.jsonpCallback():d.jsonpCallback,O?d[O]=d[O].replace(Hr,"$1"+T):d.jsonp!==!1&&(d.url+=(Ls.test(d.url)?"&":"?")+d.jsonp+"="+T),d.converters["script json"]=function(){return M||b.error(T+" was not called"),M[0]},d.dataTypes[0]="json",P=t[T],t[T]=function(){M=arguments},w.always(function(){P===void 0?b(t).removeProp(T):t[T]=P,d[T]&&(d.jsonpCallback=_.jsonpCallback,cn.push(T)),M&&C(P)&&P(M[0]),M=P=void 0}),"script"}),x.createHTMLDocument=function(){var d=S.implementation.createHTMLDocument("").body;return d.innerHTML="<form></form><form></form>",d.childNodes.length===2}(),b.parseHTML=function(d,_,w){if(typeof d!="string")return[];typeof _=="boolean"&&(w=_,_=!1);var T,P,M;return _||(x.createHTMLDocument?(_=S.implementation.createHTMLDocument(""),T=_.createElement("base"),T.href=S.location.href,_.head.appendChild(T)):_=S),P=Q.exec(d),M=!w&&[],P?[_.createElement(P[1])]:(P=It([d],_,M),M&&M.length&&b(M).remove(),b.merge([],P.childNodes))},b.fn.load=function(d,_,w){var T,P,M,O=this,N=d.indexOf(" ");return N>-1&&(T=_r(d.slice(N)),d=d.slice(0,N)),C(_)?(w=_,_=void 0):_&&typeof _=="object"&&(P="POST"),O.length>0&&b.ajax({url:d,type:P||"GET",dataType:"html",data:_}).done(function(F){M=arguments,O.html(T?b("<div>").append(b.parseHTML(F)).find(T):F)}).always(w&&function(F,Z){O.each(function(){w.apply(this,M||[F.responseText,Z,F])})}),this},b.expr.pseudos.animated=function(d){return b.grep(b.timers,function(_){return d===_.elem}).length},b.offset={setOffset:function(d,_,w){var T,P,M,O,N,F,Z,tt=b.css(d,"position"),nt=b(d),V={};tt==="static"&&(d.style.position="relative"),N=nt.offset(),M=b.css(d,"top"),F=b.css(d,"left"),Z=(tt==="absolute"||tt==="fixed")&&(M+F).indexOf("auto")>-1,Z?(T=nt.position(),O=T.top,P=T.left):(O=parseFloat(M)||0,P=parseFloat(F)||0),C(_)&&(_=_.call(d,w,b.extend({},N))),_.top!=null&&(V.top=_.top-N.top+O),_.left!=null&&(V.left=_.left-N.left+P),"using"in _?_.using.call(d,V):nt.css(V)}},b.fn.extend({offset:function(d){if(arguments.length)return d===void 0?this:this.each(function(P){b.offset.setOffset(this,d,P)});var _,w,T=this[0];if(T)return T.getClientRects().length?(_=T.getBoundingClientRect(),w=T.ownerDocument.defaultView,{top:_.top+w.pageYOffset,left:_.left+w.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var d,_,w,T=this[0],P={top:0,left:0};if(b.css(T,"position")==="fixed")_=T.getBoundingClientRect();else{for(_=this.offset(),w=T.ownerDocument,d=T.offsetParent||w.documentElement;d&&(d===w.body||d===w.documentElement)&&b.css(d,"position")==="static";)d=d.parentNode;d&&d!==T&&d.nodeType===1&&(P=b(d).offset(),P.top+=b.css(d,"borderTopWidth",!0),P.left+=b.css(d,"borderLeftWidth",!0))}return{top:_.top-P.top-b.css(T,"marginTop",!0),left:_.left-P.left-b.css(T,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var d=this.offsetParent;d&&b.css(d,"position")==="static";)d=d.offsetParent;return d||oi})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(d,_){var w=_==="pageYOffset";b.fn[d]=function(T){return be(this,function(P,M,O){var N;if(k(P)?N=P:P.nodeType===9&&(N=P.defaultView),O===void 0)return N?N[_]:P[M];N?N.scrollTo(w?N.pageXOffset:O,w?O:N.pageYOffset):P[M]=O},d,T,arguments.length)}}),b.each(["top","left"],function(d,_){b.cssHooks[_]=ti(x.pixelPosition,function(w,T){if(T)return T=Yi(w,_),Bi.test(T)?b(w).position()[_]+"px":T})}),b.each({Height:"height",Width:"width"},function(d,_){b.each({padding:"inner"+d,content:_,"":"outer"+d},function(w,T){b.fn[T]=function(P,M){var O=arguments.length&&(w||typeof P!="boolean"),N=w||(P===!0||M===!0?"margin":"border");return be(this,function(F,Z,tt){var nt;return k(F)?T.indexOf("outer")===0?F["inner"+d]:F.document.documentElement["client"+d]:F.nodeType===9?(nt=F.documentElement,Math.max(F.body["scroll"+d],nt["scroll"+d],F.body["offset"+d],nt["offset"+d],nt["client"+d])):tt===void 0?b.css(F,Z,N):b.style(F,Z,tt,N)},_,O?P:void 0,O)}})}),b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(d,_){b.fn[_]=function(w){return this.on(_,w)}}),b.fn.extend({bind:function(d,_,w){return this.on(d,null,_,w)},unbind:function(d,_){return this.off(d,null,_)},delegate:function(d,_,w,T){return this.on(_,d,w,T)},undelegate:function(d,_,w){return arguments.length===1?this.off(d,"**"):this.off(_,d||"**",w)},hover:function(d,_){return this.on("mouseenter",d).on("mouseleave",_||d)}}),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(d,_){b.fn[_]=function(w,T){return arguments.length>0?this.on(_,null,w,T):this.trigger(_)}});var tl=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;b.proxy=function(d,_){var w,T,P;if(typeof _=="string"&&(w=d[_],_=d,d=w),!!C(d))return T=i.call(arguments,2),P=function(){return d.apply(_||this,T.concat(i.call(arguments)))},P.guid=d.guid=d.guid||b.guid++,P},b.holdReady=function(d){d?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=J,b.isFunction=C,b.isWindow=k,b.camelCase=Ue,b.type=R,b.now=Date.now,b.isNumeric=function(d){var _=b.type(d);return(_==="number"||_==="string")&&!isNaN(d-parseFloat(d))},b.trim=function(d){return d==null?"":(d+"").replace(tl,"$1")};var hu=t.jQuery,oa=t.$;return b.noConflict=function(d){return t.$===b&&(t.$=oa),d&&t.jQuery===b&&(t.jQuery=hu),b},typeof n=="undefined"&&(t.jQuery=t.$=b),b})}(pu)),pu.exports}var Lg=Hl();const ef=Va(Lg);var nf={exports:{}};/*!
14 * Select2 4.1.0-rc.0
15 * https://select2.github.io
16 *
17 * Released under the MIT license
18 * https://github.com/select2/select2/blob/master/LICENSE.md
19 */(function(p){(function(t){p.exports?p.exports=function(n,s){return s===void 0&&(typeof window!="undefined"?s=Hl():s=Hl()(n)),t(s),s}:t(jQuery)})(function(t){var n=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var e;return function(){if(!e||!e.requirejs){e?o=e:e={};/**
20 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
21 * Released under MIT license, http://github.com/requirejs/almond/LICENSE
22 */var i,o,a;(function(l){var c,h,g,m,v={},x={},C={},k={},S=Object.prototype.hasOwnProperty,A=[].slice,z=/\.js$/;function R(q,st){return S.call(q,st)}function W(q,st){var mt,xt,ht,ot,Nt,B,Lt,Q,yt,pt,dt,_t,At=st&&st.split("/"),se=C.map,me=se&&se["*"]||{};if(q){for(q=q.split("/"),Nt=q.length-1,C.nodeIdCompat&&z.test(q[Nt])&&(q[Nt]=q[Nt].replace(z,"")),q[0].charAt(0)==="."&&At&&(_t=At.slice(0,At.length-1),q=_t.concat(q)),yt=0;yt<q.length;yt++)if(dt=q[yt],dt===".")q.splice(yt,1),yt-=1;else if(dt===".."){if(yt===0||yt===1&&q[2]===".."||q[yt-1]==="..")continue;yt>0&&(q.splice(yt-1,2),yt-=2)}q=q.join("/")}if((At||me)&&se){for(mt=q.split("/"),yt=mt.length;yt>0;yt-=1){if(xt=mt.slice(0,yt).join("/"),At){for(pt=At.length;pt>0;pt-=1)if(ht=se[At.slice(0,pt).join("/")],ht&&(ht=ht[xt],ht)){ot=ht,B=yt;break}}if(ot)break;!Lt&&me&&me[xt]&&(Lt=me[xt],Q=yt)}!ot&&Lt&&(ot=Lt,B=Q),ot&&(mt.splice(0,B,ot),q=mt.join("/"))}return q}function Y(q,st){return function(){var mt=A.call(arguments,0);
22return typeof mt[0]!="string"&&mt.length===1&&mt.push(null),h.apply(l,mt.concat([q,st]))}}function b(q){return function(st){return W(st,q)}}function rt(q){return function(st){v[q]=st}}function J(q){if(R(x,q)){var st=x[q];delete x[q],k[q]=!0,c.apply(l,st)}if(!R(v,q)&&!R(k,q))throw new Error("No "+q);return v[q]}function at(q){var st,mt=q?q.indexOf("!"):-1;return mt>-1&&(st=q.substring(0,mt),q=q.substring(mt+1,q.length)),[st,q]}function St(q){return q?at(q):[]}g=function(q,st){var mt,xt=at(q),ht=xt[0],ot=st[1];return q=xt[1],ht&&(ht=W(ht,ot),mt=J(ht)),ht?mt&&mt.normalize?q=mt.normalize(q,b(ot)):q=W(q,ot):(q=W(q,ot),xt=at(q),ht=xt[0],q=xt[1],ht&&(mt=J(ht))),{f:ht?ht+"!"+q:q,n:q,pr:ht,p:mt}};function ut(q){return function(){return C&&C.config&&C.config[q]||{}}}m={require:function(q){return Y(q)},exports:function(q){var st=v[q];return typeof st!="undefined"?st:v[q]={}},module:function(q){return{id:q,uri:"",exports:v[q],config:ut(q)}}},c=function(q,st,mt,xt){var ht,ot,Nt,B,Lt,Q,yt=[],pt=typeof mt,dt;if(xt=xt||q,Q=St(xt),pt==="undefined"||pt==="function"){for(st=!st.length&&mt.length?["require","exports","module"]:st,Lt=0;Lt<st.length;Lt+=1)if(B=g(st[Lt],Q),ot=B.f,ot==="require")yt[Lt]=m.require(q);else if(ot==="exports")yt[Lt]=m.exports(q),dt=!0;else if(ot==="module")ht=yt[Lt]=m.module(q);else if(R(v,ot)||R(x,ot)||R(k,ot))yt[Lt]=J(ot);else if(B.p)B.p.load(B.n,Y(xt,!0),rt(ot),{}),yt[Lt]=v[ot];else throw new Error(q+" missing "+ot);Nt=mt?mt.apply(v[q],yt):void 0,q&&(ht&&ht.exports!==l&&ht.exports!==v[q]?v[q]=ht.exports:(Nt!==l||!dt)&&(v[q]=Nt))}else q&&(v[q]=mt)},i=o=h=function(q,st,mt,xt,ht){if(typeof q=="string")return m[q]?m[q](st):J(g(q,St(st)).f);if(!q.splice){if(C=q,C.deps&&h(C.deps,C.callback),!st)return;st.splice?(q=st,st=mt,mt=null):q=l}return st=st||function(){},typeof mt=="function"&&(mt=xt,xt=ht),xt?c(l,q,st,mt):setTimeout(function(){c(l,q,st,mt)},4),h},h.config=function(q){return h(q)},i._defined=v,a=function(q,st,mt){if(typeof q!="string")throw new Error("See almond README: incorrect module build, no module name");st.splice||(mt=st,st=[]),!R(v,q)&&!R(x,q)&&(x[q]=[q,st,mt])},a.amd={jQuery:!0}})(),e.requirejs=i,e.require=o,e.define=a}}(),e.define("almond",function(){}),e.define("jquery",[],function(){var i=t||$;return i==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."),i}),e.define("select2/utils",["jquery"],function(i){var o={};o.Extend=function(h,g){var m={}.hasOwnProperty;function v(){this.constructor=h}for(var x in g)m.call(g,x)&&(h[x]=g[x]);return v.prototype=g.prototype,h.prototype=new v,h.__super__=g.prototype,h};function a(h){var g=h.prototype,m=[];for(var v in g){var x=g[v];typeof x=="function"&&v!=="constructor"&&m.push(v)}return m}o.Decorate=function(h,g){var m=a(g),v=a(h);function x(){var W=Array.prototype.unshift,Y=g.prototype.constructor.length,b=h.prototype.constructor;Y>0&&(W.call(arguments,h.prototype.constructor),b=g.prototype.constructor),b.apply(this,arguments)}g.displayName=h.displayName;function C(){this.constructor=x}x.prototype=new C;for(var k=0;k<v.length;k++){var S=v[k];x.prototype[S]=h.prototype[S]}for(var A=function(W){var Y=function(){};W in x.prototype&&(Y=x.prototype[W]);var b=g.prototype[W];return function(){var rt=Array.prototype.unshift;return rt.call(arguments,Y),b.apply(this,arguments)}},z=0;z<m.length;z++){var R=m[z];x.prototype[R]=A(R)}return x};var l=function(){this.listeners={}};l.prototype.on=function(h,g){this.listeners=this.listeners||{},h in this.listeners?this.listeners[h].push(g):this.listeners[h]=[g]},l.prototype.trigger=function(h){var g=Array.prototype.slice,m=g.call(arguments,1);this.listeners=this.listeners||{},m==null&&(m=[]),m.length===0&&m.push({}),m[0]._type=h,h in this.listeners&&this.invoke(this.listeners[h],g.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},l.prototype.invoke=function(h,g){for(var m=0,v=h.length;m<v;m++)h[m].apply(this,g)},o.Observable=l,o.generateChars=function(h){for(var g="",m=0;m<h;m++){var v=Math.floor(Math.random()*36);g+=v.toString(36)}return g},o.bind=function(h,g){return function(){h.apply(g,arguments)}},o._convertData=function(h){for(var g in h){var m=g.split("-"),v=h;if(m.length!==1){for(var x=0;x<m.length;x++){var C=m[x];C=C.substring(0,1).toLowerCase()+C.substring(1),C in v||(v[C]={}),x==m.length-1&&(v[C]=h[g]),v=v[C]}delete h[g]}}return h},o.hasScroll=function(h,g){var m=i(g),v=g.style.overflowX,x=g.style.overflowY;return v===x&&(x==="hidden"||x==="visible")?!1:v==="scroll"||x==="scroll"?!0:m.innerHe
22ight()<g.scrollHeight||m.innerWidth()<g.scrollWidth},o.escapeMarkup=function(h){var g={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return typeof h!="string"?h:String(h).replace(/[&<>"'\/\\]/g,function(m){return g[m]})},o.__cache={};var c=0;return o.GetUniqueElementId=function(h){var g=h.getAttribute("data-select2-id");return g!=null||(h.id?g="select2-data-"+h.id:g="select2-data-"+(++c).toString()+"-"+o.generateChars(4),h.setAttribute("data-select2-id",g)),g},o.StoreData=function(h,g,m){var v=o.GetUniqueElementId(h);o.__cache[v]||(o.__cache[v]={}),o.__cache[v][g]=m},o.GetData=function(h,g){var m=o.GetUniqueElementId(h);return g?o.__cache[m]&&o.__cache[m][g]!=null?o.__cache[m][g]:i(h).data(g):o.__cache[m]},o.RemoveData=function(h){var g=o.GetUniqueElementId(h);o.__cache[g]!=null&&delete o.__cache[g],h.removeAttribute("data-select2-id")},o.copyNonInternalCssClasses=function(h,g){var m=h.getAttribute("class").trim().split(/\s+/);m=m.filter(function(C){return C.indexOf("select2-")===0});var v=g.getAttribute("class").trim().split(/\s+/);v=v.filter(function(C){return C.indexOf("select2-")!==0});var x=m.concat(v);h.setAttribute("class",x.join(" "))},o}),e.define("select2/results",["jquery","./utils"],function(i,o){function a(l,c,h){this.$element=l,this.data=h,this.options=c,a.__super__.constructor.call(this)}return o.Extend(a,o.Observable),a.prototype.render=function(){var l=i('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&l.attr("aria-multiselectable","true"),this.$results=l,l},a.prototype.clear=function(){this.$results.empty()},a.prototype.displayMessage=function(l){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var h=i('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),g=this.options.get("translations").get(l.message);h.append(c(g(l.args))),h[0].className+=" select2-results__message",this.$results.append(h)},a.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},a.prototype.append=function(l){this.hideLoading();var c=[];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 h=0;h<l.results.length;h++){var g=l.results[h],m=this.option(g);c.push(m)}this.$results.append(c)},a.prototype.position=function(l,c){var h=c.find(".select2-results");h.append(l)},a.prototype.sort=function(l){var c=this.options.get("sorter");return c(l)},a.prototype.highlightFirstItem=function(){var l=this.$results.find(".select2-results__option--selectable"),c=l.filter(".select2-results__option--selected");c.length>0?c.first().trigger("mouseenter"):l.first().trigger("mouseenter"),this.ensureHighlightVisible()},a.prototype.setClasses=function(){var l=this;this.data.current(function(c){var h=c.map(function(m){return m.id.toString()}),g=l.$results.find(".select2-results__option--selectable");g.each(function(){var m=i(this),v=o.GetData(this,"data"),x=""+v.id;v.element!=null&&v.element.selected||v.element==null&&h.indexOf(x)>-1?(this.classList.add("select2-results__option--selected"),m.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),m.attr("aria-selected","false"))})})},a.prototype.showLoading=function(l){this.hideLoading();var c=this.options.get("translations").get("searching"),h={disabled:!0,loading:!0,text:c(l)},g=this.option(h);g.className+=" loading-results",this.$results.prepend(g)},a.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},a.prototype.option=function(l){var c=document.createElement("li");c.classList.add("select2-results__option"),c.classList.add("select2-results__option--selectable");var h={role:"option"},g=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;(l.element!=null&&g.call(l.element,":disabled")||l.element==null&&l.disabled)&&(h["aria-disabled"]="true",c.classList.remove("select2-results__option--selectable"),c.classList.add("select2-results__option--disabled")),l.id==null&&c.classList.remove("select2-results__option--selectable"),l._resultId!=null&&(c.id=l._resultId),l.title&&(c.title=l.title),l.children&&(h.role="group",h["aria-label"]=l.text,c.classList.remove("select2-results__option--selectable"),c.classList.add("select2-results__option--group"));for(var m in h){var v=h[m];c.setAttribute(m,v)}if(l.children){var x=i(c),C=document.createElement("strong");C.className="select2-results__group",this.template(l,C);for(var k=[],S=0;S<l.children.length;S++){var A=l.children[S],z=this.option(A);k.push(z)}var R=i("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});R.append(k),x.append(C),x.append(R)}else this.template(l,c);return o.StoreData(c,"data",l),c},a.prototype.bind=function(l,c){var h=this,g=l.id+"-results";this.$results.attr("id",g),l.on("results:all",function(m){h.clear(),h.append(m.data),l.isOpen()&&(h.setClasses(),h.highlightFirstItem())}),l.on("results:append",function(m){h.append(m.data),l.isOpen()&&h.setClasses()}),l.on("query",function(m){h.hideMessages(),h.showLoading(m)}),l.on("select",function(){l.isOpen()&&(h.setClasses(),h.options.get("scrollAfterSelect")&&h.highlightFirstItem())}),l.on("unselect",function(){l.isOpen()&&(h.setClasses(),h.options.get("scrollAfterSelect")&&h.highlightFirstItem())}),l.on("open",function(){h.$results.attr("aria-expanded","true"),h.$results.attr("aria-hidden","false"),h.setClasses(),h.ensureHighlightVisible()}
22),l.on("close",function(){h.$results.attr("aria-expanded","false"),h.$results.attr("aria-hidden","true"),h.$results.removeAttr("aria-activedescendant")}),l.on("results:toggle",function(){var m=h.getHighlightedResults();m.length!==0&&m.trigger("mouseup")}),l.on("results:select",function(){var m=h.getHighlightedResults();if(m.length!==0){var v=o.GetData(m[0],"data");m.hasClass("select2-results__option--selected")?h.trigger("close",{}):h.trigger("select",{data:v})}}),l.on("results:previous",function(){var m=h.getHighlightedResults(),v=h.$results.find(".select2-results__option--selectable"),x=v.index(m);if(!(x<=0)){var C=x-1;m.length===0&&(C=0);var k=v.eq(C);k.trigger("mouseenter");var S=h.$results.offset().top,A=k.offset().top,z=h.$results.scrollTop()+(A-S);C===0?h.$results.scrollTop(0):A-S<0&&h.$results.scrollTop(z)}}),l.on("results:next",function(){var m=h.getHighlightedResults(),v=h.$results.find(".select2-results__option--selectable"),x=v.index(m),C=x+1;if(!(C>=v.length)){var k=v.eq(C);k.trigger("mouseenter");var S=h.$results.offset().top+h.$results.outerHeight(!1),A=k.offset().top+k.outerHeight(!1),z=h.$results.scrollTop()+A-S;C===0?h.$results.scrollTop(0):A>S&&h.$results.scrollTop(z)}}),l.on("results:focus",function(m){m.element[0].classList.add("select2-results__option--highlighted"),m.element[0].setAttribute("aria-selected","true")}),l.on("results:message",function(m){h.displayMessage(m)}),i.fn.mousewheel&&this.$results.on("mousewheel",function(m){var v=h.$results.scrollTop(),x=h.$results.get(0).scrollHeight-v+m.deltaY,C=m.deltaY>0&&v-m.deltaY<=0,k=m.deltaY<0&&x<=h.$results.height();C?(h.$results.scrollTop(0),m.preventDefault(),m.stopPropagation()):k&&(h.$results.scrollTop(h.$results.get(0).scrollHeight-h.$results.height()),m.preventDefault(),m.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(m){var v=i(this),x=o.GetData(this,"data");if(v.hasClass("select2-results__option--selected")){h.options.get("multiple")?h.trigger("unselect",{originalEvent:m,data:x}):h.trigger("close",{});return}h.trigger("select",{originalEvent:m,data:x})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(m){var v=o.GetData(this,"data");h.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),h.trigger("results:focus",{data:v,element:i(this)})})},a.prototype.getHighlightedResults=function(){var l=this.$results.find(".select2-results__option--highlighted");return l},a.prototype.destroy=function(){this.$results.remove()},a.prototype.ensureHighlightVisible=function(){var l=this.getHighlightedResults();if(l.length!==0){var c=this.$results.find(".select2-results__option--selectable"),h=c.index(l),g=this.$results.offset().top,m=l.offset().top,v=this.$results.scrollTop()+(m-g),x=m-g;v-=l.outerHeight(!1)*2,h<=2?this.$results.scrollTop(0):(x>this.$results.outerHeight()||x<0)&&this.$results.scrollTop(v)}},a.prototype.template=function(l,c){var h=this.options.get("templateResult"),g=this.options.get("escapeMarkup"),m=h(l,c);m==null?c.style.display="none":typeof m=="string"?c.innerHTML=g(m):i(c).append(m)},a}),e.define("select2/keys",[],function(){var i={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 i}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(i,o,a){function l(c,h){this.$element=c,this.options=h,l.__super__.constructor.call(this)}return o.Extend(l,o.Observable),l.prototype.render=function(){var c=i('<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")),c.attr("title",this.$element.attr("title")),c.attr("tabindex",this._tabindex),c.attr("aria-disabled","false"),this.$selection=c,c},l.prototype.bind=function(c,h){var g=this,m=c.id+"-results";this.container=c,this.$selection.on("focus",function(v){g.trigger("focus",v)}),this.$selection.on("blur",function(v){g._handleBlur(v)}),this.$selection.on("keydown",function(v){g.trigger("keypress",v),v.which===a.SPACE&&v.preventDefault()}),c.on("results:focus",function(v){g.$selection.attr("aria-activedescendant",v.data._resultId)}),c.on("selection:update",function(v){g.update(v.data)}),c.on("open",function(){g.$selection.attr("aria-expanded","true"),g.$selection.attr("aria-owns",m),g._attachCloseHandler(c)}),c.on("close",function(){g.$selection.attr("aria-expanded","fal
22se"),g.$selection.removeAttr("aria-activedescendant"),g.$selection.removeAttr("aria-owns"),g.$selection.trigger("focus"),g._detachCloseHandler(c)}),c.on("enable",function(){g.$selection.attr("tabindex",g._tabindex),g.$selection.attr("aria-disabled","false")}),c.on("disable",function(){g.$selection.attr("tabindex","-1"),g.$selection.attr("aria-disabled","true")})},l.prototype._handleBlur=function(c){var h=this;window.setTimeout(function(){document.activeElement==h.$selection[0]||i.contains(h.$selection[0],document.activeElement)||h.trigger("blur",c)},1)},l.prototype._attachCloseHandler=function(c){i(document.body).on("mousedown.select2."+c.id,function(h){var g=i(h.target),m=g.closest(".select2"),v=i(".select2.select2-container--open");v.each(function(){if(this!=m[0]){var x=o.GetData(this,"element");x.select2("close")}})})},l.prototype._detachCloseHandler=function(c){i(document.body).off("mousedown.select2."+c.id)},l.prototype.position=function(c,h){var g=h.find(".selection");g.append(c)},l.prototype.destroy=function(){this._detachCloseHandler(this.container)},l.prototype.update=function(c){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}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(i,o,a,l){function c(){c.__super__.constructor.apply(this,arguments)}return a.Extend(c,o),c.prototype.render=function(){var h=c.__super__.render.call(this);return h[0].classList.add("select2-selection--single"),h.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),h},c.prototype.bind=function(h,g){var m=this;c.__super__.bind.apply(this,arguments);var v=h.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",v).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",v),this.$selection.attr("aria-controls",v),this.$selection.on("mousedown",function(x){x.which===1&&m.trigger("toggle",{originalEvent:x})}),this.$selection.on("focus",function(x){}),this.$selection.on("blur",function(x){}),h.on("focus",function(x){h.isOpen()||m.$selection.trigger("focus")})},c.prototype.clear=function(){var h=this.$selection.find(".select2-selection__rendered");h.empty(),h.removeAttr("title")},c.prototype.display=function(h,g){var m=this.options.get("templateSelection"),v=this.options.get("escapeMarkup");return v(m(h,g))},c.prototype.selectionContainer=function(){return i("<span></span>")},c.prototype.update=function(h){if(h.length===0){this.clear();return}var g=h[0],m=this.$selection.find(".select2-selection__rendered"),v=this.display(g,m);m.empty().append(v);var x=g.title||g.text;x?m.attr("title",x):m.removeAttr("title")},c}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,o,a){function l(c,h){l.__super__.constructor.apply(this,arguments)}return a.Extend(l,o),l.prototype.render=function(){var c=l.__super__.render.call(this);return c[0].classList.add("select2-selection--multiple"),c.html('<ul class="select2-selection__rendered"></ul>'),c},l.prototype.bind=function(c,h){var g=this;l.__super__.bind.apply(this,arguments);var m=c.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",m),this.$selection.on("click",function(v){g.trigger("toggle",{originalEvent:v})}),this.$selection.on("click",".select2-selection__choice__remove",function(v){if(!g.isDisabled()){var x=i(this),C=x.parent(),k=a.GetData(C[0],"data");g.trigger("unselect",{originalEvent:v,data:k})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(v){g.isDisabled()||v.stopPropagation()})},l.prototype.clear=function(){var c=this.$selection.find(".select2-selection__rendered");c.empty(),c.removeAttr("title")},l.prototype.display=function(c,h){var g=this.options.get("templateSelection"),m=this.options.get("escapeMarkup");return m(g(c,h))},l.prototype.selectionContainer=function(){var c=i('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>');return c},l.prototype.update=function(c){if(this.clear(),c.length!==0){for(var h=[],g=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",m=0;m<c.length;m++){var v=c[m],x=this.selectionContainer(),C=this.display(v,x),k=g+a.generateChars(4)+"-";v.id?k+=v.id:k+=a.generateChars(4),x.find(".select2-selection__choice__display").append(C).attr("id",k);var S=v.title||v.text;S&&x.attr("title",S);var A=this.options.get("translations").get("removeItem"),z=x.find(".select2-selection__choice__remove");z.attr("title",A()),z.attr("aria-label",A()),z.attr("aria-describedby",k),a.StoreData(x[0],"data",v),h.push(x)}var R=this.$selection.find(".select2-selection__rendered");R.append(h)}},l}),e.define("select2/selection/placeholder",[],function(){function i(o,a,l){this.placeholder=this.normalizePlaceholder(l.get("placeholder")),o.call(this,a,l)}return i.prototype.normalizePlaceholder=function(o,a){return typeof a=="str
22ing"&&(a={id:"",text:a}),a},i.prototype.createPlaceholder=function(o,a){var l=this.selectionContainer();l.html(this.display(a)),l[0].classList.add("select2-selection__placeholder"),l[0].classList.remove("select2-selection__choice");var c=a.title||a.text||l.text();return this.$selection.find(".select2-selection__rendered").attr("title",c),l},i.prototype.update=function(o,a){var l=a.length==1&&a[0].id!=this.placeholder.id,c=a.length>1;if(c||l)return o.call(this,a);this.clear();var h=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(h)},i}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,o,a){function l(){}return l.prototype.bind=function(c,h,g){var m=this;c.call(this,h,g),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(v){m._handleClear(v)}),h.on("keypress",function(v){m._handleKeyboardClear(v,h)})},l.prototype._handleClear=function(c,h){if(!this.isDisabled()){var g=this.$selection.find(".select2-selection__clear");if(g.length!==0){h.stopPropagation();var m=a.GetData(g[0],"data"),v=this.$element.val();this.$element.val(this.placeholder.id);var x={data:m};if(this.trigger("clear",x),x.prevented){this.$element.val(v);return}for(var C=0;C<m.length;C++)if(x={data:m[C]},this.trigger("unselect",x),x.prevented){this.$element.val(v);return}this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}},l.prototype._handleKeyboardClear=function(c,h,g){g.isOpen()||(h.which==o.DELETE||h.which==o.BACKSPACE)&&this._handleClear(h)},l.prototype.update=function(c,h){if(c.call(this,h),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||h.length===0)){var g=this.$selection.find(".select2-selection__rendered").attr("id"),m=this.options.get("translations").get("removeAllItems"),v=i('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>');v.attr("title",m()),v.attr("aria-label",m()),v.attr("aria-describedby",g),a.StoreData(v[0],"data",h),this.$selection.prepend(v),this.$selection[0].classList.add("select2-selection--clearable")}},l}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,o,a){function l(c,h,g){c.call(this,h,g)}return l.prototype.render=function(c){var h=this.options.get("translations").get("search"),g=i('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=g,this.$search=g.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",h());var m=c.call(this);return this._transferTabIndex(),m.append(this.$searchContainer),m},l.prototype.bind=function(c,h,g){var m=this,v=h.id+"-results",x=h.id+"-container";c.call(this,h,g),m.$search.attr("aria-describedby",x),h.on("open",function(){m.$search.attr("aria-controls",v),m.$search.trigger("focus")}),h.on("close",function(){m.$search.val(""),m.resizeSearch(),m.$search.removeAttr("aria-controls"),m.$search.removeAttr("aria-activedescendant"),m.$search.trigger("focus")}),h.on("enable",function(){m.$search.prop("disabled",!1),m._transferTabIndex()}),h.on("disable",function(){m.$search.prop("disabled",!0)}),h.on("focus",function(S){m.$search.trigger("focus")}),h.on("results:focus",function(S){S.data._resultId?m.$search.attr("aria-activedescendant",S.data._resultId):m.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(S){m.trigger("focus",S)}),this.$selection.on("focusout",".select2-search--inline",function(S){m._handleBlur(S)}),this.$selection.on("keydown",".select2-search--inline",function(S){S.stopPropagation(),m.trigger("keypress",S),m._keyUpPrevented=S.isDefaultPrevented();var A=S.which;if(A===a.BACKSPACE&&m.$search.val()===""){var z=m.$selection.find(".select2-selection__choice").last();if(z.length>0){var R=o.GetData(z[0],"data");m.searchRemoveChoice(R),S.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(S){m.$search.val()&&S.stopPropagation()});var C=document.documentMode,k=C&&C<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(S){if(k){m.$selection.off("input.search input.searchcheck");return}m.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(S){if(k&&S.type==="input"){m.$selection.off("input.search input.searchcheck");return}var A=S.which;A==a.SHIFT||A==a.CTRL||A==a.ALT||A!=a.TAB&&m.handleSearch(S)})},l.prototype._transferTabIndex=function(c){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},l.prototype.createPlaceholder=function(c,h){this.$search.attr("placeholder",h.text)},l.prototype.update=function(c,h){var g=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),c.call(this,h),this.resizeSearch(),g&&this.$search.trigger("focus")},l.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var c=this.$search.val();this.trigger("query",{term:c})}this._keyUpPrevented=!1},l.prototype.searchRemoveChoice=function(c,h){this.trigger("unselect",{data:h}),this.$search.val(h.text),this.handleSearch()},l.prototype.resizeSearch=function(){this.$search.css("width","25px");var c="100%";if(this.$search.attr("placeholder")===""){var h=this.$search.val().length+1;c=h*.75+"em"}this.$search.css("width",c)},l}),e.define("select2/selection/selectionCss",["../utils"],function(i){function o(){}return o.prototype.render=function(a){var l=a.call(this),c=this.options.get("selectionCssClass")||"";return c.indexOf(":all:")!==-1&&(c=c.replace(":all:",""),i.copyNonInternalCssClasse
vendor: 4,922 bytes, line 22
22s(l[0],this.$element[0])),l.addClass(c),l},o}),e.define("select2/selection/eventRelay",["jquery"],function(i){function o(){}return o.prototype.bind=function(a,l,c){var h=this,g=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],m=["opening","closing","selecting","unselecting","clearing"];a.call(this,l,c),l.on("*",function(v,x){if(g.indexOf(v)!==-1){x=x||{};var C=i.Event("select2:"+v,{params:x});h.$element.trigger(C),m.indexOf(v)!==-1&&(x.prevented=C.isDefaultPrevented())}})},o}),e.define("select2/translation",["jquery","require"],function(i,o){function a(l){this.dict=l||{}}return a.prototype.all=function(){return this.dict},a.prototype.get=function(l){return this.dict[l]},a.prototype.extend=function(l){this.dict=i.extend({},l.all(),this.dict)},a._cache={},a.loadPath=function(l){if(!(l in a._cache)){var c=o(l);a._cache[l]=c}return new a(a._cache[l])},a}),e.define("select2/diacritics",[],function(){var i={"Ⓐ":"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",á
22º¿:"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 i}),e.define("select2/data/base",["../utils"],function(i){function o(a,l){o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},o.prototype.query=function(a,l){throw new Error("The `query` method must be defined in child classes.")},o.prototype.bind=function(a,l){},o.prototype.destroy=function(){},o.prototype.generateResultId=function(a,l){var c=a.id+"-result-";return c+=i.generateChars(4),l.id!=null?c+="-"+l.id.toString():c+="-"+i.generateChars(4),c},o}),e.define("select2/data/select",["./base","../utils","jquery"],function(i,o,a){function l(c,h){this.$element=c,this.options=h,l.__super__.constructor.call(this)}return o.Extend(l,i),l.prototype.current=function(c){var h=this,g=Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(m){return h.item(a(m))});c(g)},l.prototype.select=function(c){var h=this;if(c.selected=!0,c.element!=null&&c.element.tagName.toLowerCase()==="option"){c.element.selected=!0,this.$element.trigger("input").trigger("change");return}if(this.$element.prop("multiple"))this.current(function(m){var v=[];c=[c],c.push.apply(c,m);for(var x=0;x<c.length;x++){var C=c[x].id;v.indexOf(C)===-1&&v.push(C)}h.$element.val(v),h.$element.trigger("input").trigger("change")});else{var g=c.id;this.$element.val(g),this.$element.trigger("input").trigger("change")}},l.prototype.unselect=function(c){var h=this;if(this.$element.prop("multiple")){if(c.selected=!1,c.element!=null&&c.element.tagName.toLowerCase()==="option"){c.element.selected=!1,this.$element.trigger("input").trigger("change");return}this.current(function(g){for(var m=[],v=0;v<g.length;v++){var x=g[v].id;x!==c.id&&m.indexOf(x)===-1&&m.push(x)}h.$element.val(m),h.$element.trigger("input").trigger("change")})}},l.prototype.bind=function(c,h){var g=this;this.container=c,c.on("select",function(m){g.select(m.data)}),c.on("unselect",function(m){g.unselect(m.data)})},l.prototype.destroy=function(){this.$element.find("*").each(function(){o.RemoveData(this)})},l.prototype.query=function(c,h){var g=[],m=this,v=this.$element.children();v.each(function(){if(!(this.tagName.toLowerCase()!=="option"&&this.tagName.toLowerCase()!=="optgroup")){var x=a(this),C=m.item(x),k=m.matches(c,C
22);k!==null&&g.push(k)}}),h({results:g})},l.prototype.addOptions=function(c){this.$element.append(c)},l.prototype.option=function(c){var h;c.children?(h=document.createElement("optgroup"),h.label=c.text):(h=document.createElement("option"),h.textContent!==void 0?h.textContent=c.text:h.innerText=c.text),c.id!==void 0&&(h.value=c.id),c.disabled&&(h.disabled=!0),c.selected&&(h.selected=!0),c.title&&(h.title=c.title);var g=this._normalizeItem(c);return g.element=h,o.StoreData(h,"data",g),a(h)},l.prototype.item=function(c){var h={};if(h=o.GetData(c[0],"data"),h!=null)return h;var g=c[0];if(g.tagName.toLowerCase()==="option")h={id:c.val(),text:c.text(),disabled:c.prop("disabled"),selected:c.prop("selected"),title:c.prop("title")};else if(g.tagName.toLowerCase()==="optgroup"){h={text:c.prop("label"),children:[],title:c.prop("title")};for(var m=c.children("option"),v=[],x=0;x<m.length;x++){var C=a(m[x]),k=this.item(C);v.push(k)}h.children=v}return h=this._normalizeItem(h),h.element=c[0],o.StoreData(c[0],"data",h),h},l.prototype._normalizeItem=function(c){c!==Object(c)&&(c={id:c,text:c}),c=a.extend({},{text:""},c);var h={selected:!1,disabled:!1};return c.id!=null&&(c.id=c.id.toString()),c.text!=null&&(c.text=c.text.toString()),c._resultId==null&&c.id&&this.container!=null&&(c._resultId=this.generateResultId(this.container,c)),a.extend({},h,c)},l.prototype.matches=function(c,h){var g=this.options.get("matcher");return g(c,h)},l}),e.define("select2/data/array",["./select","../utils","jquery"],function(i,o,a){function l(c,h){this._dataToConvert=h.get("data")||[],l.__super__.constructor.call(this,c,h)}return o.Extend(l,i),l.prototype.bind=function(c,h){l.__super__.bind.call(this,c,h),this.addOptions(this.convertToOptions(this._dataToConvert))},l.prototype.select=function(c){var h=this.$element.find("option").filter(function(g,m){return m.value==c.id.toString()});h.length===0&&(h=this.option(c),this.addOptions(h)),l.__super__.select.call(this,c)},l.prototype.convertToOptions=function(c){var h=this,g=this.$element.find("option"),m=g.map(function(){return h.item(a(this)).id}).get(),v=[];function x(b){return function(){return a(this).val()==b.id}}for(var C=0;C<c.length;C++){var k=this._normalizeItem(c[C]);if(m.indexOf(k.id)>=0){var S=g.filter(x(k)),A=this.item(S),z=a.extend(!0,{},k,A),R=this.option(z);S.replaceWith(R);continue}var W=this.option(k);if(k.children){var Y=this.convertToOptions(k.children);W.append(Y)}v.push(W)}return v},l}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(i,o,a){function l(c,h){this.ajaxOptions=this._applyDefaults(h.get("ajax")),this.ajaxOptions.processResults!=null&&(this.processResults=this.ajaxOptions.processResults),l.__super__.constructor.call(this,c,h)}return o.Extend(l,i),l.prototype._applyDefaults=function(c){var h={data:function(g){return a.extend({},g,{q:g.term})},transport:function(g,m,v){var x=a.ajax(g);return x.then(m),x.fail(v),x}};return a.extend({},h,c,!0)},l.prototype.processResults=function(c){return c},l.prototype.query=function(c,h){var g=this;this._request!=null&&(typeof this._request.abort=="function"&&this._request.abort(),this._request=null);var m=a.extend({type:"GET"},this.ajaxOptions);typeof m.url=="function"&&(m.url=m.url.call(this.$element,c)),typeof m.data=="function"&&(m.data=m.data.call(this.$element,c));function v(){var x=m.transport(m,function(C){var k=g.processResults(C,c);g.options.get("debug")&&window.console&&console.error&&(!k||!k.results||!Array.isArray(k.results))&&console.error("Select2: The AJAX results did not return an array in the `results` key of the response."),h(k)},function(){"status"in x&&(x.status===0||x.status==="0")||g.trigger("results:message",{message:"errorLoading"})});g._request=x}this.ajaxOptions.delay&&c.term!=null?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(v,this.ajaxOptions.delay)):v()},l}),e.define("select2/data/tags",["jquery"],function(i){function o(a,l,c){var h=c.get("tags"),g=c.get("createTag");g!==void 0&&(this.createTag=g);var m=c.get("insertTag");if(m!==void 0&&(this.insertTag=m),a.call(this,l,c),Array.isArray(h))for(var v=0;v<h.length;v++){var x=h[v],C=this._normalizeItem(x),k=this.option(C);this.$element.append(k)}}return o.prototype.query=function(a,l,c){var h=this;if(this._removeOldTags(),l.term==null||l.page!=null){a.call(this,l,c);return}function g(m,v){for(var x=m.results,C=0;C<x.length;C++){var k=x[C],S=k.children!=null&&!g({results:k.children},!0),A=(k.text||"").toUpperCase(),z=(l.term||"").toUpperCase(),R=A===z;if(R||S){if(v)return!1;m.data=x,c(m);return}}if(v)return!0;var W=h.createTag(l);if(W!=null){var Y=h.option(W);Y.attr("data-select2-tag","true"),h.addOptions([Y]),h.insertTag(x,W)}m.results=x,c(m)}a.call(this,l,g)},o.prototype.createTag=function(a,l){if(l.term==null)return null;var c=l.term.trim();return c===""?null:{id:c,text:c}},o.prototype.insertTag=function(a,l,c){l.unshift(c)},o.prototype._removeOldTags=function(a){var l=this.$element.find("option[data-select2-tag]");l.each(function(){this.selected||i(this).remove()})},o}),e.define("select2/data/tokenizer",["jquery"],function(i){function o(a,l,c){var h=c.get("tokenizer");h!==void 0&&(this.tokenizer=h),a.call(this,l,c)}return o.prototype.bind=function(a,l,c){a.call(this,l,c),this.$search=l.dropdown.$search||l.selection.$search||c.find(".select2-search__field")},o.prototype.query=function(a,l,c){var h=this;function g(x){var C=h._normalizeItem(x),k=h.$element.find("option").filter(function(){return i(this).val()===C.id});if(!k.length){var S=h.option(C);S.attr("data-select2-tag",!0),h._removeOldTags(),h.addOptions([S])}m(C)}function m(x){h.trigger("select",{data:x})}l.term=l.term||"";var v=this.tokenizer(l,this.options,g);v.term!==l.term&&(this.$search.length&&(this.$search.val(v.term),this.$search.trigger("focus")),l.term=v.term),a.call(this,l,c)},o.prototype.tokenizer=function(a,l,c,h){for(var g=c.get("tokenSeparators")||[],m=l.term,v=0,x=this.createTag||function(z){return{id:z.term,text:z.term}};v<m.length;
22){var C=m[v];if(g.indexOf(C)===-1){v++;continue}var k=m.substr(0,v),S=i.extend({},l,{term:k}),A=x(S);if(A==null){v++;continue}h(A),m=m.substr(v+1)||"",v=0}return{term:m}},o}),e.define("select2/data/minimumInputLength",[],function(){function i(o,a,l){this.minimumInputLength=l.get("minimumInputLength"),o.call(this,a,l)}return i.prototype.query=function(o,a,l){if(a.term=a.term||"",a.term.length<this.minimumInputLength){this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:a.term,params:a}});return}o.call(this,a,l)},i}),e.define("select2/data/maximumInputLength",[],function(){function i(o,a,l){this.maximumInputLength=l.get("maximumInputLength"),o.call(this,a,l)}return i.prototype.query=function(o,a,l){if(a.term=a.term||"",this.maximumInputLength>0&&a.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:a.term,params:a}});return}o.call(this,a,l)},i}),e.define("select2/data/maximumSelectionLength",[],function(){function i(o,a,l){this.maximumSelectionLength=l.get("maximumSelectionLength"),o.call(this,a,l)}return i.prototype.bind=function(o,a,l){var c=this;o.call(this,a,l),a.on("select",function(){c._checkIfMaximumSelected()})},i.prototype.query=function(o,a,l){var c=this;this._checkIfMaximumSelected(function(){o.call(c,a,l)})},i.prototype._checkIfMaximumSelected=function(o,a){var l=this;this.current(function(c){var h=c!=null?c.length:0;if(l.maximumSelectionLength>0&&h>=l.maximumSelectionLength){l.trigger("results:message",{message:"maximumSelected",args:{maximum:l.maximumSelectionLength}});return}a&&a()})},i}),e.define("select2/dropdown",["jquery","./utils"],function(i,o){function a(l,c){this.$element=l,this.options=c,a.__super__.constructor.call(this)}return o.Extend(a,o.Observable),a.prototype.render=function(){var l=i('<span class="select2-dropdown"><span class="select2-results"></span></span>');return l.attr("dir",this.options.get("dir")),this.$dropdown=l,l},a.prototype.bind=function(){},a.prototype.position=function(l,c){},a.prototype.destroy=function(){this.$dropdown.remove()},a}),e.define("select2/dropdown/search",["jquery"],function(i){function o(){}return o.prototype.render=function(a){var l=a.call(this),c=this.options.get("translations").get("search"),h=i('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=h,this.$search=h.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",c()),l.prepend(h),l},o.prototype.bind=function(a,l,c){var h=this,g=l.id+"-results";a.call(this,l,c),this.$search.on("keydown",function(m){h.trigger("keypress",m),h._keyUpPrevented=m.isDefaultPrevented()}),this.$search.on("input",function(m){i(this).off("keyup")}),this.$search.on("keyup input",function(m){h.handleSearch(m)}),l.on("open",function(){h.$search.attr("tabindex",0),h.$search.attr("aria-controls",g),h.$search.trigger("focus"),window.setTimeout(function(){h.$search.trigger("focus")},0)}),l.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")}),l.on("focus",function(){l.isOpen()||h.$search.trigger("focus")}),l.on("results:all",function(m){if(m.query.term==null||m.query.term===""){var v=h.showSearch(m);v?h.$searchContainer[0].classList.remove("select2-search--hide"):h.$searchContainer[0].classList.add("select2-search--hide")}}),l.on("results:focus",function(m){m.data._resultId?h.$search.attr("aria-activedescendant",m.data._resultId):h.$search.removeAttr("aria-activedescendant")})},o.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var l=this.$search.val();this.trigger("query",{term:l})}this._keyUpPrevented=!1},o.prototype.showSearch=function(a,l){return!0},o}),e.define("select2/dropdown/hidePlaceholder",[],function(){function i(o,a,l,c){this.placeholder=this.normalizePlaceholder(l.get("placeholder")),o.call(this,a,l,c)}return i.prototype.append=function(o,a){a.results=this.removePlaceholder(a.results),o.call(this,a)},i.prototype.normalizePlaceholder=function(o,a){return typeof a=="str
22ing"&&(a={id:"",text:a}),a},i.prototype.removePlaceholder=function(o,a){for(var l=a.slice(0),c=a.length-1;c>=0;c--){var h=a[c];this.placeholder.id===h.id&&l.splice(c,1)}return l},i}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(i){function o(a,l,c,h){this.lastParams={},a.call(this,l,c,h),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return o.prototype.append=function(a,l){this.$loadingMore.remove(),this.loading=!1,a.call(this,l),this.showLoadingMore(l)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},o.prototype.bind=function(a,l,c){var h=this;a.call(this,l,c),l.on("query",function(g){h.lastParams=g,h.loading=!0}),l.on("query:append",function(g){h.lastParams=g,h.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},o.prototype.loadMoreIfNeeded=function(){var a=i.contains(document.documentElement,this.$loadingMore[0]);if(!(this.loading||!a)){var l=this.$results.offset().top+this.$results.outerHeight(!1),c=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1);l+50>=c&&this.loadMore()}},o.prototype.loadMore=function(){this.loading=!0;var a=i.extend({},{page:1},this.lastParams);a.page++,this.trigger("query:append",a)},o.prototype.showLoadingMore=function(a,l){return l.pagination&&l.pagination.more},o.prototype.createLoadingMore=function(){var a=i('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),l=this.options.get("translations").get("loadingMore");return a.html(l(this.lastParams)),a},o}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(i,o){function a(l,c,h){this.$dropdownParent=i(h.get("dropdownParent")||document.body),l.call(this,c,h)}return a.prototype.bind=function(l,c,h){var g=this;l.call(this,c,h),c.on("open",function(){g._showDropdown(),g._attachPositioningHandler(c),g._bindContainerResultHandlers(c)}),c.on("close",function(){g._hideDropdown(),g._detachPositioningHandler(c)}),this.$dropdownContainer.on("mousedown",function(m){m.stopPropagation()})},a.prototype.destroy=function(l){l.call(this),this.$dropdownContainer.remove()},a.prototype.position=function(l,c,h){c.attr("class",h.attr("class")),c[0].classList.remove("select2"),c[0].classList.add("select2-container--open"),c.css({position:"absolute",top:-999999}),this.$container=h},a.prototype.render=function(l){var c=i("<span></span>"),h=l.call(this);return c.append(h),this.$dropdownContainer=c,c},a.prototype._hideDropdown=function(l){this.$dropdownContainer.detach()},a.prototype._bindContainerResultHandlers=function(l,c){if(!this._containerResultsHandlersBound){var h=this;c.on("results:all",function(){h._positionDropdown(),h._resizeDropdown()}),c.on("results:append",function(){h._positionDropdown(),h._resizeDropdown()}),c.on("results:message",function(){h._positionDropdown(),h._resizeDropdown()}),c.on("select",function(){h._positionDropdown(),h._resizeDropdown()}),c.on("unselect",function(){h._positionDropdown(),h._resizeDropdown()}),this._containerResultsHandlersBound=!0}},a.prototype._attachPositioningHandler=function(l,c){var h=this,g="scroll.select2."+c.id,m="resize.select2."+c.id,v="orientationchange.select2."+c.id,x=this.$container.parents().filter(o.hasScroll);x.each(function(){o.StoreData(this,"select2-scroll-position",{x:i(this).scrollLeft(),y:i(this).scrollTop()})}),x.on(g,function(C){var k=o.GetData(this,"select2-scroll-position");i(this).scrollTop(k.y)}),i(window).on(g+" "+m+" "+v,function(C){h._positionDropdown(),h._resizeDropdown()})},a.prototype._detachPositioningHandler=function(l,c){var h="scroll.select2."+c.id,g="resize.select2."+c.id,m="orientationchange.select2."+c.id,v=this.$container.parents().filter(o.hasScroll);v.off(h),i(window).off(h+" "+g+" "+m)},a.prototype._positionDropdown=function(){var l=i(window),c=this.$dropdown[0].classList.contains("select2-dropdown--above"),h=this.$dropdown[0].classList.contains("select2-dropdown--below"),g=null,m=this.$container.offset();m.bottom=m.top+this.$container.outerHeight(!1);var v={height:this.$container.outerHeight(!1)};v.top=m.top,v.bottom=m.top+v.height;var x={height:this.$dropdown.outerHeight(!1)},C={top:l.scrollTop(),bottom:l.scrollTop()+l.height()},k=C.top<m.top-x.height,S=C.bottom>m.bottom+x.height,A={left:m.left,top:v.bottom},z=this.$dropdownParent;z.css("position")==="static"&&(z=z.offsetParent());var R={top:0,left:0};(i.contains(document.body,z[0])||z[0].isConnected)&&(R=z.offset()),A.to
22p-=R.top,A.left-=R.left,!c&&!h&&(g="below"),!S&&k&&!c?g="above":!k&&S&&c&&(g="below"),(g=="above"||c&&g!=="below")&&(A.top=v.top-R.top-x.height),g!=null&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+g),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+g)),this.$dropdownContainer.css(A)},a.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)},a.prototype._showDropdown=function(l){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},a}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function i(a){for(var l=0,c=0;c<a.length;c++){var h=a[c];h.children?l+=i(h.children):l++}return l}function o(a,l,c,h){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,l,c,h)}return o.prototype.showSearch=function(a,l){return i(l.data.results)<this.minimumResultsForSearch?!1:a.call(this,l)},o}),e.define("select2/dropdown/selectOnClose",["../utils"],function(i){function o(){}return o.prototype.bind=function(a,l,c){var h=this;a.call(this,l,c),l.on("close",function(g){h._handleSelectOnClose(g)})},o.prototype._handleSelectOnClose=function(a,l){if(l&&l.originalSelect2Event!=null){var c=l.originalSelect2Event;if(c._type==="select"||c._type==="unselect")return}var h=this.getHighlightedResults();if(!(h.length<1)){var g=i.GetData(h[0],"data");g.element!=null&&g.element.selected||g.element==null&&g.selected||this.trigger("select",{data:g})}},o}),e.define("select2/dropdown/closeOnSelect",[],function(){function i(){}return i.prototype.bind=function(o,a,l){var c=this;o.call(this,a,l),a.on("select",function(h){c._selectTriggered(h)}),a.on("unselect",function(h){c._selectTriggered(h)})},i.prototype._selectTriggered=function(o,a){var l=a.originalEvent;l&&(l.ctrlKey||l.metaKey)||this.trigger("close",{originalEvent:l,originalSelect2Event:a})},i}),e.define("select2/dropdown/dropdownCss",["../utils"],function(i){function o(){}return o.prototype.render=function(a){var l=a.call(this),c=this.options.get("dropdownCssClass")||"";return c.indexOf(":all:")!==-1&&(c=c.replace(":all:",""),i.copyNonInternalCssClasses(l[0],this.$element[0])),l.addClass(c),l},o}),e.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(i){function o(){}return o.prototype.highlightFirstItem=function(a){var l=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(l.length>0){var c=l.first(),h=i.GetData(c[0],"data"),g=h.element;if(g&&g.getAttribute&&g.getAttribute("data-select2-tag")==="true"){c.trigger("mouseenter");return}}a.call(this)},o}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(i){var o=i.input.length-i.maximum,a="Please delete "+o+" character";return o!=1&&(a+="s"),a},inputTooShort:function(i){var o=i.minimum-i.input.length,a="Please enter "+o+" or more characters";return a},loadingMore:function(){return"Loading more results…"},maximumSelected:function(i){var o="You can only select "+i.maximum+" item";return i.maximum!=1&&(o+="s"),o},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),e.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./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","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(i,o,a,l,c,h,g,m,v,x,C,k,S,A,z,R,W,Y,b,rt,J,at,St,ut,q,st,mt,xt,ht,ot,Nt){function B(){this.reset()}B.prototype.apply=function(Q){if(Q=i.extend(!0,{},this.defaults,Q),Q.dataAdapter==null&&(Q.ajax!=null?Q.dataAdapter=z:Q.data!=null?Q.dataAdapter=A:Q.dataAdapter=S,Q.minimumInputLength>0&&(Q.dataAdapter=x.Decorate(Q.dataAdapter,Y)),Q.maximumInputLength>0&&(Q.dataAdapter=x.Decorate(Q.dataAdapter,b)),Q.maximumSelectionLength>0&&(Q.dataAdapter=x.Decorate(Q.dataAdapter,rt)),Q.tags&&(Q.dataAdapter=x.Decorate(Q.dataAdapter,R)),(Q.tokenSeparators!=null||Q.tokenizer!=null)&&(Q.dataAdapter=x.Decorate(Q.dataAdapter,W))),Q.resultsAdapter==null&&(Q.resultsAdapter=o,Q.ajax!=null&&(Q.resultsAdapter=x.Decorate(Q.resultsAdapter,ut)),Q.placeholder!=null&&(Q.resultsAdapter=x.Decorate(Q.resultsAdapter,St)),Q.selectOnClose&&(Q.resultsAdapter=x.Decorate(Q.resultsAdapter,mt)),Q.tags&&(Q.resultsAdapter=x.Decorate(Q.resultsAdapter,ot))),Q.dropdownAdapter==null){if(Q.multiple)Q.dropdownAdapter=J;else{var yt=x.Decorate(J,at);Q.dropdownAdapter=yt}Q.minimumResultsForSearch!==0&&(Q.dropdownAdapter=x.Decorate(Q.dropdownAdapter,st)),Q.closeOnSelect&&(Q.dropdownAdapter=x.Decorate(Q.dropdownAdapter,xt)),Q.dropdownCssClass!=null&&(Q.dropdownAdapter=x.Decorate(Q.dropdownAdapter,ht)),Q.dropdownAdapter=x.Decorate(Q.dropdownAdapter,q)}Q.selectionAdapter==null&&(Q.multiple?Q.selectionAdapter=l:Q.selectionAdapter=a,Q.placeholder!=null&&(Q.selectionAdapter=x.Decorate(Q.selectionAdapter,c)),Q.allowClear&&(Q.selectionAdapter=x.Decorate(Q.selectionAdapter,h)),Q.multiple&&(Q.selectionAdapter=x.Decorate(Q.selectionAdapter,g)),Q.selectionCssClass!=null&&(Q.selectionAdapter=x.Decorate(Q.selectionAdapter,m)),Q.selectionAdapter=x.Decorate(Q.selectionAdapter,v)),Q.language=this._resolveLanguage(Q.language),Q.language.push("en");for(var pt=[],dt=0;dt<Q.language.length;dt++){var _t=Q.language[dt];
22pt.indexOf(_t)===-1&&pt.push(_t)}return Q.language=pt,Q.translations=this._processTranslations(Q.language,Q.debug),Q},B.prototype.reset=function(){function Q(pt){function dt(_t){return k[_t]||_t}return pt.replace(/[^\u0000-\u007E]/g,dt)}function yt(pt,dt){if(pt.term==null||pt.term.trim()==="")return dt;if(dt.children&&dt.children.length>0){for(var _t=i.extend(!0,{},dt),At=dt.children.length-1;At>=0;At--){var se=dt.children[At],me=yt(pt,se);me==null&&_t.children.splice(At,1)}return _t.children.length>0?_t:yt(pt,_t)}var Oe=Q(dt.text).toUpperCase(),Ne=Q(pt.term).toUpperCase();return Oe.indexOf(Ne)>-1?dt:null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:x.escapeMarkup,language:{},matcher:yt,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(pt){return pt},templateResult:function(pt){return pt.text},templateSelection:function(pt){return pt.text},theme:"default",width:"resolve"}},B.prototype.applyFromElement=function(Q,yt){var pt=Q.language,dt=this.defaults.language,_t=yt.prop("lang"),At=yt.closest("[lang]").prop("lang"),se=Array.prototype.concat.call(this._resolveLanguage(_t),this._resolveLanguage(pt),this._resolveLanguage(dt),this._resolveLanguage(At));return Q.language=se,Q},B.prototype._resolveLanguage=function(Q){if(!Q)return[];if(i.isEmptyObject(Q))return[];if(i.isPlainObject(Q))return[Q];var yt;Array.isArray(Q)?yt=Q:yt=[Q];for(var pt=[],dt=0;dt<yt.length;dt++)if(pt.push(yt[dt]),typeof yt[dt]=="string"&&yt[dt].indexOf("-")>0){var _t=yt[dt].split("-"),At=_t[0];pt.push(At)}return pt},B.prototype._processTranslations=function(Q,yt){for(var pt=new C,dt=0;dt<Q.length;dt++){var _t=new C,At=Q[dt];if(typeof At=="string")try{_t=C.loadPath(At)}catch(se){try{At=this.defaults.amdLanguageBase+At,_t=C.loadPath(At)}catch(me){yt&&window.console&&console.warn&&console.warn('Select2: The language file for "'+At+'" could not be automatically loaded. A fallback will be used instead.')}}else i.isPlainObject(At)?_t=new C(At):_t=At;pt.extend(_t)}return pt},B.prototype.set=function(Q,yt){var pt=i.camelCase(Q),dt={};dt[pt]=yt;var _t=x._convertData(dt);i.extend(!0,this.defaults,_t)};var Lt=new B;return Lt}),e.define("select2/options",["jquery","./defaults","./utils"],function(i,o,a){function l(c,h){this.options=c,h!=null&&this.fromElement(h),h!=null&&(this.options=o.applyFromElement(this.options,h)),this.options=o.apply(this.options)}return l.prototype.fromElement=function(c){var h=["select2"];this.options.multiple==null&&(this.options.multiple=c.prop("multiple")),this.options.disabled==null&&(this.options.disabled=c.prop("disabled")),this.options.autocomplete==null&&c.prop("autocomplete")&&(this.options.autocomplete=c.prop("autocomplete")),this.options.dir==null&&(c.prop("dir")?this.options.dir=c.prop("dir"):c.closest("[dir]").prop("dir")?this.options.dir=c.closest("[dir]").prop("dir"):this.options.dir="ltr"),c.prop("disabled",this.options.disabled),c.prop("multiple",this.options.multiple),a.GetData(c[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.'),a.StoreData(c[0],"data",a.GetData(c[0],"select2Tags")),a.StoreData(c[0],"tags",!0)),a.GetData(c[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."),c.attr("ajax--url",a.GetData(c[0],"ajaxUrl")),a.StoreData(c[0],"ajax-Url",a.GetData(c[0],"ajaxUrl")));var g={};function m(W,Y){return Y.toUpperCase()}for(var v=0;v<c[0].attributes.length;v++){var x=c[0].attributes[v].name,C="data-";if(x.substr(0,C.length)==C){var k=x.substring(C.length),S=a.GetData(c[0],k),A=k.replace(/-([a-z])/g,m);g[A]=S}}i.fn.jquery&&i.fn.jquery.substr(0,2)=="1."&&c[0].dataset&&(g=i.extend(!0,{},c[0].dataset,g));var z=i.extend(!0,{},a.GetData(c[0]),g);z=a._convertData(z);for(var R in z)h.indexOf(R)>-1||(i.isPlainObject(this.options[R])?i.extend(this.options[R],z[R]):this.options[R]=z[R]);return this},l.prototype.get=function(c){return this.options[c]},l.prototype.set=function(c,h){this.options[c]=h},l}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(i,o,a,l){var c=function(h,g){a.GetData(h[0],"select2")!=null&&a.GetData(h[0],"select2").destroy(),this.$element=h,this.id=this._generateId(h),g=g||{},this.options=new o(g,h),c.__super__.constructor.call(this);var m=h.attr("tabindex")||0;a.StoreData(h[0],"old-tabindex",m),h.attr("tabindex","-1");var v=this.options.get("dataAdapter");this.dataAdapter=new v(h,this.options);var x=this.render();this._placeContainer(x);var C=this.options.get("selectionAdapter");this.selection=new C(h,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,x);var k=this.options.get("dropdownAdapter");this.dropdown=new k(h,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,x);var S=this.options.get("resultsAdapter");this.results=new S(h,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var A=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(z){A.trigger("selection:update",{data:z})}),h[0].classList.add("select2-hidden-accessible"),h.attr("aria-hidden","true"),this._syncAttributes(),a.StoreData(h[0],"select2",this),h.data("select2",this)};return a.Extend(c,a.Observable),c.prototype._generateId=function(h){var g="";return h.attr("id")!=null?g=h.attr("id"):h.attr("name")!=null?g=h.attr("name")+"-"+a.generateChars(2):g=a.generateChars(4),g=g.replace(/(:|\.|\[|\]|,)/g,""),g="select2-"+g,g}
22,c.prototype._placeContainer=function(h){h.insertAfter(this.$element);var g=this._resolveWidth(this.$element,this.options.get("width"));g!=null&&h.css("width",g)},c.prototype._resolveWidth=function(h,g){var m=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(g=="resolve"){var v=this._resolveWidth(h,"style");return v!=null?v:this._resolveWidth(h,"element")}if(g=="element"){var x=h.outerWidth(!1);return x<=0?"auto":x+"px"}if(g=="style"){var C=h.attr("style");if(typeof C!="string")return null;for(var k=C.split(";"),S=0,A=k.length;S<A;S=S+1){var z=k[S].replace(/\s/g,""),R=z.match(m);if(R!==null&&R.length>=1)return R[1]}return null}if(g=="computedstyle"){var W=window.getComputedStyle(h[0]);return W.width}return g},c.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)},c.prototype._registerDomEvents=function(){var h=this;this.$element.on("change.select2",function(){h.dataAdapter.current(function(g){h.trigger("selection:update",{data:g})})}),this.$element.on("focus.select2",function(g){h.trigger("focus",g)}),this._syncA=a.bind(this._syncAttributes,this),this._syncS=a.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(g){h._syncA(),h._syncS(g)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},c.prototype._registerDataEvents=function(){var h=this;this.dataAdapter.on("*",function(g,m){h.trigger(g,m)})},c.prototype._registerSelectionEvents=function(){var h=this,g=["toggle","focus"];this.selection.on("toggle",function(){h.toggleDropdown()}),this.selection.on("focus",function(m){h.focus(m)}),this.selection.on("*",function(m,v){g.indexOf(m)===-1&&h.trigger(m,v)})},c.prototype._registerDropdownEvents=function(){var h=this;this.dropdown.on("*",function(g,m){h.trigger(g,m)})},c.prototype._registerResultsEvents=function(){var h=this;this.results.on("*",function(g,m){h.trigger(g,m)})},c.prototype._registerEvents=function(){var h=this;this.on("open",function(){h.$container[0].classList.add("select2-container--open")}),this.on("close",function(){h.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){h.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){h.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){h.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(g){h.isOpen()||h.trigger("open",{}),this.dataAdapter.query(g,function(m){h.trigger("results:all",{data:m,query:g})})}),this.on("query:append",function(g){this.dataAdapter.query(g,function(m){h.trigger("results:append",{data:m,query:g})})}),this.on("keypress",function(g){var m=g.which;h.isOpen()?m===l.ESC||m===l.UP&&g.altKey?(h.close(g),g.preventDefault()):m===l.ENTER||m===l.TAB?(h.trigger("results:select",{}),g.preventDefault()):m===l.SPACE&&g.ctrlKey?(h.trigger("results:toggle",{}),g.preventDefault()):m===l.UP?(h.trigger("results:previous",{}),g.preventDefault()):m===l.DOWN&&(h.trigger("results:next",{}),g.preventDefault()):(m===l.ENTER||m===l.SPACE||m===l.DOWN&&g.altKey)&&(h.open(),g.preventDefault())})},c.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},c.prototype._isChangeMutation=function(h){var g=this;if(h.addedNodes&&h.addedNodes.length>0)for(var m=0;m<h.addedNodes.length;m++){var v=h.addedNodes[m];if(v.selected)return!0}else{if(h.removedNodes&&h.removedNodes.length>0)return!0;if(Array.isArray(h))return h.some(function(x){return g._isChangeMutation(x)})}return!1},c.prototype._syncSubtree=function(h){var g=this._isChangeMutation(h),m=this;g&&this.dataAdapter.current(function(v){m.trigger("selection:update",{data:v})})},c.prototype.trigger=function(h,g){var m=c.__super__.trigger,v={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(g===void 0&&(g={}),h in v){var x=v[h],C={prevented:!1,name:h,args:g};if(m.call(this,x,C),C.prevented){g.prevented=!0;return}}m.call(this,h,g)},c.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},c.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},c.prototype.close=function(h){this.isOpen()&&this.trigger("close",{originalEvent:h})},c.prototype.isEnabled=function(){return!this.isDisabled()},c.prototype.isDisabled=function(){return this.options.get("disabled")},c.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},c.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")}
22,c.prototype.focus=function(h){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},c.prototype.enable=function(h){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.'),(h==null||h.length===0)&&(h=[!0]);var g=!h[0];this.$element.prop("disabled",g)},c.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 h=[];return this.dataAdapter.current(function(g){h=g}),h},c.prototype.val=function(h){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.'),h==null||h.length===0)return this.$element.val();var g=h[0];Array.isArray(g)&&(g=g.map(function(m){return m.toString()})),this.$element.val(g).trigger("input").trigger("change")},c.prototype.destroy=function(){a.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",a.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),a.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},c.prototype.render=function(){var h=i('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return h.attr("dir",this.options.get("dir")),this.$container=h,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),a.StoreData(h[0],"element",this.$element),h},c}),e.define("jquery-mousewheel",["jquery"],function(i){return i}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,o,a,l,c){if(i.fn.select2==null){var h=["open","close","destroy"];i.fn.select2=function(g){if(g=g||{},typeof g=="object")return this.each(function(){var x=i.extend(!0,{},g);new a(i(this),x)}),this;if(typeof g=="string"){var m,v=Array.prototype.slice.call(arguments,1);return this.each(function(){var x=c.GetData(this,"select2");x==null&&window.console&&console.error&&console.error("The select2('"+g+"') method was called on an element that is not using Select2."),m=x[g].apply(x,v)}),h.indexOf(g)>-1?this:m}else throw new Error("Invalid arguments for Select2: "+g)}}return i.fn.select2.defaults==null&&(i.fn.select2.defaults=l),a}),{define:e.define,require:e.require}}(),s=n.require("jquery.select2");return t.fn.select2.amd=n,s})})(nf);var Pg=nf.exports;const kg=Va(Pg);window.$=ef;window.jQuery=ef;console.log("Load select2");kg($);const wt=(p,t=1e4)=>(p=parseFloat(p+"")||0,Math.round((p+Number.EPSILON)*t)/t),ic=function(p){if(!(p&&p instanceof Element&&p.offsetParent))return!1;const t=p.scrollHeight>p.clientHeight,n=window.getComputedStyle(p).overflowY,s=n.indexOf("hidden")!==-1,e=n.indexOf("visible")!==-1;return t&&!s&&!e},jl=function(p,t=void 0){return!(!p||p===document.body||t&&p===t)&&(ic(p)?p:jl(p.parentElement,t))},Or=function(p){var t=new DOMParser().parseFromString(p,"text/html").body;if(t.childElementCount>1){for(var n=document.createElement("div");t.firstChild;)n.appendChild(t.firstChild);return n}return t.firstChild},Oc=p=>`${p||""}`.split(" ").filter(t=>!!t),Dr=(p,t,n)=>{p&&Oc(t).forEach(s=>{p.classList.toggle(s,n||!1)})};class xo{constructor(t){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.time=Date.now()}}const Co={passive:!1};class Mg{constructor(t,{start:n=()=>!0,move:s=()=>{},end:e=()=>{}}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=t,this.startCallback=n,this.moveCallback=s,this.endCallback=e;for(const i of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[i]=this[i].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,Co),this.element.addEventListener("touchstart",this.onTouchStart,Co
vendor: 2,162 bytes, line 22
22),this.element.addEventListener("touchmove",this.onMove,Co),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(t){if(!t.buttons||t.button!==0)return;const n=new xo(t);this.currentPointers.some(s=>s.id===n.id)||this.triggerPointerStart(n,t)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(t){for(const n of Array.from(t.changedTouches||[]))this.triggerPointerStart(new xo(n),t);window.addEventListener("blur",this.onWindowBlur)}onMove(t){const n=this.currentPointers.slice(),s="changedTouches"in t?Array.from(t.changedTouches||[]).map(i=>new xo(i)):[new xo(t)],e=[];for(const i of s){const o=this.currentPointers.findIndex(a=>a.id===i.id);o<0||(e.push(i),this.currentPointers[o]=i)}e.length&&this.moveCallback(t,this.currentPointers.slice(),n)}onPointerEnd(t){t.buttons>0&&t.button!==0||(this.triggerPointerEnd(t,new xo(t)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(t){for(const n of Array.from(t.changedTouches||[]))this.triggerPointerEnd(t,new xo(n))}triggerPointerStart(t,n){return!!this.startCallback(n,t,this.currentPointers.slice())&&(this.currentPointers.push(t),this.startPointers.push(t),!0)}triggerPointerEnd(t,n){const s=this.currentPointers.findIndex(e=>e.id===n.id);s<0||(this.currentPointers.splice(s,1),this.startPointers.splice(s,1),this.endCallback(t,n,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const t=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:t.clientX,clientY:t.clientY}),t,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,Co),this.element.removeEventListener("touchstart",this.onTouchStart,Co
22),this.element.removeEventListener("touchmove",this.onMove,Co),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function Eh(p,t){return t?Math.sqrt(Math.pow(t.clientX-p.clientX,2)+Math.pow(t.clientY-p.clientY,2)):0}function Lh(p,t){return t?{clientX:(p.clientX+t.clientX)/2,clientY:(p.clientY+t.clientY)/2}:p}const nc=p=>typeof p=="object"&&p!==null&&p.constructor===Object&&Object.prototype.toString.call(p)==="[object Object]",_n=(p,...t)=>{const n=t.length;for(let s=0;s<n;s++){const e=t[s]||{};Object.entries(e).forEach(([i,o])=>{const a=Array.isArray(o)?[]:{};p[i]||Object.assign(p,{[i]:a}),nc(o)?Object.assign(p[i],_n(a,o)):Array.isArray(o)?Object.assign(p,{[i]:[...o]}):Object.assign(p,{[i]:o})})}return p},gu=function(p,t){return p.split(".").reduce((n,s)=>typeof n=="object"?n[s]:void 0,t)};class ql{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const n of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))n.startsWith("on")&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}setOptions(t){this.options=t?_n({},this.constructor.defaults,t):{};for(const[n,s]of Object.entries(this.option("on")||{}))this.on(n,s)}option(t,...n){let s=gu(t,this.options);return s&&typeof s=="function"&&(s=s.call(this,this,...n)),s}optionFor(t,n,s,...e){let i=gu(n,t);var o;typeof(o=i)!="string"||isNaN(o)||isNaN(parseFloat(o))||(i=parseFloat(i)),i==="true"&&(i=!0),i==="false"&&(i=!1),i&&typeof i=="function"&&(i=i.call(this,this,t,...e));let a=gu(n,this.options);return a&&typeof a=="function"?i=a.call(this,this,t,...e,i):i===void 0&&(i=a),i===void 0?s:i}cn(t){const n=this.options.classes;return n&&n[t]||""}localize(t,n=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,(s,e,i)=>{let o="";return i?o=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${i}`):e&&(o=this.option(`l10n.${e}`)),o||(o=s),o});for(let s=0;s<n.length;s++)t=t.split(n[s][0]).join(n[s][1]);return t=t.replace(/\{\{(.*?)\}\}/g,(s,e)=>e)}on(t,n){let s=[];typeof t=="string"?s=t.split(" "):Array.isArray(t)&&(s=t),this.events||(this.events=new Map),s.forEach(e=>{let i=this.events.get(e);i||(this.events.set(e,[]),i=[]),i.includes(n)||i.push(n),this.events.set(e,i)})}off(t,n){let s=[];typeof t=="string"?s=t.split(" "):Array.isArray(t)&&(s=t),s.forEach(e=>{const i=this.events.get(e);if(Array.isArray(i)){const o=i.indexOf(n);o>-1&&i.splice(o,1)}})}emit(t,...n){[...this.events.get(t)||[]].forEach(s=>s(this,...n)),t!=="*"&&this.emit("*",t,...n)}}Object.defineProperty(ql,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(ql,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class Dc extends ql{constructor(t={}){super(t),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(t={}){const n=new Map;for(const[s,e]of Object.entries(t)){const i=this.option(s),o=this.plugins[s];o||i===!1?o&&i===!1&&(o.detach(),delete this.plugins[s]):n.set(s,new e(this,i||{}))}for(const[s,e]of n)this.plugins[s]=e,e.attach()}detachPlugins(t){t=t||Object.keys(this.plugins);for(const n of t){const s=this.plugins[n];s&&s.detach(),delete this.plugins[n]}return this.emit("detachPlugins"),this}}var ye;(function(p){p[p.Init=0]="Init",p[p.Error=1]="Error",p[p.Ready=2]="Ready",p[p.Panning=3]="Panning",p[p.Mousemove=4]="Mousemove",p[p.Destroy=5]="Destroy"})(ye||(ye={}));const Wr=["a","b","c","d","e","f"],rf={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},Ag={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:rf},Ph='<circle cx="25" cy="25" r="20"></circle>',zc='<div class="f-spinner"><svg viewBox="0 0 50 50">'+Ph+Ph+"</svg></div>",mn=p=>p&&p!==null&&p instanceof Element&&"nodeType"in p,ge=(p,t)=>{p&&Oc(t).forEach(n=>{p.classList.remove(n)})},Dt=(p,t)=>{p&&Oc(t).forEach(n=>{p.classList.add(n)})},ol={a:1,b:0,c:0,d:1,e:0,f:0},Og=1e5,al=1e4,ir="mousemove",kh="drag",Mh="content",nr="auto";let mu=null,_u=null;class io extends Dc{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return _u===null&&(_u=window.matchMedia("(hover: none)").matches),_u}get isMobile(){return mu===null&&(mu=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),mu}get panMode(){return this.options.panMode!==ir||this.isTouchDevice?kh:ir}get panOnlyZoomed(){const t=this.options.panOnlyZoomed;return t===nr?this.isTouchDevice:t}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||
vendor: 9,546 bytes, line 22
220}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:t,b:n}=this.current;return Math.sqrt(t*t+n*n)||1}get targetScale(){const{a:t,b:n}=this.target;return Math.sqrt(t*t+n*n)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:t}=this;return t.fullWidth/t.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:t,contentRect:n}=this,s=Math.max(t.height/n.fitHeight,t.width/n.fitWidth)||1;return Math.min(this.fullScale,s)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const t=this.content;return!!(t&&t instanceof HTMLImageElement)&&!t.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const t of Wr){const n=t=="e"||t==="f"?1e-4:1e-5;if(Math.abs(this.target[t]-this.current[t])>n)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(t,n={},s={}){var e;if(super(n),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ye.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},ol)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},ol)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!t)throw new Error("Container Element Not Found");this.container=t,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},io.Plugins),s)),this.emit("attachPlugins"),this.emit("init");const i=this.content;if(i.addEventListener("load",this.onLoad),i.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){t.classList.add(this.cn("isLoading"));const o=Or(zc);!t.contains(i)||i.parentElement instanceof HTMLPictureElement?this.spinner=t.appendChild(o):this.spinner=((e=i.parentElement)===null||e===void 0?void 0:e.insertBefore(o,i))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:t}=this,n=this.cn(Mh);let s=this.option(Mh)||t.querySelector(`.${n}`);if(s||(s=t.querySelector("img,picture")||t.firstElementChild,s&&Dt(s,n)),s instanceof HTMLPictureElement&&(s=s.querySelector("img")),!s)throw new Error("No content found");this.content=s}onLoad(){const{spinner:t,container:n,state:s}=this;t&&(t.remove(),this.spinner=null),this.option("spinner")&&n.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),s===ye.Init?this.enable():this.updateMetrics()}onError(){this.state!==ye.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=ye.Error,this.emit("error"))}getNextScale(t){const{fullScale:n,targetScale:s,coverScale:e,maxScale:i,minScale:o}=this;let a=o;switch(t){case"toggleMax":a=s-o<.5*(i-o)?i:o;break;case"toggleCover":a=s-o<.5*(e-o)?e:o;break;case"toggleZoom":a=s-o<.5*(n-o)?n:o;break;case"iterateZoom":let l=[1,n,i].sort((h,g)=>h-g),c=l.findIndex(h=>h>s+1e-5);a=l[c]||1}return a}attachObserver(){var t;const n=()=>{const{container:s,containerRect:e}=this;return Math.abs(e.width-s.getBoundingClientRect().width)>.1||Math.abs(e.height-s.getBoundingClientRect().height)>.1};this.resizeObserver||window.ResizeObserver===void 0||(this.resizeObserver=new ResizeObserver(()=>{this.updateTimer||(n()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout(()=>{n()&&this.onResize(),this.updateTimer=null},500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))})),(t=this.resizeObserver)===null||t===void 0||t.observe(this.container)}detachObserver(){var t;(t=this.resizeObserver)===null||t===void 0||t.disconnect()}attachEvents(){const{container:t}=this;t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new Mg(t,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(ir,this.onMouseMove)}detachEvents(){var t;const{container:n}=this;n.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),n.removeEventListener("wheel",this.onWheel,{passive:!1}),(t=this.pointerTracker)===null||t===void 0||t.stop(),this.pointerTracker=null,document.removeEventListener(ir,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const t=this.friction,n=this.option("maxVelocity");for(const s of Wr)t?(this.velocity[s]*=1-t,n&&!this.isScaling&&(this.velocity[s]=Math.max(Math.min(this.velocity[s],n),-1*n)),this.current[s]+=this.velocity[s]):this.current[s]=this.target[s];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame(()=>this.animate()):this.stop("current")}setTargetForce(){for(const t of Wr)t==="e"&&this.isBouncingX||t==="f"&&this.isBouncingY||(this.velocity[t]=(1/(1-this.friction)-1)*(this.target[t]-this.current[t]))}checkBounds(t=0,n=0){const{current:s}=this,e=s.e+t,i=s.f+n,o=this.getBounds(),{x:a,y:l}=o,c=a.min,h=a.max,g=l.min,m=l.max;let v=0,x=0;return c!==1/0&&e<c?v=c-e:h!==1/0&&e>h&&(v=h-e),g!==1/0&&i<g?x=g-i:m!==1/0&&i>m&&(x=m-i),Math.abs(v)<1e-4&&(v=0),Math.abs(x)<1e-4&&(x=0),Object.assign(Object.assign({},o),{xDiff:v,yDiff:x,inBounds:!v&&!x})}clampTargetBounds(){const{target:t}=this,{x:n,y:s}=this.getBounds();n.min!==1/0&&(t.e=Math.max(t.e,n.min)),n.max!==1/0&&(t.e=Math.min(t.e,n.max)),s.min!==1/0&&(t.f=Math.max(t.f,s.min)),s.max!==1/0&&(t.f=Math.min(t.f,s.max))}calculateContentDim(t=this.current){const{content:n,contentRect:s}=this,{fitWidth:e,fitHeight:i,fullWidth:o,fullHeight:a}=s;let l=o,c=a;if(this.option("zoom")||this.angle!==0){const h=!(n instanceof HTMLImageElement)&&(window.getComputedStyle(n).maxWidth==="none"||window.getComputedStyle(n).maxHeight==="none"),g=h?o:e,m=h?a:i,v=this.getMatrix(t),x=new DOMPoint(0,0).matrixTransform(v),C=new DOMPoint(0+g,0).matrixTransform(v),k=new DOMPoint(0+g,0+m).matrixTransform(v),S=new DOMPoint(0,0+m).matrixTransform(v),A=Math.abs(k.x-x.x),z=Math.abs(k.y-x.y),R=Math.abs(S.x-C.x),W=Math.abs(S.y-C.y);l=Math.max(A,R),c=Math.max(z,W)}return{contentWidth:l,contentHeight:c}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===ir||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:t}=this,{x:n,y:s,xDiff:e,yDiff:i}=this.checkBounds(),o=this.option("maxVelocity");let a=this.velocity.e,l=this.velocity.f;e!==0?(this.isBouncingX=!0,e*a<=0?a+=.14*e:(a=.14*e,n.min!==1/0&&(this.target.e=Math.max(t.e,n.min)),n.max!==1/0&&(this.target.e=Math.min(t.e,n.max))),o&&(a=Math.max(Math.min(a,o),-1*o))):this.isBouncingX=!1,i!==0?(this.isBouncingY=!0,i*l<=0?l+=.14*i:(l=.14*i,s.min!==1/0&&(this.target.f=Math.max(t.f,s.min)),s.max!==1/0&&(this.target.f=Math.min(t.f,s.max))),o&&(l=Math.max(Math.min(l,o),-1*o))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=a
22),this.isBouncingY&&(this.velocity.f=l)}enable(){const{content:t}=this,n=new DOMMatrixReadOnly(window.getComputedStyle(t).transform);for(const s of Wr)this.current[s]=this.target[s]=n[s];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=ye.Ready,this.emit("ready")}onClick(t){var n;t.type==="click"&&t.detail===0&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&((n=this.pointerTracker)===null||n===void 0||n.clear(),this.trackingPoints=[],this.startDecelAnim());const s=t.target;if(!s||t.defaultPrevented)return;if(s.hasAttribute("disabled"))return t.preventDefault(),void t.stopPropagation();if((()=>{const v=window.getSelection();return v&&v.type==="Range"})()&&!s.closest("button"))return;const e=s.closest("[data-panzoom-action]"),i=s.closest("[data-panzoom-change]"),o=e||i,a=o&&mn(o)?o.dataset:null;if(a){const v=a.panzoomChange,x=a.panzoomAction;if((v||x)&&t.preventDefault(),v){let C={};try{C=JSON.parse(v)}catch(k){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(C)}if(x)return void(this[x]&&this[x]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return t.preventDefault(),void t.stopPropagation();if(s.closest("[data-fancybox]"))return;const l=this.content.getBoundingClientRect(),c=this.dragStart;if(c.time&&!this.canZoomOut()&&(Math.abs(l.x-c.x)>2||Math.abs(l.y-c.y)>2))return;this.dragStart.time=0;const h=v=>{this.option("zoom",t)&&v&&typeof v=="string"&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(v)&&typeof this[v]=="function"&&(t.preventDefault(),this[v]({event:t}))},g=this.option("click",t),m=this.option("dblClick",t);m?(this.clicks++,this.clicks==1&&(this.clickTimer=setTimeout(()=>{this.clicks===1?(this.emit("click",t),!t.defaultPrevented&&g&&h(g)):(this.emit("dblClick",t),t.defaultPrevented||h(m)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",t),!t.defaultPrevented&&g&&h(g))}addTrackingPoint(t){const n=this.trackingPoints.filter(s=>s.time>Date.now()-100);n.push(t),this.trackingPoints=n}onPointerDown(t,n,s){var e;if(this.option("touch",t)===!1)return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const i=this.content.getBoundingClientRect();if(this.dragStart={x:i.x,y:i.y,top:i.top,left:i.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===ir&&this.targetScale>1)return t.preventDefault(),t.stopPropagation(),!1;const o=t.composedPath()[0];if(!s.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(o.nodeName)||o.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;(e=window.getSelection())===null||e===void 0||e.removeAllRanges()}if(t.type==="mousedown")["A","BUTTON"].includes(o.nodeName)||t.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(n),this.emit("touchStart",t)),!0}onPointerMove(t,n,s){if(this.option("touch",t)===!1||!this.isDragging||n.length<2&&this.panOnlyZoomed&&wt(this.targetScale)<=wt(this.minScale)||(this.emit("touchMove",t),t.defaultPrevented))return;this.addTrackingPoint(n[0]);const{content:e}=this,i=Lh(s[0],s[1]),o=Lh(n[0],n[1]);let a=0,l=0;if(n.length>1){const z=e.getBoundingClientRect();a=i.clientX-z.left-.5*z.width,l=i.clientY-z.top-.5*z.height}const c=Eh(s[0],s[1]),h=Eh(n[0],n[1]);let g=c?h/c:1,m=o.clientX-i.clientX,v=o.clientY-i.clientY;this.dragOffset.x+=m,this.dragOffset.y+=v,this.dragOffset.time=Date.now()-this.dragStart.time;let x=wt(this.targetScale)===wt(this.minScale)&&this.option("lockAxis");if(x&&!this.lockedAxis)if(x==="xy"||x==="y"||t.type==="touchmove"){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void t.preventDefault();const z=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=z>45&&z<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,m=0,v=0}else this.lockedAxis=x;if(jl(t.target,this.content)&&(x="x",this.dragOffset.y=0),x&&x!=="xy"&&this.lockedAxis!==x&&wt(this.targetScale)===wt(this.minScale))return;t.cancelable&&t.preventDefault(),this.container.classList.add(this.cn("isDragging"));const C=this.checkBounds(m,v);this.option("rubberband")?(this.isInfinite!=="x"&&(C.xDiff>0&&m<0||C.xDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*C.xDiff))),this.isInfinite!=="y"&&(C.yDiff>0&&v<0||C.yDiff<0&&v>0)&&(v*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*C.yDiff)))):(C.xDiff&&(m=0),C.yDiff&&(v=0));const k=this.targetScale,S=this.minScale,A=this.maxScale;
22k<.5*S&&(g=Math.max(g,S)),k>1.5*A&&(g=Math.min(g,A)),this.lockedAxis==="y"&&wt(k)===wt(S)&&(m=0),this.lockedAxis==="x"&&wt(k)===wt(S)&&(v=0),this.applyChange({originX:a,originY:l,panX:m,panY:v,scale:g,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(t,n,s){if(s.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(n),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),jl(t.target,this.content)&&this.lockedAxis==="y"&&(this.trackingPoints=[]),this.emit("touchEnd",t),this.isDragging=!1,this.lockedAxis=!1,this.state!==ye.Destroy&&(t.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var t;const n=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const z of Wr)this.velocity[z]=0;this.target.e=this.current.e,this.target.f=this.current.f,ge(this.container,"is-scaling"),ge(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:s}=this,e=s[0],i=s[s.length-1];let o=0,a=0,l=0;i&&e&&(o=i.clientX-e.clientX,a=i.clientY-e.clientY,l=i.time-e.time);const c=((t=window.visualViewport)===null||t===void 0?void 0:t.scale)||1;c!==1&&(o*=c,a*=c);let h=0,g=0,m=0,v=0,x=this.option("decelFriction");const C=this.targetScale;if(l>0){m=Math.abs(o)>3?o/(l/30):0,v=Math.abs(a)>3?a/(l/30):0;const z=this.option("maxVelocity");z&&(m=Math.max(Math.min(m,z),-1*z),v=Math.max(Math.min(v,z),-1*z))}m&&(h=m/(1/(1-x)-1)),v&&(g=v/(1/(1-x)-1)),(this.option("lockAxis")==="y"||this.option("lockAxis")==="xy"&&this.lockedAxis==="y"&&wt(C)===this.minScale)&&(h=m=0),(this.option("lockAxis")==="x"||this.option("lockAxis")==="xy"&&this.lockedAxis==="x"&&wt(C)===this.minScale)&&(g=v=0);const k=this.dragOffset.x,S=this.dragOffset.y,A=this.option("dragMinThreshold")||0;Math.abs(k)<A&&Math.abs(S)<A&&(h=g=0,m=v=0),(this.option("zoom")&&(C<this.minScale-1e-5||C>this.maxScale+1e-5)||n&&!h&&!g)&&(x=.35),this.applyChange({panX:h,panY:g,friction:x}),this.emit("decel",m,v,k,S)}onWheel(t){var n=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce(function(i,o){return Math.abs(o)>Math.abs(i)?o:i});const s=Math.max(-1,Math.min(1,n));if(this.emit("wheel",t,s),this.panMode===ir||t.defaultPrevented)return;const e=this.option("wheel");e==="pan"?(t.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-t.deltaX,panY:2*-t.deltaY,bounce:!1})):e==="zoom"&&this.option("zoom")!==!1&&this.zoomWithWheel(t)}onMouseMove(t){this.panWithMouse(t)}onKeydown(t){t.key==="Escape"&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:t,target:n,content:s,contentRect:e}=this,i=Object.assign({},ol);for(const k of Wr){const S=k=="e"||k==="f"?al:Og;i[k]=wt(t[k],S),Math.abs(n[k]-t[k])<(k=="e"||k==="f"?.51:.001)&&(t[k]=n[k])}let{a:o,b:a,c:l,d:c,e:h,f:g}=i,m=`matrix(${o}, ${a}, ${l}, ${c}, ${h}, ${g})`,v=s.parentElement instanceof HTMLPictureElement?s.parentElement:s;if(this.option("transformParent")&&(v=v.parentElement||v),v.style.transform===m)return;v.style.transform=m;const{contentWidth:x,contentHeight:C}=this.calculateContentDim();e.width=x,e.height=C,this.emit("afterTransform")}updateMetrics(t=!1){var n;if(!this||this.state===ye.Destroy||this.isContentLoading)return;const s=Math.max(1,((n=window.visualViewport)===null||n===void 0?void 0:n.scale)||1),{container:e,content:i}=this,o=i instanceof HTMLImageElement,a=e.getBoundingClientRect(),l=getComputedStyle(this.container);let c=a.width*s,h=a.height*s;const g=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),m=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),v=h-g;this.containerRect={width:c,height:h,innerWidth:m,innerHeight:v};const x=parseFloat(i.dataset.width||"")||(q=>{let st=0;return st=q instanceof HTMLImageElement?q.naturalWidth:q instanceof SVGElement?q.width.baseVal.value:Math.max(q.offsetWidth,q.scrollWidth),st||0})(i),C=parseFloat(i.dataset.height||"")||(q=>{let st=0;return st=q instanceof HTMLImageElement?q.naturalHeight:q instanceof SVGElement?q.height.baseVal.value:Math.max(q.offsetHeight,q.scrollHeight),st||0})(i);let k=this.option("width",x)||nr,S=this.option("height",C)||nr;const A=k===nr,z=S===nr;typeof k!="number"&&(k=x),typeof S!="number"&&(S=C),A&&(k=x*(S/C)),z&&(S=C/(x/k));let R=i.parentElement instanceof HTMLPictureElement?i.parentElement:i;this.option("transformParent")&&(R=R.parentElement||R);const W=R.getAttribute("style")||"";
vendor: 15,692 bytes, line 22
22R.style.setProperty("transform","none","important"),o&&(R.style.width="",R.style.height=""),R.offsetHeight;const Y=i.getBoundingClientRect();let b=Y.width*s,rt=Y.height*s,J=b,at=rt;b=Math.min(b,k),rt=Math.min(rt,S),o?{width:b,height:rt}=((q,st,mt,xt)=>{const ht=mt/q,ot=xt/st,Nt=Math.min(ht,ot);return{width:q*=Nt,height:st*=Nt}})(k,S,b,rt):(b=Math.min(b,k),rt=Math.min(rt,S));let St=.5*(at-rt),ut=.5*(J-b);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:Y.top-a.top+St,bottom:a.bottom-Y.bottom+St,left:Y.left-a.left+ut,right:a.right-Y.right+ut,fitWidth:b,fitHeight:rt,width:b,height:rt,fullWidth:k,fullHeight:S}),R.style.cssText=W,o&&(R.style.width=`${b}px`,R.style.height=`${rt}px`),this.setTransform(),t!==!0&&this.emit("refresh"),this.ignoreBounds||(wt(this.targetScale)<wt(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===ye.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:t,contentHeight:n}=this.calculateContentDim(this.target),{targetScale:s,lockedAxis:e}=this,{fitWidth:i,fitHeight:o}=this.contentRect;let a=0,l=0,c=0,h=0;const g=this.option("infinite");if(g===!0||e&&g===e)a=-1/0,c=1/0,l=-1/0,h=1/0;else{let{containerRect:m,contentRect:v}=this,x=wt(i*s,al),C=wt(o*s,al),{innerWidth:k,innerHeight:S}=m;if(m.width===x&&(k=m.width),m.width===C&&(S=m.height),t>k){c=.5*(t-k),a=-1*c;let A=.5*(v.right-v.left);a+=A,c+=A}if(i>k&&t<k&&(a-=.5*(i-k),c-=.5*(i-k)),n>S){h=.5*(n-S),l=-1*h;let A=.5*(v.bottom-v.top);l+=A,h+=A}o>S&&n<S&&(a-=.5*(o-S),c-=.5*(o-S))}return{x:{min:a,max:c},y:{min:l,max:h}}}getBounds(){const t=this.option("bounds");return t!==nr?t:this.calculateBounds()}updateControls(){const t=this,n=t.container,{panMode:s,contentRect:e,targetScale:i,minScale:o}=t;let a=o,l=t.option("click")||!1;l&&(a=t.getNextScale(l));let c=t.canZoomIn(),h=t.canZoomOut(),g=s===kh&&!!this.option("touch"),m=h&&g;if(g&&(wt(i)<wt(o)&&!this.panOnlyZoomed&&(m=!0),(wt(e.width,1)>wt(e.fitWidth,1)||wt(e.height,1)>wt(e.fitHeight,1))&&(m=!0)),wt(e.width*i,1)<wt(e.fitWidth,1)&&(m=!1),s===ir&&(m=!1),Dr(n,this.cn("isDraggable"),m),!this.option("zoom"))return;let v=c&&wt(a)>wt(i),x=!v&&!m&&h&&wt(a)<wt(i);Dr(n,this.cn("canZoomIn"),v),Dr(n,this.cn("canZoomOut"),x);for(const C of n.querySelectorAll("[data-panzoom-action]")){let k=!1,S=!1;switch(C.dataset.panzoomAction){case"zoomIn":c?k=!0:S=!0;break;case"zoomOut":h?k=!0:S=!0;break;case"toggleZoom":case"iterateZoom":c||h?k=!0:S=!0;const A=C.querySelector("g");A&&(A.style.display=c?"":"none")}k?(C.removeAttribute("disabled"),C.removeAttribute("tabindex")):S&&(C.setAttribute("disabled",""),C.setAttribute("tabindex","-1"))}}panTo({x:t=this.target.e,y:n=this.target.f,scale:s=this.targetScale,friction:e=this.option("friction"),angle:i=0,originX:o=0,originY:a=0,flipX:l=!1,flipY:c=!1,ignoreBounds:h=!1}){this.state!==ye.Destroy&&this.applyChange({panX:t-this.target.e,panY:n-this.target.f,scale:s/this.targetScale,angle:i,originX:o,originY:a,friction:e,flipX:l,flipY:c,ignoreBounds:h})}applyChange({panX:t=0,panY:n=0,scale:s=1,angle:e=0,originX:i=-this.current.e,originY:o=-this.current.f,friction:a=this.option("friction"),flipX:l=!1,flipY:c=!1,ignoreBounds:h=!1,bounce:g=this.option("bounce")}){const m=this.state;if(m===ye.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=h;const{current:v}=this,x=v.e,C=v.f,k=this.getMatrix(this.target);let S=new DOMMatrix().translate(x,C).translate(i,o).translate(t,n);if(this.option("zoom")){if(!h){const A=this.targetScale,z=this.minScale,R=this.maxScale;A*s<z&&(s=z/A),A*s>R&&(s=R/A)}S=S.scale(s)}S=S.translate(-i,-o).translate(-x,-C).multiply(k),e&&(S=S.rotate(e)),l&&(S=S.scale(-1,1)),c&&(S=S.scale(1,-1));for(const A of Wr)A!=="e"&&A!=="f"&&(S[A]>this.minScale+1e-5||S[A]<this.minScale-1e-5)?this.target[A]=S[A]:this.target[A]=wt(S[A],al);(this.targetScale<this.scale||Math.abs(s-1)>.1||this.panMode===ir||g===!1)&&!h&&this.clampTargetBounds(),m===ye.Init?this.animate():this.isResting||(this.state=ye.Panning,this.requestTick())}stop(t=!1){if(this.state===ye.Init||this.state===ye.Destroy)return;const n=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const s of Wr)this.velocity[s]=0,t==="current"?this.current[s]=this.target[s]:t==="target"&&(this.target[s]=this.current[s]);this.setTransform(),ge(this.container,"is-scaling"),ge(this.container,"is-animating"),this.isTicking=!1,this.state=ye.Ready,n&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),Dt(this.container,"is-animating"),this.isScaling&&Dt(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame(()=>this.animate()))}panWithMouse(t,n=this.option("mouseMoveFriction")){if(this.pmme=t,this.panMode!==ir||!t||wt(this.targetScale)<=wt(this.minScale))return;this.emit("mouseMove",t);const{container:s,containerRect:e,contentRect:i}=this,o=e.width,a=e.height,l=s.getBoundingClientRect(),c=(t.clientX||0)-l.left,h=(t.clientY||0)-l.top;let{contentWidth:g,contentHeight:m}=this.calculateContentDim(this.target);const v=this.option("mouseMoveFactor");v>1&&(g!==o&&(g*=v),m!==a&&(m*=v));let x=.5*(g-o)-c/o*100/100*(g-o);x+=.5*(i.right-i.left);let C=.5*(m-a)-h/a*100/100*(m-a);C+=.5*(i.bottom-i.top),this.applyChange({panX:x-this.target.e,panY:C-this.target.f,friction:n})}zoomWithWheel(t){if(this.state===ye.Destroy||this.state===ye.Init)return;const n=Date.now();if(n-this.pwt<45)return void t.preventDefault();this.pwt=n;var s=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce(function(c,h){return Math.abs(h)>Math.abs(c)?h:c});const e=Math.max(-1,Math.min(1,s)),{targetScale:i,maxScale:o,minScale:a}=this;let l=i*(100+45*e)/100;wt(l)<wt(a)&&wt(i)<=wt(a)?(this.cwd+=Math.abs(e),l=a):wt(l)>wt(o)&&wt(i)>=wt(o)?(this.cwd+=Math.abs(e),l=o):(this.cwd=0,l=Math.max(Math.min(l,o),a)),this.cwd>this.option("wheelLimit")||(t.preventDefault(),wt(l)!==wt(i)&&this.zoomTo(l,{event:t}))}canZoomIn(){return this.option("zoom")&&(wt(this.contentRect.width,1)<wt(this.contentRect.fitWidth,1)||wt(this.targetScale)<wt(this.maxScale))}canZoomOut(){return this.option("zoom")&&wt(this.targetScale)>wt(this.minScale)}zoomIn(t=1.25,n){this.zoomTo(this.targetScale*t,n)}zoomOut(t=.8,n){this.zoomTo(this.targetScale*t,n)}zoomToFit(t){this.zoomTo("fit",t)}zoomToCover(t){this.zoomTo("cover",t)}zoomToFull(t){this.zoomTo("full",t)}zoomToMax(t){this.zoomTo("max",t)}toggleZoom(t){this.zoomTo(this.getNextScale("toggleZoom"),t)}toggleMax(t){this.zoomTo(this.getNextScale("toggleMax"),t)}toggleCover(t){this.zoomTo(this.getNextScale("toggleCover"),t)}iterateZoom(t){this.zoomTo("next",t)}zoomTo(t=1,{friction:n=nr,originX:s=nr,originY:e=nr,event:i}={}){if(this.isContentLoading||this.state===ye.Destroy)return;const{targetScale:o,fullScale:a,maxScale:l,coverScale:c}=this;if(this.stop(),this.panMode===ir&&(i=this.pmme||i),i||s===nr||e===nr){const g=this.content.getBoundingClientRect(),m=this.container.getBoundingClientRect(),v=i?i.clientX:m.left+.5*m.width,x=i?i.clientY:m.top+.5*m.height;s=v-g.left-.5*g.width,e=x-g.top-.5*g.height}let h=1;typeof t=="number"?h=t:t==="full"?h=a:t==="cover"?h=c:t==="max"?h=l:t==="fit"?h=1:t==="next"&&(h=this.getNextScale("iterateZoom")),h=h/o||1,n=n===nr?h>1?.15:.25:n,this.applyChange({scale:h,originX:s,originY:e,friction:n}),i&&this.panMode===ir&&this.panWithMouse(i,n)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:t,contentRect:n,target:s}=this;this.applyChange({panX:.5*t.width-(n.left+.5*n.fitWidth)-s.e,panY:.5*t.height-(n.top+.5*n.fitHeight)-s.f,scale:t.width/n.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:t,contentRect:n,target:s}=this;this.applyChange({panX:.5*t.width-(n.left+.5*n.fitWidth)-s.e,panY:.5*t.innerHeight-(n.top+.5*n.fitHeight)-s.f,scale:t.height/n.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:t}=this,n=this.cn("inFullscreen"),s=this.cn("htmlHasFullscreen");t.classList.toggle(n);const e=t.classList.contains(n);e?(document.documentElement.classList.add(s),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(s),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(e?"enterFS":"exitFS")}getMatrix(t=this.current){const{a:n,b:s,c:e,d:i,e:o,f:a}=t;return new DOMMatrix([n,s,e,i,o,a])}reset(t){if(this.state!==ye.Init&&this.state!==ye.Destroy){this.stop("current");for(const n of Wr)this.target[n]=ol[n];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=t===void 0?this.option("friction"):t,this.state=ye.Panning,this.requestTick())}}destroy(){this.stop(),this.state=ye.Destroy,this.detachEvents(),this.detachObserver();const{container:t,content:n}=this,s=this.option("classes")||{};for(const e of Object.values(s))t.classList.remove(e+"");n&&(n.removeEventListener("load",this.onLoad),n.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(io,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ag}),Object.defineProperty(io,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const Ah=function(p,t){let n=!0;return(...s)=>{n&&(n=!1,p(...s),setTimeout(()=>{n=!0},t))}},Oh=(p,t)=>{let n=[];return p.childNodes.forEach(s=>{s.nodeType!==Node.ELEMENT_NODE||t&&!s.matches(t)||n.push(s)}),n},Dg={viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}};var hi;(function(p){p[p.Init=0]="Init",p[p.Ready=1]="Ready",p[p.Destroy=2]="Destroy"})(hi||(hi={}));const vu=p=>{if(typeof p=="string"||p instanceof HTMLElement)p={html:p};else{const t=p.thumb;t!==void 0&&(typeof t=="string"&&(p.thumbSrc=t),t instanceof HTMLImageElement&&(p.thumbEl=t,p.thumbElSrc=t.src,p.thumbSrc=t.src),delete p.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},p)},zg=(p={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},p);class Cr extends ql{constructor(t,n){super(n),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}const Ig={classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2};class sf extends Cr{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let t=this.list;if(!t){t=document.createElement("ul"),Dt(t,this.cn("list")),t.setAttribute("role","tablist");const n=this.instance.container;n.appendChild(t),Dt(n,this.cn("hasDots")),this.list=t}return t}refresh(){var t;const n=this.instance.pages.length,s=Math.min(2,this.option("minCount")),e=Math.max(2e3,this.option("maxCount")),i=this.option("dynamicFrom");if(n<s||n>e)return void this.cleanup();const o=typeof i=="number"&&n>5&&n>=i,a=!this.list||this.isDynamic!==o||this.list.children.length!==n;a&&this.cleanup();const l=this.build();if(Dr(l,this.cn("isDynamic"),!!o),a)for(let g=0;g<n;g++)l.append(this.createItem(g));let c,h=0;for(const g of[...l.children]){const m=h===this.instance.page;m&&(c=g),Dr(g,this.cn("isCurrent"),m),(t=g.children[0])===null||t===void 0||t.setAttribute("aria-selected",m?"true":"false");for(const v of["isBeforePrev","isPrev","isNext","isAfterNext"])ge(g,this.cn(v));h++}if(c=c||l.firstChild,o&&c){const g=c.previousElementSibling,m=g&&g.previousElementSibling;Dt(g,this.cn("isPrev")),Dt(m,this.cn("isBeforePrev"));const v=c.nextElementSibling,x=v&&v.nextElementSibling;Dt(v,this.cn("isNext")),Dt(x,this.cn("isAfterNext"))}this.isDynamic=o}createItem(t=0){var n;const s=document.createElement("li");s.setAttribute("role","presentation");const e=Or(this.instance.localize(this.option("dotTpl"),[["%d",t+1]]).replace(/\%i/g,t+""));return s.appendChild(e),(n=s.children[0])===null||n===void 0||n.setAttribute("role","tab"),s}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,ge(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(sf,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ig});const ll="disabled",ul="next",Dh="prev";class of extends Cr{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const t=this.instance,n=t.pages.length,s=t.page;if(n<2)return void this.cleanup();this.build();let e=this.prev,i=this.next;e&&i&&(e.removeAttribute(ll),i.removeAttribute(ll),t.isInfinite||(s<=0&&e.setAttribute(ll,""),s>=n-1&&i.setAttribute(ll,"")))}addBtn(t){var n;const s=this.instance,e=document.createElement("button");e.setAttribute("tabindex","0"),e.setAttribute("title",s.localize(`{{${t.toUpperCase()}}}`)),Dt(e,this.cn("button")+" "+this.cn(t===ul?"isNext":"isPrev"));const i=s.isRTL?t===ul?Dh:ul:t;var o;return e.innerHTML=s.localize(this.option(`${i}Tpl`)),e.dataset[`carousel${o=t,o?o.match("^[a-z]")?o.charAt(0).toUpperCase()+o.substring(1):o:""}`]="true",(n=this.container)===null||n===void 0||n.appendChild(e),e}build(){const t=this.instance.container,n=this.cn("container");let{container:s,prev:e,next:i}=this;s||(s=t.querySelector("."+n),this.isDom=!!s),s||(s=document.createElement("div"),Dt(s,n),t.appendChild(s)),this.container=s,i||(i=s.querySelector("[data-carousel-next]")),i||(i=this.addBtn(ul)),this.next=i,e||(e=s.querySelector("[data-carousel-prev]")),e||(e=this.addBtn(Dh)),this.prev=e}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(of,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>
22',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class af extends Cr{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(t){this.target=this.instance,this.nav=t,this.attachEvents()}addAsNavFor(t){this.nav=this.instance,this.target=t,this.attachEvents()}attachEvents(){const{nav:t,target:n}=this;t&&n&&(t.options.initialSlide=n.options.initialPage,t.state===hi.Ready?this.onNavReady(t):t.on("ready",this.onNavReady),n.state===hi.Ready?this.onTargetReady(n):n.on("ready",this.onTargetReady))}onNavReady(t){t.on("createSlide",this.onNavCreateSlide),t.on("Panzoom.click",this.onNavClick),t.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(t){t.on("change",this.onTargetChange),t.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(t,n,s){this.onNavTouch(t,t.panzoom,s)}onNavTouch(t,n,s){var e,i;if(Math.abs(n.dragOffset.x)>3||Math.abs(n.dragOffset.y)>3)return;const o=s.target,{nav:a,target:l}=this;if(!a||!l||!o)return;const c=o.closest("[data-index]");if(s.stopPropagation(),s.preventDefault(),!c)return;const h=parseInt(c.dataset.index||"",10)||0,g=l.getPageForSlide(h),m=a.getPageForSlide(h);a.slideTo(m),l.slideTo(g,{friction:((i=(e=this.nav)===null||e===void 0?void 0:e.plugins)===null||i===void 0?void 0:i.Sync.option("friction"))||0}),this.markSelectedSlide(h)}onNavCreateSlide(t,n){n.index===this.selectedIndex&&this.markSelectedSlide(n.index)}onTargetChange(){var t,n;const{target:s,nav:e}=this;if(!s||!e||e.state!==hi.Ready||s.state!==hi.Ready)return;const i=(n=(t=s.pages[s.page])===null||t===void 0?void 0:t.slides[0])===null||n===void 0?void 0:n.index,o=e.getPageForSlide(i);this.markSelectedSlide(i),e.slideTo(o,e.prevPage===null&&s.prevPage===null?{friction:0}:void 0)}markSelectedSlide(t){const n=this.nav;n&&n.state===hi.Ready&&(this.selectedIndex=t,[...n.slides].map(s=>{s.el&&s.el.classList[s.index===t?"add":"remove"]("is-nav-selected")}))}attach(){const t=this;let n=t.options.target,s=t.options.nav;n?t.addAsNavFor(n):s&&t.addAsTargetFor(s)}detach(){const t=this,n=t.nav,s=t.target;n&&(n.off("ready",t.onNavReady),n.off("createSlide",t.onNavCreateSlide),n.off("Panzoom.click",t.onNavClick),n.off("Panzoom.touchEnd",t.onNavTouch)),t.nav=null,s&&(s.off("ready",t.onTargetReady),s.off("refresh",t.onTargetChange),s.off("change",t.onTargetChange)),t.target=null}}Object.defineProperty(af,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const $g={Navigation:of,Dots:sf,Sync:af},cl="animationend",zh="isSelected",hl="slide";class Vs extends Dc{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===hi.Ready}get isInfinite(){let t=!1;const{contentDim:n,viewportDim:s,pages:e,slides:i}=this,o=i[0];return e.length>=2&&o&&n+o.dim>=s&&(t=this.option("infinite")),t}get isRTL(){return this.option("direction")==="rtl"}get isHorizontal(){return this.option("axis")==="x"}constructor(t,n={},s={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:hi.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),typeof t=="string"&&(t=document.querySelector(t)),!t||!mn(t))throw new Error("No Element found");this.container=t,this.slideNext=Ah(this.slideNext.bind(this),150),this.slidePrev=Ah(this.slidePrev.bind(this),150),this.userOptions=n,this.userPlugins=s,queueMicrotask(()=>{this.processOptions()})}processOptions(){var t,n;const s=_n({},Vs.defaults,this.userOptions);let e="";const i=s.breakpoints;if(i&&nc(i))for(const[o,a]of Object.entries(i))window.matchMedia(o).matches&&nc(a)&&(e+=o,_n(s,a));e===this.bp&&this.state!==hi.Init||(this.bp=e,this.state===hi.Ready&&(s.initialSlide=((n=(t=this.pages[this.page])===null||t===void 0?void 0:t.slides[0])===null||n===void 0?void 0:n.index)||0),this.state!==hi.Init&&this.destroy(),super.setOptions(s),this.option("enabled")===!1?this.attachEvents():setTimeout(()=>{this.init()},0))}
vendor: 1,105 bytes, line 22
22init(){this.state=hi.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},Vs.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=hi.Ready,this.emit("ready")}initLayout(){const{container:t}=this,n=this.option("classes");Dt(t,this.cn("container")),Dr(t,n.isLTR,!this.isRTL),Dr(t,n.isRTL,this.isRTL),Dr(t,n.isVertical,!this.isHorizontal),Dr(t,n.isHorizontal,this.isHorizontal);let s=this.option("viewport")||t.querySelector(`.${n.viewport}`);s||(s=document.createElement("div"),Dt(s,n.viewport),s.append(...Oh(t,`.${n.slide}`)),t.prepend(s)),s.addEventListener("scroll",this.onScroll);let e=this.option("track")||t.querySelector(`.${n.track}`);e||(e=document.createElement("div"),Dt(e,n.track),e.append(...Array.from(s.childNodes))),e.setAttribute("aria-live","polite"),s.contains(e)||s.prepend(e),this.viewport=s,this.track=e,this.emit("initLayout")}initSlides(){const{track:t}=this;if(!t)return;const n=[...this.slides],s=[];[...Oh(t,`.${this.cn(hl)}
22`)].forEach(e=>{if(mn(e)){const i=vu({el:e,isDom:!0,index:this.slides.length});s.push(i)}});for(let e of[...this.option("slides",[])||[],...n])s.push(vu(e));this.slides=s;for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;for(const e of s)this.emit("beforeInitSlide",e,e.index),this.emit("initSlide",e,e.index);this.emit("initSlides")}setInitialPage(){const t=this.option("initialSlide");this.page=typeof t=="number"?this.getPageForSlide(t):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:t,pages:n,isHorizontal:s}=this;if(!t||!n.length)return;let e=this.page;n[e]||(this.page=e=0);const i=(n[e].pos||0)*(this.isRTL&&s?1:-1),o=s?`${i}px`:"0",a=s?"0":`${i}px`;t.style.transform=`translate3d(${o}, ${a}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const t=this.option("Panzoom")||{};this.panzoom=new io(this.viewport,_n({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:n=>!(this.pages.length<2&&!n.options.infinite),bounds:()=>this.getBounds(),maxVelocity:n=>Math.abs(n.target[this.axis]-n.current[this.axis])<2*this.viewportDim?100:0},t)),this.panzoom.on("*",(n,s,...e)=>{this.emit(`Panzoom.${s}`,n,...e)}),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const t=this.container;t&&(t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let t=[];const{contentDim:n,viewportDim:s}=this;let e=this.option("slidesPerPage");e=(e==="auto"||n<=s)&&this.option("fill")!==!1?1/0:parseFloat(e+"");let i=0,o=0,a=0;for(const l of this.slides)(!t.length||o+l.dim-s>.05||a>=e)&&(t.push(zg()),i=t.length-1,o=0,a=0),t[i].slides.push(l),o+=l.dim+l.gap,a++;return t}processPages(){const t=this.pages,{contentDim:n,viewportDim:s,isInfinite:e}=this,i=this.option("center"),o=this.option("fill"),a=o&&i&&n>s&&!e;if(t.forEach((h,g)=>{var m;h.index=g,h.pos=((m=h.slides[0])===null||m===void 0?void 0:m.pos)||0,h.dim=0;for(const[v,x]of h.slides.entries())h.dim+=x.dim,v<h.slides.length-1&&(h.dim+=x.gap);a&&h.pos+.5*h.dim<.5*s?h.pos=0:a&&h.pos+.5*h.dim>=n-.5*s?h.pos=n-s:i&&(h.pos+=-.5*(s-h.dim))}),t.forEach(h=>{o&&!e&&n>s&&(h.pos=Math.max(h.pos,0),h.pos=Math.min(h.pos,n-s)),h.pos=wt(h.pos,1e3),h.dim=wt(h.dim,1e3),Math.abs(h.pos)<=.1&&(h.pos=0)}),e)return t;const l=[];let c;return t.forEach(h=>{const g=Object.assign({},h);c&&g.pos===c.pos?(c.dim+=g.dim,c.slides=[...c.slides,...g.slides]):(g.index=l.length,c=g,l.push(g))}),l}getPageFromIndex(t=0){const n=this.pages.length;let s;return t=parseInt((t||0).toString())||0,s=this.isInfinite?(t%n+n)%n:Math.max(Math.min(t,n-1),0),s}getSlideMetrics(t){var n,s;const e=this.isHorizontal?"width":"height";let i=0,o=0,a=t.el;const l=!(!a||a.parentNode);if(a?i=parseFloat(a.dataset[e]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),Dt(a,this.cn(hl)+" "+t.class+" "+t.customClass),i)a.style[e]=`${i}px`,a.style[e==="width"?"height":"width"]="";else{l&&(this.track||document.body).prepend(a),i=a.getBoundingClientRect()[e]*Math.max(1,((n=window.visualViewport)===null||n===void 0?void 0:n.scale)||1);let h=a[this.isHorizontal?"offsetWidth":"offsetHeight"];h-1>i&&(i=h)}const c=getComputedStyle(a);return c.boxSizing==="content-box"&&(this.isHorizontal?(i+=parseFloat(c.paddingLeft)||0,i+=parseFloat(c.paddingRight)||0):(i+=parseFloat(c.paddingTop)||0,i+=parseFloat(c.paddingBottom)||0)),o=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,l?(s=a.parentElement)===null||s===void 0||s.removeChild(a):t.el||a.remove(),{dim:wt(i,1e3),gap:wt(o,1e3)}}getBounds(){const{isInfinite:t,isRTL:n,isHorizontal:s,pages:e}=this;let i={min:0,max:0};if(t)i={min:-1/0,max:1/0};else if(e.length){const o=e[0].pos,a=e[e.length-1].pos;i=n&&s?{min:o,max:a}:{min:-1*a,max:-1*o}}return{x:s?i:{min:0,max:0},y:s?{min:0,max:0}:i}}repositionSlides(){let t,{isHorizontal:n,isRTL:s,isInfinite:e,viewport:i,viewportDim:o,contentDim:a,page:l,pages:c,slides:h,panzoom:g}=this,m=0,v=0,x=0,C=0;g?C=-1*g.current[this.axis]:c[l]&&(C=c[l].pos||0),t=n?s?"right":"left":"top",s&&n&&(C*=-1);for(const z of h){const R=z.el;R?(t==="top"?(R.style.right="",R.style.left=""):R.style.top="",z.index!==m?R.style[t]=v===0?"":`${wt(v,1e3)}px`:R.style[t]="",x+=z.dim+z.gap,m++):v+=z.dim+z.gap}if(e&&x&&i){let z=getComputedStyle(i),R="padding",W=n?"Right":"Bottom",Y=parseFloat(z[R+(n?"Left":"Top")]);C-=Y,o+=Y,o+=parseFloat(z[R+W]);for(const b of h)b.el&&(wt(b.pos)<wt(o)&&wt(b.pos+b.dim+b.gap)<wt(C)&&wt(C)>wt(a-o)&&(b.el.style[t]=`${wt(v+x,1e3)}px`),wt(b.pos+b.gap)>=wt(a-o)&&wt(b.pos)>wt(C+o)&&wt(C)<wt(o)&&(b.el.style[t]=`-${wt(x,1e3)}px`))}let k,S,A=[...this.inTransition];if(A.length>1&&(k=c[A[0]],S=c[A[1]]),k&&S){let z=0;for(const R of h)R.el?this.inTransition.has(R.index)&&k.slides.indexOf(R)<0&&(R.el.style[t]=`${wt(z+(k.pos-S.pos),1e3)}px`):z+=R.dim+R.gap}}createSlideEl(t){const{track:n,slides:s}=this;if(!n||!t||t.el&&t.el.parentNode)return;const e=t.el||document.createElement("div");Dt(e,this.cn(hl)),Dt(e,t.class),Dt(e,t.customClass);const i=t.html;i&&(i instanceof HTMLElement?e.appendChild(i):e.innerHTML=t.html+"");const o=[];
vendor: 13,375 bytes, line 22
22s.forEach((h,g)=>{h.el&&o.push(g)});const a=t.index;let l=null;o.length&&(l=s[o.reduce((h,g)=>Math.abs(g-a)<Math.abs(h-a)?g:h)]);const c=l&&l.el&&l.el.parentNode?l.index<t.index?l.el.nextSibling:l.el:null;n.insertBefore(e,n.contains(c)?c:null),t.el=e,this.emit("createSlide",t)}removeSlideEl(t,n=!1){const s=t==null?void 0:t.el;if(!s||!s.parentNode)return;const e=this.cn(zh);if(s.classList.contains(e)&&(ge(s,e),this.emit("unselectSlide",t)),t.isDom&&!n)return s.removeAttribute("aria-hidden"),s.removeAttribute("data-index"),void(s.style.left="");this.emit("removeSlide",t);const i=new CustomEvent(cl);s.dispatchEvent(i),t.el&&(t.el.remove(),t.el=null)}transitionTo(t=0,n=this.option("transition")){var s,e,i,o;if(!n)return!1;const a=this.page,{pages:l,panzoom:c}=this;t=parseInt((t||0).toString())||0;const h=this.getPageFromIndex(t);if(!c||!l[h]||l.length<2||Math.abs((((e=(s=l[a])===null||s===void 0?void 0:s.slides[0])===null||e===void 0?void 0:e.dim)||0)-this.viewportDim)>1)return!1;let g=t>a?1:-1;this.isInfinite&&(a===0&&t===l.length-1&&(g=-1),a===l.length-1&&t===0&&(g=1));const m=l[h].pos*(this.isRTL?1:-1);if(a===h&&Math.abs(m-c.target[this.axis])<1)return!1;this.clearTransitions();const v=c.isResting;Dt(this.container,this.cn("inTransition"));const x=((i=l[a])===null||i===void 0?void 0:i.slides[0])||null,C=((o=l[h])===null||o===void 0?void 0:o.slides[0])||null;this.inTransition.add(C.index),this.createSlideEl(C);let k=x.el,S=C.el;v||n===hl||(n="fadeFast",k=null);const A=this.isRTL?"next":"prev",z=this.isRTL?"prev":"next";return k&&(this.inTransition.add(x.index),x.transition=n,k.addEventListener(cl,this.onAnimationEnd),k.classList.add(`f-${n}Out`,`to-${g>0?z:A}`)),S&&(C.transition=n,S.addEventListener(cl,this.onAnimationEnd),S.classList.add(`f-${n}In`,`from-${g>0?A:z}`)),c.current[this.axis]=m,c.target[this.axis]=m,c.requestTick(),this.onChange(h),!0}manageSlideVisiblity(){const t=new Set,n=new Set,s=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const e of this.slides)s.has(e)?t.add(e):n.add(e);for(const e of this.inTransition)t.add(this.slides[e]);for(const e of t)this.createSlideEl(e),this.lazyLoadSlide(e);for(const e of n)t.has(e)||this.removeSlideEl(e);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const t="aria-hidden";let n=this.cn(zh);if(n)for(const s of this.slides){const e=s.el;e&&(e.dataset.index=`${s.index}`,e.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(s)?e.removeAttribute(t):e.setAttribute(t,"true"):this.pages[this.page].slides.includes(s)?(e.classList.contains(n)||(Dt(e,n),this.emit("selectSlide",s)),e.removeAttribute(t)):(e.classList.contains(n)&&(ge(e,n),this.emit("unselectSlide",s)),e.setAttribute(t,"true")))}}flipInfiniteTrack(){const{axis:t,isHorizontal:n,isInfinite:s,isRTL:e,viewportDim:i,contentDim:o}=this,a=this.panzoom;if(!a||!s)return;let l=a.current[t],c=a.target[t]-l,h=0,g=.5*i;e&&n?(l<-g&&(h=-1,l+=o),l>o-g&&(h=1,l-=o)):(l>g&&(h=1,l-=o),l<-o+g&&(h=-1,l+=o)),h&&(a.current[t]=l,a.target[t]=l+c)}lazyLoadImg(t,n){const s=this,e="f-fadeIn",i="is-preloading";let o=!1,a=null;const l=()=>{o||(o=!0,a&&(a.remove(),a=null),ge(n,i),n.complete&&(Dt(n,e),setTimeout(()=>{ge(n,e)},350)),this.option("adaptiveHeight")&&t.el&&this.pages[this.page].slides.indexOf(t)>-1&&(s.updateMetrics(),s.setViewportHeight()),this.emit("load",t))};Dt(n,i),n.src=n.dataset.lazySrcset||n.dataset.lazySrc||"",delete n.dataset.lazySrc,delete n.dataset.lazySrcset,n.addEventListener("error",()=>{l()}),n.addEventListener("load",()=>{l()}),setTimeout(()=>{const c=n.parentNode;c&&t.el&&(n.complete?l():o||(a=Or(zc),c.insertBefore(a,n)))},300)}lazyLoadSlide(t){const n=t&&t.el;if(!n)return;const s=new Set;let e=Array.from(n.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));n.dataset.lazySrc&&e.push(n),e.map(i=>{i instanceof HTMLImageElement?s.add(i):i instanceof HTMLElement&&i.dataset.lazySrc&&(i.style.backgroundImage=`url('${i.dataset.lazySrc}')`,delete i.dataset.lazySrc)});for(const i of s)this.lazyLoadImg(t,i)}onAnimationEnd(t){var n;const s=t.target,e=s?parseInt(s.dataset.index||"",10)||0:-1,i=this.slides[e],o=t.animationName;if(!s||!i||!o)return;const a=!!this.inTransition.has(e)&&i.transition;a&&o.substring(0,a.length+2)===`f-${a}`&&this.inTransition.delete(e),this.inTransition.size||this.clearTransitions(),e===this.page&&(!((n=this.panzoom)===null||n===void 0)&&n.isResting)&&this.emit("settle")}onDecel(t,n=0,s=0,e=0,i=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:o,isHorizontal:a,axis:l,pages:c}=this,h=c.length,g=Math.abs(Math.atan2(s,n)/(Math.PI/180));let m=0;if(m=g>45&&g<135?a?0:s:a?n:0,!h)return;let v=this.page,x=o&&a?1:-1;const C=t.current[l]*x;let{pageIndex:k}=this.getPageFromPosition(C);Math.abs(m)>5?(c[v].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(v=k),v=o&&a?m<0?v-1:v+1:m<0?v+1:v-1):v=e===0&&i===0?v:k,this.slideTo(v,{transition:!1,friction:t.option("decelFriction")})}onClick(t){const n=t.target,s=n&&mn(n)?n.dataset:null;let e,i;s&&(s.carouselPage!==void 0?(i="slideTo",e=s.carouselPage):s.carouselNext!==void 0?i="slideNext":s.carouselPrev!==void 0&&(i="slidePrev")),i?(t.preventDefault(),t.stopPropagation(),n&&!n.hasAttribute("disabled")&&this[i](e)):this.emit("click",t)}onSlideTo(t){const n=t.detail||0;this.slideTo(this.getPageForSlide(n),{friction:0})}onChange(t,n=0){const s=this.page;this.prevPage=s,this.page=t,this.option("adaptiveHeight")&&this.setViewportHeight(),t!==s&&(this.markSelectedSlides(),this.emit("change",t,s,n))}onRefresh(){let t=this.contentDim,n=this.viewportDim;this.updateMetrics(),this.contentDim===t&&this.viewportDim===n||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var t;(t=this.viewport)===null||t===void 0||t.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(t){this.lp!==t.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=t.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(t=null,n=null){this.destroy(),this.state=hi.Init,this.prevPage=null,this.userOptions=t||this.userOptions,this.userPlugins=n||this.userPlugins,this.processOptions()}slideTo(t=0,{friction:n=this.option("friction"),transition:s=this.option("transition")}={}){if(this.state===hi.Destroy)return;t=parseInt((t||0).toString())||0;const e=this.getPageFromIndex(t),{axis:i,isHorizontal:o,isRTL:a,pages:l,panzoom:c}=this,h=l.length,g=a&&o?1:-1;if(!c||!h)return;if(this.page!==e){const v=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",v,t),v.defaultPrevented)return}if(this.transitionTo(t,s))return;let m=l[e].pos;if(this.isInfinite){const v=this.contentDim,x=c.target[i]*g;h===2?m+=v*Math.floor(parseFloat(t+"")/2):m=[m,m-v,m+v].reduce(function(C,k){return Math.abs(k-x)<Math.abs(C-x)?k:C})}m*=g,Math.abs(c.target[i]-m)<1||(c.panTo({x:o?m:0,y:o?0:m,friction:n}),this.onChange(e))}slideToClosest(t){if(this.panzoom){const{pageIndex:n}=this.getPageFromPosition();this.slideTo(n,t)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),ge(this.container,this.cn("inTransition"));const t=["to-prev","to-next","from-prev","from-next"];for(const n of this.slides){const s=n.el;if(s){s.removeEventListener(cl,this.onAnimationEnd),s.classList.remove(...t);const e=n.transition;e&&s.classList.remove(`f-${e}Out`,`f-${e}In`)}}this.manageSlideVisiblity()}addSlide(t,n){var s,e,i,o;const a=this.panzoom,l=((s=this.pages[this.page])===null||s===void 0?void 0:s.pos)||0,c=((e=this.pages[this.page])===null||e===void 0?void 0:e.dim)||0,h=this.contentDim<this.viewportDim;let g=Array.isArray(n)?n:[n];const m=[];for(const v of g)m.push(vu(v));this.slides.splice(t,0,...m);for(let v=0;v<this.slides.length;v++)this.slides[v].index=v;for(const v of m)this.emit("beforeInitSlide",v,v.index);if(this.page>=t&&(this.page+=m.length),this.updateMetrics(),a){const v=((i=this.pages[this.page])===null||i===void 0?void 0:i.pos)||0,x=((o=this.pages[this.page])===null||o===void 0?void 0:o.dim)||0,C=this.pages.length||1,k=this.isRTL?c-x:x-c,S=this.isRTL?l-v:v-l;h&&C===1?(t<=this.page&&(a.current[this.axis]-=k,a.target[this.axis]-=k),a.panTo({[this.isHorizontal?"x":"y"]:-1*v})):S&&t<=this.page&&(a.target[this.axis]-=S,a.current[this.axis]-=S,a.requestTick())}for(const v of m)this.emit("initSlide",v,v.index)}prependSlide(t){this.addSlide(0,t)}appendSlide(t){this.addSlide(this.slides.length,t)}removeSlide(t){const n=this.slides.length;t=(t%n+n)%n;const s=this.slides[t];if(s){this.removeSlideEl(s,!0),this.slides.splice(t,1);for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",s)}}updateMetrics(){const{panzoom:t,viewport:n,track:s,slides:e,isHorizontal:i,isInfinite:o}=this;if(!s)return;const a=i?"width":"height",l=i?"offsetWidth":"offsetHeight";if(n){let g=Math.max(n[l],wt(n.getBoundingClientRect()[a],1e3)),m=getComputedStyle(n),v="padding",x=i?"Right":"Bottom";g-=parseFloat(m[v+(i?"Left":"Top")])+parseFloat(m[v+x]),this.viewportDim=g}let c,h=0;for(const[g,m]of e.entries()){let v=0,x=0;!m.el&&c?(v=c.dim,x=c.gap):({dim:v,gap:x}=this.getSlideMetrics(m),c=m),v=wt(v,1e3),x=wt(x,1e3),m.dim=v,m.gap=x,m.pos=h,h+=v,(o||g<e.length-1)&&(h+=x)}h=wt(h,1e3),this.contentDim=h,t&&(t.contentRect[a]=h,t.contentRect[i?"fullWidth":"fullHeight"]=h),this.pages=this.createPages(),this.pages=this.processPages(),this.state===hi.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(t,n=!1,s=!1){t===void 0&&(t=this.page);const e=this,i=e.panzoom,o=e.contentDim,a=e.pages[t]||0;if(!a||!i)return t>this.page?-1:1;let l=-1*i.current.e,c=wt((l-a.pos)/(1*a.dim),1e3),h=c,g=c;this.isInfinite&&s!==!0&&(h=wt((l-a.pos+o)/(1*a.dim),1e3),g=wt((l-a.pos-o)/(1*a.dim),1e3));let m=[c,h,g].reduce(function(v,x){return Math.abs(x)<Math.abs(v)?x:v});return n?m:m>1?1:m<-1?-1:m}setViewportHeight(){const{page:t,pages:n,viewport:s,isHorizontal:e}=this;if(!s||!n[t])return;let i=0;e&&this.track&&(this.track.style.height="auto",n[t].slides.forEach(o=>{o.el&&(i=Math.max(i,o.el.offsetHeight))})),s.style.height=i?`${i}px`:""}getPageForSlide(t){for(const n of this.pages)for(const s of n.slides)if(s.index===t)return n.index;return-1}getVisibleSlides(t=0){var n;const s=new Set;let{panzoom:e,contentDim:i,viewportDim:o,pages:a,page:l}=this;if(o){i=i+((n=this.slides[this.slides.length-1])===null||n===void 0?void 0:n.gap)||0;let c=0;c=e&&e.state!==ye.Init&&e.state!==ye.Destroy?-1*e.current[this.axis]:a[l]&&a[l].pos||0,this.isInfinite&&(c-=Math.floor(c/i)*i),this.isRTL&&this.isHorizontal&&(c*=-1);const h=c-o*t,g=c+o*(t+1),m=this.isInfinite?[-1,0,1]:[0];for(const v of this.slides)for(const x of m){const C=v.pos+x*i,k=C+v.dim+v.gap;C<g&&k>h&&s.add(v)}}return s}getPageFromPosition(t){const{viewportDim:n,contentDim:s,slides:e,pages:i,panzoom:o}=this,a=i.length,l=e.length,c=e[0],h=e[l-1],g=this.option("center");let m=0,v=0,x=0,C=t===void 0?-1*((o==null?void 0:o.target[this.axis])||0):t;g&&(C+=.5*n),this.isInfinite?(C<c.pos-.5*h.gap&&(C-=s,x=-1),C>h.pos+h.dim+.5*h.gap&&(C-=s,x=1)):C=Math.max(c.pos||0,Math.min(C,h.pos));let k=h,S=e.find(A=>{const z=A.pos-.5*k.gap,R=A.pos+A.dim+.5*A.gap;return k=A,C>=z&&C<R});return S||(S=h),v=this.getPageForSlide(S.index),m=v+x*a,{page:m,pageIndex:v}}setPageFromPosition(){const{pageIndex:t}=this.getPageFromPosition();this.onChange(t)}destroy(){if([hi.Destroy].includes(this.state))return;this.state=hi.Destroy;const{container:t,viewport:n,track:s,slides:e,panzoom:i}=this,o=this.option("classes");t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),i&&(i.destroy(),this.panzoom=null),e&&e.forEach(l=>{this.removeSlideEl(l)}),this.detachPlugins(),n&&(n.removeEventListener("scroll",this.onScroll),n.offsetParent&&s&&s.offsetParent&&n.replaceWith(...s.childNodes));for(const[l,c]of Object.entries(o))l!=="container"&&c&&t.classList.remove(c);this.track=null,this.viewport=null,this.page=0,this.slides=[];const a=this.events.get("ready");this.events=new Map,a&&this.events.set("ready",a)}}Object.defineProperty(Vs,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:io}),Object.defineProperty(Vs,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Dg}),Object.defineProperty(Vs,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:$g});const lf=function(p){if(!mn(p))return 0;const t=window.scrollY,n=window.innerHeight,s=t+n,e=p.getBoundingClientRect(),i=e.y+t,o=e.height,a=i+o;if(t>a||s<i)return 0;if(t<i&&s>a||i<t&&a>s)return 100;let l=o;i<t&&(l-=t-i),a>s&&(l-=a-s);const c=l/n*100;return Math.round(c)},Sa=!(typeof window=="undefined"||!window.document||!window.document.createElement);let yu;const bu=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not
22([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),Ih=p=>{if(p&&Sa){yu===void 0&&document.createElement("div").focus({get preventScroll(){return yu=!0,!1}});try{if(yu)p.focus({preventScroll:!0});else{const t=window.scrollY||document.body.scrollTop,n=window.scrollX||document.body.scrollLeft;p.focus(),document.body.scrollTo({top:t,left:n,behavior:"auto"})}}catch(t){}}},uf=()=>{const p=document;let t,n="",s="",e="";return p.fullscreenEnabled?(n="requestFullscreen",s="exitFullscreen",e="fullscreenElement"):p.webkitFullscreenEnabled&&(n="webkitRequestFullscreen",s="webkitExitFullscreen",e="webkitFullscreenElement"),n&&(t={request:function(i=p.documentElement){return n==="webkitRequestFullscreen"?i[n](Element.ALLOW_KEYBOARD_INPUT):i[n]()},exit:function(){return p[e]&&p[s]()},isFullscreen:function(){return p[e]}}),t},rc={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},rf),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:`<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">
23    <div class="fancybox__backdrop"></div>
24    <div class="fancybox__carousel"></div>
25    <div class="fancybox__footer"></div>
26  </div>`},trapFocus:!0,wheel:"zoom"};var Pi,qi;(function(p){p[p.Init=0]="Init",p[p.Ready=1]="Ready",p[p.Closing=2]="Closing",p[p.CustomClosing=3]="CustomClosing",p[p.Destroy=4]="Destroy"})(Pi||(Pi={})),function(p){p[p.Loading=0]="Loading",p[p.Opening=1]="Opening",p[p.Ready=2]="Ready",p[p.Closing=3]="Closing"}(qi||(qi={}));let $h="",ma=!1,dl=!1,Zs=null;const cf=()=>{let p="",t="";const n=he.getInstance();if(n){const s=n.carousel,e=n.getSlide();if(s&&e){let i=e.slug||void 0,o=e.triggerEl||void 0;t=i||n.option("slug")||"",!t&&o&&o.dataset&&(t=o.dataset.fancybox||""),t&&t!=="true"&&(p="#"+t+(!i&&s.slides.length>1?"-"+(e.index+1):""))}}return{hash:p,slug:t,index:1}},Zl=()=>{const p=new URL(document.URL).hash,t=p.slice(1).split("-"),n=t[t.length-1],s=n&&/^\+?\d+$/.test(n)&&parseInt(t.pop()||"1",10)||1;return{hash:p,slug:t.join("-"),index:s}},hf=()=>{const{slug:p,index:t}=Zl();if(!p)return;let n=document.querySelector(`[data-slug="${p}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),he.getInstance())return;const s=document.querySelectorAll(`[data-fancybox="${p}"]`);s.length&&(n=s[t-1],n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},df=()=>{if(he.defaults.Hash===!1)return;const p=he.getInstance();if((p==null?void 0:p.options.Hash)===!1)return;const{slug:t,index:n}=Zl(),{slug:s}=cf();p&&(t===s?p.jumpTo(n-1):(ma=!0,p.close())),hf()},ff=()=>{Zs&&clearTimeout(Zs),queueMicrotask(()=>{df()})},Rh=()=>{window.addEventListener("hashchange",ff,!1),setTimeout(()=>{df()},500)};Sa&&(/complete|interactive|loaded/.test(document.readyState)?Rh():document.addEventListener("DOMContentLoaded",Rh));const fl="is-zooming-in";class pf extends Cr{onCreateSlide(t,n,s){const e=this.instance.optionFor(s,"src")||"";s.el&&s.type==="image"&&typeof e=="string"&&this.setImage(s,e)}onRemoveSlide(t,n,s){s.panzoom&&s.panzoom.destroy(),s.panzoom=void 0,s.imageEl=void 0}onChange(t,n,s,e){ge(this.instance.container,fl);for(const i of n.slides){const o=i.panzoom;o&&i.index!==s&&o.reset(.35)}}onClose(){var t;const n=this.instance,s=n.container,e=n.getSlide();if(!s||!s.parentElement||!e)return;const{el:i,contentEl:o,panzoom:a,thumbElSrc:l}=e;
vendor: 4,456 bytes, line 26
26if(!i||!l||!o||!a||a.isContentLoading||a.state===ye.Init||a.state===ye.Destroy)return;a.updateMetrics();let c=this.getZoomInfo(e);if(!c)return;this.instance.state=Pi.CustomClosing,s.classList.remove(fl),s.classList.add("is-zooming-out"),o.style.backgroundImage=`url('${l}')`;const h=s.getBoundingClientRect();(((t=window.visualViewport)===null||t===void 0?void 0:t.scale)||1)===1&&Object.assign(s.style,{position:"absolute",top:`${s.offsetTop+window.scrollY}px`,left:`${s.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${h.width}px`,height:`${h.height}px`,overflow:"hidden"});const{x:g,y:m,scale:v,opacity:x}=c;if(x){const C=((k,S,A,z)=>{const R=S-k,W=z-A;return Y=>A+((Y-k)/R*W||0)})(a.scale,v,1,0);a.on("afterTransform",()=>{o.style.opacity=C(a.scale)+""})}a.on("endAnimation",()=>{n.destroy()}),a.target.a=v,a.target.b=0,a.target.c=0,a.target.d=v,a.panTo({x:g,y:m,scale:v,friction:x?.2:.33,ignoreBounds:!0}),a.isResting&&n.destroy()}setImage(t,n){const s=this.instance;t.src=n,this.process(t,n).then(e=>{const{contentEl:i,imageEl:o,thumbElSrc:a,el:l}=t;if(s.isClosing()||!i||!o)return;i.offsetHeight;const c=!!s.isOpeningSlide(t)&&this.getZoomInfo(t);if(this.option("protected")&&l){l.addEventListener("contextmenu",m=>{m.preventDefault()});const g=document.createElement("div");Dt(g,"fancybox-protected"),i.appendChild(g)}if(a&&c){const g=e.contentRect,m=Math.max(g.fullWidth,g.fullHeight);let v=null;!c.opacity&&m>1200&&(v=document.createElement("img"),Dt(v,"fancybox-ghost"),v.src=a,i.appendChild(v));const x=()=>{v&&(Dt(v,"f-fadeFastOut"),setTimeout(()=>{v&&(v.remove(),v=null)},200))};(h=a,new Promise((C,k)=>{const S=new Image;S.onload=C,S.onerror=k,S.src=h})).then(()=>{s.hideLoading(t),t.state=qi.Opening,this.instance.emit("reveal",t),this.zoomIn(t).then(()=>{x(),this.instance.done(t)},()=>{}),v&&setTimeout(()=>{x()},m>2500?800:200)},()=>{s.hideLoading(t),s.revealContent(t)})}else{const g=this.optionFor(t,"initialSize"),m=this.optionFor(t,"zoom"),v={event:s.prevMouseMoveEvent||s.options.event,friction:m?.12:0};let x=s.optionFor(t,"showClass")||void 0,C=!0;s.isOpeningSlide(t)&&(g==="full"?e.zoomToFull(v):g==="cover"?e.zoomToCover(v):g==="max"?e.zoomToMax(v):C=!1,e.stop("current")),C&&x&&(x=e.isDragging?"f-fadeIn":""),s.hideLoading(t),s.revealContent(t,x)}var h},()=>{s.setError(t,"{{IMAGE_ERROR}}")})}process(t,n){return new Promise((s,e)=>{var i;const o=this.instance,a=t.el;o.clearContent(t),o.showLoading(t);let l=this.optionFor(t,"content");if(typeof l=="string"&&(l=Or(l)),!l||!mn(l)){if(l=document.createElement("img"),l instanceof HTMLImageElement){let c="",h=t.caption;c=typeof h=="string"&&h?h.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${t.index+1} of ${((i=o.carousel)===null||i===void 0?void 0:i.pages.length)||1}`,l.src=n||"",l.alt=c,l.draggable=!1,t.srcset&&l.setAttribute("srcset",t.srcset),this.instance.isOpeningSlide(t)&&(l.fetchPriority="high")}t.sizes&&l.setAttribute("sizes",t.sizes)}Dt(l,"fancybox-image"),t.imageEl=l,o.setContent(t,l,!1),t.panzoom=new io(a,_n({transformParent:!0},this.option("Panzoom")||{},{content:l,width:(c,h)=>o.optionFor(t,"width","auto",h)||"auto",height:(c,h)=>o.optionFor(t,"height","auto",h)||"auto",wheel:()=>{const c=o.option("wheel");return(c==="zoom"||c=="pan")&&c},click:(c,h)=>{var g,m;if(o.isCompact||o.isClosing()||t.index!==((g=o.getSlide())===null||g===void 0?void 0:g.index))return!1;if(h){const x=h.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(x.nodeName))return!1}let v=!h||h.target&&((m=t.contentEl)===null||m===void 0?void 0:m.contains(h.target));return o.option(v?"contentClick":"backdropClick")||!1},dblClick:()=>o.isCompact?"toggleZoom":o.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:c=>{s(c)},error:()=>{e()},destroy:()=>{e()}}}))})}zoomIn(t){return new Promise((n,s)=>{const e=this.instance,i=e.container,{panzoom:o,contentEl:a,el:l}=t;o&&o.updateMetrics();const c=this.getZoomInfo(t);if(!(c&&l&&a&&o&&i))return void s();const{x:h,y:g,scale:m,opacity:v}=c,x=()=>{t.state!==qi.Closing&&(v&&(a.style.opacity=Math.max(Math.min(1,1-(1-o.scale)/(1-m)),0)+""),o.scale>=1&&o.scale>o.targetScale-.1&&n(o))},C=A=>{(A.scale<.99||A.scale>1.01)&&!A.isDragging||(ge(i,fl),a.style.opacity="",A.off("endAnimation",C),A.off("touchStart",C),A.off("afterTransform",x),n(A))};o.on("endAnimation",C),o.on("touchStart",C),o.on("afterTransform",x),o.on(["error","destroy"],()=>{s()}
26),o.panTo({x:h,y:g,scale:m,friction:0,ignoreBounds:!0}),o.stop("current");const k={event:o.panMode==="mousemove"?e.prevMouseMoveEvent||e.options.event:void 0},S=this.optionFor(t,"initialSize");Dt(i,fl),e.hideLoading(t),S==="full"?o.zoomToFull(k):S==="cover"?o.zoomToCover(k):S==="max"?o.zoomToMax(k):o.reset(.172)})}getZoomInfo(t){const{el:n,imageEl:s,thumbEl:e,panzoom:i}=t,o=this.instance,a=o.container;if(!n||!s||!e||!i||lf(e)<3||!this.optionFor(t,"zoom")||!a||o.state===Pi.Destroy||getComputedStyle(a).getPropertyValue("--f-images-zoom")==="0")return!1;const l=window.visualViewport||null;if((l?l.scale:1)!==1)return!1;let{top:c,left:h,width:g,height:m}=e.getBoundingClientRect(),{top:v,left:x,fitWidth:C,fitHeight:k}=i.contentRect;if(!(g&&m&&C&&k))return!1;const S=i.container.getBoundingClientRect();x+=S.left,v+=S.top;const A=-1*(x+.5*C-(h+.5*g)),z=-1*(v+.5*k-(c+.5*m)),R=g/C;let W=this.option("zoomOpacity")||!1;return W==="auto"&&(W=Math.abs(g/m-C/k)>.1),{x:A,y:z,scale:R,opacity:W}}attach(){const t=this,n=t.instance;n.on("Carousel.change",t.onChange),n.on("Carousel.createSlide",t.onCreateSlide),n.on("Carousel.removeSlide",t.onRemoveSlide),n.on("close",t.onClose)}detach(){const t=this,n=t.instance;n.off("Carousel.change",t.onChange),n.off("Carousel.createSlide",t.onCreateSlide),n.off("Carousel.removeSlide",t.onRemoveSlide),n.off("close",t.onClose)}}Object.defineProperty(pf,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),typeof SuppressedError=="function"&&SuppressedError;const wu="html",Fh="image",xu="map",Gr="youtube",$s="vimeo",ha="html5video",Bh=(p,t={})=>{const n=new URL(p),s=new URLSearchParams(n.search),e=new URLSearchParams;for(const[a,l]of[...s,...Object.entries(t)]){let c=l+"";if(a==="t"){let h=c.match(/((\d*)m)?(\d*)s?/);h&&e.set("start",60*parseInt(h[2]||"0")+parseInt(h[3]||"0")+"")}else e.set(a,c)}let i=e+"",o=p.match(/#t=((.*)?\d+s)/);return o&&(i+=`#t=${o[1]}`),i},Rg={ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:`<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
27  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},Fg=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class gf extends Cr{onBeforeInitSlide(t,n,s){this.processType(s)}onCreateSlide(t,n,s){this.setContent(s)}onClearContent(t,n){n.xhr&&(n.xhr.abort(),n.xhr=null);const s=n.iframeEl;s&&(s.onload=s.onerror=null,s.src="//about:blank",n.iframeEl=null);const e=n.contentEl,i=n.placeholderEl;if(n.type==="inline"&&e&&i)e.classList.remove("fancybox__content"),getComputedStyle(e).getPropertyValue("display")!=="none"&&(e.style.display="none"),setTimeout(()=>{i&&(e&&i.parentNode&&i.parentNode.insertBefore(e,i),i.remove())},0),n.contentEl=void 0,n.placeholderEl=void 0;else for(;n.el&&n.el.firstChild;)n.el.removeChild(n.el.firstChild)}onSelectSlide(t,n,s){s.state===qi.Ready&&this.playVideo()}onUnselectSlide(t,n,s){var e,i;if(s.type===ha){try{(i=(e=s.el)===null||e===void 0?void 0:e.querySelector("video"))===null||i===void 0||i.pause()}catch(a){}return}let o;s.type===$s?o={method:"pause",value:"true"}:s.type===Gr&&(o={event:"command",func:"pauseVideo"}),o&&s.iframeEl&&s.iframeEl.contentWindow&&s.iframeEl.contentWindow.postMessage(JSON.stringify(o),"*"),s.poller&&clearTimeout(s.poller)}onDone(t,n){t.isCurrentSlide(n)&&!t.isClosing()&&this.playVideo()}onRefresh(t,n){n.slides.forEach(s=>{s.el&&(this.resizeIframe(s),this.setAspectRatio(s))})}onMessage(t){try{let n=JSON.parse(t.data);if(t.origin==="https://player.vimeo.com"){if(n.event==="ready")for(let s of Array.from(document.getElementsByClassName("fancybox__iframe")))s instanceof HTMLIFrameElement&&s.contentWindow===t.source&&(s.dataset.ready="true")}else if(t.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&n.event==="onReady"){const s=document.getElementById(n.id);s&&(s.dataset.ready="true")}}catch(n){}}loadAjaxContent(t){const n=this.instance.optionFor(t,"src")||"";this.instance.showLoading(t);const s=this.instance,e=new XMLHttpRequest;s.showLoading(t),e.onreadystatechange=function(){e.readyState===XMLHttpRequest.DONE&&s.state===Pi.Ready&&(s.hideLoading(t),e.status===200?s.setContent(t,e.responseText):s.setError(t,e.status===404?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const i=t.ajax||null;e.open(i?"POST":"GET",n+""),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.send(i),t.xhr=e}setInlineContent(t){let n=null;if(mn(t.src))n=t.src;else if(typeof t.src=="string"){const s=t.src.split("#",2).pop();n=s?document.getElementById(s):null}
27if(n){if(t.type==="clone"||n.closest(".fancybox__slide")){n=n.cloneNode(!0);const s=n.dataset.animationName;s&&(n.classList.remove(s),delete n.dataset.animationName);let e=n.getAttribute("id");e=e?`${e}--clone`:`clone-${this.instance.id}-${t.index}`,n.setAttribute("id",e)}else if(n.parentNode){const s=document.createElement("div");s.classList.add("fancybox-placeholder"),n.parentNode.insertBefore(s,n),t.placeholderEl=s}this.instance.setContent(t,n)}else this.instance.setError(t,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(t){const{src:n,el:s}=t;if(!n||typeof n!="string"||!s)return;s.classList.add("is-loading");const e=this.instance,i=document.createElement("iframe");i.className="fancybox__iframe",i.setAttribute("id",`fancybox__iframe_${e.id}_${t.index}`);for(const[a,l]of Object.entries(this.optionFor(t,"iframeAttr")||{}))i.setAttribute(a,l);i.onerror=()=>{e.setError(t,"{{IFRAME_ERROR}}")},t.iframeEl=i;const o=this.optionFor(t,"preload");if(t.type!=="iframe"||o===!1)return i.setAttribute("src",t.src+""),e.setContent(t,i,!1),this.resizeIframe(t),void e.revealContent(t);e.showLoading(t),i.onload=()=>{if(!i.src.length)return;const a=i.dataset.ready!=="true";i.dataset.ready="true",this.resizeIframe(t),a?e.revealContent(t):e.hideLoading(t)},i.setAttribute("src",n),e.setContent(t,i,!1)}resizeIframe(t){const{type:n,iframeEl:s}=t;if(n===Gr||n===$s)return;const e=s==null?void 0:s.parentElement;if(!s||!e)return;let i=t.autoSize;i===void 0&&(i=this.optionFor(t,"autoSize"));let o=t.width||0,a=t.height||0;o&&a&&(i=!1);const l=e&&e.style;if(t.preload!==!1&&i!==!1&&l)try{const c=window.getComputedStyle(e),h=parseFloat(c.paddingLeft)+parseFloat(c.paddingRight),g=parseFloat(c.paddingTop)+parseFloat(c.paddingBottom),m=s.contentWindow;if(m){const v=m.document,x=v.getElementsByTagName(wu)[0],C=v.body;l.width="",C.style.overflow="hidden",o=o||x.scrollWidth+h,l.width=`${o}px`,C.style.overflow="",l.flex="0 0 auto",l.height=`${C.scrollHeight}px`,a=x.scrollHeight+g}}catch(c){}if(o||a){const c={flex:"0 1 auto",width:"",height:""};o&&o!=="auto"&&(c.width=`${o}px`),a&&a!=="auto"&&(c.height=`${a}px`),Object.assign(l,c)}}playVideo(){const t=this.instance.getSlide();if(!t)return;const{el:n}=t;if(!n||!n.offsetParent||!this.optionFor(t,"videoAutoplay"))return;if(t.type===ha)try{const e=n.querySelector("video");if(e){const i=e.play();i!==void 0&&i.then(()=>{}).catch(o=>{e.muted=!0,e.play()})}}catch(e){}if(t.type!==Gr&&t.type!==$s)return;const s=()=>
vendor: 19,495 bytes, line 27
27{if(t.iframeEl&&t.iframeEl.contentWindow){let e;if(t.iframeEl.dataset.ready==="true")return e=t.type===Gr?{event:"command",func:"playVideo"}:{method:"play",value:"true"},e&&t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"),void(t.poller=void 0);t.type===Gr&&(e={event:"listening",id:t.iframeEl.getAttribute("id")},t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"))}t.poller=setTimeout(s,250)};s()}processType(t){if(t.html)return t.type=wu,t.src=t.html,void(t.html="");const n=this.instance.optionFor(t,"src","");if(!n||typeof n!="string")return;let s=t.type,e=null;if(e=n.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const i=this.optionFor(t,Gr),{nocookie:o}=i,a=function(g,m){var v={};for(var x in g)Object.prototype.hasOwnProperty.call(g,x)&&m.indexOf(x)<0&&(v[x]=g[x]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function"){var C=0;for(x=Object.getOwnPropertySymbols(g);C<x.length;C++)m.indexOf(x[C])<0&&Object.prototype.propertyIsEnumerable.call(g,x[C])&&(v[x[C]]=g[x[C]])}return v}(i,["nocookie"]),l=`www.youtube${o?"-nocookie":""}.com`,c=Bh(n,a),h=encodeURIComponent(e[2]);t.videoId=h,t.src=`https://${l}/embed/${h}?${c}`,t.thumbSrc=t.thumbSrc||`https://i.ytimg.com/vi/${h}/mqdefault.jpg`,s=Gr}else if(e=n.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const i=Bh(n,this.optionFor(t,$s)),o=encodeURIComponent(e[1]),a=e[4]||"";t.videoId=o,t.src=`https://player.vimeo.com/video/${o}?${a?`h=${a}${i?"&":""}`:""}${i}`,s=$s}if(!s&&t.triggerEl){const i=t.triggerEl.dataset.type;Fg.includes(i)&&(s=i)}s||typeof n=="string"&&(n.charAt(0)==="#"?s="inline":(e=n.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(s=ha,t.videoFormat=t.videoFormat||"video/"+(e[1]==="ogv"?"ogg":e[1])):n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s=Fh:n.match(/\.(pdf)((\?|#).*)?$/i)&&(s="pdf")),(e=n.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(t.src=`https://maps.google.${e[1]}/?ll=${(e[2]?e[2]+"&z="+Math.floor(parseFloat(e[3]))+(e[4]?e[4].replace(/^\//,"&"):""):e[4]+"").replace(/\?/,"&")}&output=${e[4]&&e[4].indexOf("layer=c")>0?"svembed":"embed"}`,s=xu):(e=n.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(t.src=`https://maps.google.${e[1]}/maps?q=${e[2].replace("query=","q=").replace("api=1","")}&output=embed`,s=xu),s=s||this.instance.option("defaultType"),t.type=s,s===Fh&&(t.thumbSrc=t.thumbSrc||t.src)}setContent(t){const n=this.instance.optionFor(t,"src")||"";if(t&&t.type&&n){switch(t.type){case wu:this.instance.setContent(t,n);break;case ha:const s=this.option("videoTpl");s&&this.instance.setContent(t,s.replace(/\{\{src\}\}/gi,n+"").replace(/\{\{format\}\}/gi,this.optionFor(t,"videoFormat")||"").replace(/\{\{poster\}\}/gi,t.poster||t.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(t);break;case"ajax":this.loadAjaxContent(t);break;case"pdf":case xu:case Gr:case $s:t.preload=!1;case"iframe":this.setIframeContent(t)}this.setAspectRatio(t)}}setAspectRatio(t){const n=t.contentEl;if(!(t.el&&n&&t.type&&[Gr,$s,ha].includes(t.type)))return;let s,e=t.width||"auto",i=t.height||"auto";if(e==="auto"||i==="auto"){s=this.optionFor(t,"videoRatio");const c=(s+"").match(/(\d+)\s*\/\s?(\d+)/);s=c&&c.length>2?parseFloat(c[1])/parseFloat(c[2]):parseFloat(s+"")}else e&&i&&(s=e/i);if(!s)return;n.style.aspectRatio="",n.style.width="",n.style.height="",n.offsetHeight;const o=n.getBoundingClientRect(),a=o.width||1,l=o.height||1;n.style.aspectRatio=s+"",s<a/l?(i=i==="auto"?l:Math.min(l,i),n.style.width="auto",n.style.height=`${i}px`):(e=e==="auto"?a:Math.min(a,e),n.style.width=`${e}px`,n.style.height="auto")}attach(){const t=this,n=t.instance;n.on("Carousel.beforeInitSlide",t.onBeforeInitSlide),n.on("Carousel.createSlide",t.onCreateSlide),n.on("Carousel.selectSlide",t.onSelectSlide),n.on("Carousel.unselectSlide",t.onUnselectSlide),n.on("Carousel.Panzoom.refresh",t.onRefresh),n.on("done",t.onDone),n.on("clearContent",t.onClearContent),window.addEventListener("message",t.onMessage)}detach(){const t=this,n=t.instance;n.off("Carousel.beforeInitSlide",t.onBeforeInitSlide),n.off("Carousel.createSlide",t.onCreateSlide),n.off("Carousel.selectSlide",t.onSelectSlide),n.off("Carousel.unselectSlide",t.onUnselectSlide),n.off("Carousel.Panzoom.refresh",t.onRefresh),n.off("done",t.onDone),n.off("clearContent",t.onClearContent),window.removeEventListener("message",t.onMessage)}}Object.defineProperty(gf,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Rg});const pl="play",gl="pause",da="ready";class mf extends Cr{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:da}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==da}onReady(t){this.option("autoStart")&&(t.isInfinite||t.page<t.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){document.visibilityState==="visible"?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var t;this.inHover=!1,!((t=this.instance.panzoom)===null||t===void 0)&&t.isResting&&this.resume()}onTimerEnd(){const t=this.instance;this.state==="play"&&(t.isInfinite||t.page!==t.pages.length-1?t.slideNext():t.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var t;if(!this.option("showProgress"))return null;this.removeProgressBar();const n=this.instance,s=((t=n.pages[n.page])===null||t===void 0?void 0:t.slides)||[];let e=this.option("progressParentEl");if(e||(e=(s.length===1?s[0].el:null)||n.viewport),!e)return null;const i=document.createElement("div");return Dt(i,"f-progress"),e.prepend(i),this.progressBar=i,i.offsetHeight,i}set(){const t=this,n=t.instance;if(n.pages.length<2||t.timer)return;const s=t.option("timeout");t.state=pl,Dt(n.container,"has-autoplay");let e=t.createProgressBar();e&&(e.style.transitionDuration=`${s}ms`,e.style.transform="scaleX(1)"),t.timer=setTimeout(()=>{t.timer=null,t.inHover||t.onTimerEnd()},s),t.emit("set")}clear(){const t=this;t.timer&&(clearTimeout(t.timer),t.timer=null),t.removeProgressBar()}start(){const t=this;if(t.set(),t.state!==da){if(t.option("pauseOnHover")){const n=t.instance.container;n.addEventListener("mouseenter",t.onMouseEnter,!1),n.addEventListener("mouseleave",t.onMouseLeave,!1)}document.addEventListener("visibilitychange",t.onVisibilityChange,!1),t.emit("start")}}stop(){const t=this,n=t.state,s=t.instance.container;t.clear(),t.state=da,s.removeEventListener("mouseenter",t.onMouseEnter,!1),s.removeEventListener("mouseleave",t.onMouseLeave,!1),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),ge(s,"has-autoplay"),n!==da&&t.emit("stop")}pause(){const t=this;t.state===pl&&(t.state=gl,t.clear(),t.emit(gl))}resume(){const t=this,n=t.instance;if(n.isInfinite||n.page!==n.pages.length-1)if(t.state!==pl){if(t.state===gl&&!t.inHover){const s=new Event("resume",{bubbles:!0,cancelable:!0});t.emit("resume",s),s.defaultPrevented||t.set()}}else t.set();else t.stop()}toggle(){this.state===pl||this.state===gl?this.stop():this.start()}attach(){const t=this,n=t.instance;n.on("ready",t.onReady),n.on("Panzoom.startAnimation",t.onChange),n.on("Panzoom.endAnimation",t.onSettle),n.on("Panzoom.touchMove",t.onChange)}detach(){const t=this,n=t.instance;n.off("ready",t.onReady),n.off("Panzoom.startAnimation",t.onChange),n.off("Panzoom.endAnimation",t.onSettle),n.off("Panzoom.touchMove",t.onChange),t.stop()}}Object.defineProperty(mf,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class _f extends Cr{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(t){const n=t.carousel;if(!n)return;const s=t.container;s&&(n.options.Autoplay=_n({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{t.emit("startSlideshow")},set:e=>{var i;s.classList.add("has-slideshow"),((i=t.getSlide())===null||i===void 0?void 0:i.state)!==qi.Ready&&e.pause()},stop:()=>{s.classList.remove("has-slideshow"),t.isCompact||t.endIdle(),t.emit("endSlideshow")},resume:(e,i)=>{var o,a,l;!i||!i.cancelable||((o=t.getSlide())===null||o===void 0?void 0:o.state)===qi.Ready&&(!((l=(a=t.carousel)===null||a===void 0?void 0:a.panzoom)===null||l===void 0)&&l.isResting)||i.preventDefault()}}}),n.attachPlugins({Autoplay:mf}),this.ref=n.plugins.Autoplay)}onReady(t){const n=t.carousel,s=this.ref;s&&n&&this.option("playOnStart")&&(n.isInfinite||n.page<n.pages.length-1)&&s.start()}onDone(t,n){const s=this.ref,e=t.carousel;if(!s||!e)return;const i=n.panzoom;i&&i.on("startAnimation",()=>{t.isCurrentSlide(n)&&s.stop()}),t.isCurrentSlide(n)&&s.resume()}onKeydown(t,n){var s;const e=this.ref;e&&n===this.option("key")&&((s=document.activeElement)===null||s===void 0?void 0:s.nodeName)!=="BUTTON"&&e.toggle()}attach(){const t=this,n=t.instance;n.on("Carousel.init",t.onPrepare),n.on("Carousel.ready",t.onReady),n.on("done",t.onDone),n.on("keydown",t.onKeydown)}detach(){const t=this,n=t.instance;n.off("Carousel.init",t.onPrepare),n.off("Carousel.ready",t.onReady),n.off("done",t.onDone),n.off("keydown",t.onKeydown)}}Object.defineProperty(_f,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:p=>{var t;return((t=p.instance.container)===null||t===void 0?void 0:t.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||p.instance.container},timeout:3e3}});const vf={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var Xr;(function(p){p[p.Init=0]="Init",p[p.Ready=1]="Ready",p[p.Hidden=2]="Hidden"})(Xr||(Xr={}));const Nh="isResting",ml="thumbWidth",To="thumbHeight",Pr="thumbClipWidth";let yf=class extends Cr{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Xr.Init})}get isModern(){return this.type==="modern"}onInitSlide(p,t){const n=t.el?t.el.dataset:void 0;n&&(t.thumbSrc=n.thumbSrc||t.thumbSrc||"",t[Pr]=parseFloat(n[Pr]||"")||t[Pr]||0,t[To]=parseFloat(n.thumbHeight||"")||t[To]||0),this.addSlide(t)}onInitSlides(){this.build()}onChange(){var p;if(!this.isModern)return;const t=this.container,n=this.instance,s=n.panzoom,e=this.carousel,i=e?e.panzoom:null,o=n.page;if(s&&e&&i){if(s.isDragging){ge(t,this.cn(Nh));let a=((p=e.pages[o])===null||p===void 0?void 0:p.pos)||0;a+=n.getProgress(o)*(this[Pr]+this.thumbGap);let l=i.getBounds();-1*a>l.x.min&&-1*a<l.x.max&&i.panTo({x:-1*a,friction:.12})}else Dr(t,this.cn(Nh),s.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const p of this.instance.slides||[])this.resizeModernSlide(p);this.shiftModern()}isDisabled(){const p=this.option("minCount")||0;if(p){const n=this.instance;let s=0;for(const e of n.slides||[])e.thumbSrc&&s++;if(s<p)return!0}const t=this.option("type");return["modern","classic"].indexOf(t)<0}getThumb(p){const t=this.option("thumbTpl")||"";return{html:this.instance.localize(t,[["%i",p.index],["%d",p.index+1],["%s",p.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(p){const t=this.carousel;t&&t.addSlide(p.index,this.getThumb(p))}getSlides(){const p=[];for(const t of this.instance.slides||[])p.push(this.getThumb(t));return p}resizeModernSlide(p){this.isModern&&(p[ml]=p[Pr]&&p[To]?Math.round(this[To]*(p[Pr]/p[To])):this[ml])}updateProps(){const p=this.container;if(!p)return;const t=n=>parseFloat(getComputedStyle(p).getPropertyValue("--f-thumb-"+n))||0;this.thumbGap=t("gap"),this.thumbExtraGap=t("extra-gap"),this[ml]=t("width")||40,this[Pr]=t("clip-width")||40,this[To]=t("height")||40}build(){const p=this;if(p.state!==Xr.Init)return;if(p.isDisabled())return void p.emit("disabled");const t=p.instance,n=t.container,s=p.getSlides(),e=p.option("type");p.type=e;const i=p.option("parentEl"),o=p.cn("container"),a=p.cn("track");let l=i==null?void 0:i.querySelector("."+o);l||(l=document.createElement("div"),Dt(l,o),i?i.appendChild(l):n.after(l)),Dt(l,`is-${e}`),Dt(n,p.cn("hasThumbs")),p.container=l,p.updateProps();let c=l.querySelector("."+a);c||(c=document.createElement("div"),Dt(c,p.cn("track")),l.appendChild(c)),p.track=c;const h=_n({},{track:c,infinite:!1,center:!0,fill:e==="classic",dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},p.option("Carousel")||{},{Sync:{target:t},slides:s}),g=new t.constructor(l,h);g.on("createSlide",(m,v)=>{p.setProps(v.index),p.emit("createSlide",v,v.el)}),g.on("ready",()=>{p.shiftModern(),p.emit("ready")}),g.on("refresh",()=>{p.shiftModern()}),g.on("Panzoom.click",(m,v,x)=>{p.onClick(x)}),p.carousel=g,p.state=Xr.Ready}onClick(p){p.preventDefault(),p.stopPropagation();const t=this.instance,{pages:n,page:s}=t,e=C=>{if(C){const k=C.closest("[data-carousel-index]");if(k)return[parseInt(k.dataset.carouselIndex||"",10)||0,k]}return[-1,void 0]},i=(C,k)=>{const S=document.elementFromPoint(C,k);return S?e(S):[-1,void 0]};let[o,a]=e(p.target);if(o>-1)return;const l=this[Pr],c=p.clientX,h=p.clientY;let[g,m]=i(c-l,h),[v,x]=i(c+l,h);m&&x?(o=Math.abs(c-m.getBoundingClientRect().right)<Math.abs(c-x.getBoundingClientRect().left)?g:v,o===s&&(o=o===g?v:g)):m?o=g:x&&(o=v),o>-1&&n[o]&&t.slideTo(o)}getShift(p){var t;const n=this,{instance:s}=n,e=n.carousel;if(!s||!e)return 0;const i=n[ml],o=n[Pr],a=n.thumbGap,l=n.thumbExtraGap;if(!(!((t=e.slides[p])===null||t===void 0)&&t.el))return 0;const c=.5*(i-o),h=s.pages.length-1;let g=s.getProgress(0),m=s.getProgress(h),v=s.getProgress(p,!1,!0),x=0,C=c+l+a;const k=g<0&&g>-1,S=m>0&&m<1;return p===0?(x=C*Math.abs(g),S&&g===1&&(x-=C*Math.abs(m))):p===h?(x=C*Math.abs(m)*-1,k&&m===-1&&(x+=C*Math.abs(g))):k||S?(x=-1*C,x+=C*Math.abs(g),x+=C*(1-Math.abs(m))):x=C*v,x}setProps(p){var t;const n=this;if(!n.isModern)return;const{instance:s}=n,e=n.carousel;if(s&&e){const i=(t=e.slides[p])===null||t===void 0?void 0:t.el;if(i&&i.childNodes.length){let o=wt(1-Math.abs(s.getProgress(p))),a=wt(n.getShift(p));i.style.setProperty("--progress",o?o+"":""),i.style.setProperty("--shift",a+"")}}}shiftModern(){const p=this;if(!p.isModern)return;const{instance:t,track:n}=p,s=t.panzoom,e=p.carousel;if(!(t&&n&&s&&e)||s.state===ye.Init||s.state===ye.Destroy)return;for(const o of t.slides)p.setProps(o.index);let i=(p[Pr]+p.thumbGap)*(e.slides.length||0);n.style.setProperty("--width",i+"")}cleanup(){const p=this;p.carousel&&p.carousel.destroy(),p.carousel=null,p.container&&p.container.remove(),p.container=null,p.track&&p.track.remove(),p.track=null,p.state=Xr.Init,ge(p.instance.container,p.cn("hasThumbs"))}attach(){const p=this,t=p.instance;t.on("initSlide",p.onInitSlide),t.state===hi.Init?t.on("initSlides",p.onInitSlides):p.onInitSlides(),t.on(["change","Panzoom.afterTransform"],p.onChange),t.on("Panzoom.refresh",p.onRefresh)}detach(){const p=this,t=p.instance;t.off("initSlide",p.onInitSlide),t.off("initSlides",p.onInitSlides),t.off(["change","Panzoom.afterTransform"],p.onChange),t.off("Panzoom.refresh",p.onRefresh),p.cleanup()}};Object.defineProperty(yf,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:vf});const Bg=Object.assign(Object.assign({},vf),{key:"t",showOnStart:!0,parentEl:null}),Hh="is-masked",jh="aria-hidden";class bf extends Cr{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const t=this.ref;return t&&!t.isDisabled()}get isHidden(){return this.hidden}onClick(t,n){n.stopPropagation()}onCreateSlide(t,n){var s,e,i;const o=((i=(e=(s=this.instance)===null||s===void 0?void 0:s.carousel)===null||e===void 0?void 0:e.slides[n.index])===null||i===void 0?void 0:i.type)||"",a=n.el;if(a&&o){let l=`for-${o}`;["video","youtube","vimeo","html5video"].includes(o)&&(l+=" for-video"),Dt(a,l)}}onInit(){var t;const n=this,s=n.instance,e=s.carousel;if(n.ref||!e)return;const i=n.option("parentEl")||s.footer||s.container;if(!i)return;const o=_n({},n.options,{parentEl:i,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:s.option("Carousel.friction")||0}},on:{ready:a=>{const l=a.container;l&&this.hidden&&(n.refresh(),l.style.transition="none",n.hide(),l.offsetHeight,queueMicrotask(()=>{l.style.transition="",n.show()}))}}});o.Carousel=o.Carousel||{},o.Carousel.on=_n(((t=n.options.Carousel)===null||t===void 0?void 0:t.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),e.options.Thumbs=o,e.attachPlugins({Thumbs:yf}),n.ref=e.plugins.Thumbs,n.option("showOnStart")||(n.ref.state=Xr.Hidden,n.hidden=!0)}onResize(){var t;const n=(t=this.ref)===null||t===void 0?void 0:t.container;n&&(n.style.maxHeight="")}onKeydown(t,n){const s=this.option("key");s&&s===n&&this.toggle()}toggle(){const t=this.ref;if(t&&!t.isDisabled())return t.state===Xr.Hidden?(t.state=Xr.Init,void t.build()):void(this.hidden?this.show():this.hide())}show(){const t=this.ref;if(!t||t.isDisabled())return;const n=t.container;n&&(this.refresh(),n.offsetHeight,n.removeAttribute(jh),n.classList.remove(Hh),this.hidden=!1)}hide(){const t=this.ref,n=t&&t.container;n&&(this.refresh(),n.offsetHeight,n.classList.add(Hh),n.setAttribute(jh,"true")),this.hidden=!0}refresh(){const t=this.ref;if(!t||!t.state)return;const n=t.container,s=(n==null?void 0:n.firstChild)||null;n&&s&&s.childNodes.length&&(n.style.maxHeight=`${s.getBoundingClientRect().height}px`)}
27attach(){const t=this,n=t.instance;n.state===Pi.Init?n.on("Carousel.init",t.onInit):t.onInit(),n.on("resize",t.onResize),n.on("keydown",t.onKeydown)}detach(){var t;const n=this,s=n.instance;s.off("Carousel.init",n.onInit),s.off("resize",n.onResize),s.off("keydown",n.onKeydown),(t=s.carousel)===null||t===void 0||t.detachPlugins(["Thumbs"]),n.ref=null}}Object.defineProperty(bf,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Bg});const Cu={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Ws;(function(p){p[p.Init=0]="Init",p[p.Ready=1]="Ready",p[p.Disabled=2]="Disabled"})(Ws||(Ws={}));const Ng={absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null},Hg={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},qh="has-toolbar",Tu="fancybox__toolbar";class wf extends Cr{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ws.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(t){var n;if(!t.carousel)return;let s=this.option("display"),e=this.option("absolute"),i=this.option("enabled");if(i==="auto"){const c=this.instance.carousel;let h=0;if(c)for(const g of c.slides)(g.panzoom||g.type==="image")&&h++;h||(i=!1)}i||(s=void 0);let o=0;const a={left:[],middle:[],right:[]};if(s)for(const c of["left","middle","right"])for(const h of s[c]){const g=this.createEl(h);g&&((n=a[c])===null||n===void 0||n.push(g),o++)}let l=null;if(o&&(l=this.createContainer()),l){for(const[c,h]of Object.entries(a)){const g=document.createElement("div");
27Dt(g,Tu+"__column is-"+c);for(const m of h)g.appendChild(m);e!=="auto"||c!=="middle"||h.length||(e=!0),l.appendChild(g)}e===!0&&Dt(l,"is-absolute"),this.state=Ws.Ready,this.onRefresh()}else this.state=Ws.Disabled}onClick(t){var n,s;const e=this.instance,i=e.getSlide(),o=i==null?void 0:i.panzoom,a=t.target,l=a&&mn(a)?a.dataset:null;if(!l)return;if(l.fancyboxToggleThumbs!==void 0)return t.preventDefault(),t.stopPropagation(),void((n=e.plugins.Thumbs)===null||n===void 0||n.toggle());if(l.fancyboxToggleFullscreen!==void 0)return t.preventDefault(),t.stopPropagation(),void this.instance.toggleFullscreen();if(l.fancyboxToggleSlideshow!==void 0){t.preventDefault(),t.stopPropagation();const g=(s=e.carousel)===null||s===void 0?void 0:s.plugins.Autoplay;let m=g.isActive;return o&&o.panMode==="mousemove"&&!m&&o.reset(),void(m?g.stop():g.start())}const c=l.panzoomAction,h=l.panzoomChange;if((h||c)&&(t.preventDefault(),t.stopPropagation()),h){let g={};try{g=JSON.parse(h)}catch(m){}o&&o.applyChange(g)}else c&&o&&o[c]&&o[c]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const t=this.container;if(!t)return;const n=this.instance.getSlide();if(!n||n.state!==qi.Ready)return;const s=n&&!n.error&&n.panzoom;for(const o of t.querySelectorAll("[data-panzoom-action]"))s?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));let e=s&&s.canZoomIn(),i=s&&s.canZoomOut();for(const o of t.querySelectorAll('[data-panzoom-action="zoomIn"]'))e?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));for(const o of t.querySelectorAll('[data-panzoom-action="zoomOut"]'))i?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));for(const o of t.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){i||e?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));const a=o.querySelector("g");a&&(a.style.display=e?"":"none")}}onDone(t,n){var s;(s=n.panzoom)===null||s===void 0||s.on("afterTransform",()=>{this.instance.isCurrentSlide(n)&&this.onRefresh()}),this.instance.isCurrentSlide(n)&&this.onRefresh()}createContainer(){const t=this.instance.container;if(!t)return null;const n=this.option("parentEl")||t;let s=n.querySelector("."+Tu);return s||(s=document.createElement("div"),Dt(s,Tu),n.prepend(s)),s.addEventListener("click",this.onClick,{passive:!1,capture:!0}),t&&Dt(t,qh),this.container=s,s}createEl(t){const n=this.instance,s=n.carousel;if(!s||t==="toggleFS"||t==="fullscreen"&&!uf())return null;let e=null;const i=s.slides.length||0;let o=0,a=0;for(const c of s.slides)(c.panzoom||c.type==="image")&&o++,(c.type==="image"||c.downloadSrc)&&a++;if(i<2&&["infobar","prev","next"].includes(t))return e;if(Cu[t]!==void 0&&!o||t==="download"&&!a)return null;if(t==="thumbs"){const c=n.plugins.Thumbs;if(!c||!c.isEnabled)return null}if(t==="slideshow"&&(!s.plugins.Autoplay||i<2))return null;if(Cu[t]!==void 0){const c=Cu[t];e=document.createElement("button"),e.setAttribute("title",this.instance.localize(`{{${t.toUpperCase()}}}`)),Dt(e,"f-button"),c.action&&(e.dataset.panzoomAction=c.action),c.change&&(e.dataset.panzoomChange=JSON.stringify(c.change)),e.appendChild(Or(this.instance.localize(c.icon)))}else{const c=(this.option("items")||[])[t];c&&(e=Or(this.instance.localize(c.tpl)),typeof c.click=="function"&&e.addEventListener("click",h=>{h.preventDefault(),h.stopPropagation(),typeof c.click=="function"&&c.click.call(this,this,h)}))}const l=e==null?void 0:e.querySelector("svg");if(l)for(const[c,h]of Object.entries(Hg))l.getAttribute(c)||l.setAttribute(c,String(h));return e}removeContainer(){const t=this.container;t&&t.remove(),this.container=null,this.state=Ws.Disabled;const n=this.instance.container;n&&ge(n,qh)}attach(){const t=this,n=t.instance;n.on("Carousel.initSlides",t.onReady),n.on("done",t.onDone),n.on(["reveal","Carousel.change"],t.onChange),t.onReady(t.
vendor: 8,372 bytes, line 27
27instance)}detach(){const t=this,n=t.instance;n.off("Carousel.initSlides",t.onReady),n.off("done",t.onDone),n.off(["reveal","Carousel.change"],t.onChange),t.removeContainer()}}Object.defineProperty(wf,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ng});const jg={Hash:class extends Cr{onReady(){ma=!1}onChange(p){Zs&&clearTimeout(Zs);const{hash:t}=cf(),{hash:n}=Zl(),s=p.isOpeningSlide(p.getSlide());s&&($h=n===t?"":n),t&&t!==n&&(Zs=setTimeout(()=>{try{if(p.state===Pi.Ready){let e="replaceState";s&&!dl&&(e="pushState",dl=!0),window.history[e]({},document.title,window.location.pathname+window.location.search+t)}}catch(e){}},300))}onClose(p){if(Zs&&clearTimeout(Zs),!ma&&dl)return dl=!1,ma=!1,void window.history.back();if(!ma)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+($h||""))}catch(t){}}attach(){const p=this.instance;p.on("ready",this.onReady),p.on(["Carousel.ready","Carousel.change"],this.onChange),p.on("close",this.onClose)}detach(){const p=this.instance;p.off("ready",this.onReady),p.off(["Carousel.ready","Carousel.change"],this.onChange),p.off("close",this.onClose)}static parseURL(){return Zl()}static startFromUrl(){hf()}static destroy(){window.removeEventListener("hashchange",ff,!1)}},Html:gf,Images:pf,Slideshow:_f,Thumbs:bf,Toolbar:wf},Zh="with-fancybox",Su="hide-scrollbar",Wh="--fancybox-scrollbar-compensate",Gh="--fancybox-body-margin",Eu="aria-hidden",Lu="is-using-tab",Pu="is-animated",Uh="is-compact",Vh="is-loading",ku="is-opening",_l="has-caption",So="disabled",Rs="tabindex",Yh="download",Mu="href",Eo="src",ls=p=>typeof p=="string",Xh=function(){var p=window.getSelection();return!!p&&p.type==="Range"};let rr,sr=null,Fs=null,Kh=0,Jh=0,Qh=0,td=0;const Lo=new Map;let qg=0;class he extends Dc{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(t=[],n={},s={}){super(n),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Pi.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),rr||(rr=uf()),this.id=n.id||++qg,Lo.set(this.id,this),this.userSlides=t,this.userPlugins=s,queueMicrotask(()=>{this.init()})}init(){if(this.state===Pi.Destroy)return;this.state=Pi.Init,this.attachPlugins(Object.assign(Object.assign({},he.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),this.option("hideScrollbar")===!0&&(()=>{if(!Sa)return;const n=document,s=n.body,e=n.documentElement;if(s.classList.contains(Su))return;let i=window.innerWidth-e.getBoundingClientRect().width;const o=parseFloat(window.getComputedStyle(s).marginRight);i<0&&(i=0),e.style.setProperty(Wh,`${i}px`),o&&s.style.setProperty(Gh,`${o}px`),s.classList.add(Su)})(),this.initLayout(),this.scale();const t=()=>{this.initCarousel(this.userSlides),this.state=Pi.Ready,this.attachEvents(),this.emit("ready"),setTimeout(()=>{this.container&&this.container.setAttribute(Eu,"false")},16)};this.option("Fullscreen.autoStart")&&rr&&!rr.isFullscreen()?rr.request().then(()=>{this.startedFs=!0,t()}).catch(()=>t()):t()}initLayout(){var t,n;const s=this.option("parentEl")||document.body,e=Or(this.localize(this.option("tpl.main")||""));if(e){if(e.setAttribute("id",`fancybox-${this.id}`),e.setAttribute("aria-label",this.localize("{{MODAL}}")),e.classList.toggle(Uh,this.isCompact),Dt(e,this.option("mainClass")||""),Dt(e,ku),this.container=e,this.footer=e.querySelector(".fancybox__footer"),s.appendChild(e),Dt(document.documentElement,Zh),sr&&Fs||(sr=document.createElement("span"),Dt(sr,"fancybox-focus-guard"),sr.setAttribute(Rs,"0"),sr.setAttribute(Eu,"true"),sr.setAttribute("aria-label","Focus guard"),Fs=sr.cloneNode(),(t=e.parentElement)===null||t===void 0||t.insertBefore(sr,e),(n=e.parentElement)===null||n===void 0||n.append(Fs)),e.addEventListener("mousedown",i=>{Kh=i.pageX,Jh=i.pageY,ge(e,Lu)}),this.option("closeExisting"))for(const i of Lo.values())i.id!==this.id&&i.close();else this.option("animated")&&(Dt(e,Pu),setTimeout(()=>{this.isClosing()||ge(e,Pu)},350));this.emit("initLayout")}}initCarousel(t){const n=this.container;if(!n)return;const s=n.querySelector(".fancybox__carousel");if(!s)return;const e=this.carousel=new Vs(s,_n({},{slides:t,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));e.on("*",(i,o,...a)=>{this.emit(`Carousel.${o}`,i,...a)}),e.on(["ready","change"],()=>{this.manageCaption()}),this.on("Carousel.removeSlide",(i,o,a)=>{this.clearContent(a),a.state=void 0}),e.on("Panzoom.touchStart",()=>{var i,o;this.isCompact||this.endIdle(),!((i=document.activeElement)===null||i===void 0)&&i.closest(".f-thumbs")&&((o=this.container)===null||o===void 0||o.focus())}),e.on("settle",()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()}),this.option("dragToClose")&&(e.on("Panzoom.afterTransform",(i,o)=>{const a=this.getSlide();if(a&&ic(a.el))return;const l=this.container;if(l){const c=Math.abs(o.current.f),h=c<1?"":Math.max(.5,Math.min(1,1-c/o.contentRect.fitHeight*1.5));l.style.setProperty("--fancybox-ts",h?"0s":""),l.style.setProperty("--fancybox-opacity",h+"")}}),e.on("Panzoom.touchEnd",(i,o,a)=>{var l;const c=this.getSlide();if(c&&ic(c.el)||o.isMobile&&document.activeElement&&["TEXTAREA","INPUT"].indexOf((l=document.activeElement)===null||l===void 0?void 0:l.nodeName)!==-1)return;const h=Math.abs(o.dragOffset.y);o.lockedAxis==="y"&&(h>=200||h>=50&&o.dragOffset.time<300)&&(a&&a.cancelable&&a.preventDefault(),this.close(a,"f-throwOut"+(o.current.f<0?"Up":"Down")))})),e.on("change",i=>{var o;let a=(o=this.getSlide())===null||o===void 0?void 0:o.triggerEl;if(a){const l=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:i.page});a.dispatchEvent(l)}}),e.on(["refresh","change"],i=>{const o=this.container;if(!o)return;for(const c of o.querySelectorAll("[data-fancybox-current-index]"))c.innerHTML=i.page+1;for(const c of o.querySelectorAll("[data-fancybox-count]"))c.innerHTML=i.pages.length;if(!i.isInfinite){for(const c of o.querySelectorAll("[data-fancybox-next]"))i.page<i.pages.length-1?(c.removeAttribute(So),c.removeAttribute(Rs)):(c.setAttribute(So,""),c.setAttribute(Rs,"-1"));for(const c of o.querySelectorAll("[data-fancybox-prev]"))i.page>0?(c.removeAttribute(So),c.removeAttribute(Rs)):(c.setAttribute(So,""),c.setAttribute(Rs,"-1"))}const a=this.getSlide();if(!a)return;let l=a.downloadSrc||"";l||a.type!=="image"||a.error||!ls(a[Eo])||(l=a[Eo]);for(const c of o.querySelectorAll("[data-fancybox-download]")){const h=a.downloadFilename;l?(c.removeAttribute(So),c.removeAttribute(Rs),c.setAttribute(Mu,l),c.setAttribute(Yh,h||l),c.setAttribute("target","_blank")):(c.setAttribute(So,""),c.setAttribute(Rs,"-1"),c.removeAttribute(Mu),c.removeAttribute(Yh))}}
27),this.emit("initCarousel")}attachEvents(){const t=this,n=t.container;if(!n)return;n.addEventListener("click",t.onClick,{passive:!1,capture:!1}),n.addEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",t.onVisibilityChange,!1),document.addEventListener("mousemove",t.onMousemove),t.option("trapFocus")&&document.addEventListener("focus",t.onFocus,!0),window.addEventListener("resize",t.onResize);const s=window.visualViewport;s&&(s.addEventListener("scroll",t.onResize),s.addEventListener("resize",t.onResize))}detachEvents(){const t=this,n=t.container;if(!n)return;document.removeEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),n.removeEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),n.removeEventListener("click",t.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",t.onMousemove),window.removeEventListener("resize",t.onResize);const s=window.visualViewport;s&&(s.removeEventListener("resize",t.onResize),s.removeEventListener("scroll",t.onResize)),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),document.removeEventListener("focus",t.onFocus,!0)}scale(){const t=this.container;if(!t)return;const n=window.visualViewport,s=Math.max(1,(n==null?void 0:n.scale)||1);let e="",i="",o="";if(n&&s>1){let a=`${n.offsetLeft}px`,l=`${n.offsetTop}px`;e=n.width*s+"px",i=n.height*s+"px",o=`translate3d(${a}, ${l}, 0) scale(${1/s})`}t.style.transform=o,t.style.width=e,t.style.height=i}onClick(t){var n;const{container:s,isCompact:e}=this;if(!s||this.isClosing())return;!e&&this.option("idle")&&this.resetIdle();const i=t.composedPath()[0];if(i.closest(".fancybox-spinner")||i.closest("[data-fancybox-close]"))return t.preventDefault(),void this.close(t);if(i.closest("[data-fancybox-prev]"))return t.preventDefault(),void this.prev();if(i.closest("[data-fancybox-next]"))return t.preventDefault(),void this.next();if(t.type==="click"&&t.detail===0||Math.abs(t.pageX-Kh)>30||Math.abs(t.pageY-Jh)>30)return;const o=document.activeElement;if(Xh()&&o&&s.contains(o))return;if(e&&((n=this.getSlide())===null||n===void 0?void 0:n.type)==="image")return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout(()=>{this.toggleIdle(),this.clickTimer=null},350));if(this.emit("click",t),t.defaultPrevented)return;let a=!1;if(i.closest(".fancybox__content")){if(o){if(o.closest("[contenteditable]"))return;i.matches(bu)||o.blur()}if(Xh())return;a=this.option("contentClick")}else i.closest(".fancybox__carousel")&&!i.matches(bu)&&(a=this.option("backdropClick"));a==="close"?(t.preventDefault(),this.close(t)):a==="next"?(t.preventDefault(),this.next()):a==="prev"&&(t.preventDefault(),this.prev())}onWheel(t){const n=t.target;let s=this.option("wheel",t);n.closest(".fancybox__thumbs")&&(s="slide");const e=s==="slide",i=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce(function(l,c){return Math.abs(c)>Math.abs(l)?c:l}),o=Math.max(-1,Math.min(1,i)),a=Date.now();this.pwt&&a-this.pwt<300?e&&t.preventDefault():(this.pwt=a,this.emit("wheel",t,o),t.defaultPrevented||(s==="close"?(t.preventDefault(),this.close(t)):s==="slide"&&(jl(n)||(t.preventDefault(),this[o>0?"prev":"next"]()))))}onScroll(){window.scrollTo(Qh,td)}onKeydown(t){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const n=t.key,s=this.option("keyboard");if(!s)return;const e=t.composedPath()[0],i=document.activeElement&&document.activeElement.classList,o=i&&i.contains("f-button")||e.dataset.carouselPage||e.dataset.carouselIndex;if(n!=="Escape"&&!o&&mn(e)&&(e.isContentEditable||["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(e.nodeName)!==-1)||(t.key==="Tab"?Dt(this.container,Lu):ge(this.container,Lu),t.ctrlKey||t.altKey||t.shiftKey))return;this.emit("keydown",n,t);const a=s[n];a&&typeof this[a]=="function"&&(t.preventDefault(),this[a]())}onResize(){const t=this.container;if(!t)return;const n=this.isCompact;t.classList.toggle(Uh,n),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit
vendor: 4,427 bytes, line 27
27("resize")}onFocus(t){this.isTopmost()&&this.checkFocus(t)}onMousemove(t){this.prevMouseMoveEvent=t,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){document.visibilityState==="visible"?this.checkFocus():this.endIdle()}manageCloseBtn(t){const n=this.optionFor(t,"closeButton")||!1;if(n==="auto"){const e=this.plugins.Toolbar;if(e&&e.state===Ws.Ready)return}if(!n||!t.contentEl||t.closeBtnEl)return;const s=this.option("tpl.closeButton");if(s){const e=Or(this.localize(s));t.closeBtnEl=t.contentEl.appendChild(e),t.el&&Dt(t.el,"has-close-btn")}}manageCaption(t=void 0){var n,s;const e="fancybox__caption",i=this.container;if(!i)return;ge(i,_l);const o=this.isCompact||this.option("commonCaption"),a=!o;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),o&&!this.caption)for(const g of((n=this.carousel)===null||n===void 0?void 0:n.slides)||[])g.captionEl&&(g.captionEl.remove(),g.captionEl=void 0,ge(g.el,_l),(s=g.el)===null||s===void 0||s.removeAttribute("aria-labelledby"));if(t||(t=this.getSlide()),!t||o&&!this.isCurrentSlide(t))return;const l=t.el;let c=this.optionFor(t,"caption","");if(!c)return void(o&&this.caption&&this.animate(this.caption,"f-fadeOut",()=>{this.caption&&(this.caption.innerHTML="")}));let h=null;if(a){if(h=t.captionEl||null,l&&!h){const g=e+`_${this.id}_${t.index}`;h=document.createElement("div"),Dt(h,e),h.setAttribute("id",g),t.captionEl=l.appendChild(h),Dt(l,_l),l.setAttribute("aria-labelledby",g)}}else h=this.caption,h||(h=i.querySelector("."+e)),!h&&(h=document.createElement("div"),h.dataset.fancyboxCaption="",Dt(h,e),(this.footer||i).prepend(h)),Dt(i,_l),this.caption=h;h&&(h.innerHTML="",ls(c)||typeof c=="number"?h.innerHTML=c+"":c instanceof HTMLElement&&h.appendChild(c))}checkFocus(t){this.focus(t)}focus(t){var n;if(this.ignoreFocusChange)return;const s=document.activeElement||null,e=(t==null?void 0:t.target)||null,i=this.container,o=(n=this.carousel)===null||n===void 0?void 0:n.viewport;if(!i||!o||!t&&s&&i.contains(s))return;const a=this.getSlide(),l=a&&a.state===qi.Ready?a.el:null;if(!l||l.contains(s)||i===s)return;t&&t.cancelable&&t.preventDefault(),this.ignoreFocusChange=!0;const c=Array.from(i.querySelectorAll(bu));let h=[],g=null;for(let v of c){const x=!v.offsetParent||!!v.closest('[aria-hidden="true"]'),C=l&&l.contains(v),k=!o.contains(v);if(v===i||(C||k)&&!x){h.push(v);const S=v.dataset.origTabindex;S!==void 0&&S&&(v.tabIndex=parseFloat(S)),v.removeAttribute("data-orig-tabindex"),!v.hasAttribute("autoFocus")&&g||(g=v)}else{const S=v.dataset.origTabindex===void 0?v.getAttribute("tabindex")||"":v.dataset.origTabindex;S&&(v.dataset.origTabindex=S),v.tabIndex=-1}}let m=null;t?(!e||h.indexOf(e)<0)&&(m=g||i,h.length&&(s===Fs?m=h[0]:this.lastFocus!==i&&s!==sr||(m=h[h.length-1]))):m=a&&a.type==="image"?i:g||i,m&&Ih(m),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const t=this.carousel;t&&t.pages.length>1&&t.slideNext()}prev(){const t=this.carousel;t&&t.pages.length>1&&t.slidePrev()}jumpTo(...t){this.carousel&&this.carousel.slideTo(...t)}isTopmost(){var t;return((t=he.getInstance())===null||t===void 0?void 0:t.id)==this.id}animate(t=null,n="",s){if(!t||!n)return void(s&&s());this.stop(t);const e=i=>{i.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",e),delete t.dataset.animationName,s&&s(),ge(t,n))};t.dataset.animationName=n,t.addEventListener("animationend",e),Dt(t,n)}stop(t){t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))}setContent(t,n="",s=!0){if(this.isClosing())return;const e=t.el;if(!e)return;let i=null;if(mn(n)?i=n:(i=Or(n+""),mn(i)||(i=document.createElement("div"),i.innerHTML=n+"")),["img","picture","iframe","video","audio"].includes(i.nodeName.toLowerCase())){const o=document.createElement("div");o.appendChild(i),i=o}mn(i)&&t.filter&&!t.error&&(i=i.querySelector(t.filter)),i&&mn(i)?(Dt(i,"fancybox__content"),t.id&&i.setAttribute("id",t.id),e.classList.add(`has-${t.error?"error":t.type||"unknown"}`),e.prepend(i),i.style.display==="none"&&(i.style.display=""),getComputedStyle(i).getPropertyValue("display")==="none"&&(i.style.display=t.display||this.option("defaultDisplay")||"flex"),t.contentEl=i,s&&this.revealContent(t),this.manageCloseBtn(t),this.manageCaption(t)):this.setError(t,"{{ELEMENT_NOT_FOUND}}")}revealContent(t,n){const s=t.el,e=t.contentEl;
27s&&e&&(this.emit("reveal",t),this.hideLoading(t),t.state=qi.Opening,(n=this.isOpeningSlide(t)?n===void 0?this.optionFor(t,"showClass"):n:"f-fadeIn")?this.animate(e,n,()=>{this.done(t)}):this.done(t))}done(t){this.isClosing()||(t.state=qi.Ready,this.emit("done",t),Dt(t.el,"is-done"),this.isCurrentSlide(t)&&this.option("autoFocus")&&queueMicrotask(()=>{var n;(n=t.panzoom)===null||n===void 0||n.updateControls(),this.option("autoFocus")&&this.focus()}),this.isOpeningSlide(t)&&(ge(this.container,ku),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(t){const n=this.getSlide();return!(!t||!n)&&n.index===t.index}isOpeningSlide(t){var n,s;return((n=this.carousel)===null||n===void 0?void 0:n.prevPage)===null&&t&&t.index===((s=this.getSlide())===null||s===void 0?void 0:s.index)}showLoading(t){t.state=qi.Loading;const n=t.el;n&&(Dt(n,Vh),this.emit("loading",t),t.spinnerEl||setTimeout(()=>{if(!this.isClosing()&&!t.spinnerEl&&t.state===qi.Loading){let s=Or(zc);Dt(s,"fancybox-spinner"),t.spinnerEl=s,n.prepend(s),this.animate(s,"f-fadeIn")}},250))}hideLoading(t){const n=t.el;if(!n)return;const s=t.spinnerEl;this.isClosing()?s==null||s.remove():(ge(n,Vh),s&&this.animate(s,"f-fadeOut",()=>{s.remove()}
27),t.state===qi.Loading&&(this.emit("loaded",t),t.state=qi.Ready))}setError(t,n){if(this.isClosing())return;const s=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",s,t),s.defaultPrevented)return;t.error=n,this.hideLoading(t),this.clearContent(t);const e=document.createElement("div");e.classList.add("fancybox-error"),e.innerHTML=this.localize(n||"<p>{{ERROR}}</p>"),this.setContent(t,e)}clearContent(t){if(t.state===void 0)return;this.emit("clearContent",t),t.contentEl&&(t.contentEl.remove(),t.contentEl=void 0);const n=t.el;n&&(ge(n,"has-error"),ge(n,"has-unknown"),ge(n,`has-${t.type||"unknown"}`)),t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0}getSlide(){var t;const n=this.carousel;return((t=n==null?void 0:n.pages[n==null?void 0:n.page])===null||t===void 0?void 0:t.slides[0])||void 0}close(t,n){if(this.isClosing())return;const s=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit
vendor: 5,008 bytes, line 27
27("shouldClose",s,t),s.defaultPrevented)return;t&&t.cancelable&&(t.preventDefault(),t.stopPropagation());const e=()=>{this.proceedClose(t,n)};this.startedFs&&rr&&rr.isFullscreen()?Promise.resolve(rr.exit()).then(()=>e()):e()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(t=!1){const n=()=>{this.clearIdle(),this.idle=!0,Dt(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(t)n();else{const s=this.option("idle");s&&(this.idleTimer=setTimeout(n,s))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,ge(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){rr&&(rr.isFullscreen()?rr.exit():rr.request().then(()=>{this.startedFs=!0}))}isClosing(){return[Pi.Closing,Pi.CustomClosing,Pi.Destroy].includes(this.state)}proceedClose(t,n){var s,e;this.state=Pi.Closing,this.clearIdle(),this.detachEvents();const i=this.container,o=this.carousel,a=this.getSlide(),l=a&&this.option("placeFocusBack")?a.triggerEl||this.option("triggerEl"):null;if(l&&(lf(l)?Ih(l):l.focus()),i&&(ge(i,ku),Dt(i,"is-closing"),i.setAttribute(Eu,"true"),this.option("animated")&&Dt(i,Pu),i.style.pointerEvents="none"),o){o.clearTransitions(),(s=o.panzoom)===null||s===void 0||s.destroy(),(e=o.plugins.Navigation)===null||e===void 0||e.detach();for(const c of o.slides){c.state=qi.Closing,this.hideLoading(c);const h=c.contentEl;h&&this.stop(h);const g=c==null?void 0:c.panzoom;g&&(g.stop(),g.detachEvents(),g.detachObserver()),this.isCurrentSlide(c)||o.emit("removeSlide",c)}}Qh=window.scrollX,td=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",t),this.state!==Pi.CustomClosing?(n===void 0&&a&&(n=this.optionFor(a,"hideClass")),n&&a?(this.animate(a.contentEl,n,()=>{o&&o.emit("removeSlide",a)}),setTimeout(()=>{this.destroy()},500)):this.destroy()):setTimeout(()=>{this.destroy()},500)}destroy(){var t;if(this.state===Pi.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=Pi.Destroy,(t=this.carousel)===null||t===void 0||t.destroy();const n=this.container;n&&n.remove(),Lo.delete(this.id);const s=he.getInstance();s?s.focus():(sr&&(sr.remove(),sr=null),Fs&&(Fs.remove(),Fs=null),ge(document.documentElement,Zh),(()=>{if(!Sa)return;const e=document,i=e.body;i.classList.remove(Su),i.style.setProperty(Gh,""),e.documentElement.style.setProperty(Wh,"")})(),this.emit("destroy"))}static bind(t,n,s){if(!Sa)return;let e,i="",o={};if(t===void 0?e=document.body:ls(t)?(e=document.body,i=t,typeof n=="object"&&(o=n||{})):(e=t,ls(n)&&(i=n),typeof s=="object"&&(o=s||{})),!e||!mn(e))return;i=i||"[data-fancybox]";const a=he.openers.get(e)||new Map;a.set(i,o),he.openers.set(e,a),a.size===1&&e.addEventListener("click",he.fromEvent)}static unbind(t,n){let s,e="";if(ls(t)?(s=document.body,e=t):(s=t,ls(n)&&(e=n)),!s)return;const i=he.openers.get(s);i&&e&&i.delete(e),e&&i||(he.openers.delete(s),s.removeEventListener("click",he.fromEvent))}static destroy(){let t;for(;t=he.getInstance();)t.destroy();for(const n of he.openers.keys())n.removeEventListener("click",he.fromEvent);he.openers=new Map}static fromEvent(t){if(t.defaultPrevented||t.button&&t.button!==0||t.ctrlKey||t.metaKey||t.shiftKey)return;let n=t.composedPath()[0];const s=n.closest("[data-fancybox-trigger]");if(s){const x=s.dataset.fancyboxTrigger||"",C=document.querySelectorAll(`[data-fancybox="${x}"]`),k=parseInt(s.dataset.fancyboxIndex||"",10)||0;n=C[k]||n}if(!(n&&n instanceof Element))return;let e,i,o,a;if([...he.openers].reverse().find(([x,C])=>!(!x.contains(n)||![...C].reverse().find(([k,S])=>{let A=n.closest(k);return!!A&&(e=x,i=k,o=A,a=S,!0)}))),!e||!i||!o)return;a=a||{},t.preventDefault(),n=o;let l=[],c=_n({},rc,a);c.event=t,c.triggerEl=n,c.delegate=s;const h=c.groupAll,g=c.groupAttr,m=g&&n?n.getAttribute(`${g}`):"";if((!n||m||h)&&(l=[].slice.call(e.querySelectorAll(i))),n&&!h&&(l=m?l.filter(x=>x.getAttribute(`${g}`)===m):[n]),!l.length)return;const v=he.getInstance();return v&&v.options.triggerEl&&l.indexOf(v.options.triggerEl)>-1?void 0:(n&&(c.startIndex=l.indexOf(n)),he.fromNodes(l,c))}static fromSelector(t,n,s){let e=null,i="",o={};if(ls(t)?(e=document.body,i=t,typeof n=="object"&&(o=n||{})):t instanceof HTMLElement&&ls(n)&&(e=t,i=n,typeof s=="object"&&(o=s||{})),!e||!i)return!1;const a=he.openers.get(e);return!!a&&(o=_n({},a.get(i)||{},o),!!o&&he.fromNodes(Array.from(e.querySelectorAll(i)),o))}static fromNodes(t,n){n=_n({},rc,n||{});const s=[];for(const e of t){const i=e.dataset||{},o=i[Eo]||e.getAttribute(Mu)||e.getAttribute("currentSrc")||e.getAttribute(Eo)||void 0;let a;const l=n.delegate;let c;l&&s.length===n.startIndex&&(a=l instanceof HTMLImageElement?l:l.querySelector("img:not([aria-hidden])")),a||(a=e instanceof HTMLImageElement?e:e.querySelector("img:not([aria-hidden])")),a&&(c=a.currentSrc||a[Eo]||void 0,!c&&a.dataset&&(c=a.dataset.lazySrc||a.dataset[Eo]||void 0));
27const h={src:o,triggerEl:e,thumbEl:a,thumbElSrc:c,thumbSrc:c};for(const g in i){let m=i[g]+"";m=m!=="false"&&(m==="true"||m),h[g]=m}s.push(h)}return new he(s,n)}static getInstance(t){return t?Lo.get(t):Array.from(Lo.values()).reverse().find(n=>!n.isClosing()&&n)||null}static getSlide(){var t;return((t=he.getInstance())===null||t===void 0?void 0:t.getSlide())||null}static show(t=[],n={}){return new he(t,n)}static next(){const t=he.getInstance();t&&t.next()}static prev(){const t=he.getInstance();t&&t.prev()}static close(t=!0,...n){if(t)for(const s of Lo.values())s.close(...n);else{const s=he.getInstance();s&&s.close(...n)}}}Object.defineProperty(he,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(he,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:rc}),Object.defineProperty(he,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:jg}),Object.defineProperty(he,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});he.bind("[data-fancybox]",{});var Zg={exports:{}};(function(p,t){(function(n){p.exports=n(Hl())})(function(n){var s=window.Slick||{};s=function(){var e=0;function i(o,a){var l=this,c;l.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:n(o),appendDots:n(o),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(h,g){return n('<button type="button" />').text(g+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},l.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},n.extend(l,l.initials),l.activeBreakpoint=null,l.animType=null,l.animProp=null,l.breakpoints=[],l.breakpointSettings=[],l.cssTransitions=!1,l.focussed=!1,l.interrupted=!1,l.hidden="hidden",l.paused=!0,l.positionProp=null,l.respondTo=null,l.rowCount=1,l.shouldClick=!0,l.$slider=n(o),l.$slidesCache=null,l.transformType=null,l.transitionType=null,l.visibilityChange="visibilitychange",l.windowWidth=0,l.windowTimer=null,c=n(o).data("slick")||{},l.options=n.extend({},l.defaults,a,c),l.currentSlide=l.options.initialSlide,l.originalSettings=l.options,typeof document.mozHidden!="undefined"?(l.hidden="mozHidden",l.visibilityChange="mozvisibilitychange"):typeof document.webkitHidden!="undefined"&&(l.hidden="webkitHidden",l.visibilityChange="webkitvisibilitychange"),l.autoPlay=n.proxy(l.autoPlay,l),l.autoPlayClear=n.proxy(l.autoPlayClear,l),l.autoPlayIterator=n.proxy(l.autoPlayIterator,l),l.changeSlide=n.proxy(l.changeSlide,l),l.clickHandler=n.proxy(l.clickHandler,l),l.selectHandler=n.proxy(l.selectHandler,l),l.setPosition=n.proxy(l.setPosition,l),l.swipeHandler=n.proxy(l.swipeHandler,l),l.dragHandler=n.proxy(l.dragHandler,l),l.keyHandler=n.proxy(l.keyHandler,l),l.instanceUid=e++,l.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,l.registerBreakpoints(),l.init(!0)}return i}(),s.prototype.activateADA=function(){var e=this;e.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},s.prototype.addSlide=s.prototype.slickAdd=function(e,i,o){var a=this;if(typeof i=="boolean")o=i,i=null;else if(i<0||i>=a.slideCount)return!1;a.unload(),typeof i=="number"?i===0&&a.$slides.length===0?n(e).appendTo(a.$slideTrack):o?n(e).insertBefore(a.$slides.eq(i)):n(e).insertAfter(a.$slides.eq(i)):o===!0?n(e).prependTo(a.$slideTrack):n(e).appendTo(a.$slideTrack),a.$slides=a.$slideTrack.children(this.options.slide),a.$slideTrack.children(this.options.slide).detach(),a.$slideTrack.append(a.$slides),a.$slides.each(function(l,c){n(c).attr("data-slick-index",l)}),a.$slidesCache=a.$slides,a.reinit()},s.prototype.animateHeight=function(){var e=this;if(e.options.slidesToShow===1&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var i=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:i},e.options.speed)}},s.prototype.animateSlide=function(e,i){var o={},a=this;a.animateHeight(),a.options.rtl===!0&&a.options.vertical===!1&&(e=-e),a.transformsEnabled===!1?a.options.vertical===!1?a.$slideTrack.animate({left:e},a.options.speed,a.options.easing,i):a.$slideTrack.animate({top:e},a.options.speed,a.options.easing,i):a.cssTransitions===!1?(a.options.rtl===!0&&(a.currentLeft=-a.currentLeft),n({animStart:a.currentLeft}).animate({animStart:e},{duration:a.options.speed,easing:a.options.easing,step:function(l){l=Math.ceil(l),a.options.vertical===!1?(o[a.animType]="translate("+l+"px, 0px)",a.$slideTrack.css(o)):(o[a.animType]="translate(0px,"+l+"px)",a.$slideTrack.css(o))},complete:function(){i&&i.call()}})):(a.applyTransition(),e=Math.ceil(e),a.options.vertical===!1?o[a.animType]="translate3d("+e+"px, 0px, 0px)":o[a.animType]="translate3d(0px,"+e+"px, 0px)",a.$slideTrack.css(o),i&&setTimeout(function(){a.disableTransition(),i.call()},a.options.speed))},s.prototype.getNavTarget=function(){var e=this,i=e.options.asNavFor;return i&&i!==null&&(i=n(i).not(e.$slider)),i},s.prototype.asNavFor=function(e){var i=this,o=i.getNavTarget();o!==null&&typeof o=="object"&&o.each(function(){var a=n(this).slick("getSlick");a.unslicked||a.slideHandler(e,!0)})},s.prototype.applyTransition=function(e){var i=this,o={};i.options.fade===!1?o[i.transitionType]=i.transformType+" "+i.options.speed+"ms "+i.options.cssEase:o[i.transitionType]="opacity "+i.options.speed+"ms "+i.options.cssEase,i.options.fade===!1?i.$slideTrack.css(o):i.$slides.eq(e).css(o)},s.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},s.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},s.prototype.autoPlayIterator=function(){var e=this,i=e.currentSlide+e.options.slidesToScroll;!e.paused&&!e.interrupted&&!e.focussed&&(e.options.infinite===!1&&(e.direction===1&&e.currentSlide+1===e.slideCount-1?e.direction=0:e.direction===0&&(i=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1===0&&(e.direction=1))),e.slideHandler(i))},s.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=n(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=n(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},s.prototype.buildDots=function(){var e=this,i,o;if(e.options.dots===!0&&e.slideCount>e.options.slidesToShow){for(e.$slider.addClass("slick-dotted"),o=n("<ul />").addClass(e.options.dotsClass),i=0;i<=e.getDotCount();i+=1)o.append(n("<li />").append(e.options.customPaging.call(this,e,i)));e.$dots=o.appendTo(e.options.appendDots),e.$dots.find("li").first().addClass("slick-active")}},s.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(i,o){n(o).attr("data-slick-index",i).data("originalStyling",n(o).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=e.slideCount===0?n('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),(e.options.centerMode===!0||e.options.swipeToSlide===!0)&&(e.options.slidesToScroll=1),n("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses(typeof e.currentSlide=="number"?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},s.prototype.buildRows=function(){var e=this,i,o,a,l,c,h,g;if(l=document.createDocumentFragment(),h=e.$slider.children(),e.options.rows>0){for(g=e.options.slidesPerRow*e.options.rows,c=Math.ceil(h.length/g),i=0;i<c;i++){var m=document.createElement("div");for(o=0;o<e.options.rows;o++){var v=document.createElement("div");for(a=0;a<e.options.slidesPerRow;a++){var x=i*g+(o*e.options.slidesPerRow+a);h.get(x)&&v.appendChild(h.get(x))}m.appendChild(v)}l.appendChild(m)}e.$slider.empty().append(l),e.$slider.children().children().children().css({width:100/e.options.slidesPerRow+"%",display:"inline-block"})}},s.prototype.checkResponsive=function(e,i){var o=this,a,l,c,h=!1,g=o.$slider.width(),m=window.innerWidth||n(window).width();if(o.respondTo==="window"?c=m:o.respondTo==="slider"?c=g:o.respondTo==="min"&&(c=Math.min(m,g)),o.options.responsive&&o.options.responsive.length&&o.options.responsive!==null){l=null;for(a in o.breakpoints)o.breakpoints.hasOwnProperty(a)&&(o.originalSettings.mobileFirst===!1?c<o.breakpoints[a]&&(l=o.breakpoints[a]):c>o.breakpoints[a]&&(l=o.breakpoints[a]));l!==null?o.activeBreakpoint!==null?(l!==o.activeBreakpoint||i)&&(o.activeBreakpoint=l,o.breakpointSettings[l]==="unslick"?o.unslick(l):(o.options=n.extend({},o.originalSettings,o.breakpointSettings[l]),e===!0&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),h=l):(o.activeBreakpoint=l,o.breakpointSettings[l]==="unslick"?o.unslick(l):(o.options=n.extend({},o.originalSettings,o.breakpointSettings[l]),e===!0&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),h=l):o.activeBreakpoint!==null&&(o.activeBreakpoint=null,o.options=o.originalSettings,e===!0&&(o.currentSlide=o.options.initialSlide),o.refresh(e),h=l),!e&&h!==!1&&o.$slider.trigger("breakpoint",[o,h])}},s.prototype.changeSlide=function(e,i){var o=this,a=n(e.currentTarget),l,c,h;switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),h=o.slideCount%o.options.slidesToScroll!==0,l=h?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,e.data.message){case"previous":c=l===0?o.options.slidesToScroll:o.options.slidesToShow-l,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-c,!1,i);break;case"next":c=l===0?o.options.slidesToScroll:l,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+c,!1,i);break;case"index":var g=e.data.index===0?0:e.data.index||a.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(g),!1,i),a.children().trigger("focus");break;default:return}},s.prototype.checkNavigable=function(e){var i=this,o,a;if(o=i.getNavigableIndexes(),a=0,e>o[o.length-1])e=o[o.length-1];else for(var l in o){if(e<o[l]){e=a;break}a=o[l]}return e},s.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&e.$dots!==null&&(n("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",n.proxy(e.interrupt,e,!0)).off("mouseleave.
27slick",n.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),n(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&n(e.$slideTrack).children().off("click.slick",e.selectHandler),n(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),n(window).off("resize.slick.slick-"+e.instanceUid,e.resize),n("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),n(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},s.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",n.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",n.proxy(e.interrupt,e,!1))},s.prototype.cleanUpRows=function(){var e=this,i;e.options.rows>0&&(i=e.$slides.children().children(),i.removeAttr("style"),e.$slider.empty().append(i))},s.prototype.clickHandler=function(e){var i=this;i.shouldClick===!1&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},s.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),n(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){n(this).attr("style",n(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},s.prototype.disableTransition=function(e){var i=this,o={};o[i.transitionType]="",i.options.fade===!1?i.$slideTrack.css(o):i.$slides.eq(e).css(o)},s.prototype.fadeSlide=function(e,i){var o=this;o.cssTransitions===!1?(o.$slides.eq(e).css({zIndex:o.options.zIndex}),o.$slides.eq(e).animate({opacity:1},o.options.speed,o.options.easing,i)):(o.applyTransition(e),o.$slides.eq(e).css({opacity:1,zIndex:o.options.zIndex}),i&&setTimeout(function(){o.disableTransition(e),i.call()},o.options.speed))},s.prototype.fadeSlideOut=function(e){var i=this;i.cssTransitions===!1?i.$slides.eq(e).animate({opacity:0,zIndex:i.options.zIndex-2},i.options.speed,i.options.easing):(i.applyTransition(e),i.$slides.eq(e).css({opacity:0,zIndex:i.options.zIndex-2}))},s.prototype.filterSlides=s.prototype.slickFilter=function(e){var i=this;e!==null&&(i.$slidesCache=i.$slides,i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.filter(e).appendTo(i.$slideTrack),i.reinit())},s.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var o=n(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())}
vendor: 6,242 bytes, line 27
27,0)})},s.prototype.getCurrent=s.prototype.slickCurrentSlide=function(){var e=this;return e.currentSlide},s.prototype.getDotCount=function(){var e=this,i=0,o=0,a=0;if(e.options.infinite===!0)if(e.slideCount<=e.options.slidesToShow)++a;else for(;i<e.slideCount;)++a,i=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(e.options.centerMode===!0)a=e.slideCount;else if(!e.options.asNavFor)a=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);else for(;i<e.slideCount;)++a,i=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return a-1},s.prototype.getLeft=function(e){var i=this,o,a,l=0,c,h;return i.slideOffset=0,a=i.$slides.first().outerHeight(!0),i.options.infinite===!0?(i.slideCount>i.options.slidesToShow&&(i.slideOffset=i.slideWidth*i.options.slidesToShow*-1,h=-1,i.options.vertical===!0&&i.options.centerMode===!0&&(i.options.slidesToShow===2?h=-1.5:i.options.slidesToShow===1&&(h=-2)),l=a*i.options.slidesToShow*h),i.slideCount%i.options.slidesToScroll!==0&&e+i.options.slidesToScroll>i.slideCount&&i.slideCount>i.options.slidesToShow&&(e>i.slideCount?(i.slideOffset=(i.options.slidesToShow-(e-i.slideCount))*i.slideWidth*-1,l=(i.options.slidesToShow-(e-i.slideCount))*a*-1):(i.slideOffset=i.slideCount%i.options.slidesToScroll*i.slideWidth*-1,l=i.slideCount%i.options.slidesToScroll*a*-1))):e+i.options.slidesToShow>i.slideCount&&(i.slideOffset=(e+i.options.slidesToShow-i.slideCount)*i.slideWidth,l=(e+i.options.slidesToShow-i.slideCount)*a),i.slideCount<=i.options.slidesToShow&&(i.slideOffset=0,l=0),i.options.centerMode===!0&&i.slideCount<=i.options.slidesToShow?i.slideOffset=i.slideWidth*Math.floor(i.options.slidesToShow)/2-i.slideWidth*i.slideCount/2:i.options.centerMode===!0&&i.options.infinite===!0?i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)-i.slideWidth:i.options.centerMode===!0&&(i.slideOffset=0,i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)),i.options.vertical===!1?o=e*i.slideWidth*-1+i.slideOffset:o=e*a*-1+l,i.options.variableWidth===!0&&(i.slideCount<=i.options.slidesToShow||i.options.infinite===!1?c=i.$slideTrack.children(".slick-slide").eq(e):c=i.$slideTrack.children(".slick-slide").eq(e+i.options.slidesToShow),i.options.rtl===!0?c[0]?o=(i.$slideTrack.width()-c[0].offsetLeft-c.width())*-1:o=0:o=c[0]?c[0].offsetLeft*-1:0,i.options.centerMode===!0&&(i.slideCount<=i.options.slidesToShow||i.options.infinite===!1?c=i.$slideTrack.children(".slick-slide").eq(e):c=i.$slideTrack.children(".slick-slide").eq(e+i.options.slidesToShow+1),i.options.rtl===!0?c[0]?o=(i.$slideTrack.width()-c[0].offsetLeft-c.width())*-1:o=0:o=c[0]?c[0].offsetLeft*-1:0,o+=(i.$list.width()-c.outerWidth())/2)),o},s.prototype.getOption=s.prototype.slickGetOption=function(e){var i=this;return i.options[e]},s.prototype.getNavigableIndexes=function(){var e=this,i=0,o=0,a=[],l;for(e.options.infinite===!1?l=e.slideCount:(i=e.options.slidesToScroll*-1,o=e.options.slidesToScroll*-1,l=e.slideCount*2);i<l;)a.push(i),i=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return a},s.prototype.getSlick=function(){return this},s.prototype.getSlideCount=function(){var e=this,i,o,a;return a=e.options.centerMode===!0?e.slideWidth*Math.floor(e.options.slidesToShow/2):0,e.options.swipeToSlide===!0?(e.$slideTrack.find(".slick-slide").each(function(l,c){if(c.offsetLeft-a+n(c).outerWidth()/2>e.swipeLeft*-1)return o=c,!1}),i=Math.abs(n(o).attr("data-slick-index")-e.currentSlide)||1,i):e.options.slidesToScroll},s.prototype.goTo=s.prototype.slickGoTo=function(e,i){var o=this;o.changeSlide({data:{message:"index",index:parseInt(e)}},i)},s.prototype.init=function(e){var i=this;n(i.$slider).hasClass("slick-initialized")||(n(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),i.options.accessibility===!0&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},s.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(c){return c>=0&&c<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$dots!==null&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(c){var h=o.indexOf(c);if(n(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+c,tabindex:-1}),h!==-1){var g="slick-slide-control"+e.instanceUid+h;n("#"+g).length&&n(this).attr({"aria-describedby":g})}}),e.$dots.attr("role","tablist").find("li").each(function(c){var h=o[c];n(this).attr({role:"presentation"}),n(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+c,"aria-controls":"slick-slide"+e.instanceUid+h,"aria-label":c+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var a=e.currentSlide,l=a+e.options.slidesToShow;a<l;a++)e.options.focusOnChange?e.$slides.eq(a).attr({tabindex:"0"}):e.$slides.eq(a).removeAttr("tabindex");e.activateADA()},s.prototype.initArrowEvents=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},s.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(n("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on("keydown.slick",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&n("li",e.$dots).on("mouseenter.slick",n.proxy(e.interrupt,e,!0)).on("mouseleave.
27slick",n.proxy(e.interrupt,e,!1))},s.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",n.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",n.proxy(e.interrupt,e,!1)))},s.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),n(document).on(e.visibilityChange,n.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&n(e.$slideTrack).children().on("click.slick",e.selectHandler),n(window).on("orientationchange.slick.slick-"+e.instanceUid,n.proxy(e.orientationChange,e)),n(window).on("resize.slick.slick-"+e.instanceUid,n.proxy(e.resize,e)),n("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),n(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),n(e.setPosition)},s.prototype.initUI=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},s.prototype.keyHandler=function(e){var i=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(e.keyCode===37&&i.options.accessibility===!0?i.changeSlide({data:{message:i.options.rtl===!0?"next":"previous"}}):e.keyCode===39&&i.options.accessibility===!0&&i.changeSlide({data:{message:i.options.rtl===!0?"previous":"next"}}))},s.prototype.lazyLoad=function(){var e=this,i,o,a,l;function c(x){n("img[data-lazy]",x).each(function(){var C=n(this),k=n(this).attr("data-lazy"),S=n(this).attr("data-srcset"),A=n(this).attr("data-sizes")||e.$slider.attr("data-sizes"),z=document.createElement("img");z.onload=function(){C.animate({opacity:0}
vendor: 7,150 bytes, line 27
27,100,function(){S&&(C.attr("srcset",S),A&&C.attr("sizes",A)),C.attr("src",k).animate({opacity:1},200,function(){C.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),e.$slider.trigger("lazyLoaded",[e,C,k])})},z.onerror=function(){C.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),e.$slider.trigger("lazyLoadError",[e,C,k])},z.src=k})}if(e.options.centerMode===!0?e.options.infinite===!0?(a=e.currentSlide+(e.options.slidesToShow/2+1),l=a+e.options.slidesToShow+2):(a=Math.max(0,e.currentSlide-(e.options.slidesToShow/2+1)),l=2+(e.options.slidesToShow/2+1)+e.currentSlide):(a=e.options.infinite?e.options.slidesToShow+e.currentSlide:e.currentSlide,l=Math.ceil(a+e.options.slidesToShow),e.options.fade===!0&&(a>0&&a--,l<=e.slideCount&&l++)),i=e.$slider.find(".slick-slide").slice(a,l),e.options.lazyLoad==="anticipated")for(var h=a-1,g=l,m=e.$slider.find(".slick-slide"),v=0;v<e.options.slidesToScroll;v++)h<0&&(h=e.slideCount-1),i=i.add(m.eq(h)),i=i.add(m.eq(g)),h--,g++;c(i),e.slideCount<=e.options.slidesToShow?(o=e.$slider.find(".slick-slide"),c(o)):e.currentSlide>=e.slideCount-e.options.slidesToShow?(o=e.$slider.find(".slick-cloned").slice(0,e.options.slidesToShow),c(o)):e.currentSlide===0&&(o=e.$slider.find(".slick-cloned").slice(e.options.slidesToShow*-1),c(o))},s.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),e.options.lazyLoad==="progressive"&&e.progressiveLazyLoad()},s.prototype.next=s.prototype.slickNext=function(){var e=this;e.changeSlide({data:{message:"next"}})},s.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},s.prototype.pause=s.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},s.prototype.play=s.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},s.prototype.postSlide=function(e){var i=this;if(!i.unslicked&&(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),i.options.accessibility===!0&&(i.initADA(),i.options.focusOnChange))){var o=n(i.$slides.get(i.currentSlide));o.attr("tabindex",0).focus()}},s.prototype.prev=s.prototype.slickPrev=function(){var e=this;e.changeSlide({data:{message:"previous"}})},s.prototype.preventDefault=function(e){e.preventDefault()},s.prototype.progressiveLazyLoad=function(e){e=e||1;var i=this,o=n("img[data-lazy]",i.$slider),a,l,c,h,g;o.length?(a=o.first(),l=a.attr("data-lazy"),c=a.attr("data-srcset"),h=a.attr("data-sizes")||i.$slider.attr("data-sizes"),g=document.createElement("img"),g.onload=function(){c&&(a.attr("srcset",c),h&&a.attr("sizes",h)),a.attr("src",l).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),i.options.adaptiveHeight===!0&&i.setPosition(),i.$slider.trigger("lazyLoaded",[i,a,l]),i.progressiveLazyLoad()},g.onerror=function(){e<3?setTimeout(function(){i.progressiveLazyLoad(e+1)},500):(a.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,a,l]),i.progressiveLazyLoad())},g.src=l):i.$slider.trigger("allImagesLoaded",[i])},s.prototype.refresh=function(e){var i=this,o,a;a=i.slideCount-i.options.slidesToShow,!i.options.infinite&&i.currentSlide>a&&(i.currentSlide=a),i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0),o=i.currentSlide,i.destroy(!0),n.extend(i,i.initials,{currentSlide:o}),i.init(),e||i.changeSlide({data:{message:"index",index:o}},!1)},s.prototype.registerBreakpoints=function(){var e=this,i,o,a,l=e.options.responsive||null;if(n.type(l)==="array"&&l.length){e.respondTo=e.options.respondTo||"window";for(i in l)if(a=e.breakpoints.length-1,l.hasOwnProperty(i)){for(o=l[i].breakpoint;a>=0;)e.breakpoints[a]&&e.breakpoints[a]===o&&e.breakpoints.splice(a,1),a--;e.breakpoints.push(o),e.breakpointSettings[o]=l[i].settings}e.breakpoints.sort(function(c,h){return e.options.mobileFirst?c-h:h-c})}},s.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&e.currentSlide!==0&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&n(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses(typeof e.currentSlide=="number"?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},s.prototype.resize=function(){var e=this;n(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=n(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},s.prototype.removeSlide=s.prototype.slickRemove=function(e,i,o){var a=this;if(typeof e=="boolean"?(i=e,e=i===!0?0:a.slideCount-1):e=i===!0?--e:e,a.slideCount<1||e<0||e>a.slideCount-1)return!1;a.unload(),o===!0?a.$slideTrack.children().remove():a.$slideTrack.children(this.options.slide).eq(e).remove(),a.$slides=a.$slideTrack.children(this.options.slide),a.$slideTrack.children(this.options.slide).detach(),a.$slideTrack.append(a.$slides),a.$slidesCache=a.$slides,a.reinit()},s.prototype.setCSS=function(e){var i=this,o={},a,l;i.options.rtl===!0&&(e=-e),a=i.positionProp=="left"?Math.ceil(e)+"px":"0px",l=i.positionProp=="top"?Math.ceil(e)+"px":"0px",o[i.positionProp]=e,i.transformsEnabled===!1?i.$slideTrack.css(o):(o={},i.cssTransitions===!1?(o[i.animType]="translate("+a+", "+l+")",i.$slideTrack.css(o)):(o[i.animType]="translate3d("+a+", "+l+", 0px)",i.$slideTrack.css(o)))},s.prototype.setDimensions=function(){var e=this;e.options.vertical===!1?e.options.centerMode===!0&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),e.options.centerMode===!0&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),e.options.vertical===!1&&e.options.variableWidth===!1?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):e.options.variableWidth===!0?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var i=e.$slides.first().outerWidth(!0)-e.$slides.first().width();e.options.variableWidth===!1&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-i)},s.prototype.setFade=function(){var e=this,i;e.$slides.each(function(o,a){i=e.slideWidth*o*-1,e.options.rtl===!0?n(a).css({position:"relative",right:i,top:0,zIndex:e.options.zIndex-2,opacity:0}
27):n(a).css({position:"relative",left:i,top:0,zIndex:e.options.zIndex-2,opacity:0})}),e.$slides.eq(e.currentSlide).css({zIndex:e.options.zIndex-1,opacity:1})},s.prototype.setHeight=function(){var e=this;if(e.options.slidesToShow===1&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var i=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",i)}},s.prototype.setOption=s.prototype.slickSetOption=function(){var e=this,i,o,a,l,c=!1,h;if(n.type(arguments[0])==="object"?(a=arguments[0],c=arguments[1],h="multiple"):n.type(arguments[0])==="string"&&(a=arguments[0],l=arguments[1],c=arguments[2],arguments[0]==="responsive"&&n.type(arguments[1])==="array"?h="responsive":typeof arguments[1]!="undefined"&&(h="single")),h==="single")e.options[a]=l;else if(h==="multiple")n.each(a,function(g,m){e.options[g]=m});else if(h==="responsive")for(o in l)if(n.type(e.options.responsive)!=="array")e.options.responsive=[l[o]];else{for(i=e.options.responsive.length-1;i>=0;)e.options.responsive[i].breakpoint===l[o].breakpoint&&e.options.responsive.splice(i,1),i--;e.options.responsive.push(l[o])}c&&(e.unload(),e.reinit())},s.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),e.options.fade===!1?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},s.prototype.setProps=function(){var e=this,i=document.body.style;e.positionProp=e.options.vertical===!0?"top":"left",e.positionProp==="top"?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),(i.WebkitTransition!==void 0||i.MozTransition!==void 0||i.msTransition!==void 0)&&e.options.useCSS===!0&&(e.cssTransitions=!0),e.options.fade&&(typeof e.options.zIndex=="number"?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),i.OTransform!==void 0&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",i.perspectiveProperty===void 0&&i.webkitPerspective===void 0&&(e.animType=!1)),i.MozTransform!==void 0&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",i.perspectiveProperty===void 0&&i.MozPerspective===void 0&&(e.animType=!1)),i.webkitTransform!==void 0&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",i.perspectiveProperty===void 0&&i.webkitPerspective===void 0&&(e.animType=!1)),i.msTransform!==void 0&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",i.msTransform===void 0&&(e.animType=!1)),i.transform!==void 0&&e.animType!==!1&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&e.animType!==null&&e.animType!==!1},s.prototype.setSlideClasses=function(e){var i=this,o,a,l,c;if(a=i.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),i.$slides.eq(e).addClass("slick-current"),i.options.centerMode===!0){var h=i.options.slidesToShow%2===0?1:0;o=Math.floor(i.options.slidesToShow/2),i.options.infinite===!0&&(e>=o&&e<=i.slideCount-1-o?i.$slides.slice(e-o+h,e+o+1).addClass("slick-active").attr("aria-hidden","false"):(l=i.options.slidesToShow+e,a.slice(l-o+1+h,l+o+2).addClass("slick-active").attr("aria-hidden","false")),e===0?a.eq(a.length-1-i.options.slidesToShow).addClass("slick-center"):e===i.slideCount-1&&a.eq(i.options.slidesToShow).addClass("slick-center")),i.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=i.slideCount-i.options.slidesToShow?i.$slides.slice(e,e+i.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):a.length<=i.options.slidesToShow?a.addClass("slick-active").attr("aria-hidden","false"):(c=i.slideCount%i.options.slidesToShow,l=i.options.infinite===!0?i.options.slidesToShow+e:e,i.options.slidesToShow==i.options.slidesToScroll&&i.slideCount-e<i.options.slidesToShow?a.slice(l-(i.options.slidesToShow-c),l+c).addClass("slick-active").attr("aria-hidden","false"):a.slice(l,l+i.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));(i.options.lazyLoad==="ondemand"||i.options.lazyLoad==="anticipated")&&i.lazyLoad()},s.prototype.setupInfinite=function(){var e=this,i,o,a;
27if(e.options.fade===!0&&(e.options.centerMode=!1),e.options.infinite===!0&&e.options.fade===!1&&(o=null,e.slideCount>e.options.slidesToShow)){for(e.options.centerMode===!0?a=e.options.slidesToShow+1:a=e.options.slidesToShow,i=e.slideCount;i>e.slideCount-a;i-=1)o=i-1,n(e.$slides[o]).clone(!0).attr("id","").attr("data-slick-index",o-e.slideCount).prependTo(e.$slideTrack).addClass("slick-cloned");for(i=0;i<a+e.slideCount;i+=1)o=i,n(e.$slides[o]).clone(!0).attr("id","").attr("data-slick-index",o+e.slideCount).appendTo(e.$slideTrack).addClass("slick-cloned");e.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}},s.prototype.interrupt=function(e){var i=this;e||i.autoPlay(),i.interrupted=e},s.prototype.selectHandler=function(e){var i=this,o=n(e.target).is(".slick-slide")?n(e.target):n(e.target).parents(".slick-slide"),a=parseInt(o.attr("data-slick-index"));if(a||(a=0),i.slideCount<=i.options.slidesToShow){i.slideHandler(a,!1,!0);return}i.slideHandler(a)},s.prototype.slideHandler=function(e,i,o){var a,l,c,h,g=null,m=this,v;if(i=i||!1,!(m.animating===!0&&m.options.waitForAnimate===!0)&&!(m.options.fade===!0&&m.currentSlide===e)){if(i===!1&&m.asNavFor(e),a=e,g=m.getLeft(a),h=m.getLeft(m.currentSlide),m.currentLeft=m.swipeLeft===null?h:m.swipeLeft,m.options.infinite===!1&&m.options.centerMode===!1&&(e<0||e>m.getDotCount()*m.options.slidesToScroll)){m.options.fade===!1&&(a=m.currentSlide,o!==!0&&m.slideCount>m.options.slidesToShow?m.animateSlide(h,function(){m.postSlide(a)}):m.postSlide(a));return}else if(m.options.infinite===!1&&m.options.centerMode===!0&&(e<0||e>m.slideCount-m.options.slidesToScroll)){m.options.fade===!1&&(a=m.currentSlide,o!==!0&&m.slideCount>m.options.slidesToShow?m.animateSlide(h,function(){m.postSlide(a)}):m.postSlide(a));return}if(m.options.autoplay&&clearInterval(m.autoPlayTimer),a<0?m.slideCount%m.options.slidesToScroll!==0?l=m.slideCount-m.slideCount%m.options.slidesToScroll:l=m.slideCount+a:a>=m.slideCount?m.slideCount%m.options.slidesToScroll!==0?l=0:l=a-m.slideCount:l=a,m.animating=!0,m.$slider.trigger("beforeChange",[m,m.currentSlide,l]),c=m.currentSlide,m.currentSlide=l,m.setSlideClasses(m.currentSlide),m.options.asNavFor&&(v=m.getNavTarget(),v=v.slick("getSlick"),v.slideCount<=v.options.slidesToShow&&v.setSlideClasses(m.currentSlide)),m.updateDots(),m.updateArrows(),m.options.fade===!0){o!==!0?(m.fadeSlideOut(c),m.fadeSlide(l,function(){m.postSlide(l)})):m.postSlide(l),m.animateHeight();return}o!==!0&&m.slideCount>m.options.slidesToShow?m.animateSlide(g,function(){m.postSlide(l)}):m.postSlide(l)}},s.prototype.startLoad=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},s.prototype.swipeDirection=function(){var e,i,o,a,l=this;return e=l.touchObject.startX-l.touchObject.curX,i=l.touchObject.startY-l.touchObject.curY,o=Math.atan2(i,e),a=Math.round(o*180/Math.PI),a<0&&(a=360-Math.abs(a)),a<=45&&a>=0||a<=360&&a>=315?l.options.rtl===!1?"left":"right":a>=135&&a<=225?l.options.rtl===!1?"right":"left":l.options.verticalSwiping===!0?a>=35&&a<=135?"down":"up":"vertical"},s.prototype.swipeEnd=function(e){var i=this,o,a;if(i.dragging=!1,i.swiping=!1,i.scrolling)return i.scrolling=!1,!1;if(i.interrupted=!1,i.shouldClick=!(i.touchObject.swipeLength>10),i.touchObject.curX===void 0)return!1;if(i.touchObject.edgeHit===!0&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(a=i.swipeDirection(),a){case"left":case"down":o=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":o=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1;break}a!="vertical"&&(i.slideHandler(o),i.touchObject={},i.$slider.trigger("swipe",[i,a]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},s.prototype.swipeHandler=function(e){var i=this;if(!(i.options.swipe===!1||"ontouchend"in document&&i.options.swipe===!1)&&!(i.options.draggable===!1&&e.type.indexOf("mou
27se")!==-1))switch(i.touchObject.fingerCount=e.originalEvent&&e.originalEvent.touches!==void 0?e.originalEvent.touches.length:1,i.touchObject.minSwipe=i.listWidth/i.options.touchThreshold,i.options.verticalSwiping===!0&&(i.touchObject.minSwipe=i.listHeight/i.options.touchThreshold),e.data.action){case"start":i.swipeStart(e);break;case"move":i.swipeMove(e);break;case"end":i.swipeEnd(e);break}},s.prototype.swipeMove=function(e){var i=this,o,a,l,c,h,g;if(h=e.originalEvent!==void 0?e.originalEvent.touches:null,!i.dragging||i.scrolling||h&&h.length!==1)return!1;if(o=i.getLeft(i.currentSlide),i.touchObject.curX=h!==void 0?h[0].pageX:e.clientX,i.touchObject.curY=h!==void 0?h[0].pageY:e.clientY,i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curX-i.touchObject.startX,2))),g=Math.round(Math.sqrt(Math.pow(i.touchObject.curY-i.touchObject.startY,2))),!i.options.verticalSwiping&&!i.swiping&&g>4)return i.scrolling=!0,!1;if(i.options.verticalSwiping===!0&&(i.touchObject.swipeLength=g),a=i.swipeDirection(),e.originalEvent!==void 0&&i.touchObject.swipeLength>4&&(i.swiping=!0,e.preventDefault()),c=(i.options.rtl===!1?1:-1)*(i.touchObject.curX>i.touchObject.startX?1:-1),i.options.verticalSwiping===!0&&(c=i.touchObject.curY>i.touchObject.startY?1:-1),l=i.touchObject.swipeLength,i.touchObject.edgeHit=!1,i.options.infinite===!1&&(i.currentSlide===0&&a==="right"||i.currentSlide>=i.getDotCount()&&a==="left")&&(l=i.touchObject.swipeLength*i.options.edgeFriction,i.touchObject.edgeHit=!0),i.options.vertical===!1?i.swipeLeft=o+l*c:i.swipeLeft=o+l*(i.$list.height()/i.listWidth)*c,i.options.verticalSwiping===!0&&(i.swipeLeft=o+l*c),i.options.fade===!0||i.options.touchMove===!1)return!1;if(i.animating===!0)return i.swipeLeft=null,!1;i.setCSS(i.swipeLeft)},s.prototype.swipeStart=function(e){var i=this,o;if(i.interrupted=!0,i.touchObject.fingerCount!==1||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;e.originalEvent!==void 0&&e.originalEvent.touches!==void 0&&(o=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=o!==void 0?o.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=o!==void 0?o.pageY:e.clientY,i.dragging=!0},s.prototype.unfilterSlides=s.prototype.slickUnfilter=function(){var e=this;e.$slidesCache!==null&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},s.prototype.unload=function(){var e=this;n(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},s.prototype.unslick=function(e){var i=this;i.$slider.trigger("unslick",[i,e]),i.destroy()},s.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.currentSlide===0?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1||e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},s.prototype.updateDots=function(){var e=this;e.$dots!==null&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},s.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},n.fn.slick=function(){var e=this,i=arguments[0],o=Array.prototype.slice.call(arguments,1),a=e.length,l,c;for(l=0;l<a;l++)if(typeof i=="object"||typeof i=="undefined"?e[l].slick=new s(e[l],i):c=e[l].slick[i].apply(e[l].slick,o),typeof c!="undefined")return c;return e}})})(Zg);$(document).ready(function(){$(".slick-banner").slick({infinite:!0,mobileFirst:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!0,customPaging:function(p,t){return'<span class="slick-bullet"></span>'},autoplay:!0,autoplaySpeed:5e3}),$(".slick-chiffres, .slick-chiffres_soutenir").slick({infinite:!1,mobileFirst:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!1,responsive:[{breakpoint:768-1,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:1024-1,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:1240-1,settings:"unslick"}]}),$(".slick-cibles").slick({infinite:!1,mobileFirst:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!1,customPaging:function(p,t){return'<span class="slick-bullet"></span>'},responsive:[{breakpoint:768-1,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:1024-1,settings:{slidesToShow:3,slidesToScroll:1,dots:!0}}]}),$(".slick-partenaires").slick({infinite:!1,mobileFirst:!0,slidesToShow:2,slidesToScroll:2,arrows:!1,dots:!0,customPaging:function(p,t){return'<span class="slick-bullet"></span>'},responsive:[{breakpoint:768-1,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:1024-1,settings:"unslick"}]}),$(".slick-reasons").slick({infinite:!1,mobileFirst:!0,slidesToShow:1,slidesToScroll:1,centerMode:!0,arrows:!1,dots:!1,customPaging:function(p,t){return'<span class="slick-bullet"></span>'},responsive:[{breakpoint:768-1,settings:{slidesToShow:2,slidesToScroll:1,centerMode:!1}},{breakpoint:1024-1,settings:{slidesToShow:3,slidesToScroll:1,centerMode:!1}},{breakpoint:1240-1,settings:{slidesToShow:1,slidesToScroll:1,centerMode:!1}},{breakpoint:1440-1,settings:{slidesToShow:2,slidesToScroll:1,centerMode:!1}}]}),$(".slider_cards").length>0&&$(".slider_cards").slick({infinite:!1,mobileFirst:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!0,customPaging:function(p,t){return'<span class="slick-bullet"></span>'},responsive:[{breakpoint:768-1,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:1024-1,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:1240-1,settings:{slidesToShow:3,slidesToScroll:3}}]}),$(".slider_temoignages").length>0&&$(".slider_temoignages").slick({infinite:!1,mobileFirst:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!0,customPaging:function(p,t){return'<span class="slick-bullet"></span>'},responsive:[{breakpoint:768-1,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:1024-1,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:1240-1,settings:{slidesToShow:3,slidesToScroll:3}}]})});var xf={exports:{}},Au={exports:{}},Ou={exports:{}},ed;function Cf(){return ed||(ed=1,function(p){(function(t,n){p.exports?p.exports=n():t.EvEmitter=n()})(typeof window!="undefined"?window:Yo,function(){function t(){}var n=t.prototype;return n.on=function(s,e){if(!(!s||!e)){var i=this._events=this._events||{},o=i[s]=i[s]||[];return o.indexOf(e)==-1&&o.push(e),this}},n.once=function(s,e){if(!(!s||!e)){this.on(s,e);var i=this._onceEvents=this._onceEvents||{},o=i[s]=i[s]||{};return o[e]=!0,this}},n.off=function(s,e){var i=this._events&&this._events[s];if(!(!i||!i.length)){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},n.emitEvent=function(s,e){var i=this._events&&this._events[s];if(!(!i||!i.length)){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[s],a=0;a<i.length;a++){var l=i[a],c=o&&o[l];c&&(this.off(s,l),delete o[l]),l.apply(this,e)}return this}},n.allOff=function(){delete this._events,delete this._onceEvents},t})}(Ou)),Ou.exports}var Du={exports:{}};/*!
28 * getSize v2.0.3
29 * measure size of elements
30 * MIT license
31 */var id;function Ic(){return id||(id=1,function(p){(function(t,n){p.exports?p.exports=n():t.getSize=n()})(window,function(){function n(v){var x=parseFloat(v),C=v.indexOf("%")==-1&&!isNaN(x);return C&&x}function s(){}var e=typeof console=="undefined"?s:function(v){console.error(v)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],o=i.length;function a(){for(var v={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},x=0;x<o;x++){var C=i[x];v[C]=0}return v}function l(v){var x=getComputedStyle(v);return x||e("Style returned "+x+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),x}var c=!1,h;function g(){if(!c){c=!0;var v=document.createElement("div");v.style.width="200px",v.style.padding="1px 2px 3px 4px",v.style.borderStyle="solid",v.style.borderWidth="1px 2px 3px 4px",v.style.boxSizing="border-box";var x=document.body||document.documentElement;x.appendChild(v);var C=l(v);h=Math.round(n(C.width))==200,m.isBoxSizeOuter=h,x.removeChild(v)}}function m(v){if(g(),typeof v=="string"&&(v=document.querySelector(v)),!(!v||typeof v!="object"||!v.nodeType)){var x=l(v);if(x.display=="none")return a();var C={};C.width=v.offsetWidth,C.height=v.offsetHeight;for(var k=C.isBorderBox=x.boxSizing=="border-box",S=0;S<o;S++){var A=i[S],z=x[A],R=parseFloat(z);C[A]=isNaN(R)?0:R}var W=C.paddingLeft+C.paddingRight,Y=C.paddingTop+C.paddingBottom,b=C.marginLeft+C.marginRight,rt=C.marginTop+C.marginBottom,J=C.borderLeftWidth+C.borderRightWidth,at=C.borderTopWidth+C.borderBottomWidth,St=k&&h,ut=n(x.width);ut!==!1&&(C.width=ut+(St?0:W+J));var q=n(x.height);return q!==!1&&(C.height=q+(St?0:Y+at)),C.innerWidth=C.width-(W+J),C.innerHeight=C.height-(Y+at),C.outerWidth=C.width+b,C.outerHeight=C.height+rt,C}}return m})}(Du)),Du.exports}var zu={exports:{}},Iu={exports:{}},nd;function Wg(){return nd||(nd=1,function(p){(function(t,n){p.exports?p.exports=n():t.matchesSelector=n()})(window,function(){var n=function(){var s=window.Element.prototype;if(s.matches)return"matches";if(s.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i],a=o+"MatchesSelector";
31if(s[a])return a}}();return function(e,i){return e[n](i)}})}(Iu)),Iu.exports}var rd;function Gg(){return rd||(rd=1,function(p){(function(t,n){p.exports?p.exports=n(t,Wg()):t.fizzyUIUtils=n(t,t.matchesSelector)})(window,function(n,s){var e={};e.extend=function(a,l){for(var c in l)a[c]=l[c];return a},e.modulo=function(a,l){return(a%l+l)%l};var i=Array.prototype.slice;e.makeArray=function(a){if(Array.isArray(a))return a;if(a==null)return[];var l=typeof a=="object"&&typeof a.length=="number";return l?i.call(a):[a]},e.removeFrom=function(a,l){var c=a.indexOf(l);c!=-1&&a.splice(c,1)},e.getParent=function(a,l){for(;a.parentNode&&a!=document.body;)if(a=a.parentNode,s(a,l))return a},e.getQueryElement=function(a){return typeof a=="string"?document.querySelector(a):a},e.handleEvent=function(a){var l="on"+a.type;this[l]&&this[l](a)},e.filterFindElements=function(a,l){a=e.makeArray(a);var c=[];return a.forEach(function(h){if(h instanceof HTMLElement){if(!l){c.push(h);return}s(h,l)&&c.push(h);for(var g=h.querySelectorAll(l),m=0;m<g.length;m++)c.push(g[m])}}),c},e.debounceMethod=function(a,l,c){c=c||100;var h=a.prototype[l],g=l+"Timeout";a.prototype[l]=function(){var m=this[g];clearTimeout(m);var v=arguments,x=this;this[g]=setTimeout(function(){h.apply(x,v),delete x[g]},c)}},e.docReady=function(a){var l=document.readyState;l=="complete"||l=="interactive"?setTimeout(a):document.addEventListener("DOMContentLoaded",a)},e.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(l,c,h){return c+"-"+h}).toLowerCase()};var o=n.console;return e.htmlInit=function(a,l){e.docReady(function(){var c=e.toDashed(l),h="data-"+c,g=document.querySelectorAll("["+h+"]"),m=document.querySelectorAll(".js-"+c),v=e.makeArray(g).concat(e.makeArray(m)),x=h+"-options",C=n.jQuery;v.forEach(function(k){var S=k.getAttribute(h)||k.getAttribute(x),A;try{A=S&&JSON.parse(S)}catch(R){o&&o.error("Error parsing "+h+" on "+k.className+": "+R);return}var z=new a(k,A);C&&C.data(k,l,z)})})},e})}(zu)),zu.exports}var $u={exports:{}},sd;function Ug(){return sd||(sd=1,function(p){(function(t,n){p.exports?p.exports=n(Cf(),Ic()):(t.Outlayer={},t.Outlayer.Item=n(t.EvEmitter,t.getSize))})(window,function(n,s){function e(k){for(var S in k)return!1;return S=null,!0}var i=document.documentElement.style,o=typeof i.transition=="str
31ing"?"transition":"WebkitTransition",a=typeof i.transform=="string"?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],c={transform:a,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"};function h(k,S){k&&(this.element=k,this.layout=S,this.position={x:0,y:0},this._create())}var g=h.prototype=Object.create(n.prototype);g.constructor=h,g._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.handleEvent=function(k){var S="on"+k.type;this[S]&&this[S](k)},g.getSize=function(){this.size=s(this.element)},g.css=function(k){var S=this.element.style;for(var A in k){var z=c[A]||A;S[z]=k[A]}},g.getPosition=function(){var k=getComputedStyle(this.element),S=this.layout._getOption("originLeft"),A=this.layout._getOption("originTop"),z=k[S?"left":"right"],R=k[A?"top":"bottom"],W=parseFloat(z),Y=parseFloat(R),b=this.layout.size;z.indexOf("%")!=-1&&(W=W/100*b.width),R.indexOf("%")!=-1&&(Y=Y/100*b.height),W=isNaN(W)?0:W,Y=isNaN(Y)?0:Y,W-=S?b.paddingLeft:b.paddingRight,Y-=A?b.paddingTop:b.paddingBottom,this.position.x=W,this.position.y=Y},g.layoutPosition=function(){var k=this.layout.size,S={},A=this.layout._getOption("originLeft"),z=this.layout._getOption("originTop"),R=A?"paddingLeft":"paddingRight",W=A?"left":"right",Y=A?"right":"left",b=this.position.x+k[R];S[W]=this.getXValue(b),S[Y]="";var rt=z?"paddingTop":"paddingBottom",J=z?"top":"bottom",at=z?"bottom":"top",St=this.position.y+k[rt];S[J]=this.getYValue(St),S[at]="",this.css(S),this.emitEvent("layout",[this])},g.getXValue=function(k){var S=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!S?k/this.layout.size.width*100+"%":k+"px"},g.getYValue=function(k){var S=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&S?k/this.layout.size.height*100+"%":k+"px"},g._transitionTo=function(k,S){this.getPosition();var A=this.position.x,z=this.position.y,R=k==this.position.x&&S==this.position.y;if(this.setPosition(k,S),R&&!this.isTransitioning){this.layoutPosition();return}var W=k-A,Y=S-z,b={};b.transform=this.getTranslate(W,Y),this.transition({to:b,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.getTranslate=function(k,S){var A=this.layout._getOption("originLeft"),z=this.layout._getOption("originTop");return k=A?k:-k,S=z?S:-S,"translate3d("+k+"px, "+S+"px, 0)"},g.goTo=function(k,S){this.setPosition(k,S),this.layoutPosition()},g.moveTo=g._transitionTo,g.setPosition=function(k,S){this.position.x=parseFloat(k),this.position.y=parseFloat(S)},g._nonTransition=function(k){this.css(k.to),k.isCleaning&&this._removeStyles(k.to);for(var S in k.onTransitionEnd)k.onTransitionEnd[S].call(this)},g.transition=function(k){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(k);return}var S=this._transn;for(var A in k.onTransitionEnd)S.onEnd[A]=k.onTransitionEnd[A];for(A in k.to)S.ingProperties[A]=!0,k.isCleaning&&(S.clean[A]=!0);k.from&&(this.css(k.from),this.element.offsetHeight),this.enableTransition(k.to),this.css(k.to),this.isTransitioning=!0};function m(k){return k.replace(/([A-Z])/g,function(S){return"-"+S.toLowerCase()})}var v="opacity,"+m(a);g.enableTransition=function(){if(!this.isTransitioning){var k=this.layout.options.transitionDuration;k=typeof k=="number"?k+"ms":k,this.css({transitionProperty:v,transitionDuration:k,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},g.onwebkitTransitionEnd=function(k){this.ontransitionend(k)},g.onotransitionend=function(k){this.ontransitionend(k)};var x={"-webkit-transform":"transform"};g.ontransitionend=function(k){if(k.target===this.element){var S=this._transn,A=x[k.propertyName]||k.propertyName;if(delete S.ingProperties[A],e(S.ingProperties)&&this.disableTransition(),A in S.clean&&(this.element.style[k.propertyName]="",delete S.clean[A]),A in S.onEnd){var z=S.onEnd[A];z.call(this),delete S.onEnd[A]}this.emitEvent("transitionEnd",[this])}},g.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},g._removeStyles=function(k){var S={};for(var A in k)S[A]="";this.css(S)};var C={transitionProperty:"",transitionDuration:"",transitionDelay:""};return g.removeTransitionStyles=function(){this.css(C)},g.stagger=function(k){k=isNaN(k)?0:k,this.staggerDelay=k+"ms"},g.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},g.remove=function(){if(!o||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()}),this.hide()},g.reveal=function(){delete this.isHidden,this.css({display:""});var k=this.layout.options,S={},A=this.getHideRevealTransitionEndProperty("visibleStyle");S[A]=this.onRevealTransitionEnd,this.transition({from:k.hiddenStyle,to:k.visibleStyle,isCleaning:!0,onTransitionEnd:S})},g.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},g.getHideRevealTransitionEndProperty=function(k){var S=this.layout.options[k];if(S.opacity)return"opacity";for(var A in S)return A},g.hide=function(){this.isHidden=!0,this.css({display:""});var k=this.layout.options,S={},A=this.getHideRevealTransitionEndProperty("hiddenStyle");S[A]=this.onHideTransitionEnd,this.transition({from:k.visibleStyle,to:k.hiddenStyle,isCleaning:!0,onTransitionEnd:S})},g.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},g.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h})}($u)),$u.exports}/*!
32 * Outlayer v2.1.1
33 * the brains and guts of a layout library
34 * MIT license
35 */var od;
35function Vg(){return od||(od=1,function(p){(function(t,n){p.exports?p.exports=n(t,Cf(),Ic(),Gg(),Ug()):t.Outlayer=n(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)})(window,function(n,s,e,i,o){var a=n.console,l=n.jQuery,c=function(){},h=0,g={};function m(S,A){var z=i.getQueryElement(S);if(!z){a&&a.error("Bad element for "+this.constructor.namespace+": "+(z||S));return}this.element=z,l&&(this.$element=l(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(A);var R=++h;this.element.outlayerGUID=R,g[R]=this,this._create();var W=this._getOption("initLayout");W&&this.layout()}m.namespace="outlayer",m.Item=o,m.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var v=m.prototype;i.extend(v,s.prototype),v.option=function(S){i.extend(this.options,S)},v._getOption=function(S){var A=this.constructor.compatOptions[S];return A&&this.options[A]!==void 0?this.options[A]:this.options[S]},m.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},v._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle);var S=this._getOption("resize");S&&this.bindResize()},v.reloadItems=function(){this.items=this._itemize(this.element.children)},v._itemize=function(S){for(var A=this._filterFindItemElements(S),z=this.constructor.Item,R=[],W=0;W<A.length;W++){var Y=A[W],b=new z(Y,this);R.push(b)}return R},v._filterFindItemElements=function(S){return i.filterFindElements(S,this.options.itemSelector)},v.getItemElements=function(){return this.items.map(function(S){return S.element})},v.layout=function(){this._resetLayout(),this._manageStamps();var S=this._getOption("layoutInstant"),A=S!==void 0?S:!this._isLayoutInited;this.layoutItems(this.items,A),this._isLayoutInited=!0},v._init=v.layout,v._resetLayout=function(){this.getSize()},v.getSize=function(){this.size=e(this.element)},v._getMeasurement=function(S,A){var z=this.options[S],R;z?(typeof z=="string"?R=this.element.querySelector(z):z instanceof HTMLElement&&(R=z),this[S]=R?e(R)[A]:z):this[S]=0},v.layoutItems=function(S,A){S=this._getItemsForLayout(S),this._layoutItems(S,A),this._postLayout()},v._getItemsForLayout=function(S){return S.filter(function(A){return!A.isIgnored})},v._layoutItems=function(S,A){if(this._emitCompleteOnItems("layout",S),!(!S||!S.length)){var z=[];S.forEach(function(R){var W=this._getItemLayoutPosition(R);W.item=R,W.isInstant=A||R.isLayoutInstant,z.push(W)},this),this._processLayoutQueue(z)}},v._getItemLayoutPosition=function(){return{x:0,y:0}},v._processLayoutQueue=function(S){this.updateStagger(),S.forEach(function(A,z){this._positionItem(A.item,A.x,A.y,A.isInstant,z)},this)},v.updateStagger=function(){var S=this.options.stagger;if(S==null){this.stagger=0;return}return this.stagger=k(S),this.stagger},v._positionItem=function(S,A,z,R,W){R?S.goTo(A,z):(S.stagger(W*this.stagger),S.moveTo(A,z))},v._postLayout=function(){this.resizeContainer()},v.resizeContainer=function(){var S=this._getOption("resizeContainer");if(S){var A=this._getContainerSize();A&&(this._setContainerMeasure(A.width,!0),this._setContainerMeasure(A.height,!1))}},v._getContainerSize=c,v._setContainerMeasure=function(S,A){if(S!==void 0){var z=this.size;z.isBorderBox&&(S+=A?z.paddingLeft+z.paddingRight+z.borderLeftWidth+z.borderRightWidth:z.paddingBottom+z.paddingTop+z.borderTopWidth+z.borderBottomWidth),S=Math.max(S,0),this.element.style[A?"width":"height"]=S+"px"}},v._emitCompleteOnItems=function(S,A){var z=this;function R(){z.dispatchEvent(S+"Complete",null,[A])}var W=A.length;if(!A||!W){R();return}var Y=0;function b(){Y++,Y==W&&R()}A.forEach(function(rt){rt.once(S,b)})},v.dispatchEvent=function(S,A,z){var R=A?[A].concat(z):z;if(this.emitEvent(S,R),l)if(this.$element=this.$element||l(this.element),A){var W=l.Event(A);W.type=S,this.$element.trigger(W,z)}else this.$element.trigger(S,z)},v.ignore=function(S){var A=this.getItem(S);A&&(A.isIgnored=!0)},v.unignore=function(S){var A=this.getItem(S);A&&delete A.isIgnored},v.stamp=function(S){S=this._find(S),S&&(this.stamps=this.stamps.
vendor: 2,723 bytes, line 35
35concat(S),S.forEach(this.ignore,this))},v.unstamp=function(S){S=this._find(S),S&&S.forEach(function(A){i.removeFrom(this.stamps,A),this.unignore(A)},this)},v._find=function(S){if(S)return typeof S=="string"&&(S=this.element.querySelectorAll(S)),S=i.makeArray(S),S},v._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},v._getBoundingRect=function(){var S=this.element.getBoundingClientRect(),A=this.size;this._boundingRect={left:S.left+A.paddingLeft+A.borderLeftWidth,top:S.top+A.paddingTop+A.borderTopWidth,right:S.right-(A.paddingRight+A.borderRightWidth),bottom:S.bottom-(A.paddingBottom+A.borderBottomWidth)}},v._manageStamp=c,v._getElementOffset=function(S){var A=S.getBoundingClientRect(),z=this._boundingRect,R=e(S),W={left:A.left-z.left-R.marginLeft,top:A.top-z.top-R.marginTop,right:z.right-A.right-R.marginRight,bottom:z.bottom-A.bottom-R.marginBottom};return W},v.handleEvent=i.handleEvent,v.bindResize=function(){n.addEventListener("resize",this),this.isResizeBound=!0},v.unbindResize=function(){n.removeEventListener("resize",this),this.isResizeBound=!1},v.onresize=function(){this.resize()},i.debounceMethod(m,"onresize",100),v.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout()},v.needsResizeLayout=function(){var S=e(this.element),A=this.size&&S;return A&&S.innerWidth!==this.size.innerWidth},v.addItems=function(S){var A=this._itemize(S);return A.length&&(this.items=this.items.concat(A)),A},v.appended=function(S){var A=this.addItems(S);A.length&&(this.layoutItems(A,!0),this.reveal(A))},v.prepended=function(S){var A=this._itemize(S);if(A.length){var z=this.items.slice(0);this.items=A.concat(z),this._resetLayout(),this._manageStamps(),this.layoutItems(A,!0),this.reveal(A),this.layoutItems(z)}},v.reveal=function(S){if(this._emitCompleteOnItems("reveal",S),!(!S||!S.length)){var A=this.updateStagger();S.forEach(function(z,R){z.stagger(R*A),z.reveal()})}},v.hide=function(S){if(this._emitCompleteOnItems("hide",S),!(!S||!S.length)){var A=this.updateStagger();S.forEach(function(z,R){z.stagger(R*A),z.hide()})}},v.revealItemElements=function(S){var A=this.getItems(S);this.reveal(A)},v.hideItemElements=function(S){var A=this.getItems(S);this.hide(A)},v.getItem=function(S){for(var A=0;A<this.items.length;A++){var z=this.items[A];if(z.element==S)return z}},v.getItems=function(S){S=i.makeArray(S);var A=[];return S.forEach(function(z){var R=this.getItem(z);R&&A.push(R)},this),A},v.remove=function(S){var A=this.getItems(S);this._emitCompleteOnItems("remove",A),!(!A||!A.length)&&A.forEach(function(z){z.remove(),i.removeFrom(this.items,z)},this)},v.destroy=function(){var S=this.element.style;
vendor: 3,443 bytes, lines 35-41
35S.height="",S.position="",S.width="",this.items.forEach(function(z){z.destroy()}),this.unbindResize();var A=this.element.outlayerGUID;delete g[A],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},m.data=function(S){S=i.getQueryElement(S);var A=S&&S.outlayerGUID;return A&&g[A]},m.create=function(S,A){var z=x(m);return z.defaults=i.extend({},m.defaults),i.extend(z.defaults,A),z.compatOptions=i.extend({},m.compatOptions),z.namespace=S,z.data=m.data,z.Item=x(o),i.htmlInit(z,S),l&&l.bridget&&l.bridget(S,z),z};function x(S){function A(){S.apply(this,arguments)}return A.prototype=Object.create(S.prototype),A.prototype.constructor=A,A}var C={ms:1,s:1e3};function k(S){if(typeof S=="number")return S;var A=S.match(/(^\d*\.?\d*)(\w*)/),z=A&&A[1],R=A&&A[2];if(!z.length)return 0;z=parseFloat(z);var W=C[R]||1;return z*W}return m.Item=o,m})}(Au)),Au.exports}/*!
36 * Masonry v4.2.2
37 * Cascading grid layout library
38 * https://masonry.desandro.com
39 * MIT License
40 * by David DeSandro
41 */(function(p){(function(t,n){p.exports?p.exports=n(Vg(),Ic()):t.Masonry=n(t.Outlayer,t.getSize)})(window,function(n,s){var e=n.create("masonry");e.compatOptions.fitWidth="isFitWidth";var i=e.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var o=0;o<this.cols;o++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var o=this.items[0],a=o&&o.element;this.columnWidth=a&&s(a).outerWidth||this.containerWidth}var l=this.columnWidth+=this.gutter,c=this.containerWidth+this.gutter,h=c/l,g=l-c%l,m=g&&g<1?"round":"floor";h=Math[m](h),this.cols=Math.max(h,1)},i.getContainerWidth=function(){var o=this._getOption("fitWidth"),a=o?this.element.parentNode:this.element,l=s(a);this.containerWidth=l&&l.innerWidth},i._getItemLayoutPosition=function(o){o.getSize();var a=o.size.outerWidth%this.columnWidth,l=a&&a<1?"round":"ceil",c=Math[l](o.size.outerWidth/this.columnWidth);c=Math.min(c,this.cols);for(var h=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",g=this[h](c,o),m={x:this.columnWidth*g.col,y:g.y},v=g.y+o.size.outerHeight,x=c+g.col,C=g.col;C<x;C++)this.colYs[C]=v;return m},i._getTopColPosition=function(o){var a=this._getTopColGroup(o),l=Math.min.apply(Math,a);return{col:a.indexOf(l),y:l}},i._getTopColGroup=function(o){if(o<2)return this.colYs;for(var a=[],l=this.cols+1-o,c=0;c<l;c++)a[c]=this._getColGroupY(c,o);return a},i._getColGroupY=function(o,a){if(a<2)return this.colYs[o];var l=this.colYs.slice(o,o+a);return Math.max.apply(Math,l)},i._getHorizontalColPosition=function(o,a){var l=this.horizontalColIndex%this.cols,c=o>1&&l+o>this.cols;l=c?0:l;var h=a.size.outerWidth&&a.size.outerHeight;return this.horizontalColIndex=h?l+o:this.horizontalColIndex,{col:l,y:this._getColGroupY(l,o)}},i._manageStamp=function(o){var a=s(o),l=this._getElementOffset(o),c=this._getOption("originLeft"),h=c?l.left:l.right,g=h+a.outerWidth,m=Math.floor(h/this.columnWidth);m=Math.max(0,m);var v=Math.floor(g/this.columnWidth);v-=g%this.columnWidth?0:1,v=Math.min(this.cols-1,v);for(var x=this._getOption("originTop"),C=(x?l.top:l.bottom)+a.outerHeight,k=m;k<=v;k++)this.colYs[k]=Math.max(C,this.colYs[k])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);
41var o={height:this.maxY};return this._getOption("fitWidth")&&(o.width=this._getContainerFitWidth()),o},i._getContainerFitWidth=function(){for(var o=0,a=this.cols;--a&&this.colYs[a]===0;)o++;return(this.cols-o)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var o=this.containerWidth;return this.getContainerWidth(),o!=this.containerWidth},e})})(xf);var Yg=xf.exports;const Xg=Va(Yg);var Tf={exports:{}},Ru={exports:{}},ad;function Kg(){return ad||(ad=1,function(p){(function(t,n){p.exports?p.exports=n():t.EvEmitter=n()})(typeof window!="undefined"?window:Yo,function(){function t(){}let n=t.prototype;return n.on=function(s,e){if(!s||!e)return this;let i=this._events=this._events||{},o=i[s]=i[s]||[];return o.includes(e)||o.push(e),this},n.once=function(s,e){if(!s||!e)return this;this.on(s,e);let i=this._onceEvents=this._onceEvents||{},o=i[s]=i[s]||{};return o[e]=!0,this},n.off=function(s,e){let i=this._events&&this._events[s];if(!i||!i.length)return this;let o=i.indexOf(e);return o!=-1&&i.splice(o,1),this},n.emitEvent=function(s,e){let i=this._events&&this._events[s];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let o=this._onceEvents&&this._onceEvents[s];for(let a of i)o&&o[a]&&(this.off(s,a),delete o[a]),a.apply(this,e);return this},n.allOff=function(){return delete this._events,delete this._onceEvents,this},t})}(Ru)),Ru.exports}/*!
42 * imagesLoaded v5.0.0
43 * JavaScript is all like "You images are done yet or what?"
44 * MIT License
45 */(function(p){(function(t,n){p.exports?p.exports=n(t,Kg()):t.imagesLoaded=n(t,t.EvEmitter)})(typeof window!="undefined"?window:Yo,function(n,s){let e=n.jQuery,i=n.console;function o(m){return Array.isArray(m)?m:typeof m=="object"&&typeof m.length=="number"?[...m]:[m]}function a(m,v,x){if(!(this instanceof a))return new a(m,v,x);let C=m;if(typeof m=="string"&&(C=document.querySelectorAll(m)),!C){i.error(`Bad element for imagesLoaded ${C||m}`);return}this.elements=o(C),this.options={},typeof v=="function"?x=v:Object.assign(this.options,v),x&&this.on("always",x),this.getImages(),e&&(this.jqDeferred=new e.Deferred),setTimeout(this.check.bind(this))}a.prototype=Object.create(s.prototype),a.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const l=[1,9,11];a.prototype.addElementImages=function(m){m.nodeName==="IMG"&&this.addImage(m),this.options.background===!0&&this.addElementBackgroundImages(m);let{nodeType:v}=m;if(!v||!l.includes(v))return;let x=m.querySelectorAll("img");for(let C of x)this.addImage(C);if(typeof this.options.background=="string"){let C=m.querySelectorAll(this.options.background);for(let k of C)this.addElementBackgroundImages(k)}};const c=/url\((['"])?(.*?)\1\)/gi;a.prototype.addElementBackgroundImages=function(m){let v=getComputedStyle(m);if(!v)return;let x=c.exec(v.backgroundImage);for(;x!==null;){let C=x&&x[2];C&&this.addBackground(C,m),x=c.exec(v.backgroundImage)}},a.prototype.addImage=function(m){let v=new h(m);this.images.push(v)},a.prototype.addBackground=function(m,v){let x=new g(m,v);this.images.push(x)},a.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}let m=(v,x,C)=>{setTimeout(()=>{this.progress(v,x,C)})};this.images.forEach(function(v){v.once("progress",m),v.check()})},a.prototype.progress=function(m,v,x){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!m.isLoaded,this.emitEvent("progress",[this,m,v]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,m),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&i&&i.log(`progress: ${x}`,m,v)},a.prototype.complete=function(){let m=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(m,[this]),this.emitEvent("always",[this]),this.jqDeferred){let v=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[v](this)}};function h(m){this.img=m}h.prototype=Object.create(s.prototype),h.prototype.check=function(){if(this.getIsImageComplete()){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWi
45dth},h.prototype.confirm=function(m,v){this.isLoaded=m;let{parentNode:x}=this.img,C=x.nodeName==="PICTURE"?x:this.img;this.emitEvent("progress",[this,C,v])},h.prototype.handleEvent=function(m){let v="on"+m.type;this[v]&&this[v](m)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function g(m,v){this.url=m,this.element=v,this.img=new Image}return g.prototype=Object.create(h.prototype),g.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},g.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},g.prototype.confirm=function(m,v){this.isLoaded=m,this.emitEvent("progress",[this,this.element,v])},a.makeJQueryPlugin=function(m){m=m||n.jQuery,m&&(e=m,e.fn.imagesLoaded=function(v,x){return new a(this,v,x).jqDeferred.promise(e(this))})},a.makeJQueryPlugin(),a})})(Tf);var Jg=Tf.exports;const Qg=Va(Jg);let Fu=document.querySelector(".masonry");Fu&&Qg(Fu).on("progress",function(){new Xg(Fu,{itemSelector:".masonry-item",percentPosition:!0,horizontalOrder:!0}).layout()});$(document).ready(function(){const p=$("#screen-size");p[0]&&(t(),$(window).on("resize",()=>{t()}));function t(){$(p).text(`${window.innerWidth}px`)}});$(document).ready(function(){$(".menu_desktop .menu-item-home a").each((p,t)=>{const n=`<span class="sr-only">${$(t).text()}</span>`,s='<svg class="fill-primary ease-all group-hover:fill-black dark:group-hover:fill-white h-6 w-6"><use xlink:href="#home"></use></svg>';$(t).addClass("group !flex items-center justify-center"),$(t).html(n+s)})});$(document).ready(function(){const p=$(".lang-current").data("lang");console.log(`current lang : ${p}`),Ef(p),tm(),Sf()});function tm(){let p=document.createElement("div");p.id="google_translate_element",p.style.position="absolute",p.style.opacity="0",p.style.display="none",p.setAttribute("aria-hidden","true"),document.body.appendChild(p);let t=document.createElement("script");t.type="text/javascript",t.innerHTML=`
46        function googleTranslateElementInit() {
47            new google.translate.TranslateElement({
48                pageLanguage: 'fr',
49                includedLanguages: '${$("body").data("lang")}',
50                autoDisplay: false
51            }, 'google_translate_element');
52        }
53    `,document.body.appendChild(t);let n=document.createElement("script");n.type="text/javascript",n.src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit",document.body.appendChild(n)}function Sf(){$(".lang-link").on("click",nm),$(".lang-current").on("click",em),$(document).on("click",im)}function em(p){p.preventDefault(),$(".lang-container").toggleClass("active")}function im(p){let t=$(".lang-current");t[0]!==p.target&&!t.has(p.target).length&&$(".lang-container").removeClass("active")}function nm(p){const t=p.currentTarget;$(t).hasClass("gtranslate")?(p.preventDefault(),rm($(t).data("lang"))):$(".lang-current").data("origin")==="gtranslate"&&(p.preventDefault(),om(),window.location.replace(t.href))}function rm(p){const t=$(".goog-te-combo");t.length&&(t.val(p),t[0].dispatchEvent(new Event("change")),Ef(p))}function Ef(p){$.ajax("/wp-admin/admin-ajax.php",{method:"POST",data:{current:p,action:"get_language_switcher"},success(t){let n=JSON.parse(t);$(".lang-switcher-wrapper").html(n),sm(),Sf()}})}function sm(){const p=$("body").data("wpml-urls");$(".lang-link.wpml").each((t,n)=>{const s=$(n).data("lang");$(n).attr("href",p[s])})}function om(){console.log("clearGoogleTransCookies"),Bu("googtrans","",-1,"/",".loco.brussels"),Bu("googtrans","",-1,"/","www.loco.brussels"),Bu("googtrans","",-1,"/")}function Bu(p,t,n,s,a){var i;if(n===0)i="";else{var o=new Date;o.setTime(o.getTime()+n*24*60*60*1e3),i="expires="+o.toGMTString()+"; "}var a=typeof a=="undefined"?"":"; domain="+a;document.cookie=p+"="+t+"; "+i+"path="+s+a}function am(){const p=localStorage.getItem("color-theme"),t=window.matchMedia("(prefers-color-scheme: dark)").matches,n=p?p==="dark":t;document.documentElement.classList.toggle("dark",n),$("#wcb").toggleClass("wcb-d",n)}function lm(){const t=document.documentElement.classList.contains("dark")?"light":"dark";document.documentElement.classList.toggle("dark",t==="dark"),localStorage.setItem("color-theme",t),$("#wcb").toggleClass("wcb-d",t==="dark")}document.querySelectorAll(".theme-toggle").forEach(p=>{p.addEventListener("click",lm)});document.addEventListener("DOMContentLoaded",am);const um=140,cm=40;let sc=!1;function Lf(){const p=document.body.classList.contains("is-scrolled"),t=window.scrollY;!p&&t>um?document.body.classList.add("is-scrolled"):p&&t<cm&&document.body.classList.remove("is-scrolled"),sc=!1}function hm(){sc||(sc=!0,requestAnimationFrame(Lf))}window.addEventListener("scroll",hm,{passive:!0});Lf();$(document).ready(function(){$("#toggle-menu").on("change",function(){var p=$(this).is(":checked");p?$("body").css("overflow","hidden"):$(".sub-menu.active").length>0?($(".menu-item-has-children").removeClass("active"),$(".sub-menu").removeClass("active"),$("#toggle-menu").removeClass("submenu_open"),$(this).prop("checked",!0),$("body").css("overflow","hidden")):$("body").css("overflow","auto")}),$(".menu-item-has-children > a").on("click",function(p){p.preventDefault(),$(this).parent().toggleClass("active");var t=$(this).parent().find(".sub-menu");t.toggleClass("active"),$(".sub-menu.active").length>0?($("#menu-principal").addClass("active"),$("#toggle-menu").addClass("submenu_open").prop("checked",!0)):($("#menu-principal").removeClass("active"),$("#toggle-menu").removeClass("submenu_open"))})});$(document).ready(function(){$(".search_screen").addClass("ease-in-out duration-300");function p(){var n=document.querySelector(".search_screen");return n&&!n.classList.contains("-translate-x-full")}function t(){$(".search_screen").addClass("-translate-x-full"),$("body").removeClass("overflow-hidden"),$(".toggle_search").first().trigger("focus")}$(".toggle_search").on("click",function(n){n.preventDefault(),$(".search_screen").removeClass("-translate-x-full"),$("body").addClass("overflow-hidden"),$(".search_screen input:visible:first").trigger("focus")}),$(".close_search_screen").on("click",t),$(document).on("keydown",function(n){var s=n.key===" "||n.key==="Spacebar";n.key!=="Escape"&&!s||p()&&(s&&$(n.target).is('input, textarea, select, [contenteditable="true"]')||(n.preventDefault(),t()))})});$(document).ready(function(){const p=$(".faq-list .faq-item");p[0]&&$(p).each((t,n)=>{$(n).find(".head").on("click",()=>{const s=$(`.faq-list .faq-item:not(:nth-child(${t+1}))`);$(s).removeClass("active"),$(s).find(".content").css({"max-height":"0px"}),$(n).hasClass("active")?$(n).find(".content").css({"max-height":"0px"}):$(n).find(".content").css({"max-height":$(n).find(".content")[0].scrollHeight+"px"}),$(n).toggleClass("active")})})});$(document).ready(function(){$(".faq .card").on("click",function(){var p=$(this).find(".content");$(this).find(".faq-arrow").toggleClass("-rotate-90"),p.slideToggle(300)})});$(document).ready(function(){$(".article_plusvalue").addClass("ease-in-out duration-300");function p(){return $(".article_plusvalue").filter(function(){return!this.classList.contains("-translate-x-full")})}function t(){$(".article_plusvalue").addClass("-translate-x-full"),$("body").removeClass("overflow-hidden"),$(".col_icons").removeClass("blur-sm op
53acity-50")}$(".value-link").on("click",function(){var n=$(this).attr("data-link");$(".col_icons").addClass("blur-sm opacity-50"),$(".article_plusvalue").addClass("-translate-x-full"),$('.article_plusvalue[data-link="'+n+'"]').removeClass("-translate-x-full"),$("body").addClass("overflow-hidden")}),$(".close_plusvalue").on("click",t),$(document).on("keydown",function(n){var s=n.key===" "||n.key==="Spacebar";n.key!=="Escape"&&!s||p().length&&(s&&$(n.target).is('input, textarea, select, [contenteditable="true"]')||(n.preventDefault(),t()))})});var oc={exports:{}};/* @preserve
54 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
55 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
56 */(function(p,t){(function(n,s){s(t)})(Yo,function(n){var s="1.9.4";function e(r){var u,f,y,E;for(f=1,y=arguments.length;f<y;f++){E=arguments[f];for(u in E)r[u]=E[u]}return r}var i=Object.create||function(){function r(){}return function(u){return r.prototype=u,new r}}();function o(r,u){var f=Array.prototype.slice;if(r.bind)return r.bind.apply(r,f.call(arguments,1));var y=f.call(arguments,2);return function(){return r.apply(u,y.length?y.concat(f.call(arguments)):arguments)}}var a=0;function l(r){return"_leaflet_id"in r||(r._leaflet_id=++a),r._leaflet_id}function c(r,u,f){var y,E,D,H;return H=function(){y=!1,E&&(D.apply(f,E),E=!1)},D=function(){y?E=arguments:(r.apply(f,arguments),setTimeout(H,u),y=!0)},D}function h(r,u,f){var y=u[1],E=u[0],D=y-E;return r===y&&f?r:((r-E)%D+D)%D+E}function g(){return!1}function m(r,u){if(u===!1)return r;var f=Math.pow(10,u===void 0?6:u);return Math.round(r*f)/f}function v(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function x(r){return v(r).split(/\s+/)}function C(r,u){Object.prototype.hasOwnProperty.call(r,"options")||(r.options=r.options?i(r.options):{});for(var f in u)r.options[f]=u[f];return r.options}function k(r,u,f){var y=[];for(var E in r)y.push(encodeURIComponent(f?E.toUpperCase():E)+"="+encodeURIComponent(r[E]));return(!u||u.indexOf("?")===-1?"?":"&")+y.join("&")}var S=/\{ *([\w_ -]+) *\}/g;function A(r,u){return r.replace(S,function(f,y){var E=u[y];if(E===void 0)throw new Error("No value provided for variable "+f);return typeof E=="function"&&(E=E(u)),E})}var z=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};function R(r,u){for(var f=0;f<r.length;f++)if(r[f]===u)return f;return-1}var W="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Y(r){return window["webkit"+r]||window["moz"+r]||window["ms"+r]}var b=0;function rt(r){var u=+new Date,f=Math.max(0,16-(u-b));return b=u+f,window.setTimeout(r,f)}var J=window.requestAnimationFrame||Y("RequestAnimationFrame")||rt,at=window.cancelAnimationFrame||Y("CancelAnimationFrame")||Y("CancelRequestAnimationFrame")||function(r){window.clearTimeout(r)};function St(r,u,f){if(f&&J===rt)r.call(u);else return J.call(window,o(r,u))}function ut(r){r&&at.call(window,r)}var q={__proto__:null,extend:e,create:i,bind:o,get lastId(){return a},stamp:l,throttle:c,wrapNum:h,falseFn:g,formatNum:m,trim:v,splitWords:x,setOptions:C,getParamString:k,template:A,isArray:z,indexOf:R,emptyImageUrl:W,requestFn:J,cancelFn:at,requestAnimFrame:St,cancelAnimFrame:ut};function st(){}st.extend=function(r){var u=function(){C(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},f=u.__super__=this.prototype,y=i(f);y.constructor=u,u.prototype=y;for(var E in this)Object.prototype.hasOwnProperty.call(this,E)&&E!=="prototype"&&E!=="__super__"&&(u[E]=this[E]);return r.statics&&e(u,r.statics),r.includes&&(mt(r.includes),e.apply(null,[y].concat(r.includes))),e(y,r),delete y.statics,delete y.includes,y.options&&(y.options=f.options?i(f.options):{},e(y.options,r.options)),y._initHooks=[],y.callInitHooks=function(){if(!this._initHooksCalled){f.callInitHooks&&f.callInitHooks.call(this),this._initHooksCalled=!0;for(var D=0,H=y._initHooks.length;D<H;D++)y._initHooks[D].call(this)}},u},st.include=function(r){var u=this.prototype.options;return e(this.prototype,r),r.options&&(this.prototype.options=u,this.mergeOptions(r.options)),this},st.mergeOptions=function(r){return e(this.prototype.options,r),this},st.addInitHook=function(r){var u=Array.prototype.slice.call(arguments,1
56),f=typeof r=="function"?r:function(){this[r].apply(this,u)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(f),this};function mt(r){if(!(typeof L=="undefined"||!L||!L.Mixin)){r=z(r)?r:[r];for(var u=0;u<r.length;u++)r[u]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var xt={on:function(r,u,f){if(typeof r=="object")for(var y in r)this._on(y,r[y],u);else{r=x(r);for(var E=0,D=r.length;E<D;E++)this._on(r[E],u,f)}return this},off:function(r,u,f){if(!arguments.length)delete this._events;else if(typeof r=="object")for(var y in r)this._off(y,r[y],u);else{r=x(r);for(var E=arguments.length===1,D=0,H=r.length;D<H;D++)E?this._off(r[D]):this._off(r[D],u,f)}return this},_on:function(r,u,f,y){if(typeof u!="function"){console.warn("wrong listener type: "+typeof u);return}if(this._listens(r,u,f)===!1){f===this&&(f=void 0);var E={fn:u,ctx:f};y&&(E.once=!0),this._events=this._events||{},this._events[r]=this._events[r]||[],this._events[r].push(E)}},_off:function(r,u,f){var y,E,D;if(this._events&&(y=this._events[r],!!y)){if(arguments.length===1){if(this._firingCount)for(E=0,D=y.length;E<D;E++)y[E].fn=g;delete this._events[r];return}if(typeof u!="function"){console.warn("wrong listener type: "+typeof u);return}var H=this._listens(r,u,f);if(H!==!1){var U=y[H];this._firingCount&&(U.fn=g,this._events[r]=y=y.slice()),y.splice(H,1)}}},fire:function(r,u,f){if(!this.listens(r,f))return this;var y=e({},u,{type:r,target:this,sourceTarget:u&&u.sourceTarget||this});if(this._events){var E=this._events[r];if(E){this._firingCount=this._firingCount+1||1;for(var D=0,H=E.length;D<H;D++){var U=E[D],K=U.fn;U.once&&this.off(r,K,U.ctx),K.call(U.ctx||this,y)}this._firingCount--}}return f&&this._propagateEvent(y),this},listens:function(r,u,f,y){typeof r!="string"&&console.warn('"string" type argument expected');var E=u;typeof u!="function"&&(y=!!u,E=void 0,f=void 0);var D=this._events&&this._events[r];if(D&&D.length&&this._listens(r,E,f)!==!1)return!0;if(y){for(var H in this._eventParents)if(this._eventParents[H].listens(r,u,f,y))return!0}return!1},_listens:function(r,u,f){if(!this._events)return!1;var y=this._events[r]||[];if(!u)return!!y.length;f===this&&(f=void 0);for(var E=0,D=y.length;E<D;E++)if(y[E].fn===u&&y[E].ctx===f)return E;return!1},once:function(r,u,f){if(typeof r=="object")for(var y in r)this._on(y,r[y],u,!0);else{r=x(r);for(var E=0,D=r.length;E<D;E++)this._on(r[E],u,f,!0)}return this},addEventParent:function(r){return this._eventParents=this._eventParents||{},this._eventParents[l(r)]=r,this},removeEventParent:function(r){return this._eventParents&&delete this._eventParents[l(r)],this},_propagateEvent:function(r){for(var u in this._eventParents)this._eventParents[u].fire(r.type,e({layer:r.target,propagatedFrom:r.target},r),!0)}};xt.addEventListener=xt.on,xt.removeEventListener=xt.clearAllEventListeners=xt.off,xt.addOneTimeEventListener=xt.once,xt.fireEvent=xt.fire,xt.hasEventListeners=xt.listens;var ht=st.extend(xt);function ot(r,u,f){this.x=f?Math.round(r):r,this.y=f?Math.round(u):u}var Nt=Math.trunc||function(r){return r>0?Math.floor(r):Math.ceil(r)};ot.prototype={clone:function(){return new ot(this.x,this.y)},add:function(r){return this.clone()._add(B(r))},_add:function(r){return this.x+=r.x,this.y+=r.y,this},subtract:function(r){return this.clone()._subtract(B(r))},_subtract:function(r){return this.x-=r.x,this.y-=r.y,this},divideBy:function(r){return this.clone()._divideBy(r)},_divideBy:function(r){return this.x/=r,this.y/=r,this},multiplyBy:function(r){return this.clone()._multiplyBy(r)},_multiplyBy:function(r){return this.x*=r,this.y*=r,this},scaleBy:function(r){return new ot(this.x*r.x,this.y*r.y)},unscaleBy:function(r){return new ot(this.x/r.x,this.y/r.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Nt(this.x),this.y=Nt(this.y),this},distanceTo:function(r){r=B(r);var u=r.x-this.x,f=r.y-this.y;return Math.sqrt(u*u+f*f)},equals:function(r){return r=B(r),r.x===this.x&&r.y===this.y},contains:function(r){return r=B(r),Math.abs(r.x)<=Math.abs(this.x)&&Math.abs(r.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function B(r,u,f){return r instanceof ot?r:z(r)?new ot(r[0],r[1]):r==null?r:typeof r=="object"&&"x"in r&&"y"in r?new ot(r.x,r.y):new ot(r,u,f)}function Lt(r,u){if(r)for(var f=u?[r,u]:r,y=0,E=f.length;y<E;y++)this.extend(f[y])}Lt.prototype={extend:function(r){var u,f;if(!r)return this;if(r instanceof ot||typeof r[0]=="number"||"x"in r)u=f=B(r);else if(r=Q(r),u=r.min,f=r.max,!u||!f)return this;return!this.min&&!this.max?(this.min=u.clone(),this.max=f.clone()):(this.min.x=Math.min(u.x,this.min.x),this.max.x=Math.max(f.x,this.max.x),this.min.y=Math.min(u.y,this.min.y),this.max.y=Math.max(f.y,this.max.y)),this},getCenter:function(r){return B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,r)},getBottomLeft:function(){return B(this.min.x,this.max.y)},getTopRight:function(){return B(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(r){var u,f;return typeof r[0]=="number"||r instanceof ot?r=B(r):r=Q(r),r instanceof Lt?(u=r.min,f=r.max):u=f=r,u.x>=this.min.x&&f.x<=this.max.x&&u.y>=this.min.y&&f.y<=this.max.y},intersects:function(r){r=Q(r);var u=this.min,f=this.max,y=r.min,E=r.max,D=E.x>=u.x&&y.x<=f.x,H=E.y>=u.y&&y.y<=f.y;return D&&H},overlaps:function(r){r=Q(r);var u=this.min,f=this.max,y=r.min,E=r.max,D=E.x>u.x&&y.x<f.x,H=E.y>u.y&&y.y<f.y;return D&&H},isValid:function(){return!!(this.min&&this.max)},pad:function(r){var u=this.min,f=this.max,y=Math.abs(u.x-f.x)*r,E=Math.abs(u.y-f.y)*r;return Q(B(u.x-y,u.y-E),B(f.x+y,f.y+E))},equals:function(r){return r?(r=Q(r),this.min.equals(r.getTopLeft())&&this.max.equals(r.getBottomRight())):!1}};function Q(r,u){return!r||r instanceof Lt?r:new Lt(r,u)}function yt(r,u){if(r)for(var f=u?[r,u]:r,y=0,E=f.length;y<E;y++)this.extend(f[y])}yt.prototype={extend:function(r){var u=this._southWest,f=this._northEast,y,E;if(r instanceof dt)y=r,E=r;else if(r instanceof yt){if(y=r._southWest,E=r._northEast,!y||!E)return this}else return r?this.extend(_t(r)||pt(r)):this;return!u&&!f?(this._southWest=new dt(y.lat,y.lng),this._northEast=new dt(E.lat,E.lng)):(u.lat=Math.min(y.lat,u.lat),u.lng=Math.min(y.lng,u.lng),f.lat=Math.max(E.lat,f.lat),f.lng=Math.max(E.lng,f.lng)),this},pad:function(r){var u=this._southWest,f=this._northEast,y=Math.abs(u.lat-f.lat)*r,E=Math.abs(u.lng-f.lng)*r;return new yt(new dt(u.lat-y,u.lng-E),new dt(f.lat+y,f.lng+E))},getCenter:function(){return new dt((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new dt(this.getNorth(),this.getWest())},getSouthEast:function(){return new dt(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
56,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(r){typeof r[0]=="number"||r instanceof dt||"lat"in r?r=_t(r):r=pt(r);var u=this._southWest,f=this._northEast,y,E;return r instanceof yt?(y=r.getSouthWest(),E=r.getNorthEast()):y=E=r,y.lat>=u.lat&&E.lat<=f.lat&&y.lng>=u.lng&&E.lng<=f.lng},intersects:function(r){r=pt(r);var u=this._southWest,f=this._northEast,y=r.getSouthWest(),E=r.getNorthEast(),D=E.lat>=u.lat&&y.lat<=f.lat,H=E.lng>=u.lng&&y.lng<=f.lng;return D&&H},overlaps:function(r){r=pt(r);var u=this._southWest,f=this._northEast,y=r.getSouthWest(),E=r.getNorthEast(),D=E.lat>u.lat&&y.lat<f.lat,H=E.lng>u.lng&&y.lng<f.lng;return D&&H},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(r,u){return r?(r=pt(r),this._southWest.equals(r.getSouthWest(),u)&&this._northEast.equals(r.getNorthEast(),u)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function pt(r,u){return r instanceof yt?r:new yt(r,u)}function dt(r,u,f){if(isNaN(r)||isNaN(u))throw new Error("Invalid LatLng object: ("+r+", "+u+")");this.lat=+r,this.lng=+u,f!==void 0&&(this.alt=+f)}dt.prototype={equals:function(r,u){if(!r)return!1;r=_t(r);var f=Math.max(Math.abs(this.lat-r.lat),Math.abs(this.lng-r.lng));return f<=(u===void 0?1e-9:u)},toString:function(r){return"LatLng("+m(this.lat,r)+", "+m(this.lng,r)+")"},distanceTo:function(r){return se.distance(this,_t(r))},wrap:function(){return se.wrapLatLng(this)},toBounds:function(r){var u=180*r/40075017,f=u/Math.cos(Math.PI/180*this.lat);return pt([this.lat-u,this.lng-f],[this.lat+u,this.lng+f])},clone:function(){return new dt(this.lat,this.lng,this.alt)}};function _t(r,u,f){return r instanceof dt?r:z(r)&&typeof r[0]!="object"?r.length===3?new dt(r[0],r[1],r[2]):r.length===2?new dt(r[0],r[1]):null:r==null?r:typeof r=="object"&&"lat"in r?new dt(r.lat,"lng"in r?r.lng:r.lon,r.alt):u===void 0?null:new dt(r,u,f)}var At={latLngToPoint:function(r,u){var f=this.projection.project(r),y=this.scale(u);return this.transformation._transform(f,y)},pointToLatLng:function(r,u){var f=this.scale(u),y=this.transformation.untransform(r,f);return this.projection.unproject(y)},project:function(r){return this.projection.project(r)},unproject:function(r){return this.projection.unproject(r)},scale:function(r){return 256*Math.pow(2,r)},zoom:function(r){return Math.log(r/256)/Math.LN2},getProjectedBounds:function(r){if(this.infinite)return null;var u=this.projection.bounds,f=this.scale(r),y=this.transformation.transform(u.min,f),E=this.transformation.transform(u.max,f);return new Lt(y,E)},infinite:!1,wrapLatLng:function(r){var u=this.wrapLng?h(r.lng,this.wrapLng,!0):r.lng,f=this.wrapLat?h(r.lat,this.wrapLat,!0):r.lat,y=r.alt;return new dt(f,u,y)},wrapLatLngBounds:function(r){var u=r.getCenter(),f=this.wrapLatLng(u),y=u.lat-f.lat,E=u.lng-f.lng;if(y===0&&E===0)return r;
56var D=r.getSouthWest(),H=r.getNorthEast(),U=new dt(D.lat-y,D.lng-E),K=new dt(H.lat-y,H.lng-E);return new yt(U,K)}},se=e({},At,{wrapLng:[-180,180],R:6371e3,distance:function(r,u){var f=Math.PI/180,y=r.lat*f,E=u.lat*f,D=Math.sin((u.lat-r.lat)*f/2),H=Math.sin((u.lng-r.lng)*f/2),U=D*D+Math.cos(y)*Math.cos(E)*H*H,K=2*Math.atan2(Math.sqrt(U),Math.sqrt(1-U));return this.R*K}}),me=6378137,Oe={R:me,MAX_LATITUDE:85.0511287798,project:function(r){var u=Math.PI/180,f=this.MAX_LATITUDE,y=Math.max(Math.min(f,r.lat),-f),E=Math.sin(y*u);return new ot(this.R*r.lng*u,this.R*Math.log((1+E)/(1-E))/2)},unproject:function(r){var u=180/Math.PI;return new dt((2*Math.atan(Math.exp(r.y/this.R))-Math.PI/2)*u,r.x*u/this.R)},bounds:function(){var r=me*Math.PI;return new Lt([-r,-r],[r,r])}()};function Ne(r,u,f,y){if(z(r)){this._a=r[0],this._b=r[1],this._c=r[2],this._d=r[3];return}this._a=r,this._b=u,this._c=f,this._d=y}Ne.prototype={transform:function(r,u){return this._transform(r.clone(),u)},_transform:function(r,u){return u=u||1,r.x=u*(this._a*r.x+this._b),r.y=u*(this._c*r.y+this._d),r},untransform:function(r,u){return u=u||1,new ot((r.x/u-this._b)/this._a,(r.y/u-this._d)/this._c)}};function Ie(r,u,f,y){return new Ne(r,u,f,y)}var Ut=e({},se,{code:"EPSG:3857",projection:Oe,transformation:function(){var r=.5/(Math.PI*Oe.R);return Ie(r,.5,-r,.5)}()}),Se=e({},Ut,{code:"EPSG:900913"});function gi(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function si(r,u){var f="",y,E,D,H,U,K;for(y=0,D=r.length;y<D;y++){for(U=r[y],E=0,H=U.length;E<H;E++)K=U[E],f+=(E?"L":"M")+K.x+" "+K.y;f+=u?bt.svg?"z":"x":""}return f||"M0 0"}var et=document.documentElement.style,be="ActiveXObject"in window,Cn=be&&!document.addEventListener,Tn="msLaunchUri"in navigator&&!("documentMode"in document),Ee=Ot("webkit"),Ue=Ot("android"),zi=Ot("android 2")||Ot("android 3"),ln=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),vt=Ue&&Ot("Google")&&ln<537&&!("AudioNode"in window),xe=!!window.opera,Le=!Tn&&Ot("chrome"),Ii=Ot("gecko")&&!Ee&&!xe&&!be,$i=!Le&&Ot("safari"),Vi=Ot("phantom"),fr="OTransition"in et,we=navigator.platform.indexOf("Win")===0,Ai=be&&"transition"in et,oi="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!zi,Ri="MozPerspective"in et,Tr=!window.L_DISABLE_3D&&(Ai||oi||Ri)&&!fr&&!Vi,mi=typeof orientation!="undefined"||Ot("mobile"),Zn=mi&&Ee,Zt=mi&&oi,Wn=!window.PointerEvent&&window.MSPointerEvent,Je=!!(window.PointerEvent||Wn),ai="ontouchstart"in window||!!window.TouchEvent,Fi=!window.L_NO_TOUCH&&(ai||Je),Gn=mi&&xe,Qe=mi&&Ii,Pe=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,pr=function(){var r=!1;try{var u=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassiveEventSupport",g,u),window.removeEventListener("testPassiveEventSupport",g,u)}catch(f){}return r}(),jt=function(){return!!document.createElement("canvas").getContext}(),It=!!(document.createElementNS&&gi("svg").createSVGRect),oe=!!It&&function(){var r=document.createElement("div");return r.innerHTML="<svg/>",(r.firstChild&&r.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),gt=!It&&function(){try{var r=document.createElement("div");r.innerHTML='<v:shape adj="1"/>';var u=r.firstChild;return u.style.behavior="url(#default#VML)",u&&typeof u.adj=="object"}catch(f){return!1}}(),$t=navigator.platform.indexOf("Mac")===0,zt=navigator.platform.indexOf("Linux")===0;function Ot(r){return navigator.userAgent.toLowerCase().indexOf(r)>=0}var bt={ie:be,ielt9:Cn,edge:Tn,webkit:Ee,android:Ue,android23:zi,androidStock:vt,opera:xe,chrome:Le,gecko:Ii,safari:$i,phantom:Vi,opera12:fr,win:we,ie3d:Ai,webkit3d:oi,gecko3d:Ri,any3d:Tr,mobile:mi,mobileWebkit:Zn,mobileWebkit3d:Zt,msPointer:Wn,pointer:Je,touch:Fi,touchNative:ai,mobileOpera:Gn,mobileGecko:Qe,retina:Pe,passiveEvents:pr,canvas:jt,svg:It,vml:gt,inlineSvg:oe,mac:$t,linux:zt},Yt=bt.msPointer?"MSPointerDown":"pointerdown",ke=bt.msPointer?"MSPointerMove":"pointermove",Ve=bt.msPointer?"MSPointerUp":"pointerup",Ce=bt.msPointer?"MSPointerCancel":"pointercancel",_e={touchstart:Yt,touchmove:ke,touchend:Ve,touchcancel:Ce},de={touchstart:ti,touchmove:Yi,touchend:Yi,touchcancel:Yi},li={},fe=!1;function xi(r,u,f){return u==="touchstart"&&gr(),de[u]?(f=de[u].bind(this,f),r.addEventListener(_e[u],f,!1),f):(console.warn("wrong event specified:",u),g)}function Bi(r,u,f){if(!_e[u]){console.warn("wrong event specified:",u);return}r.removeEventListener(_e[u],f,!1)}function He(r){li[r.pointerId]=r}function $e(r){li[r.pointerId]&&(li[r.pointerId]=r)}function Ye(r){delete li[r.pointerId]}function gr(){fe||(document.addEventListener(Yt,He,!0),document.addEventListener(ke,$e,!0),document.addEventListener(Ve,Ye,!0),document.addEventListener(Ce,Ye,!0),fe=!0)}function Yi(r,u){if(u.pointerType!==(u.MSPOINTER_TYPE_MOUSE||"mouse")){u.touches=[];for(var f in li)u.touches.push(li[f]);u.changedTouches=[u],r(u)}}function ti(r,u){u.MSPOINTER_TYPE_TOUCH&&u.pointerType===u.MSPOINTER_TYPE_TOUCH&&ui(u),Yi(r,u)}function Re(r){var u={},f,y;for(y in r)f=r[y],u[y]=f&&f.bind?f.bind(r):f;return r=u,u.type="dblclick",u.detail=2,u.isTrusted=!1,u._simulated=!0,u}var Xi=200;function es(r,u){r.addEventListener("dblclick",u);var f=0,y;
56function E(D){if(D.detail!==1){y=D.detail;return}if(!(D.pointerType==="mouse"||D.sourceCapabilities&&!D.sourceCapabilities.firesTouchEvents)){var H=ra(D);if(!(H.some(function(K){return K instanceof HTMLLabelElement&&K.attributes.for})&&!H.some(function(K){return K instanceof HTMLInputElement||K instanceof HTMLSelectElement}))){var U=Date.now();U-f<=Xi?(y++,y===2&&u(Re(D))):y=1,f=U}}}return r.addEventListener("click",E),{dblclick:u,simDblclick:E}}function ho(r,u){r.removeEventListener("dblclick",u.dblclick),r.removeEventListener("click",u.simDblclick)}var Sn=po(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ci=po(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Sr=Ci==="webkitTransition"||Ci==="OTransition"?Ci+"End":"transitionend";function Er(r){return typeof r=="string"?document.getElementById(r):r}function un(r,u){var f=r.style[u]||r.currentStyle&&r.currentStyle[u];if((!f||f==="auto")&&document.defaultView){var y=document.defaultView.getComputedStyle(r,null);f=y?y[u]:null}return f==="auto"?null:f}function ae(r,u,f){var y=document.createElement(r);return y.className=u||"",f&&f.appendChild(y),y}function Me(r){var u=r.parentNode;u&&u.removeChild(r)}function _i(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function En(r){var u=r.parentNode;u&&u.lastChild!==r&&u.appendChild(r)}function mr(r){var u=r.parentNode;u&&u.firstChild!==r&&u.insertBefore(r,u.firstChild)}function Xo(r,u){if(r.classList!==void 0)return r.classList.contains(u);var f=Br(r);return f.length>0&&new RegExp("(^|\\s)"+u+"(\\s|$)").test(f)}function Wt(r,u){if(r.classList!==void 0)for(var f=x(u),y=0,E=f.length;y<E;y++)r.classList.add(f[y]);else if(!Xo(r,u)){var D=Br(r);fo(r,(D?D+" ":"")+u)}}function De(r,u){r.classList!==void 0?r.classList.remove(u):fo(r,v((" "+Br(r)+" ").replace(" "+u+" "," ")))}function fo(r,u){r.className.baseVal===void 0?r.className=u:r.className.baseVal=u}function Br(r){return r.correspondingElement&&(r=r.correspondingElement),r.className.baseVal===void 0?r.className:r.className.baseVal}function Ki(r,u){"opacity"in r.style?r.style.opacity=u:"filter"in r.style&&uu(r,u)}function uu(r,u){var f=!1,y="DXImageTransform.Microsoft.Alpha";try{f=r.filters.item(y)}catch(E){if(u===1)return}u=Math.round(u*100),f?(f.Enabled=u!==100,f.Opacity=u):r.style.filter+=" progid:"+y+"(opacity="+u+")"}function po(r){for(var u=document.documentElement.style,f=0;f<r.length;f++)if(r[f]in u)return r[f];return!1}function vi(r,u,f){var y=u||new ot(0,0);r.style[Sn]=(bt.ie3d?"translate("+y.x+"px,"+y.y+"px)":"translate3d("+y.x+"px,"+y.y+"px,0)")+(f?" scale("+f+")":"")}function je(r,u){r._leaflet_pos=u,bt.any3d?vi(r,u):(r.style.left=u.x+"px",r.style.top=u.y+"px")}function Ln(r){return r._leaflet_pos||new ot(0,0)}var Ts,Ss,_r;if("onselectstart"in document)Ts=function(){qt(window,"selectstart",ui)},Ss=function(){ve(window,"selectstart",ui)};else{var Pn=po(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ts=function(){if(Pn){var r=document.documentElement.style;_r=r[Pn],r[Pn]="none"}},Ss=function(){Pn&&(document.documentElement.style[Pn]=_r,_r=void 0)}}function Es(){qt(window,"dragstart",ui)}function Ko(){ve(window,"dragstart",ui)}var Lr,go;function Ls(r){for(;r.tabIndex===-1;)r=r.parentNode;r.style&&(Ps(),Lr=r,go=r.style.outlineStyle,r.style.outlineStyle="none",qt(window,"keydown",Ps))}function Ps(){Lr&&(Lr.style.outlineStyle=go,Lr=void 0,go=void 0,ve(window,"keydown",Ps))}function Jo(r){do r=r.parentNode;while((!r.offsetWidth||!r.offsetHeight)&&r!==document.body);return r}function Qo(r){var u=r.getBoundingClientRect();return{x:u.width/r.offsetWidth||1,y:u.height/r.offsetHeight||1,boundingClientRect:u}}var Xa={__proto__:null,TRANSFORM:Sn,TRANSITION:Ci,TRANSITION_END:Sr,get:Er,getStyle:un,create:ae,remove:Me,empty:_i,toFront:En,toBack:mr,hasClass:Xo,addClass:Wt,removeClass:De,setClass:fo,getClass:Br,setOpacity:Ki,testProp:po,setTransform:vi,setPosition:je,getPosition:Ln,get disableTextSelection(){return Ts},get enableTextSelection(){return Ss},disableImageDrag:Es,enableImageDrag:Ko,preventOutline:Ls,restoreOutline:Ps,getSizedParentNode:Jo,getScale:Qo};function qt(r,u,f,y){if(u&&typeof u=="object")for(var E in u)ea(r,E,u[E],f);else{u=x(u);for(var D=0,H=u.length;D<H;D++)ea(r,u[D],f,y)}return this}var Un="_leaflet_events";function ve(r,u,f,y){if(arguments.length===1)Ka(r),delete r[Un];else if(u&&typeof u=="object")for(var E in u)ia(r,E,u[E],f);else if(u=x(u),arguments.length===2)Ka(r,function(U){return R(u,U)!==-1});else for(var D=0,H=u.length;D<H;D++)ia(r,u[D],f,y);return this}function Ka(r,u){for(var f in r[Un]){var y=f.split(/\d/)[0];(!u||u(y))&&ia(r,y,null,null,f)}}
vendor: 4,185 bytes, line 56
56var ta={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ea(r,u,f,y){var E=u+l(f)+(y?"_"+l(y):"");if(r[Un]&&r[Un][E])return this;var D=function(U){return f.call(y||r,U||window.event)},H=D;!bt.touchNative&&bt.pointer&&u.indexOf("touch")===0?D=xi(r,u,D):bt.touch&&u==="dblclick"?D=es(r,D):"addEventListener"in r?u==="touchstart"||u==="touchmove"||u==="wheel"||u==="mousewheel"?r.addEventListener(ta[u]||u,D,bt.passiveEvents?{passive:!1}:!1):u==="mouseenter"||u==="mouseleave"?(D=function(U){U=U||window.event,Ms(r,U)&&H(U)},r.addEventListener(ta[u],D,!1)):r.addEventListener(u,H,!1):r.attachEvent("on"+u,D),r[Un]=r[Un]||{},r[Un][E]=D}function ia(r,u,f,y,E){E=E||u+l(f)+(y?"_"+l(y):"");var D=r[Un]&&r[Un][E];if(!D)return this;!bt.touchNative&&bt.pointer&&u.indexOf("touch")===0?Bi(r,u,D):bt.touch&&u==="dblclick"?ho(r,D):"removeEventListener"in r?r.removeEventListener(ta[u]||u,D,!1):r.detachEvent("on"+u,D),r[Un][E]=null}function Nr(r){return r.stopPropagation?r.stopPropagation():r.originalEvent?r.originalEvent._stopped=!0:r.cancelBubble=!0,this}function na(r){return ea(r,"wheel",Nr),this}function ks(r){return qt(r,"mousedown touchstart dblclick contextmenu",Nr),r._leaflet_disable_click=!0,this}function ui(r){return r.preventDefault?r.preventDefault():r.returnValue=!1,this}function vr(r){return ui(r),Nr(r),this}function ra(r){if(r.composedPath)return r.composedPath();for(var u=[],f=r.target;f;)u.push(f),f=f.parentNode;return u}function mo(r,u){if(!u)return new ot(r.clientX,r.clientY);var f=Qo(u),y=f.boundingClientRect;return new ot((r.clientX-y.left)/f.x-u.clientLeft,(r.clientY-y.top)/f.y-u.clientTop)}var Ja=bt.linux&&bt.chrome?window.devicePixelRatio:bt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function sa(r){return bt.edge?r.wheelDeltaY/2:r.deltaY&&r.deltaMode===0?-r.deltaY/Ja:r.deltaY&&r.deltaMode===1?-r.deltaY*20:r.deltaY&&r.deltaMode===2?-r.deltaY*60:r.deltaX||r.deltaZ?0:r.wheelDelta?(r.wheelDeltaY||r.wheelDelta)/2:r.detail&&Math.abs(r.detail)<32765?-r.detail*20:r.detail?r.detail/-32765*60:0}function Ms(r,u){var f=u.relatedTarget;if(!f)return!0;try{for(;f&&f!==r;)f=f.parentNode}catch(y){return!1}return f!==r}var cu={__proto__:null,on:qt,off:ve,stopPropagation:Nr,disableScrollPropagation:na,disableClickPropagation:ks,preventDefault:ui,stop:vr,getPropagationPath:ra,getMousePosition:mo,getWheelDelta:sa,isExternalTarget:Ms,addListener:qt,removeListener:ve},Qa=ht.extend({run:function(r,u,f,y){this.stop(),this._el=r,this._inProgress=!0,this._duration=f||.25,this._easeOutPower=1/Math.max(y||.5,.2),this._startPos=Ln(r),this._offset=u.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=St(this._animate,this),this._step()},_step:function(r){var u=+new Date-this._startTime,f=this._duration*1e3;u<f?this._runFrame(this._easeOut(u/f),r):(this._runFrame(1),this._complete())},_runFrame:function(r,u){var f=this._startPos.add(this._offset.multiplyBy(r));u&&f._round(),je(this._el,f),this.fire("step")},_complete:function(){ut(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(r){return 1-Math.pow(1-r,this._easeOutPower)}}),le=ht.extend({options:{crs:Ut,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(r,u){u=C(this,u),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(r),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),u.maxBounds&&this.setMaxBounds(u.maxBounds),u.zoom!==void 0&&(this._zoom=this._limitZoom(u.zoom)),u.center&&u.zoom!==void 0&&this.setView(_t(u.center),u.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Ci&&bt.any3d&&!bt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),qt(this._proxy,Sr,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 14,664 bytes, line 56
56,setView:function(r,u,f){if(u=u===void 0?this._zoom:this._limitZoom(u),r=this._limitCenter(_t(r),u,this.options.maxBounds),f=f||{},this._stop(),this._loaded&&!f.reset&&f!==!0){f.animate!==void 0&&(f.zoom=e({animate:f.animate},f.zoom),f.pan=e({animate:f.animate,duration:f.duration},f.pan));var y=this._zoom!==u?this._tryAnimatedZoom&&this._tryAnimatedZoom(r,u,f.zoom):this._tryAnimatedPan(r,f.pan);if(y)return clearTimeout(this._sizeTimer),this}return this._resetView(r,u,f.pan&&f.pan.noMoveStart),this},setZoom:function(r,u){return this._loaded?this.setView(this.getCenter(),r,{zoom:u}):(this._zoom=r,this)},zoomIn:function(r,u){return r=r||(bt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+r,u)},zoomOut:function(r,u){return r=r||(bt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-r,u)},setZoomAround:function(r,u,f){var y=this.getZoomScale(u),E=this.getSize().divideBy(2),D=r instanceof ot?r:this.latLngToContainerPoint(r),H=D.subtract(E).multiplyBy(1-1/y),U=this.containerPointToLatLng(E.add(H));return this.setView(U,u,{zoom:f})},_getBoundsCenterZoom:function(r,u){u=u||{},r=r.getBounds?r.getBounds():pt(r);var f=B(u.paddingTopLeft||u.padding||[0,0]),y=B(u.paddingBottomRight||u.padding||[0,0]),E=this.getBoundsZoom(r,!1,f.add(y));if(E=typeof u.maxZoom=="number"?Math.min(u.maxZoom,E):E,E===1/0)return{center:r.getCenter(),zoom:E};var D=y.subtract(f).divideBy(2),H=this.project(r.getSouthWest(),E),U=this.project(r.getNorthEast(),E),K=this.unproject(H.add(U).divideBy(2).add(D),E);return{center:K,zoom:E}},fitBounds:function(r,u){if(r=pt(r),!r.isValid())throw new Error("Bounds are not valid.");var f=this._getBoundsCenterZoom(r,u);return this.setView(f.center,f.zoom,u)},fitWorld:function(r){return this.fitBounds([[-90,-180],[90,180]],r)},panTo:function(r,u){return this.setView(r,this._zoom,{pan:u})},panBy:function(r,u){if(r=B(r).round(),u=u||{},!r.x&&!r.y)return this.fire("moveend");if(u.animate!==!0&&!this.getSize().contains(r))return this._resetView(this.unproject(this.project(this.getCenter()).add(r)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Qa,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),u.noMoveStart||this.fire("movestart"),u.animate!==!1){Wt(this._mapPane,"leaflet-pan-anim");var f=this._getMapPanePos().subtract(r).round();this._panAnim.run(this._mapPane,f,u.duration||.25,u.easeLinearity)}else this._rawPanBy(r),this.fire("move").fire("moveend");return this},flyTo:function(r,u,f){if(f=f||{},f.animate===!1||!bt.any3d)return this.setView(r,u,f);this._stop();var y=this.project(this.getCenter()),E=this.project(r),D=this.getSize(),H=this._zoom;r=_t(r),u=u===void 0?H:u;var U=Math.max(D.x,D.y),K=U*this.getZoomScale(H,u),lt=E.distanceTo(y)||1,Et=1.42,Bt=Et*Et;function ee(ci){var sl=ci?-1:1,Cg=ci?K:U,Tg=K*K-U*U+sl*Bt*Bt*lt*lt,Sg=2*Cg*Bt*lt,fu=Tg/Sg,Th=Math.sqrt(fu*fu+1)-fu,Eg=Th<1e-9?-18:Math.log(Th);return Eg}function Ji(ci){return(Math.exp(ci)-Math.exp(-ci))/2}function Si(ci){return(Math.exp(ci)+Math.exp(-ci))/2}function er(ci){return Ji(ci)/Si(ci)}var pn=ee(0);function wo(ci){return U*(Si(pn)/Si(pn+Et*ci))}function yg(ci){return U*(Si(pn)*er(pn+Et*ci)-Ji(pn))/Bt}function bg(ci){return 1-Math.pow(1-ci,1.5)}var wg=Date.now(),xh=(ee(1)-pn)/Et,xg=f.duration?1e3*f.duration:1e3*xh*.8;function Ch(){var ci=(Date.now()-wg)/xg,sl=bg(ci)*xh;ci<=1?(this._flyToFrame=St(Ch,this),this._move(this.unproject(y.add(E.subtract(y).multiplyBy(yg(sl)/lt)),H),this.getScaleZoom(U/wo(sl),H),{flyTo:!0})):this._move(r,u)._moveEnd(!0)}return this._moveStart(!0,f.noMoveStart),Ch.call(this),this},flyToBounds:function(r,u){var f=this._getBoundsCenterZoom(r,u);return this.flyTo(f.center,f.zoom,u)},setMaxBounds:function(r){return r=pt(r),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),r.isValid()?(this.options.maxBounds=r,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(r){var u=this.options.minZoom;return this.options.minZoom=r,this._loaded&&u!==r&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(r):this},setMaxZoom:function(r){var u=this.options.maxZoom;return this.options.maxZoom=r,this._loaded&&u!==r&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(r):this},panInsideBounds:function(r,u){this._enforcingBounds=!0;var f=this.getCenter(),y=this._limitCenter(f,this._zoom,pt(r));return f.equals(y)||this.panTo(y,u),this._enforcingBounds=!1,this},panInside:function(r,u){u=u||{};var f=B(u.paddingTopLeft||u.padding||[0,0]),y=B(u.paddingBottomRight||u.padding||[0,0]),E=this.project(this.getCenter()),D=this.project(r),H=this.getPixelBounds(),U=Q([H.min.add(f),H.max.subtract(y)]),K=U.getSize();if(!U.contains(D)){this._enforcingBounds=!0;var lt=D.subtract(U.getCenter()),Et=U.extend(D).getSize().subtract(K);E.x+=lt.x<0?-Et.x:Et.x,E.y+=lt.y<0?-Et.y:Et.y,this.panTo(this.unproject(E),u),this._enforcingBounds=!1}return this},invalidateSize:function(r){if(!this._loaded)return this;r=e({animate:!1,pan:!0},r===!0?{animate:!0}:r);var u=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var f=this.getSize(),y=u.divideBy(2).round(),E=f.divideBy(2).round(),D=y.subtract(E);return!D.x&&!D.y?this:(r.animate&&r.pan?this.panBy(D):(r.pan&&this._rawPanBy(D),this.fire("move"),r.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:u,newSize:f}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(r){if(r=this._locateOptions=e({timeout:1e4,watch:!1},r),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var u=o(this._handleGeolocationResponse,this),f=o(this._handleGeolocationError,this);return r.watch?this._locationWatchId=navigator.geolocation.watchPosition(u,f,r):navigator.geolocation.getCurrentPosition(u,f,r),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(r){if(this._container._leaflet_id){var u=r.code,f=r.message||(u===1?"permission denied":u===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:u,message:"Geolocation error: "+f+"."})}},_handleGeolocationResponse:function(r){if(this._container._leaflet_id){var u=r.coords.latitude,f=r.coords.longitude,y=new dt(u,f),E=y.toBounds(r.coords.accuracy*2),D=this._locateOptions;if(D.setView){var H=this.getBoundsZoom(E);this.setView(y,D.maxZoom?Math.min(H,D.maxZoom):H)}var U={latlng:y,bounds:E,timestamp:r.timestamp};for(var K in r.coords)typeof r.coords[K]=="number"&&(U[K]=r.coords[K]);this.fire("locationfound",U)}},addHandler:function(r,u){if(!u)return this;var f=this[r]=new u(this);return this._handlers.push(f),this.options[r]&&f.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(u){this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Me(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ut(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var r;for(r in this._layers)this._layers[r].remove();for(r in this._panes)Me(this._panes[r]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(r,u){var f="leaflet-pane"+(r?" leaflet-"+r.replace("Pane","")+"-pane":""),y=ae("div",f,u||this._mapPane);return r&&(this._panes[r]=y),y},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var r=this.getPixelBounds(),u=this.unproject(r.getBottomLeft()),f=this.unproject(r.getTopRight());return new yt(u,f)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(r,u,f){r=pt(r),f=B(f||[0,0]);var y=this.getZoom()||0,E=this.getMinZoom(),D=this.getMaxZoom(),H=r.getNorthWest(),U=r.getSouthEast(),K=this.getSize().subtract(f),lt=Q(this.project(U,y),this.project(H,y)).getSize(),Et=bt.any3d?this.options.zoomSnap:1,Bt=K.x/lt.x,ee=K.y/lt.y,Ji=u?Math.max(Bt,ee):Math.min(Bt,ee);return y=this.getScaleZoom(Ji,y),Et&&(y=Math.round(y/(Et/100))*(Et/100),y=u?Math.ceil(y/Et)*Et:Math.floor(y/Et)*Et),Math.max(E,Math.min(D,y))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new ot(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(r,u){var f=this._getTopLeftPoint(r,u);return new Lt(f,f.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(r){return this.options.crs.getProjectedBounds(r===void 0?this.getZoom():r)},getPane:function(r){return typeof r=="string"?this._panes[r]:r},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(r,u){var f=this.options.crs;return u=u===void 0?this._zoom:u,f.scale(r)/f.scale(u)},getScaleZoom:function(r,u){var f=this.options.crs;u=u===void 0?this._zoom:u;var y=f.zoom(r*f.scale(u));return isNaN(y)?1/0:y},project:function(r,u){return u=u===void 0?this._zoom:u,this.options.crs.latLngToPoint(_t(r),u)},unproject:function(r,u){return u=u===void 0?this._zoom:u,this.options.crs.pointToLatLng(B(r),u)},layerPointToLatLng:function(r){var u=B(r).add(this.getPixelOrigin());return this.unproject(u)},latLngToLayerPoint:function(r){var u=this.project(_t(r))._round();return u._subtract(this.getPixelOrigin())},wrapLatLng:function(r){return this.options.crs.wrapLatLng(_t(r))},wrapLatLngBounds:function(r){return this.options.crs.wrapLatLngBounds(pt(r))},distance:function(r,u){return this.options.crs.distance(_t(r),_t(u))},containerPointToLayerPoint:function(r){return B(r).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(r){return B(r).add(this._getMapPanePos())},containerPointToLatLng:function(r){var u=this.containerPointToLayerPoint(B(r));return this.layerPointToLatLng(u)},latLngToContainerPoint:function(r){return this.layerPointToContainerPoint(this.latLngToLayerPoint(_t(r)))},mouseEventToContainerPoint:function(r){return mo(r,this._container)},mouseEventToLayerPoint:function(r){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(r))},mouseEventToLatLng:function(r){return this.layerPointToLatLng(this.mouseEventToLayerPoint(r))},_initContainer:function(r){var u=this._container=Er(r);if(u){if(u._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");qt(u,"scroll",this._onScroll,this),this._containerId=l(u)},_initLayout:function(){var r=this._container;this._fadeAnimated=this.options.fadeAnimation&&bt.any3d,Wt(r,"leaflet-container"+(bt.touch?" leaflet-touch":"")+(bt.retina?" leaflet-retina":"")+(bt.ielt9?" leaflet-oldie":"")+(bt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var u=un(r,"position");u!=="absolute"&&u!=="relative"&&u!=="fixed"&&u!=="sticky"&&(r.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var r=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),je(this._mapPane,new ot(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Wt(r.markerPane,"leaflet-zoom-hide"),Wt(r.shadowPane,"leaflet-zoom-hide"))},_resetView:function(r,u,f){je(this._mapPane,new ot(0,0));var y=!this._loaded;this._loaded=!0,u=this._limitZoom(u),this.fire("viewprereset");var E=this._zoom!==u;this._moveStart(E,f)._move(r,u)._moveEnd(E),this.fire("viewreset"),y&&this.fire("load")},_moveStart:function(r,u){return r&&this.fire("zoomstart"),u||this.fire("movestart"),this},_move:function(r,u,f,y){u===void 0&&(u=this._zoom);var E=this._zoom!==u;return this._zoom=u,this._lastCenter=r,this._pixelOrigin=this._getNewPixelOrigin(r),y?f&&f.pinch&&this.fire("zoom",f):((E||f&&f.pinch)&&this.fire("zoom",f),this.fire("move",f)),this},_moveEnd:function(r){return r&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ut(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(r){je(this._mapPane,this._getMapPanePos().subtract(r))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(r){this._targets={},this._targets[l(this._container)]=this;var u=r?ve:qt;u(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&u(window,"resize",this._onResize,this),bt.any3d&&this.options.transform3DLimit&&(r?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ut(this._resizeRequest),this._resizeRequest=St(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var r=this._getMapPanePos();Math.max(Math.abs(r.x),Math.abs(r.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(r,u){for(var f=[],y,E=u==="mouseout"||u==="mouseover",D=r.target||r.srcElement,H=!1;D;){if(y=this._targets[l(D)],y&&(u==="click"||u==="preclick")&&this._draggableMoved(y)){H=!0;break}if(y&&y.listens(u,!0)&&(E&&!Ms(D,r)||(f.push(y),E))||D===this._container)break;D=D.parentNode}return!f.length&&!H&&!E&&this.listens(u,!0)&&(f=[this]),f}
56,_isClickDisabled:function(r){for(;r&&r!==this._container;){if(r._leaflet_disable_click)return!0;r=r.parentNode}},_handleDOMEvent:function(r){var u=r.target||r.srcElement;if(!(!this._loaded||u._leaflet_disable_events||r.type==="click"&&this._isClickDisabled(u))){var f=r.type;f==="mousedown"&&Ls(u),this._fireDOMEvent(r,f)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(r,u,f){if(r.type==="click"){var y=e({},r);y.type="preclick",this._fireDOMEvent(y,y.type,f)}var E=this._findEventTargets(r,u);if(f){for(var D=[],H=0;H<f.length;H++)f[H].listens(u,!0)&&D.push(f[H]);E=D.concat(E)}if(E.length){u==="contextmenu"&&ui(r);var U=E[0],K={originalEvent:r};if(r.type!=="keypress"&&r.type!=="keydown"&&r.type!=="keyup"){var lt=U.getLatLng&&(!U._radius||U._radius<=10);K.containerPoint=lt?this.latLngToContainerPoint(U.getLatLng()):this.mouseEventToContainerPoint(r),K.layerPoint=this.containerPointToLayerPoint(K.containerPoint),K.latlng=lt?U.getLatLng():this.layerPointToLatLng(K.layerPoint)}for(H=0;H<E.length;H++)if(E[H].fire(u,K,!0),K.originalEvent._stopped||E[H].options.bubblingMouseEvents===!1&&R(this._mouseEvents,u)!==-1)return}},_draggableMoved:function(r){return r=r.dragging&&r.dragging.enabled()?r:this,r.dragging&&r.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var r=0,u=this._handlers.length;r<u;r++)this._handlers[r].disable()},whenReady:function(r,u){return this._loaded?r.call(u||this,{target:this}):this.on("load",r,u),this},_getMapPanePos:function(){return Ln(this._mapPane)||new ot(0,0)},_moved:function(){var r=this._getMapPanePos();return r&&!r.equals([0,0])},_getTopLeftPoint:function(r,u){var f=r&&u!==void 0?this._getNewPixelOrigin(r,u):this.getPixelOrigin();return f.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(r,u){var f=this.getSize()._divideBy(2);return this.project(r,u)._subtract(f)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(r,u,f){var y=this._getNewPixelOrigin(f,u);return this.project(r,u)._subtract(y)},_latLngBoundsToNewLayerBounds:function(r,u,f){var y=this._getNewPixelOrigin(f,u);
vendor: 14,311 bytes, line 56
56return Q([this.project(r.getSouthWest(),u)._subtract(y),this.project(r.getNorthWest(),u)._subtract(y),this.project(r.getSouthEast(),u)._subtract(y),this.project(r.getNorthEast(),u)._subtract(y)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(r){return this.latLngToLayerPoint(r).subtract(this._getCenterLayerPoint())},_limitCenter:function(r,u,f){if(!f)return r;var y=this.project(r,u),E=this.getSize().divideBy(2),D=new Lt(y.subtract(E),y.add(E)),H=this._getBoundsOffset(D,f,u);return Math.abs(H.x)<=1&&Math.abs(H.y)<=1?r:this.unproject(y.add(H),u)},_limitOffset:function(r,u){if(!u)return r;var f=this.getPixelBounds(),y=new Lt(f.min.add(r),f.max.add(r));return r.add(this._getBoundsOffset(y,u))},_getBoundsOffset:function(r,u,f){var y=Q(this.project(u.getNorthEast(),f),this.project(u.getSouthWest(),f)),E=y.min.subtract(r.min),D=y.max.subtract(r.max),H=this._rebound(E.x,-D.x),U=this._rebound(E.y,-D.y);return new ot(H,U)},_rebound:function(r,u){return r+u>0?Math.round(r-u)/2:Math.max(0,Math.ceil(r))-Math.max(0,Math.floor(u))},_limitZoom:function(r){var u=this.getMinZoom(),f=this.getMaxZoom(),y=bt.any3d?this.options.zoomSnap:1;return y&&(r=Math.round(r/y)*y),Math.max(u,Math.min(f,r))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){De(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(r,u){var f=this._getCenterOffset(r)._trunc();return(u&&u.animate)!==!0&&!this.getSize().contains(f)?!1:(this.panBy(f,u),!0)},_createAnimProxy:function(){var r=this._proxy=ae("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(r),this.on("zoomanim",function(u){var f=Sn,y=this._proxy.style[f];vi(this._proxy,this.project(u.center,u.zoom),this.getZoomScale(u.zoom,1)),y===this._proxy.style[f]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Me(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var r=this.getCenter(),u=this.getZoom();vi(this._proxy,this.project(r,u),this.getZoomScale(u,1))},_catchTransitionEnd:function(r){this._animatingZoom&&r.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(r,u,f){if(this._animatingZoom)return!0;if(f=f||{},!this._zoomAnimated||f.animate===!1||this._nothingToAnimate()||Math.abs(u-this._zoom)>this.options.zoomAnimationThreshold)return!1;var y=this.getZoomScale(u),E=this._getCenterOffset(r)._divideBy(1-1/y);return f.animate!==!0&&!this.getSize().contains(E)?!1:(St(function(){this._moveStart(!0,f.noMoveStart||!1)._animateZoom(r,u,!0)},this),!0)},_animateZoom:function(r,u,f,y){this._mapPane&&(f&&(this._animatingZoom=!0,this._animateToCenter=r,this._animateToZoom=u,Wt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:r,zoom:u,noUpdate:y}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&De(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function As(r,u){return new le(r,u)}var cn=st.extend({options:{position:"topright"},initialize:function(r){C(this,r)},getPosition:function(){return this.options.position},setPosition:function(r){var u=this._map;return u&&u.removeControl(this),this.options.position=r,u&&u.addControl(this),this},getContainer:function(){return this._container},addTo:function(r){this.remove(),this._map=r;var u=this._container=this.onAdd(r),f=this.getPosition(),y=r._controlCorners[f];return Wt(u,"leaflet-control"),f.indexOf("bottom")!==-1?y.insertBefore(u,y.firstChild):y.appendChild(u),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Me(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(r){this._map&&r&&r.screenX>0&&r.screenY>0&&this._map.getContainer().focus()}}),Hr=function(r){return new cn(r)};le.include({addControl:function(r){return r.addTo(this),this},removeControl:function(r){return r.remove(),this},_initControlPos:function(){var r=this._controlCorners={},u="leaflet-",f=this._controlContainer=ae("div",u+"control-container",this._container);function y(E,D){var H=u+E+" "+u+D;r[E+D]=ae("div",H,f)}y("top","left"),y("top","right"),y("bottom","left"),y("bottom","right")},_clearControlPos:function(){for(var r in this._controlCorners)Me(this._controlCorners[r]);Me(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var tl=cn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(r,u,f,y){return f<y?-1:y<f?1:0}},initialize:function(r,u,f){C(this,f),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var y in r)this._addLayer(r[y],y);for(y in u)this._addLayer(u[y],y,!0)},onAdd:function(r){this._initLayout(),this._update(),this._map=r,r.on("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(r){return cn.prototype.addTo.call(this,r),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var r=0;r<this._layers.length;r++)this._layers[r].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(r,u){return this._addLayer(r,u),this._map?this._update():this},addOverlay:function(r,u){return this._addLayer(r,u,!0),this._map?this._update():this},removeLayer:function(r){r.off("add remove",this._onLayerChange,this);var u=this._getLayer(l(r));return u&&this._layers.splice(this._layers.indexOf(u),1),this._map?this._update():this},expand:function(){Wt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var r=this._map.getSize().y-(this._container.offsetTop+50);return r<this._section.clientHeight?(Wt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=r+"px"):De(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return De(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var r="leaflet-control-layers",u=this._container=ae("div",r),f=this.options.collapsed;u.setAttribute("aria-haspopup",!0),ks(u),na(u);var y=this._section=ae("section",r+"-list");f&&(this._map.on("click",this.collapse,this),qt(u,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var E=this._layersLink=ae("a",r+"-toggle",u);E.href="#",E.title="Layers",E.setAttribute("role","button"),qt(E,{keydown:function(D){D.keyCode===13&&this._expandSafely()},click:function(D){ui(D),this._expandSafely()}},this),f||this.expand(),this._baseLayersList=ae("div",r+"-base",y),this._separator=ae("div",r+"-separator",y),this._overlaysList=ae("div",r+"-overlays",y),u.appendChild(y)},_getLayer:function(r){for(var u=0;u<this._layers.length;u++)if(this._layers[u]&&l(this._layers[u].layer)===r)return this._layers[u]},_addLayer:function(r,u,f){this._map&&r.on("add remove",this._onLayerChange,this),this._layers.push({layer:r,name:u,overlay:f}),this.options.sortLayers&&this._layers.sort(o(function(y,E){return this.options.sortFunction(y.layer,E.layer,y.name,E.name)},this)),this.options.autoZIndex&&r.setZIndex&&(this._lastZIndex++,r.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;_i(this._baseLayersList),_i(this._overlaysList),this._layerControlInputs=[];var r,u,f,y,E=0;for(f=0;f<this._layers.length;f++)y=this._layers[f],this._addItem(y),u=u||y.overlay,r=r||!y.overlay,E+=y.overlay?0:1;return this.options.hideSingleBase&&(r=r&&E>1,this._baseLayersList.style.display=r?"":"none"),this._separator.style.display=u&&r?"":"none",this},_onLayerChange:function(r){this._handlingClick||this._update();var u=this._getLayer(l(r.target)),f=u.overlay?r.type==="add"?"overlayadd":"overlayremove":r.type==="add"?"baselayerchange":null;f&&this._map.fire(f,u)},_createRadioElement:function(r,u){var f='<input type="radio" class="leaflet-control-layers-selector" name="'+r+'"'+(u?' checked="checked"':"")+"/>",y=document.createElement("div");return y.innerHTML=f,y.firstChild},_addItem:function(r){var u=document.createElement("label"),f=this._map.hasLayer(r.layer),y;r.overlay?(y=document.createElement("input"),y.type="checkbox",y.className="leaflet-control-layers-selector",y.defaultChecked=f):y=this._createRadioElement("leaflet-base-layers_"+l(this),f),this._layerControlInputs.push(y),y.layerId=l(r.layer),qt(y,"click",this._onInputClick,this);var E=document.createElement("span");E.innerHTML=" "+r.name;var D=document.createElement("span");u.appendChild(D),D.appendChild(y),D.appendChild(E);var H=r.overlay?this._overlaysList:this._baseLayersList;return H.appendChild(u),this._checkDisabledLayers(),u},_onInputClick:function(){if(!this._preventClick){var r=this._layerControlInputs,u,f,y=[],E=[];this._handlingClick=!0;for(var D=r.length-1;D>=0;D--)u=r[D],f=this._getLayer(u.layerId).layer,u.checked?y.push(f):u.checked||E.push(f);for(D=0;D<E.length;D++)this._map.hasLayer(E[D])&&this._map.removeLayer(E[D]);for(D=0;D<y.length;D++)this._map.hasLayer(y[D])||this._map.addLayer(y[D]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var r=this._layerControlInputs,u,f,y=this._map.getZoom(),E=r.length-1;E>=0;E--)u=r[E],f=this._getLayer(u.layerId).layer,u.disabled=f.options.minZoom!==void 0&&y<f.options.minZoom||f.options.maxZoom!==void 0&&y>f.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var r=this._section;this._preventClick=!0,qt(r,"click",ui),this.expand();var u=this;setTimeout(function(){ve(r,"click",ui),u._preventClick=!1})}}),hu=function(r,u,f){return new tl(r,u,f)},oa=cn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(r){var u="leaflet-control-zoom",f=ae("div",u+" leaflet-bar"),y=this.options;return this._zoomInButton=this._createButton(y.zoomInText,y.zoomInTitle,u+"-in",f,this._zoomIn),this._zoomOutButton=this._createButton(y.zoomOutText,y.zoomOutTitle,u+"-out",f,this._zoomOut),this._updateDisabled(),r.on("zoomend zoomlevelschange",this._updateDisabled,this),f},onRemove:function(r){r.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(r){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(r.shiftKey?3:1))},_zoomOut:function(r){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(r.shiftKey?3:1))},_createButton:function(r,u,f,y,E){var D=ae("a",f,y);return D.innerHTML=r,D.href="#",D.title=u,D.setAttribute("role","button"),D.setAttribute("aria-label",u),ks(D),qt(D,"click",vr),qt(D,"click",E,this),qt(D,"click",this._refocusOnMap,this),D},_updateDisabled:function(){var r=this._map,u="leaflet-disabled";De(this._zoomInButton,u),De(this._zoomOutButton,u),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||r._zoom===r.getMinZoom())&&(Wt(this._zoomOutButton,u),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||r._zoom===r.getMaxZoom())&&(Wt(this._zoomInButton,u),this._zoomInButton.setAttribute("aria-disabled","true"))}});le.mergeOptions({zoomControl:!0}),le.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new oa,this.addControl(this.zoomControl))});var d=function(r){return new oa(r)},_=cn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(r){var u="leaflet-control-scale",f=ae("div",u),y=this.options;return this._addScales(y,u+"-line",f),r.on(y.updateWhenIdle?"moveend":"move",this._update,this),r.whenReady(this._update,this),f},onRemove:function(r){r.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(r,u,f){r.metric&&(this._mScale=ae("div",u,f)),r.imperial&&(this._iScale=ae("div",u,f))},_update:function(){var r=this._map,u=r.getSize().y/2,f=r.distance(r.containerPointToLatLng([0,u]),r.containerPointToLatLng([this.options.maxWidth,u]));this._updateScales(f)},_updateScales:function(r){this.options.metric&&r&&this._updateMetric(r),this.options.imperial&&r&&this._updateImperial(r)},_updateMetric:function(r){var u=this._getRoundNum(r),f=u<1e3?u+" m":u/1e3+" km";this._updateScale(this._mScale,f,u/r)},_updateImperial:function(r){var u=r*3.2808399,f,y,E;u>5280?(f=u/5280,y=this._getRoundNum(f),this._updateScale(this._iScale,y+" mi",y/f)):(E=this._getRoundNum(u),this._updateScale(this._iScale,E+" ft",E/u))},_updateScale:function(r,u,f){r.style.width=Math.round(this.options.maxWidth*f)+"px",r.innerHTML=u},_getRoundNum:function(r){var u=Math.pow(10,(Math.floor(r)+"").length-1),f=r/u;return f=f>=10?10:f>=5?5:f>=3?3:f>=2?2:1,u*f}}),w=function(r){return new _(r)},T='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',P=cn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(bt.inlineSvg?T+" ":"")+"Leaflet</a>"},initialize:function(r){C(this,r),this._attributions={}}
56,onAdd:function(r){r.attributionControl=this,this._container=ae("div","leaflet-control-attribution"),ks(this._container);for(var u in r._layers)r._layers[u].getAttribution&&this.addAttribution(r._layers[u].getAttribution());return this._update(),r.on("layeradd",this._addAttribution,this),this._container},onRemove:function(r){r.off("layeradd",this._addAttribution,this)},_addAttribution:function(r){r.layer.getAttribution&&(this.addAttribution(r.layer.getAttribution()),r.layer.once("remove",function(){this.removeAttribution(r.layer.getAttribution())},this))},setPrefix:function(r){return this.options.prefix=r,this._update(),this},addAttribution:function(r){return r?(this._attributions[r]||(this._attributions[r]=0),this._attributions[r]++,this._update(),this):this},removeAttribution:function(r){return r?(this._attributions[r]&&(this._attributions[r]--,this._update()),this):this},_update:function(){if(this._map){var r=[];for(var u in this._attributions)this._attributions[u]&&r.push(u);var f=[];this.options.prefix&&f.push(this.options.prefix),r.length&&f.push(r.join(", ")),this._container.innerHTML=f.join(' <span aria-hidden="true">|</span> ')}}});le.mergeOptions({attributionControl:!0}),le.addInitHook(function(){this.options.attributionControl&&new P().addTo(this)});var M=function(r){return new P(r)};cn.Layers=tl,cn.Zoom=oa,cn.Scale=_,cn.Attribution=P,Hr.layers=hu,Hr.zoom=d,Hr.scale=w,Hr.attribution=M;var O=st.extend({initialize:function(r){this._map=r},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});O.addTo=function(r,u){return r.addHandler(u,this),this};var N={Events:xt},F=bt.touch?"touchstart mousedown":"mousedown",Z=ht.extend({options:{clickTolerance:3},initialize:function(r,u,f,y){C(this,y),this._element=r,this._dragStartTarget=u||r,this._preventOutline=f},enable:function(){this._enabled||(qt(this._dragStartTarget,F,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Z._dragging===this&&this.finishDrag(!0),ve(this._dragStartTarget,F,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(r){if(this._enabled&&(this._moved=!1,!Xo(this._element,"leaflet-zoom-anim"))){if(r.touches&&r.touches.length!==1){Z._dragging===this&&this.finishDrag();return}if(!(Z._dragging||r.shiftKey||r.which!==1&&r.button!==1&&!r.touches)&&(Z._dragging=this,this._preventOutline&&Ls(this._element),Es(),Ts(),!this._moving)){this.fire("down");var u=r.touches?r.touches[0]:r,f=Jo(this._element);this._startPoint=new ot(u.clientX,u.clientY),this._startPos=Ln(this._element),this._parentScale=Qo(f);var y=r.type==="mousedown";qt(document,y?"mousemove":"touchmove",this._onMove,this),qt(document,y?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(r){if(this._enabled){if(r.touches&&r.touches.length>1){this._moved=!0;return}var u=r.touches&&r.touches.length===1?r.touches[0]:r,f=new ot(u.clientX,u.clientY)._subtract(this._startPoint);!f.x&&!f.y||Math.abs(f.x)+Math.abs(f.y)<this.options.clickTolerance||(f.x/=this._parentScale.x,f.y/=this._parentScale.y,ui(r),this._moved||(this.fire("dragstart"),this._moved=!0,Wt(document.body,"leaflet-dragging"),this._lastTarget=r.target||r.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Wt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(f),this._moving=!0,this._lastEvent=r,this._updatePosition())}},_updatePosition:function(){var r={originalEvent:this._lastEvent};this.fire("predrag",r),je(this._element,this._newPos),this.fire("drag",r)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(r){De(document.body,"leaflet-dragging"),this._lastTarget&&(De(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ve(document,"mousemove touchmove",this._onMove,this),ve(document,"mouseup touchend touchcancel",this._onUp,this),Ko(),Ss();var u=this._moved&&this._moving;this._moving=!1,Z._dragging=!1,u&&this.fire("dragend",{noInertia:r,distance:this._newPos.distanceTo(this._startPos)})}});function tt(r,u,f){var y,E=[1,4,2,8],D,H,U,K,lt,Et,Bt,ee;for(D=0,Et=r.length;D<Et;D++)r[D]._code=Vt(r[D],u);for(U=0;U<4;U++){for(Bt=E[U],y=[],D=0,Et=r.length,H=Et-1;D<Et;H=D++)K=r[D],lt=r[H],K._code&Bt?lt._code&Bt||(ee=Yn(lt,K,Bt,u,f),ee._code=Vt(ee,u),y.push(ee)):(lt._code&Bt&&(ee=Yn(lt,K,Bt,u,f),ee._code=Vt(ee,u),y.push(ee)),y.push(K));r=y}return r}function nt(r,u){var f,y,E,D,H,U,K,lt,Et;if(!r||r.length===0)throw new Error("latlngs not passed");Ni(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var Bt=_t([0,0]),ee=pt(r),Ji=ee.getNorthWest().distanceTo(ee.getSouthWest
56())*ee.getNorthEast().distanceTo(ee.getNorthWest());Ji<1700&&(Bt=V(r));var Si=r.length,er=[];for(f=0;f<Si;f++){var pn=_t(r[f]);er.push(u.project(_t([pn.lat-Bt.lat,pn.lng-Bt.lng])))}for(U=K=lt=0,f=0,y=Si-1;f<Si;y=f++)E=er[f],D=er[y],H=E.y*D.x-D.y*E.x,K+=(E.x+D.x)*H,lt+=(E.y+D.y)*H,U+=H*3;U===0?Et=er[0]:Et=[K/U,lt/U];var wo=u.unproject(B(Et));return _t([wo.lat+Bt.lat,wo.lng+Bt.lng])}function V(r){for(var u=0,f=0,y=0,E=0;E<r.length;E++){var D=_t(r[E]);u+=D.lat,f+=D.lng,y++}return _t([u/y,f/y])}var ct={__proto__:null,clipPolygon:tt,polygonCenter:nt,centroid:V};function Ft(r,u){if(!u||!r.length)return r.slice();var f=u*u;return r=Vn(r,f),r=yi(r,f),r}function ne(r,u,f){return Math.sqrt(yr(r,u,f,!0))}function Gt(r,u,f){return yr(r,u,f)}function yi(r,u){var f=r.length,y=typeof Uint8Array!=void 0+""?Uint8Array:Array,E=new y(f);E[0]=E[f-1]=1,qe(r,E,u,0,f-1);var D,H=[];for(D=0;D<f;D++)E[D]&&H.push(r[D]);return H}function qe(r,u,f,y,E){var D=0,H,U,K;for(U=y+1;U<=E-1;U++)K=yr(r[U],r[y],r[E],!0),K>D&&(H=U,D=K);D>f&&(u[H]=1,qe(r,u,f,y,H),qe(r,u,f,H,E))}function Vn(r,u){for(var f=[r[0]],y=1,E=0,D=r.length;y<D;y++)Fe(r[y],r[E])>u&&(f.push(r[y]),E=y);return E<D-1&&f.push(r[D-1]),f}var kn;function Kt(r,u,f,y,E){var D=y?kn:Vt(r,f),H=Vt(u,f),U,K,lt;for(kn=H;;){if(!(D|H))return[r,u];if(D&H)return!1;U=D||H,K=Yn(r,u,U,f,E),lt=Vt(K,f),U===D?(r=K,D=lt):(u=K,H=lt)}}function Yn(r,u,f,y,E){var D=u.x-r.x,H=u.y-r.y,U=y.min,K=y.max,lt,Et;return f&8?(lt=r.x+D*(K.y-r.y)/H,Et=K.y):f&4?(lt=r.x+D*(U.y-r.y)/H,Et=U.y):f&2?(lt=K.x,Et=r.y+H*(K.x-r.x)/D):f&1&&(lt=U.x,Et=r.y+H*(U.x-r.x)/D),new ot(lt,Et,E)}function Vt(r,u){var f=0;return r.x<u.min.x?f|=1:r.x>u.max.x&&(f|=2),r.y<u.min.y?f|=4:r.y>u.max.y&&(f|=8),f}function Fe(r,u){var f=u.x-r.x,y=u.y-r.y;return f*f+y*y}function yr(r,u,f,y){var E=u.x,D=u.y,H=f.x-E,U=f.y-D,K=H*H+U*U,lt;return K>0&&(lt=((r.x-E)*H+(r.y-D)*U)/K,lt>1?(E=f.x,D=f.y):lt>0&&(E+=H*lt,D+=U*lt)),H=r.x-E,U=r.y-D,y?H*H+U*U:new ot(E,D)}function Ni(r){return!z(r[0])||typeof r[0][0]!="object"&&typeof r[0][0]!="undefined"}function Mn(r){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ni(r)}function is(r,u){var f,y,E,D,H,U,K,lt;if(!r||r.length===0)throw new Error("latlngs not passed");Ni(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var Et=_t([0,0]),Bt=pt(r),ee=Bt.getNorthWest().distanceTo(Bt.getSouthWest
vendor: 4,234 bytes, line 56
56())*Bt.getNorthEast().distanceTo(Bt.getNorthWest());ee<1700&&(Et=V(r));var Ji=r.length,Si=[];for(f=0;f<Ji;f++){var er=_t(r[f]);Si.push(u.project(_t([er.lat-Et.lat,er.lng-Et.lng])))}for(f=0,y=0;f<Ji-1;f++)y+=Si[f].distanceTo(Si[f+1])/2;if(y===0)lt=Si[0];else for(f=0,D=0;f<Ji-1;f++)if(H=Si[f],U=Si[f+1],E=H.distanceTo(U),D+=E,D>y){K=(D-y)/E,lt=[U.x-K*(U.x-H.x),U.y-K*(U.y-H.y)];break}var pn=u.unproject(B(lt));return _t([pn.lat+Et.lat,pn.lng+Et.lng])}var Xn={__proto__:null,simplify:Ft,pointToSegmentDistance:ne,closestPointOnSegment:Gt,clipSegment:Kt,_getEdgeIntersection:Yn,_getBitCode:Vt,_sqClosestPointOnSegment:yr,isFlat:Ni,_flat:Mn,polylineCenter:is},Kn={project:function(r){return new ot(r.lng,r.lat)},unproject:function(r){return new dt(r.y,r.x)},bounds:new Lt([-180,-90],[180,90])},Jn={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Lt([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(r){var u=Math.PI/180,f=this.R,y=r.lat*u,E=this.R_MINOR/f,D=Math.sqrt(1-E*E),H=D*Math.sin(y),U=Math.tan(Math.PI/4-y/2)/Math.pow((1-H)/(1+H),D/2);return y=-f*Math.log(Math.max(U,1e-10)),new ot(r.lng*u*f,y)},unproject:function(r){for(var u=180/Math.PI,f=this.R,y=this.R_MINOR/f,E=Math.sqrt(1-y*y),D=Math.exp(-r.y/f),H=Math.PI/2-2*Math.atan(D),U=0,K=.1,lt;U<15&&Math.abs(K)>1e-7;U++)lt=E*Math.sin(H),lt=Math.pow((1-lt)/(1+lt),E/2),K=Math.PI/2-2*Math.atan(D*lt)-H,H+=K;return new dt(H*u,r.x*u/f)}},hn={__proto__:null,LonLat:Kn,Mercator:Jn,SphericalMercator:Oe},aa=e({},se,{code:"EPSG:3395",projection:Jn,transformation:function(){var r=.5/(Math.PI*Jn.R);return Ie(r,.5,-r,.5)}()}),Qn=e({},se,{code:"EPSG:4326",projection:Kn,transformation:Ie(1/180,1,-1/180,.5)}),br=e({},At,{projection:Kn,transformation:Ie(1,0,-1,0),scale:function(r){return Math.pow(2,r)},zoom:function(r){return Math.log(r)/Math.LN2},distance:function(r,u){var f=u.lng-r.lng,y=u.lat-r.lat;return Math.sqrt(f*f+y*y)},infinite:!0});At.Earth=se,At.EPSG3395=aa,At.EPSG3857=Ut,At.EPSG900913=Se,At.EPSG4326=Qn,At.Simple=br;var An=ht.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(r){return r.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(r){return r&&r.removeLayer(this),this},getPane:function(r){return this._map.getPane(r?this.options[r]||r:this.options.pane)},addInteractiveTarget:function(r){return this._map._targets[l(r)]=this,this},removeInteractiveTarget:function(r){return delete this._map._targets[l(r)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(r){var u=r.target;if(u.hasLayer(this)){if(this._map=u,this._zoomAnimated=u._zoomAnimated,this.getEvents){var f=this.getEvents();u.on(f,this),this.once("remove",function(){u.off(f,this)},this)}this.onAdd(u),this.fire("add"),u.fire("layeradd",{layer:this})}}});le.include({addLayer:function(r){if(!r._layerAdd)throw new Error("The provided object is not a Layer.");var u=l(r);return this._layers[u]?this:(this._layers[u]=r,r._mapToAdd=this,r.beforeAdd&&r.beforeAdd(this),this.whenReady(r._layerAdd,r),this)},removeLayer:function(r){var u=l(r);return this._layers[u]?(this._loaded&&r.onRemove(this),delete this._layers[u],this._loaded&&(this.fire("layerremove",{layer:r}),r.fire("remove")),r._map=r._mapToAdd=null,this):this},hasLayer:function(r){return l(r)in this._layers},eachLayer:function(r,u){for(var f in this._layers)r.call(u,this._layers[f]);return this},_addLayers:function(r){r=r?z(r)?r:[r]:[];for(var u=0,f=r.length;u<f;u++)this.addLayer(r[u])},_addZoomLimit:function(r){(!isNaN(r.options.maxZoom)||!isNaN(r.options.minZoom))&&(this._zoomBoundLayers[l(r)]=r,this._updateZoomLevels())},_removeZoomLimit:function(r){var u=l(r);this._zoomBoundLayers[u]&&(delete this._zoomBoundLayers[u],this._updateZoomLevels())},_updateZoomLevels:function(){var r=1/0,u=-1/0,f=this._getZoomSpan();for(var y in this._zoomBoundLayers){var E=this._zoomBoundLayers[y].options;r=E.minZoom===void 0?r:Math.min(r,E.minZoom),u=E.maxZoom===void 0?u:Math.max(u,E.maxZoom)}this._layersMaxZoom=u===-1/0?void 0:u,this._layersMinZoom=r===1/0?void 0:r,f!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
vendor: 13,942 bytes, line 56
56om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ns=An.extend({initialize:function(r,u){C(this,u),this._layers={};var f,y;if(r)for(f=0,y=r.length;f<y;f++)this.addLayer(r[f])},addLayer:function(r){var u=this.getLayerId(r);return this._layers[u]=r,this._map&&this._map.addLayer(r),this},removeLayer:function(r){var u=r in this._layers?r:this.getLayerId(r);return this._map&&this._layers[u]&&this._map.removeLayer(this._layers[u]),delete this._layers[u],this},hasLayer:function(r){var u=typeof r=="number"?r:this.getLayerId(r);return u in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(r){var u=Array.prototype.slice.call(arguments,1),f,y;for(f in this._layers)y=this._layers[f],y[r]&&y[r].apply(y,u);return this},onAdd:function(r){this.eachLayer(r.addLayer,r)},onRemove:function(r){this.eachLayer(r.removeLayer,r)},eachLayer:function(r,u){for(var f in this._layers)r.call(u,this._layers[f]);return this},getLayer:function(r){return this._layers[r]},getLayers:function(){var r=[];return this.eachLayer(r.push,r),r},setZIndex:function(r){return this.invoke("setZIndex",r)},getLayerId:function(r){return l(r)}}),du=function(r,u){return new ns(r,u)},Jt=ns.extend({addLayer:function(r){return this.hasLayer(r)?this:(r.addEventParent(this),ns.prototype.addLayer.call(this,r),this.fire("layeradd",{layer:r}))},removeLayer:function(r){return this.hasLayer(r)?(r in this._layers&&(r=this._layers[r]),r.removeEventParent(this),ns.prototype.removeLayer.call(this,r),this.fire("layerremove",{layer:r})):this},setStyle:function(r){return this.invoke("setStyle",r)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var r=new yt;for(var u in this._layers){var f=this._layers[u];r.extend(f.getBounds?f.getBounds():f.getLatLng())}return r}}),_o=function(r,u){return new Jt(r,u)},Ti=st.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(r){C(this,r)},createIcon:function(r){return this._createIcon("icon",r)},createShadow:function(r){return this._createIcon("shadow",r)},_createIcon:function(r,u){var f=this._getIconUrl(r);if(!f){if(r==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var y=this._createImg(f,u&&u.tagName==="IMG"?u:null);return this._setIconStyles(y,r),(this.options.crossOrigin||this.options.crossOrigin==="")&&(y.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),y},_setIconStyles:function(r,u){var f=this.options,y=f[u+"Size"];typeof y=="number"&&(y=[y,y]);var E=B(y),D=B(u==="shadow"&&f.shadowAnchor||f.iconAnchor||E&&E.divideBy(2,!0));r.className="leaflet-marker-"+u+" "+(f.className||""),D&&(r.style.marginLeft=-D.x+"px",r.style.marginTop=-D.y+"px"),E&&(r.style.width=E.x+"px",r.style.height=E.y+"px")},_createImg:function(r,u){return u=u||document.createElement("img"),u.src=r,u},_getIconUrl:function(r){return bt.retina&&this.options[r+"RetinaUrl"]||this.options[r+"Url"]}});function rs(r){return new Ti(r)}var Os=Ti.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(r){return typeof Os.imagePath!="string"&&(Os.imagePath=this._detectIconPath()),(this.options.imagePath||Os.imagePath)+Ti.prototype._getIconUrl.call(this,r)},_stripUrl:function(r){var u=function(f,y,E){var D=y.exec(f);return D&&D[E]};return r=u(r,/^url\((['"])?(.+)\1\)$/,2),r&&u(r,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var r=ae("div","leaflet-default-icon-path",document.body),u=un(r,"background-image")||un(r,"backgroundImage");if(document.body.removeChild(r),u=this._stripUrl(u),u)return u;var f=document.querySelector('link[href$="leaflet.css"]');return f?f.href.substring(0,f.href.length-11-1):""}}),el=O.extend({initialize:function(r){this._marker=r},addHooks:function(){var r=this._marker._icon;this._draggable||(this._draggable=new Z(r,r,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Wt(r,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&De(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(r){var u=this._marker,f=u._map,y=this._marker.options.autoPanSpeed,E=this._marker.options.autoPanPadding,D=Ln(u._icon),H=f.getPixelBounds(),U=f.getPixelOrigin(),K=Q(H.min._subtract(U).add(E),H.max._subtract(U).subtract(E));if(!K.contains(D)){var lt=B((Math.max(K.max.x,D.x)-K.max.x)/(H.max.x-K.max.x)-(Math.min(K.min.x,D.x)-K.min.x)/(H.min.x-K.min.x),(Math.max(K.max.y,D.y)-K.max.y)/(H.max.y-K.max.y)-(Math.min(K.min.y,D.y)-K.min.y)/(H.min.y-K.min.y)).multiplyBy(y);f.panBy(lt,{animate:!1}),this._draggable._newPos._add(lt),this._draggable._startPos._add(lt),je(u._icon,this._draggable._newPos),this._onDrag(r),this._panRequest=St(this._adjustPan.bind(this,r))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(r){this._marker.options.autoPan&&(ut(this._panRequest),this._panRequest=St(this._adjustPan.bind(this,r)))},_onDrag:function(r){var u=this._marker,f=u._shadow,y=Ln(u._icon),E=u._map.layerPointToLatLng(y);f&&je(f,y),u._latlng=E,r.latlng=E,r.oldLatLng=this._oldLatLng,u.fire("move",r).fire("drag",r)},_onDragEnd:function(r){ut(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",r)}}),Ds=An.extend({options:{icon:new Os,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(r,u){C(this,u),this._latlng=_t(r)},onAdd:function(r){this._zoomAnimated=this._zoomAnimated&&r.options.markerZoomAnimation,this._zoomAnimated&&r.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(r){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&r.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(r){var u=this._latlng;return this._latlng=_t(r),this.update(),this.fire("move",{oldLatLng:u,latlng:this._latlng})},setZIndexOffset:function(r){return this.options.zIndexOffset=r,this.update()},getIcon:function(){return this.options.icon},setIcon:function(r){return this.options.icon=r,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var r=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(r)}return this},_initIcon:function(){var r=this.options,u="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),f=r.icon.createIcon(this._icon),y=!1;f!==this._icon&&(this._icon&&this._removeIcon(),y=!0,r.title&&(f.title=r.title),f.tagName==="IMG"&&(f.alt=r.alt||"")),Wt(f,u),r.keyboard&&(f.tabIndex="0",f.setAttribute("role","button")),this._icon=f,r.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&qt(f,"focus",this._panOnFocus,this);var E=r.icon.createShadow(this._shadow),D=!1;E!==this._shadow&&(this._removeShadow(),D=!0),E&&(Wt(E,u),E.alt=""),this._shadow=E,r.opacity<1&&this._updateOpacity(),y&&this.getPane().appendChild(this._icon),this._initInteraction(),E&&D&&this.getPane(r.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ve(this._icon,"focus",this._panOnFocus,this),Me(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Me(this._shadow),this._shadow=null},_setPos:function(r){this._icon&&je(this._icon,r),this._shadow&&je(this._shadow,r),this._zIndex=r.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(r){this._icon&&(this._icon.style.zIndex=this._zIndex+r)},_animateZoom:function(r){var u=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center).round();this._setPos(u)},_initInteraction:function(){if(this.options.interactive&&(Wt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),el)){var r=this.options.draggable;this.dragging&&(r=this.dragging.enabled(),this.dragging.disable()),this.dragging=new el(this),r&&this.dragging.enable()}},setOpacity:function(r){return this.options.opacity=r,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var r=this.options.opacity;this._icon&&Ki(this._icon,r),this._shadow&&Ki(this._shadow,r)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var r=this._map;if(r){var u=this.options.icon.options,f=u.iconSize?B(u.iconSize):B(0,0),y=u.iconAnchor?B(u.iconAnchor):B(0,0);r.panInside(this._latlng,{paddingTopLeft:y,paddingBottomRight:f.subtract(y)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function jr(r,u){return new Ds(r,u)}var tr=An.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(r){this._renderer=r.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(r){return C(this,r),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&r&&Object.prototype.hasOwnProperty.call(r,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),On=tr.extend({options:{fill:!0,radius:10},initialize:function(r,u){C(this,u),this._latlng=_t(r),this._radius=this.options.radius},setLatLng:function(r){var u=this._latlng;return this._latlng=_t(r),this.redraw(),this.fire("move",{oldLatLng:u,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(r){return this.options.radius=this._radius=r,this.redraw()},getRadius:function(){return this._radius},setStyle:function(r){var u=r&&r.radius||this._radius;return tr.prototype.setStyle.call(this,r),this.setRadius(u),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var r=this._radius,u=this._radiusY||r,f=this._clickTolerance(),y=[r+f,u+f];this._pxBounds=new Lt(this._point.subtract(y),this._point.add(y))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(r){return r.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function il(r,u){return new On(r,u)}var qr=On.extend({initialize:function(r,u,f){if(typeof u=="number"&&(u=e({},f,{radius:u})),C(this,u),this._latlng=_t(r),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(r){return this._mRadius=r,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var r=[this._radius,this._radiusY||this._radius];return new yt(this._map.layerPointToLatLng(this._point.subtract(r)),this._map.layerPointToLatLng(this._point.add(r)))},setStyle:tr.prototype.setStyle,_project:function(){var r=this._latlng.lng,u=this._latlng.lat,f=this._map,y=f.options.crs;if(y.distance===se.distance){var E=Math.PI/180,D=this._mRadius/se.R/E,H=f.project([u+D,r]),U=f.project([u-D,r]),K=H.add(U).divideBy(2),lt=f.unproject(K).lat,Et=Math.acos((Math.cos(D*E)-Math.sin(u*E)*Math.sin(lt*E))/(Math.cos(u*E)*Math.cos(lt*E)))/E;(isNaN(Et)||Et===0)&&(Et=D/Math.cos(Math.PI/180*u)),this._point=K.subtract(f.getPixelOrigin()),this._radius=isNaN(Et)?0:K.x-f.project([lt,r-Et]).x,this._radiusY=K.y-H.y}else{var Bt=y.unproject(y.project(this._latlng).subtract([this._mRadius,0]));this._point=f.latLngToLayerPoint(this._latlng),this._radius=this._point.x-f.latLngToLayerPoint(Bt).x}this._updateBounds()}});function vo(r,u,f){return new qr(r,u,f)}var dn=tr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(r,u){C(this,u),this._setLatLngs(r)},getLatLngs:function(){return this._latlngs},setLatLngs:function(r){return this._setLatLngs(r),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(r){for(var u=1/0,f=null,y=yr,E,D,H=0,U=this._parts.length;H<U;H++)for(var K=this._parts[H],lt=1,Et=K.length;lt<Et;lt++){E=K[lt-1],D=K[lt];var Bt=y(r,E,D,!0);Bt<u&&(u=Bt,f=y(r,E,D))}return f&&(f.distance=Math.sqrt(u)),f}
56,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return is(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(r,u){return u=u||this._defaultShape(),r=_t(r),u.push(r),this._bounds.extend(r),this.redraw()},_setLatLngs:function(r){this._bounds=new yt,this._latlngs=this._convertLatLngs(r)},_defaultShape:function(){return Ni(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(r){for(var u=[],f=Ni(r),y=0,E=r.length;y<E;y++)f?(u[y]=_t(r[y]),this._bounds.extend(u[y])):u[y]=this._convertLatLngs(r[y]);return u},_project:function(){var r=new Lt;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,r),this._bounds.isValid()&&r.isValid()&&(this._rawPxBounds=r,this._updateBounds())},_updateBounds:function(){var r=this._clickTolerance(),u=new ot(r,r);this._rawPxBounds&&(this._pxBounds=new Lt([this._rawPxBounds.min.subtract(u),this._rawPxBounds.max.add(u)]))},_projectLatlngs:function(r,u,f){var y=r[0]instanceof dt,E=r.length,D,H;if(y){for(H=[],D=0;D<E;D++)H[D]=this._map.latLngToLayerPoint(r[D]),f.extend(H[D]);u.push(H)}else for(D=0;D<E;D++)this._projectLatlngs(r[D],u,f)},_clipPoints:function(){var r=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}var u=this._parts,f,y,E,D,H,U,K;for(f=0,E=0,D=this._rings.length;f<D;f++)for(K=this._rings[f],y=0,H=K.length;y<H-1;y++)U=Kt(K[y],K[y+1],r,y,!0),U&&(u[E]=u[E]||[],u[E].push(U[0]),(U[1]!==K[y+1]||y===H-2)&&(u[E].push(U[1]),E++))}},_simplifyPoints:function(){for(var r=this._parts,u=this.options.smoothFactor,f=0,y=r.length;f<y;f++)r[f]=Ft(r[f],u)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(r,u){var f,y,E,D,H,U,K=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(f=0,D=this._parts.length;f<D;f++)for(U=this._parts[f],y=0,H=U.length,E=H-1;y<H;E=y++)if(!(!u&&y===0)&&ne(r,U[E],U[y])<=K)return!0;return!1}});function la(r,u){return new dn(r,u)}dn._flat=Mn;var ss=dn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
vendor: 13,256 bytes, line 56
56,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return nt(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(r){var u=dn.prototype._convertLatLngs.call(this,r),f=u.length;return f>=2&&u[0]instanceof dt&&u[0].equals(u[f-1])&&u.pop(),u},_setLatLngs:function(r){dn.prototype._setLatLngs.call(this,r),Ni(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ni(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var r=this._renderer._bounds,u=this.options.weight,f=new ot(u,u);if(r=new Lt(r.min.subtract(f),r.max.add(f)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}for(var y=0,E=this._rings.length,D;y<E;y++)D=tt(this._rings[y],r,!0),D.length&&this._parts.push(D)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(r){var u=!1,f,y,E,D,H,U,K,lt;if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(D=0,K=this._parts.length;D<K;D++)for(f=this._parts[D],H=0,lt=f.length,U=lt-1;H<lt;U=H++)y=f[H],E=f[U],y.y>r.y!=E.y>r.y&&r.x<(E.x-y.x)*(r.y-y.y)/(E.y-y.y)+y.x&&(u=!u);return u||dn.prototype._containsPoint.call(this,r,!0)}});function yo(r,u){return new ss(r,u)}var Dn=Jt.extend({initialize:function(r,u){C(this,u),this._layers={},r&&this.addData(r)},addData:function(r){var u=z(r)?r:r.features,f,y,E;if(u){for(f=0,y=u.length;f<y;f++)E=u[f],(E.geometries||E.geometry||E.features||E.coordinates)&&this.addData(E);return this}var D=this.options;if(D.filter&&!D.filter(r))return this;var H=os(r,D);return H?(H.feature=X(r),H.defaultOptions=H.options,this.resetStyle(H),D.onEachFeature&&D.onEachFeature(r,H),this.addLayer(H)):this},resetStyle:function(r){return r===void 0?this.eachLayer(this.resetStyle,this):(r.options=e({},r.defaultOptions),this._setLayerStyle(r,this.options.style),this)},setStyle:function(r){return this.eachLayer(function(u){this._setLayerStyle(u,r)},this)},_setLayerStyle:function(r,u){r.setStyle&&(typeof u=="function"&&(u=u(r.feature)),r.setStyle(u))}});function os(r,u){var f=r.type==="Feature"?r.geometry:r,y=f?f.coordinates:null,E=[],D=u&&u.pointToLayer,H=u&&u.coordsToLatLng||zs,U,K,lt,Et;if(!y&&!f)return null;switch(f.type){case"Point":return U=H(y),nl(D,r,U,u);case"MultiPoint":for(lt=0,Et=y.length;lt<Et;lt++)U=H(y[lt]),E.push(nl(D,r,U,u));return new Jt(E);case"LineString":case"MultiLineString":return K=Is(y,f.type==="LineString"?0:1,H),new dn(K,u);case"Polygon":case"MultiPolygon":return K=Is(y,f.type==="Polygon"?1:2,H),new ss(K,u);case"GeometryCollection":for(lt=0,Et=f.geometries.length;lt<Et;lt++){var Bt=os({geometry:f.geometries[lt],type:"Feature",properties:r.properties},u);Bt&&E.push(Bt)}return new Jt(E);case"FeatureCollection":for(lt=0,Et=f.features.length;lt<Et;lt++){var ee=os(f.features[lt],u);ee&&E.push(ee)}return new Jt(E);default:throw new Error("Invalid GeoJSON object.")}}function nl(r,u,f,y){return r?r(u,f):new Ds(f,y&&y.markersInheritOptions&&y)}function zs(r){return new dt(r[1],r[0],r[2])}function Is(r,u,f){for(var y=[],E=0,D=r.length,H;E<D;E++)H=u?Is(r[E],u-1,f):(f||zs)(r[E]),y.push(H);return y}function I(r,u){return r=_t(r),r.alt!==void 0?[m(r.lng,u),m(r.lat,u),m(r.alt,u)]:[m(r.lng,u),m(r.lat,u)]}function j(r,u,f,y){for(var E=[],D=0,H=r.length;D<H;D++)E.push(u?j(r[D],Ni(r[D])?0:u-1,f,y):I(r[D],y));return!u&&f&&E.length>0&&E.push(E[0].slice()),E}function G(r,u){return r.feature?e({},r.feature,{geometry:u}):X(u)}function X(r){return r.type==="Feature"||r.type==="FeatureCollection"?r:{type:"Feature",properties:{},geometry:r}}var it={toGeoJSON:function(r){return G(this,{type:"Point",coordinates:I(this.getLatLng(),r)})}};Ds.include(it),qr.include(it),On.include(it),dn.include({toGeoJSON:function(r){var u=!Ni(this._latlngs),f=j(this._latlngs,u?1:0,!1,r);return G(this,{type:(u?"Multi":"")+"LineString",coordinates:f})}}),ss.include({toGeoJSON:function(r){var u=!Ni(this._latlngs),f=u&&!Ni(this._latlngs[0]),y=j(this._latlngs,f?2:u?1:0,!0,r);return u||(y=[y]),G(this,{type:(f?"Multi":"")+"Polygon",coordinates:y})}}),ns.include({toMultiPoint:function(r){var u=[];return this.eachLayer(function(f){u.push(f.toGeoJSON(r).geometry.coordinates)}),G(this,{type:"MultiPoint",coordinates:u})},toGeoJSON:function(r){var u=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(u==="MultiPoint")return this.toMultiPoint(r);var f=u==="GeometryCollection",y=[];return this.eachLayer(function(E){if(E.toGeoJSON){var D=E.toGeoJSON(r);if(f)y.push(D.geometry);else{var H=X(D);H.type==="FeatureCollection"?y.push.apply(y,H.features):y.push(H)}}}),f?G(this,{geometries:y,type:"GeometryCollection"}):{type:"FeatureCollection",features:y}}});function ft(r,u){return new Dn(r,u)}var Ct=ft,Pt=An.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(r,u,f){this._url=r,this._bounds=pt(u),C(this,f)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Wt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Me(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(r){return this.options.opacity=r,this._image&&this._updateOpacity(),this},setStyle:function(r){return r.opacity&&this.setOpacity(r.opacity),this},bringToFront:function(){return this._map&&En(this._image),this},bringToBack:function(){return this._map&&mr(this._image),this},setUrl:function(r){return this._url=r,this._image&&(this._image.src=r),this},setBounds:function(r){return this._bounds=pt(r),this._map&&this._reset(),this},getEvents:function(){var r={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var r=this._url.tagName==="IMG",u=this._image=r?this._url:ae("img");if(Wt(u,"leaflet-image-layer"),this._zoomAnimated&&Wt(u,"leaflet-zoom-animated"),this.options.className&&Wt(u,this.options.className),u.onselectstart=g,u.onmousemove=g,u.onload=o(this.fire,this,"load"),u.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),r){this._url=u.src;return}u.src=this._url,u.alt=this.options.alt},_animateZoom:function(r){var u=this._map.getZoomScale(r.zoom),f=this._map._latLngBoundsToNewLayerBounds(this._bounds,r.zoom,r.center).min;vi(this._image,f,u)},_reset:function(){var r=this._image,u=new Lt(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),f=u.getSize();je(r,u.min),r.style.width=f.x+"px",r.style.height=f.y+"px"},_updateOpacity:function(){Ki(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var r=this.options.errorOverlayUrl;r&&this._url!==r&&(this._url=r,this._image.src=r)},getCenter:function(){return this._bounds.getCenter()}}),Tt=function(r,u,f){return new Pt(r,u,f)},Xt=Pt.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var r=this._url.tagName==="VIDEO",u=this._image=r?this._url:ae("video");if(Wt(u,"leaflet-image-layer"),this._zoomAnimated&&Wt(u,"leaflet-zoom-animated"),this.options.className&&Wt(u,this.options.className),u.onselectstart=g,u.onmousemove=g,u.onloadeddata=o(this.fire,this,"load"),r){for(var f=u.getElementsByTagName("source"),y=[],E=0;E<f.length;E++)y.push(f[E].src);this._url=f.length>0?y:[u.src];return}z(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(u.style,"objectFit")&&(u.style.objectFit="fill"),u.autoplay=!!this.options.autoplay,u.loop=!!this.options.loop,u.muted=!!this.options.muted,u.playsInline=!!this.options.playsInline;for(var D=0;D<this._url.length;D++){var H=ae("source");H.src=this._url[D],u.appendChild(H)}}});function Rt(r,u,f){return new Xt(r,u,f)}var Ht=Pt.extend({_initImage:function(){var r=this._image=this._url;Wt(r,"leaflet-image-layer"),this._zoomAnimated&&Wt(r,"leaflet-zoom-animated"),this.options.className&&Wt(r,this.options.className),r.onselectstart=g,r.onmousemove=g}});function Qt(r,u,f){return new Ht(r,u,f)}var Mt=An.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(r,u){r&&(r instanceof dt||z(r))?(this._latlng=_t(r),C(this,u)):(C(this,r),this._source=u),this.options.content&&(this._content=this.options.content)},openOn:function(r){return r=arguments.length?r:this._source._map,r.hasLayer(this)||r.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(r){return this._map?this.close():(arguments.length?this._source=r:r=this._source,this._prepareOpen(),this.openOn(r._map)),this},onAdd:function(r){this._zoomAnimated=r._zoomAnimated,this._container||this._initLayout(),r._fadeAnimated&&Ki(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),r._fadeAnimated&&Ki(this._container,1),this.bringToFront(),this.options.interactive&&(Wt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(r){r._fadeAnimated?(Ki(this._container,0),this._removeTimeout=setTimeout(o(Me,void 0,this._container),200)):Me(this._container),this.options.interactive&&(De(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(r){return this._latlng=_t(r),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(r){return this._content=r,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var r={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&En(this._container),this},bringToBack:function(){return this._map&&mr(this._container),this},_prepareOpen:function(r){var u=this._source;if(!u._map)return!1;if(u instanceof Jt){u=null;var f=this._source._layers;for(var y in f)if(f[y]._map){u=f[y];break}if(!u)return!1;this._source=u}if(!r)if(u.getCenter)r=u.getCenter();else if(u.getLatLng)r=u.getLatLng();else if(u.getBounds)r=u.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(r),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var r=this._contentNode,u=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof u=="string")r.innerHTML=u;else{for(;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(u)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var r=this._map.latLngToLayerPoint(this._latlng),u=B(this.options.offset),f=this._getAnchor();this._zoomAnimated?je(this._container,r.add(f)):u=u.add(r).add(f);var y=this._containerBottom=-u.y,E=this._containerLeft=-Math.round(this._containerWidth/2)+u.x;this._container.style.bottom=y+"px",this._container.style.left=E+"px"}},_getAnchor:function(){return[0,0]}});le.include({_initOverlay:function(r,u,f,y){var E=u;return E instanceof r||(E=new r(y).setContent(u)),f&&E.setLatLng(f),E}}),An.include({_initOverlay:function(r,u,f,y){var E=f;return E instanceof r?(C(E,y),E._source=this):(E=u&&!y?u:new r(y,this),E.setContent(f)),E}});var pe=Mt.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(r){return r=arguments.length?r:this._source._map,!r.hasLayer(this)&&r._popup&&r._popup.options.autoClose&&r.removeLayer(r._popup),r._popup=this,Mt.prototype.openOn.call(this,r)},onAdd:function(r){Mt.prototype.onAdd.call(this,r),r.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof tr||this._source.on("preclick",Nr))},onRemove:function(r){Mt.prototype.onRemove.call(this,r),r.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof tr||this._source.off("preclick",Nr))},getEvents:function(){var r=Mt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(r.preclick=this.close),this.options.keepInView&&
vendor: 5,065 bytes, line 56
56(r.moveend=this._adjustPan),r},_initLayout:function(){var r="leaflet-popup",u=this._container=ae("div",r+" "+(this.options.className||"")+" leaflet-zoom-animated"),f=this._wrapper=ae("div",r+"-content-wrapper",u);if(this._contentNode=ae("div",r+"-content",f),ks(u),na(this._contentNode),qt(u,"contextmenu",Nr),this._tipContainer=ae("div",r+"-tip-container",u),this._tip=ae("div",r+"-tip",this._tipContainer),this.options.closeButton){var y=this._closeButton=ae("a",r+"-close-button",u);y.setAttribute("role","button"),y.setAttribute("aria-label","Close popup"),y.href="#close",y.innerHTML='<span aria-hidden="true">&#215;</span>',qt(y,"click",function(E){ui(E),this.close()},this)}},_updateLayout:function(){var r=this._contentNode,u=r.style;u.width="",u.whiteSpace="nowrap";var f=r.offsetWidth;f=Math.min(f,this.options.maxWidth),f=Math.max(f,this.options.minWidth),u.width=f+1+"px",u.whiteSpace="",u.height="";var y=r.offsetHeight,E=this.options.maxHeight,D="leaflet-popup-scrolled";E&&y>E?(u.height=E+"px",Wt(r,D)):De(r,D),this._containerWidth=this._container.offsetWidth},_animateZoom:function(r){var u=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center),f=this._getAnchor();je(this._container,u.add(f))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var r=this._map,u=parseInt(un(this._container,"marginBottom"),10)||0,f=this._container.offsetHeight+u,y=this._containerWidth,E=new ot(this._containerLeft,-f-this._containerBottom);E._add(Ln(this._container));var D=r.layerPointToContainerPoint(E),H=B(this.options.autoPanPadding),U=B(this.options.autoPanPaddingTopLeft||H),K=B(this.options.autoPanPaddingBottomRight||H),lt=r.getSize(),Et=0,Bt=0;D.x+y+K.x>lt.x&&(Et=D.x+y-lt.x+K.x),D.x-Et-U.x<0&&(Et=D.x-U.x),D.y+f+K.y>lt.y&&(Bt=D.y+f-lt.y+K.y),D.y-Bt-U.y<0&&(Bt=D.y-U.y),(Et||Bt)&&(this.options.keepInView&&(this._autopanning=!0),r.fire("autopanstart").panBy([Et,Bt]))}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Hi=function(r,u){return new pe(r,u)};le.mergeOptions({closePopupOnClick:!0}),le.include({openPopup:function(r,u,f){return this._initOverlay(pe,r,u,f).openOn(this),this},closePopup:function(r){return r=arguments.length?r:this._popup,r&&r.close(),this}}),An.include({bindPopup:function(r,u){return this._popup=this._initOverlay(pe,this._popup,r,u),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(r){return this._popup&&(this instanceof Jt||(this._popup._source=this),this._popup._prepareOpen(r||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(r){return this._popup&&this._popup.setContent(r),this},getPopup:function(){return this._popup},_openPopup:function(r){if(!(!this._popup||!this._map)){vr(r);var u=r.layer||r.target;if(this._popup._source===u&&!(u instanceof tr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(r.latlng);return}this._popup._source=u,this.openPopup(r.latlng)}},_movePopup:function(r){this._popup.setLatLng(r.latlng)},_onKeyPress:function(r){r.originalEvent.keyCode===13&&this._openPopup(r)}});var ei=Mt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(r){Mt.prototype.onAdd.call(this,r),this.setOpacity(this.options.opacity),r.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(r){Mt.prototype.onRemove.call(this,r),r.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var r=Mt.prototype.getEvents.call(this);return this.options.permanent||(r.preclick=this.close),r},_initLayout:function(){var r="leaflet-tooltip",u=r+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ae("div",u),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(r){var u,f,y=this._map,E=this._container,D=y.latLngToContainerPoint(y.getCenter()),H=y.layerPointToContainerPoint(r),U=this.options.direction,K=E.offsetWidth,lt=E.offsetHeight,Et=B(this.options.offset),Bt=this._getAnchor();U==="top"?(u=K/2,f=lt):U==="bottom"?(u=K/2,f=0):U==="center"?(u=K/2,f=lt/2):U==="right"?(u=0,f=lt/2):U==="left"?
vendor: 5,984 bytes, line 56
56(u=K,f=lt/2):H.x<D.x?(U="right",u=0,f=lt/2):(U="left",u=K+(Et.x+Bt.x)*2,f=lt/2),r=r.subtract(B(u,f,!0)).add(Et).add(Bt),De(E,"leaflet-tooltip-right"),De(E,"leaflet-tooltip-left"),De(E,"leaflet-tooltip-top"),De(E,"leaflet-tooltip-bottom"),Wt(E,"leaflet-tooltip-"+U),je(E,r)},_updatePosition:function(){var r=this._map.latLngToLayerPoint(this._latlng);this._setPosition(r)},setOpacity:function(r){this.options.opacity=r,this._container&&Ki(this._container,r)},_animateZoom:function(r){var u=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center);this._setPosition(u)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),fn=function(r,u){return new ei(r,u)};le.include({openTooltip:function(r,u,f){return this._initOverlay(ei,r,u,f).openOn(this),this},closeTooltip:function(r){return r.close(),this}}),An.include({bindTooltip:function(r,u){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ei,this._tooltip,r,u),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(r){if(!(!r&&this._tooltipHandlersAdded)){var u=r?"off":"on",f={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?f.add=this._openTooltip:(f.mouseover=this._openTooltip,f.mouseout=this.closeTooltip,f.click=this._openTooltip,this._map?this._addFocusListeners():f.add=this._addFocusListeners),this._tooltip.options.sticky&&(f.mousemove=this._moveTooltip),this[u](f),this._tooltipHandlersAdded=!r}},openTooltip:function(r){return this._tooltip&&(this instanceof Jt||(this._tooltip._source=this),this._tooltip._prepareOpen(r)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(r){return this._tooltip&&this._tooltip.setContent(r),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(r){var u=typeof r.getElement=="function"&&r.getElement();u&&(qt(u,"focus",function(){this._tooltip._source=r,this.openTooltip()},this),qt(u,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(r){var u=typeof r.getElement=="function"&&r.getElement();u&&u.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(r){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var u=this;this._map.once("moveend",function(){u._openOnceFlag=!1,u._openTooltip(r)});return}this._tooltip._source=r.layer||r.target,this.openTooltip(this._tooltip.options.sticky?r.latlng:void 0)}},_moveTooltip:function(r){var u=r.latlng,f,y;this._tooltip.options.sticky&&r.originalEvent&&(f=this._map.mouseEventToContainerPoint(r.originalEvent),y=this._map.containerPointToLayerPoint(f),u=this._map.layerPointToLatLng(y)),this._tooltip.setLatLng(u)}});var zn=Ti.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(r){var u=r&&r.tagName==="DIV"?r:document.createElement("div"),f=this.options;if(f.html instanceof Element?(_i(u),u.appendChild(f.html)):u.innerHTML=f.html!==!1?f.html:"",f.bgPos){var y=B(f.bgPos);u.style.backgroundPosition=-y.x+"px "+-y.y+"px"}return this._setIconStyles(u,"icon"),u},createShadow:function(){return null}});function as(r){return new zn(r)}Ti.Default=Os;var ii=An.extend({options:{tileSize:256,opacity:1,updateWhenIdle:bt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(r){C(this,r)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(r){r._addZoomLimit(this)},onRemove:function(r){this._removeAllTiles(),Me(this._container),r._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(En(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(mr(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(r){return this.options.opacity=r,this._updateOpacity(),this},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var r=this._clampZoom(this._map.getZoom());r!==this._tileZoom&&(this._tileZoom=r,this._updateLevels()),this._update()}return this},getEvents:function(){var r={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),r.move=this._onMove),this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},createTile:function(){return document.createElement("div")},getTileSize:function(){var r=this.options.tileSize;return r instanceof ot?r:new ot(r,r)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(r){for(var u=this.getPane().children,f=-r(-1/0,1/0),y=0,E=u.length,D;y<E;y++)D=u[y].style.zIndex,u[y]!==this._container&&D&&(f=r(f,+D));
vendor: 5,331 bytes, line 56
56isFinite(f)&&(this.options.zIndex=f+r(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!bt.ielt9){Ki(this._container,this.options.opacity);var r=+new Date,u=!1,f=!1;for(var y in this._tiles){var E=this._tiles[y];if(!(!E.current||!E.loaded)){var D=Math.min(1,(r-E.loaded)/200);Ki(E.el,D),D<1?u=!0:(E.active?f=!0:this._onOpaqueTile(E),E.active=!0)}}f&&!this._noPrune&&this._pruneTiles(),u&&(ut(this._fadeFrame),this._fadeFrame=St(this._updateOpacity,this))}},_onOpaqueTile:g,_initContainer:function(){this._container||(this._container=ae("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var r=this._tileZoom,u=this.options.maxZoom;if(r!==void 0){for(var f in this._levels)f=Number(f),this._levels[f].el.children.length||f===r?(this._levels[f].el.style.zIndex=u-Math.abs(r-f),this._onUpdateLevel(f)):(Me(this._levels[f].el),this._removeTilesAtZoom(f),this._onRemoveLevel(f),delete this._levels[f]);var y=this._levels[r],E=this._map;return y||(y=this._levels[r]={},y.el=ae("div","leaflet-tile-container leaflet-zoom-animated",this._container),y.el.style.zIndex=u,y.origin=E.project(E.unproject(E.getPixelOrigin()),r).round(),y.zoom=r,this._setZoomTransform(y,E.getCenter(),E.getZoom()),g(y.el.offsetWidth),this._onCreateLevel(y)),this._level=y,y}},_onUpdateLevel:g,_onRemoveLevel:g,_onCreateLevel:g,_pruneTiles:function(){if(this._map){var r,u,f=this._map.getZoom();if(f>this.options.maxZoom||f<this.options.minZoom){this._removeAllTiles();return}for(r in this._tiles)u=this._tiles[r],u.retain=u.current;for(r in this._tiles)if(u=this._tiles[r],u.current&&!u.active){var y=u.coords;this._retainParent(y.x,y.y,y.z,y.z-5)||this._retainChildren(y.x,y.y,y.z,y.z+2)}for(r in this._tiles)this._tiles[r].retain||this._removeTile(r)}},_removeTilesAtZoom:function(r){for(var u in this._tiles)this._tiles[u].coords.z===r&&this._removeTile(u)},_removeAllTiles:function(){for(var r in this._tiles)this._removeTile(r)},_invalidateAll:function(){for(var r in this._levels)Me(this._levels[r].el),this._onRemoveLevel(Number(r)),delete this._levels[r];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(r,u,f,y){var E=Math.floor(r/2),D=Math.floor(u/2),H=f-1,U=new ot(+E,+D);U.z=+H;var K=this._tileCoordsToKey(U),lt=this._tiles[K];return lt&&lt.active?(lt.retain=!0,!0):(lt&&lt.loaded&&(lt.retain=!0),H>y?this._retainParent(E,D,H,y):!1)},_retainChildren:function(r,u,f,y){for(var E=2*r;E<2*r+2;E++)for(var D=2*u;D<2*u+2;D++){var H=new ot(E,D);H.z=f+1;var U=this._tileCoordsToKey(H),K=this._tiles[U];if(K&&K.active){K.retain=!0;continue}else K&&K.loaded&&(K.retain=!0);f+1<y&&this._retainChildren(E,D,f+1,y)}},_resetView:function(r){var u=r&&(r.pinch||r.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),u,u)},_animateZoom:function(r){this._setView(r.center,r.zoom,!0,r.noUpdate)},_clampZoom:function(r){var u=this.options;return u.minNativeZoom!==void 0&&r<u.minNativeZoom?u.minNativeZoom:u.maxNativeZoom!==void 0&&u.maxNativeZoom<r?u.maxNativeZoom:r},_setView:function(r,u,f,y){var E=Math.round(u);this.options.maxZoom!==void 0&&E>this.options.maxZoom||this.options.minZoom!==void 0&&E<this.options.minZoom?E=void 0:E=this._clampZoom(E);var D=this.options.updateWhenZooming&&E!==this._tileZoom;(!y||D)&&(this._tileZoom=E,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),E!==void 0&&this._update(r),f||this._pruneTiles(),this._noPrune=!!f),this._setZoomTransforms(r,u)},_setZoomTransforms:function(r,u){for(var f in this._levels)this._setZoomTransform(this._levels[f],r,u)},_setZoomTransform:function(r,u,f){var y=this._map.getZoomScale(f,r.zoom),E=r.origin.multiplyBy(y).subtract(this._map._getNewPixelOrigin(u,f)).round();bt.any3d?vi(r.el,E,y):je(r.el,E)},_resetGrid:function(){var r=this._map,u=r.options.crs,f=this._tileSize=this.getTileSize(),y=this._tileZoom,E=this._map.getPixelWorldBounds(this._tileZoom);E&&(this._globalTileRange=this._pxBoundsToTileRange(E)),this._wrapX=u.wrapLng&&!this.options.noWrap&&[Math.floor(r.project([0,u.wrapLng[0]],y).x/f.x),Math.ceil(r.project([0,u.wrapLng[1]],y).x/f.y)],this._wrapY=u.wrapLat&&!this.options.noWrap&&[Math.floor(r.project([u.wrapLat[0],0],y).y/f.x),Math.ceil(r.project([u.wrapLat[1],0],y).y/f.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(r){var u=this._map,f=u._animatingZoom?Math.max(u._animateToZoom,u.getZoom()):u.getZoom(),y=u.getZoomScale(f,this._tileZoom),E=u.project(r,this._tileZoom).floor(),D=u.getSize().divideBy(y*2);return new Lt(E.subtract(D),E.add(D))},_update:function(r){var u=this._map;if(u){var f=this._clampZoom(u.getZoom());if(r===void 0&&(r=u.getCenter()),this._tileZoom!==void 0){var y=this._getTiledPixelBounds(r),E=this._pxBoundsToTileRange(y),D=E.getCenter(),H=[],U=this.options.keepBuffer,K=new Lt(E.getBottomLeft().subtract([U,-U]),E.getTopRight().add([U,-U]));if(!(isFinite(E.min.x)&&isFinite(E.min.y)&&isFinite(E.max.x)&&isFinite(E.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var lt in this._tiles){var Et=this._tiles[lt].coords;(Et.z!==this._tileZoom||!K.contains(new ot(Et.x,Et.y)))&&(this._tiles[lt].current=!1)}if(Math.abs(f-this._tileZoom)>
vendor: 9,856 bytes, line 56
561){this._setView(r,f);return}for(var Bt=E.min.y;Bt<=E.max.y;Bt++)for(var ee=E.min.x;ee<=E.max.x;ee++){var Ji=new ot(ee,Bt);if(Ji.z=this._tileZoom,!!this._isValidTile(Ji)){var Si=this._tiles[this._tileCoordsToKey(Ji)];Si?Si.current=!0:H.push(Ji)}}if(H.sort(function(pn,wo){return pn.distanceTo(D)-wo.distanceTo(D)}),H.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var er=document.createDocumentFragment();for(ee=0;ee<H.length;ee++)this._addTile(H[ee],er);this._level.el.appendChild(er)}}}},_isValidTile:function(r){var u=this._map.options.crs;if(!u.infinite){var f=this._globalTileRange;if(!u.wrapLng&&(r.x<f.min.x||r.x>f.max.x)||!u.wrapLat&&(r.y<f.min.y||r.y>f.max.y))return!1}if(!this.options.bounds)return!0;var y=this._tileCoordsToBounds(r);return pt(this.options.bounds).overlaps(y)},_keyToBounds:function(r){return this._tileCoordsToBounds(this._keyToTileCoords(r))},_tileCoordsToNwSe:function(r){var u=this._map,f=this.getTileSize(),y=r.scaleBy(f),E=y.add(f),D=u.unproject(y,r.z),H=u.unproject(E,r.z);return[D,H]},_tileCoordsToBounds:function(r){var u=this._tileCoordsToNwSe(r),f=new yt(u[0],u[1]);return this.options.noWrap||(f=this._map.wrapLatLngBounds(f)),f},_tileCoordsToKey:function(r){return r.x+":"+r.y+":"+r.z},_keyToTileCoords:function(r){var u=r.split(":"),f=new ot(+u[0],+u[1]);return f.z=+u[2],f},_removeTile:function(r){var u=this._tiles[r];u&&(Me(u.el),delete this._tiles[r],this.fire("tileunload",{tile:u.el,coords:this._keyToTileCoords(r)}))},_initTile:function(r){Wt(r,"leaflet-tile");var u=this.getTileSize();r.style.width=u.x+"px",r.style.height=u.y+"px",r.onselectstart=g,r.onmousemove=g,bt.ielt9&&this.options.opacity<1&&Ki(r,this.options.opacity)},_addTile:function(r,u){var f=this._getTilePos(r),y=this._tileCoordsToKey(r),E=this.createTile(this._wrapCoords(r),o(this._tileReady,this,r));this._initTile(E),this.createTile.length<2&&St(o(this._tileReady,this,r,null,E)),je(E,f),this._tiles[y]={el:E,coords:r,current:!0},u.appendChild(E),this.fire("tileloadstart",{tile:E,coords:r})},_tileReady:function(r,u,f){u&&this.fire("tileerror",{error:u,tile:f,coords:r});var y=this._tileCoordsToKey(r);f=this._tiles[y],f&&(f.loaded=+new Date,this._map._fadeAnimated?(Ki(f.el,0),ut(this._fadeFrame),this._fadeFrame=St(this._updateOpacity,this)):(f.active=!0,this._pruneTiles()),u||(Wt(f.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:f.el,coords:r})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),bt.ielt9||!this._map._fadeAnimated?St(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(r){return r.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(r){var u=new ot(this._wrapX?h(r.x,this._wrapX):r.x,this._wrapY?h(r.y,this._wrapY):r.y);return u.z=r.z,u},_pxBoundsToTileRange:function(r){var u=this.getTileSize();return new Lt(r.min.unscaleBy(u).floor(),r.max.unscaleBy(u).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var r in this._tiles)if(!this._tiles[r].loaded)return!1;return!0}});function fg(r){return new ii(r)}var bo=ii.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(r,u){this._url=r,u=C(this,u),u.detectRetina&&bt.retina&&u.maxZoom>0?(u.tileSize=Math.floor(u.tileSize/2),u.zoomReverse?(u.zoomOffset--,u.minZoom=Math.min(u.maxZoom,u.minZoom+1)):(u.zoomOffset++,u.maxZoom=Math.max(u.minZoom,u.maxZoom-1)),u.minZoom=Math.max(0,u.minZoom)):u.zoomReverse?u.minZoom=Math.min(u.maxZoom,u.minZoom):u.maxZoom=Math.max(u.minZoom,u.maxZoom),typeof u.subdomains=="string"&&(u.subdomains=u.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(r,u){return this._url===r&&u===void 0&&(u=!0),this._url=r,u||this.redraw(),this},createTile:function(r,u){var f=document.createElement("img");return qt(f,"load",o(this._tileOnLoad,this,u,f)),qt(f,"error",o(this._tileOnError,this,u,f)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(f.referrerPolicy=this.options.referrerPolicy),f.alt="",f.src=this.getTileUrl(r),f},getTileUrl:function(r){var u={r:bt.retina?"@2x":"",s:this._getSubdomain(r),x:r.x,y:r.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var f=this._globalTileRange.max.y-r.y;this.options.tms&&(u.y=f),u["-y"]=f}return A(this._url,e(u,this.options))},_tileOnLoad:function(r,u){bt.ielt9?setTimeout(o(r,this,null,u),0):r(null,u)},_tileOnError:function(r,u,f){var y=this.options.errorTileUrl;y&&u.getAttribute("src")!==y&&(u.src=y),r(f,u)},_onTileRemove:function(r){r.tile.onload=null},_getZoomForUrl:function(){var r=this._tileZoom,u=this.options.maxZoom,f=this.options.zoomReverse,y=this.options.zoomOffset;return f&&(r=u-r),r+y},_getSubdomain:function(r){var u=Math.abs(r.x+r.y)%this.options.subdomains.length;return this.options.subdomains[u]},_abortLoading:function(){var r,u;for(r in this._tiles)if(this._tiles[r].coords.z!==this._tileZoom&&(u=this._tiles[r].el,u.onload=g,u.onerror=g,!u.complete)){u.src=W;var f=this._tiles[r].coords;Me(u),delete this._tiles[r],this.fire("tileabort",{tile:u,coords:f})}},_removeTile:function(r){var u=this._tiles[r];if(u)return u.el.setAttribute("src",W),ii.prototype._removeTile.call(this,r)},_tileReady:function(r,u,f){if(!(!this._map||f&&f.getAttribute("src")===W))return ii.prototype._tileReady.call(this,r,u,f)}});function uh(r,u){return new bo(r,u)}var ch=bo.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(r,u){this._url=r;var f=e({},this.defaultWmsParams);for(var y in u)y in this.options||(f[y]=u[y]);u=C(this,u);var E=u.detectRetina&&bt.retina?2:1,D=this.getTileSize();f.width=D.x*E,f.height=D.y*E,this.wmsParams=f},onAdd:function(r){this._crs=this.options.crs||r.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var u=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[u]=this._crs.code,bo.prototype.onAdd.call(this,r)},getTileUrl:function(r){var u=this._tileCoordsToNwSe(r),f=this._crs,y=Q(f.project(u[0]),f.project(u[1])),E=y.min,D=y.max,H=(this._wmsVersion>=1.3&&this._crs===Qn?[E.y,E.x,D.y,D.x]:[E.x,E.y,D.x,D.y]).join(","),U=bo.prototype.getTileUrl.call(this,r);return U+k(this.wmsParams,U,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+H},setParams:function(r,u){return e(this.wmsParams,r),u||this.redraw(),this}});function pg(r,u){return new ch(r,u)}bo.WMS=ch,uh.wms=pg;var Zr=An.extend({options:{padding:.1},initialize:function(r){C(this,r),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Wt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var r={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(r.zoomanim=this._onAnimZoom),r},_onAnimZoom:function(r){this._updateTransform(r.center,r.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(r,u){var f=this._map.getZoomScale(u,this._zoom),y=this._map.getSize().multiplyBy(.5+this.options.padding),E=this._map.project(this._center,u),D=y.multiplyBy(-f).add(E).subtract(this._map._getNewPixelOrigin(r,u));bt.any3d?vi(this._container,D,f):je(this._container,D)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var r in this._layers)this._layers[r]._reset()},_onZoomEnd:function(){for(var r in this._layers)this._layers[r]._project()},_updatePaths:function(){for(var r in this._layers)this._layers[r]._update()},_update:function(){var r=this.options.padding,u=this._map.getSize(),f=this._map.containerPointToLayerPoint(u.multiplyBy(-r)).round();this._bounds=new Lt(f,f.add(u.multiplyBy(1+r*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),hh=Zr.extend({options:{tolerance:0},getEvents:function(){var r=Zr.prototype.getEvents.call(this);return r.viewprereset=this._onViewPreReset,r},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Zr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var r=this._container=document.createElement("canvas");qt(r,"mousemove",this._onMouseMove,this),qt(r,"click dblclick mousedown mouseup contextmenu",this._onClick,this),qt(r,"mouseout",this._handleMouseOut,this),r._leaflet_disable_events=!0,this._ctx=r.getContext("2d")},_destroyContainer:function(){ut(this._redrawRequest),delete this._ctx,Me(this._container),ve(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var r;this._redrawBounds=null;for(var u in this._layers)r=this._layers[u],r._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Zr.prototype._update.call(this);var r=this._bounds,u=this._container,f=r.getSize(),y=bt.retina?2:1;je(u,r.min),u.width=y*f.x,u.height=y*f.y,u.style.width=f.x+"px",u.style.height=f.y+"px",bt.retina&&this._ctx.scale(2,2),this._ctx.translate(-r.min.x,-r.min.y),this.fire("update")}},_reset:function(){Zr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(r){this._updateDashArray(r),this._layers[l(r)]=r;var u=r._order={layer:r,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=u),this._drawLast=u,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(r){this._requestRedraw(r)},_removePath:function(r){var u=r._order,f=u.next,y=u.prev;
vendor: 5,682 bytes, line 56
56f?f.prev=y:this._drawLast=y,y?y.next=f:this._drawFirst=f,delete r._order,delete this._layers[l(r)],this._requestRedraw(r)},_updatePath:function(r){this._extendRedrawBounds(r),r._project(),r._update(),this._requestRedraw(r)},_updateStyle:function(r){this._updateDashArray(r),this._requestRedraw(r)},_updateDashArray:function(r){if(typeof r.options.dashArray=="string"){var u=r.options.dashArray.split(/[, ]+/),f=[],y,E;for(E=0;E<u.length;E++){if(y=Number(u[E]),isNaN(y))return;f.push(y)}r.options._dashArray=f}else r.options._dashArray=r.options.dashArray},_requestRedraw:function(r){this._map&&(this._extendRedrawBounds(r),this._redrawRequest=this._redrawRequest||St(this._redraw,this))},_extendRedrawBounds:function(r){if(r._pxBounds){var u=(r.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Lt,this._redrawBounds.extend(r._pxBounds.min.subtract([u,u])),this._redrawBounds.extend(r._pxBounds.max.add([u,u]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var r=this._redrawBounds;if(r){var u=r.getSize();this._ctx.clearRect(r.min.x,r.min.y,u.x,u.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var r,u=this._redrawBounds;if(this._ctx.save(),u){var f=u.getSize();this._ctx.beginPath(),this._ctx.rect(u.min.x,u.min.y,f.x,f.y),this._ctx.clip()}this._drawing=!0;for(var y=this._drawFirst;y;y=y.next)r=y.layer,(!u||r._pxBounds&&r._pxBounds.intersects(u))&&r._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(r,u){if(this._drawing){var f,y,E,D,H=r._parts,U=H.length,K=this._ctx;if(U){for(K.beginPath(),f=0;f<U;f++){for(y=0,E=H[f].length;y<E;y++)D=H[f][y],K[y?"lineTo":"moveTo"](D.x,D.y);u&&K.closePath()}this._fillStroke(K,r)}}},_updateCircle:function(r){if(!(!this._drawing||r._empty())){var u=r._point,f=this._ctx,y=Math.max(Math.round(r._radius),1),E=(Math.max(Math.round(r._radiusY),1)||y)/y;E!==1&&(f.save(),f.scale(1,E)),f.beginPath(),f.arc(u.x,u.y/E,y,0,Math.PI*2,!1),E!==1&&f.restore(),this._fillStroke(f,r)}},_fillStroke:function(r,u){var f=u.options;f.fill&&(r.globalAlpha=f.fillOpacity,r.fillStyle=f.fillColor||f.color,r.fill(f.fillRule||"evenodd")),f.stroke&&f.weight!==0&&(r.setLineDash&&r.setLineDash(u.options&&u.options._dashArray||[]),r.globalAlpha=f.opacity,r.lineWidth=f.weight,r.strokeStyle=f.color,r.lineCap=f.lineCap,r.lineJoin=f.lineJoin,r.stroke())},_onClick:function(r){for(var u=this._map.mouseEventToLayerPoint(r),f,y,E=this._drawFirst;E;E=E.next)f=E.layer,f.options.interactive&&f._containsPoint(u)&&(!(r.type==="click"||r.type==="preclick")||!this._map._draggableMoved(f))&&(y=f);this._fireEvent(y?[y]:!1,r)},_onMouseMove:function(r){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var u=this._map.mouseEventToLayerPoint(r);this._handleMouseHover(r,u)}},_handleMouseOut:function(r){var u=this._hoveredLayer;u&&(De(this._container,"leaflet-interactive"),this._fireEvent([u],r,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(r,u){if(!this._mouseHoverThrottled){for(var f,y,E=this._drawFirst;E;E=E.next)f=E.layer,f.options.interactive&&f._containsPoint(u)&&(y=f);y!==this._hoveredLayer&&(this._handleMouseOut(r),y&&(Wt(this._container,"leaflet-interactive"),this._fireEvent([y],r,"mouseover"),this._hoveredLayer=y)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,r),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(r,u,f){this._map._fireDOMEvent(u,f||u.type,r)},_bringToFront:function(r){var u=r._order;if(u){var f=u.next,y=u.prev;if(f)f.prev=y;else return;y?y.next=f:f&&(this._drawFirst=f),u.prev=this._drawLast,this._drawLast.next=u,u.next=null,this._drawLast=u,this._requestRedraw(r)}},_bringToBack:function(r){var u=r._order;if(u){var f=u.next,y=u.prev;if(y)y.next=f;else return;f?f.prev=y:y&&(this._drawLast=y),u.prev=null,u.next=this._drawFirst,this._drawFirst.prev=u,this._drawFirst=u,this._requestRedraw(r)}}});function dh(r){return bt.canvas?new hh(r):null}var ua=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(r){return document.createElement("<lvml:"+r+' class="lvml">')}}catch(r){}return function(r){return document.createElement("<"+r+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),gg={_initContainer:function(){this._container=ae("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Zr.prototype._update.call(this),this.fire("update"))},_initPath:function(r){var u=r._container=ua("shape");Wt(u,"leaflet-vml-shape "+(this.options.className||"")),u.coordsize="1 1",r._path=ua("path"),u.appendChild(r._path),this._updateStyle(r),this._layers[l(r)]=r},_addPath:function(r){var u=r._container;this._container.appendChild(u),r.options.interactive&&r.addInteractiveTarget(u)},_removePath:function(r){var u=r._container;Me(u),r.removeInteractiveTarget(u),delete this._layers[l(r)]},_updateStyle:function(r){var u=r._stroke,f=r._fill,y=r.options,E=r._container;E.stroked=!!y.stroke,E.filled=!!y.fill,y.stroke?(u||(u=r._stroke=ua("stroke")),E.appendChild(u),u.weight=y.weight+"px",u.color=y.color,u.opacity=y.opacity,y.dashArray?u.dashStyle=z(y.dashArray)?y.dashArray.join(" "):y.dashArray.replace(/( *, *)/g," "):u.dashStyle="",u.endcap=y.lineCap.replace("butt","flat"),u.joinstyle=y.lineJoin):u&&(E.removeChild(u),r._stroke=null),y.fill?(f||(f=r._fill=ua("fill")),E.appendChild(f),f.color=y.fillColor||y.c
vendor: 3,382 bytes, line 56
56olor,f.opacity=y.fillOpacity):f&&(E.removeChild(f),r._fill=null)},_updateCircle:function(r){var u=r._point.round(),f=Math.round(r._radius),y=Math.round(r._radiusY||f);this._setPath(r,r._empty()?"M0 0":"AL "+u.x+","+u.y+" "+f+","+y+" 0,"+65535*360)},_setPath:function(r,u){r._path.v=u},_bringToFront:function(r){En(r._container)},_bringToBack:function(r){mr(r._container)}},rl=bt.vml?ua:gi,ca=Zr.extend({_initContainer:function(){this._container=rl("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=rl("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Me(this._container),ve(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Zr.prototype._update.call(this);var r=this._bounds,u=r.getSize(),f=this._container;(!this._svgSize||!this._svgSize.equals(u))&&(this._svgSize=u,f.setAttribute("width",u.x),f.setAttribute("height",u.y)),je(f,r.min),f.setAttribute("viewBox",[r.min.x,r.min.y,u.x,u.y].join(" ")),this.fire("update")}},_initPath:function(r){var u=r._path=rl("path");r.options.className&&Wt(u,r.options.className),r.options.interactive&&Wt(u,"leaflet-interactive"),this._updateStyle(r),this._layers[l(r)]=r},_addPath:function(r){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(r._path),r.addInteractiveTarget(r._path)},_removePath:function(r){Me(r._path),r.removeInteractiveTarget(r._path),delete this._layers[l(r)]},_updatePath:function(r){r._project(),r._update()},_updateStyle:function(r){var u=r._path,f=r.options;u&&(f.stroke?(u.setAttribute("stroke",f.color),u.setAttribute("stroke-opacity",f.opacity),u.setAttribute("stroke-width",f.weight),u.setAttribute("stroke-linecap",f.lineCap),u.setAttribute("stroke-linejoin",f.lineJoin),f.dashArray?u.setAttribute("stroke-dasharray",f.dashArray):u.removeAttribute("stroke-dasharray"),f.dashOffset?u.setAttribute("stroke-dashoffset",f.dashOffset):u.removeAttribute("stroke-dashoffset")):u.setAttribute("stroke","none"),f.fill?(u.setAttribute("fill",f.fillColor||f.color),u.setAttribute("fill-opacity",f.fillOpacity),u.setAttribute("fill-rule",f.fillRule||"evenodd")):u.setAttribute("fill","none"))},_updatePoly:function(r,u){this._setPath(r,si(r._parts,u))},_updateCircle:function(r){var u=r._point,f=Math.max(Math.round(r._radius),1),y=Math.max(Math.round(r._radiusY),1)||f,E="a"+f+","+y+" 0 1,0 ",D=r._empty()?"M0 0":"M"+(u.x-f)+","+u.y+E+f*2+",0 "+E+-f*2+",0 ";this._setPath(r,D)},_setPath:function(r,u){r._path.setAttribute("d",u)},_bringToFront:function(r){En(r._path)},_bringToBack:function(r){mr(r._path)}});bt.vml&&ca.include(gg);function fh(r){return bt.svg||bt.vml?new ca(r):null}le.include({getRenderer:function(r){var u=r.options.renderer||this._getPaneRenderer(r.options.pane)||this.options.renderer||this._renderer;return u||(u=this._renderer=this._createRenderer()),this.hasLayer(u)||this.addLayer(u),u},_getPaneRenderer:function(r){if(r==="overlayPane"||r===void 0)return!1;var u=this._paneRenderers[r];return u===void 0&&(u=this._createRenderer({pane:r}),this._paneRenderers[r]=u),u},_createRenderer:function(r){return this.options.preferCanvas&&dh(r)||fh(r)}});var ph=ss.extend({initialize:function(r,u){ss.prototype.initialize.call(this,this._boundsToLatLngs(r),u)},setBounds:function(r){return this.setLatLngs(this._boundsToLatLngs(r))}
vendor: 11,700 bytes, line 56
56,_boundsToLatLngs:function(r){return r=pt(r),[r.getSouthWest(),r.getNorthWest(),r.getNorthEast(),r.getSouthEast()]}});function mg(r,u){return new ph(r,u)}ca.create=rl,ca.pointsToPath=si,Dn.geometryToLayer=os,Dn.coordsToLatLng=zs,Dn.coordsToLatLngs=Is,Dn.latLngToCoords=I,Dn.latLngsToCoords=j,Dn.getFeature=G,Dn.asFeature=X,le.mergeOptions({boxZoom:!0});var gh=O.extend({initialize:function(r){this._map=r,this._container=r._container,this._pane=r._panes.overlayPane,this._resetStateTimeout=0,r.on("unload",this._destroy,this)},addHooks:function(){qt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ve(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Me(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(r){if(!r.shiftKey||r.which!==1&&r.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ts(),Es(),this._startPoint=this._map.mouseEventToContainerPoint(r),qt(document,{contextmenu:vr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(r){this._moved||(this._moved=!0,this._box=ae("div","leaflet-zoom-box",this._container),Wt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(r);var u=new Lt(this._point,this._startPoint),f=u.getSize();je(this._box,u.min),this._box.style.width=f.x+"px",this._box.style.height=f.y+"px"},_finish:function(){this._moved&&(Me(this._box),De(this._container,"leaflet-crosshair")),Ss(),Ko(),ve(document,{contextmenu:vr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(r){if(!(r.which!==1&&r.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var u=new yt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(u).fire("boxzoomend",{boxZoomBounds:u})}},_onKeyDown:function(r){r.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});le.addInitHook("addHandler","boxZoom",gh),le.mergeOptions({doubleClickZoom:!0});var mh=O.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(r){var u=this._map,f=u.getZoom(),y=u.options.zoomDelta,E=r.originalEvent.shiftKey?f-y:f+y;u.options.doubleClickZoom==="center"?u.setZoom(E):u.setZoomAround(r.containerPoint,E)}});le.addInitHook("addHandler","doubleClickZoom",mh),le.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _h=O.extend({addHooks:function(){if(!this._draggable){var r=this._map;this._draggable=new Z(r._mapPane,r._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),r.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),r.on("zoomend",this._onZoomEnd,this),r.whenReady(this._onZoomEnd,this))}Wt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){De(this._map._container,"leaflet-grab"),De(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var r=this._map;if(r._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var u=pt(this._map.options.maxBounds);this._offsetLimit=Q(this._map.latLngToContainerPoint(u.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(u.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;r.fire("movestart").fire("dragstart"),r.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(r){if(this._map.options.inertia){var u=this._lastTime=+new Date,f=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(f),this._times.push(u),this._prunePositions(u)}this._map.fire("move",r).fire("drag",r)},_prunePositions:function(r){for(;this._positions.length>1&&r-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var r=this._map.getSize().divideBy(2),u=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=u.subtract(r).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(r,u){return r-(r-u)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var r=this._draggable._newPos.subtract(this._draggable._startPos),u=this._offsetLimit;r.x<u.min.x&&(r.x=this._viscousLimit(r.x,u.min.x)),r.y<u.min.y&&(r.y=this._viscousLimit(r.y,u.min.y)),r.x>u.max.x&&(r.x=this._viscousLimit(r.x,u.max.x)),r.y>u.max.y&&(r.y=this._viscousLimit(r.y,u.max.y)),this._draggable._newPos=this._draggable._startPos.add(r)}},_onPreDragWrap:function(){var r=this._worldWidth,u=Math.round(r/2),f=this._initialWorldOffset,y=this._draggable._newPos.x,E=(y-u+f)%r+u-f,D=(y+u+f)%r-u-f,H=Math.abs(E+f)<Math.abs(D+f)?E:D;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=H},_onDragEnd:function(r){var u=this._map,f=u.options,y=!f.inertia||r.noInertia||this._times.length<2;if(u.fire("dragend",r),y)u.fire("moveend");else{this._prunePositions(+new Date);var E=this._lastPos.subtract(this._positions[0]),D=(this._lastTime-this._times[0])/1e3,H=f.easeLinearity,U=E.multiplyBy(H/D),K=U.distanceTo([0,0]),lt=Math.min(f.inertiaMaxSpeed,K),Et=U.multiplyBy(lt/K),Bt=lt/(f.inertiaDeceleration*H),ee=Et.multiplyBy(-Bt/2).round();!ee.x&&!ee.y?u.fire("moveend"):(ee=u._limitOffset(ee,u.options.maxBounds),St(function(){u.panBy(ee,{duration:Bt,easeLinearity:H,noMoveStart:!0,animate:!0})}))}}});le.addInitHook("addHandler","dragging",_h),le.mergeOptions({keyboard:!0,keyboardPanDelta:80});var vh=O.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(r){this._map=r,this._setPanDelta(r.options.keyboardPanDelta),this._setZoomDelta(r.options.zoomDelta)},addHooks:function(){var r=this._map._container;r.tabIndex<=0&&(r.tabIndex="0"),qt(r,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),ve(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var r=document.body,u=document.documentElement,f=r.scrollTop||u.scrollTop,y=r.scrollLeft||u.scrollLeft;this._map._container.focus(),window.scrollTo(y,f)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(r){var u=this._panKeys={},f=this.keyCodes,y,E;for(y=0,E=f.left.length;y<E;y++)u[f.left[y]]=[-1*r,0];for(y=0,E=f.right.length;y<E;y++)u[f.right[y]]=[r,0];for(y=0,E=f.down.length;y<E;y++)u[f.down[y]]=[0,r];for(y=0,E=f.up.length;y<E;y++)u[f.up[y]]=[0,-1*r]},_setZoomDelta:function(r){var u=this._zoomKeys={},f=this.keyCodes,y,E;for(y=0,E=f.zoomIn.length;y<E;y++)u[f.zoomIn[y]]=r;for(y=0,E=f.zoomOut.length;y<E;y++)u[f.zoomOut[y]]=-r},_addHooks:function(){qt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){ve(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(r){if(!(r.altKey||r.ctrlKey||r.metaKey)){var u=r.keyCode,f=this._map,y;if(u in this._panKeys){if(!f._panAnim||!f._panAnim._inProgress)if(y=this._panKeys[u],r.shiftKey&&(y=B(y).multiplyBy(3)),f.options.maxBounds&&(y=f._limitOffset(B(y),f.options.maxBounds)),f.options.worldCopyJump){var E=f.wrapLatLng(f.unproject(f.project(f.getCenter()).add(y)));f.panTo(E)}else f.panBy(y)}else if(u in this._zoomKeys)f.setZoom(f.getZoom()+(r.shiftKey?3:1)*this._zoomKeys[u]);else if(u===27&&f._popup&&f._popup.options.closeOnEscapeKey)f.closePopup();else return;vr(r)}}});le.addInitHook("addHandler","keyboard",vh),le.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var yh=O.extend({addHooks:function(){qt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ve(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(r){var u=sa(r),f=this._map.options.wheelDebounceTime;this._delta+=u,this._lastMousePos=this._map.mouseEventToContainerPoint(r),this._startTime||(this._startTime=+new Date);var y=Math.max(f-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),y),vr(r)},_performZoom:function(){var r=this._map,u=r.getZoom(),f=this._map.options.zoomSnap||0;r._stop();var y=this._delta/(this._map.options.wheelPxPerZoomLevel*4),E=4*Math.log(2/(1+Math.exp(-Math.abs(y))))/Math.LN2,D=f?Math.ceil(E/f)*f:E,H=r._limitZoom(u+(this._delta>0?D:-D))-u;this._delta=0,this._startTime=null,H&&(r.options.scrollWheelZoom==="center"?r.setZoom(u+H):r.setZoomAround(this._lastMousePos,u+H))}});le.addInitHook("addHandler","scrollWheelZoom",yh);var _g=600;le.mergeOptions({tapHold:bt.touchNative&&bt.safari&&bt.mobile,tapTolerance:15});var bh=O.extend({addHooks:function(){qt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ve(this._map._container,"touchstart",this._onDown,this)},_onDown:function(r){if(clearTimeout(this._holdTimeout),r.touches.length===1){var u=r.touches[0];this._startPos=this._newPos=new ot(u.clientX,u.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(qt(document,"touchend",ui),qt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",u))},this),_g),qt(document,"touchend touchcancel contextmenu",this._cancel,this),qt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function r(){ve(document,"touchend",ui),ve(document,"touchend touchcancel",r)},_cancel:function(){clearTimeout(this._holdTimeout),ve(document,"touchend touchcancel contextmenu",this._cancel,this),ve(document,"touchmove",this._onMove,this)},_onMove:function(r){var u=r.touches[0];this._newPos=new ot(u.clientX,u.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(r,u){var f=new MouseEvent(r,{bubbles:!0,cancelable:!0,view:window,screenX:u.screenX,screenY:u.screenY,clientX:u.clientX,clientY:u.clientY});f._simulated=!0,u.target.dispatchEvent(f)}});le.addInitHook("addHandler","tapHold",bh),le.mergeOptions({touchZoom:bt.touch,bounceAtZoomLimits:!0});var wh=O.extend({addHooks:function(){Wt(this._map._container,"leaflet-touch-zoom"),qt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){De(this._map._container,"leaflet-touch-zoom"),ve(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(r){var u=this._map;if(!(!r.touches||r.touches.length!==2||u._animatingZoom||this._zooming)){var f=u.mouseEventToContainerPoint(r.touches[0]),y=u.mouseEventToContainerPoint(r.touches[1]);this._centerPoint=u.getSize()._divideBy(2),this._startLatLng=u.containerPointToLatLng(this._centerPoint),u.o
vendor: 4,243 bytes, line 56
56ptions.touchZoom!=="center"&&(this._pinchStartLatLng=u.containerPointToLatLng(f.add(y)._divideBy(2))),this._startDist=f.distanceTo(y),this._startZoom=u.getZoom(),this._moved=!1,this._zooming=!0,u._stop(),qt(document,"touchmove",this._onTouchMove,this),qt(document,"touchend touchcancel",this._onTouchEnd,this),ui(r)}},_onTouchMove:function(r){if(!(!r.touches||r.touches.length!==2||!this._zooming)){var u=this._map,f=u.mouseEventToContainerPoint(r.touches[0]),y=u.mouseEventToContainerPoint(r.touches[1]),E=f.distanceTo(y)/this._startDist;if(this._zoom=u.getScaleZoom(E,this._startZoom),!u.options.bounceAtZoomLimits&&(this._zoom<u.getMinZoom()&&E<1||this._zoom>u.getMaxZoom()&&E>1)&&(this._zoom=u._limitZoom(this._zoom)),u.options.touchZoom==="center"){if(this._center=this._startLatLng,E===1)return}else{var D=f._add(y)._divideBy(2)._subtract(this._centerPoint);if(E===1&&D.x===0&&D.y===0)return;this._center=u.unproject(u.project(this._pinchStartLatLng,this._zoom).subtract(D),this._zoom)}this._moved||(u._moveStart(!0,!1),this._moved=!0),ut(this._animRequest);var H=o(u._move,u,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=St(H,this,!0),ui(r)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ut(this._animRequest),ve(document,"touchmove",this._onTouchMove,this),ve(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});le.addInitHook("addHandler","touchZoom",wh),le.BoxZoom=gh,le.DoubleClickZoom=mh,le.Drag=_h,le.Keyboard=vh,le.ScrollWheelZoom=yh,le.TapHold=bh,le.TouchZoom=wh,n.Bounds=Lt,n.Browser=bt,n.CRS=At,n.Canvas=hh,n.Circle=qr,n.CircleMarker=On,n.Class=st,n.Control=cn,n.DivIcon=zn,n.DivOverlay=Mt,n.DomEvent=cu,n.DomUtil=Xa,n.Draggable=Z,n.Evented=ht,n.FeatureGroup=Jt,n.GeoJSON=Dn,n.GridLayer=ii,n.Handler=O,n.Icon=Ti,n.ImageOverlay=Pt,n.LatLng=dt,n.LatLngBounds=yt,n.Layer=An,n.LayerGroup=ns,n.LineUtil=Xn,n.Map=le,n.Marker=Ds,n.Mixin=N,n.Path=tr,n.Point=ot,n.PolyUtil=ct,n.Polygon=ss,n.Polyline=dn,n.Popup=pe,n.PosAnimation=Qa,n.Projection=hn,n.Rectangle=ph,n.Renderer=Zr,n.SVG=ca,n.SVGOverlay=Ht,n.TileLayer=bo,n.Tooltip=ei,n.Transformation=Ne,n.Util=q,n.VideoOverlay=Xt,n.bind=o,n.bounds=Q,n.canvas=dh,n.circle=vo,n.circleMarker=il,n.control=Hr,n.divIcon=as,n.extend=e,n.featureGroup=_o,n.geoJSON=ft,n.geoJson=Ct,n.gridLayer=fg,n.icon=rs,n.imageOverlay=Tt,n.latLng=_t,n.latLngBounds=pt,n.layerGroup=du,n.map=As,n.marker=jr,n.point=B,n.polygon=yo,n.polyline=la,n.popup=Hi,n.rectangle=mg,n.setOptions=C,n.stamp=l,n.svg=fh,n.svgOverlay=Qt,n.tileLayer=uh,n.tooltip=fn,n.transformation=Ie,n.version=s,n.videoOverlay=Rt;var vg=window.L;n.noConflict=function(){return window.L=vg,this},window.L=n})})(oc,oc.exports);var dm=oc.exports;const us=Va(dm);var ld={exports:{}};(function(p,t){(function(n,s){s(t)})(Yo,function(n){var s=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(i){L.Util.setOptions(this,i),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var o=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,o?this._withAnimation:this._noAnimation),this._markerCluster
vendor: 32,620 bytes, line 56
56=o?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(i){if(i instanceof L.LayerGroup)return this.addLayers([i]);if(!i.getLatLng)return this._nonPointGroup.addLayer(i),this.fire("layeradd",{layer:i}),this;if(!this._map)return this._needsClustering.push(i),this.fire("layeradd",{layer:i}),this;if(this.hasLayer(i))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(i,this._maxZoom),this.fire("layeradd",{layer:i}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var o=i,a=this._zoom;if(i.__parent)for(;o.__parent._zoom>=a;)o=o.__parent;return this._currentShownBounds.contains(o.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(i,o):this._animationAddLayerNonAnimated(i,o)),this},removeLayer:function(i){return i instanceof L.LayerGroup?this.removeLayers([i]):(i.getLatLng?this._map?i.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(i)),this._removeLayer(i,!0),this.fire("layerremove",{layer:i}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),i.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(i)&&(this._featureGroup.removeLayer(i),i.clusterShow&&i.clusterShow())):(!this._arraySplice(this._needsClustering,i)&&this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i})):(this._nonPointGroup.removeLayer(i),this.fire("layerremove",{layer:i})),this)},addLayers:function(i,o){if(!L.Util.isArray(i))return this.addLayer(i);var a,l=this._featureGroup,c=this._nonPointGroup,h=this.options.chunkedLoading,g=this.options.chunkInterval,m=this.options.chunkProgress,v=i.length,x=0,C=!0;if(this._map){var k=new Date().getTime(),S=L.bind(function(){var z=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();x<v;x++){if(h&&x%200==0){var R=new Date().getTime()-z;if(g<R)break}if((a=i[x])instanceof L.LayerGroup)C&&(i=i.slice(),C=!1),this._extractNonGroupLayers(a,i),v=i.length;else if(a.getLatLng){if(!this.hasLayer(a)&&(this._addLayer(a,this._maxZoom),o||this.fire("layeradd",{layer:a}),a.__parent&&a.__parent.getChildCount()===2)){var W=a.__parent.getAllChildMarkers(),Y=W[0]===a?W[1]:W[0];l.removeLayer(Y)}}else c.addLayer(a),o||this.fire("layeradd",{layer:a})}m&&m(x,v,new Date().getTime()-k),x===v?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(S,this.options.chunkDelay)},this);S()}else for(var A=this._needsClustering;x<v;x++)(a=i[x])instanceof L.LayerGroup?(C&&(i=i.slice(),C=!1),this._extractNonGroupLayers(a,i),v=i.length):a.getLatLng?this.hasLayer(a)||A.push(a):c.addLayer(a);return this},removeLayers:function(i){var o,a,l=i.length,c=this._featureGroup,h=this._nonPointGroup,g=!0;if(!this._map){for(o=0;o<l;o++)(a=i[o])instanceof L.LayerGroup?(g&&(i=i.slice(),g=!1),this._extractNonGroupLayers(a,i),l=i.length):(this._arraySplice(this._needsClustering,a),h.removeLayer(a),this.hasLayer(a)&&this._needsRemoving.push({layer:a,latlng:a._latlng}),this.fire("layerremove",{layer:a}));return this}if(this._unspiderfy){this._unspiderfy();var m=i.slice(),v=l;for(o=0;o<v;o++)(a=m[o])instanceof L.LayerGroup?(this._extractNonGroupLayers(a,m),v=m.length):this._unspiderfyLayer(a)}for(o=0;o<l;o++)(a=i[o])instanceof L.LayerGroup?(g&&(i=i.slice(),g=!1),this._extractNonGroupLayers(a,i),l=i.length):a.__parent?(this._removeLayer(a,!0,!0),this.fire("layerremove",{layer:a}),c.hasLayer(a)&&(c.removeLayer(a),a.clusterShow&&a.clusterShow())):(h.removeLayer(a),this.fire("layerremove",{layer:a}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(i){i.off(this._childMarkerEventHandlers,this),delete i.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var i=new L.LatLngBounds;this._topClusterLevel&&i.extend(this._topClusterLevel._bounds);for(var o=this._needsClustering.length-1;0<=o;o--)i.extend(this._needsClustering[o].getLatLng());return i.extend(this._nonPointGroup.getBounds()),i},eachLayer:function(i,o){var a,l,c,h=this._needsClustering.slice(),g=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(h),l=h.length-1;0<=l;l--){for(a=!0,c=g.length-1;0<=c;c--)if(g[c].layer===h[l]){a=!1;break}a&&i.call(o,h[l])}this._nonPointGroup.eachLayer(i,o)},getLayers:function(){var i=[];return this.eachLayer(function(o){i.push(o)}),i},getLayer:function(i){var o=null;return i=parseInt(i,10),this.eachLayer(function(a){L.stamp(a)===i&&(o=a)}),o},hasLayer:function(i){if(!i)return!1;var o,a=this._needsClustering;for(o=a.length-1;0<=o;o--)if(a[o]===i)return!0;for(o=(a=this._needsRemoving).length-1;0<=o;o--)if(a[o].layer===i)return!1;return!(!i.__parent||i.__parent._group!==this)||this._nonPointGroup.hasLayer(i)},zoomToShowLayer:function(i,o){var a=this._map;typeof o!="function"&&(o=function(){});var l=function(){!a.hasLayer(i)&&!a.hasLayer(i.__parent)||this._inZoomAnimation||(this._map.off("moveend",l,this),this.off("animationend",l,this),a.hasLayer(i)?o():i.__parent._icon&&(this.once("spiderfied",o,this),i.__parent.spiderfy()))};i._icon&&this._map.getBounds().contains(i.getLatLng())?o():i.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",l,this),this._map.panTo(i.getLatLng())):(this._map.on("moveend",l,this),this.on("animationend",l,this),i.__parent.zoomToBounds())},onAdd:function(i){var o,a,l;if(this._map=i,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(i),this._nonPointGroup.addTo(i),this._gridClusters||this._generateInitialClusters(),this._maxLat=i.options.crs.projection.MAX_LATITUDE,o=0,a=this._needsRemoving.length;o<a;o++)(l=this._needsRemoving[o]).newlatlng=l.layer._latlng,l.layer._latlng=l.latlng;for(o=0,a=this._needsRemoving.length;o<a;o++)l=this._needsRemoving[o],this._removeLayer(l.layer,!0),l.layer._latlng=l.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),a=this._needsClustering,this._needsClustering=[],this.addLayers(a,!0)},onRemove:function(i){i.off("zoomend",this._zoomEnd,this),i.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(i){for(var o=i;o&&!o._icon;)o=o.__parent;return o||null},_arraySplice:function(i,o){for(var a=i.length-1;0<=a;a--)if(i[a]===o)return i.splice(a,1),!0},_removeFromGridUnclustered:function(i,o){for(var a=this._map,l=this._gridUnclustered,c=Math.floor(this._map.getMinZoom());c<=o&&l[o].removeObject(i,a.project(i.getLatLng(),o));o--);},_childMarkerDragStart:function(i){i.target.__dragStart=i.target._latlng},_childMarkerMoved:function(i){if(!this._ignoreMove&&!i.target.__dragStart){var o=i.target._popup&&i.target._popup.isOpen();this._moveChild(i.target,i.oldLatLng,i.latlng),o&&i.target.openPopup()}},_moveChild:function(i,o,a){i._latlng=o,this.removeLayer(i),i._latlng=a,this.addLayer(i)},_childMarkerDragEnd:function(i){var o=i.target.__dragStart;delete i.target.__dragStart,o&&this._moveChild(i.target,o,i.target._latlng)},_removeLayer:function(i,o,a){var l=this._gridClusters,c=this._gridUnclustered,h=this._featureGroup,g=this._map,m=Math.floor(this._map.getMinZoom());o&&this._removeFromGridUnclustered(i,this._maxZoom);var v,x=i.__parent,C=x._markers;for(this._arraySplice(C,i);x&&(x._childCount--,x._boundsNeedUpdate=!0,!(x._zoom<m));)o&&x._childCount<=1?(v=x._markers[0]===i?x._markers[1]:x._markers[0],l[x._zoom].removeObject(x,g.project(x._cLatLng,x._zoom)),c[x._zoom].addObject(v,g.project(v.getLatLng(),x._zoom)),this._arraySplice(x.__parent._childClusters,x),x.__parent._markers.push(v),v.__parent=x.__parent,x._icon&&(h.removeLayer(x),a||h.addLayer(v))):x._iconNeedsUpdate=!0,x=x.__parent;delete i.__parent},_isOrIsParent:function(i,o){for(;o;){if(i===o)return!0;o=o.parentNode}return!1},fire:function(i,o,a){if(o&&o.layer instanceof L.MarkerCluster){if(o.originalEvent&&this._isOrIsParent(o.layer._icon,o.originalEvent.relatedTarget))return;i="cluster"+i}L.FeatureGroup.prototype.fire.call(this,i,o,a)},listens:function(i,o){return L.FeatureGroup.prototype.listens.call(this,i,o)||L.FeatureGroup.prototype.listens.call(this,"cluster"+i,o)},_defaultIconCreateFunction:function(i){var o=i.getChildCount(),a=" marker-cluster-";return a+=o<10?"small":o<100?"medium":"large",new L.DivIcon({html:"<div><span>"+o+"</span></div>",className:"marker-cluster"+a,iconSize:new L.Point(40,40)})},_bindEvents:function(){var i=this._map,o=this.options.spiderfyOnMaxZoom,a=this.options.showCoverageOnHover,l=this.options.zoomToBoundsOnClick,c=this.options.spiderfyOnEveryZoom;(o||l||c)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),a&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),i.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(i){var o=i.layer,a=o;if(i.type!=="clusterkeypress"||!i.originalEvent||i.originalEvent.keyCode===13){for(;a._childClusters.length===1;)a=a._childClusters[0];a._zoom===this._maxZoom&&a._childCount===o._childCount&&this.options.spiderfyOnMaxZoom?o.spiderfy():this.options.zoomToBoundsOnClick&&o.zoomToBounds(),this.options.spiderfyOnEveryZoom&&o.spiderfy(),i.originalEvent&&i.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(i){var o=this._map;this._inZoomAnimation||(this._shownPolygon&&o.removeLayer(this._shownPolygon),2<i.layer.getChildCount()&&i.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(i.layer.getConvexHull(),this.options.polygonOptions),o.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var i=this.options.spiderfyOnMaxZoom,o=this.options.showCoverageOnHover,a=this.options.zoomToBoundsOnClick,l=this.options.spiderfyOnEveryZoom,c=this._map;(i||a||l)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),o&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),c.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var i=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,i),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),i),this._currentShownBounds=i}},_generateInitialClusters:function(){var i=Math.ceil(this._map.getMaxZoom()),o=Math.floor(this._map.getMinZoom()),a=this.options.maxClusterRadius,l=a;typeof a!="function"&&(l=function(){return a}),this.options.disableClusteringAtZoom!==null&&(i=this.options.disableClusteringAtZoom-1),this._maxZoom=i,this._gridClusters={},this._gridUnclustered={};for(var c=i;o<=c;c--)this._gridClusters[c]=new L.DistanceGrid(l(c)),this._gridUnclustered[c]=new L.DistanceGrid(l(c));this._topClusterLevel=new this._markerCluster(this,o-1)},_addLayer:function(i,o){var a,l,c=this._gridClusters,h=this._gridUnclustered,g=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(i),i.on(this._childMarkerEventHandlers,this);g<=o;o--){a=this._map.project(i.getLatLng(),o);var m=c[o].getNearObject(a);if(m)return m._addChild(i),void(i.__parent=m);if(m=h[o].getNearObject(a)){var v=m.__parent;v&&this._removeLayer(m,!1);var x=new this._markerCluster(this,o,m,i);c[o].addObject(x,this._map.project(x._cLatLng,o)),m.__parent=x;var C=i.__parent=x;for(l=o-1;l>v._zoom;l--)C=new this._markerCluster(this,l,C),c[l].addObject(C,this._map.project(m.getLatLng(),l));return v._addChild(C),void this._removeFromGridUnclustered(m,o)}h[o].addObject(i,a)}this._topClusterLevel._addChild(i),i.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(i){i instanceof L.MarkerCluster&&i._iconNeedsUpdate&&i._updateIcon()})},_enqueue:function(i){this._queue.push(i),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var i=0;i<this._queue.length;i++)this._queue[i].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var i=Math.round(this._map._zoom);this._processQueue(),this._zoom<i&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,i)):this._zoom>i?(this._animationStart(),this._animationZoomOut(this._zoom,i)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(i){var o=this._maxLat;return o!==void 0&&(i.getNorth()>=o&&(i._northEast.lat=1/0),i.getSouth()<=-o&&(i._southWest.lat=-1/0)),i},_animationAddLayerNonAnimated:function(i,o){if(o===i)this._featureGroup.addLayer(i);else if(o._childCount===2){o._addToMap();var a=o.getAllChildMarkers();this._featureGroup.removeLayer(a[0]),this._featureGroup.removeLayer(a[1])}else o._updateIcon()},_extractNonGroupLayers:function(i,o){var a,l=i.getLayers(),c=0;for(o=o||[];c<l.length;c++)(a=l[c])instanceof L.LayerGroup?this._extractNonGroupLayers(a,o):o.push(a);return o},_overrideMarkerIcon:function(i){return i.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[i]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(i,o){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),i),this._topClusterLevel._recursivelyAddChildrenToMap(null,o,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(i,o){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),i),this._topClusterLevel._recursivelyAddChildrenToMap(null,o,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(i,o){this._animationAddLayerNonAnimated(i,o)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(i,o){var a,l=this._getExpandedVisibleBounds(),c=this._featureGroup,h=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(l,i,h,function(g){var m,v=g._latlng,x=g._markers;for(l.contains(v)||(v=null),g._isSingleParent()&&i+1===o?(c.removeLayer(g),g._recursivelyAddChildrenToMap(null,o,l)):(g.clusterHide(),g._recursivelyAddChildrenToMap(v,o,l)),a=x.length-1;0<=a;a--)m=x[a],l.contains(m._latlng)||c.removeLayer(m)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(l,o),c.eachLayer(function(g){g instanceof L.MarkerCluster||!g._icon||g.clusterShow()}),this._topClusterLevel._recursively(l,i,o,function(g){g._recursivelyRestoreChildPositions(o)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(l,i,h,function(g){c.removeLayer(g),g.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(i,o){this._animationZoomOutSingle(this._topClusterLevel,i-1,o),this._topClusterLevel._recursivelyAddChildrenToMap(null,o,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),i,this._getExpandedVisibleBounds())},_animationAddLayer:function(i,o){var a=this,l=this._featureGroup;l.addLayer(i),o!==i&&(2<o._childCount?(o._updateIcon(),this._forceLayout(),this._animationStart(),i._setPos(this._map.latLngToLayerPoint(o.getLatLng())),i.clusterHide(),this._enqueue(function(){l.removeLayer(i),i.clusterShow(),a._animationEnd()})):(this._forceLayout(),a._animationStart(),a._animationZoomOutSingle(o,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(i,o,a){var l=this._getExpandedVisibleBounds(),c=Math.floor(this._map.getMinZoom());i._recursivelyAnimateChildrenInAndAddSelfToMap(l,c,o+1,a);var h=this;this._forceLayout(),i._recursivelyBecomeVisible(l,a),this._enqueue(function(){if(i._childCount===1){var g=i._markers[0];this._ignoreMove=!0,g.setLatLng(g.getLatLng()),this._ignoreMove=!1,g.clusterShow&&g.clusterShow()}else i._recursively(l,a,c,function(m){m._recursivelyRemoveChildrenFromMap(l,c,o+1)});h._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(i){return new L.MarkerClusterGroup(i)};var e=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(i,o,a,l){L.Marker.prototype.initialize.call(this,a?a._cLatLng||a.getLatLng():new L.LatLng(0,0),{icon:this,pane:i.options.clusterPane}),this._group=i,this._zoom=o,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,a&&this._addChild(a),l&&this._addChild(l)},getAllChildMarkers:function(i,o){i=i||[];for(var a=this._childClusters.length-1;0<=a;a--)this._childClusters[a].getAllChildMarkers(i,o);for(var l=this._markers.length-1;0<=l;l--)o&&this._markers[l].__dragStart||i.push(this._markers[l]);return i},getChildCount:function(){return this._childCount},zoomToBounds:function(i){for(var o,a=this._childClusters.slice(),l=this._group._map,c=l.getBoundsZoom(this._bounds),h=this._zoom+1,g=l.getZoom();0<a.length&&h<c;){h++;var m=[];for(o=0;o<a.length;o++)m=m.concat(a[o]._childClusters);a=m}h<c?this._group._map.setView(this._latlng,h):c<=g?this._group._map.setView(this._latlng,g+1):this._group._map.fitBounds(this._bounds,i)},getBounds:function(){var i=new L.LatLngBounds;return i.extend(this._bounds),i},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(i,o){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(i),i instanceof L.MarkerCluster?(o||(this._childClusters.push(i),i.__parent=this),this._childCount+=i._childCount):(o||this._markers.push(i),this._childCount++),this.__parent&&this.__parent._addChild(i,!0)},_setClusterCenter:function(i){this._cLatLng||(this._cLatLng=i._cLatLng||i._latlng)},_resetBounds:function(){var i=this._bounds;i._southWest&&(i._southWest.lat=1/0,i._southWest.lng=1/0),i._northEast&&(i._northEast.lat=-1/0,i._northEast.lng=-1/0)},_recalculateBounds:function(){var i,o,a,l,c=this._markers,h=this._childClusters,g=0,m=0,v=this._childCount;if(v!==0){for(this._resetBounds(),i=0;i<c.length;i++)a=c[i]._latlng,this._bounds.extend(a),g+=a.lat,m+=a.lng;for(i=0;i<h.length;i++)(o=h[i])._boundsNeedUpdate&&o._recalculateBounds(),this._bounds.extend(o._bounds),a=o._wLatLng,l=o._childCount,g+=a.lat*l,m+=a.lng*l;this._latlng=this._wLatLng=new L.LatLng(g/v,m/v),this._boundsNeedUpdate=!1}},_addToMap:function(i){i&&(this._backupLatlng=this._latlng,this.setLatLng(i)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(i,o,a){this._recursively(i,this._group._map.getMinZoom(),a-1,function(l){var c,h,g=l._markers;for(c=g.length-1;0<=c;c--)(h=g[c])._icon&&(h._setPos(o),h.clusterHide())},function(l){var c,h,g=l._childClusters;for(c=g.length-1;0<=c;c--)(h=g[c])._icon&&(h._setPos(o),h.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(i,o,a,l){this._recursively(i,l,o,function(c){c._recursivelyAnimateChildrenIn(i,c._group._map.latLngToLayerPoint(c.getLatLng()).round(),a),c._isSingleParent()&&a-1===l?(c.clusterShow(),c._recursivelyRemoveChildrenFromMap(i,o,a)):c.clusterHide(),c._addToMap()})},_recursivelyBecomeVisible:function(i,o){this._recursively(i,this._group._map.getMinZoom(),o,null,function(a){a.clusterShow()})},_recursivelyAddChildrenToMap:function(i,o,a){this._recursively(a,this._group._map.getMinZoom()-1,o,function(l){if(o!==l._zoom)for(var c=l._markers.length-1;0<=c;c--){var h=l._markers[c];a.contains(h._latlng)&&(i&&(h._backupLatlng=h.getLatLng(),h.setLatLng(i),h.clusterHide&&h.clusterHide()),l._group._featureGroup.addLayer(h))}},function(l){l._addToMap(i)})},_recursivelyRestoreChildPositions:function(i){for(var o=this._markers.length-1;0<=o;o--){var a=this._markers[o];a._backupLatlng&&(a.setLatLng(a._backupLatlng),delete a._backupLatlng)}if(i-1===this._zoom)for(var l=this._childClusters.length-1;0<=l;l--)this._childClusters[l]._restorePosition();else for(var c=this._childClusters.length-1;0<=c;c--)this._childClusters[c]._recursivelyRestoreChildPositions(i)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(i,o,a,l){var c,h;this._recursively(i,o-1,a-1,function(g){for(h=g._markers.length-1;0<=h;h--)c=g._markers[h],l&&l.contains(c._latlng)||(g._group._featureGroup.removeLayer(c),c.clusterShow&&c.clusterShow())},function(g){for(h=g._childClusters.length-1;0<=h;h--)c=g._childClusters[h],l&&l.contains(c._latlng)||(g._group._featureGroup.removeLayer(c),c.clusterShow&&c.clusterShow())})},_recursively:function(i,o,a,l,c){var h,g,m=this._childClusters,v=this._zoom;if(o<=v&&(l&&l(this),c&&v===a&&c(this)),v<o||v<a)for(h=m.length-1;0<=h;h--)(g=m[h])._boundsNeedUpdate&&g._recalculateBounds(),i.intersects(g._bounds)&&g._recursively(i,o,a,l,c)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var i=this.options.opacity;return this.setOpacity(0),this.options.opacity=i,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(i){this._cellSize=i,this._sqCellSize=i*i,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(i,o){var a=this._getCoord(o.x),l=this._getCoord(o.y),c=this._grid,h=c[l]=c[l]||{},g=h[a]=h[a]||[],m=L.Util.stamp(i);this._objectPoint[m]=o,g.push(i)},updateObject:function(i,o){this.removeObject(i),this.addObject(i,o)},removeObject:function(i,o){var a,l,c=this._getCoord(o.x),h=this._getCoord(o.y),g=this._grid,m=g[h]=g[h]||{},v=m[c]=m[c]||[];for(delete this._objectPoint[L.Util.stamp(i)],a=0,l=v.length;a<l;a++)if(v[a]===i)return v.splice(a,1),l===1&&delete m[c],!0},eachObject:function(i,o){var a,l,c,h,g,m,v=this._grid;for(a in v)for(l in g=v[a])for(c=0,h=(m=g[l]).length;c<h;c++)i.call(o,m[c])&&(c--,h--)},getNearObject:function(i){var o,a,l,c,h,g,m,v,x=this._getCoord(i.x),C=this._getCoord(i.y),k=this._objectPoint,S=this._sqCellSize,A=null;for(o=C-1;o<=C+1;o++)if(c=this._grid[o]){for(a=x-1;a<=x+1;a++)if(h=c[a])for(l=0,g=h.length;l<g;l++)m=h[l],((v=this._sqDist(k[L.Util.stamp(m)],i))<S||v<=S&&A===null)&&(S=v,A=m)}return A},_getCoord:function(i){var o=Math.floor(i/this._cellSize);return isFinite(o)?o:i},_sqDist:function(i,o){var a=o.x-i.x,l=o.y-i.y;return a*a+l*l}},L.QuickHull={getDistant:function(i,o){var a=o[1].lat-o[0].lat;return(o[0].lng-o[1].lng)*(i.lat-o[0].lat)+a*(i.lng-o[0].lng)},findMostDistantPointFromBaseLine:function(i,o){var a,l,c,h=0,g=null,m=[];for(a=o.length-1;0<=a;a--)l=o[a],0<(c=this.getDistant(l,i))&&(m.push(l),h<c&&(h=c,g=l));return{maxPoint:g,newPoints:m}},buildConvexHull:function(i,o){var a=[],l=this.findMostDistantPointFromBaseLine(i,o);return l.maxPoint?a=(a=a.concat(this.buildConvexHull([i[0],l.maxPoint],l.newPoints))).concat(this.buildConvexHull([l.maxPoint,i[1]],l.newPoints)):[i[0]]},getConvexHull:function(i){var o,a=!1,l=!1,c=!1,h=!1,g=null,m=null,v=null,x=null,C=null,k=null;for(o=i.length-1;0<=o;o--){var S=i[o];(a===!1||S.lat>a)&&(a=(g=S).lat),(l===!1||S.lat<l)&&(l=(m=S).lat),(c===!1||S.lng>c)&&(c=(v=S).lng),(h===!1||S.lng<h)&&(h=(x=S).lng)}return C=l!==a?(k=m,g):(k=x,v),[].concat(this.buildConvexHull([k,C],i),this.buildConvexHull([C,k],i))}},L.MarkerCluster.include({getConvexHull:function(){var i,o,a=this.getAllChildMarkers(),l=[];for(o=a.length-1;0<=o;o--)i=a[o].getLatLng(),l.push(i);return L.QuickHull.getConvexHull(l)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var i,o=this.getAllChildMarkers(null,!0),a=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),i=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(o.length,a):o.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(o.length,a):(a.y+=10,this._generatePointsCircle(o.length,a)),this._animationSpiderfy(o,i)}},unspiderfy:function(i){this._group._inZoomAnimation||(this._animationUnspiderfy(i),this._group._spiderfied=null)},_generatePointsCircle:function(i,o){var a,l,c=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+i)/this._2PI,h=this._2PI/i,g=[];for(c=Math.max(c,35),g.length=i,a=0;a<i;a++)l=this._circleStartAngle+a*h,g[a]=new L.Point(o.x+c*Math.cos(l),o.y+c*Math.sin(l))._round();return g},_generatePointsSpiral:function(i,o){var a,l=this._group.options.spiderfyDistanceMultiplier,c=l*this._spiralLengthStart,h=l*this._spiralFootSeparation,g=l*this._spiralLengthFactor*this._2PI,m=0,v=[];for(a=v.length=i;0<=a;a--)a<i&&(v[a]=new L.Point(o.x+c*Math.cos(m),o.y+c*Math.sin(m))._round()),c+=g/(m+=h/c+5e-4*a);return v},_noanimationUnspiderfy:function(){var i,o,a=this._group,l=a._map,c=a._featureGroup,h=this.getAllChildMarkers(null,!0);for(a._ignoreMove=!0,this.setOpacity(1),o=h.length-1;0<=o;o--)i=h[o],c.removeLayer(i),i._preSpiderfyLatlng&&(i.setLatLng(i._preSpiderfyLatlng),delete i._preSpiderfyLatlng),i.setZIndexOffset&&i.setZIndexOffset(0),i._spiderLeg&&(l.removeLayer(i._spiderLeg),delete i._spiderLeg);a.fire("unspiderfied",{cluster:this,markers:h}),a._ignoreMove=!1,a._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(i,o){var a,l,c,h,g=this._group,m=g._map,v=g._featureGroup,x=this._group.options.spiderLegPolylineOptions;for(g._ignoreMove=!0,a=0;a<i.length;a++)h=m.layerPointToLatLng(o[a]),l=i[a],c=new L.Polyline([this._latlng,h],x),m.addLayer(c),l._spiderLeg=c,l._preSpiderfyLatlng=l._latlng,l.setLatLng(h),l.setZIndexOffset&&l.setZIndexOffset(1e6),v.addLayer(l);this.setOpacity(.3),g._ignoreMove=!1,g.fire("spiderfied",{cluster:this,markers:i})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(i,o){var a,l,c,h,g,m,v=this,x=this._group,C=x._map,k=x._featureGroup,S=this._latlng,A=C.latLngToLayerPoint(S),z=L.Path.SVG,R=L.extend({},this._group.options.spiderLegPolylineOptions),W=R.opacity;for(W===void 0&&(W=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),z?(R.opacity=0,R.className=(R.className||"")+" leaflet-cluster-spider-leg"):R.opacity=W,x._ignoreMove=!0,a=0;a<i.length;a++)l=i[a],m=C.layerPointToLatLng(o[a]),c=new L.Polyline([S,m],R),C.addLayer(c),l._spiderLeg=c,z&&(g=(h=c._path).getTotalLength()+.1,h.style.strokeDasharray=g,h.style.strokeDashoffset=g),l.setZIndexOffset&&l.setZIndexOffset(1e6),l.clusterHide&&l.clusterHide(),k.addLayer(l),l._setPos&&l._setPos(A);for(x._forceLayout(),x._animationStart(),a=i.length-1;0<=a;a--)m=C.layerPointToLatLng(o[a]),(l=i[a])._preSpiderfyLatlng=l._latlng,l.setLatLng(m),l.clusterShow&&l.clusterShow(),z&&((h=(c=l._spiderLeg)._path).style.strokeDashoffset=0,c.setStyle({opacity:W}));this.setOpacity(.3),x._ignoreMove=!1,setTimeout(function(){x._animationEnd(),x.fire("spiderfied",{cluster:v,markers:i})},200)},_animationUnspiderfy:function(i){var o,a,l,c,h,g,m=this,v=this._group,x=v._map,C=v._featureGroup,k=i?x._latLngToNewLayerPoint(this._latlng,i.zoom,i.center):x.latLngToLayerPoint(this._latlng),S=this.getAllChildMarkers(null,!0),A=L.Path.SVG;for(v._ignoreMove=!0,v._animationStart(),this.setOpacity(1),a=S.length-1;0<=a;a--)(o=S[a])._preSpiderfyLatlng&&(o.closePopup(),o.setLatLng(o._preSpiderfyLatlng),delete o._preSpiderfyLatlng,g=!0,o._setPos&&(o._setPos(k),g=!1),o.clusterHide&&(o.clusterHide(),g=!1),g&&C.removeLayer(o),A&&(h=(c=(l=o._spiderLeg)._path).getTotalLength()+.1,c.style.strokeDashoffset=h,l.setStyle({opacity:0})));v._ignoreMove=!1,setTimeout(function(){var z=0;for(a=S.length-1;0<=a;a--)(o=S[a])._spiderLeg&&z++;for(a=S.length-1;0<=a;a--)(o=S[a])._spiderLeg&&(o.clusterShow&&o.clusterShow(),o.setZIndexOffset&&o.setZIndexOffset(0),1<z&&C.removeLayer(o),x.removeLayer(o._spiderLeg),delete o._spiderLeg);v._animationEnd(),v.fire("unspiderfied",{cluster:m,markers:S})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(i){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(i))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(i){this._spiderfied&&this._spiderfied.unspiderfy(i)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(i){i._spiderLeg&&(this._featureGroup.removeLayer(i),i.clusterShow&&i.clusterShow(),i.setZIndexOffset&&i.setZIndexOffset(0),this._map.removeLayer(i._spiderLeg),delete i._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(i){return i?i instanceof L.MarkerClusterGroup?i=i._topClusterLevel.getAllChildMarkers():i instanceof L.LayerGroup?i=i._layers:i instanceof L.MarkerCluster?i=i.getAllChildMarkers():i instanceof L.Marker&&(i=[i]):i=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(i),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(i),this},_flagParentsIconsNeedUpdate:function(i){var o,a;for(o in i)for(a=i[o].__parent;a;)a._iconNeedsUpdate=!0,a=a.__parent},_refreshSingleMarkerModeMarkers:function(i){var o,a;for(o in i)a=i[o],this.hasLayer(a)&&a.setIcon(this._overrideMarkerIcon(a))}}),L.Marker.include({refreshIconOptions:function(i,o){var a=this.options.icon;return L.setOptions(a,i),this.setIcon(a),o&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),n.MarkerClusterGroup=s,n.MarkerCluster=e,Object.defineProperty(n,"__esModule",{value:!0})})}
56)(ld,ld.exports);class $c{constructor(t,{center:n=[50.835432306955276,4.281921386718751],zoomLevel:s=11,minZoomLevel:e=0,maxZoomLevel:i=18,showZoomControls:o=!0,allowZoom:a=!0,useClusters:l=!0,maxPopUpWidth:c=300,getPopupContentFunction:h=null,onMarkerClickFunction:g=null}){this.map=null,this.itemsCoordinates=[],this.mapID=t,this.center=n,this.zoomLevel=s,this.minZoomLevel=e,this.maxZoomLevel=i,this.showZoomControls=o,this.allowZoom=a,this.useClusters=l,this.maxPopUpWidth=c,this.getPopupContent=h,this.onMarkerClickFunction=g,this.useClusters?this.markers=us.markerClusterGroup():this.markers=us.layerGroup()}displayMap(){this.map&&this.map.remove(),this.map=us.map(this.mapID,{center:us.latLng(this.center),zoom:this.zoomLevel,zoomControl:this.showZoomControls,scrollWheelZoom:this.allowZoom}),us.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',minZoom:this.minZoomLevel,maxZoom:this.maxZoomLevel}).addTo(this.map),this.showZoomControls&&(this.setControlPosition(),$(window).on("resize",t=>{this.setControlPosition()}))}displayMarkers(t){this.itemsCoordinates=[],t.map(n=>{this.itemsCoordinates.push([n.lat,n.lng]);const s=this.addMarker(n);s.on("click",()=>{this.onMarkerClickFunction?this.onMarkerClickFunction(n):this.centerOnMarker([n.lat,n.lng])});const e=s.getPopup();e&&e.on("remove",()=>{this.fitMarkers()}),this.useClusters?this.markers.addLayer(s):s.addTo(this.markers)}),this.map.addLayer(this.markers),this.fitMarkers()}fitMarkers(){const t=us.latLngBounds(this.itemsCoordinates);this.map.fitBounds(t)}centerOnMarker(t,n=14,s=!1){s?this.map.flyTo(t,n,{duration:.6}):this.map.setView(t,n)}addMarker(t){const n=t.lat,s=t.lng,e=t.iconColor,i=us.divIcon({className:"custom-div-icon",html:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="${e}"><path d="M16 0c6.9 0 12.5 5.6 12.5 12.6S22.3 25.1 16 32C10.2 25.1 3.5 19.6 3.5 12.6 3.5 5.6 9.1 0 16 0z"/></svg><span class="sr-only">${t.title}</span>`,iconSize:[32,32],iconAnchor:[16,16]}),o=us.marker([n,s],{icon:i});if(this.getPopupContent){const a=this.getPopupContent(t);o.bindPopup(a,{maxWidth:this.maxPopUpWidth})}return o}setControlPosition(){this.map.zoomControl.setPosition(window.innerWidth<1024?"bottomright":"topright")}}let vl=null;$(document).ready(function(){if($("#mini-map").length){vl=new $c("mini-map",{center:[50.83619118992122,4.348182678222657],zoomLevel:13,showZoomControls:!1,useClusters:!1,maxPopUpWidth:window.innerWidth>=1024?670:300,getPopupContentFunction:pm}),vl.displayMap();const p=fm();vl.displayMarkers(p),$(window).on("resize",()=>vl.fitMarkers())}});function fm(){const p=[];return $("#map-items li").each((t,n)=>{p.push({title:$(n).data("title"),description:$(n).find(".description").text(),lat:$(n).data("lat"),lng:$(n).data("lng"),iconColor:$(n).data("iconColor"),video:$(n).data("video"),preview:$(n).data("preview")})}),p}function pm(p){let t="",n="";p.preview&&(t=`<img src="${p.preview}" alt="" class="object-cover h-full w-full">`),p.video!==""&&(n=`<a href="${p.video}" target="_blank" data-fancybox class="absolute ease-all flex items-center justify-center inset-0 group-hover/play:bg-black/50 bg-black/40 z-1">
57			<span class="sr-only">Voir la vidéo</span>
58			<span class="flex items-center justify-center ease-all group-hover/play:bg-white/20 w-14 h-14 rounded-full">
59				<svg class="fill-white w-6 h-6 !ml-1.5 ease-all group-hover/play:fill-primary">
60					<use xlink:href="#play"></use>
61				</svg>
62			</span>
63		</a>`);let s="";return(t!=""||n!="")&&(s=`<div class="bg-gray-300 z-1 aspect-[1.08] group/play shrink-0 flex items-center justify-center w-full max-rg:h-[196px] rg:w-[214px] relative">
64			${t}
65			${n}
66		</div>`),`<div class="relative group p-6 gap-4 rg:py-12 rg:pt-16 rg:px-8 flex max-rg:flex-col rg:gap-6">
67		<div>
68			<p class="text-primary text-xl font-salmond font-semibold">${p.title}</p>
69			<p class="text-base rg:text-lg text-black font-normal font-outfit">${p.description}</p>
70		</div>
71		${s}
72	</div>`}let _a=null;$(document).ready(function(){if($("#about-map").length){_a=new $c("about-map",{center:[50.83619118992122,4.348182678222657],zoomLevel:13,showZoomControls:!1,allowZoom:!0,useClusters:!1,onMarkerClickFunction:_m}),_a.displayMap();const p=gm();_a.displayMarkers(p),$(window).on("resize",()=>_a.fitMarkers()),mm()}});function gm(){const p=[];return $("#map-items li").each((t,n)=>
72{p.push({title:$(n).data("title"),lat:$(n).data("lat"),lng:$(n).data("lng"),iconColor:$(n).data("iconColor")})}),p}function mm(){$(".focus-marker-btn").on("click",p=>{const t=p.currentTarget,n=parseFloat($(t).parents(".map-item").data("lat")),s=parseFloat($(t).parents(".map-item").data("lng"));_a.centerOnMarker([n,s],15,!0)})}function _m(p){const t=$(".map-item").filter(function(o,a){return $(a).data("title")===p.title}),n=$("#about-map").prop("clientHeight");let s=0;$(".map-item").each((o,a)=>{if($(a).attr("id")==$(t).attr("id"))return!1;s+=$(a).prop("clientHeight")});const e=$(t).offset().top;let i=e-30;s>n&&(i=e-100*$(t).index()),window.scrollTo({top:i,behavior:"smooth"})}$(document).ready(function(){$(".custom-select").select2({width:"resolve"}),$(".custom-select").on("select2:open",t=>{$(t.target).parent().prev("label").addClass("selected")}).on("select2:close",t=>{const n=$(t.target).parent().prev("label");$(t.target.selectedOptions).length===0&&n.removeClass("selected")}),$(".custom-select-field").each((t,n)=>{$(n).find(".select2-selection__choice").length&&($(n).find("label").addClass("selected"),p($(n).find(".custom-select")))});function p(t){const n=$(t).attr("data-name"),s=$(t).siblings("span.select2").find("ul"),e=$(s).find("li").length-1,i=$(s).find(".select2-selection__choice:first-child").clone();$(i).addClass("total-choices"),$(i).attr("title",`${e+1} ${n}`),$(i).find(".select2-selection__choice__display").html(`${e+1} ${n}`),$(i).find(".select2-selection__choice__display").attr("id",""),e>0&&($(s).html(i),$(i).find("button").on("click",o=>{o.preventDefault(),$(t).val(null).trigger("change")}))}$(".custom-select").on("select2:close",t=>{p(t.target)}),$(".custom-dropdown").each((t,n)=>{const s=$(n).find(".dropdown-head"),e=$(n).find(".dropdown-content");s.on("click",i=>{$(n).hasClass("active")?e.slideUp():e.slideDown(),s.find(".custom-icon").toggleClass("rotate-180"),$(n).toggleClass("active")})})});function Pf(p){document.querySelectorAll("video.video-embed__media").forEach(t=>{t!==p&&!t.paused&&t.pause()})}function vm(p,t){t.addEventListener("click",n=>{n.preventDefault(),Pf(null);const s=document.createElement("iframe");s.src=`https://www.youtube-nocookie.com/embed/${encodeURIComponent(p.dataset.youtube)}?autoplay=1&rel=0&playsinline=1`,s.title=p.dataset.label||"",s.allow="autoplay; encrypted-media; picture-in-picture; fullscreen",s.allowFullscreen=!0,s.className="absolute inset-0 z-1 w-full h-full",p.appendChild(s),t.remove()})}function ud(){document.querySelectorAll("[data-video-embed]").forEach(t=>{const n=t.querySelector(".video-embed__media"),s=t.querySelector(".video-embed__play");if(s){if(t.dataset.youtube){vm(t,s);return}n&&(s.addEventListener("click",()=>{Pf(n),n.setAttribute("controls","controls"),s.classList.add("opacity-0","pointer-events-none");const e=n.play();e&&typeof e.catch=="function"&&e.catch(()=>{})}),n.addEventListener("ended",()=>{n.removeAttribute("controls"),n.currentTime=0,s.classList.remove("opacity-0","pointer-events-none")}))}})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ud):ud();var Jd,Qd,tf;const cd={no_results:((Jd=window.translate)==null?void 0:Jd.no_results)||"Aucun résultat trouvé",update_filters:((Qd=window.translate)==null?void 0:Qd.update_filters)||"Veuillez modifier vos critères de recherche",see_details:((tf=window.translate)==null?void 0:tf.see_details)||"Voir la fiche"};let Do=null,Fa=!0;const Oi={layout:"map",page_num:1,locality:[],category:[],loco_member:[]},kf=$("#results-container");$(document).ready(function(){$("#map").length&&(Do=new $c("map",{minZoomLevel:5,useClusters:!1,maxPopUpWidth:window.innerWidth>=1024?360:300,getPopupContentFunction:wm}),Do.displayMap(),Cm(),hd(),console.log(Do.map),setTimeout(function(){console.log("Map loaded"),Do.map.invalidateSize(),no()},300),$("#show-map-btn, #show-list-btn").on("click",ym),$(".reset-filters-btn").on("click",Sm),$(window).on("resize",()=>hd()))});function hd(){window.innerWidth<1440?(console.log("mobile"),$("#apply-filters-btn").removeClass("sr-only"),$("#toggle-filters-btn").on("click",()=>{$("#filters-toggle").hasClass("active")&&no(),$("#filters-toggle").toggleClass("active"),Fa=!$("#filters-toggle").hasClass("active")}),Em()):(console.log("desktop"),$("#apply-filters-btn").addClass("sr-only"),Af())}function ym(p){p.preventDefault();const t=p.currentTarget;$("#annuaire").toggleClass("show_map"),$("#annuaire").toggleClass("show_list"),Oi.layout=$(t).data("layout"),Tm("layout",$(t).data("layout")),$(t).data("layout")=="map"&&no()}function no(){Mf(),Of(!0),$.ajax("/wp-admin/admin-ajax.php",{method:"POST",data:{action:"filter_platforms",page_num:Oi.page_num,locality:Oi.locality,category:Oi.category,loco_member:Oi.loco_member},success(p){let t=JSON.parse(p);bm(t),Fa=!0}})}function bm(p){let t="";Do.markers.clearLayers(),p.platforms.length?($("#no-results").hide(),t=`<div class="grid grid-cols-1 auto-rows-fr md:grid-cols-2 xl:grid-cols-3 gap-y-5 gap-x-3.5">${p.paginated_platforms.join("")}</div>`,p.pagination&&(t+=p.pagination),Do.displayMarkers(p.platforms)):($("#no-results").show(),t=`<div class="flex flex-col w-full h-full gap-3 dark:text-white"><p>${cd.no_results}</p><p class="xl:text-lg text-base font-normal">${cd.update_filters}</p></div>`),$("#items-count").text(p.platforms.length),$(kf).html(t),xm(),$(window).scrollTop(0),Of(!1)}function wm(p){const t=p.img?p.img:'<span class="bg-grey-medium/40 flex items-center justify-center w-20 h-20 shrink-0 pt-1 text-base">Logo</span>',n=p.categories?`<p class="flex gap-2 mt-3 font-light">
73		<svg class="shrink-0 w-4 h-4 !mt-1 fill-current">
74			<use xlink:href="#tag"></use>
75		</svg>
76		<span>${p.categories}</span>
77		</p>`:"",s=p.address?`<p class="flex gap-2 font-light">
78			<svg class="w-4.5 h-4.5 !mt-0.5 fill-current">
79				<use xlink:href="#marker"></use>
80			</svg>
81			<span>${p.address}</span>
82			</p>`:"";let e="";return p.members.length&&(e=`<span class="top-2 left-2 absolute flex items-center gap-1">${p.members.map(o=>`<span class="block w-4.5 h-4.5" style="background-color:${o.color};"><span class="sr-only">${o.name}</span></span>`).join("")}</span>`),`<div class="relative group py-5 px-12">
83				<div class="flex flex-col w-full h-full items-center gap-4">
84					${t}
85					<div class="flex flex-col gap-4 items-center h-full text-base">
86						<p class="text-lg font-semibold text-center">${p.title}</p>
87						<div class="text-grey gap-1.5 --items-center flex flex-col w-full text-base">
88							${s}
89							${n}
90						</div>
91					</div>
92				</div>
93				${e}
94			</div>`}function xm(){$("a.page-numbers").each((p,t)=>{$(t).on("click",n=>{n.preventDefault();const s=new URL(t.href);Oi.page_num=parseInt(s.searchParams.get("paged")),no()})})}function Cm(){new URLSearchParams(window.location.search).forEach((t,n)=>{n.includes("[]")?Oi[n.replace("[]","")].push(t):Oi[n]=t})}function Tm(p,t){let n=new URLSearchParams(window.location.search);n.set(p,t),history.replaceState(null,null,"?"+n.toString())}function Mf(){const p=window.location.origin+window.location.pathname,t=new URL(p);Object.entries(Oi).forEach(([n,s])=>{typeof s=="object"?s.forEach(e=>{t.searchParams.append(`${n}[]`,e)}):t.searchParams.append(`${n}`,s)}),history.pushState(Oi,"",decodeURI(t.toString()))}function Sm(p){p.preventDefault(),Oi.page_num=1,Oi.locality=[],Oi.category=[],Oi.loco_member=[],$(".custom-checkbox").each((t,n)=>$(n).prop("checked",!1)),$(".custom-select-field").each((t,n)=>{$(n).find("label").removeClass("selected"),$(n).find(".custom-select").val(null)}),Fa&&$("#filters-toggle").removeClass("active"),Mf(),$(".custom-select").trigger("change")}function Em(){Af(!0),$(".filters-form").on("submit",p=>{p.preventDefault(),$("#filters-toggle").removeClass("active"),no()})}function Af(p=!1){$(".filters-form .custom-select").on("change",t=>{Fa=!1;const n=t.target,s=[];$(n).find(":selected").each((e,i)=>{s.push(i.value)}),Oi[n.id]=s,p||no()}),$(".filters-form .custom-checkbox").on("change",t=>{Fa=!1,Oi.page_num=1;const n=t.target,s=Oi[$(n).data("id")];if(s.includes(n.value)){const e=s.indexOf(n.value);e!==-1&&s.splice(e,1)}else s.push(n.value);p||no()})}function Of(p){$(loader).toggleClass("hidden",!p),$(kf).toggleClass("pointer-events-none opacity-20",p)}const dd={no_results:translate.no_results,update_filters:translate.update_filters},Xe={page_num:1,sort_by:"",search:"",type:[],topic:[],recipient:[]};let nu=!0;const Df=$("#results");$(document).ready(function(){$("#documents").length&&(Am(),fd(),xs(),$("#search-term").on("input",Lm),$("#sort-by-btn").on("click",Pm),$(".reset-filters-btn").on("click",zm),$(window).on("resize",()=>fd()))});function fd(){window.innerWidth<1440?(console.log("mobile"),$("#apply-filters-btn").removeClass("sr-only"),$("#toggle-filters-btn").on("click",()=>{$("#filters-toggle").hasClass("active")&&xs(),$("#filters-toggle").toggleClass("active"),nu=!$("#filters-toggle").hasClass("active")}),Dm()):(console.log("desktop"),$("#apply-filters-btn").addClass("sr-only"),If())}function Lm(p){const t=p.target;Xe.search=t.value,xs()}function Pm(p){p.preventDefault();const t=p.currentTarget;Xe.sort_by=t.dataset.sortBy,Om("sort_by",Xe.sort_by),t.dataset.sortBy=Xe.sort_by=="asc"?"desc":"asc",t.href=`?sort_by=${t.dataset.sortBy}`,xs();const n=$(t).find(".icon")[0];n.dataset.sortBy=Xe.sort_by}function xs(){zf(),$f(!0),$.ajax("/wp-admin/admin-ajax.php",{method:"POST",data:{action:"filter_documents",page_num:Xe.page_num,sort_by:Xe.sort_by,search:Xe.search,type:Xe.type,topic:Xe.topic,recipient:Xe.recipient},success(p){let t=JSON.parse(p);km(t),nu=!0}})}function km(p){let t="";p.paginated_items.length?(t=`<div class="lg:gap-8 flex flex-col gap-5">${p.paginated_items.join("")}</div>`,p.pagination&&(t+=p.pagination)):t=`<div class="flex flex-col w-full h-full gap-3 dark:text-white"><p>${dd.no_results}</p><p class="xl:text-lg text-base font-normal">${dd.update_filters}</p></div>`,$("#items-count").text(p.total),$(Df).html(t),Mm(),$(window).scrollTop(0),$f(!1)}function Mm(){$("a.page-numbers").each((p,t)=>{$(t).on("click",n=>{n.preventDefault();const s=new URL(t.href);Xe.page_num=parseInt(s.searchParams.get("paged")),xs()})})}function Am(){new URLSearchParams(window.location.search).forEach((t,n)=>{n.includes("[]")?Xe[n.replace("[]","")].push(t):Xe[n]=t})}function Om(p,t){let n=new URLSearchParams(window.location.search);n.set(p,t),history.replaceState(null,null,"?"+n.toString())}function zf(){const p=window.location.origin+window.location.pathname,t=new URL(p);Object.entries(Xe).forEach(([n,s])=>{typeof s=="object"?s.forEach(e=>{t.searchParams.append(`${n}[]`,e)}):s!==""&&t.searchParams.append(`${n}`,s)}),history.pushState(Xe,"",decodeURI(t.toString()))}function Dm(){If(!0),$(".filters-form").on("submit",p=>{p.preventDefault(),$("#filters-toggle").removeClass("active"),xs()})}function If(p=!1){$(".filters-form .custom-checkbox").on("change",t=>{nu=!1,Xe.page_num=1;const n=t.target,s=Xe[$(n).data("id")];if(s.includes(n.value)){const e=s.indexOf(n.value);e!==-1&&s.splice(e,1)}else s.push(n.value);p||xs()})}function zm(p){p.preventDefault(),Xe.page_num=1,Xe.type=[],Xe.topic=[],Xe.recipient=[],$(".custom-checkbox").each((t,n)=>$(n).prop("checked",!1)),$(".custom-select-field").each((t,n)=>{$(n).find("label").removeClass("selected"),$(n).find(".custom-select").val(null)}),nu&&$("#filters-toggle").removeClass("active"),zf(),xs()}function $f(p){$(loader).toggleClass("hidden",!p),$(Df).toggleClass("pointer-events-none opacity-20",p)}const pd={no_results:translate.no_results,update_filters:translate.update_filters},pi={page_num:1,sort_by:"",type:[],topic:[],date:[]};let ru=!0;const Rf=$("#results");$(document).ready(function(){$("#library-articles").length&&(Fm(),gd(),uo(),$("#sort-by-btn").on("click",Im),$(".reset-filters-btn").on("click",Hm),$(window).on("resize",()=>gd()))});function gd(){window.innerWidth<1440?(console.log("mobile"),$("#apply-filters-btn").removeClass("sr-only"),$("#toggle-filters-btn").on("click",()=>{$("#filters-toggle").hasClass("active")&&uo(),$("#filters-toggle").toggleClass("active"),ru=!$("#filters-toggle").hasClass("active")}),Nm()):(console.log("desktop"),$("#apply-filters-btn").addClass("sr-only"),Bf())}function Im(p){p.preventDefault();const t=p.currentTarget;pi.sort_by=t.dataset.sortBy,Bm("sort_by",pi.sort_by),t.dataset.sortBy=pi.sort_by=="asc"?"desc":"asc",t.href=`?sort_by=${t.dataset.sortBy}`,uo();const n=$(t).find(".icon")[0];n.dataset.sortBy=pi.sort_by}function uo(){Ff(),Nf(!0),$.ajax("/wp-admin/admin-ajax.php",{method:"POST",data:{action:"filter_library_articles",page_num:pi.page_num,sort_by:pi.sort_by,type:pi.type,topic:pi.topic,date:pi.date},success(p){let t=JSON.parse(p);$m(t),ru=!0}})}function $m(p){let t="";p.paginated_items.length?(t=`<div class="md:grid-cols-2 rg:grid-cols-3 lg:grid-cols-2 lgx:grid-cols-3 2xl:grid-cols-4 rl:gap-6 md:gap-6 gap-14 gap-y-10 rl:gap-y-14 grid">${p.paginated_items.join("")}</div>`,p.pagination&&(t+=p.pagination)):t=`<div class="flex flex-col w-full h-full gap-3 dark:text-white"><p>${pd.no_results}</p><p class="xl:text-lg text-base font-normal">${pd.update_filters}</p></div>`,$("#items-count").text(p.total),$(Rf).html(t),Rm(),$(window).scrollTop(0),Nf(!1)}function Rm(){$("a.page-numbers").each((p,t)=>{$(t).on("click",n=>{n.preventDefault();const s=new URL(t.href);pi.page_num=parseInt(s.searchParams.get("paged")),uo()})})}function Fm(){new URLSearchParams(window.location.search).forEac
94h((t,n)=>{n.includes("[]")?pi[n.replace("[]","")].push(t):pi[n]=t})}function Bm(p,t){let n=new URLSearchParams(window.location.search);n.set(p,t),history.replaceState(null,null,"?"+n.toString())}function Ff(){const p=window.location.origin+window.location.pathname,t=new URL(p);Object.entries(pi).forEach(([n,s])=>{typeof s=="object"?s.forEach(e=>{t.searchParams.append(`${n}[]`,e)}):s!==""&&t.searchParams.append(`${n}`,s)}),history.pushState(pi,"",decodeURI(t.toString()))}function Nm(){Bf(!0),$(".filters-form").on("submit",p=>{p.preventDefault(),$("#filters-toggle").removeClass("active"),uo()})}function Bf(p=!1){$(".filters-form .custom-checkbox").on("change",t=>{ru=!1,pi.page_num=1;const n=t.target,s=pi[$(n).data("id")];if(s.includes(n.value)){const e=s.indexOf(n.value);e!==-1&&s.splice(e,1)}else s.push(n.value);p||uo()})}function Hm(p){p.preventDefault(),pi.page_num=1,pi.type=[],pi.topic=[],pi.date=[],$(".custom-checkbox").each((t,n)=>$(n).prop("checked",!1)),$(".custom-select-field").each((t,n)=>{$(n).find("label").removeClass("selected"),$(n).find(".custom-select").val(null)}),ru&&$("#filters-toggle").removeClass("active"),Ff(),uo()}function Nf(p){$(loader).toggleClass("hidden",!p),$(Rf).toggleClass("pointer-events-none opacity-20",p)}const jm={no_results:translate.no_results},Rn={page_num:1,order:"asc"},Hf=$("#results");$(document).ready(function(){$("#reports").length&&(Gm(),Rc(),$("#order-btn").on("click",qm))});function qm(p){p.preventDefault();const t=p.currentTarget;Rn.order=Rn.order=="asc"?"desc":"asc",Um("order",Rn.order),t.dataset.order=Rn.order=="asc"?"desc":"asc",t.href=`?order=${Rn.order=="asc"?"desc":"asc"}`,Rc();const n=$(t).find(".icon");$(n).attr("data-order",Rn.order);const s=$(t).find(".label"),e=$(s).data(`order-label-${Rn.order}`);$(s).text(e)}function Rc(){Vm(),jf(!0),$.ajax("/wp-admin/admin-ajax.php",{method:"POST",data:{action:"filter_reports",page_num:Rn.page_num,order:Rn.order},success(p){let t=JSON.parse(p);Zm(t)}})}function Zm(p){let t="";p.paginated_items.length?(t=`<div class="md:grid-cols-2 lg:grid-cols-3 3xl:grid-cols-4 rl:gap-6 md:gap-6 gap-14 gap-y-10 rl:gap-y-14 grid">${p.paginated_items.join("")}</div>`,p.pagination&&(t+=p.pagination)):t=`<div class="flex flex-col w-full h-full gap-3 dark:text-white"><p>${jm.no_results}</p></div>`,$("#items-count").text(p.total),$(Hf).html(t),Wm(),$(window).scrollTop(0),jf(!1)}function Wm(){$("a.page-numbers").each((p,t)=>{$(t).on("click",n=>{n.preventDefault();const s=new URL(t.href);Rn.page_num=parseInt(s.searchParams.get("paged")),Rc()})})}function Gm(){new URLSearchParams(window.location.search).forEach((t,n)=>{Rn[n]=t})}function Um(p,t){let n=new URLSearchParams(window.location.search);n.set(p,t),history.replaceState(null,null,"?"+n.toString())}function Vm(){const p=window.location.origin+window.location.pathname,t=new URL(p);Object.entries(Rn).forEach(([n,s])=>{s!==""&&t.searchParams.append(`${n}`,s)}),history.pushState(Rn,"",decodeURI(t.toString()))}function jf(p){$(loader).toggleClass("hidden",!p),$(Hf).toggleClass("pointer-events-none opacity-20",p)}function Ur(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function qf(p,t){p.prototype=Object.create(t.prototype),p.prototype.constructor=p,p.__proto__=t}/*!
95 * GSAP 3.12.5
96 * https://gsap.com
97 *
98 * @license Copyright 2008-2024, GreenSock. All rights reserved.
99 * Subject to the terms at https://gsap.com/standard-license or for
100 * Club GSAP members, the agreement issued with that membership.
101 * @author: Jack Doyle, [email protected]
102*/var jn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},qo={duration:.5,overwrite:!1,delay:0},Fc,Gi,Be,ur=1e8,Ae=1/ur,ac=Math.PI*2,Ym=ac/4,Xm=0,Zf=Math.sqrt,Km=Math.cos,Jm=Math.sin,Mi=function(t){return typeof t=="string"},Ke=function(t){return typeof t=="function"},Qr=function(t){return typeof t=="number"},Bc=function(t){return typeof t=="undefined"},Fr=function(t){return typeof t=="object"},vn=function(t){return t!==!1},Nc=function(){return typeof window!="undefined"},yl=function(t){return Ke(t)||Mi(t)},Wf=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ui=Array.isArray,lc=/(?:-?\.?\d|\.)+/gi,Gf=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,zo=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Nu=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Uf=/[+-]=-?[.\d]+/,Vf=/[^,'"\[\]\s]+/gi,Qm=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,We,kr,uc,Hc,qn={},Wl={},Yf,Xf=function(t){return(Wl=ro(t,qn))&&xn},jc=function(t,n){return console.warn("Invalid property",t,"set to",n,"Missing plugin? gsap.registerPlugin()")},Ba=function(t,n){return!n&&console.warn(t)},Kf=function(t,n){return t&&(qn[t]=n)&&Wl&&(Wl[t]=n)||qn},Na=function(){return 0},t_={suppressEvents:!0,isStart:!0,kill:!1},Ol={suppressEvents:!0,kill:!1},e_={suppressEvents:!0},qc={},ms=[],cc={},Jf,Fn={},Hu={},md=30,Dl=[],Zc="",Wc=function(t){var n=t[0],s,e;if(Fr(n)||Ke(n)||(t=[t]),!(s=(n._gsap||{}).harness)){for(e=Dl.length;e--&&!Dl[e].targetTest(n););s=Dl[e]}for(e=t.length;e--;)t[e]&&(t[e]._gsap||(t[e]._gsap=new xp(t[e],s)))||t.splice(e,1);return t},Ys=function(t){return t._gsap||Wc(cr(t))[0]._gsap},Qf=function(t,n,s){return(s=t[n])&&Ke(s)?t[n]():Bc(s)&&t.getAttribute&&t.getAttribute(n)||s}
vendor: 45,247 bytes, line 102
102,yn=function(t,n){return(t=t.split(",")).forEach(n)||t},ni=function(t){return Math.round(t*1e5)/1e5||0},ki=function(t){return Math.round(t*1e7)/1e7||0},Ro=function(t,n){var s=n.charAt(0),e=parseFloat(n.substr(2));return t=parseFloat(t),s==="+"?t+e:s==="-"?t-e:s==="*"?t*e:t/e},i_=function(t,n){for(var s=n.length,e=0;t.indexOf(n[e])<0&&++e<s;);return e<s},Gl=function(){var t=ms.length,n=ms.slice(0),s,e;for(cc={},ms.length=0,s=0;s<t;s++)e=n[s],e&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},tp=function(t,n,s,e){ms.length&&!Gi&&Gl(),t.render(n,s,e||Gi&&n<0&&(t._initted||t._startAt)),ms.length&&!Gi&&Gl()},ep=function(t){var n=parseFloat(t);return(n||n===0)&&(t+"").match(Vf).length<2?n:Mi(t)?t.trim():t},ip=function(t){return t},dr=function(t,n){for(var s in n)s in t||(t[s]=n[s]);return t},n_=function(t){return function(n,s){for(var e in s)e in n||e==="duration"&&t||e==="ease"||(n[e]=s[e])}},ro=function(t,n){for(var s in n)t[s]=n[s];return t},_d=function p(t,n){for(var s in n)s!=="__proto__"&&s!=="constructor"&&s!=="prototype"&&(t[s]=Fr(n[s])?p(t[s]||(t[s]={}),n[s]):n[s]);return t},Ul=function(t,n){var s={},e;for(e in t)e in n||(s[e]=t[e]);return s},Ea=function(t){var n=t.parent||We,s=t.keyframes?n_(Ui(t.keyframes)):dr;if(vn(t.inherit))for(;n;)s(t,n.vars.defaults),n=n.parent||n._dp;return t},r_=function(t,n){for(var s=t.length,e=s===n.length;e&&s--&&t[s]===n[s];);return s<0},np=function(t,n,s,e,i){s===void 0&&(s="_first"),e===void 0&&(e="_last");var o=t[e],a;if(i)for(a=n[i];o&&o[i]>a;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=t[s],t[s]=n),n._next?n._next._prev=n:t[e]=n,n._prev=o,n.parent=n._dp=t,n},su=function(t,n,s,e){s===void 0&&(s="_first"),e===void 0&&(e="_last");var i=n._prev,o=n._next;i?i._next=o:t[s]===n&&(t[s]=o),o?o._prev=i:t[e]===n&&(t[e]=i),n._next=n._prev=n.parent=null},ys=function(t,n){t.parent&&(!n||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Xs=function(t,n){if(t&&(!n||n._end>t._dur||n._start<0))for(var s=t;s;)s._dirty=1,s=s.parent;return t},s_=function(t){for(var n=t.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return t},hc=function(t,n,s,e){return t._startAt&&(Gi?t._startAt.revert(Ol):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(n,!0,e))},o_=function p(t){return!t||t._ts&&p(t.parent)},vd=function(t){return t._repeat?Zo(t._tTime,t=t.duration()+t._rDelay)*t:0},Zo=function(t,n){var s=Math.floor(t/=n);return t&&s===t?s-1:s},Vl=function(t,n){return(t-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},ou=function(t){return t._end=ki(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ae)||0))},au=function(t,n){var s=t._dp;return s&&s.smoothChildTiming&&t._ts&&(t._start=ki(s._time-(t._ts>0?n/t._ts:((t._dirty?t.totalDuration():t._tDur)-n)/-t._ts)),ou(t),s._dirty||Xs(s,t)),t},rp=function(t,n){var s;if((n._time||!n._dur&&n._initted||n._start<t._time&&(n._dur||!n.add))&&(s=Vl(t.rawTime(),n),(!n._dur||Ya(0,n.totalDuration(),s)-n._tTime>Ae)&&n.render(s,!0)),Xs(t,n)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(s=t;s._dp;)s.rawTime()>=0&&s.totalTime(s._tTime),s=s._dp;t._zTime=-Ae}},Ar=function(t,n,s,e){return n.parent&&ys(n),n._start=ki((Qr(s)?s:s||t!==We?or(t,s,n):t._time)+n._delay),n._end=ki(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),np(t,n,"_first","_last",t._sort?"_start":0),dc(n)||(t._recent=n),e||rp(t,n),t._ts<0&&au(t,t._tTime),t},sp=function(t,n){return(qn.ScrollTrigger||jc("scrollTrigger",n))&&qn.ScrollTrigger.create(n,t)},op=function(t,n,s,e,i){if(Uc(t,n,i),!t._initted)return 1;if(!s&&t._pt&&!Gi&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Jf!==Bn.frame)return ms.push(t),t._lazy=[i,e],1},a_=function p(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||p(n))},dc=function(t){var n=t.data;return n==="isFromStart"||n==="isStart"},l_=function(t,n,s,e){var i=t.ratio,o=n<0||!n&&(!t._start&&a_(t)&&!(!t._initted&&dc(t))||(t._ts<0||t._dp._ts<0)&&!dc(t))?0:1,a=t._rDelay,l=0,c,h,g;if(a&&t._repeat&&(l=Ya(0,t._tDur,n),h=Zo(l,a),t._yoyo&&h&1&&(o=1-o),h!==Zo(t._tTime,a)&&(i=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==i||Gi||e||t._zTime===Ae||!n&&t._zTime){if(!t._initted&&op(t,n,e,s,l))return;for(g=t._zTime,t._zTime=n||(s?Ae:0),s||(s=n&&!g),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,c=t._pt;c;)c.r(o,c.d),c=c._next;n<0&&hc(t,n,s,!0),t._onUpdate&&!s&&Hn(t,"onUpdate"),l&&t._repeat&&!s&&t.parent&&Hn(t,"onRepeat"),(n>=t._tDur||n<0)&&t.ratio===o&&(o&&ys(t,1),!s&&!Gi&&(Hn(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=n)},u_=function(t,n,s){var e;if(s>n)for(e=t._first;e&&e._start<=s;){if(e.data==="isPause"&&e._start>n)return e;e=e._next}else for(e=t._last;e&&e._start>=s;){if(e.data==="isPause"&&e._start<n)return e;e=e._prev}},Wo=function(t,n,s,e){var i=t._repeat,o=ki(n)||0,a=t._tTime/t._tDur;return a&&!e&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:ki(o*(i+1)+t._rDelay*i):o,a>0&&!e&&au(t,t._tTime=t._tDur*a),t.parent&&ou(t),s||Xs(t.parent,t),t},yd=function(t){return t instanceof sn?Xs(t):Wo(t,t._dur)},c_={_start:0,endTime:Na,totalDuration:Na},or=function p(t,n,s){var e=t.labels,i=t._recent||c_,o=t.duration()>=ur?i.endTime(!1):t._dur,a,l,c;return Mi(n)&&(isNaN(n)||n in e)?(l=n.charAt(0),c=n.substr(-1)==="%",a=n.indexOf("="),l==="<"||l===">"?(a>=0&&(n=n.replace(/=/,"")),(l==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(n.substr(1))||0)*(c?(a<0?i:s).totalDuration()/100:1)):a<0?(n in e||(e[n]=o),e[n]):(l=parseFloat(n.charAt(a-1)+n.substr(a+1)),c&&s&&(l=l/100*(Ui(s)?s[0]:s).totalDuration()),a>1?p(t,n.substr(0,a-1),s)+l:o+l)):n==null?o:+n},La=function(t,n,s){var e=Qr(n[1]),i=(e?2:1)+(t<2?0:1),o=n[i],a,l;if(e&&(o.duration=n[1]),o.parent=s,t){for(a=o,l=s;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=vn(l.vars.inherit)&&l.parent;o.immediateRender=vn(a.immediateRender),t<2?o.runBackwards=1:o.startAt=n[i-1]}return new fi(n[0],o,n[i+1])},Cs=function(t,n){return t||t===0?n(t):n},Ya=function(t,n,s){return s<t?t:s>n?n:s},Wi=function(t,n){return!Mi(t)||!(n=Qm.exec(t))?"":n[1]},h_=function(t,n,s){return Cs(s,function(e){return Ya(t,n,e)})},fc=[].slice,ap=function(t,n){return t&&Fr(t)&&"length"in t&&(!n&&!t.length||t.length-1 in t&&Fr(t[0]))&&!t.nodeType&&t!==kr},d_=function(t,n,s){return s===void 0&&(s=[]),t.forEach(function(e){var i;return Mi(e)&&!n||ap(e,1)?(i=s).push.apply(i,cr(e)):s.push(e)})||s},cr=function(t,n,s){return Be&&!n&&Be.selector?Be.selector(t):Mi(t)&&!s&&(uc||!Go())?fc.call((n||Hc).querySelectorAll(t),0):Ui(t)?d_(t,s):ap(t)?fc.call(t,0):t?[t]:[]},pc=function(t){return t=cr(t)[0]||Ba("Invalid scope")||{},function(n){var s=t.current||t.nativeElement||t;return cr(n,s.querySelectorAll?s:s===t?Ba("Invalid scope")||Hc.createElement("div"):t)}},lp=function(t){return t.sort(function(){return .5-Math.random()})},up=function(t){if(Ke(t))return t;var n=Fr(t)?t:{each:t},s=Ks(n.ease),e=n.from||0,i=parseFloat(n.base)||0,o={},a=e>0&&e<1,l=isNaN(e)||a,c=n.axis,h=e,g=e;return Mi(e)?h=g={center:.5,edges:.5,end:1}[e]||0:!a&&l&&(h=e[0],g=e[1]),function(m,v,x){var C=(x||n).length,k=o[C],S,A,z,R,W,Y,b,rt,J;if(!k){if(J=n.grid==="auto"?0:(n.grid||[1,ur])[1],!J){for(b=-ur;b<(b=x[J++].getBoundingClientRect().left)&&J<C;);J<C&&J--}for(k=o[C]=[],S=l?Math.min(J,C)*h-.5:e%J,A=J===ur?0:l?C*g/J-.5:e/J|0,b=0,rt=ur,Y=0;Y<C;Y++)z=Y%J-S,R=A-(Y/J|0),k[Y]=W=c?Math.abs(c==="y"?R:z):Zf(z*z+R*R),W>b&&(b=W),W<rt&&(rt=W);e==="random"&&lp(k),k.max=b-rt,k.min=rt,k.v=C=(parseFloat(n.amount)||parseFloat(n.each)*(J>C?C-1:c?c==="y"?C/J:J:Math.max(J,C/J))||0)*(e==="edges"?-1:1),k.b=C<0?i-C:i,k.u=Wi(n.amount||n.each)||0,s=s&&C<0?yp(s):s}return C=(k[m]-k.min)/k.max||0,ki(k.b+(s?s(C):C)*k.v)+k.u}},gc=function(t){var n=Math.pow(10,((t+"").split(".")[1]||"").length);return function(s){var e=ki(Math.round(parseFloat(s)/t)*t*n);return(e-e%1)/n+(Qr(s)?0:Wi(s))}},cp=function(t,n){var s=Ui(t),e,i;return!s&&Fr(t)&&(e=s=t.radius||ur,t.values?(t=cr(t.values),(i=!Qr(t[0]))&&(e*=e)):t=gc(t.increment)),Cs(n,s?Ke(t)?function(o){return i=t(o),Math.abs(i-o)<=e?i:o}:function(o){for(var a=parseFloat(i?o.x:o),l=parseFloat(i?o.y:0),c=ur,h=0,g=t.length,m,v;g--;)i?(m=t[g].x-a,v=t[g].y-l,m=m*m+v*v):m=Math.abs(t[g]-a),m<c&&(c=m,h=g);return h=!e||c<=e?t[h]:o,i||h===o||Qr(o)?h:h+Wi(o)}:gc(t))},hp=function(t,n,s,e){return Cs(Ui(t)?!n:s===!0?!!(s=0):!e,function(){return Ui(t)?t[~~(Math.random()*t.length)]:(s=s||1e-5)&&(e=s<1?Math.pow(10,(s+"").length-2):1)&&Math.floor(Math.round((t-s/2+Math.random()*(n-t+s*.99))/s)*s*e)/e})},f_=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return function(e){return n.reduce(function(i,o){return o(i)},e)}},p_=function(t,n){return function(s){return t(parseFloat(s))+(n||Wi(s))}},g_=function(t,n,s){return fp(t,n,0,1,s)},dp=function(t,n,s){return Cs(s,function(e){return t[~~n(e)]})},m_=function p(t,n,s){var e=n-t;return Ui(t)?dp(t,p(0,t.length),n):Cs(s,function(i){return(e+(i-t)%e)%e+t})},__=function p(t,n,s){var e=n-t,i=e*2;return Ui(t)?dp(t,p(0,t.length-1),n):Cs(s,function(o){return o=(i+(o-t)%i)%i||0,t+(o>e?i-o:o)})},Ha=function(t){for(var n=0,s="",e,i,o,a;~(e=t.indexOf("random(",n));)o=t.indexOf(")",e),a=t.charAt(e+7)==="[",i=t.substr(e+7,o-e-7).match(a?Vf:lc),s+=t.substr(n,e-n)+hp(a?i:+i[0],a?0:+i[1],+i[2]||1e-5),n=o+1;return s+t.substr(n,t.length-n)},fp=function(t,n,s,e,i){var o=n-t,a=e-s;return Cs(i,function(l){return s+((l-t)/o*a||0)})},v_=function p(t,n,s,e){var i=isNaN(t+n)?0:function(v){return(1-v)*t+v*n};if(!i){var o=Mi(t),a={},l,c,h,g,m;if(s===!0&&(e=1)&&(s=null),o)t={p:t},n={p:n};else if(Ui(t)&&!Ui(n)){for(h=[],g=t.length,m=g-2,c=1;c<g;c++)h.push(p(t[c-1],t[c]));g--,i=function(x){x*=g;var C=Math.min(m,~~x);return h[C](x-C)},s=n}else e||(t=ro(Ui(t)?[]:{},t));if(!h){for(l in n)Gc.call(a,t,l,"get",n[l]);i=function(x){return Xc(x,a)||(o?t.p:t)}}}return Cs(s,i)},bd=function(t,n,s){var e=t.labels,i=ur,o,a,l;for(o in e)a=e[o]-n,a<0==!!s&&a&&i>(a=Math.abs(a))&&(l=o,i=a);return l},Hn=function(t,n,s){var e=t.vars,i=e[n],o=Be,a=t._ctx,l,c,h;if(i)return l=e[n+"Params"],c=e.callbackScope||t,s&&ms.length&&Gl(),a&&(Be=a),h=l?i.apply(c,l):i.call(c),Be=o,h},va=function(t){return ys(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Gi),t.progress()<1&&Hn(t,"onInterrupt"),t},Io,pp=[],gp=function(t){if(t)if(t=!t.name&&t.default||t,Nc()||t.headless){var n=t.name,s=Ke(t),e=n&&!s&&t.init?function(){this._props=[]}:t,i={init:Na,render:Xc,add:Gc,kill:z_,modifier:D_,rawVars:0},o={targetTest:0,get:0,getSetter:Yc,aliases:{},register:0};if(Go(),t!==e){if(Fn[n])return;dr(e,dr(Ul(t,i),o)),ro(e.prototype,ro(i,Ul(t,o))),Fn[e.prop=n]=e,t.targetTest&&(Dl.push(e),qc[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Kf(n,e),t.register&&t.register(xn,e,bn)}else pp.push(t)},Te=255,ya={aqua:[0,Te,Te],lime:[0,Te,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Te],navy:[0,0,128],white:[Te,Te,Te],olive:[128,128,0],yellow:[Te,Te,0],orange:[Te,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Te,0,0],pink:[Te,192,203],cyan:[0,Te,Te],transparent:[Te,Te,Te,0]},ju=function(t,n,s){return t+=t<0?1:t>1?-1:0,(t*6<1?n+(s-n)*t*6:t<.5?s:t*3<2?n+(s-n)*(2/3-t)*6:n)*Te+.5|0},mp=function(t,n,s){var e=t?Qr(t)?[t>>16,t>>8&Te,t&Te]:0:ya.black,i,o,a,l,c,h,g,m,v,x;if(!e){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ya[t])e=ya[t];else if(t.charAt(0)==="#"){if(t.length<6&&(i=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+i+i+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return e=parseInt(t.substr(1,6),16),[e>>16,e>>8&Te,e&Te,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),e=[t>>16,t>>8&Te,t&Te]}else if(t.substr(0,3)==="hsl"){if(e=x=t.match(lc),!n)l=+e[0]%360/360,c=+e[1]/100,h=+e[2]/100,o=h<=.5?h*(c+1):h+c-h*c,i=h*2-o,e.length>3&&(e[3]*=1),e[0]=ju(l+1/3,i,o),e[1]=ju(l,i,o),e[2]=ju(l-1/3,i,o);else if(~t.indexOf("="))return e=t.match(Gf),s&&e.length<4&&(e[3]=1),e}else e=t.match(lc)||ya.transparent;e=e.map(Number)}return n&&!x&&(i=e[0]/Te,o=e[1]/Te,a=e[2]/Te,g=Math.max(i,o,a),m=Math.min(i,o,a),h=(g+m)/2,g===m?l=c=0:(v=g-m,c=h>.5?v/(2-g-m):v/(g+m),l=g===i?(o-a)/v+(o<a?6:0):g===o?(a-i)/v+2:(i-o)/v+4,l*=60),e[0]=~~(l+.5),e[1]=~~(c*100+.5),e[2]=~~(h*100+.5)),s&&e.length<4&&(e[3]=1),e},_p=function(t){var n=[],s=[],e=-1;return t.split(_s).forEach(function(i){var o=i.match(zo)||[];n.push.apply(n,o),s.push(e+=o.length+1)}),n.c=s,n},wd=function(t,n,s){var e="",i=(t+e).match(_s),o=n?"hsla(":"rgba(",a=0,l,c,h,g;if(!i)return t;if(i=i.map(function(m){return(m=mp(m,n,1))&&o+(n?m[0]+","+m[1]+"%,"+m[2]+"%,"+m[3]:m.join(","))+")"}),s&&(h=_p(t),l=s.c,l.join(e)!==h.c.join(e)))for(c=t.replace(_s,"1").split(zo),g=c.length-1;a<g;a++)e+=c[a]+(~l.indexOf(a)?i.shift()||o+"0,0,0,0)":(h.length?h:i.length?i:s).shift());if(!c)for(c=t.split(_s),g=c.length-1;a<g;a++)e+=c[a]+i[a];return e+c[g]},_s=function(){var p="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ya)p+="|"+t+"\\b";return new RegExp(p+")","gi")}(),y_=/hsl[a]?\(/,vp=function(t){var n=t.join(" "),s;if(_s.lastIndex=0,_s.test(n))return s=y_.test(n),t[1]=wd(t[1],s),t[0]=wd(t[0],s,_p(t[1])),!0},ja,Bn=function(){var p=Date.now,t=500,n=33,s=p(),e=s,i=1e3/240,o=i,a=[],l,c,h,g,m,v,x=function C(k){var S=p()-e,A=k===!0,z,R,W,Y;if((S>t||S<0)&&(s+=S-n),e+=S,W=e-s,z=W-o,(z>0||A)&&(Y=++g.frame,m=W-g.time*1e3,g.time=W=W/1e3,o+=z+(z>=i?4:i-z),R=1),A||(l=c(C)),R)for(v=0;v<a.length;v++)a[v](W,m,Y,k)};return g={time:0,frame:0,tick:function(){x(!0)},deltaRatio:function(k){return m/(1e3/(k||60))},wake:function(){Yf&&(!uc&&Nc()&&(kr=uc=window,Hc=kr.document||{},qn.gsap=xn,(kr.gsapVersions||(kr.gsapVersions=[])).push(xn.version),Xf(Wl||kr.GreenSockGlobals||!kr.gsap&&kr||{}),pp.forEach(gp)),h=typeof requestAnimationFrame!="undefined"&&requestAnimationFrame,l&&g.sleep(),c=h||function(k){return setTimeout(k,o-g.time*1e3+1|0)},ja=1,x(2))},sleep:function(){(h?cancelAnimationFrame:clearTimeout)(l),ja=0,c=Na},lagSmoothing:function(k,S){t=k||1/0,n=Math.min(S||33,t)},fps:function(k){i=1e3/(k||240),o=g.time*1e3+i},add:function(k,S,A){var z=S?function(R,W,Y,b){k(R,W,Y,b),g.remove(z)}:k;return g.remove(k),a[A?"unshift":"push"](z),Go(),z},remove:function(k,S){~(S=a.indexOf(k))&&a.splice(S,1)&&v>=S&&v--},_listeners:a},g}(),Go=function(){return!ja&&Bn.wake()},ce={},b_=/^[\d.\-M][\d.\-,\s]/,w_=/["']/g,x_=function(t){for(var n={},s=t.substr(1,t.length-3).split(":"),e=s[0],i=1,o=s.length,a,l,c;i<o;i++)l=s[i],a=i!==o-1?l.lastIndexOf(","):l.length,c=l.substr(0,a),n[e]=isNaN(c)?c.replace(w_,"").trim():+c,e=l.substr(a+1).trim();return n},C_=function(t){var n=t.indexOf("(")+1,s=t.indexOf(")"),e=t.indexOf("(",n);return t.substring(n,~e&&e<s?t.indexOf(")",s+1):s)},T_=function(t){var n=(t+"").split("("),s=ce[n[0]];return s&&n.length>1&&s.config?s.config.apply(null,~t.indexOf("{")?[x_(n[1])]:C_(t).split(",").map(ep)):ce._CE&&b_.test(t)?ce._CE("",t):s},yp=function(t){return function(n){return 1-t(1-n)}},bp=function p(t,n){for(var s=t._first,e;s;)s instanceof sn?p(s,n):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==n&&(s.timeline?p(s.timeline,n):(e=s._ease,s._ease=s._yEase,s._yEase=e,s._yoyo=n)),s=s._next},Ks=function(t,n){return t&&(Ke(t)?t:ce[t]||T_(t))||n},co=function(t,n,s,e){s===void 0&&(s=function(l){return 1-n(1-l)}),e===void 0&&(e=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var i={easeIn:n,easeOut:s,easeInOut:e},o;return yn(t,function(a){ce[a]=qn[a]=i,ce[o=a.toLowerCase()]=s;for(var l in i)ce[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=ce[a+"."+l]=i[l]}),i},wp=function(t){return function(n){return n<.5?(1-t(1-n*2))/2:.5+t((n-.5)*2)/2}},qu=function p(t,n,s){var e=n>=1?n:1,i=(s||(t?.3:.45))/(n<1?n:1),o=i/ac*(Math.asin(1/e)||0),a=function(h){return h===1?1:e*Math.pow(2,-10*h)*Jm((h-o)*i)+1},l=t==="out"?a:t==="in"?function(c){return 1-a(1-c)}:wp(a);return i=ac/i,l.config=function(c,h){return p(t,c,h)},l},Zu=function p(t,n){n===void 0&&(n=1.70158);var s=function(o){return o?--o*o*((n+1)*o+n)+1:0},e=t==="out"?s:t==="in"?function(i){return 1-s(1-i)}:wp(s);return e.config=function(i){return p(t,i)},e};yn("Linear,Quad,Cubic,Quart,Quint,Strong",function(p,t){var n=t<5?t+1:t;co(p+",Power"+(n-1),t?function(s){return Math.pow(s,n)}:function(s){return s},function(s){return 1-Math.pow(1-s,n)},function(s){return s<.5?Math.pow(s*2,n)/2:1-Math.pow((1-s)*2,n)/2})});ce.Linear.easeNone=ce.none=ce.Linear.easeIn;co("Elastic",qu("in"),qu("out"),qu());(function(p,t){var n=1/t,s=2*n,e=2.5*n,i=function(a){return a<n?p*a*a:a<s?p*Math.pow(a-1.5/t,2)+.75:a<e?p*(a-=2.25/t)*a+.9375:p*Math.pow(a-2.625/t,2)+.984375};co("Bounce",function(o){return 1-i(1-o)},i)})(7.5625,2.75);co("Expo",function(p){return p?Math.pow(2,10*(p-1)):0});co("Circ",function(p){return-(Zf(1-p*p)-1)});co("Sine",function(p){return p===1?1:-Km(p*Ym)+1});co("Back",Zu("in"),Zu("out"),Zu());ce.SteppedEase=ce.steps=qn.SteppedEase={config:function(t,n){t===void 0&&(t=1);var s=1/t,e=t+(n?0:1),i=n?1:0,o=1-Ae;return function(a){return((e*Ya(0,o,a)|0)+i)*s}}};qo.ease=ce["quad.out"];yn("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(p){return Zc+=p+","+p+"Params,"});var xp=function(t,n){this.id=Xm++,t._gsap=this,this.target=t,this.harness=n,this.get=n?n.get:Qf,this.set=n?n.getSetter:Yc},qa=function(){function p(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Wo(this,+n.duration,1,1),this.data=n.data,Be&&(this._ctx=Be,Be.data.push(this)),ja||Bn.wake()}var t=p.prototype;return t.delay=function(s){return s||s===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+s-this._delay),this._delay=s,this):this._delay},t.duration=function(s){return arguments.length?this.totalDuration(this._repeat>0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},t.totalDuration=function(s){return arguments.length?(this._dirty=0,Wo(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(s,e){if(Go(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(au(this,s),!i._dp||i.parent||rp(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s<this._tDur||this._ts<0&&s>0||!this._tDur&&!s)&&Ar(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Ae||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),tp(this,s,e)),this},t.time=function(s,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+vd(this))%(this._dur+this._rDelay)||(s?this._dur:0),e):this._time},t.totalProgress=function(s,e){return arguments.length?this.totalTime(this.totalDuration()*s,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(s,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+vd(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(s,e){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*i,e):this._repeat?Zo(this._tTime,i)+1:1},t.timeScale=function(s,e){if(!arguments.length)return this._rts===-Ae?0:this._rts;if(this._rts===s)return this;var i=this.parent&&this._ts?Vl(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ae?0:this._rts,this.totalTime(Ya(-Math.abs(this._delay),this._tDur,i),e!==!1),ou(this),s_(this)},t.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Go(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ae&&(this._tTime-=Ae)))),this):this._ps},t.startTime=function(s){if(arguments.length){this._start=s;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Ar(e,this,s-this._delay),this}return this._start},t.endTime=function(s){return this._start+(vn(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(s){var e=this.parent||this._dp;return e?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Vl(e.rawTime(s),this):this._tTime:this._tTime},t.revert=function(s){s===void 0&&(s=e_);var e=Gi;return Gi=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),Gi=e,this},t.globalTime=function(s){for(var e=this,i=arguments.length?s:e.rawTime();e;)i=e._start+i/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(s):i},t.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,yd(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(s){if(arguments.length){var e=this._time;return this._rDelay=s,yd(this),e?this.time(e):this}return this._rDelay},t.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},t.seek=function(s,e){return this.totalTime(or(this,s),vn(e))},t.restart=function(s,e){return this.play().totalTime(s?-this._delay:0,vn(e))},t.play=function(s,e){return s!=null&&this.seek(s,e),this.reversed(!1).paused(!1)},t.reverse=function(s,e){return s!=null&&this.seek(s||this.totalDuration(),e),this.reversed(!0).paused(!1)},t.pause=function(s,e){return s!=null&&this.seek(s,e),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Ae:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ae,this},t.isActive=function(){var s=this.parent||this._dp,e=this._start,i;return!!(!s||this._ts&&this._initted&&s.isActive()&&(i=s.rawTime(!0))>=e&&i<this.endTime(!0)-Ae)},t.eventCallback=function(s,e,i){var o=this.vars;return arguments.length>1?(e?(o[s]=e,i&&(o[s+"Params"]=i),s==="onUpdate"&&(this._onUpdate=e)):delete o[s],this):o[s]},t.then=function(s){var e=this;return new Promise(function(i){var o=Ke(s)?s:ip,a=function(){var c=e.then;e.then=null,Ke(o)&&(o=o(e))&&(o.then||o===e)&&(e.then=c),i(o),e.then=c};e._initted&&e.totalProgress()===1&&e._ts>=0||!e._tTime&&e._ts<0?a():e._prom=a})},t.kill=function(){va(this)},p}();dr(qa.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ae,_prom:0,_ps:!1,_rts:1});var sn=function(p){qf(t,p);function t(s,e){var i;return s===void 0&&(s={}),i=p.call(this,s)||this,i.labels={},i.smoothChildTiming=!!s.smoothChildTiming,i.autoRemoveChildren=!!s.autoRemoveChildren,i._sort=vn(s.sortChildren),We&&Ar(s.parent||We,Ur(i),e),s.reversed&&i.reverse(),s.paused&&i.paused(!0),s.scrollTrigger&&sp(Ur(i),s.scrollTrigger),i}var n=t.prototype;return n.to=function(e,i,o){return La(0,arguments,this),this},n.from=function(e,i,o){return La(1,arguments,this),this},n.fromTo=function(e,i,o,a){return La(2,arguments,this),this},n.set=function(e,i,o){return i.duration=0,i.parent=this,Ea(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new fi(e,i,or(this,o),1),this},n.call=function(e,i,o){return Ar(this,fi.delayedCall(0,e,i),o)},n.staggerTo=function(e,i,o,a,l,c,h){return o.duration=i,o.stagger=o.stagger||a,o.onComplete=c,o.onCompleteParams=h,o.parent=this,new fi(e,o,or(this,l)),this},n.staggerFrom=function(e,i,o,a,l,c,h){return o.runBackwards=1,Ea(o).immediateRender=vn(o.immediateRender),this.staggerTo(e,i,o,a,l,c,h)},n.staggerFromTo=function(e,i,o,a,l,c,h,g){return a.startAt=o,Ea(a).immediateRender=vn(a.immediateRender),this.staggerTo(e,i,a,l,c,h,g)},n.render=function(e,i,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,h=e<=0?0:ki(e),g=this._zTime<0!=e<0&&(this._initted||!c),m,v,x,C,k,S,A,z,R,W,Y,b;if(this!==We&&h>l&&e>=0&&(h=l),h!==this._tTime||o||g){if(a!==this._time&&c&&(h+=this._time-a,e+=this._time-a),m=h,R=this._start,z=this._ts,S=!z,g&&(c||(a=this._zTime),(e||!i)&&(this._zTime=e)),this._repeat){if(Y=this._yoyo,k=c+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(k*100+e,i,o);if(m=ki(h%k),h===l?(C=this._repeat,m=c):(C=~~(h/k),C&&C===h/k&&(m=c,C--),m>c&&(m=c)),W=Zo(this._tTime,k),!a&&this._tTime&&W!==C&&this._tTime-W*k-this._dur<=0&&(W=C),Y&&C&1&&(m=c-m,b=1),C!==W&&!this._lock){var rt=Y&&W&1,J=rt===(Y&&C&1);if(C<W&&(rt=!rt),a=rt?0:h%c?c:h,this._lock=1,this.render(a||(b?0:ki(C*k)),i,!c)._lock=0,this._tTime=h,!i&&this.parent&&Hn(this,"onRepeat"),this.vars.repeatRefresh&&!b&&(this.invalidate()._lock=1),a&&a!==this._time||S!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,J&&(this._lock=2,a=rt?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!b&&this.invalidate()),this._lock=0,!this._ts&&!S)return this;bp(this,b)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(A=u_(this,ki(a),ki(m)),A&&(h-=m-(m=A._start))),this._tTime=h,this._time=m,this._act=!z,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,a=0),!a&&m&&!i&&!C&&(Hn(this,"onStart"),this._tTime!==h))return this;if(m>=a&&e>=0)for(v=this._first;v;){if(x=v._next,(v._act||m>=v._start)&&v._ts&&A!==v){if(v.parent!==this)return this.render(e,i,o);if(v.render(v._ts>0?(m-v._start)*v._ts:(v._dirty?v.totalDuration():v._tDur)+(m-v._start)*v._ts,i,o),m!==this._time||!this._ts&&!S){A=0,x&&(h+=this._zTime=-Ae);break}}v=x}else{v=this._last;for(var at=e<0?e:m;v;){if(x=v._prev,(v._act||at<=v._end)&&v._ts&&A!==v){if(v.parent!==this)return this.render(e,i,o);if(v.render(v._ts>0?(at-v._start)*v._ts:(v._dirty?v.totalDuration():v._tDur)+(at-v._start)*v._ts,i,o||Gi&&(v._initted||v._startAt)),m!==this._time||!this._ts&&!S){A=0,x&&(h+=this._zTime=at?-Ae:Ae);break}}v=x}}if(A&&!i&&(this.pause(),A.render(m>=a?0:-Ae)._zTime=m>=a?1:-1,this._ts))return this._start=R,ou(this),this.render(e,i,o);this._onUpdate&&!i&&Hn(this,"onUpdate",!0),(h===l&&this._tTime>=this.totalDuration()||!h&&a)&&(R===this._start||Math.abs(z)!==Math.abs(this._ts))&&(this._lock||((e||!c)&&(h===l&&this._ts>0||!h&&this._ts<0)&&ys(this,1),!i&&!(e<0&&!a)&&(h||a||!l)&&(Hn(this,h===l&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,i){var o=this;if(Qr(i)||(i=or(this,i,e)),!(e instanceof qa)){if(Ui(e))return e.forEach(function(a){return o.add(a,i)}),this;if(Mi(e))return this.addLabel(e,i);if(Ke(e))e=fi.delayedCall(0,e);else return this}return this!==e?Ar(this,e,i):this},n.getChildren=function(e,i,o,a){e===void 0&&(e=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),a===void 0&&(a=-ur);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof fi?i&&l.push(c):(o&&l.push(c),e&&l.push.apply(l,c.getChildren(!0,i,o)))),c=c._next;return l},n.getById=function(e){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===e)return i[o]},n.remove=function(e){return Mi(e)?this.removeLabel(e):Ke(e)?this.killTweensOf(e):(su(this,e),e===this._recent&&(this._recent=this._last),Xs(this))},n.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ki(Bn.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),p.prototype.totalTime.call(this,e,i),this._forcing=0,this):this._tTime},n.addLabel=function(e,i){return this.labels[e]=or(this,i),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,i,o){var a=fi.delayedCall(0,i||Na,o);return a.data="isPause",this._hasPause=1,Ar(this,a,or(this,e))},n.removePause=function(e){var i=this._first;for(e=or(this,e);i;)i._start===e&&i.data==="isPause"&&ys(i),i=i._next},n.killTweensOf=function(e,i,o){for(var a=this.getTweensOf(e,o),l=a.length;l--;)hs!==a[l]&&a[l].kill(e,i);return this},n.getTweensOf=function(e,i){for(var o=[],a=cr(e),l=this._first,c=Qr(i),h;l;)l instanceof fi?i_(l._targets,a)&&(c?(!hs||l._initted&&l._ts)&&l.globalTime(0)<=i&&l.globalTime(l.totalDuration())>i:!i||l.isActive())&&o.push(l):(h=l.getTweensOf(a,i)).length&&o.push.apply(o,h),l=l._next;return o},n.tweenTo=function(e,i){i=i||{};var o=this,a=or(o,e),l=i,c=l.startAt,h=l.onStart,g=l.onStartParams,m=l.immediateRender,v,x=fi.to(o,dr({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:i.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale())||Ae,onStart:function(){if(o.pause(),!v){var k=i.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale());x._dur!==k&&Wo(x,k,0,1).render(x._time,!0,!0),v=1}h&&h.apply(x,g||[])}},i));return m?x.render(0):x},n.tweenFromTo=function(e,i,o){return this.tweenTo(i,dr({startAt:{time:or(this,e)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),bd(this,or(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),bd(this,or(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+Ae)},n.shiftChildren=function(e,i,o){o===void 0&&(o=0);for(var a=this._first,l=this.labels,c;a;)a._start>=o&&(a._start+=e,a._end+=e),a=a._next;if(i)for(c in l)l[c]>=o&&(l[c]+=e);return Xs(this)},n.invalidate=function(e){var i=this._first;for(this._lock=0;i;)i.invalidate(e),i=i._next;return p.prototype.invalidate.call(this,e)},n.clear=function(e){e===void 0&&(e=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Xs(this)},n.totalDuration=function(e){var i=0,o=this,a=o._last,l=ur,c,h,g;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-e:e));if(o._dirty){for(g=o.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),h=a._start,h>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,Ar(o,a,h-a._delay,1)._lock=0):l=h,h<0&&a._ts&&(i-=h,(!g&&!o._dp||g&&g.smoothChildTiming)&&(o._start+=h/o._ts,o._time-=h,o._tTime-=h),o.shiftChildren(-h,!1,-1/0),l=0),a._end>i&&a._ts&&(i=a._end),a=c;Wo(o,o===We&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(e){if(We._ts&&(tp(We,Vl(e,We)),Jf=Bn.frame),Bn.frame>=md){md+=jn.autoSleep||120;var i=We._first;if((!i||!i._ts)&&jn.autoSleep&&Bn._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||Bn.sleep()}}},t}(qa);dr(sn.prototype,{_lock:0,_hasPause:0,_forcing:0});var S_=function(t,n,s,e,i,o,a){var l=new bn(this._pt,t,n,0,1,Pp,null,i),c=0,h=0,g,m,v,x,C,k,S,A;for(l.b=s,l.e=e,s+="",e+="",(S=~e.indexOf("random("))&&(e=Ha(e)),o&&(A=[s,e],o(A,t,n),s=A[0],e=A[1]),m=s.match(Nu)||[];g=Nu.exec(e);)x=g[0],C=e.substring(c,g.index),v?v=(v+1)%5:C.substr(-5)==="rgba("&&(v=1),x!==m[h++]&&(k=parseFloat(m[h-1])||0,l._pt={_next:l._pt,p:C||h===1?C:",",s:k,c:x.charAt(1)==="="?Ro(k,x)-k:parseFloat(x)-k,m:v&&v<4?Math.round:0},c=Nu.lastIndex);return l.c=c<e.length?e.substring(c,e.length):"",l.fp=a,(Uf.test(e)||S)&&(l.e=0),this._pt=l,l},Gc=function(t,n,s,e,i,o,a,l,c,h){Ke(e)&&(e=e(i||0,t,o));var g=t[n],m=s!=="get"?s:Ke(g)?c?t[n.indexOf("set")||!Ke(t["get"+n.substr(3)])?n:"get"+n.substr(3)](c):t[n]():g,v=Ke(g)?c?M_:Ep:Vc,x;if(Mi(e)&&(~e.indexOf("random(")&&(e=Ha(e)),e.charAt(1)==="="&&(x=Ro(m,e)+(Wi(m)||0),(x||x===0)&&(e=x))),!h||m!==e||mc)return!isNaN(m*e)&&e!==""?(x=new bn(this._pt,t,n,+m||0,e-(m||0),typeof g=="boolean"?O_:Lp,0,v),c&&(x.fp=c),a&&x.modifier(a,this,t),this._pt=x):(!g&&!(n in t)&&jc(n,e),S_.call(this,t,n,m,e,v,l||jn.stringFilter,c))},E_=function(t,n,s,e,i){if(Ke(t)&&(t=Pa(t,i,n,s,e)),!Fr(t)||t.style&&t.nodeType||Ui(t)||Wf(t))return Mi(t)?Pa(t,i,n,s,e):t;var o={},a;for(a in t)o[a]=Pa(t[a],i,n,s,e);return o},Cp=function(t,n,s,e,i,o){var a,l,c,h;if(Fn[t]&&(a=new Fn[t]).init(i,a.rawVars?n[t]:E_(n[t],e,i,o,s),s,e,o)!==!1&&(s._pt=l=new bn(s._pt,i,t,0,1,a.render,a,0,a.priority),s!==Io))for(c=s._ptLookup[s._targets.indexOf(i)],h=a._props.length;h--;)c[a._props[h]]=l;return a},hs,mc,Uc=function p(t,n,s){var e=t.vars,i=e.ease,o=e.startAt,a=e.immediateRender,l=e.lazy,c=e.onUpdate,h=e.runBackwards,g=e.yoyoEase,m=e.keyframes,v=e.autoRevert,x=t._dur,C=t._startAt,k=t._targets,S=t.parent,A=S&&S.data==="nested"?S.vars.targets:k,z=t._overwrite==="auto"&&!Fc,R=t.timeline,W,Y,b,rt,J,at,St,ut,q,st,mt,xt,ht;if(R&&(!m||!i)&&(i="none"),t._ease=Ks(i,qo.ease),t._yEase=g?yp(Ks(g===!0?i:g,qo.ease)):0,g&&t._yoyo&&!t._repeat&&(g=t._yEase,t._yEase=t._ease,t._ease=g),t._from=!R&&!!e.runBackwards,!R||m&&!e.stagger){if(ut=k[0]?Ys(k[0]).harness:0,xt=ut&&e[ut.prop],W=Ul(e,qc),C&&(C._zTime<0&&C.progress(1),n<0&&h&&a&&!v?C.render(-1,!0):C.revert(h&&x?Ol:t_),C._lazy=0),o){if(ys(t._startAt=fi.set(k,dr({data:"isStart",overwrite:!1,parent:S,immediateRender:!0,lazy:!C&&vn(l),startAt:null,delay:0,onUpdate:c&&function(){return Hn(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Gi||!a&&!v)&&t._startAt.revert(Ol),a&&x&&n<=0&&s<=0){n&&(t._zTime=n);return}}else if(h&&x&&!C){if(n&&(a=!1),b=dr({overwrite:!1,data:"isFromStart",lazy:a&&!C&&vn(l),immediateRender:a,stagger:0,parent:S},W),xt&&(b[ut.prop]=xt),ys(t._startAt=fi.set(k,b)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Gi?t._startAt.revert(Ol):t._startAt.render(-1,!0)),t._zTime=n,!a)p(t._startAt,Ae,Ae);else if(!n)return}for(t._pt=t._ptCache=0,l=x&&vn(l)||l&&!x,Y=0;Y<k.length;Y++){if(J=k[Y],St=J._gsap||Wc(k)[Y]._gsap,t._ptLookup[Y]=st={},cc[St.id]&&ms.length&&Gl(),mt=A===k?Y:A.indexOf(J),ut&&(q=new ut).init(J,xt||W,t,mt,A)!==!1&&(t._pt=rt=new bn(t._pt,J,q.name,0,1,q.render,q,0,q.priority),q._props.forEach(function(ot){st[ot]=rt}),q.priority&&(at=1)),!ut||xt)for(b in W)Fn[b]&&(q=Cp(b,W,t,mt,J,A))?q.priority&&(at=1):st[b]=rt=Gc.call(t,J,b,"get",W[b],mt,A,0,e.stringFilter);t._op&&t._op[Y]&&t.kill(J,t._op[Y]),z&&t._pt&&(hs=t,We.killTweensOf(J,st,t.globalTime(n)),ht=!t.parent,hs=0),t._pt&&l&&(cc[St.id]=1)}at&&kp(t),t._onInit&&t._onInit(t)}t._onUpdate=c,t._initted=(!t._op||t._pt)&&!ht,m&&n<=0&&R.render(ur,!0,!0)},L_=function(t,n,s,e,i,o,a,l){var c=(t._pt&&t._ptCache||(t._ptCache={}))[n],h,g,m,v;if(!c)for(c=t._ptCache[n]=[],m=t._ptLookup,v=t._targets.length;v--;){if(h=m[v][n],h&&h.d&&h.d._pt)for(h=h.d._pt;h&&h.p!==n&&h.fp!==n;)h=h._next;if(!h)return mc=1,t.vars[n]="+=0",Uc(t,a),mc=0,l?Ba(n+" not eligible for reset"):1;c.push(h)}for(v=c.length;v--;)g=c[v],h=g._pt||g,h.s=(e||e===0)&&!i?e:h.s+(e||0)+o*h.c,h.c=s-h.s,g.e&&(g.e=ni(s)+Wi(g.e)),g.b&&(g.b=h.s+Wi(g.b))},P_=function(t,n){var s=t[0]?Ys(t[0]).harness:0,e=s&&s.aliases,i,o,a,l;if(!e)return n;i=ro({},n);for(o in e)if(o in i)for(l=e[o].split(","),a=l.length;a--;)i[l[a]]=i[o];return i},k_=function(t,n,s,e){var i=n.ease||e||"power1.inOut",o,a;if(Ui(n))a=s[t]||(s[t]=[]),n.forEach(function(l,c){return a.push({t:c/(n.length-1)*100,v:l,e:i})});else for(o in n)a=s[o]||(s[o]=[]),o==="ease"||a.push({t:parseFloat(t),v:n[o],e:i})},Pa=function(t,n,s,e,i){return Ke(t)?t.call(n,s,e,i):Mi(t)&&~t.indexOf("random(")?Ha(t):t},Tp=Zc+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Sp={};yn(Tp+",id,stagger,delay,duration,paused,scrollTrigger",function(p){return Sp[p]=1});var fi=function(p){qf(t,p);function t(s,e,i,o){var a;typeof e=="number"&&(i.duration=e,e=i,i=null),a=p.call(this,o?e:Ea(e))||this;var l=a.vars,c=l.duration,h=l.delay,g=l.immediateRender,m=l.stagger,v=l.overwrite,x=l.keyframes,C=l.defaults,k=l.scrollTrigger,S=l.yoyoEase,A=e.parent||We,z=(Ui(s)||Wf(s)?Qr(s[0]):"length"in e)?[s]:cr(s),R,W,Y,b,rt,J,at,St;if(a._targets=z.length?Wc(z):Ba("GSAP target "+s+" not found. https://gsap.com",!jn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=v,x||m||yl(c)||yl(h)){if(e=a.vars,R=a.timeline=new sn({data:"nested",defaults:C||{},targets:A&&A.data==="nested"?A.vars.targets:z}),R.kill(),R.parent=R._dp=Ur(a),R._start=0,m||yl(c)||yl(h)){if(b=z.length,at=m&&up(m),Fr(m))for(rt in m)~Tp.indexOf(rt)&&(St||(St={}),St[rt]=m[rt]);for(W=0;W<b;W++)Y=Ul(e,Sp),Y.stagger=0,S&&(Y.yoyoEase=S),St&&ro(Y,St),J=z[W],Y.duration=+Pa(c,Ur(a),W,J,z),Y.delay=(+Pa(h,Ur(a),W,J,z)||0)-a._delay,!m&&b===1&&Y.delay&&(a._delay=h=Y.delay,a._start+=h,Y.delay=0),R.to(J,Y,at?at(W,J,z):0),R._ease=ce.none;R.duration()?c=h=0:a.timeline=0}else if(x){Ea(dr(R.vars.defaults,{ease:"none"})),R._ease=Ks(x.ease||e.ease||"none");var ut=0,q,st,mt;if(Ui(x))x.forEach(function(xt){return R.to(z,xt,">")}),R.duration();else{Y={};for(rt in x)rt==="ease"||rt==="easeEach"||k_(rt,x[rt],Y,x.easeEach);for(rt in Y)for(q=Y[rt].sort(function(xt,ht){return xt.t-ht.t}),ut=0,W=0;W<q.length;W++)st=q[W],mt={ease:st.e,duration:(st.t-(W?q[W-1].t:0))/100*c},mt[rt]=st.v,R.to(z,mt,ut),ut+=mt.duration;R.duration()<c&&R.to({},{duration:c-R.duration()})}}c||a.duration(c=R.duration())}else a.timeline=0;return v===!0&&!Fc&&(hs=Ur(a),We.killTweensOf(z),hs=0),Ar(A,Ur(a),i),e.reversed&&a.reverse(),e.paused&&a.paused(!0),(g||!c&&!x&&a._start===ki(A._time)&&vn(g)&&o_(Ur(a))&&A.data!=="nested")&&(a._tTime=-Ae,a.render(Math.max(0,-h)||0)),k&&sp(Ur(a),k),a}var n=t.prototype;return n.render=function(e,i,o){var a=this._time,l=this._tDur,c=this._dur,h=e<0,g=e>l-Ae&&!h?l:e<Ae?0:e,m,v,x,C,k,S,A,z,R;if(!c)l_(this,e,i,o);else if(g!==this._tTime||!e||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h){if(m=g,z=this.timeline,this._repeat){if(C=c+this._rDelay,this._repeat<-1&&h)return this.totalTime(C*100+e,i,o);if(m=ki(g%C),g===l?(x=this._repeat,m=c):(x=~~(g/C),x&&x===ki(g/C)&&(m=c,x--),m>c&&(m=c)),S=this._yoyo&&x&1,S&&(R=this._yEase,m=c-m),k=Zo(this._tTime,C),m===a&&!o&&this._initted&&x===k)return this._tTime=g,this;x!==k&&(z&&this._yEase&&bp(z,S),this.vars.repeatRefresh&&!S&&!this._lock&&this._time!==C&&this._initted&&(this._lock=o=1,this.render(ki(C*x),!0).invalidate()._lock=0))}if(!this._initted){if(op(this,h?e:m,o,i,g))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&x!==k))return this;if(c!==this._dur)return this.render(e,i,o)}if(this._tTime=g,this._time=m,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=A=(R||this._ease)(m/c),this._from&&(this.ratio=A=1-A),m&&!a&&!i&&!x&&(Hn(this,"onStart"),this._tTime!==g))return this;for(v=this._pt;v;)v.r(A,v.d),v=v._next;z&&z.render(e<0?e:z._dur*z._ease(m/this._dur),i,o)||this._startAt&&(this._zTime=e),this._onUpdate&&!i&&(h&&hc(this,e,i,o),Hn(this,"onUpdate")),this._repeat&&x!==k&&this.vars.onRepeat&&!i&&this.parent&&Hn(this,"onRepeat"),(g===this._tDur||!g)&&this._tTime===g&&(h&&!this._onUpdate&&hc(this,e,!0,!0),(e||!c)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&ys(this,1),!i&&!(h&&!a)&&(g||a||S)&&(Hn(this,g===l?"onComplete":"onReverseComplete",!0),this._prom&&!(g<l&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),p.prototype.invalidate.call(this,e)},n.resetTo=function(e,i,o,a,l){ja||Bn.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),h;return this._initted||Uc(this,c),h=this._ease(c/this._dur),L_(this,e,i,o,a,h,c,l)?this.resetTo(e,i,o,a,1):(au(this,0),this.parent||np(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(e,i){if(i===void 0&&(i="all"),!e&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?va(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(e,i,hs&&hs.vars.overwrite!==!0)._first||va(this),this.parent&&o!==this.timeline.totalDuration()&&Wo(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=e?cr(e):a,c=this._ptLookup,h=this._pt,g,m,v,x,C,k,S;if((!i||i==="all")&&r_(a,l))return i==="all"&&(this._pt=0),va(this);for(g=this._op=this._op||[],i!=="all"&&(Mi(i)&&(C={},yn(i,function(A){return C[A]=1}),i=C),i=P_(a,i)),S=a.length;S--;)if(~l.indexOf(a[S])){m=c[S],i==="all"?(g[S]=i,x=m,v={}):(v=g[S]=g[S]||{},x=i);for(C in x)k=m&&m[C],k&&((!("kill"in k.d)||k.d.kill(C)===!0)&&su(this,k,"_pt"),delete m[C]),v!=="all"&&(v[C]=1)}return this._initted&&!this._pt&&h&&va(this),this},t.to=function(e,i){return new t(e,i,arguments[2])},t.from=function(e,i){return La(1,arguments)},t.delayedCall=function(e,i,o,a){return new t(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(e,i,o){return La(2,arguments)},t.set=function(e,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new t(e,i)},t.killTweensOf=function(e,i,o){return We.killTweensOf(e,i,o)},t}(qa);dr(fi.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});yn("staggerTo,staggerFrom,staggerFromTo",function(p){fi[p]=function(){var t=new sn,n=fc.call(arguments,0);return n.splice(p==="staggerFromTo"?5:4,0,0),t[p].apply(t,n)}});var Vc=function(t,n,s){return t[n]=s},Ep=function(t,n,s){return t[n](s)},M_=function(t,n,s,e){return t[n](e.fp,s)},A_=function(t,n,s){return t.setAttribute(n,s)},Yc=function(t,n){return Ke(t[n])?Ep:Bc(t[n])&&t.setAttribute?A_:Vc},Lp=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e6)/1e6,n)},O_=function(t,n){return n.set(n.t,n.p,!!(n.s+n.c*t),n)},Pp=function(t,n){var s=n._pt,e="";if(!t&&n.b)e=n.b;else if(t===1&&n.e)e=n.e;else{for(;s;)e=s.p+(s.m?s.m(s.s+s.c*t):Math.round((s.s+s.c*t)*1e4)/1e4)+e,s=s._next;e+=n.c}n.set(n.t,n.p,e,n)},Xc=function(t,n){for(var s=n._pt;s;)s.r(t,s.d),s=s._next},D_=function(t,n,s,e){for(var i=this._pt,o;i;)o=i._next,i.p===e&&i.modifier(t,n,s),i=o},z_=function(t){for(var n=this._pt,s,e;n;)e=n._next,n.p===t&&!n.op||n.op===t?su(this,n,"_pt"):n.dep||(s=1),n=e;return!s},I_=function(t,n,s,e){e.mSet(t,n,e.m.call(e.tween,s,e.mt),e)},kp=function(t){for(var n=t._pt,s,e,i,o;n;){for(s=n._next,e=i;e&&e.pr>n.pr;)e=e._next;(n._prev=e?e._prev:o)?n._prev._next=n:i=n,(n._next=e)?e._prev=n:o=n,n=s}t._pt=i},bn=function(){function p(n,s,e,i,o,a,l,c,h){this.t=s,this.s=i,this.c=o,this.p=e,this.r=a||Lp,this.d=l||this,this.set=c||Vc,this.pr=h||0,this._next=n,n&&(n._prev=this)}var t=p.prototype;return t.modifier=function(s,e,i){this.mSet=this.mSet||this.set,this.set=I_,this.m=s,this.mt=i,this.tween=e},p}();yn(Zc+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(p){return qc[p]=1});qn.TweenMax=qn.TweenLite=fi;qn.TimelineLite=qn.TimelineMax=sn;We=new sn({sortChildren:!1,defaults:qo,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});jn.stringFilter=vp;var Js=[],zl={},$_=[],xd=0,R_=0,Wu=function(t){return(zl[t]||$_).map(function(n){return n()})},_c=function(){var t=Date.now(),n=[];t-xd>2&&(Wu("matchMediaInit"),Js.forEach(function(s){var e=s.queries,i=s.conditions,o,a,l,c;for(a in e)o=kr.matchMedia(e[a]).matches,o&&(l=1),o!==i[a]&&(i[a]=o,c=1);c&&(s.revert(),l&&n.push(s))}),Wu("matchMediaRevert"),n.forEach(function(s){return s.onMatch(s,function(e){return s.add(null,e)})}),xd=t,Wu("matchMedia"))},Mp=function(){function p(n,s){this.selector=s&&pc(s),this.data=[],this._r=[],this.isReverted=!1,this.id=R_++,n&&this.add(n)}var t=p.prototype;return t.add=function(s,e,i){Ke(s)&&(i=e,e=s,s=Ke);var o=this,a=function(){var c=Be,h=o.selector,g;return c&&c!==o&&c.data.push(o),i&&(o.selector=pc(i)),Be=o,g=e.apply(o,arguments),Ke(g)&&o._r.push(g),Be=c,o.selector=h,o.isReverted=!1,g};return o.last=a,s===Ke?a(o,function(l){return o.add(null,l)}):s?o[s]=a:a},t.ignore=function(s){var e=Be;Be=null,s(this),Be=e},t.getTweens=function(){var s=[];return this.data.forEach(function(e){return e instanceof p?s.push.apply(s,e.getTweens()):e instanceof fi&&!(e.parent&&e.parent.data==="nested")&&s.push(e)}),s},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(s,e){var i=this;if(s?function(){for(var a=i.getTweens(),l=i.data.length,c;l--;)c=i.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(h){return a.splice(a.indexOf(h),1)}));for(a.map(function(h){return{g:h._dur||h._delay||h._sat&&!h._sat.vars.immediateRender?h.globalTime(0):-1/0,t:h}}).sort(function(h,g){return g.g-h.g||-1/0}).forEach(function(h){return h.t.revert(s)}),l=i.data.length;l--;)c=i.data[l],c instanceof sn?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof fi)&&c.revert&&c.revert(s);i._r.forEach(function(h){return h(s,i)}),i.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),e)for(var o=Js.length;o--;)Js[o].id===this.id&&Js.splice(o,1)},t.revert=function(s){this.kill(s||{})},p}(),F_=function(){function p(n){this.contexts=[],this.scope=n,Be&&Be.data.push(this)}var t=p.prototype;return t.add=function(s,e,i){Fr(s)||(s={matches:s});var o=new Mp(0,i||this.scope),a=o.conditions={},l,c,h;Be&&!o.selector&&(o.selector=Be.selector),this.contexts.push(o),e=o.add("onMatch",e),o.queries=s;for(c in s)c==="all"?h=1:(l=kr.matchMedia(s[c]),l&&(Js.indexOf(o)<0&&Js.push(o),(a[c]=l.matches)&&(h=1),l.addListener?l.addListener(_c):l.addEventListener("change",_c)));return h&&e(o,function(g){return o.add(null,g)}),this},t.revert=function(s){this.kill(s||{})}
vendor: 5,628 bytes, lines 102-110
102,t.kill=function(s){this.contexts.forEach(function(e){return e.kill(s,!0)})},p}(),Yl={registerPlugin:function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n.forEach(function(e){return gp(e)})},timeline:function(t){return new sn(t)},getTweensOf:function(t,n){return We.getTweensOf(t,n)},getProperty:function(t,n,s,e){Mi(t)&&(t=cr(t)[0]);var i=Ys(t||{}).get,o=s?ip:ep;return s==="native"&&(s=""),t&&(n?o((Fn[n]&&Fn[n].get||i)(t,n,s,e)):function(a,l,c){return o((Fn[a]&&Fn[a].get||i)(t,a,l,c))})},quickSetter:function(t,n,s){if(t=cr(t),t.length>1){var e=t.map(function(h){return xn.quickSetter(h,n,s)}),i=e.length;return function(h){for(var g=i;g--;)e[g](h)}}t=t[0]||{};var o=Fn[n],a=Ys(t),l=a.harness&&(a.harness.aliases||{})[n]||n,c=o?function(h){var g=new o;Io._pt=0,g.init(t,s?h+s:h,Io,0,[t]),g.render(1,g),Io._pt&&Xc(1,Io)}:a.set(t,l);return o?c:function(h){return c(t,l,s?h+s:h,a,1)}},quickTo:function(t,n,s){var e,i=xn.to(t,ro((e={},e[n]="+=0.1",e.paused=!0,e),s||{})),o=function(l,c,h){return i.resetTo(n,l,c,h)};return o.tween=i,o},isTweening:function(t){return We.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ks(t.ease,qo.ease)),_d(qo,t||{})},config:function(t){return _d(jn,t||{})},registerEffect:function(t){var n=t.name,s=t.effect,e=t.plugins,i=t.defaults,o=t.extendTimeline;(e||"").split(",").forEach(function(a){return a&&!Fn[a]&&!qn[a]&&Ba(n+" effect requires "+a+" plugin.")}),Hu[n]=function(a,l,c){return s(cr(a),dr(l||{},i),c)},o&&(sn.prototype[n]=function(a,l,c){return this.add(Hu[n](a,Fr(l)?l:(c=l)&&{},this),c)})},registerEase:function(t,n){ce[t]=Ks(n)},parseEase:function(t,n){return arguments.length?Ks(t,n):ce},getById:function(t){return We.getById(t)},exportRoot:function(t,n){t===void 0&&(t={});var s=new sn(t),e,i;for(s.smoothChildTiming=vn(t.smoothChildTiming),We.remove(s),s._dp=0,s._time=s._tTime=We._time,e=We._first;e;)i=e._next,(n||!(!e._dur&&e instanceof fi&&e.vars.onComplete===e._targets[0]))&&Ar(s,e,e._start-e._delay),e=i;return Ar(We,s,0),s},context:function(t,n){return t?new Mp(t,n):Be},matchMedia:function(t){return new F_(t)},matchMediaRefresh:function(){return Js.forEach(function(t){var n=t.conditions,s,e;for(e in n)n[e]&&(n[e]=!1,s=1);s&&t.revert()})||_c()},addEventListener:function(t,n){var s=zl[t]||(zl[t]=[]);~s.indexOf(n)||s.push(n)},removeEventListener:function(t,n){var s=zl[t],e=s&&s.indexOf(n);e>=0&&s.splice(e,1)},utils:{wrap:m_,wrapYoyo:__,distribute:up,random:hp,snap:cp,normalize:g_,getUnit:Wi,clamp:h_,splitColor:mp,toArray:cr,selector:pc,mapRange:fp,pipe:f_,unitize:p_,interpolate:v_,shuffle:lp},install:Xf,effects:Hu,ticker:Bn,updateRoot:sn.updateRoot,plugins:Fn,globalTimeline:We,core:{PropTween:bn,globals:Kf,Tween:fi,Timeline:sn,Animation:qa,getCache:Ys,_removeLinkedListItem:su,reverting:function(){return Gi},context:function(t){return t&&Be&&(Be.data.push(t),t._ctx=Be),Be},suppressOverwrites:function(t){return Fc=t}}};yn("to,from,fromTo,delayedCall,set,killTweensOf",function(p){return Yl[p]=fi[p]});Bn.add(sn.updateRoot);Io=Yl.to({},{duration:0});var B_=function(t,n){for(var s=t._pt;s&&s.p!==n&&s.op!==n&&s.fp!==n;)s=s._next;return s},N_=function(t,n){var s=t._targets,e,i,o;for(e in n)for(i=s.length;i--;)o=t._ptLookup[i][e],o&&(o=o.d)&&(o._pt&&(o=B_(o,e)),o&&o.modifier&&o.modifier(n[e],t,s[i],e))},Gu=function(t,n){return{name:t,rawVars:1,init:function(e,i,o){o._onInit=function(a){var l,c;if(Mi(i)&&(l={},yn(i,function(h){return l[h]=1}),i=l),n){l={};for(c in i)l[c]=n(i[c]);i=l}N_(a,i)}}}},xn=Yl.registerPlugin({name:"attr",init:function(t,n,s,e,i){var o,a,l;this.tween=s;for(o in n)l=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(l||0)+"",n[o],e,i,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(t,n){for(var s=n._pt;s;)Gi?s.set(s.t,s.p,s.b,s):s.r(t,s.d),s=s._next}},{name:"endArray",init:function(t,n){for(var s=n.length;s--;)this.add(t,s,t[s]||0,n[s],0,0,0,0,0,1)}},Gu("roundProps",gc),Gu("modifiers"),Gu("snap",cp))||Yl;fi.version=sn.version=xn.version="3.12.5";Yf=1;Nc()&&Go();ce.Power0;ce.Power1;ce.Power2;ce.Power3;ce.Power4;ce.Linear;ce.Quad;ce.Cubic;ce.Quart;ce.Quint;ce.Strong;ce.Elastic;ce.Back;ce.SteppedEase;ce.Bounce;ce.Sine;ce.Expo;ce.Circ;/*!
103 * CSSPlugin 3.12.5
104 * https://gsap.com
105 *
106 * Copyright 2008-2024, GreenSock. All rights reserved.
107 * Subject to the terms at https://gsap.com/standard-license or for
108 * Club GSAP members, the agreement issued with that membership.
109 * @author: Jack Doyle, [email protected]
110*/var Cd,ds,Fo,Kc,Gs,Td,Jc,H_=function(){return typeof window!="undefined"},ts={},Hs=180/Math.PI,Bo=Math.PI/180,Po=Math.atan2,Sd=1e8,Qc=/([A-Z])/g,j_=/(left|right|width|margin|padding|x)/i,q_=/[\s,\(]\S/,zr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},vc=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},Z_=function(t,n){return n.set(n.t,n.p,t===1?n.e:Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},W_=function(t,n){return n.set(n.t,n.p,t?Math.round((n.s+n.c*t)*1e4)/1e4+n.u:n.b,n)},G_=function(t,n){var s=n.s+n.c*t;n.set(n.t,n.p,~~(s+(s<0?-.5:.5))+n.u,n)},Ap=function(t,n){return n.set(n.t,n.p,t?n.e:n.b,n)},Op=function(t,n){return n.set(n.t,n.p,t!==1?n.b:n.e,n)},U_=function(t,n,s){return t.style[n]=s},V_=function(t,n,s){return t.style.setProperty(n,s)},Y_=function(t,n,s){return t._gsap[n]=s},X_=function(t,n,s){return t._gsap.scaleX=t._gsap.scaleY=s},K_=function(t,n,s,e,i){var o=t._gsap;o.scaleX=o.scaleY=s,o.renderTransform(i,o)},J_=function(t,n,s,e,i){var o=t._gsap;o[n]=s,o.renderTransform(i,o)},Ge="transform",wn=Ge+"Origin",Q_=function p(t,n){var s=this,e=this.target,i=e.style,o=e._gsap;
vendor: 5,028 bytes, line 110
110if(t in ts&&i){if(this.tfm=this.tfm||{},t!=="transform")t=zr[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return s.tfm[a]=Vr(e,a)}):this.tfm[t]=o.x?o[t]:Vr(e,t),t===wn&&(this.tfm.zOrigin=o.zOrigin);else return zr.transform.split(",").forEach(function(a){return p.call(s,a,n)});if(this.props.indexOf(Ge)>=0)return;o.svg&&(this.svgo=e.getAttribute("data-svg-origin"),this.props.push(wn,n,"")),t=Ge}(i||n)&&this.props.push(t,n,i[t])},Dp=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},tv=function(){var t=this.props,n=this.target,s=n.style,e=n._gsap,i,o;for(i=0;i<t.length;i+=3)t[i+1]?n[t[i]]=t[i+2]:t[i+2]?s[t[i]]=t[i+2]:s.removeProperty(t[i].substr(0,2)==="--"?t[i]:t[i].replace(Qc,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)e[o]=this.tfm[o];e.svg&&(e.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),i=Jc(),(!i||!i.isStart)&&!s[Ge]&&(Dp(s),e.zOrigin&&s[wn]&&(s[wn]+=" "+e.zOrigin+"px",e.zOrigin=0,e.renderTransform()),e.uncache=1)}},zp=function(t,n){var s={target:t,props:[],revert:tv,save:Q_};return t._gsap||xn.core.getCache(t),n&&n.split(",").forEach(function(e){return s.save(e)}),s},Ip,yc=function(t,n){var s=ds.createElementNS?ds.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ds.createElement(t);return s&&s.style?s:ds.createElement(t)},$r=function p(t,n,s){var e=getComputedStyle(t);return e[n]||e.getPropertyValue(n.replace(Qc,"-$1").toLowerCase())||e.getPropertyValue(n)||!s&&p(t,Uo(n)||n,1)||""},Ed="O,Moz,ms,Ms,Webkit".split(","),Uo=function(t,n,s){var e=n||Gs,i=e.style,o=5;if(t in i&&!s)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Ed[o]+t in i););return o<0?null:(o===3?"ms":o>=0?Ed[o]:"")+t},bc=function(){H_()&&window.document&&(Cd=window,ds=Cd.document,Fo=ds.documentElement,Gs=yc("div")||{style:{}},yc("div"),Ge=Uo(Ge),wn=Ge+"Origin",Gs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ip=!!Uo("perspective"),Jc=xn.core.reverting,Kc=1)},Uu=function p(t){var n=yc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,e=this.nextSibling,i=this.style.cssText,o;if(Fo.appendChild(n),n.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=p}catch(a){}else this._gsapBBox&&(o=this._gsapBBox());return s&&(e?s.insertBefore(this,e):s.appendChild(this)),Fo.removeChild(n),this.style.cssText=i,o},Ld=function(t,n){for(var s=n.length;s--;)if(t.hasAttribute(n[s]))return t.getAttribute(n[s])},$p=function(t){var n;try{n=t.getBBox()}catch(s){n=Uu.call(t,!0)}return n&&(n.width||n.height)||t.getBBox===Uu||(n=Uu.call(t,!0)),n&&!n.width&&!n.x&&!n.y?{x:+Ld(t,["x","cx","x1"])||0,y:+Ld(t,["y","cy","y1"])||0,width:0,height:0}:n},Rp=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&$p(t))},so=function(t,n){if(n){var s=t.style,e;n in ts&&n!==wn&&(n=Ge),s.removeProperty?(e=n.substr(0,2),(e==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),s.removeProperty(e==="--"?n:n.replace(Qc,"-$1").toLowerCase())):s.removeAttribute(n)}},fs=function(t,n,s,e,i,o){var a=new bn(t._pt,n,s,0,1,o?Op:Ap);return t._pt=a,a.b=e,a.e=i,t._props.push(s),a},Pd={deg:1,rad:1,turn:1},ev={grid:1,flex:1},bs=function p(t,n,s,e){var i=parseFloat(s)||0,o=(s+"").trim().substr((i+"").length)||"px",a=Gs.style,l=j_.test(n),c=t.tagName.toLowerCase()==="svg",h=(c?"client":"offset")+(l?"Width":"Height"),g=100,m=e==="px",v=e==="%",x,C,k,S;if(e===o||!i||Pd[e]||Pd[o])return i;if(o!=="px"&&!m&&(i=p(t,n,s,"px")),S=t.getCTM&&Rp(t),(v||o==="%")&&(ts[n]||~n.indexOf("adius")))return x=S?t.getBBox()[l?"width":"height"]:t[h],ni(v?i/x*g:i/100*x);if(a[l?"width":"height"]=g+(m?o:e),C=~n.indexOf("adius")||e==="em"&&t.appendChild&&!c?t:t.parentNode,S&&(C=(t.ownerSVGElement||{}).parentNode),(!C||C===ds||!C.appendChild)&&(C=ds.body),k=C._gsap,k&&v&&k.width&&l&&k.time===Bn.time&&!k.uncache)return ni(i/k.width*g);if(v&&(n==="height"||n==="width")){var A=t.style[n];t.style[n]=g+e,x=t[h],A?t.style[n]=A:so(t,n)}else(v||o==="%")&&!ev[$r(C,"display")]&&(a.position=$r(t,"position")),C===t&&(a.position="static"),C.appendChild(Gs),x=Gs[h],C.removeChild(Gs),a.position="absolute";return l&&v&&(k=Ys(C),k.time=Bn.time,k.width=C[h]),ni(m?x*i/g:x&&i?g/x*i:0)},Vr=function(t,n,s,e){var i;return Kc||bc(),n in zr&&n!=="transform"&&(n=zr[n],~n.indexOf(",")&&(n=n.split(",")[0])),ts[n]&&n!=="transform"?(i=Wa(t,e),i=n!=="transformOrigin"?i[n]:i.svg?i.origin:Kl($r(t,wn))+" "+i.zOrigin+"px"):(i=t.style[n],(!i||i==="auto"||e||~(i+"").indexOf("calc("))&&(i=Xl[n]&&Xl[n](t,n,s)||$r(t,n)||Qf(t,n)||(n==="opacity"?1:0))),s&&!~(i+"").trim().indexOf(" ")?bs(t,n,i,s)+s:i},iv=function(t,n,s,e){if(!s||s==="none"){var i=Uo(n,t,1),o=i&&$r(t,i,1);o&&o!==s?(n=i,s=o):n==="borderColor"&&(s=$r(t,"borderTopColor"))}var a=new bn(this._pt,t.style,n,0,1,Pp),l=0,c=0,h,g,m,v,x,C,k,S,A,z,R,W;if(a.b=s,a.e=e,s+="",e+="",e==="auto"&&(C=t.style[n],t.style[n]=e,e=$r(t,n)||e,C?t.style[n]=C:so(t,
vendor: 12,366 bytes, line 110
110n)),h=[s,e],vp(h),s=h[0],e=h[1],m=s.match(zo)||[],W=e.match(zo)||[],W.length){for(;g=zo.exec(e);)k=g[0],A=e.substring(l,g.index),x?x=(x+1)%5:(A.substr(-5)==="rgba("||A.substr(-5)==="hsla(")&&(x=1),k!==(C=m[c++]||"")&&(v=parseFloat(C)||0,R=C.substr((v+"").length),k.charAt(1)==="="&&(k=Ro(v,k)+R),S=parseFloat(k),z=k.substr((S+"").length),l=zo.lastIndex-z.length,z||(z=z||jn.units[n]||R,l===e.length&&(e+=z,a.e+=z)),R!==z&&(v=bs(t,n,C,z)||0),a._pt={_next:a._pt,p:A||c===1?A:",",s:v,c:S-v,m:x&&x<4||n==="zIndex"?Math.round:0});a.c=l<e.length?e.substring(l,e.length):""}else a.r=n==="display"&&e==="none"?Op:Ap;return Uf.test(e)&&(a.e=0),this._pt=a,a},kd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},nv=function(t){var n=t.split(" "),s=n[0],e=n[1]||"50%";return(s==="top"||s==="bottom"||e==="left"||e==="right")&&(t=s,s=e,e=t),n[0]=kd[s]||s,n[1]=kd[e]||e,n.join(" ")},rv=function(t,n){if(n.tween&&n.tween._time===n.tween._dur){var s=n.t,e=s.style,i=n.u,o=s._gsap,a,l,c;if(i==="all"||i===!0)e.cssText="",l=1;else for(i=i.split(","),c=i.length;--c>-1;)a=i[c],ts[a]&&(l=1,a=a==="transformOrigin"?wn:Ge),so(s,a);l&&(so(s,Ge),o&&(o.svg&&s.removeAttribute("transform"),Wa(s,1),o.uncache=1,Dp(e)))}},Xl={clearProps:function(t,n,s,e,i){if(i.data!=="isFromStart"){var o=t._pt=new bn(t._pt,n,s,0,0,rv);return o.u=e,o.pr=-10,o.tween=i,t._props.push(s),1}}},Za=[1,0,0,1,0,0],Fp={},Bp=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},Md=function(t){var n=$r(t,Ge);return Bp(n)?Za:n.substr(7).match(Gf).map(ni)},th=function(t,n){var s=t._gsap||Ys(t),e=t.style,i=Md(t),o,a,l,c;return s.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,i=[l.a,l.b,l.c,l.d,l.e,l.f],i.join(",")==="1,0,0,1,0,0"?Za:i):(i===Za&&!t.offsetParent&&t!==Fo&&!s.svg&&(l=e.display,e.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(c=1,a=t.nextElementSibling,Fo.appendChild(t)),i=Md(t),l?e.display=l:so(t,"display"),c&&(a?o.insertBefore(t,a):o?o.appendChild(t):Fo.removeChild(t))),n&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},wc=function(t,n,s,e,i,o){var a=t._gsap,l=i||th(t,!0),c=a.xOrigin||0,h=a.yOrigin||0,g=a.xOffset||0,m=a.yOffset||0,v=l[0],x=l[1],C=l[2],k=l[3],S=l[4],A=l[5],z=n.split(" "),R=parseFloat(z[0])||0,W=parseFloat(z[1])||0,Y,b,rt,J;s?l!==Za&&(b=v*k-x*C)&&(rt=R*(k/b)+W*(-C/b)+(C*A-k*S)/b,J=R*(-x/b)+W*(v/b)-(v*A-x*S)/b,R=rt,W=J):(Y=$p(t),R=Y.x+(~z[0].indexOf("%")?R/100*Y.width:R),W=Y.y+(~(z[1]||z[0]).indexOf("%")?W/100*Y.height:W)),e||e!==!1&&a.smooth?(S=R-c,A=W-h,a.xOffset=g+(S*v+A*C)-S,a.yOffset=m+(S*x+A*k)-A):a.xOffset=a.yOffset=0,a.xOrigin=R,a.yOrigin=W,a.smooth=!!e,a.origin=n,a.originIsAbsolute=!!s,t.style[wn]="0px 0px",o&&(fs(o,a,"xOrigin",c,R),fs(o,a,"yOrigin",h,W),fs(o,a,"xOffset",g,a.xOffset),fs(o,a,"yOffset",m,a.yOffset)),t.setAttribute("data-svg-origin",R+" "+W)},Wa=function(t,n){var s=t._gsap||new xp(t);if("x"in s&&!n&&!s.uncache)return s;var e=t.style,i=s.scaleX<0,o="px",a="deg",l=getComputedStyle(t),c=$r(t,wn)||"0",h,g,m,v,x,C,k,S,A,z,R,W,Y,b,rt,J,at,St,ut,q,st,mt,xt,ht,ot,Nt,B,Lt,Q,yt,pt,dt;return h=g=m=C=k=S=A=z=R=0,v=x=1,s.svg=!!(t.getCTM&&Rp(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(e[Ge]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Ge]!=="none"?l[Ge]:"")),e.scale=e.rotate=e.translate="none"),b=th(t,s.svg),s.svg&&(s.uncache?(ot=t.getBBox(),c=s.xOrigin-ot.x+"px "+(s.yOrigin-ot.y)+"px",ht=""):ht=!n&&t.getAttribute("data-svg-origin"),wc(t,ht||c,!!ht||s.originIsAbsolute,s.smooth!==!1,b)),W=s.xOrigin||0,Y=s.yOrigin||0,b!==Za&&(St=b[0],ut=b[1],q=b[2],st=b[3],h=mt=b[4],g=xt=b[5],b.length===6?(v=Math.sqrt(St*St+ut*ut),x=Math.sqrt(st*st+q*q),C=St||ut?Po(ut,St)*Hs:0,A=q||st?Po(q,st)*Hs+C:0,A&&(x*=Math.abs(Math.cos(A*Bo))),s.svg&&(h-=W-(W*St+Y*q),g-=Y-(W*ut+Y*st))):(dt=b[6],yt=b[7],B=b[8],Lt=b[9],Q=b[10],pt=b[11],h=b[12],g=b[13],m=b[14],rt=Po(dt,Q),k=rt*Hs,rt&&(J=Math.cos(-rt),at=Math.sin(-rt),ht=mt*J+B*at,ot=xt*J+Lt*at,Nt=dt*J+Q*at,B=mt*-at+B*J,Lt=xt*-at+Lt*J,Q=dt*-at+Q*J,pt=yt*-at+pt*J,mt=ht,xt=ot,dt=Nt),rt=Po(-q,Q),S=rt*Hs,rt&&(J=Math.cos(-rt),at=Math.sin(-rt),ht=St*J-B*at,ot=ut*J-Lt*at,Nt=q*J-Q*at,pt=st*at+pt*J,St=ht,ut=ot,q=Nt),rt=Po(ut,St),C=rt*Hs,rt&&(J=Math.cos(rt),at=Math.sin(rt),ht=St*J+ut*at,ot=mt*J+xt*at,ut=ut*J-St*at,xt=xt*J-mt*at,St=ht,mt=ot),k&&Math.abs(k)+Math.abs(C)>359.9&&(k=C=0,S=180-S),v=ni(Math.sqrt(St*St+ut*ut+q*q)),x=ni(Math.sqrt(xt*xt+dt*dt)),rt=Po(mt,xt),A=Math.abs(rt)>2e-4?rt*Hs:0,R=pt?1/(pt<0?-pt:pt):0),s.svg&&(ht=t.getAttribute("transform"),s.forceCSS=t.setAttribute("transform","")||!Bp($r(t,Ge)),ht&&t.setAttribute("transform",ht))),Math.abs(A)>90&&Math.abs(A)<270&&(i?(v*=-1,A+=C<=0?180:-180,C+=C<=0?180:-180):(x*=-1,A+=A<=0?180:-180)),n=n||s.uncache,s.x=h-((s.xPercent=h&&(!n&&s.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-h)?-50:0)))?t.offsetWidth*s.xPercent/100:0)+o,s.y=g-((s.yPercent=g&&(!n&&s.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-g)?-50:0)))?t.offsetHeight*s.yPercent/100:0)+o,s.z=m+o,s.scaleX=ni(v),s.scaleY=ni(x),s.rotation=ni(C)+a,s.rotationX=ni(k)+a,s.rotationY=ni(S)+a,s.skewX=A+a,s.skewY=z+a,s.transformPerspective=R+o,(s.zOrigin=parseFloat(c.split(" ")[2])||!n&&s.zOrigin||0)&&(e[wn]=Kl(c)),s.xOffset=s.yOffset=0,s.force3D=jn.force3D,s.renderTransform=s.svg?ov:Ip?Np:sv,s.uncache=0,s},Kl=function(t){return(t=t.split(" "))[0]+" "+t[1]},Vu=function(t,n,s){var e=Wi(n);return ni(parseFloat(n)+parseFloat(bs(t,"x",s+"px",e)))+e},sv=function(t,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Np(t,n)},Bs="0deg",fa="0px",Ns=") ",Np=function(t,n){var s=n||this,e=s.xPercent,i=s.yPercent,o=s.x,a=s.y,l=s.z,c=s.rotation,h=s.rotationY,g=s.rotationX,m=s.skewX,v=s.skewY,x=s.scaleX,C=s.scaleY,k=s.transformPerspective,S=s.force3D,A=s.target,z=s.zOrigin,R="",W=S==="auto"&&t&&t!==1||S===!0;if(z&&(g!==Bs||h!==Bs)){var Y=parseFloat(h)*Bo,b=Math.sin(Y),rt=Math.cos(Y),J;Y=parseFloat(g)*Bo,J=Math.cos(Y),o=Vu(A,o,b*J*-z),a=Vu(A,a,-Math.sin(Y)*-z),l=Vu(A,l,rt*J*-z+z)}k!==fa&&(R+="perspective("+k+Ns),(e||i)&&(R+="translate("+e+"%, "+i+"%) "),(W||o!==fa||a!==fa||l!==fa)&&(R+=l!==fa||W?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+Ns),c!==Bs&&(R+="rotate("+c+Ns),h!==Bs&&(R+="rotateY("+h+Ns),g!==Bs&&(R+="rotateX("+g+Ns),(m!==Bs||v!==Bs)&&(R+="skew("+m+", "+v+Ns),(x!==1||C!==1)&&(R+="scale("+x+", "+C+Ns),A.style[Ge]=R||"translate(0, 0)"},ov=function(t,n){var s=n||this,e=s.xPercent,i=s.yPercent,o=s.x,a=s.y,l=s.rotation,c=s.skewX,h=s.skewY,g=s.scaleX,m=s.scaleY,v=s.target,x=s.xOrigin,C=s.yOrigin,k=s.xOffset,S=s.yOffset,A=s.forceCSS,z=parseFloat(o),R=parseFloat(a),W,Y,b,rt,J;l=parseFloat(l),c=parseFloat(c),h=parseFloat(h),h&&(h=parseFloat(h),c+=h,l+=h),l||c?(l*=Bo,c*=Bo,W=Math.cos(l)*g,Y=Math.sin(l)*g,b=Math.sin(l-c)*-m,rt=Math.cos(l-c)*m,c&&(h*=Bo,J=Math.tan(c-h),J=Math.sqrt(1+J*J),b*=J,rt*=J,h&&(J=Math.tan(h),J=Math.sqrt(1+J*J),W*=J,Y*=J)),W=ni(W),Y=ni(Y),b=ni(b),rt=ni(rt)):(W=g,rt=m,Y=b=0),(z&&!~(o+"").indexOf("px")||R&&!~(a+"").indexOf("px"))&&(z=bs(v,"x",o,"px"),R=bs(v,"y",a,"px")),(x||C||k||S)&&(z=ni(z+x-(x*W+C*b)+k),R=ni(R+C-(x*Y+C*rt)+S)),(e||i)&&(J=v.getBBox(),z=ni(z+e/100*J.width),R=ni(R+i/100*J.height)),J="matrix("+W+","+Y+","+b+","+rt+","+z+","+R+")",v.setAttribute("transform",J),A&&(v.style[Ge]=J)},av=function(t,n,s,e,i){var o=360,a=Mi(i),l=parseFloat(i)*(a&&~i.indexOf("rad")?Hs:1),c=l-e,h=e+c+"deg",g,m;return a&&(g=i.split("_")[1],g==="short"&&(c%=o,c!==c%(o/2)&&(c+=c<0?o:-o)),g==="cw"&&c<0?c=(c+o*Sd)%o-~~(c/o)*o:g==="ccw"&&c>0&&(c=(c-o*Sd)%o-~~(c/o)*o)),t._pt=m=new bn(t._pt,n,s,e,c,Z_),m.e=h,m.u="deg",t._props.push(s),m},Ad=function(t,n){for(var s in n)t[s]=n[s];return t},lv=function(t,n,s){var e=Ad({},s._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,l,c,h,g,m,v,x;e.svg?(c=s.getAttribute("transform"),s.setAttribute("transform",""),o[Ge]=n,a=Wa(s,1),so(s,Ge),s.setAttribute("transform",c)):(c=getComputedStyle(s)[Ge],o[Ge]=n,a=Wa(s,1),o[Ge]=c);for(l in ts)c=e[l],h=a[l],c!==h&&i.indexOf(l)<0&&(v=Wi(c),x=Wi(h),g=v!==x?bs(s,l,c,x):parseFloat(c),m=parseFloat(h),t._pt=new bn(t._pt,a,l,g,m-g,vc),t._pt.u=x||0,t._props.push(l));Ad(a,e)};yn("padding,margin,Width,Radius",function(p,t){var n="Top",s="Right",e="Bottom",i="Left",o=(t<3?[n,s,e,i]:[n+i,n+s,e+s,e+i]).map(function(a){return t<2?p+a:"border"+a+p});Xl[t>1?"border"+p:p]=function(a,l,c,h,g){var m,v;if(arguments.length<4)return m=o.map(function(x){return Vr(a,x,c)}),v=m.join(" "),v.split(m[0]).length===5?m[0]:v;m=(h+"").split(" "),v={},o.forEach(function(x,C){return v[x]=m[C]=m[C]||m[(C-1)/2|0]}),a.init(l,v,g)}});var Hp={name:"css",register:bc,targetTest:function(t){return t.style&&t.nodeType},init:function(t,n,s,e,i){var o=this._props,a=t.style,l=s.vars.startAt,c,h,g,m,v,x,C,k,S,A,z,R,W,Y,b,rt;Kc||bc(),this.styles=this.styles||zp(t),rt=this.styles.props,this.tween=s;for(C in n)if(C!=="autoRound"&&(h=n[C],!(Fn[C]&&Cp(C,n,s,e,t,i)))){if(v=typeof h,x=Xl[C],v==="function"&&(h=h.call(s,e,t,i),v=typeof h),v==="string"&&~h.indexOf("random(")&&(h=Ha(h)),x)x(this,t,C,h,s)&&(b=1);else if(C.substr(0,2)==="--")c=(getComputedStyle(t).getPropertyValue(C)+"").trim(),h+="",_s.lastIndex=0,_s.test(c)||(k=Wi(c),S=Wi(h)),S?k!==S&&(c=bs(t,C,c,S)+S):k&&(h+=k),this.add(a,"setProperty",c,h,e,i,0,0,C),o.push(C),rt.push(C,0,a[C]);else if(v!=="undefined"){if(l&&C in l?(c=typeof l[C]=="function"?l[C].call(s,e,t,i):l[C],Mi(c)&&~c.indexOf("random(")&&(c=Ha(c)),Wi(c+"")||c==="auto"||(c+=jn.units[C]||Wi(Vr(t,C))||""),(c+"").charAt(1)==="="&&(c=Vr(t,C))):c=Vr(t,C),m=parseFloat(c),A=v==="string"&&h.charAt(1)==="="&&h.substr(0,2),A&&(h=h.substr(2)),g=parseFloat(h),C in zr&&(C==="autoAlpha"&&(m===1&&Vr(t,"visibility")==="hidden"&&g&&(m=0),rt.push("visibility",0,a.visibility),fs(this,a,"visibility",m?"inherit":"hidden",g?"inherit":"hidden",!g)),C!=="scale"&&C!=="transform"&&(C=zr[C],~C.indexOf(",")&&(C=C.split(",")[0]))),z=C in ts,z){if(this.styles.save(C),R||(W=t._gsap,W.renderTransform&&!n.parseTransform||Wa(t,n.parseTransform),Y=n.smoothOrigin!==!1&&W.smooth,R=this._pt=new bn(this._pt,a,Ge,0,1,W.renderTransform,W,0,-1),R.dep=1),C==="scale")this._pt=new bn(this._pt,W,"scaleY",W.scaleY,(A?Ro(W.scaleY,A+g):g)-W.scaleY||0,vc),this._pt.u=0,o.push("scaleY",C),C+="X";else if(C==="transformOrigin"){rt.push(wn,0,a[wn]),h=nv(h),W.svg?wc(t,h,0,Y,0,this):(S=parseFloat(h.split(" ")[2])||0,S!==W.zOrigin&&fs(this,W,"zOrigin",W.zOrigin,S),fs(this,a,C,Kl(c),Kl(h)));continue}else if(C==="svgOrigin"){wc(t,h,1,Y,0,this);continue}else if(C in Fp){av(this,W,C,m,A?Ro(m,A+h):h);continue}else if(C==="smoothOrigin"){fs(this,W,"smooth",W.smooth,h);continue}else if(C==="force3D"){W[C]=h;continue}else if(C==="transform"){lv(this,h,t);continue}}else C in a||(C=Uo(C)||C);if(z||(g||g===0)&&(m||m===0)&&!q_.test(h)&&C in a)k=(c+"").substr((m+"").length),g||(g=0),S=Wi(h)||(C in jn.units?jn.units[C]:k),k!==S&&(m=bs(t,C,c,S)),this._pt=new bn(this._pt,z?W:a,C,m,(A?Ro(m,A+g):g)-m,!z&&(S==="px"||C==="zIndex")&&n.autoRound!==!1?G_:vc),this._pt.u=S||0,k!==S&&S!=="%"&&(this._pt.b=c,this._pt.r=W_);else if(C in a)iv.call(this,t,C,c,A?A+h:h);else if(C in t)this.add(t,C,c||t[C],A?A+h:h,e,i);else if(C!=="parseTransform"){jc(C,h);continue}z||(C in a?rt.push(C,0,a[C]):rt.push(C,1,c||t[C])),o.push(C)}}b&&kp(this)},render:function(t,n){if(n.tween._time||!Jc())for(var s=n._pt;s;)s.r(t,s.d),s=s._next;else n.styles.revert()},get:Vr,aliases:zr,getSetter:function(t,n,s){var e=zr[n];return e&&e.indexOf(",")<0&&(n=e),n in ts&&n!==wn&&(t._gsap.x||Vr(t,"x"))?s&&Td===s?n==="scale"?X_:Y_:(Td=s||{})&&(n==="scale"?K_:J_):t.style&&!Bc(t.style[n])?U_:~n.indexOf("-")?V_:Yc(t,n)},core:{_removeProperty:so,_getMatrix:th}};xn.utils.checkPrefix=Uo;xn.core.getStyleSaver=zp;(function(p,t,n,s){var e=yn(p+","+t+","+n,function(i){ts[i]=1});yn(t,function(i){jn.units[i]="deg",Fp[i]=1}),zr[e[13]]=p+","+t,yn(s,function(i){var o=i.split(":");zr[o[1]]=e[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");yn("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(p){
vendor: 4,331 bytes, lines 110-118
110jn.units[p]="px"});xn.registerPlugin(Hp);var eh=xn.registerPlugin(Hp)||xn;eh.core.Tween;function Od(p,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(p,s.key,s)}}function uv(p,t,n){return t&&Od(p.prototype,t),n&&Od(p,n),p}/*!
111 * Observer 3.12.5
112 * https://gsap.com
113 *
114 * @license Copyright 2008-2024, GreenSock. All rights reserved.
115 * Subject to the terms at https://gsap.com/standard-license or for
116 * Club GSAP members, the agreement issued with that membership.
117 * @author: Jack Doyle, [email protected]
118*/var Di,Il,Nn,ps,gs,No,jp,js,ka,qp,Kr,wr,Zp,Wp=function(){return Di||typeof window!="undefined"&&(Di=window.gsap)&&Di.registerPlugin&&Di},Gp=1,$o=[],re=[],Rr=[],Ma=Date.now,xc=function(t,n){return n},cv=function(){var t=ka.core,n=t.bridge||{},s=t._scrollers,e=t._proxies;s.push.apply(s,re),e.push.apply(e,Rr),re=s,Rr=e,xc=function(o,a){return n[o](a)}},vs=function(t,n){return~Rr.indexOf(t)&&Rr[Rr.indexOf(t)+1][n]},Aa=function(t){return!!~qp.indexOf(t)},tn=function(t,n,s,e,i){return t.addEventListener(n,s,{passive:e!==!1,capture:!!i})},Qi=function(t,n,s,e){return t.removeEventListener(n,s,!!e)},bl="scrollLeft",wl="scrollTop",Cc=function(){return Kr&&Kr.isPressed||re.cache++},Jl=function(t,n){var s=function e(i){if(i||i===0){Gp&&(Nn.history.scrollRestoration="manual");var o=Kr&&Kr.isPressed;i=e.v=Math.round(i)||(Kr&&Kr.iOS?1:0),t(i),e.cacheID=re.cache,o&&xc("ss",i)}else(n||re.cache!==e.cacheID||xc("ref"))&&(e.cacheID=re.cache,e.v=t());return e.v+e.offset};return s.offset=0,t&&s},on={s:bl,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Jl(function(p){return arguments.length?Nn.scrollTo(p,wi.sc()):Nn.pageXOffset||ps[bl]||gs[bl]||No[bl]||0})},wi={s:wl,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:on,sc:Jl(function(p){return arguments.length?Nn.scrollTo(on.sc(),p):Nn.pageYOffset||ps[wl]||gs[wl]||No[wl]||0})},gn=function(t,n){return(n&&n._ctx&&n._ctx.selector||Di.utils.toArray)(t)[0]||(typeof t=="string"&&Di.config().nullTargetWarn!==!1?console.warn("Element not found:",t):null)},ws=function(t,n){var s=n.s,e=n.sc;Aa(t)&&(t=ps.scrollingElement||gs);var i=re.indexOf(t),o=e===wi.sc?1:2;!~i&&(i=re.push(t)-1),re[i+o]||tn(t,"scroll",Cc);var a=re[i+o],l=a||(re[i+o]=Jl(vs(t,s),!0)||(Aa(t)?e:Jl(function(c){return arguments.length?t[s]=c:t[s]})));return l.target=t,a||(l.smooth=Di.getProperty(t,"scrollBehavior")==="smooth"),l},Tc=function(t,n,s){var e=t,i=t,o=Ma(),a=o,l=n||50,c=Math.max(500,l*3),h=function(x,C){var k=Ma();C||k-o>l?(i=e,e=x,a=o,o=k):s?e+=x:e=i+(x-i)/(k-a)*(o-a)},g=function(){i=e=s?0:e,a=o=0},m=function(x){var C=a,k=i,S=Ma();return(x||x===0)&&x!==e&&h(x),o===a||S-a>c?0:(e+(s?k:-k))/((s?S:o)-C)*1e3};return{update:h,reset:g,getVelocity:m}},pa=function(t,n){return n&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Dd=function(t){var n=Math.max.apply(Math,t),s=Math.min.apply(Math,t);return Math.abs(n)>=Math.abs(s)?n:s},Up=function(){ka=Di.core.globals().ScrollTrigger,ka&&ka.core&&cv()},Vp=function(t){return Di=t||Wp(),!Il&&Di&&typeof document!="undefined"&&document.body&&(Nn=window,ps=document,gs=ps.documentElement,No=ps.body,qp=[Nn,ps,gs,No],Di.utils.clamp,Zp=Di.core.context||function(){},js="onpointerenter"in No?"pointer":"mouse",jp=ri.isTouch=Nn.matchMedia&&Nn.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Nn||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,wr=ri.eventTypes=("ontouchstart"in gs?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in gs?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Gp=0},500),Up(),Il=1),Il};on.op=wi;re.cache=0;var ri=function(){function p(n){this.init(n)}var t=p.prototype;return t.init=function(s){Il||Vp(Di)||console.warn("Please gsap.registerPlugin(Observer)"),ka||Up();var e=s.tolerance,i=s.dragMinimum,o=s.type,a=s.target,l=s.lineHeight,c=s.debounce,h=s.preventDefault,g=s.onStop,m=s.onStopDelay,v=s.ignore,x=s.wheelSpeed,C=s.event,k=s.onDragStart,S=s.onDragEnd,A=s.onDrag,z=s.onPress,R=s.onRelease,W=s.onRight,Y=s.onLeft,b=s.onUp,rt=s.onDown,J=s.onChangeX,at=s.onChangeY,St=s.onChange,ut=s.onToggleX,q=s.onToggleY,st=s.onHover,mt=s.on
vendor: 6,673 bytes, lines 118-126
118HoverEnd,xt=s.onMove,ht=s.ignoreCheck,ot=s.isNormalizer,Nt=s.onGestureStart,B=s.onGestureEnd,Lt=s.onWheel,Q=s.onEnable,yt=s.onDisable,pt=s.onClick,dt=s.scrollSpeed,_t=s.capture,At=s.allowClicks,se=s.lockAxis,me=s.onLockAxis;this.target=a=gn(a)||gs,this.vars=s,v&&(v=Di.utils.toArray(v)),e=e||1e-9,i=i||0,x=x||1,dt=dt||1,o=o||"wheel,touch,pointer",c=c!==!1,l||(l=parseFloat(Nn.getComputedStyle(No).lineHeight)||22);var Oe,Ne,Ie,Ut,Se,gi,si,et=this,be=0,Cn=0,Tn=s.passive||!h,Ee=ws(a,on),Ue=ws(a,wi),zi=Ee(),ln=Ue(),vt=~o.indexOf("touch")&&!~o.indexOf("pointer")&&wr[0]==="pointerdown",xe=Aa(a),Le=a.ownerDocument||ps,Ii=[0,0,0],$i=[0,0,0],Vi=0,fr=function(){return Vi=Ma()},we=function(It,oe){return(et.event=It)&&v&&~v.indexOf(It.target)||oe&&vt&&It.pointerType!=="touch"||ht&&ht(It,oe)},Ai=function(){et._vx.reset(),et._vy.reset(),Ne.pause(),g&&g(et)},oi=function(){var It=et.deltaX=Dd(Ii),oe=et.deltaY=Dd($i),gt=Math.abs(It)>=e,$t=Math.abs(oe)>=e;St&&(gt||$t)&&St(et,It,oe,Ii,$i),gt&&(W&&et.deltaX>0&&W(et),Y&&et.deltaX<0&&Y(et),J&&J(et),ut&&et.deltaX<0!=be<0&&ut(et),be=et.deltaX,Ii[0]=Ii[1]=Ii[2]=0),$t&&(rt&&et.deltaY>0&&rt(et),b&&et.deltaY<0&&b(et),at&&at(et),q&&et.deltaY<0!=Cn<0&&q(et),Cn=et.deltaY,$i[0]=$i[1]=$i[2]=0),(Ut||Ie)&&(xt&&xt(et),Ie&&(A(et),Ie=!1),Ut=!1),gi&&!(gi=!1)&&me&&me(et),Se&&(Lt(et),Se=!1),Oe=0},Ri=function(It,oe,gt){Ii[gt]+=It,$i[gt]+=oe,et._vx.update(It),et._vy.update(oe),c?Oe||(Oe=requestAnimationFrame(oi)):oi()},Tr=function(It,oe){se&&!si&&(et.axis=si=Math.abs(It)>Math.abs(oe)?"x":"y",gi=!0),si!=="y"&&(Ii[2]+=It,et._vx.update(It,!0)),si!=="x"&&($i[2]+=oe,et._vy.update(oe,!0)),c?Oe||(Oe=requestAnimationFrame(oi)):oi()},mi=function(It){if(!we(It,1)){It=pa(It,h);var oe=It.clientX,gt=It.clientY,$t=oe-et.x,zt=gt-et.y,Ot=et.isDragging;et.x=oe,et.y=gt,(Ot||Math.abs(et.startX-oe)>=i||Math.abs(et.startY-gt)>=i)&&(A&&(Ie=!0),Ot||(et.isDragging=!0),Tr($t,zt),Ot||k&&k(et))}},Zn=et.onPress=function(jt){we(jt,1)||jt&&jt.button||(et.axis=si=null,Ne.pause(),et.isPressed=!0,jt=pa(jt),be=Cn=0,et.startX=et.x=jt.clientX,et.startY=et.y=jt.clientY,et._vx.reset(),et._vy.reset(),tn(ot?a:Le,wr[1],mi,Tn,!0),et.deltaX=et.deltaY=0,z&&z(et))},Zt=et.onRelease=function(jt){if(!we(jt,1)){Qi(ot?a:Le,wr[1],mi,!0);var It=!isNaN(et.y-et.startY),oe=et.isDragging,gt=oe&&(Math.abs(et.x-et.startX)>3||Math.abs(et.y-et.startY)>3),$t=pa(jt);!gt&&It&&(et._vx.reset(),et._vy.reset(),h&&At&&Di.delayedCall(.08,function(){if(Ma()-Vi>300&&!jt.defaultPrevented){if(jt.target.click)jt.target.click();else if(Le.createEvent){var zt=Le.createEvent("MouseEvents");zt.initMouseEvent("click",!0,!0,Nn,1,$t.screenX,$t.screenY,$t.clientX,$t.clientY,!1,!1,!1,!1,0,null),jt.target.dispatchEvent(zt)}}})),et.isDragging=et.isGesturing=et.isPressed=!1,g&&oe&&!ot&&Ne.restart(!0),S&&oe&&S(et),R&&R(et,gt)}},Wn=function(It){return It.touches&&It.touches.length>1&&(et.isGesturing=!0)&&Nt(It,et.isDragging)},Je=function(){return(et.isGesturing=!1)||B(et)},ai=function(It){if(!we(It)){var oe=Ee(),gt=Ue();Ri((oe-zi)*dt,(gt-ln)*dt,1),zi=oe,ln=gt,g&&Ne.restart(!0)}},Fi=function(It){if(!we(It)){It=pa(It,h),Lt&&(Se=!0);var oe=(It.deltaMode===1?l:It.deltaMode===2?Nn.innerHeight:1)*x;Ri(It.deltaX*oe,It.deltaY*oe,0),g&&!ot&&Ne.restart(!0)}},Gn=function(It){if(!we(It)){var oe=It.clientX,gt=It.clientY,$t=oe-et.x,zt=gt-et.y;et.x=oe,et.y=gt,Ut=!0,g&&Ne.restart(!0),($t||zt)&&Tr($t,zt)}},Qe=function(It){et.event=It,st(et)},Pe=function(It){et.event=It,mt(et)},pr=function(It){return we(It)||pa(It,h)&&pt(et)};Ne=et._dc=Di.delayedCall(m||.25,Ai).pause(),et.deltaX=et.deltaY=0,et._vx=Tc(0,50,!0),et._vy=Tc(0,50,!0),et.scrollX=Ee,et.scrollY=Ue,et.isDragging=et.isGesturing=et.isPressed=!1,Zp(this),et.enable=function(jt){return et.isEnabled||(tn(xe?Le:a,"scroll",Cc),o.indexOf("scroll")>=0&&tn(xe?Le:a,"scroll",ai,Tn,_t),o.indexOf("wheel")>=0&&tn(a,"wheel",Fi,Tn,_t),(o.indexOf("touch")>=0&&jp||o.indexOf("pointer")>=0)&&(tn(a,wr[0],Zn,Tn,_t),tn(Le,wr[2],Zt),tn(Le,wr[3],Zt),At&&tn(a,"click",fr,!0,!0),pt&&tn(a,"click",pr),Nt&&tn(Le,"gesturestart",Wn),B&&tn(Le,"gestureend",Je),st&&tn(a,js+"enter",Qe),mt&&tn(a,js+"leave",Pe),xt&&tn(a,js+"move",Gn)),et.isEnabled=!0,jt&&jt.type&&Zn(jt),Q&&Q(et)),et},et.disable=function(){et.isEnabled&&($o.filter(function(jt){return jt!==et&&Aa(jt.target)}).length||Qi(xe?Le:a,"scroll",Cc),et.isPressed&&(et._vx.reset(),et._vy.reset(),Qi(ot?a:Le,wr[1],mi,!0)),Qi(xe?Le:a,"scroll",ai,_t),Qi(a,"wheel",Fi,_t),Qi(a,wr[0],Zn,_t),Qi(Le,wr[2],Zt),Qi(Le,wr[3],Zt),Qi(a,"click",fr,!0),Qi(a,"click",pr),Qi(Le,"gesturestart",Wn),Qi(Le,"gestureend",Je),Qi(a,js+"enter",Qe),Qi(a,js+"leave",Pe),Qi(a,js+"move",Gn),et.isEnabled=et.isPressed=et.isDragging=!1,yt&&yt(et))},et.kill=et.revert=function(){et.disable();var jt=$o.indexOf(et);jt>=0&&$o.splice(jt,1),Kr===et&&(Kr=0)},$o.push(et),ot&&Aa(a)&&(Kr=et),et.enable(C)},uv(p,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),p}();ri.version="3.12.5";ri.create=function(p){return new ri(p)};ri.register=Vp;ri.getAll=function(){return $o.slice()};ri.getById=function(p){return $o.filter(function(t){return t.vars.id===p})[0]};Wp()&&Di.registerPlugin(ri);/*!
119 * ScrollTrigger 3.12.5
120 * https://gsap.com
121 *
122 * @license Copyright 2008-2024, GreenSock. All rights reserved.
123 * Subject to the terms at https://gsap.com/standard-license or for
124 * Club GSAP members, the agreement issued with that membership.
125 * @author: Jack Doyle, [email protected]
126*/var kt,Ao,ue,Ze,xr,ze,Yp,Ql,Ga,Oa,ba,xl,ji,lu,Sc,nn,zd,Id,Oo,Xp,Yu,Kp,en,Ec,Jp,Qp,cs,Lc,ih,Ho,nh,tu,Pc,Xu,Cl=1,Zi=Date.now,Ku=Zi(),hr=0,wa=0,$d=function(t,n,s){var e=$n(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return s["_"+n+"Clamp"]=e,e?t.substr(6,t.length-7):t},Rd=function(t,n){return n&&(!$n(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},hv=function p(){return wa&&requestAnimationFrame(p)},Fd=function(){return lu=1},Bd=function(){return lu=0},Mr=function(t){return t},xa=function(t){return Math.round(t*1e5)/1e5||0},tg=function(){return typeof window!="undefined"},eg=function(){return kt||tg()&&(kt=window.gsap)&&kt.registerPlugin&&kt},oo=function(t){return!!~Yp.indexOf(t)},ig=function(t){return(t==="Height"?nh:ue["inner"+t])||xr["client"+t]||ze["client"+t]},ng=function(t){return vs(t,"getBoundingClientRect")||(oo(t)?function(){return Nl.width=ue.innerWidth,Nl.height=nh,Nl}:function(){return Yr(t)})},dv=function(t,n,s){var e=s.d,i=s.d2,o=s.a;return(o=vs(t,"getBoundingClientRect"))?function(){return o()[e]}:function(){return(n?ig(i):t["client"+i])||0}},fv=function(t,n){return!n||~Rr.indexOf(t)?ng(t):function(){return Nl}},Ir=function(t,n){var s=n.s,e=n.d2,i=n.d,o=n.a;
vendor: 4,733 bytes, line 126
126return Math.max(0,(s="scroll"+e)&&(o=vs(t,s))?o()-ng(t)()[i]:oo(t)?(xr[s]||ze[s])-ig(e):t[s]-t["offset"+e])},Tl=function(t,n){for(var s=0;s<Oo.length;s+=3)(!n||~n.indexOf(Oo[s+1]))&&t(Oo[s],Oo[s+1],Oo[s+2])},$n=function(t){return typeof t=="string"},an=function(t){return typeof t=="function"},Ca=function(t){return typeof t=="number"},qs=function(t){return typeof t=="object"},ga=function(t,n,s){return t&&t.progress(n?0:1)&&s&&t.pause()},Ju=function(t,n){if(t.enabled){var s=t._ctx?t._ctx.add(function(){return n(t)}):n(t);s&&s.totalTime&&(t.callbackAnimation=s)}},ko=Math.abs,rg="left",sg="top",rh="right",sh="bottom",Qs="width",to="height",Da="Right",za="Left",Ia="Top",$a="Bottom",di="padding",ar="margin",Vo="Width",oh="Height",bi="px",lr=function(t){return ue.getComputedStyle(t)},pv=function(t){var n=lr(t).position;t.style.position=n==="absolute"||n==="fixed"?n:"relative"},Nd=function(t,n){for(var s in n)s in t||(t[s]=n[s]);return t},Yr=function(t,n){var s=n&&lr(t)[Sc]!=="matrix(1, 0, 0, 1, 0, 0)"&&kt.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),e=t.getBoundingClientRect();return s&&s.progress(0).kill(),e},eu=function(t,n){var s=n.d2;return t["offset"+s]||t["client"+s]||0},og=function(t){var n=[],s=t.labels,e=t.duration(),i;for(i in s)n.push(s[i]/e);return n},gv=function(t){return function(n){return kt.utils.snap(og(t),n)}},ah=function(t){var n=kt.utils.snap(t),s=Array.isArray(t)&&t.slice(0).sort(function(e,i){return e-i});return s?function(e,i,o){o===void 0&&(o=.001);var a;if(!i)return n(e);if(i>0){for(e-=o,a=0;a<s.length;a++)if(s[a]>=e)return s[a];return s[a-1]}else for(a=s.length,e+=o;a--;)if(s[a]<=e)return s[a];return s[0]}:function(e,i,o){o===void 0&&(o=.001);var a=n(e);return!i||Math.abs(a-e)<o||a-e<0==i<0?a:n(i<0?e-t:e+t)}},mv=function(t){return function(n,s){return ah(og(t))(n,s.direction)}},Sl=function(t,n,s,e){return s.split(",").forEach(function(i){return t(n,i,e)})},Li=function(t,n,s,e,i){return t.addEventListener(n,s,{passive:!e,capture:!!i})},Ei=function(t,n,s,e){return t.removeEventListener(n,s,!!e)},El=function(t,n,s){s=s&&s.wheelHandler,s&&(t(n,"wheel",s),t(n,"touchmove",s))},Hd={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ll={toggleActions:"play",anticipatePin:0},iu={top:0,left:0,center:.5,bottom:1,right:1},$l=function(t,n){if($n(t)){var s=t.indexOf("="),e=~s?+(t.charAt(s-1)+1)*parseFloat(t.substr(s+1)):0;~s&&(t.indexOf("%")>s&&(e*=n/100),t=t.substr(0,s-1)),t=e+(t in iu?iu[t]*n:~t.indexOf("%")?parseFloat(t)*n/100:parseFloat(t)||0)}return t},Pl=function(t,n,s,e,i,o,a,l){var c=i.startColor,h=i.endColor,g=i.fontSize,m=i.indent,v=i.fontWeight,x=Ze.createElement("div"),C=oo(s)||vs(s,"pinType")==="fixed",k=t.indexOf("scroller")!==-1,S=C?ze:s,A=t.indexOf("start")!==-1,z=A?c:h,R="border-color:"+z+";font-size:"+g+";color:"+z+";font-weight:"+v+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return R+="position:"+((k||l)&&C?"fixed;":"absolute;"),(k||l||!C)&&(R+=(e===wi?rh:sh)+":"+(o+parseFloat(m))+"px;"),a&&(R+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),x._isStart=A,x.setAttribute("class","gsap-marker-"+t+(n?" marker-"+n:"")),x.style.cssText=R,x.innerText=n||n===0?t+"-"+n:t,S.children[0]?S.insertBefore(x,S.children[0]):S.appendChild(x),x._offset=x["offset"+e.op.d2],Rl(x,0,e,A),x},Rl=function(t,n,s,e){var i={display:"block"},o=s[e?"os2":"p2"],a=s[e?"p2":"os2"];t._isFlipped=e,i[s.a+"Percent"]=e?-100:0,i[s.a]=e?"1px":0,i["border"+o+Vo]=1,i["border"+a+Vo]=0,i[s.p]=n+"px",kt.set(t,i)},ie=[],kc={},Ua,jd=function(){return Zi()-hr>34&&(Ua||(Ua=requestAnimationFrame(Jr)))},Mo=function(){(!en||!en.isPressed||en.startX>ze.clientWidth)&&(re.cache++,en?Ua||(Ua=requestAnimationFrame(Jr)):Jr(),hr||lo("scrollStart"),hr=Zi())},Qu=function(){Qp=ue.innerWidth,Jp=ue.innerHeight},Ta=function(){re.cache++,!ji&&!Kp&&!Ze.fullscreenElement&&!Ze.webkitFullscreenElement&&(!Ec||Qp!==ue.innerWidth||Math.abs(ue.innerHeight-Jp)>ue.innerHeight*.25)&&Ql.restart(!0)},ao={},_v=[],ag=function p(){return Ei(te,"scrollEnd",p)||Us(!0)},lo=function(t){return ao[t]&&ao[t].map(function(n){return n()})||_v},In=[],lg=function(t){for(var n=0;n<In.length;n+=5)(!t||In[n+4]&&In[n+4].query===t)&&(In[n].style.cssText=In[n+1],In[n].getBBox&&In[n].setAttribute("transform",In[n+2]||""),In[n+3].uncache=1)},lh=function(t,n){var s;for(nn=0;nn<ie.length;nn++)s=ie[nn],s&&(!n||s._ctx===n)&&(t?s.kill(1):s.revert(!0,!0));tu=!0,n&&lg(n),n||lo("revert")},ug=function(t,n){re.cache++,(n||!rn)&&re.forEach(function(s){return an(s)&&s.cacheID++&&(s.rec=0)}),$n(t)&&(ue.history.scrollRestoration=ih=t)}
vendor: 1,711 bytes, line 126
126,rn,eo=0,qd,vv=function(){if(qd!==eo){var t=qd=eo;requestAnimationFrame(function(){return t===eo&&Us(!0)})}},cg=function(){ze.appendChild(Ho),nh=!en&&Ho.offsetHeight||ue.innerHeight,ze.removeChild(Ho)},Zd=function(t){return Ga(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(n){return n.style.display=t?"none":"block"})},Us=function(t,n){if(hr&&!t&&!tu){Li(te,"scrollEnd",ag);return}cg(),rn=te.isRefreshing=!0,re.forEach(function(e){return an(e)&&++e.cacheID&&(e.rec=e())});var s=lo("refreshInit");Xp&&te.sort(),n||lh(),re.forEach(function(e){an(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),ie.slice(0).forEach(function(e){return e.refresh()}),tu=!1,ie.forEach(function(e){if(e._subPinOffset&&e.pin){var i=e.vars.horizontal?"offsetWidth":"offsetHeight",o=e.pin[i];e.revert(!0,1),e.adjustPinSpacing(e.pin[i]-o),e.refresh()}}),Pc=1,Zd(!0),ie.forEach(function(e){var i=Ir(e.scroller,e._dir),o=e.vars.end==="max"||e._endClamp&&e.end>i,a=e._startClamp&&e.start>=i;(o||a)&&e.setPositions(a?i-1:e.start,o?Math.max(a?i:e.start+1,i):e.end,!0)}),Zd(!1),Pc=0,s.forEach(function(e){return e&&e.render&&e.render(-1)}),re.forEach(function(e){an(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),ug(ih,1),Ql.pause(),eo++,rn=2,Jr(2),ie.forEach(function(e){return an(e.vars.onRefresh)&&e.vars.onRefresh(e)}),rn=te.isRefreshing=!1,lo("refresh")},Mc=0,Fl=1,Ra,Jr=function(t){if(t===2||!rn&&!tu){te.isUpdating=!0,Ra&&Ra.update(0);var n=ie.length,s=Zi(),e=s-Ku>=50,i=n&&ie[0].scroll();if(Fl=Mc>i?-1:1,rn||(Mc=i),e&&(hr&&!lu&&s-hr>200&&(hr=0,lo("scrollEnd")),ba=Ku,Ku=s),Fl<0){for(nn=n;
vendor: 16,655 bytes, line 126
126nn-- >0;)ie[nn]&&ie[nn].update(0,e);Fl=1}else for(nn=0;nn<n;nn++)ie[nn]&&ie[nn].update(0,e);te.isUpdating=!1}Ua=0},Ac=[rg,sg,sh,rh,ar+$a,ar+Da,ar+Ia,ar+za,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Bl=Ac.concat([Qs,to,"boxSizing","max"+Vo,"max"+oh,"position",ar,di,di+Ia,di+Da,di+$a,di+za]),yv=function(t,n,s){jo(s);var e=t._gsap;if(e.spacerIsNative)jo(e.spacerState);else if(t._gsap.swappedIn){var i=n.parentNode;i&&(i.insertBefore(t,n),i.removeChild(n))}t._gsap.swappedIn=!1},tc=function(t,n,s,e){if(!t._gsap.swappedIn){for(var i=Ac.length,o=n.style,a=t.style,l;i--;)l=Ac[i],o[l]=s[l];o.position=s.position==="absolute"?"absolute":"relative",s.display==="inline"&&(o.display="inline-block"),a[sh]=a[rh]="auto",o.flexBasis=s.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[Qs]=eu(t,on)+bi,o[to]=eu(t,wi)+bi,o[di]=a[ar]=a[sg]=a[rg]="0",jo(e),a[Qs]=a["max"+Vo]=s[Qs],a[to]=a["max"+oh]=s[to],a[di]=s[di],t.parentNode!==n&&(t.parentNode.insertBefore(n,t),n.appendChild(t)),t._gsap.swappedIn=!0}},bv=/([A-Z])/g,jo=function(t){if(t){var n=t.t.style,s=t.length,e=0,i,o;for((t.t._gsap||kt.core.getCache(t.t)).uncache=1;e<s;e+=2)o=t[e+1],i=t[e],o?n[i]=o:n[i]&&n.removeProperty(i.replace(bv,"-$1").toLowerCase())}},kl=function(t){for(var n=Bl.length,s=t.style,e=[],i=0;i<n;i++)e.push(Bl[i],s[Bl[i]]);return e.t=t,e},wv=function(t,n,s){for(var e=[],i=t.length,o=s?8:0,a;o<i;o+=2)a=t[o],e.push(a,a in n?n[a]:t[o+1]);return e.t=t.t,e},Nl={left:0,top:0},Wd=function(t,n,s,e,i,o,a,l,c,h,g,m,v,x){an(t)&&(t=t(l)),$n(t)&&t.substr(0,3)==="max"&&(t=m+(t.charAt(4)==="="?$l("0"+t.substr(3),s):0));var C=v?v.time():0,k,S,A;if(v&&v.seek(0),isNaN(t)||(t=+t),Ca(t))v&&(t=kt.utils.mapRange(v.scrollTrigger.start,v.scrollTrigger.end,0,m,t)),a&&Rl(a,s,e,!0);else{an(n)&&(n=n(l));var z=(t||"0").split(" "),R,W,Y,b;A=gn(n,l)||ze,R=Yr(A)||{},(!R||!R.left&&!R.top)&&lr(A).display==="none"&&(b=A.style.display,A.style.display="block",R=Yr(A),b?A.style.display=b:A.style.removeProperty("display")),W=$l(z[0],R[e.d]),Y=$l(z[1]||"0",s),t=R[e.p]-c[e.p]-h+W+i-Y,a&&Rl(a,Y,e,s-Y<20||a._isStart&&Y>20),s-=s-Y}if(x&&(l[x]=t||-.001,t<0&&(t=0)),o){var rt=t+s,J=o._isStart;k="scroll"+e.d2,Rl(o,rt,e,J&&rt>20||!J&&(g?Math.max(ze[k],xr[k]):o.parentNode[k])<=rt+1),g&&(c=Yr(a),g&&(o.style[e.op.p]=c[e.op.p]-e.op.m-o._offset+bi))}return v&&A&&(k=Yr(A),v.seek(m),S=Yr(A),v._caScrollDist=k[e.p]-S[e.p],t=t/v._caScrollDist*m),v&&v.seek(C),v?t:Math.round(t)},xv=/(webkit|moz|length|cssText|inset)/i,Gd=function(t,n,s,e){if(t.parentNode!==n){var i=t.style,o,a;if(n===ze){t._stOrig=i.cssText,a=lr(t);for(o in a)!+o&&!xv.test(o)&&a[o]&&typeof i[o]=="string"&&o!=="0"&&(i[o]=a[o]);i.top=s,i.left=e}else i.cssText=t._stOrig;kt.core.getCache(t).uncache=1,n.appendChild(t)}},hg=function(t,n,s){var e=n,i=e;return function(o){var a=Math.round(t());return a!==e&&a!==i&&Math.abs(a-e)>3&&Math.abs(a-i)>3&&(o=a,s&&s()),i=e,e=o,o}},Ml=function(t,n,s){var e={};e[n.p]="+="+s,kt.set(t,e)},Ud=function(t,n){var s=ws(t,n),e="_scroll"+n.p2,i=function o(a,l,c,h,g){var m=o.tween,v=l.onComplete,x={};c=c||s();var C=hg(s,c,function(){m.kill(),o.tween=0});return g=h&&g||0,h=h||a-c,m&&m.kill(),l[e]=a,l.inherit=!1,l.modifiers=x,x[e]=function(){return C(c+h*m.ratio+g*m.ratio*m.ratio)},l.onUpdate=function(){re.cache++,o.tween&&Jr()},l.onComplete=function(){o.tween=0,v&&v.call(m)},m=o.tween=kt.to(t,l),m};return t[e]=s,s.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Li(t,"wheel",s.wheelHandler),te.isTouch&&Li(t,"touchmove",s.wheelHandler),i},te=function(){function p(n,s){Ao||p.register(kt)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Lc(this),this.init(n,s)}var t=p.prototype;return t.init=function(s,e){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!wa){this.update=this.refresh=this.kill=Mr;return}s=Nd($n(s)||Ca(s)||s.nodeType?{trigger:s}:s,Ll);var i=s,o=i.onUpdate,a=i.toggleClass,l=i.id,c=i.onToggle,h=i.onRefresh,g=i.scrub,m=i.trigger,v=i.pin,x=i.pinSpacing,C=i.invalidateOnRefresh,k=i.anticipatePin,S=i.onScrubComplete,A=i.onSnapComplete,z=i.once,R=i.snap,W=i.pinReparent,Y=i.pinSpacer,b=i.containerAnimation,rt=i.fastScrollEnd,J=i.preventOverlaps,at=s.horizontal||s.containerAnimation&&s.horizontal!==!1?on:wi,St=!g&&g!==0,ut=gn(s.scroller||ue),q=kt.core.getCache(ut),st=oo(ut),mt=("pinType"in s?s.pinType:vs(ut,"pinType")||st&&"fixed")==="fixed",xt=[s.onEnter,s.onLeave,s.onEnterBack,s.onLeaveBack],ht=St&&s.toggleActions.split(" "),ot="markers"in s?s.markers:Ll.markers,Nt=st?0:parseFloat(lr(ut)["border"+at.p2+Vo])||0,B=this,Lt=s.onRefreshInit&&function(){return s.onRefreshInit(B)},Q=dv(ut,st,at),yt=fv(ut,st),pt=0,dt=0,_t=0,At=ws(ut,at),se,me,Oe,Ne,Ie,Ut,Se,gi,si,et,be,Cn,Tn,Ee,Ue,zi,ln,vt,xe,Le,Ii,$i,Vi,fr,we,Ai,oi,Ri,Tr,mi,Zn,Zt,Wn,Je,ai,Fi,Gn,Qe,Pe;if(B._startClamp=B._endClamp=!1,B._dir=at,k*=45,B.scroller=ut,B.scroll=b?b.time.bind(b):At,Ne=At(),B.vars=s,e=e||s.animation,"refreshPriority"in s&&(Xp=1,s.refreshPriority===-9999&&(Ra=B)),q.tweenScroll=q.tweenScroll||{top:Ud(ut,wi),left:Ud(ut,on)},B.tweenTo=se=q.tweenScroll[at.p],B.scrubDuration=function(gt){Wn=Ca(gt)&&gt,Wn?Zt?Zt.duration(gt):Zt=kt.to(e,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Wn,paused:!0,onComplete:function(){return S&&S(B)}}):(Zt&&Zt.progress(1).kill(),Zt=0)},e&&(e.vars.lazy=!1,e._initted&&!B.isReverted||e.vars.immediateRender!==!1&&s.immediateRender!==!1&&e.duration()&&e.render(0,!0,!0),B.animation=e.pause(),e.scrollTrigger=B,B.scrubDuration(g),mi=0,l||(l=e.vars.id)),R&&((!qs(R)||R.push)&&(R={snapTo:R}),"scrollBehavior"in ze.style&&kt.set(st?[ze,xr]:ut,{scrollBehavior:"auto"}),re.forEach(function(gt){return an(gt)&&gt.target===(st?Ze.scrollingElement||xr:ut)&&(gt.smooth=!1)}),Oe=an(R.snapTo)?R.snapTo:R.snapTo==="labels"?gv(e):R.snapTo==="labelsDirectional"?mv(e):R.directional!==!1?function(gt,$t){return ah(R.snapTo)(gt,Zi()-dt<500?0:$t.direction)}:kt.utils.snap(R.snapTo),Je=R.duration||{min:.1,max:2},Je=qs(Je)?Oa(Je.min,Je.max):Oa(Je,Je),ai=kt.delayedCall(R.delay||Wn/2||.1,function(){var gt=At(),$t=Zi()-dt<500,zt=se.tween;if(($t||Math.abs(B.getVelocity())<10)&&!zt&&!lu&&pt!==gt){var Ot=(gt-Ut)/Ee,bt=e&&!St?e.totalProgress():Ot,Yt=$t?0:(bt-Zn)/(Zi()-ba)*1e3||0,ke=kt.utils.clamp(-Ot,1-Ot,ko(Yt/2)*Yt/.185),Ve=Ot+(R.inertia===!1?0:ke),Ce,_e,de=R,li=de.onStart,fe=de.onInterrupt,xi=de.onComplete;if(Ce=Oe(Ve,B),Ca(Ce)||(Ce=Ve),_e=Math.round(Ut+Ce*Ee),gt<=Se&&gt>=Ut&&_e!==gt){if(zt&&!zt._initted&&zt.data<=ko(_e-gt))return;R.inertia===!1&&(ke=Ce-Ot),se(_e,{duration:Je(ko(Math.max(ko(Ve-bt),ko(Ce-bt))*.185/Yt/.05||0)),ease:R.ease||"power3",data:ko(_e-gt),onInterrupt:function(){return ai.restart(!0)&&fe&&fe(B)},onComplete:function(){B.update(),pt=At(),e&&(Zt?Zt.resetTo("totalProgress",Ce,e._tTime/e._tDur):e.progress(Ce)),mi=Zn=e&&!St?e.totalProgress():B.progress,A&&A(B),xi&&xi(B)}},gt,ke*Ee,_e-gt-ke*Ee),li&&li(B,se.tween)}}else B.isActive&&pt!==gt&&ai.restart(!0)}).pause()),l&&(kc[l]=B),m=B.trigger=gn(m||v!==!0&&v),Pe=m&&m._gsap&&m._gsap.stRevert,Pe&&(Pe=Pe(B)),v=v===!0?m:gn(v),$n(a)&&(a={targets:m,className:a}),v&&(x===!1||x===ar||(x=!x&&v.parentNode&&v.parentNode.style&&lr(v.parentNode).display==="flex"?!1:di),B.pin=v,me=kt.core.getCache(v),me.spacer?Ue=me.pinState:(Y&&(Y=gn(Y),Y&&!Y.nodeType&&(Y=Y.current||Y.nativeElement),me.spacerIsNative=!!Y,Y&&(me.spacerState=kl(Y))),me.spacer=vt=Y||Ze.createElement("div"),vt.classList.add("pin-spacer"),l&&vt.classList.add("pin-spacer-"+l),me.pinState=Ue=kl(v)),s.force3D!==!1&&kt.set(v,{force3D:!0}),B.spacer=vt=me.spacer,Tr=lr(v),fr=Tr[x+at.os2],Le=kt.getProperty(v),Ii=kt.quickSetter(v,at.a,bi),tc(v,vt,Tr),ln=kl(v)),ot){Cn=qs(ot)?Nd(ot,Hd):Hd,et=Pl("scroller-start",l,ut,at,Cn,0),be=Pl("scroller-end",l,ut,at,Cn,0,et),xe=et["offset"+at.op.d2];var pr=gn(vs(ut,"content")||ut);gi=this.markerStart=Pl("start",l,pr,at,Cn,xe,0,b),si=this.markerEnd=Pl("end",l,pr,at,Cn,xe,0,b),b&&(Qe=kt.quickSetter([gi,si],at.a,bi)),!mt&&!(Rr.length&&vs(ut,"fixedMarkers")===!0)&&(pv(st?ze:ut),kt.set([et,be],{force3D:!0}),Ai=kt.quickSetter(et,at.a,bi),Ri=kt.quickSetter(be,at.a,bi))}if(b){var jt=b.vars.onUpdate,It=b.vars.onUpdateParams;b.eventCallback("onUpdate",function(){B.update(0,0,1),jt&&jt.apply(b,It||[])})}if(B.previous=function(){return ie[ie.indexOf(B)-1]},B.next=function(){return ie[ie.indexOf(B)+1]},B.revert=function(gt,$t){if(!$t)return B.kill(!0);var zt=gt!==!1||!B.enabled,Ot=ji;zt!==B.isReverted&&(zt&&(Fi=Math.max(At(),B.scroll.rec||0),_t=B.progress,Gn=e&&e.progress()),gi&&[gi,si,et,be].forEach(function(bt){return bt.style.display=zt?"none":"block"}),zt&&(ji=B,B.update(zt)),v&&(!W||!B.isActive)&&(zt?yv(v,vt,Ue):tc(v,vt,lr(v),we)),zt||B.update(zt),ji=Ot,B.isReverted=zt)},B.refresh=function(gt,$t,zt,Ot){if(!((ji||!B.enabled)&&!$t)){if(v&&gt&&hr){Li(p,"scrollEnd",ag);return}!rn&&Lt&&Lt(B),ji=B,se.tween&&!zt&&(se.tween.kill(),se.tween=0),Zt&&Zt.pause(),C&&e&&e.revert({kill:!1}).invalidate(),B.isReverted||B.revert(!0,!0),B._subPinOffset=!1;var bt=Q(),Yt=yt(),ke=b?b.duration():Ir(ut,at),Ve=Ee<=.01,Ce=0,_e=Ot||0,de=qs(zt)?zt.end:s.end,li=s.endTrigger||m,fe=qs(zt)?zt.start:s.start||(s.start===0||!m?0:v?"0 0":"0 100%"),xi=B.pinnedContainer=s.pinnedContainer&&gn(s.pinnedContainer,B),Bi=m&&Math.max(0,ie.indexOf(B))||0,He=Bi,$e,Ye,gr,Yi,ti,Re,Xi,es,ho,Sn,Ci,Sr,Er;for(ot&&qs(zt)&&(Sr=kt.getProperty(et,at.p),Er=kt.getProperty(be,at.p));He--;)Re=ie[He],Re.end||Re.refresh(0,1)||(ji=B),Xi=Re.pin,Xi&&(Xi===m||Xi===v||Xi===xi)&&!Re.isReverted&&(Sn||(Sn=[]),Sn.unshift(Re),Re.revert(!0,!0)),Re!==ie[He]&&(Bi--,He--);for(an(fe)&&(fe=fe(B)),fe=$d(fe,"start",B),Ut=Wd(fe,m,bt,at,At(),gi,et,B,Yt,Nt,mt,ke,b,B._startClamp&&"_startClamp")||(v?-.001:0),an(de)&&(de=de(B)),$n(de)&&!de.indexOf("+=")&&(~de.indexOf(" ")?de=($n(fe)?fe.split(" ")[0]:"")+de:(Ce=$l(de.substr(2),bt),de=$n(fe)?fe:(b?kt.utils.mapRange(0,b.duration(),b.scrollTrigger.start,b.scrollTrigger.end,Ut):Ut)+Ce,li=m)),de=$d(de,"end",B),Se=Math.max(Ut,Wd(de||(li?"100% 0":ke),li,bt,at,At()+Ce,si,be,B,Yt,Nt,mt,ke,b,B._endClamp&&"_endClamp"))||-.001,Ce=0,He=Bi;He--;)Re=ie[He],Xi=Re.pin,Xi&&Re.start-Re._pinPush<=Ut&&!b&&Re.end>0&&($e=Re.end-(B._startClamp?Math.max(0,Re.start):Re.start),(Xi===m&&Re.start-Re._pinPush<Ut||Xi===xi)&&isNaN(fe)&&(Ce+=$e*(1-Re.progress)),Xi===v&&(_e+=$e));if(Ut+=Ce,Se+=Ce,B._startClamp&&(B._startClamp+=Ce),B._endClamp&&!rn&&(B._endClamp=Se||-.001,Se=Math.min(Se,Ir(ut,at))),Ee=Se-Ut||(Ut-=.01)&&.001,Ve&&(_t=kt.utils.clamp(0,1,kt.utils.normalize(Ut,Se,Fi))),B._pinPush=_e,gi&&Ce&&($e={},$e[at.a]="+="+Ce,xi&&($e[at.p]="-="+At()),kt.set([gi,si],$e)),v&&!(Pc&&B.end>=Ir(ut,at)))$e=lr(v),Yi=at===wi,gr=At(),$i=parseFloat(Le(at.a))+_e,!ke&&Se>1&&(Ci=(st?Ze.scrollingElement||xr:ut).style,Ci={style:Ci,value:Ci["overflow"+at.a.toUpperCase()]},st&&lr(ze)["overflow"+at.a.toUpperCase()]!=="scroll"&&(Ci.style["overflow"+at.a.toUpperCase()]="scroll")),tc(v,vt,$e),ln=kl(v),Ye=Yr(v,!0),es=mt&&ws(ut,Yi?on:wi)(),x?(we=[x+at.os2,Ee+_e+bi],we.t=vt,He=x===di?eu(v,at)+Ee+_e:0,He&&(we.push(at.d,He+bi),vt.style.flexBasis!=="auto"&&(vt.style.flexBasis=He+bi)),jo(we),xi&&ie.forEach(function(un){un.pin===xi&&un.vars.pinSpacing!==!1&&(un._subPinOffset=!0)}),mt&&At(Fi)):(He=eu(v,at),He&&vt.style.flexBasis!=="auto"&&(vt.style.flexBasis=He+bi)),mt&&(ti={top:Ye.top+(Yi?gr-Ut:es)+bi,left:Ye.left+(Yi?es:gr-Ut)+bi,boxSizing:"border-box",position:"fixed"},ti[Qs]=ti["max"+Vo]=Math.ceil(Ye.width)+bi,ti[to]=ti["max"+oh]=Math.ceil(Ye.height)+bi,ti[ar]=ti[ar+Ia]=ti[ar+Da]=ti[ar+$a]=ti[ar+za]="0",ti[di]=$e[di],ti[di+Ia]=$e[di+Ia],ti[di+Da]=$e[di+Da],ti[di+$a]=$e[di+$a],ti[di+za]=$e[di+za],zi=wv(Ue,ti,W),rn&&At(0)),e?(ho=e._initted,Yu(1),e.render(e.duration(),!0,!0),Vi=Le(at.a)-$i+Ee+_e,oi=Math.abs(Ee-Vi)>1,mt&&oi&&zi.splice(zi.length-2,2),e.render(0,!0,!0),ho||e.invalidate(!0),e.parent||e.totalTime(e.totalTime()),Yu(0)):Vi=Ee,Ci&&(Ci.value?Ci.style["overflow"+at.a.toUpperCase()]=Ci.value:Ci.style.removeProperty("overflow-"+at.a));else if(m&&At()&&!b)for(Ye=m.parentNode;Ye&&Ye!==ze;)Ye._pinOffset&&(Ut-=Ye._pinOffset,Se-=Ye._pinOffset),Ye=Ye.parentNode;Sn&&Sn.forEach(function(un){return un.revert(!1,!0)}),B.start=Ut,B.end=Se,Ne=Ie=rn?Fi:At(),!b&&!rn&&(Ne<Fi&&At(Fi),B.scroll.rec=0),B.revert(!1,!0),dt=Zi(),ai&&(pt=-1,ai.restart(!0)),ji=0,e&&St&&(e._initted||Gn)&&e.progress()!==Gn&&e.progress(Gn||0,!0).render(e.time(),!0,!0),(Ve||_t!==B.progress||b||C)&&(e&&!St&&e.totalProgress(b&&Ut<-.001&&!_t?kt.utils.normalize(Ut,Se,0):_t,!0),B.progress=Ve||(Ne-Ut)/Ee===_t?0:_t),v&&x&&(vt._pinOffset=Math.round(B.progress*Vi)),Zt&&Zt.invalidate(),isNaN(Sr)||(Sr-=kt.getProperty(et,at.p),Er-=kt.getProperty(be,at.p),Ml(et,at,Sr),Ml(gi,at,Sr-(Ot||0)),Ml(be,at,Er),Ml(si,at,Er-(Ot||0))),Ve&&!rn&&B.update(),h&&!rn&&!Tn&&(Tn=!0,h(B),Tn=!1)}},B.getVelocity=function(){return(At()-Ie)/(Zi()-ba)*1e3||0},B.endAnimation=function(){ga(B.callbackAnimation),e&&(Zt?Zt.progress(1):e.paused()?St||ga(e,B.direction<0,1):ga(e,e.reversed()))},B.labelToScroll=function(gt){return e&&e.labels&&(Ut||B.refresh()||Ut)+e.labels[gt]/e.duration()*Ee||0},B.getTrailing=function(gt){var $t=ie.indexOf(B),zt=B.direction>0?ie.slice(0,$t).reverse():ie.slice($t+1);return($n(gt)?zt.filter(function(Ot){return Ot.vars.preventOverlaps===gt}):zt).filter(function(Ot){return B.direction>0?Ot.end<=Ut:Ot.start>=Se})},B.update=function(gt,$t,zt){if(!(b&&!zt&&!gt)){var Ot=rn===!0?Fi:B.scroll(),bt=gt?0:(Ot-Ut)/Ee,Yt=bt<0?0:bt>1?1:bt||0,ke=B.progress,Ve,Ce,_e,de,li,fe,xi,Bi;if($t&&(Ie=Ne,Ne=b?At():Ot,R&&(Zn=mi,mi=e&&!St?e.totalProgress():Yt)),k&&v&&!ji&&!Cl&&hr&&(!Yt&&Ut<Ot+(Ot-Ie)/(Zi()-ba)*k?Yt=1e-4:Yt===1&&Se>Ot+(Ot-Ie)/(Zi()-ba)*k&&(Yt=.9999)),Yt!==ke&&B.enabled){if(Ve=B.isActive=!!Yt&&Yt<1,Ce=!!ke&&ke<1,fe=Ve!==Ce,li=fe||!!Yt!=!!ke,B.direction=Yt>ke?1:-1,B.progress=Yt,li&&!ji&&(_e=Yt&&!ke?0:Yt===1?1:ke===1?2:3,St&&(de=!fe&&ht[_e+1]!=="none"&&ht[_e+1]||ht[_e],Bi=e&&(de==="complete"||de==="reset"||de in e))),J&&(fe||Bi)&&(Bi||g||!e)&&(an(J)?J(B):B.getTrailing(J).forEach(function(gr){return gr.endAnimation()})),St||(Zt&&!ji&&!Cl?(Zt._dp._time-Zt._start!==Zt._time&&Zt.render(Zt._dp._time-Zt._start),Zt.resetTo?Zt.resetTo("totalProgress",Yt,e._tTime/e._tDur):(Zt.vars.totalProgress=Yt,Zt.invalidate().restart())):e&&e.totalProgress(Yt,!!(ji&&(dt||gt)))),v){if(gt&&x&&(vt.style[x+at.os2]=fr),!mt)Ii(xa($i+Vi*Yt));else if(li){if(xi=!gt&&Yt>ke&&Se+1>Ot&&Ot+1>=Ir(ut,at),W)if(!gt&&(Ve||xi)){var He=Yr(v,!0),$e=Ot-Ut;Gd(v,ze,He.top+(at===wi?$e:0)+bi,He.left+(at===wi?0:$e)+bi)}else Gd(v,vt);jo(Ve||xi?zi:ln),oi&&Yt<1&&Ve||Ii($i+(Yt===1&&!xi?Vi:0))}}R&&!se.tween&&!ji&&!Cl&&ai.restart(!0),a&&(fe||z&&Yt&&(Yt<1||!Xu))&&Ga(a.targets).forEach(function(gr){return gr.classList[Ve||z?"add":"remove"](a.className)}),o&&!St&&!gt&&o(B),li&&!ji?(St&&(Bi&&(de==="complete"?e.pause().totalProgress(1):de==="reset"?e.restart(!0).pause():de==="restart"?e.restart(!0):e[de]()),o&&o(B)),(fe||!Xu)&&(c&&fe&&Ju(B,c),xt[_e]&&Ju(B,xt[_e]),z&&(Yt===1?B.kill(!1,1):xt[_e]=0),fe||(_e=Yt===1?1:3,xt[_e]&&Ju(B,xt[_e]))),rt&&!Ve&&Math.abs(B.getVelocity())>(Ca(rt)?rt:2500)&&(ga(B.callbackAnimation),Zt?Zt.progress(1):ga(e,de==="reverse"?1:!Yt,1))):St&&o&&!ji&&o(B)}if(Ri){var Ye=b?Ot/b.duration()*(b._caScrollDist||0):Ot;Ai(Ye+(et._isFlipped?1:0)),Ri(Ye)}Qe&&Qe(-Ot/b.duration()*(b._caScrollDist||0))}},B.enable=function(gt,$t){B.enabled||(B.enabled=!0,Li(ut,"resize",Ta),st||Li(ut,"scroll",Mo),Lt&&Li(p,"refreshInit",Lt),gt!==!1&&(B.progress=_t=0,Ne=Ie=pt=At()),$t!==!1&&B.refresh())},B.getTween=function(gt){return gt&&se?se.tween:Zt},B.setPositions=function(gt,$t,zt,Ot){if(b){var bt=b.scrollTrigger,Yt=b.duration(),ke=bt.end-bt.start;gt=bt.start+ke*gt/Yt,$t=bt.start+ke*$t/Yt}B.refresh(!1,!1,{start:Rd(gt,zt&&!!B._startClamp),end:Rd($t,zt&&!!B._endClamp)},Ot),B.update()},B.adjustPinSpacing=function(gt){if(we&&gt){var $t=we.indexOf(at.d)+1;we[$t]=parseFloat(we[$t])+gt+bi,we[1]=parseFloat(we[1])+gt+bi,jo(we)}},B.disable=function(gt,$t){if(B.enabled&&(gt!==!1&&B.revert(!0,!0),B.enabled=B.isActive=!1,$t||Zt&&Zt.pause(),Fi=0,me&&(me.uncache=1),Lt&&Ei(p,"refreshInit",Lt),ai&&(ai.pause(),se.tween&&se.tween.kill()&&(se.tween=0)),!st)){for(var zt=ie.length;zt--;)if(ie[zt].scroller===ut&&ie[zt]!==B)return;Ei(ut,"resize",Ta),st||Ei(ut,"scroll",Mo)}},B.kill=function(gt,$t){B.disable(gt,$t),Zt&&!$t&&Zt.kill(),l&&delete kc[l];var zt=ie.indexOf(B);zt>=0&&ie.splice(zt,1),zt===nn&&Fl>0&&nn--,zt=0,ie.forEach(function(Ot){return Ot.scroller===B.scroller&&(zt=1)}),zt||rn||(B.scroll.rec=0),e&&(e.scrollTrigger=null,gt&&e.revert({kill:!1}),$t||e.kill()),gi&&[gi,si,et,be].forEach(function(Ot){return Ot.parentNode&&Ot.parentNode.removeChild(Ot)}
vendor: 10,431 bytes, line 126
126),Ra===B&&(Ra=0),v&&(me&&(me.uncache=1),zt=0,ie.forEach(function(Ot){return Ot.pin===v&&zt++}),zt||(me.spacer=0)),s.onKill&&s.onKill(B)},ie.push(B),B.enable(!1,!1),Pe&&Pe(B),e&&e.add&&!Ee){var oe=B.update;B.update=function(){B.update=oe,Ut||Se||B.refresh()},kt.delayedCall(.01,B.update),Ee=.01,Ut=Se=0}else B.refresh();v&&vv()},p.register=function(s){return Ao||(kt=s||eg(),tg()&&window.document&&p.enable(),Ao=wa),Ao},p.defaults=function(s){if(s)for(var e in s)Ll[e]=s[e];return Ll},p.disable=function(s,e){wa=0,ie.forEach(function(o){return o[e?"kill":"disable"](s)}),Ei(ue,"wheel",Mo),Ei(Ze,"scroll",Mo),clearInterval(xl),Ei(Ze,"touchcancel",Mr),Ei(ze,"touchstart",Mr),Sl(Ei,Ze,"pointerdown,touchstart,mousedown",Fd),Sl(Ei,Ze,"pointerup,touchend,mouseup",Bd),Ql.kill(),Tl(Ei);for(var i=0;i<re.length;i+=3)El(Ei,re[i],re[i+1]),El(Ei,re[i],re[i+2])},p.enable=function(){if(ue=window,Ze=document,xr=Ze.documentElement,ze=Ze.body,kt&&(Ga=kt.utils.toArray,Oa=kt.utils.clamp,Lc=kt.core.context||Mr,Yu=kt.core.suppressOverwrites||Mr,ih=ue.history.scrollRestoration||"auto",Mc=ue.pageYOffset,kt.core.globals("ScrollTrigger",p),ze)){wa=1,Ho=document.createElement("div"),Ho.style.height="100vh",Ho.style.position="absolute",cg(),hv(),ri.register(kt),p.isTouch=ri.isTouch,cs=ri.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Ec=ri.isTouch===1,Li(ue,"wheel",Mo),Yp=[ue,Ze,xr,ze],kt.matchMedia?(p.matchMedia=function(l){var c=kt.matchMedia(),h;for(h in l)c.add(h,l[h]);return c},kt.addEventListener("matchMediaInit",function(){return lh()}),kt.addEventListener("matchMediaRevert",function(){return lg()}),kt.addEventListener("matchMedia",function(){Us(0,1),lo("matchMedia")}),kt.matchMedia("(orientation: portrait)",function(){return Qu(),Qu})):console.warn("Requires GSAP 3.11.0 or later"),Qu(),Li(Ze,"scroll",Mo);var s=ze.style,e=s.borderTopStyle,i=kt.core.Animation.prototype,o,a;for(i.revert||Object.defineProperty(i,"revert",{value:function(){return this.time(-.01,!0)}}),s.borderTopStyle="solid",o=Yr(ze),wi.m=Math.round(o.top+wi.sc())||0,on.m=Math.round(o.left+on.sc())||0,e?s.borderTopStyle=e:s.removeProperty("border-top-style"),xl=setInterval(jd,250),kt.delayedCall(.5,function(){return Cl=0}),Li(Ze,"touchcancel",Mr),Li(ze,"touchstart",Mr),Sl(Li,Ze,"pointerdown,touchstart,mousedown",Fd),Sl(Li,Ze,"pointerup,touchend,mouseup",Bd),Sc=kt.utils.checkPrefix("transform"),Bl.push(Sc),Ao=Zi(),Ql=kt.delayedCall(.2,Us).pause(),Oo=[Ze,"visibilitychange",function(){var l=ue.innerWidth,c=ue.innerHeight;Ze.hidden?(zd=l,Id=c):(zd!==l||Id!==c)&&Ta()},Ze,"DOMContentLoaded",Us,ue,"load",Us,ue,"resize",Ta],Tl(Li),ie.forEach(function(l){return l.enable(0,1)}),a=0;a<re.length;a+=3)El(Ei,re[a],re[a+1]),El(Ei,re[a],re[a+2])}},p.config=function(s){"limitCallbacks"in s&&(Xu=!!s.limitCallbacks);var e=s.syncInterval;e&&clearInterval(xl)||(xl=e)&&setInterval(jd,e),"ignoreMobileResize"in s&&(Ec=p.isTouch===1&&s.ignoreMobileResize),"autoRefreshEvents"in s&&(Tl(Ei)||Tl(Li,s.autoRefreshEvents||"none"),Kp=(s.autoRefreshEvents+"").indexOf("resize")===-1)},p.scrollerProxy=function(s,e){var i=gn(s),o=re.indexOf(i),a=oo(i);~o&&re.splice(o,a?6:2),e&&(a?Rr.unshift(ue,e,ze,e,xr,e):Rr.unshift(i,e))},p.clearMatchMedia=function(s){ie.forEach(function(e){return e._ctx&&e._ctx.query===s&&e._ctx.kill(!0,!0)})},p.isInViewport=function(s,e,i){var o=($n(s)?gn(s):s).getBoundingClientRect(),a=o[i?Qs:to]*e||0;return i?o.right-a>0&&o.left+a<ue.innerWidth:o.bottom-a>0&&o.top+a<ue.innerHeight},p.positionInViewport=function(s,e,i){$n(s)&&(s=gn(s));var o=s.getBoundingClientRect(),a=o[i?Qs:to],l=e==null?a/2:e in iu?iu[e]*a:~e.indexOf("%")?parseFloat(e)*a/100:parseFloat(e)||0;return i?(o.left+l)/ue.innerWidth:(o.top+l)/ue.innerHeight},p.killAll=function(s){if(ie.slice(0).forEach(function(i){return i.vars.id!=="ScrollSmoother"&&i.kill()}),s!==!0){var e=ao.killAll||[];ao={},e.forEach(function(i){return i()})}},p}();te.version="3.12.5";te.saveStyles=function(p){return p?Ga(p).forEach(function(t){if(t&&t.style){var n=In.indexOf(t);n>=0&&In.splice(n,5),In.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),kt.core.getCache(t),Lc())}}):In};te.revert=function(p,t){return lh(!p,t)};te.create=function(p,t){return new te(p,t)};te.refresh=function(p){return p?Ta():(Ao||te.register())&&Us(!0)};te.update=function(p){return++re.cache&&Jr(p===!0?2:0)};te.clearScrollMemory=ug;te.maxScroll=function(p,t){return Ir(p,t?on:wi)};te.getScrollFunc=function(p,t){return ws(gn(p),t?on:wi)};te.getById=function(p){return kc[p]};te.getAll=function(){return ie.filter(function(p){return p.vars.id!=="ScrollSmoother"})};te.isScrolling=function(){return!!hr};te.snapDirectional=ah;te.addEventListener=function(p,t){var n=ao[p]||(ao[p]=[]);~n.indexOf(t)||n.push(t)};te.removeEventListener=function(p,t){var n=ao[p],s=n&&n.indexOf(t);s>=0&&n.splice(s,1)};te.batch=function(p,t){var n=[],s={},e=t.interval||.016,i=t.batchMax||1e9,o=function(c,h){var g=[],m=[],v=kt.delayedCall(e,function(){h(g,m),g=[],m=[]}).pause();return function(x){g.length||v.restart(!0),g.push(x.trigger),m.push(x),i<=g.length&&v.progress(1)}},a;for(a in t)s[a]=a.substr(0,2)==="on"&&an(t[a])&&a!=="onRefreshInit"?o(a,t[a]):t[a];return an(i)&&(i=i(),Li(te,"refresh",function(){return i=t.batchMax()})),Ga(p).forEach(function(l){var c={};for(a in s)c[a]=s[a];c.trigger=l,n.push(te.create(c))}),n};var Vd=function(t,n,s,e){return n>e?t(e):n<0&&t(0),s>e?(e-n)/(s-n):s<0?n/(n-s):1},ec=function p(t,n){n===!0?t.style.removeProperty("touch-action"):t.style.touchAction=n===!0?"auto":n?"pan-"+n+(ri.isTouch?" pinch-zoom":""):"none",t===xr&&p(ze,n)},Al={auto:1,scroll:1},Cv=function(t){var n=t.event,s=t.target,e=t.axis,i=(n.changedTouches?n.changedTouches[0]:n).target,o=i._gsap||kt.core.getCache(i),a=Zi(),l;if(!o._isScrollT||a-o._isScrollT>2e3){for(;i&&i!==ze&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(Al[(l=lr(i)).overflowY]||Al[l.overflowX]));)i=i.parentNode;o._isScroll=i&&i!==s&&!oo(i)&&(Al[(l=lr(i)).overflowY]||Al[l.overflowX]),o._isScrollT=a}(o._isScroll||e==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},dg=function(t,n,s,e){return ri.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:e=e&&Cv,onPress:e,onDrag:e,onScroll:e,onEnable:function(){return s&&Li(Ze,ri.eventTypes[0],Xd,!1,!0)},onDisable:function(){return Ei(Ze,ri.eventTypes[0],Xd,!0)}})},Tv=/(input|label|select|textarea)/i,Yd,Xd=function(t){var n=Tv.test(t.target.tagName);(n||Yd)&&(t._gsapAllow=!0,Yd=n)},Sv=function(t){qs(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var n=t,s=n.normalizeScrollX,e=n.momentum,i=n.allowNestedScroll,o=n.onRelease,a,l,c=gn(t.target)||xr,h=kt.core.globals().ScrollSmoother,g=h&&h.get(),m=cs&&(t.content&&gn(t.content)||g&&t.content!==!1&&!g.smooth()&&g.content()),v=ws(c,wi),x=ws(c,on),C=1,k=(ri.isTouch&&ue.visualViewport?ue.visualViewport.scale*ue.visualViewport.width:ue.outerWidth)/ue.innerWidth,S=0,A=an(e)?function(){return e(a)}:function(){return e||2.8},z,R,W=dg(c,t.type,!0,i),Y=function(){return R=!1},b=Mr,rt=Mr,J=function(){l=Ir(c,wi),rt=Oa(cs?1:0,l),s&&(b=Oa(0,Ir(c,on))),z=eo},at=function(){m._gsap.y=xa(parseFloat(m._gsap.y)+v.offset)+"px",m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(m._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},St=function(){if(R){requestAnimationFrame(Y);var ot=xa(a.deltaY/2),Nt=rt(v.v-ot);if(m&&Nt!==v.v+v.offset){v.offset=Nt-v.v;var B=xa((parseFloat(m&&m._gsap.y)||0)-v.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+B+", 0, 1)",m._gsap.y=B+"px",v.cacheID=re.cache,Jr()}return!0}v.offset&&at(),R=!0},ut,q,st,mt,xt=function(){J(),ut.isActive()&&ut.vars.scrollY>l&&(v()>l?ut.progress(1)&&v(l):ut.resetTo("scrollY",l))};return m&&kt.set(m,{y:"+=0"}),t.ignoreCheck=function(ht){return cs&&ht.type==="touchmove"&&St()||C>1.05&&ht.type!=="touchstart"||a.isGesturing||ht.touches&&ht.touches.length>1},t.onPress=function(){R=!1;var ht=C;C=xa((ue.visualViewport&&ue.visualViewport.scale||1)/k),ut.pause(),ht!==C&&ec(c,C>1.01?!0:s?!1:"x"),q=x(),st=v(),J(),z=eo},t.onRelease=t.onGestureStart=function(ht,ot){if(v.offset&&at(),!ot)mt.restart(!0);else{re.cache++;var Nt=A(),B,Lt;s&&(B=x(),Lt=B+Nt*.05*-ht.velocityX/.227,Nt*=Vd(x,B,Lt,Ir(c,on)),ut.vars.scrollX=b(Lt)),B=v(),Lt=B+Nt*.05*-ht.velocityY/.227,Nt*=Vd(v,B,Lt,Ir(c,wi)),ut.vars.scrollY=rt(Lt),ut.invalidate().duration(Nt).play(.01),(cs&&ut.vars.scrollY>=l||B>=l-1)&&kt.to({},{onUpdate:xt,duration:Nt})}o&&o(ht)},t.onWheel=function(){ut._ts&&ut.pause(),Zi()-S>1e3&&(z=0,S=Zi())},t.onChange=function(ht,ot,Nt,B,Lt){if(eo!==z&&J(),ot&&s&&x(b(B[2]===ot?q+(ht.startX-ht.x):x()+ot-B[1])),Nt){v.offset&&at();var Q=Lt[2]===Nt,yt=Q?st+ht.startY-ht.y:v()+Nt-Lt[1],pt=rt(yt);Q&&yt!==pt&&(st+=pt-yt),v(pt)}(Nt||ot)&&Jr()},t.onEnable=function(){ec(c,s?!1:"x"),te.addEventListener("refresh",xt),Li(ue,"resize",xt),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=x.smooth=!1),W.enable()},t.onDisable=function(){ec(c,!0),Ei(ue,"resize",xt),te.removeEventListener("refresh",xt),W.kill()},t.lockAxis=t.lockAxis!==!1,a=new ri(t),a.iOS=cs,cs&&!v()&&v(1),cs&&kt.ticker.add(Mr),mt=a._dc,ut=kt.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:s?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:hg(v,v(),function(){return ut.pause()})},onUpdate:Jr,onComplete:mt.vars.onComplete}),a};te.sort=function(p){return ie.sort(p||function(t,n){return(t.vars.refreshPriority||0)*-1e6+t.start-(n.start+(n.vars.refreshPriority||0)*-1e6)})};te.observe=function(p){return new ri(p)};te.normalizeScroll=function(p){if(typeof p=="undefined")return en;if(p===!0&&en)return en.enable();if(p===!1){en&&en.kill(),en=p;return}var t=p instanceof ri?p:Sv(p);return en&&en.target===t.target&&en.kill(),oo(t.target)&&(en=t),t};te.core={_getVelocityProp:Tc,_inputObserver:dg,_scrollers:re,_proxies:Rr,bridge:{ss:function(){hr||lo("scrollStart"),hr=Zi()},ref:function(){return ji}}};eg()&&kt.registerPlugin(te);eh.registerPlugin(te);const Kd=50,Ev="(min-width: 1240px)";$(document).ready(function(){if(!document.querySelector("#values-slider"))return;const t=document.querySelector("#values-sections"),n=document.querySelector("#values-icons"),s=document.querySelector("#progress-bar");if(!t||!n)return;const e=[...t.querySelectorAll(".slide-section")],i=[...n.querySelectorAll(".slide-icon")];if(!e.length)return;function o(a){e.forEach((l,c)=>
126l.classList.toggle("current-slide",c===a)),i.forEach((l,c)=>l.classList.toggle("current-slide",c===a))}eh.matchMedia().add(Ev,()=>{const a=`top ${Kd}%`,l=`bottom ${Kd}%`;return e.forEach((c,h)=>{te.create({trigger:c,start:a,end:l,onEnter:()=>o(h),onEnterBack:()=>o(h)})}),s&&te.create({trigger:t,start:a,end:l,onUpdate:c=>{s.style.height=`${c.progress*100}%`}}),o(0),()=>{s&&(s.style.height=""),o(0)}}),window.addEventListener("load",()=>te.refresh())});$(document).ready(function(){const p=$(".numbers_animation");let t={root:null,rootMargin:"0px",threshold:.5},n=new IntersectionObserver(function(o,a){o.forEach(l=>{l.isIntersecting&&(e(l.target),a.unobserve(l.target))})},t);p.each(function(){n.observe(this)});function s(o,a,l){const c=o.toFixed(a);if(!l)return c;const h=c.split(".");return h[0]=h[0].replace(/\B(?=(\d{3})+(?!\d))/g," "),h.join(",")}function e(o){const a=$(o).find(".number");i(a),$(a).each((l,c)=>{const h=parseFloat(String($(c).attr("data-value")).replace(",","."));if(!isFinite(h))return;const g=Number.isInteger(h)?0:(String(h).split(".")[1]||"").length,m=$(c).is("[data-thousands]");$({Counter:0}).animate({Counter:h},{duration:1e3,easing:"swing",progress:function(){$(c).text(s(this.Counter,g,m))},complete:function(){$(c).text(s(h,g,m))}})})}function i(o){$(o).each((a,l)=>{$(l).text("0")})}});$("body").removeClass("no-js");$("body").addClass("js-enabled");

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.