1(function(){'use strict';var xc=Object.create;var _s=Object.defineProperty;var Cc=Object.getOwnPropertyDescriptor;var Ic=Object.getOwnPropertyNames;var Lc=Object.getPrototypeOf,Mc=Object.prototype.hasOwnProperty;var Yr=t=>{throw TypeError(t)};var jr=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,i)=>(typeof require<"u"?require:e)[i]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Ac=(t,e)=>()=>(t&&(e=t(t=0)),e);var ft=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),re=(t,e)=>{for(var i in e)_s(t,i,{get:e[i],enumerable:!0});},Pc=(t,e,i,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ic(e))!Mc.call(t,n)&&n!==i&&_s(t,n,{get:()=>e[n],enumerable:!(s=Cc(e,n))||s.enumerable});return t};var Oc=(t,e,i)=>(i=t!=null?xc(Lc(t)):{},Pc(!t||!t.__esModule?_s(i,"default",{value:t,enumerable:!0}):i,t));var Es=(t,e,i)=>e.has(t)||Yr("Cannot "+i);var z=(t,e,i)=>(Es(t,e,"read from private field"),i?i.call(t):e.get(t)),ae=(t,e,i)=>e.has(t)?Yr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),J=(t,e,i,s)=>(Es(t,e,"write to private field"),e.set(t,i),i),te=(t,e,i)=>(Es(t,e,"access private method"),i);var eo={};re(eo,{getDictionary:()=>Ed});async function _d(){let t=`${window.currentResourcePath}.dictionary.json`;try{let e=await fetch(t).then(s=>s.json()),i={};for(let s in e)if(e.hasOwnProperty(s)){let n=e[s];if(typeof n=="object")for(let r in n){let a=`${s}.${r}`;i[a]=n[r];}else i[s]=n;}return i}catch{}return {}}async function Ed(){return Zs||(Zs=_d()),Zs}var Zs,Js=Ac(()=>{Zs=null;});var po=ft(Ji=>{(function(t){t.parser=function(p,f){return new i(p,f)},t.SAXParser=i,t.SAXStream=c,t.createStream=l,t.MAX_BUFFER_LENGTH=64*1024;var e=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function i(p,f){if(!(this instanceof i))return new i(p,f);var I=this;n(I),I.q=I.c="",I.bufferCheckPosition=t.MAX_BUFFER_LENGTH,I.opt=f||{},I.opt.lowercase=I.opt.lowercase||I.opt.lowercasetags,I.looseCase=I.opt.lowercase?"toLowerCase":"toUpperCase",I.tags=[],I.closed=I.closedRoot=I.sawRoot=!1,I.tag=I.error=null,I.strict=!!p,I.noscript=!!(p||I.opt.noscript),I.state=g.BEGIN,I.strictEntities=I.opt.strictEntities,I.ENTITIES=I.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),I.attribList=[],I.opt.xmlns&&(I.ns=Object.create(m)),I.opt.unquotedAttributeValues===void 0&&(I.opt.unquotedAttributeValues=!p),I.trackPosition=I.opt.position!==!1,I.trackPosition&&(I.position=I.line=I.column=0),A(I,"onready");}Object.create||(Object.create=function(p){function f(){}f.prototype=p;var I=new f;return I}),Object.keys||(Object.keys=function(p){var f=[];for(var I in p)p.hasOwnProperty(I)&&f.push(I);return f});function s(p){for(var f=Math.max(t.MAX_BUFFER_LENGTH,10),I=0,w=0,ee=e.length;w<ee;w++){var ne=p[e[w]].length;if(ne>f)switch(e[w]){case"textNode":$(p);break;case"cdata":M(p,"oncdata",p.cdata),p.cdata="";break;case"script":M(p,"onscript",p.script),p.script="";break;default:O(p,"Max buffer length exceeded: "+e[w]);}I=Math.max(I,ne);}var le=t.MAX_BUFFER_LENGTH-I;p.bufferCheckPosition=le+p.position;}function n(p){for(var f=0,I=e.length;f<I;f++)p[e[f]]="";}function r(p){$(p),p.cdata!==""&&(M(p,"oncdata",p.cdata),p.cdata=""),p.script!==""&&(M(p,"onscript",p.script),p.script="");}i.prototype={end:function(){H(this);},write:Rt,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){r(this);}};var a;try{a=jr("stream").Stream;}catch{a=function(){};}a||(a=function(){});var o=t.EVENTS.filter(function(p){return p!=="error"&&p!=="end"});function l(p,f){return new c(p,f)}function c(p,f){if(!(this instanceof c))return new c(p,f);a.apply(this),this._parser=new i(p,f),this.writable=!0,this.readable=!0;var I=this;this._parser.onend=function(){I.emit("end");},this._parser.onerror=function(w){I.emit("error",w),I._parser.error=null;},this._decoder=null,o.forEach(function(w){Object.defineProperty(I,"on"+w,{get:function(){return I._parser["on"+w]},set:function(ee){if(!ee)return I.removeAllListeners(w),I._parser["on"+w]=ee,ee;I.on(w,ee);},enumerable:!0,configurable:!1});});}c.prototype=Object.create(a.prototype,{constructor:{value:c}}),c.prototype.write=function(p){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(p)){if(!this._decoder){var f=jr("string_decoder").StringDecoder;this._decoder=new f("utf8");}p=this._decoder.write(p);}
vendor: 2,839 bytes, lines 1-2
1return this._parser.write(p.toString()),this.emit("data",p),!0},c.prototype.end=function(p){return p&&p.length&&this.write(p),this._parser.end(),!0},c.prototype.on=function(p,f){var I=this;return !I._parser["on"+p]&&o.indexOf(p)!==-1&&(I._parser["on"+p]=function(){var w=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);w.splice(0,0,p),I.emit.apply(I,w);}),a.prototype.on.call(I,p,f)};var u="[CDATA[",d="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",y="http://www.w3.org/2000/xmlns/",m={xml:h,xmlns:y},_=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,S=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function b(p){return p===" "||p===` 2`||p==="\r"||p===" "}function T(p){return p==='"'||p==="'"}function L(p){return p===">"||b(p)}function P(p,f){return p.test(f)}function R(p,f){return !P(p,f)}var g=0;t.STATE={BEGIN:g++,BEGIN_WHITESPACE:g++,TEXT:g++,TEXT_ENTITY:g++,OPEN_WAKA:g++,SGML_DECL:g++,SGML_DECL_QUOTED:g++,DOCTYPE:g++,DOCTYPE_QUOTED:g++,DOCTYPE_DTD:g++,DOCTYPE_DTD_QUOTED:g++,COMMENT_STARTING:g++,COMMENT:g++,COMMENT_ENDING:g++,COMMENT_ENDED:g++,CDATA:g++,CDATA_ENDING:g++,CDATA_ENDING_2:g++,PROC_INST:g++,PROC_INST_BODY:g++,PROC_INST_ENDING:g++,OPEN_TAG:g++,OPEN_TAG_SLASH:g++,ATTRIB:g++,ATTRIB_NAME:g++,ATTRIB_NAME_SAW_WHITE:g++,ATTRIB_VALUE:g++,ATTRIB_VALUE_QUOTED:g++,ATTRIB_VALUE_CLOSED:g++,ATTRIB_VALUE_UNQUOTED:g++,ATTRIB_VALUE_ENTITY_Q:g++,ATTRIB_VALUE_ENTITY_U:g++,CLOSE_TAG:g++,CLOSE_TAG_SAW_WHITE:g++,SCRIPT:g++,SCRIPT_ENDING:g++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:1
274,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(p){var f=t.ENTITIES[p],I=typeof f=="number"?String.fromCharCode(f):f;t.ENTITIES[p]=I;});for(var k in t.STATE)t.STATE[t.STATE[k]]=k;g=t.STATE;function A(p,f,I){p[f]&&p[f](I);}function M(p,f,I){p.textNode&&$(p),A(p,f,I);}function $(p){p.textNode=F(p.opt,p.textNode),p.textNode&&A(p,"ontext",p.textNode),p.textNode="";}function F(p,f){return p.trim&&(f=f.trim()),p.normalize&&(f=f.replace(/\s+/g," ")),f}function O(p,f){return $(p),p.trackPosition&&(f+=` 3Line: `+p.line+` 4Column: `+p.column+` 5Char: `+p.c),f=new Error(f),p.error=f,A(p,"onerror",f),p}function H(p){return p.sawRoot&&!p.closedRoot&&x(p,"Unclosed root tag"),p.state!==g.BEGIN&&p.state!==g.BEGIN_WHITESPACE&&p.state!==g.TEXT&&O(p,"Unexpected end"),$(p),p.c="",p.closed=!0,A(p,"onend"),i.call(p,p.strict,p.opt),p}function x(p,f){if(typeof p!="object"||!(p instanceof i))throw new Error("bad call to strictFail");p.strict&&O(p,f);}function B(p){p.strict||(p.tagName=p.tagName[p.looseCase]());var f=p.tags[p.tags.length-1]||p,I=p.tag={name:p.tagName,attributes:{}};p.opt.xmlns&&(I.ns=f.ns),p.attribList.length=0,M(p,"onopentagstart",I);}function N(p,f){var I=p.indexOf(":"),w=I<0?["",p]:p.split(":"),ee=w[0],ne=w[1];return f&&p==="xmlns"&&(ee="xmlns",ne=""),{prefix:ee,local:ne}}function V(p){if(p.strict||(p.attribName=p.attribName[p.looseCase]()),p.attribList.indexOf(p.attribName)!==-1||p.tag.attributes.hasOwnProperty(p.attribName)){p.attribName=p.attribValue="";return}if(p.opt.xmlns){var f=N(p.attribName,!0),I=f.prefix,w=f.local;if(I==="xmlns")if(w==="xml"&&p.attribValue!==h)x(p,"xml: prefix must be bound to "+h+` 6Actual: `+p.attribValue);else if(w==="xmlns"&&p.attribValue!==y)x(p,"xmlns: prefix must be bound to "+y+` 7Actual: `+p.attribValue);else {var ee=p.tag,ne=p.tags[p.tags.length-1]||p;ee.ns===ne.ns&&(ee.ns=Object.create(ne.ns)),ee.ns[w]=p.attribValue;}p.attribList.push([p.attribName,p.attribValue]);}else p.tag.attributes[p.attribName]=p.attribValue,M(p,"onattribute",{name:p.attribName,value:p.attribValue});p.attribName=p.attribValue="";}function G(p,f){if(p.opt.xmlns){var I=p.tag,w=N(p.tagName);I.prefix=w.prefix,I.local=w.local,I.uri=I.ns[w.prefix]||"",I.prefix&&!I.uri&&(x(p,"Unbound namespace prefix: "+JSON.stringify(p.tagName)),I.uri=w.prefix);var ee=p.tags[p.tags.length-1]||p;
7I.ns&&ee.ns!==I.ns&&Object.keys(I.ns).forEach(function(Ur){M(p,"onopennamespace",{prefix:Ur,uri:I.ns[Ur]});});for(var ne=0,le=p.attribList.length;ne<le;ne++){var _e=p.attribList[ne],Me=_e[0],Ht=_e[1],ve=N(Me,!0),nt=ve.prefix,Tc=ve.local,Kr=nt===""?"":I.ns[nt]||"",bs={name:Me,value:Ht,prefix:nt,local:Tc,uri:Kr};nt&&nt!=="xmlns"&&!Kr&&(x(p,"Unbound namespace prefix: "+JSON.stringify(nt)),bs.uri=nt),p.tag.attributes[Me]=bs,M(p,"onattribute",bs);}p.attribList.length=0;}p.tag.isSelfClosing=!!f,p.sawRoot=!0,p.tags.push(p.tag),M(p,"onopentag",p.tag),f||(!p.noscript&&p.tagName.toLowerCase()==="script"?p.state=g.SCRIPT:p.state=g.TEXT,p.tag=null,p.tagName=""),p.attribName=p.attribValue="",p.attribList.length=0;}function X(p){if(!p.tagName){x(p,"Weird empty close tag."),p.textNode+="</>",p.state=g.TEXT;return}if(p.script){if(p.tagName!=="script"){p.script+="</"+p.tagName+">",p.tagName="",p.state=g.SCRIPT;return}M(p,"onscript",p.script),p.script="";}var f=p.tags.length,I=p.tagName;p.strict||(I=I[p.looseCase]());for(var w=I;f--;){var ee=p.tags[f];if(ee.name!==w)x(p,"Unexpected close tag");else break}if(f<0){x(p,"Unmatched closing tag: "+p.tagName),p.textNode+="</"+p.tagName+">",p.state=g.TEXT;return}p.tagName=I;for(var ne=p.tags.length;ne-- >f;){var le=p.tag=p.tags.pop();p.tagName=p.tag.name,M(p,"onclosetag",p.tagName);var _e={};for(var Me in le.ns)_e[Me]=le.ns[Me];var Ht=p.tags[p.tags.length-1]||p;p.opt.xmlns&&le.ns!==Ht.ns&&Object.keys(le.ns).forEach(function(ve){var nt=le.ns[ve];M(p,"onclosenamespace",{prefix:ve,uri:nt});});}f===0&&(p.closedRoot=!0),p.tagName=p.attribValue=p.attribName="",p.attribList.length=0,p.state=g.TEXT;}function ie(p){var f=p.entity,I=f.toLowerCase(),w,ee="";return p.ENTITIES[f]?p.ENTITIES[f]:p.ENTITIES[I]?p.ENTITIES[I]:(f=I,f.charAt(0)==="#"&&(f.charAt(1)==="x"?(f=f.slice(2),w=parseInt(f,16),ee=w.toString(16)):(f=f.slice(1),w=parseInt(f,10),ee=w.toString(10))),f=f.replace(/^0+/,""),isNaN(w)||ee.toLowerCase()!==f?(x(p,"Invalid character entity"),"&"+p.entity+";"):String.fromCodePoint(w))}function be(p,f){f==="<"?(p.state=g.OPEN_WAKA,p.startTagPosition=p.position):b(f)||(x(p,"Non-whitespace before first tag."),p.textNode=f,p.state=g.TEXT);}function Tt(p,f){var I="";return f<p.length&&(I=p.charAt(f)),I}function Rt(p){var f=this;if(this.error)throw this.error;if(f.closed)return O(f,"Cannot write after close. Assign an onready handler.");if(p===null)return H(f);typeof p=="object"&&(p=p.toString());for(var I=0,w="";w=Tt(p,I++),f.c=w,!!w;)switch(f.trackPosition&&(f.position++,w===` 8`?(f.line++,f.column=0):f.column++),f.state){case g.BEGIN:if(f.state=g.BEGIN_WHITESPACE,w==="\uFEFF")continue;be(f,w);continue;case g.BEGIN_WHITESPACE:be(f,w);continue;case g.TEXT:if(f.sawRoot&&!f.closedRoot){for(var ee=I-1;w&&w!=="<"&&w!=="&";)w=Tt(p,I++),w&&f.trackPosition&&(f.position++,w===` 9`?(f.line++,f.column=0):f.column++);f.textNode+=p.substring(ee,I-1);}w==="<"&&!(f.sawRoot&&f.closedRoot&&!f.strict)?(f.state=g.OPEN_WAKA,f.startTagPosition=f.position):(!b(w)&&(!f.sawRoot||f.closedRoot)&&x(f,"Text data outside of root node."),w==="&"?f.state=g.TEXT_ENTITY:f.textNode+=w);continue;case g.SCRIPT:w==="<"?f.state=g.SCRIPT_ENDING:f.script+=w;continue;case g.SCRIPT_ENDING:w==="/"?f.state=g.CLOSE_TAG:(f.script+="<"+w,f.state=g.SCRIPT);continue;case g.OPEN_WAKA:if(w==="!")f.state=g.SGML_DECL,f.sgmlDecl="";else if(!b(w))if(P(_,w))f.state=g.OPEN_TAG,f.tagName=w;else if(w==="/")f.state=g.CLOSE_TAG,f.tagName="";else if(w==="?")f.state=g.PROC_INST,f.procInstName=f.procInstBody="";else {if(x(f,"Unencoded <"),f.startTagPosition+1<f.position){var ne=f.position-f.startTagPosition;w=new Array(ne).join(" ")+w;}f.textNode+="<"+w,f.state=g.TEXT;}continue;case g.SGML_DECL:if(f.sgmlDecl+w==="--"){f.state=g.COMMENT,f.comment="",f.sgmlDecl="";continue}f.doctype&&f.doctype!==!0&&f.sgmlDecl?(f.state=g.DOCTYPE_DTD,f.doctype+="<!"+f.sgmlDecl+w,f.sgmlDecl=""):(f.sgmlDecl+w).toUpperCase()===u?(M(f,"onopencdata"),f.state=g.CDATA,f.sgmlDecl="",f.cdata=""):(f.sgmlDecl+w).toUpperCase()===d?(f.state=g.DOCTYPE,(f.doctype||f.sawRoot)&&x(f,"Inappropriately located doctype declaration"),f.doctype="",f.sgmlDecl=""):w===">"?(M(f,"onsgmldeclaration",f.sgmlDecl),f.sgmlDecl="",f.state=g.TEXT):(T(w)&&(f.state=g.SGML_DECL_QUOTED),f.sgmlDecl+=w);continue;
9case g.SGML_DECL_QUOTED:w===f.q&&(f.state=g.SGML_DECL,f.q=""),f.sgmlDecl+=w;continue;case g.DOCTYPE:w===">"?(f.state=g.TEXT,M(f,"ondoctype",f.doctype),f.doctype=!0):(f.doctype+=w,w==="["?f.state=g.DOCTYPE_DTD:T(w)&&(f.state=g.DOCTYPE_QUOTED,f.q=w));continue;case g.DOCTYPE_QUOTED:f.doctype+=w,w===f.q&&(f.q="",f.state=g.DOCTYPE);continue;case g.DOCTYPE_DTD:w==="]"?(f.doctype+=w,f.state=g.DOCTYPE):w==="<"?(f.state=g.OPEN_WAKA,f.startTagPosition=f.position):T(w)?(f.doctype+=w,f.state=g.DOCTYPE_DTD_QUOTED,f.q=w):f.doctype+=w;continue;case g.DOCTYPE_DTD_QUOTED:f.doctype+=w,w===f.q&&(f.state=g.DOCTYPE_DTD,f.q="");continue;case g.COMMENT:w==="-"?f.state=g.COMMENT_ENDING:f.comment+=w;continue;case g.COMMENT_ENDING:w==="-"?(f.state=g.COMMENT_ENDED,f.comment=F(f.opt,f.comment),f.comment&&M(f,"oncomment",f.comment),f.comment=""):(f.comment+="-"+w,f.state=g.COMMENT);continue;case g.COMMENT_ENDED:w!==">"?(x(f,"Malformed comment"),f.comment+="--"+w,f.state=g.COMMENT):f.doctype&&f.doctype!==!0?f.state=g.DOCTYPE_DTD:f.state=g.TEXT;continue;case g.CDATA:w==="]"?f.state=g.CDATA_ENDING:f.cdata+=w;continue;case g.CDATA_ENDING:w==="]"?f.state=g.CDATA_ENDING_2:(f.cdata+="]"+w,f.state=g.CDATA);continue;case g.CDATA_ENDING_2:w===">"?(f.cdata&&M(f,"oncdata",f.cdata),M(f,"onclosecdata"),f.cdata="",f.state=g.TEXT):w==="]"?f.cdata+="]":(f.cdata+="]]"+w,f.state=g.CDATA);continue;case g.PROC_INST:w==="?"?f.state=g.PROC_INST_ENDING:b(w)?f.state=g.PROC_INST_BODY:f.procInstName+=w;continue;case g.PROC_INST_BODY:if(!f.procInstBody&&b(w))continue;w==="?"?f.state=g.PROC_INST_ENDING:f.procInstBody+=w;continue;case g.PROC_INST_ENDING:w===">"?(M(f,"onprocessinginstruction",{name:f.procInstName,body:f.procInstBody}),f.procInstName=f.procInstBody="",f.state=g.TEXT):(f.procInstBody+="?"+w,f.state=g.PROC_INST_BODY);continue;case g.OPEN_TAG:P(S,w)?f.tagName+=w:(B(f),w===">"?G(f):w==="/"?f.state=g.OPEN_TAG_SLASH:(b(w)||x(f,"Invalid character in tag name"),f.state=g.ATTRIB));continue;case g.OPEN_TAG_SLASH:w===">"?(G(f,!0),X(f)):(x(f,"Forward-slash in opening tag not followed by >"),f.state=g.ATTRIB);continue;case g.ATTRIB:if(b(w))continue;w===">"?G(f):w==="/"?f.state=g.OPEN_TAG_SLASH:P(_,w)?(f.attribName=w,f.attribValue="",f.state=g.ATTRIB_NAME):x(f,"Invalid attribute name");continue;case g.ATTRIB_NAME:w==="="?f.state=g.ATTRIB_VALUE:w===">"?(x(f,"Attribute without value"),f.attribValue=f.attribName,V(f),G(f)):b(w)?f.state=g.ATTRIB_NAME_SAW_WHITE:P(S,w)?f.attribName+=w:x(f,"Invalid attribute name");continue;case g.ATTRIB_NAME_SAW_WHITE:if(w==="=")f.state=g.ATTRIB_VALUE;else {if(b(w))continue;x(f,"Attribute without value"),f.tag.attributes[f.attribName]="",f.attribValue="",M(f,"onattribute",{name:f.attribName,value:""}),f.attribName="",w===">"?G(f):P(_,w)?(f.attribName=w,f.state=g.ATTRIB_NAME):(x(f,"Invalid attribute name"),f.state=g.ATTRIB);}continue;case g.ATTRIB_VALUE:if(b(w))continue;T(w)?(f.q=w,f.state=g.ATTRIB_VALUE_QUOTED):(f.opt.unquotedAttributeValues||O(f,"Unquoted attribute value"),f.state=g.ATTRIB_VALUE_UNQUOTED,f.attribValue=w);continue;case g.ATTRIB_VALUE_QUOTED:if(w!==f.q){w==="&"?f.state=g.ATTRIB_VALUE_ENTITY_Q:f.attribValue+=w;continue}V(f),f.q="",f.state=g.ATTRIB_VALUE_CLOSED;continue;case g.ATTRIB_VALUE_CLOSED:b(w)?f.state=g.ATTRIB:w===">"?G(f):w==="/"?f.state=g.OPEN_TAG_SLASH:P(_,w)?(x(f,"No whitespace between attributes"),f.attribName=w,f.attribValue="",f.state=g.ATTRIB_NAME):x(f,"Invalid attribute name");continue;case g.ATTRIB_VALUE_UNQUOTED:if(!L(w)){w==="&"?f.state=g.ATTRIB_VALUE_ENTITY_U:f.attribValue+=w;continue}V(f),w===">"?G(f):f.state=g.ATTRIB;continue;case g.CLOSE_TAG:if(f.tagName)w===">"?X(f):P(S,w)?f.tagName+=w:f.script?(f.script+="</"+f.tagName,f.tagName="",f.state=g.SCRIPT):(b(w)||x(f,"Invalid tagname in closing tag"),f.state=g.CLOSE_TAG_SAW_WHITE);else {if(b(w))continue;R(_,w)?f.script?(f.script+="</"+w,f.state=g.SCRIPT):x(f,"Invalid tagname in closing tag."):f.tagName=w;}continue;case g.CLOSE_TAG_SAW_WHITE:if(b(w))continue;w===">"?X(f):x(f,"Invalid characters in closing tag");continue;case g.TEXT_ENTITY:case g.ATTRIB_VALUE_ENTITY_Q:case g.ATTRIB_VALUE_ENTITY_U:var le,_e;switch(f.state){case g.TEXT_ENTITY:le=g.TEXT,_e="textNode";break;case g.ATTRIB_VALUE_ENTITY_Q:le=g.ATTRIB_VALUE_QUOTED,_e="attribValue";break;case g.ATTRIB_VALUE_ENTITY_U:le=g.ATTRIB_VALUE_UNQUOTED,_e="attribValue";break}if(w===";"){var Me=ie(f);f.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(Me)?(f.entity="",f.state=le,f.write(Me)):(f[_e]+=Me,f.entity="",f.state=le);}else P(f.entity.length?v:E,w)?f.entity+=w:(x(f,"Invalid character in entity name"),f[_e]+="&"+f.entity+w,f.entity="",f.state=le);continue;default:throw new Error(f,"Unknown state: "+f.state)}return f.position>=f.bufferCheckPosition&&s(f),f}String.fromCodePoint||function(){var p=String.fromCharCode,f=Math.floor,I=function(){var w=16384,ee=[],ne,le,_e=-1,Me=arguments.length;if(!Me)return "";for(var Ht="";++_e<Me;){var ve=Number(arguments[_e]);if(!isFinite(ve)||ve<0||ve>1114111||f(ve)!==ve)throw RangeError("Invalid code point: "+ve);ve<=65535?ee.push(ve):(ve-=65536,ne=(ve>>10)+55296,le=ve%1024+56320,ee.push(ne,le)),(_e+1===Me||ee.length>w)&&(Ht+=p.apply(null,ee),ee.length=0);}return Ht};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:I,configurable:!0,writable:!0}):String.fromCodePoint=I;}();})(typeof Ji>"u"?Ji.sax={}:Ji);});var es=ft((qv,ho)=>{ho.exports={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}};});var ts=ft((Kv,mo)=>{var Fd=es().isArray;mo.exports={copyOptions:function(t){var e,i={};for(e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i},ensureFlagExists:function(t,e){(!(t in e)||typeof e[t]!="boolean")&&(e[t]=!1);}
9,ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0);},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!Fd(t.alwaysArray))&&(t.alwaysArray=!1);},ensureKeyExists:function(t,e){(!(t+"Key"in e)||typeof e[t+"Key"]!="string")&&(e[t+"Key"]=e.compact?"_"+t:t);},checkFnExists:function(t,e){return t+"Fn"in e}};});var nn=ft((Uv,So)=>{var Rd=po(),Q=ts(),ei=es().isArray,C,sn=!0,K;function zd(t){return C=Q.copyOptions(t),Q.ensureFlagExists("ignoreDeclaration",C),Q.ensureFlagExists("ignoreInstruction",C),Q.ensureFlagExists("ignoreAttributes",C),Q.ensureFlagExists("ignoreText",C),Q.ensureFlagExists("ignoreComment",C),Q.ensureFlagExists("ignoreCdata",C),Q.ensureFlagExists("ignoreDoctype",C),Q.ensureFlagExists("compact",C),Q.ensureFlagExists("alwaysChildren",C),Q.ensureFlagExists("addParent",C),Q.ensureFlagExists("trim",C),Q.ensureFlagExists("nativeType",C),Q.ensureFlagExists("nativeTypeAttributes",C),Q.ensureFlagExists("sanitize",C),Q.ensureFlagExists("instructionHasAttributes",C),Q.ensureFlagExists("captureSpacesBetweenElements",C),Q.ensureAlwaysArrayExists(C),Q.ensureKeyExists("declaration",C),Q.ensureKeyExists("instruction",C),Q.ensureKeyExists("attributes",C),Q.ensureKeyExists("text",C),Q.ensureKeyExists("comment",C),Q.ensureKeyExists("cdata",C),Q.ensureKeyExists("doctype",C),Q.ensureKeyExists("type",C),Q.ensureKeyExists("name",C),Q.ensureKeyExists("elements",C),Q.ensureKeyExists("parent",C),Q.checkFnExists("doctype",C),Q.checkFnExists("instruction",C),Q.checkFnExists("cdata",C),Q.checkFnExists("comment",C),Q.checkFnExists("text",C),Q.checkFnExists("instructionName",C),Q.checkFnExists("elementName",C),Q.checkFnExists("attributeName",C),Q.checkFnExists("attributeValue",C),Q.checkFnExists("attributes",C),C}function Eo(t){var e=Number(t);if(!isNaN(e))return e;var i=t.toLowerCase();return i==="true"?!0:i==="false"?!1:t}function vi(t,e){var i;if(C.compact){if(!K[C[t+"Key"]]&&(ei(C.alwaysArray)?C.alwaysArray.indexOf(C[t+"Key"])!==-1:C.alwaysArray)&&(K[C[t+"Key"]]=[]),K[C[t+"Key"]]&&!ei(K[C[t+"Key"]])&&(K[C[t+"Key"]]=[K[C[t+"Key"]]]),t+"Fn"in C&&typeof e=="string"&&(e=C[t+"Fn"](e,K)),t==="instruction"&&("instructionFn"in C||"instructionNameFn"in C)){for(i in e)if(e.hasOwnProperty(i))if("instructionFn"in C)e[i]=C.instructionFn(e[i],i,K);else {var s=e[i];delete e[i],e[C.instructionNameFn(i,s,K)]=s;}}ei(K[C[t+"Key"]])?K[C[t+"Key"]].push(e):K[C[t+"Key"]]=e;}else {K[C.elementsKey]||(K[C.elementsKey]=[]);var n={};if(n[C.typeKey]=t,t==="instruction"){for(i in e)if(e.hasOwnProperty(i))break;n[C.nameKey]="instructionNameFn"in C?C.instructionNameFn(i,e,K):i,C.instructionHasAttributes?(n[C.attributesKey]=e[i][C.attributesKey],"instructionFn"in C&&(n[C.attributesKey]=C.instructionFn(n[C.attributesKey],i,K))):("instructionFn"in C&&(e[i]=C.instructionFn(e[i],i,K)),n[C.instructionKey]=e[i]);}else t+"Fn"in C&&(e=C[t+"Fn"](e,K)),n[C[t+"Key"]]=e;C.addParent&&(n[C.parentKey]=K),K[C.elementsKey].push(n);}}function wo(t){if("attributesFn"in C&&t&&(t=C.attributesFn(t,K)),(C.trim||"attributeValueFn"in C||"attributeNameFn"in C||C.nativeTypeAttributes)&&t){var e;for(e in t)if(t.hasOwnProperty(e)&&(C.trim&&(t[e]=t[e].trim()),C.nativeTypeAttributes&&(t[e]=Eo(t[e])),"attributeValueFn"in C&&(t[e]=C.attributeValueFn(t[e],e,K)),"attributeNameFn"in C)){var i=t[e];delete t[e],t[C.attributeNameFn(e,t[e],K)]=i;}}return t}function $d(t){var e={};if(t.body&&(t.name.toLowerCase()==="xml"||C.instructionHasAttributes)){for(var i=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,s;(s=i.exec(t.body))!==null;)e[s[1]]=s[2]||s[3]||s[4];e=wo(e);}if(t.name.toLowerCase()==="xml"){if(C.ignoreDeclaration)return;K[C.declarationKey]={},Object.keys(e).length&&(K[C.declarationKey][C.attributesKey]=e),C.addParent&&(K[C.declarationKey][C.parentKey]=K);}else {if(C.ignoreInstruction)return;C.trim&&(t.body=t.body.trim());var n={};C.instructionHasAttributes&&Object.keys(e).length?(n[t.name]={},n[t.name][C.attributesKey]=e):n[t.name]=t.body,vi("instruction",n);}}function go(t,e){var i;if(typeof t=="object"&&(e=t.attributes,t=t.name),e=wo(e),"elementNameFn"in C&&(t=C.elementNameFn(t,K)),C.compact){if(i={},!C.ignoreAttributes&&e&&Object.keys(e).length){i[C.attributesKey]={};var s;for(s in e)e.hasOwnProperty(s)&&(i[C.attributesKey][s]=e[s]);}!(t in K)&&(ei(C.alwaysArray)?C.alwaysArray.indexOf(t)!==-1:C.alwaysArray)&&(K[t]=[]),K[t]&&!ei(K[t])&&(K[t]=[K[t]]
vendor: 6,362 bytes, lines 9-11
9),ei(K[t])?K[t].push(i):K[t]=i;}else K[C.elementsKey]||(K[C.elementsKey]=[]),i={},i[C.typeKey]="element",i[C.nameKey]=t,!C.ignoreAttributes&&e&&Object.keys(e).length&&(i[C.attributesKey]=e),C.alwaysChildren&&(i[C.elementsKey]=[]),K[C.elementsKey].push(i);i[C.parentKey]=K,K=i;}function vo(t){C.ignoreText||!t.trim()&&!C.captureSpacesBetweenElements||(C.trim&&(t=t.trim()),C.nativeType&&(t=Eo(t)),C.sanitize&&(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),vi("text",t));}function yo(t){C.ignoreComment||(C.trim&&(t=t.trim()),vi("comment",t));}function bo(t){var e=K[C.parentKey];C.addParent||delete K[C.parentKey],K=e;}function Bd(t){C.ignoreCdata||(C.trim&&(t=t.trim()),vi("cdata",t));}function Vd(t){C.ignoreDoctype||(t=t.replace(/^ /,""),C.trim&&(t=t.trim()),vi("doctype",t));}function _o(t){t.note=t;}So.exports=function(t,e){var i=Rd.parser(!0,{}),s={};if(K=s,C=zd(e),(i.opt={strictEntities:!0},i.onopentag=go,i.ontext=vo,i.oncomment=yo,i.onclosetag=bo,i.onerror=_o,i.oncdata=Bd,i.ondoctype=Vd,i.onprocessinginstruction=$d),sn)i.write(t).close();if(s[C.elementsKey]){var n=s[C.elementsKey];delete s[C.elementsKey],s[C.elementsKey]=n,delete s.text;}return s};});var Co=ft((Yv,xo)=>{var To=ts(),Gd=nn();function Wd(t){var e=To.copyOptions(t);return To.ensureSpacesExists(e),e}xo.exports=function(t,e){var i,s,n,r;return i=Wd(e),s=Gd(t,i),r="compact"in i&&i.compact?"_parent":"parent","addParent"in i&&i.addParent?n=JSON.stringify(s,function(a,o){return a===r?"_":o},i.spaces):n=JSON.stringify(s,null,i.spaces),n.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};});var an=ft((jv,ko)=>{var Z=ts(),qd=es().isArray,we,Se;function Kd(t){var e=Z.copyOptions(t);return Z.ensureFlagExists("ignoreDeclaration",e),Z.ensureFlagExists("ignoreInstruction",e),Z.ensureFlagExists("ignoreAttributes",e),Z.ensureFlagExists("ignoreText",e),Z.ensureFlagExists("ignoreComment",e),Z.ensureFlagExists("ignoreCdata",e),Z.ensureFlagExists("ignoreDoctype",e),Z.ensureFlagExists("compact",e),Z.ensureFlagExists("indentText",e),Z.ensureFlagExists("indentCdata",e),Z.ensureFlagExists("indentAttributes",e),Z.ensureFlagExists("indentInstruction",e),Z.ensureFlagExists("fullTagEmptyElement",e),Z.ensureFlagExists("noQuotesForNativeAttributes",e),Z.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),Z.ensureKeyExists("declaration",e),Z.ensureKeyExists("instruction",e),Z.ensureKeyExists("attributes",e),Z.ensureKeyExists("text",e),Z.ensureKeyExists("comment",e),Z.ensureKeyExists("cdata",e),Z.ensureKeyExists("doctype",e),Z.ensureKeyExists("type",e),Z.ensureKeyExists("name",e),Z.ensureKeyExists("elements",e),Z.checkFnExists("doctype",e),Z.checkFnExists("instruction",e),Z.checkFnExists("cdata",e),Z.checkFnExists("comment",e),Z.checkFnExists("text",e),Z.checkFnExists("instructionName",e),Z.checkFnExists("elementName",e),Z.checkFnExists("attributeName",e),Z.checkFnExists("attributeValue",e),Z.checkFnExists("attributes",e),Z.checkFnExists("fullTagEmptyElement",e),e}function Je(t,e,i){return (!i&&t.spaces?` 10`:"")+Array(e+1).join(t.spaces)}function is(t,e,i){if(e.ignoreAttributes)return "";"attributesFn"in e&&(t=e.attributesFn(t,Se,we));var s,n,r,a,o=[];for(s in t)t.hasOwnProperty(s)&&t[s]!==null&&t[s]!==void 0&&(a=e.noQuotesForNativeAttributes&&typeof t[s]!="string"?"":'"',n=""+t[s],n=n.replace(/"/g,"""),r="attributeNameFn"in e?e.attributeNameFn(s,n,Se,we):s,o.push(e.spaces&&e.indentAttributes?Je(e,i+1,!1):" "),o.push(r+"="+a+("attributeValueFn"in e?e.attributeValueFn(n,s,Se,we):n)+a));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&o.push(Je(e,i,!1)),o.join("")}function Io(t,e,i){return we=t,Se="xml",e.ignoreDeclaration?"":"<?xml"+is(t[e.attributesKey],e,i)+"?>"}function Lo(t,e,i){if(e.ignoreInstruction)return "";var s;for(s in t)if(t.hasOwnProperty(s))break;var n="instructionNameFn"in e?e.instructionNameFn(s,t[s],Se,we):s;if(typeof t[s]=="object")return we=t,Se=n,"<?"+n+is(t[s][e.attributesKey],e,i)+"?>";var r=t[s]?t[s]:"";return "instructionFn"in e&&(r=e.instructionFn(r,s,Se,we)),"<?"+n+(r?" "+r:"")+"?>"}function Mo(t,e){return e.ignoreComment?"":"<!--"+("commentFn"in e?e.commentFn(t,Se,we):t)+"-->"}function Ao(t,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(t,Se,we):t.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function Po(t,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(t,Se,we):t)+">"}function rn(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&/g,"&"),t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in e?e.textFn(t,Se,we):t)}function Ud(t,e){var i;if(t.elements&&t.elements.length)for(i=0;i<t.elements.length;++i)switch(t.elements[i][e.typeKey]){case"text":if(e.indentText)return !0;break;case"cdata":if(e.indentCdata)return !0;break;case"instruction":if(e.indentInstruction)return !0;break;case"doctype":case"comment":case"element":return !0;default:return !0}return !1}function Yd(t,e,i){we=t,Se=t.name;var s=[],n="elementNameFn"in e?e.elementNameFn(t.name,t):t.name;s.push("<"+n),t[e.attributesKey]&&s.push(is(t[e.attributesKey],e,i));var r=t[e.elementsKey]&&t[e.elementsKey].length||t[e.attributesKey]&&t[e.attributesKey]["xml:space"]==="preserve";return r||("fullTagEmptyElementFn"in e?r=e.fullTagEmptyElementFn(t.name,t):r=e.fullTagEmptyElement),r?(s.push(">"),t[e.elementsKey]&&t[e.elementsKey].length&&(s.push(Oo(t[e.elementsKey],e,i+1)),we=t,Se=t.name),s.push(e.spaces&&Ud(t,e)?` 11`+Array(i+1).join(e.spaces):""),s.push("</"+n+">")):s.push("/>"),s.join("")}function Oo(t,e,i,s){return t.reduce(function(n,r){var a=Je(e,i,s&&!n);switch(r.type){case"element":return n+a+Yd(r,e,i);case"comment":return n+a+Mo(r[e.commentKey],e);case"doctype":return n+a+Po(r[e.doctypeKey],e);case"cdata":return n+(e.indentCdata?a:"")+Ao(r[e.cdataKey],e);case"text":return n+(e.indentText?a:"")+rn(r[e.textKey],e);case"instruction":var o={};return o[r[e.nameKey]]=r[e.attributesKey]?r:r[e.instructionKey],n+(e.indentInstruction?a:"")+Lo(o,e,i)}},"")}function Do(t,e,i){var s;for(s in t)if(t.hasOwnProperty(s))switch(s){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||i)return !0;break;case e.cdataKey:if(e.indentCdata||i)return !0;break;case e.instructionKey:if(e.indentInstruction||i)return !0;break;case e.doctypeKey:case e.commentKey:return !0;default:return !0}return !1}
11function jd(t,e,i,s,n){we=t,Se=e;var r="elementNameFn"in i?i.elementNameFn(e,t):e;if(typeof t>"u"||t===null||t==="")return "fullTagEmptyElementFn"in i&&i.fullTagEmptyElementFn(e,t)||i.fullTagEmptyElement?"<"+r+"></"+r+">":"<"+r+"/>";var a=[];if(e){if(a.push("<"+r),typeof t!="object")return a.push(">"+rn(t,i)+"</"+r+">"),a.join("");t[i.attributesKey]&&a.push(is(t[i.attributesKey],i,s));var o=Do(t,i,!0)||t[i.attributesKey]&&t[i.attributesKey]["xml:space"]==="preserve";if(o||("fullTagEmptyElementFn"in i?o=i.fullTagEmptyElementFn(e,t):o=i.fullTagEmptyElement),o)a.push(">");else return a.push("/>"),a.join("")}return a.push(No(t,i,s+1,!1)),we=t,Se=e,e&&a.push((n?Je(i,s,!1):"")+"</"+r+">"),a.join("")}function No(t,e,i,s){var n,r,a,o=[];for(r in t)if(t.hasOwnProperty(r))for(a=qd(t[r])?t[r]:[t[r]],n=0;n<a.length;++n){switch(r){case e.declarationKey:o.push(Io(a[n],e,i));break;case e.instructionKey:o.push((e.indentInstruction?Je(e,i,s):"")+Lo(a[n],e,i));break;case e.attributesKey:case e.parentKey:break;case e.textKey:o.push((e.indentText?Je(e,i,s):"")+rn(a[n],e));break;case e.cdataKey:o.push((e.indentCdata?Je(e,i,s):"")+Ao(a[n],e));break;case e.doctypeKey:o.push(Je(e,i,s)+Po(a[n],e));break;case e.commentKey:o.push(Je(e,i,s)+Mo(a[n],e));break;default:o.push(Je(e,i,s)+jd(a[n],r,e,i,Do(a[n],e)));}s=s&&!o.length;}return o.join("")}ko.exports=function(t,e){e=Kd(e);var i=[];return we=t,Se="_root_",e.compact?i.push(No(t,e,0,!0)):(t[e.declarationKey]&&i.push(Io(t[e.declarationKey],e,0)),t[e.elementsKey]&&t[e.elementsKey].length&&i.push(Oo(t[e.elementsKey],e,0,!i.length))),i.join("")};});var Ro=ft((Xv,Fo)=>{var Xd=an();Fo.exports=function(t,e){t instanceof Buffer&&(t=t.toString());var i=null;if(typeof t=="string")try{i=JSON.parse(t);}catch{throw new Error("The JSON structure is invalid")}else i=t;return Xd(i,e)};});var zo=ft((Qv,Ho)=>{var Qd=nn(),Zd=Co(),Jd=an(),eu=Ro();Ho.exports={xml2js:Qd,xml2json:Zd,js2xml:Jd,json2xml:eu};});var Dc=(t,e)=>{let i=e?.innerWidth||0,s=e?.innerHeight||0;return i||s?{width:i,height:s}:t?.getBoundingClientRect()||{}},Nc=(t,e)=>{let i=Dc(t,e),s=i?.width||0,n=i?.height||0,r=t?.clientWidth||0,a=t?.clientHeight||0;return {outerWidth:s,outerHeight:n,innerWidth:Math.min(s,r),innerHeight:Math.min(n,a),scrollWidth:t?.scrollWidth||0,scrollHeight:t?.scrollHeight||0,scrollbarWidth:Math.max(0,s-r),scrollbarHeight:Math.max(0,n-a)}},kc=t=>({top:t?.scrollY||t?.pageYOffset||t?.scrollTop||0,left:t?.scrollX||t?.pageXOffset||t?.scrollLeft||0});var Fc=(t,e)=>{let{sheet:i}=t||{};return i?.cssRules?.[0]&&i.deleteRule(0),i?.insertRule(e,0),t},Rc=t=>`--scroll-padlock-outer-width: ${t?.outerWidth||0}px; 12--scroll-padlock-outer-height: ${t?.outerHeight||0}px; 13--scroll-padlock-inner-width: ${t?.innerWidth||0}px; 14--scroll-padlock-inner-height: ${t?.innerHeight||0}px; 15--scroll-padlock-scroll-width: ${t?.scrollWidth||0}px; 16--scroll-padlock-scroll-height: ${t?.scrollHeight||0}px; 17--scroll-padlock-scrollbar-width: ${t?.scrollbarWidth||0}px; 18--scroll-padlock-scrollbar-height: ${t?.scrollbarHeight||0}px;`,Hc=t=>`--scroll-padlock-scroll-top: ${t?.top||0}px; 19--scroll-padlock-scroll-left: ${t?.left||0}px;`,Xr="data-scroll-padlock",Qr=-1,ws=new WeakMap,zt,We,Qe,He,Ce,rt,Ze,pt,ht,mt,gt,ai,Ct,qe,Ke,oi,at,U,Zr,Ss,$t,Ts,Bt,Vt,li,xs,Fi,Cs,Is,Ls,Ri,Ms,As,Jr,xt,Hi=class{constructor(e,i,s=globalThis){ae(this,U);ae(this,zt,0);ae(this,We,null);ae(this,Qe,null);ae(this,He,null);ae(this,Ce,null);ae(this,rt,null);ae(this,Ze,null);ae(this,pt,null);ae(this,ht,null);ae(this,mt,null);ae(this,gt,null);ae(this,ai,{resize:"remove",scroll:"remove"});ae(this,Ct,null);ae(this,qe,!1);ae(this,Ke,!1);ae(this,oi,"");ae(this,at,"");ae(this,$t,te(this,U,Ss).bind(this));ae(this,Bt,te(this,U,Ts).bind(this));ae(this,Vt,{resize:z(this,$t),scroll:z(this,Bt)});ae(this,li,e=>z(this,Ce)?.scrollTo(e.left,e.top));let n=typeof e,r=n==="object",a=r&&!Array.isArray(e),{client:o}=a?e:{},l=o||s,{HTMLElement:c}=l,u=e instanceof c,h=a&&!u?e:{scrollingElement:e,cssClassName:i,client:l},{scrollingElement:y,scrollEventElement:m,cssClassName:_,resizeHandlerWrapper:S,scrollHandlerWrapper:E,client:v}=h;J(this,We,v||s);let{document:b,MutationObserver:T}=z(this,We);if(J(this,Qe,b),!(r||n==="undefined")||e===z(this,We)||e===z(this,Qe))throw new TypeError('The Padlock constructor "scrolling element" argument is invali
19d.');let{body:P,documentElement:R,scrollingElement:g}=z(this,Qe);if(J(this,He,typeof y<"u"?y:g||R),!(z(this,He)instanceof c))throw new TypeError("The Padlock instance scrolling element is invalid.");J(this,pt,z(this,He)?.classList);let M=y||z(this,We);if(M=y===P||y===R?z(this,We):M,J(this,Ce,typeof m<"u"?m:M),!(z(this,Ce)instanceof c)&&z(this,Ce)!==z(this,We))throw new TypeError("The Padlock instance scroll event element is invalid.");if(J(this,rt,z(this,Ce)),ws.has(z(this,rt)))throw new Error(`An instance has already been initialized on ${z(this,rt)}`);let F=typeof _;if(F!=="undefined"&&F!=="string"||_==="")throw new TypeError("The Padlock CSS class to be observed is invalid.");J(this,at,_||"scroll-padlock-locked"),S&&(J(this,$t,S(te(this,U,Ss).bind(this))),z(this,Vt).resize=z(this,$t)),E&&(J(this,Bt,E(te(this,U,Ts).bind(this))),z(this,Vt).scroll=z(this,Bt)),J(this,gt,new T(te(this,U,Zr).bind(this))),J(this,Ze,z(this,Qe).createElement("style")),Qr+=1,J(this,zt,Qr),J(this,oi,`[${Xr}="${z(this,zt)}"]`),te(this,U,Ls).call(this,"set"),this.update(),te(this,U,Ms).call(this),te(this,U,xt).call(this,"resize","add"),te(this,U,xt).call(this,"scroll","add"),ws.set(z(this,rt),this);}get scrollingElement(){return z(this,He)}get scrollEventElement(){return z(this,Ce)}get cssClassName(){return z(this,at)}get scroll(){return z(this,qe)?z(this,mt):z(this,ht)}set scroll(e){if(z(this,qe)){J(this,mt,e);return}z(this,li).call(this,e);}get layout(){return z(this,Ct)}unlisten(e){return te(this,U,xt).call(this,e,"remove")}listen(e){return te(this,U,xt).call(this,e,"add")}destroy(){te(this,U,As).call(this),z(this,Ze)?.remove(),te(this,U,Ls).call(this,"remove"),te(this,U,xt).call(this,"resize","remove"),te(this,U,xt).call(this,"scroll","remove"),ws.delete(z(this,rt)),J(this,We,null),J(this,Qe,null),J(this,rt,null),J(this,He,null),J(this,Ce,null),J(this,gt,null),J(this,Ze,null),J(this,pt,null),J(this,ht,null),J(this,mt,null),J(this,Ct,null),J(this,at,"");}update(){te(this,U,xs).call(this),te(this,U,Fi).call(this,te(this,U,Jr)),te(this,U,Ri).call(this);}};zt=new WeakMap,We=new WeakMap,Qe=new WeakMap,He=new WeakMap,Ce=new WeakMap,rt=new WeakMap,Ze=new WeakMap,pt=new WeakMap,ht=new WeakMap,mt=new WeakMap,gt=new WeakMap,ai=new WeakMap,Ct=new WeakMap,qe=new WeakMap,Ke=new WeakMap,oi=new WeakMap,at=new WeakMap,U=new WeakSet,Zr=function(){let e=z(this,qe);if(te(this,U,xs).call(this),z(this,qe)!==e){if(z(this,qe)){J(this,mt,{...z(this,ht)});return}z(this,li).call(this,z(this,mt));}},Ss=function(){te(this,U,Fi).call(this,te(this,U,Cs)),te(this,U,Ri).call(this);},$t=new WeakMap,Ts=function(){te(this,U,Fi).call(this,te(this,U,Is)),te(this,U,Ri).call(this);},Bt=new WeakMap,Vt=new WeakMap,li=new WeakMap,xs=function(){return J(this,qe,!!z(this,pt)?.contains(z(this,at))),z(this,qe)},Fi=function(e){let i=z(this,qe);te(this,U,As).call(this),z(this,pt)?.remove(z(this,at));let s=e.call(this);return i&&z(this,pt)?.add(z(this,at)),te(this,U,Ms).call(this),s},Cs=function(){return z(this,He)&&z(this,Ce)&&J(this,Ct,Nc(z(this,He),z(this,Ce))),z(this,Ct)},Is=function(){return z(this,Ce)&&J(this,ht,kc(z(this,Ce))),z(this,ht)},Ls=function(e){z(this,He)?.[`${e}Attribute`](Xr,z(this,zt));},Ri=function(){return z(this,Ze)&&!z(this,Qe)?.head?.contains(z(this,Ze))&&z(this,Qe)?.head.appendChild(z(this,Ze)),Fc(z(this,Ze),`${z(this,oi)} { ${Rc(this.layout)} ${Hc(this.scroll)} }`)},Ms=function(){return z(this,Ke)?z(this,Ke):(z(this,gt)?.observe(z(this,He),{attributes:!0,attributeFilter:["class"],childList:!1,characterData:!1}),J(this,Ke,!!z(this,gt)),z(this,Ke))},As=function(){return z(this,Ke)?(z(this,gt)?.disconnect(),J(this,Ke,!1),z(this,Ke)):z(this,Ke)},Jr=function(){te(this,U,Cs).call(this),te(this,U,Is).call(this);},xt=function(e,i){let s=z(this,ai)[e],r={resize:z(this,We),scroll:z(this,Ce)}[e];return !r||!s||s===i?!1:(z(this,ai)[e]=i,r[`${i}EventListener`](e,z(this,Vt)[e]),!0)};var dn={};re(dn,{ChemicalCheck:()=>cn,SearchResult:()=>tn});var tn={};re(tn,{default:()=>kd});var Vi,q,sa,Gi,It,ea,na,Ps,ra,ks,Os,Ds,aa,ci={},oa=[],zc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Wi=Array.isArray;function vt(t,e){for(var i in e)t[i]=e[i];return t}function Fs(t){t&&t.parentNode&&t.parentNode.removeChild(t);}function di(t,e,i){var s,n,r,a={};for(r in e)r=="key"?s=e[r]:r=="ref"?n=e[r]:a[r]=e[r];if(arguments.length>2&&(a.children=arguments.length>3?Vi.call(arguments,2):i),typeof t=="function"&&t.defaultProps!=null)for(r in t.defaultProps)a[r]===void 0&&(a[r]=t.defaultProps[r]);return $i(t,a,s,n,null)}function $i(t,e,i,s,n){var r={type:t,props:e,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n??++sa,__i:-1,__u:0};return n==null&&q.vnode!=null&&q.vnode(r),r}function fe(t){return t.children}function ke(t,e){this.props=t,this.context=e;}function Gt(t,e){if(e==null)return t.__?Gt(t.__,t.__i+1):null;for(var i;e<t.__k.length;e++)if((i=t.__k[e])!=null&&i.__e!=null)return i.__e;return typeof t.type=="function"?Gt(t):null}function la(t){var e,i;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((i=t.__k[e])!=null&&i.__e!=null){t.__e=t.__c.base=i.__e;break}return la(t)}}function Ns(t){(!t.__d&&(t.__d=!0)&&It.push(t)&&!Bi.__r++||ea!==q.debounceRendering)&&((ea=q.debounceRendering)||na)(Bi);}function Bi(){var t,e,i,s,n,r,a,o;for(It.sort(Ps);t=It.shift();)t.__d&&(e=It.length,s=void 0,r=(n=(i=t).__v).__e,a=[],o=[],i.__P&&((s=vt({},n)).__v=n.__v+1,q.vnode&&q.vnode(s),Rs(i.__P,s,n,i.__n,i.__P.namespaceURI,32&n.__u?[r]:null,a,r??Gt(n),!!(32&n.__u),o),s.__v=n.__v,s.__.__k[s.__i]=s,ua(a,s,o),s.__e!=r&&la(s)),It.length>e&&It.sort(Ps));Bi.__r=0;}function ca(t,e,i,s,n,r,a,o,l,c,u){var d,h,y,m,_,S,E=s&&s.__k||oa,v=e.length;for(l=$c(i,e,E,l,v),d=0;d<v;d++)(y=i.__k[d])!=null&&(h=y.__i===-1?ci:E[y.__i]||ci,y.__i=d,S=Rs(t,y,h,n,r,a,o,l,c,u),m=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&Hs(h.ref,null,y),u.push(y.ref,y.__c||m,y)),_==null&&m!=null&&(_=m),4&y.__u||h.__k===y.__k?l=da(y,l,t):typeof y.type=="function"&&S!==void 0?l=S:m&&(l=m.nextSibling),y.__u&=-7
19);return i.__e=_,l}function $c(t,e,i,s,n){var r,a,o,l,c,u=i.length,d=u,h=0;for(t.__k=new Array(n),r=0;r<n;r++)(a=e[r])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=r+h,(a=t.__k[r]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?$i(null,a,null,null,null):Wi(a)?$i(fe,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?$i(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,o=null,(c=a.__i=Bc(a,i,l,d))!==-1&&(d--,(o=i[c])&&(o.__u|=2)),o==null||o.__v===null?(c==-1&&h--,typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,a.__u|=4))):t.__k[r]=null;if(d)for(r=0;r<u;r++)(o=i[r])!=null&&!(2&o.__u)&&(o.__e==s&&(s=Gt(o)),fa(o,o));return s}function da(t,e,i){var s,n;if(typeof t.type=="function"){for(s=t.__k,n=0;s&&n<s.length;n++)s[n]&&(s[n].__=t,e=da(s[n],e,i));return e}t.__e!=e&&(e&&t.type&&!i.contains(e)&&(e=Gt(t)),i.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function ui(t,e){return e=e||[],t==null||typeof t=="boolean"||(Wi(t)?t.some(function(i){ui(i,e);}):e.push(t)),e}function Bc(t,e,i,s){var n,r,a=t.key,o=t.type,l=e[i];if(l===null||l&&a==l.key&&o===l.type&&!(2&l.__u))return i;if(s>(l!=null&&!(2&l.__u)?1:0))for(n=i-1,r=i+1;n>=0||r<e.length;){if(n>=0){if((l=e[n])&&!(2&l.__u)&&a==l.key&&o===l.type)return n;n--;}if(r<e.length){if((l=e[r])&&!(2&l.__u)&&a==l.key&&o===l.type)return r;r++;}}return -1}function ta(t,e,i){e[0]=="-"?t.setProperty(e,i??""):t[e]=i==null?"":typeof i!="number"||zc.test(e)?i:i+"px";}function zi(t,e,i,s,n){var r;e:if(e=="style")if(typeof i=="string")t.style.cssText=i;else {if(typeof s=="string"&&(t.style.cssText=s=""),s)for(e in s)i&&e in i||ta(t.style,e,"");if(i)for(e in i)s&&i[e]===s[e]||ta(t.style,e,i[e]);}else if(e[0]=="o"&&e[1]=="n")r=e!=(e=e.replace(ra,"$1")),e=e.toLowerCase()in t||e=="onFocusOut"||e=="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=i,i?s?i.u=s.u:(i.u=ks,t.addEventListener(e,r?Ds:Os,r)):t.removeEventListener(e,r?Ds:Os,r);else {if(n=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=i??"";break e}catch{}typeof i=="function"||(i==null||i===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&i==1?"":i));}}function ia(t){return function(e){if(this.l){var i=this.l[e.type+t];if(e.t==null)e.t=ks++;else if(e.t<i.u)return;return i(q.event?q.event(e):e)}}}function Rs(t,e,i,s,n,r,a,o,l,c){var u,d,h,y,m,_,S,E,v,b,T,L,P,R,g,k,A,M=e.type;if(e.constructor!==void 0)return null;128&i.__u&&(l=!!(32&i.__u),r=[o=e.__e=i.__e]),(u=q.__b)&&u(e);e:if(typeof M=="function")try{if(E=e.props,v="prototype"in M&&M.prototype.render,b=(u=M.contextType)&&s[u.__c],T=u?b?b.props.value:u.__:s,i.__c?S=(d=e.__c=i.__c).__=d.__E:(v?e.__c=d=new M(E,T):(e.__c=d=new ke(E,T),d.constructor=M,d.render=Gc),b&&b.sub(d),d.props=E,d.state||(d.state={}),d.context=T,d.__n=s,h=d.__d=!0,d.__h=[],d._sb=[]),v&&d.__s==null&&(d.__s=d.state),v&&M.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=vt({},d.__s)),vt(d.__s,M.getDerivedStateFromProps(E,d.__s))),y=d.props,m=d.state,d.__v=e,h)v&&M.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),v&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else {if(v&&M.getDerivedStateFromProps==null&&E!==y&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(E,T),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(E,d.__s,T)===!1||e.__v==i.__v)){for(e.__v!=i.__v&&(d.props=E,d.state=d.__s,d.__d=!1),e.__e=i.__e,e.__k=i.__k,e.__k.some(function($){$&&($.__=e);}),L=0;L<d._sb.length;L++)d.__h.push(d._sb[L]);d._sb=[],d.__h.length&&a.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(E,d.__s,T),v&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(y,m,_);});}if(d.context=T,d.props=E,d.__P=t,d.__e=!1,P=q.__r,R=0,v){for(d.state=d.__s,d.__d=!1,P&&P(e),u=d.render(d.props,d.state,d.context),g=0;g<d._sb.length;g++)d.__h.push(d._sb[g]);d._sb=[];}else do d.__d=!1,P&&P(e),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++R<25);d.state=d.__s,d.getChildContext!=null&&(s=vt(vt({},s),d.getChildContext())),v&&!h&&d.getSnapshotBeforeUpdate!=null&&(_=d.getSnapshotBeforeUpdate(y,m)),o=ca(t,Wi(k=u!=null&&u.type===fe&&u.key==null?u.props.children:u)?k:[k],e,i,s,n,r,a,o,l,c),d.base=e.__e,e.__u&=-161,d.__h.length&&a.push(d),S&&(d.__E=d.__=null);}catch($){if(e.__v=null,l||r!=null)if($.then){for(e.__u|=l?160:128;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;r[r.indexOf(o)]=null,e.__e=o;}else for(A=r.length;A--;)Fs(r[A]);else e.__e=i.__e,e.__k=i.__k;q.__e($,e,i);}else r==null&&e.__v==i.__v?(e.__k=i.__k,e.__e=i.__e):o=e.__e=Vc(i.__e,e,i,s,n,r,a,l,c);return (u=q.diffed)&&u(e),128&e.__u?void 0:o}
19function ua(t,e,i){for(var s=0;s<i.length;s++)Hs(i[s],i[++s],i[++s]);q.__c&&q.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n);});}catch(r){q.__e(r,n.__v);}});}function Vc(t,e,i,s,n,r,a,o,l){var c,u,d,h,y,m,_,S=i.props,E=e.props,v=e.type;if(v=="svg"?n="http://www.w3.org/2000/svg":v=="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),r!=null){for(c=0;c<r.length;c++)if((y=r[c])&&"setAttribute"in y==!!v&&(v?y.localName==v:y.nodeType==3)){t=y,r[c]=null;break}}if(t==null){if(v==null)return document.createTextNode(E);t=document.createElementNS(n,v,E.is&&E),o&&(q.__m&&q.__m(e,r),o=!1),r=null;}if(v===null)S===E||o&&t.data===E||(t.data=E);else {if(r=r&&Vi.call(t.childNodes),S=i.props||ci,!o&&r!=null)for(S={},c=0;c<t.attributes.length;c++)S[(y=t.attributes[c]).name]=y.value;for(c in S)if(y=S[c],c!="children"){if(c=="dangerouslySetInnerHTML")d=y;else if(!(c in E)){if(c=="value"&&"defaultValue"in E||c=="checked"&&"defaultChecked"in E)continue;zi(t,c,null,y,n);}}for(c in E)y=E[c],c=="children"?h=y:c=="dangerouslySetInnerHTML"?u=y:c=="value"?m=y:c=="checked"?_=y:o&&typeof y!="function"||S[c]===y||zi(t,c,y,S[c],n);if(u)o||d&&(u.__html===d.__html||u.__html===t.innerHTML)||(t.innerHTML=u.__html),e.__k=[];else if(d&&(t.innerHTML=""),ca(t,Wi(h)?h:[h],e,i,s,v=="foreignObject"?"http://www.w3.org/1999/xhtml":n,r,a,r?r[0]:i.__k&&Gt(i,0),o,l),r!=null)for(c=r.length;c--;)Fs(r[c]);o||(c="value",v=="progress"&&m==null?t.removeAttribute("value"):m!==void 0&&(m!==t[c]||v=="progress"&&!m||v=="option"&&m!==S[c])&&zi(t,c,m,S[c],n),c="checked",_!==void 0&&_!==t[c]&&zi(t,c,_,S[c],n));}return t}function Hs(t,e,i){try{if(typeof t=="function"){var s=typeof t.__u=="function";s&&t.__u(),s&&e==null||(t.__u=t(e));}else t.current=e;}catch(n){q.__e(n,i);}}function fa(t,e,i){var s,n;if(q.unmount&&q.unmount(t),(s=t.ref)&&(s.current&&s.current!==t.__e||Hs(s,null,e)),(s=t.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount();}catch(r){q.__e(r,e);}s.base=s.__P=null;}if(s=t.__k)for(n=0;n<s.length;n++)s[n]&&fa(s[n],e,i||typeof t.type!="function");i||Fs(t.__e),t.__c=t.__=t.__e=void 0;}function Gc(t,e,i){return this.constructor(t,i)}function zs(t,e,i){var s,n,r,a;e==document&&(e=document.documentElement),q.__&&q.__(t,e),n=(s=typeof i=="function")?null:e.__k,r=[],a=[],Rs(e,t=(!s&&i||e).__k=di(fe,null,[t]),n||ci,ci,e.namespaceURI,!s&&i?[i]:n?null:e.firstChild?Vi.call(e.childNodes):null,r,!s&&i?i:n?n.__e:e.firstChild,s,a),ua(r,t,a);}function Wt(t,e){var i={__c:e="__cC"+aa++,__:t,Consumer:function(s,n){return s.children(n)},Provider:function(s){var n,r;return this.getChildContext||(n=new Set,(r={})[e]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null;},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&n.forEach(function(o){o.__e=!0,Ns(o);});},this.sub=function(a){n.add(a);var o=a.componentWillUnmount;a.componentWillUnmount=function(){n&&n.delete(a),o&&o.call(a);};}),s.children}};return i.Provider.__=i.Consumer.contextType=i}Vi=oa.slice,q={__e:function(t,e,i,s){for(var n,r,a;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(t)),a=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(t,s||{}),a=n.__d),a)return n.__E=n}catch(o){t=o;}throw t}},sa=0,Gi=function(t){return t!=null&&t.constructor==null},ke.prototype.setState=function(t,e){var i;i=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=vt({},this.state),typeof t=="function"&&(t=t(vt({},i),this.props)),t&&vt(i,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ns(this));},ke.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ns(this));},ke.prototype.render=fe,It=[],na=typeof Promise=="function"?Promise.prototype.then.bind(Prom
vendor: 1,262 bytes, line 19
19ise.resolve()):setTimeout,Ps=function(t,e){return t.__v.__b-e.__v.__b},Bi.__r=0,ra=/(PointerCapture)$|Capture$/i,ks=0,Os=ia(!1),Ds=ia(!0),aa=0;var qt,oe,$s,pa,Bs=0,Ea=[],pe=q,ha=pe.__b,ma=pe.__r,ga=pe.diffed,va=pe.__c,ya=pe.unmount,ba=pe.__;function Ki(t,e){pe.__h&&pe.__h(oe,t,Bs||e),Bs=0;var i=oe.__H||(oe.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function yt(t){return Bs=1,wa(Ta,t)}function wa(t,e,i){var s=Ki(qt++,2);if(s.t=t,!s.__c&&(s.__=[Ta(void 0,e),function(o){var l=s.__N?s.__N[0]:s.__[0],c=s.t(l,o);l!==c&&(s.__N=[c,s.__[1]],s.__c.setState({}));}],s.__c=oe,!oe.u)){var n=function(o,l,c){if(!s.__c.__H)return !0;var u=s.__c.__H.__.filter(function(h){return !!h.__c});if(u.every(function(h){return !h.__N}))return !r||r.call(this,o,l,c);var d=s.__c.props!==o;return u.forEach(function(h){if(h.__N){var y=h.__[0];h.__=h.__N,h.__N=void 0,y!==h.__[0]&&(d=!0);}}),r&&r.call(this,o,l,c)||d};oe.u=!0;var r=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(o,l,c){if(this.__e){var u=r;r=void 0,n(o,l,c),r=u;}a&&a.call(this,o,l,c);},oe.shouldComponentUpdate=n;}return s.__N||s.__}function Ee(t,e){var i=Ki(qt++,3);!pe.__s&&Sa(i.__H,e)&&(i.__=t,i.i=e,oe.__H.__h.push(i));}function Ui(t,e){var i=Ki(qt++,7);
19return Sa(i.__H,e)&&(i.__=t(),i.__H=e,i.__h=t),i.__}function fi(t){var e=oe.context[t.__c],i=Ki(qt++,9);return i.c=t,e?(i.__==null&&(i.__=!0,e.sub(oe)),e.props.value):t.__}function Wc(){for(var t;t=Ea.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(qi),t.__H.__h.forEach(Vs),t.__H.__h=[];}catch(e){t.__H.__h=[],pe.__e(e,t.__v);}}pe.__b=function(t){oe=null,ha&&ha(t);},pe.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),ba&&ba(t,e);},pe.__r=function(t){ma&&ma(t),qt=0;var e=(oe=t.__c).__H;e&&($s===oe?(e.__h=[],oe.__h=[],e.__.forEach(function(i){i.__N&&(i.__=i.__N),i.i=i.__N=void 0;})):(e.__h.forEach(qi),e.__h.forEach(Vs),e.__h=[],qt=0)),$s=oe;},pe.diffed=function(t){ga&&ga(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ea.push(e)!==1&&pa===pe.requestAnimationFrame||((pa=pe.requestAnimationFrame)||qc)(Wc)),e.__H.__.forEach(function(i){i.i&&(i.__H=i.i),i.i=void 0;})),$s=oe=null;},pe.__c=function(t,e){e.some(function(i){try{i.__h.forEach(qi),i.__h=i.__h.filter(function(s){return !s.__||Vs(s)});}catch(s){e.some(function(n){n.__h&&(n.__h=[]);}),e=[],pe.__e(s,i.__v);}}),va&&va(t,e);},pe.unmount=function(t){ya&&ya(t);var e,i=t.__c;i&&i.__H&&(i.__H.__.forEach(function(s){try{qi(s);}catch(n){e=n;}}),i.__H=void 0,e&&pe.__e(e,i.__v));};var _a=typeof requestAnimationFrame=="function";function qc(t){var e,i=function(){clearTimeout(s),_a&&cancelAnimationFrame(e),setTimeout(t);},s=setTimeout(i,100);_a&&(e=requestAnimationFrame(i));}function qi(t){var e=oe,i=t.__c;typeof i=="function"&&(t.__c=void 0,i()),oe=e;}function Vs(t){var e=oe;t.__c=t.__(),oe=e;}function Sa(t,e){return !t||t.length!==e.length||e.some(function(i,s){return i!==t[s]})}function Ta(t,e){return typeof e=="function"?e(t):e}function xa(t){var e,i,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=xa(t[e]))&&(s&&(s+=" "),s+=i);}else for(i in t)t[i]&&(s&&(s+=" "),s+=i);return s}function Uc(){for(var t,e,i=0,s="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=xa(t))&&(s&&(s+=" "),s+=e);return s}var ze=Uc;var Yc=Symbol.for("preact-signals");function ji(){if(bt>1){bt--;return}let t,e=!1;for(;pi!==void 0;){let i=pi;for(pi=void 0,Gs++;i!==void 0;){let s=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&Ia(i))try{i.c();}catch(n){e||(t=n,e=!0);}i=s;}}if(Gs=0,bt--,e)throw t}function Lt(t){if(bt>0)return t();bt++;try{return t()}finally{ji();}}var se,pi;var bt=0,Gs=0,Yi=0;function Ca(t){if(se===void 0)return;let e=t.n;if(e===void 0||e.t!==se)return e={i:0,S:t,p:se.s,n:void 0,t:se,e:void 0,x:void 0,r:e},se.s!==void 0&&(se.s.n=e),se.s=e,t.n=e,32&se.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=se.s,e.n=void 0,se.s.n=e,se.s=e),e}function he(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0;}he.prototype.brand=Yc;he.prototype.h=function(){return !0};he.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t);};he.prototype.U=function(t){if(this.t!==void 0){let e=t.e,i=t.x;e!==void 0&&(e.x=i,t.e=void 0),i!==void 0&&(i.e=e,t.x=void 0),t===this.t&&(this.t=i);}};he.prototype.subscribe=function(t){return Ut(()=>{let e=this.value,i=se;se=void 0;try{t(e);}finally{se=i;}})};he.prototype.valueOf=function(){return this.value};he.prototype.toString=function(){return this.value+""};he.prototype.toJSON=function(){return this.value};he.prototype.peek=function(){let t=se;se=void 0;try{return this.value}finally{se=t;}};Object.defineProperty(he.prototype,"value",{get(){let t=Ca(this);return t!==void 0&&(t.i=this.i),this.v},set(t){if(t!==this.v){if(Gs>100)throw new Error("Cycle detected");this.v=t,this.i++,Yi++,bt++;try{for(let e=this.t;e!==void 0;e=e.x)e.t.N();}finally{ji();}}}});function ge(t){return new he(t)}function Ia(t){for(let e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return !0;return !1}function La(t){for(let e=t.s;e!==void 0;e=e.n){let i=e.S.n;if(i!==void 0&&(e.r=i),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function Ma(t){let e,i=t.s;for(;i!==void 0;){let s=i.p;i.i===-1?(i.S.U(i),s!==void 0&&(s.n=i.n),i.n!==void 0&&(i.n.p=s)):e=i,i.S.n=i.r,i.r!==void 0&&(i.r=void 0),i=s;}t.s=e;}function Kt(t){he.call(this,void 0),this.x=t,this.s=void 0,this.g=Yi-1,this.f=4;}(Kt.prototype=new he).h=function(){if(this.f&=-3,1&this.f)return !1;
19if((36&this.f)==32||(this.f&=-5,this.g===Yi))return !0;if(this.g=Yi,this.f|=1,this.i>0&&!Ia(this))return this.f&=-2,!0;let t=se;try{La(this),se=this;let e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++);}catch(e){this.v=e,this.f|=16,this.i++;}return se=t,Ma(this),this.f&=-2,!0};Kt.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(let e=this.s;e!==void 0;e=e.n)e.S.S(e);}he.prototype.S.call(this,t);};Kt.prototype.U=function(t){if(this.t!==void 0&&(he.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(let e=this.s;e!==void 0;e=e.n)e.S.U(e);}};Kt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let t=this.t;t!==void 0;t=t.x)t.t.N();}};Object.defineProperty(Kt.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");let t=Ca(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function Xi(t){return new Kt(t)}function Aa(t){let e=t.u;if(t.u=void 0,typeof e=="function"){bt++;let i=se;se=void 0;try{e();}catch(s){throw t.f&=-2,t.f|=8,Ws(t),s}finally{se=i,ji();}}}function Ws(t){for(let e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Aa(t);}function jc(t){if(se!==this)throw new Error("Out-of-order effect");Ma(this),se=t,this.f&=-2,8&this.f&&Ws(this),ji();}function hi(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32;}hi.prototype.c=function(){let t=this.S();try{if(8&this.f||this.x===void 0)return;let e=this.x();typeof e=="function"&&(this.u=e);}finally{t();}};hi.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Aa(this),La(this),bt++;let t=se;return se=this,jc.bind(this,t)};hi.prototype.N=function(){2&this.f||(this.f|=2,this.o=pi,pi=this);};hi.prototype.d=function(){this.f|=8,1&this.f||Ws(this);};function Ut(t){let e=new hi(t);try{e.c();}catch(i){throw e.d(),i}return e.d.bind(e)}function Yt(t,e){q[t]=e.bind(null,q[t]||(()=>{}));}var qs;function Qi(t){qs&&qs(),qs=t&&t.S();}function Pa({data:t}){let e=Zc(t);e.value=t;let i=Ui(()=>{let s=this,n=this.__v;for(;n=n.__;)if(n.__c){n.__c.__$f|=4;break}let r=Xi(function(){let o=e.value.value;return o===0?0:o===!0?"":o||""}),a=Xi(()=>{var o;return Gi(r.value)||((o=this.base)==null?void 0:o.nodeType)!==3});return this.__$u.c=()=>{var o;!Gi(i.peek())&&((o=this.base)==null?void 0:o.nodeType)===3?this.base.data=i.peek():(this.__$f|=1,this.setState({}));},Ut(function(){mi||(mi=this.N),this.N=Da,a.value&&s.base&&(s.base.data=r.value);}),r},[]);return i.value}Pa.displayName="_st";Object.defineProperties(he.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Pa},props:{configurable:!0,get(){return {data:this}}},__b:{configurable:!0,value:1}});Yt("__b",(t,e)=>{if(typeof e.type=="string"){let i,s=e.props;for(let n in s){if(n==="children")continue;let r=s[n];r instanceof he&&(i||(e.__np=i={}),i[n]=r,s[n]=r.peek());}}t(e);});Yt("__r",(t,e)=>{Qi();let i,s=e.__c;s&&(s.__$f&=-2,i=s.__$u,i===void 0&&(s.__$u=i=function(n){let r;return Ut(function(){r=this;}),r.c=()=>{s.__$f|=1,s.setState({});},r}())),Qi(i),t(e);});Yt("__e",(t,e,i,s)=>{Qi(),t(e,i,s);});Yt("diffed",(t,e)=>{Qi();let i;if(typeof e.type=="string"&&(i=e.__e)){let s=e.__np,n=e.props;if(s){let r=i.U;if(r)for(let a in r){let o=r[a];o!==void 0&&!(a in s)&&(o.d(),r[a]=void 0);}else r={},i.U=r;for(let a in s){let o=r[a],l=s[a];o===void 0?(o=Qc(i,a,l,n),r[a]=o):o.o(l,n);}}}t(e);});function Qc(t,e,i,s){let n=e in t&&t.ownerSVGElement===void 0,r=ge(i);return {o:(a,o)=>{r.value=a,s=o;},d:Ut(function(){mi||(mi=this.N),this.N=Da;let a=r.value.value;s[e]!==a&&(s[e]=a,n?t[e]=a:a?t.setAttribute(e,a):t.removeAttribute(e));})}}Yt("unmount",(t,e)=>{if(typeof e.type=="string"){let i=e.__e;if(i){let s=i.U;if(s){i.U=void 0;for(let n in s){let r=s[n];r&&r.d();}}}}else {let i=e.__c;if(i){let s=i.__$u;s&&(i.__$u=void 0,s.d());}}t(e);});Yt("__h",(t,e,i,s)=>{(s<3||s===9)&&(e.__$f|=2),t(e,i,s);});ke.prototype.shouldComponentUpdate=function(t,e){let i=this.__$u;if(!(i&&i.s!==void 0||4&this.__$f)||3&this.__$f)return !0;for(let s in e)return !0;for(let s in t)if(s!=="__source"&&t[s]!==this.props[s])return !0;for(let s in this.props)if(!(s in t))return !0;return !1};function Zc(t){return Ui(()=>ge(t),[])}var mi;var Oa=[];var Jc=t=>{queueMicrotask(()=>{queueMicrotask(t);});};function ed(){Lt(()=>{let t;for(;t=Oa.shift();)mi.call(t);});}function Da(){Oa.push(this)===1&&(q.requestAnimationFrame||Jc)(ed);}var _t=ge([]),Ae=ge(""),Ie=ge(1),Fe=ge(0),jt=ge(0),ot=ge([]),Ue=ge({action:"",minLength:3,resultsSize:4}),Us=new Map,td=(t,e)=>
19{Lt(()=>{t.data&&(t.data.length===0?Ys():ot.value.length>0&&!e?_t.value=Array.from(new Map([..._t.value,...t.data].map(i=>[i.id,i])).values()):_t.value=t.data,Fe.value=t.totalPages,jt.value=t.totalCount);});},Mt=async(t=!1)=>{let e=new URLSearchParams({fulltext:Ae.value,resultsOffset:Ue.value.resultsSize*(Ie.value-1)}).toString(),i=`${Ae.value}-${Ie.value}`,s;Us.has(i)?s=Us.get(i):(s=await(await fetch(`${Ue.value.action}?${e}`)).json(),Us.set(i,s)),td(s,t);},Ys=()=>{_t.value=[],Ie.value=1,Fe.value=0,jt.value=0;};function sd(t,e){for(var i in e)t[i]=e[i];return t}function Na(t,e){for(var i in t)if(i!=="__source"&&!(i in e))return !0;for(var s in e)if(s!=="__source"&&t[s]!==e[s])return !0;return !1}function ka(t,e){this.props=t,this.context=e;}(ka.prototype=new ke).isPureReactComponent=!0,ka.prototype.shouldComponentUpdate=function(t,e){return Na(this.props,t)||Na(this.state,e)};var Fa=q.__b;q.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Fa&&Fa(t);};var nd=q.__e;q.__e=function(t,e,i,s){if(t.then){for(var n,r=e;r=r.__;)if((n=r.__c)&&n.__c)return e.__e==null&&(e.__e=i.__e,e.__k=i.__k),n.__c(t,e)}nd(t,e,i,s);};var Ra=q.unmount;function Ga(t,e,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(s){typeof s.__c=="function"&&s.__c();}),t.__c.__H=null),(t=sd({},t)).__c!=null&&(t.__c.__P===i&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(s){return Ga(s,e,i)})),t}function Wa(t,e,i){return t&&i&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(s){return Wa(s,e,i)}),t.__c&&t.__c.__P===e&&(t.__e&&i.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=i)),t}function js(){this.__u=0,this.o=null,this.__b=null;}function qa(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Zi(){this.i=null,this.l=null;}q.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Ra&&Ra(t);},(js.prototype=new ke).__c=function(t,e){var i=e.__c,s=this;s.o==null&&(s.o=[]),s.o.push(i);var n=qa(s.__v),r=!1,a=function(){r||(r=!0,i.__R=null,n?n(o):o());};i.__R=a;var o=function(){if(!--s.__u){if(s.state.__a){var l=s.state.__a;s.__v.__k[0]=Wa(l,l.__c.__P,l.__c.__O);}var c;for(s.setState({__a:s.__b=null});c=s.o.pop();)c.forceUpdate();}};s.__u++||32&e.__u||s.setState({__a:s.__b=s.__v.__k[0]}),t.then(a,a);},js.prototype.componentWillUnmount=function(){this.o=[];},js.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var i=document.createElement("div"),s=this.__v.__k[0].__c;this.__v.__k[0]=Ga(this.__b,i,s.__O=s.__P);}this.__b=null;}var n=e.__a&&di(fe,null,t.fallback);return n&&(n.__u&=-33),[di(fe,null,e.__a?null:t.children),n]};var Ha=function(t,e,i){if(++i[1]===i[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(i=t.i;i;){for(;i.length>3;)i.pop()();if(i[1]<i[0])break;t.i=i=i[2];}};(Zi.prototype=new ke).__a=function(t){var e=this,i=qa(e.__v),s=e.l.get(t);return s[0]++,function(n){var r=function(){e.props.revealOrder?(s.push(n),Ha(e,t,s)):n();};i?i(r):r();}},Zi.prototype.render=function(t){this.i=null,this.l=new Map;var e=ui(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var i=e.length;i--;)this.l.set(e[i],this.i=[1,0,this.i]);return t.children},Zi.prototype.componentDidUpdate=Zi.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,i){Ha(t,i,e);});};var rd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ad=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,od=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ld=/[A-Z0-9]/g,cd=typeof document<"u",dd=function(t){return (typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};ke.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ke.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]}
19,set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e});}});});var za=q.event;function ud(){}function fd(){return this.cancelBubble}function pd(){return this.defaultPrevented}q.event=function(t){return za&&(t=za(t)),t.persist=ud,t.isPropagationStopped=fd,t.isDefaultPrevented=pd,t.nativeEvent=t};var hd={enumerable:!1,configurable:!0,get:function(){return this.class}},$a=q.vnode;q.vnode=function(t){typeof t.type=="string"&&function(e){var i=e.props,s=e.type,n={},r=s.indexOf("-")===-1;for(var a in i){var o=i[a];if(!(a==="value"&&"defaultValue"in i&&o==null||cd&&a==="children"&&s==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in i&&i.value==null?a="value":a==="download"&&o===!0?o="":l==="translate"&&o==="no"?o=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||s!=="input"&&s!=="textarea"||dd(i.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":od.test(a)&&(a=l):l=a="oninput":r&&ad.test(a)?a=a.replace(ld,"-$&").toLowerCase():o===null&&(o=void 0),l==="oninput"&&n[a=l]&&(a="oninputCapture"),n[a]=o;}}s=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=ui(i.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1;})),s=="select"&&n.defaultValue!=null&&(n.value=ui(i.children).forEach(function(c){c.props.selected=n.multiple?n.defaultValue.indexOf(c.props.value)!=-1:n.defaultValue==c.props.value;})),i.class&&!i.className?(n.class=i.class,Object.defineProperty(n,"className",hd)):(i.className&&!i.class||i.class&&i.className)&&(n.class=n.className=i.className),e.props=n;}(t),t.$$typeof=rd,$a&&$a(t);};var Ba=q.__r;q.__r=function(t){Ba&&Ba(t),t.__c;};var Va=q.diffed;q.diffed=function(t){Va&&Va(t);var e=t.props,i=t.__e;i!=null&&t.type==="textarea"&&"value"in e&&e.value!==i.value&&(i.value=e.value==null?"":e.value);};var md=0;function D(t,e,i,s,n,r){e||(e={});var a,o,l=e;if("ref"in l)for(o in l={},e)o=="ref"?a=e[o]:l[o]=e[o];var c={type:t,props:l,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--md,__i:-1,__u:0,__source:n,__self:r};if(typeof t=="function"&&(a=t.defaultProps))for(o in a)l[o]===void 0&&(l[o]=a[o]);return q.vnode&&q.vnode(c),c}var Ua=Wt({});function Ya({children:t,dataset:e}){return D(Ua.Provider,{value:e,children:t})}function Xt(){return fi(Ua)}var ja=Wt(null);function Xa({children:t,dictionary:e}){return D(ja.Provider,{value:e,children:t})}function $e(){let t=fi(ja);if(!t)throw new Error("DictionaryContext is not provided");function e(i,s){let n=t?.[i];if(typeof n=="string"&&/\{.+?\}/.test(n)){if(!s)throw new Error(`Data must be provided for interpolation with key: ${i}`);let a=[];return n.split(/(\{.+?\})/).forEach(l=>{let c=l.match(/\{(.+?)\}/);if(c){let u=c[1],d=s[u];typeof d=="string"||typeof d=="number"||d?a.push(d):a.push(l);}else a.push(l);}),D(fe,{children:a})}return n}return e}function Qa(t){let e=document.cookie.match(new RegExp("(?:^|; )"+t.replace(/([.$?*|{}()\[\]\\\/+^])/g,"\\$1")+"=([^;]*)"));return e?.[1]?decodeURIComponent(e[1]):void 0}function Za(t,e,i=1){let s=i?new Date(Date.now()+i*365*24*60*60*1e3).toUTCString():"";document.cookie=`${encodeURIComponent(t)}=${encodeURIComponent(e)}${s?`; expires=${s}`:""}; path=/`;}function lt(t,e=!0){window.addEventListener("resize",Zt(()=>{(typeof e=="boolean"&&e||typeof e=="function"&&e())&&t();},50));}function Qt(t,e,i,s){let n=r=>{let a=r.target;!t.contains(a)&&(t.classList.contains(e)||t.parentElement?.classList.contains(e))&&i();};document.addEventListener("click",n),s&<(()=>document.removeEventListener("click",n),()=>window.innerWidth<s);}function Ye(t,e,i=!1){let s=n=>e(n);t?.addEventListener("click",s),t&&i&<(()=>t.removeEventListener("click",s));}function Zt(t,e){let i;return (...s)=>{let n=()=>t(...s);clearTimeout(i),i=setTimeout(n,e);}}var gd="[data-cmp]",vd=[];function Xs(t){let e={};for(let[i,s]of Object.entries(t))try{s&&(e[i]=JSON.parse(s));}catch{e[i]=s;}return e}function yd(t,e){let i=t.dataset.cmp?.toLocaleLowerCase(),s=t.firstElementChild,n=e[i]?.default;if(s&&n){let r=Xs(s.dataset);vd.push({name:i,componentRef:s,instance:new n(s,r)});}}
19function Ja(t){document.querySelectorAll(gd).forEach(i=>yd(i,t));}var Jt=()=>typeof window.Granite<"u"&&!!window.Granite?.author?window.Granite:null;function Qs(t){document.startViewTransition?document.startViewTransition(t):t();}var wd="[data-preact]",to=async t=>{let e=document.querySelectorAll(wd),i=await(await Promise.resolve().then(()=>(Js(),eo))).getDictionary();e.forEach(s=>{let n=s.dataset.preact,r=Xs(s?.dataset),a=t[n]?.default;a&&zs(D(Ya,{dataset:r,children:D(Xa,{dictionary:i,children:D(a,{})})}),s);});};Js();var Sd={theme:{screens:{sm:"390px",md:"768px",lg:"1440px",xl:"1920px","max-sm":{raw:"(max-width: 389.5px)",max:"389.5px"},"max-md":{raw:"(max-width: 767.5px)",max:"767.5px"},"max-lg":{raw:"(max-width: 1439.5px)",max:"1439.5px"},"max-xl":{raw:"(max-width: 1919.5px)",max:"1919.5px"}}}},io=Sd;var Td=io.theme?.screens,so=t=>{let e=Td[t],[i,s]=yt(!1);return Ee(()=>{let n=window.matchMedia(`(min-width: ${e})`);s(n.matches);let r=a=>{s(a.matches);};return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[e]),i};var xd=t=>{let[e,i]=yt(()=>new URLSearchParams(window.location.search).get(t));return Ee(()=>{let s=()=>{i(new URLSearchParams(window.location.search).get(t));};return window.addEventListener("popstate",s),()=>window.removeEventListener("popstate",s)},[t]),e},Cd=()=>(e,i)=>{let s=new URLSearchParams(window.location.search);i?s.set(e,i):s.delete(e),window.history.pushState({},"",`${window.location.pathname}${s.size>0?`?${s}`:""}`);},At=t=>{let e=xd(t),i=Cd();return [e,n=>{i(t,n);}]};var Id=()=>{let{groups:t}=Xt();Ee(()=>{t?.length&&(ot.value=t.map(s=>({...s,selected:!1})));},[]);let e=s=>{ot.value=ot.value.map(n=>(n.tag===s.tag&&(n.selected=!n.selected),n));},i=s=>_t.value.filter(n=>n.tags?.includes(s.tag)).length;return D("div",{className:"flex flex-wrap gap-s cmp-searchresult__facets",children:ot.value.map(s=>D("div",{onClick:()=>e(s),className:ze("cmp-searchresult__facet tag items-center flex gap-xs h-xl label2 highlight font-medium capitalize",{"bg-brand text-light selected":s.selected}
19),children:[s.tagName," (",i(s),")",s.selected&&D("span",{className:"icon icon-X text-s font-bold"})]},s.tag))})},no=Id;function gi(t){let{page:e,label:i=e.toString(),className:s,isActive:n}=t,[r,a]=At("page"),o=new URL(window.location.href);o.searchParams.set("page",e.toString());let l=c=>{c.preventDefault(),a(e>1?e.toString():""),Ie.value=e;};return D("a",{href:o.toString(),onClick:l,className:ze("flex body3-s text-dark-200 font-bold rounded-full w-l h-l items-center justify-center",s,{"bg-light-200":n}),children:i})}function ro(){return D("span",{className:"mx-s",children:"..."})}var Ld=()=>{let[t,e]=At("page"),i=Fe.value,s=Ie.value,n=so("md");Ee(()=>{let a=Number(t);a>0&&!isNaN(a)&&(Ie.value=a);},[]),Ee(()=>{Fe.value>0&&Ie.value>Fe.value&&(Ie.value=1,e());},[Fe.value,Ie.value]);let r=()=>{let a=n?4:2,o=Math.floor(a/2),l=Math.max(1,s-o),c=Math.min(i,s+o),u=c-l+1;u<a&&(l>2?l=Math.max(2,l-(a-u)):c<i-1&&(c=Math.min(i-1,c+(a-u))));let d=[];l>1&&(d.push(D(gi,{page:1},1)),d.push(D(ro,{},"ellipsis-start")));for(let h=l;h<=c;h++)d.push(D(gi,{page:h,isActive:h===s},h));return c<i-1&&(d.push(D(ro,{},"ellipsis-end")),d.push(D(gi,{page:i},i))),d};return D("div",{className:"flex items-center justify-center mt-l md:mt-4xl cmp-pagination",children:[s>1&&D(gi,{page:s-1,label:D("span",{className:"icon icon-CaretLeft text-m"}),className:"mr-s"}),r(),s<i&&D(gi,{page:s+1,label:D("span",{className:"icon icon-CaretRight text-m"}),className:"ml-s"})]})},ao=Ld;var Md=()=>{let t=$e(),e=Ae.value.length>=Ue.value.minLength,i=t("search_results.result_info",{count:jt.value,search:Ae.value});return D(fe,{children:e&&D("p",{className:"py-s mt-s text-dark-100 body1 pl-s cmp-searchresult__info",dangerouslySetInnerHTML:{__html:i?.props.children.join("")}})})},oo=Md;var Ad=t=>{let{items:e}=t;return D("ul",{className:"flex gap-xs cmp-searchresult__breadcrumb",children:e.map((i,s)=>D("li",{className:"text-dark-100 capitalize gap-xs flex items-center",children:[D("a",{href:i.link.url,className:"body3-m hover:underline",children:i.title}),s<e.length-1&&D("span",{className:"icon icon-CaretRight"})]},i.link.url))})},lo=Ad;var en=()=>_t.value.filter(t=>ot.value.some(i=>i.selected)?ot.value.some(i=>i.selected&&i.tag!=="misc"&&t.tags?.includes(i.tag)):!0),Pd=()=>{let t=$e(),e=en();return D("div",{className:"mt-m md:mt-4xl flex flex-col gap-m cmp-searchresult__list",children:e.map(i=>D("a",{href:i.link.url,className:ze("flex gap-s md:gap-9xl justify-between items-center border-b border-light-200 pb-m last:border-none cmp-searchresult__item",{highlight:!i.productDetails}),children:[D("div",{children:[i.image&&D("img",{src:i.image,alt:i.title,className:"hidden cmp-searchresult__image"}),D("div",{className:"cmp-searchresult__content",children:[i.subtitle&&D("small",{className:"cmp-searchresult__subtitle hidden",children:i.subtitle}),D("h4",{className:"mb-s cmp-searchresult__title",children:i.title}),i.description&&D("p",{className:"mb-m line-clamp-2 cmp-searchresult__description",children:i.description}),D(lo,{items:i.breadcrumb}),D("div",{className:"button btn--secondary btn--small hidden",children:D("button",{type:"button",className:"cmp-button cmp-searchresult__link",children:[D("span",{className:"cmp-button__text",children:t("search_results.read_more")}),D("span",{className:"icon icon-ArrowRight"})]})})]})]}),D("span",{className:"icon icon-CaretRight text-brand text-m"})]},i.id))})},co=Pd;var Od=()=>{let t=$e(),[e,i]=At("q"),s=n=>{let r=n.target.value;Ae.value=r,i(r),Ue.value.action&&Ae.value.length>=Ue.value.minLength?Mt(!0):Ys();};return D("div",{className:"cmp-search__field",children:[D("span",{className:"cmp-search__icon","data-cmp-hook-search":"icon"}),D("span",{className:"cmp-search__loading-indicator","data-cmp-hook-search":"loadingIndicator"}),D("input",{className:"cmp-search__input",value:Ae.value,onInput:s,type:"text",name:"fulltext",placeholder:t("search_results.input_placeholder")}),D("button",{className:ze("cmp-search__clear",{show:Ae.value.length>0}),"data-cmp-hook-search":"clear",onClick:()=>{Ae.value="",i();},"aria-label":t("search_results.clear"),children:D("span",{className:"cmp-search__clear-icon"})})]})},uo=Od;var Dd=()=>{let t=$e(),e=async()=>{Ie.value+=1,Mt();},i=en().length>=Math.floor(jt.value/Fe.value);return D(fe,{children:i&&D("div",{className:"cmp-searchresult__load-more button btn--primary flex justify-center mt-l",children:D("button",{className:"cmp-button",onClick:e,children:t("search_results.load_more")})})})},fo=Dd;var Nd=()=>{let t=Xt(),[e]=At("q"),i=t.groups?.length>0,s=Fe.value>1&&!i,n=Fe.value>1&&Ie.value<Fe.value&&i;return Ee(()=>{Ue.value=t,Ae.value=e??"",Ue.value.action&&Ae.value.length>=Ue.value.minLength&&Mt();},[]),Ee(()=>{Mt();},[Ie.value]),D(fe,{children:[!t.hideSearchField&&D(uo,{}),D(oo,{}),!s&&D(no,{}),D(co,{}),s&&D(ao,{}),n&&D(fo,{})]})},kd=Nd;var cn={};re(cn,{default:()=>nu});var $o=Oc(zo());var ss=ge(""),rs=ge(""),yi=ge([]),on=ge([]),ns=ge(!1),ln=async(t,e)=>{if(ss.value&&t)try{ns.value=!0;let i=e?`&prj=${e}`:"",n=await(await fetch(`${ss.value}?ln=${t}${i}`)).text();if(ns.value=!1,n){let r=$o.default.xml2js(n);r&&Lt(()=>{if(yi.value.length===0){let o=r?.elements[0]?.elements[0];o&&o?.name==="sprachen"&&o?.elements?.length>0&&(yi.value=o.elements);}let a=r?.elements[0]?.elements[1];a&&a?.name==="datenblaetter"&&a?.elements?.length>0&&(on.value=a.elements),rs.value=t;});}}
19catch(i){console.error("Chemical Check Loading Error",i);}};var tu=()=>{let t=$e();return D("ul",{className:"cmp-chemicalcheck__downloads breakout",children:on.value.map((e,i)=>D("li",{className:"cmp-chemicalcheck__download",children:[D("div",{className:"cmp-chemicalcheck__download__title",children:[D("i",{className:"icon-Swirl-Pdf"})," ",e.attributes.text]}),D("div",{className:"cmp-chemicalcheck__download__cta",children:D("a",{className:"cmp-chemicalcheck__download__cta-link",href:e.attributes.href,title:e.attributes.text,alt:e.attributes.text,target:"_blank",children:[D("i",{className:"icon-Swirl-Download"})," ",t("chemical_check.download")]})})]},i))})},Bo=tu;var iu=({onChange:t})=>{let e=$e(),[i,s]=yt(!1),[n,r]=yt(null),a=yi.value.sort((o,l)=>o.attributes.text>l.attributes.text?1:-1).find(o=>o.attributes.text===rs.value);return D("div",{className:"cmp-form cmp-chemicalcheck__languages "+(ns.value?"loading":""),children:D("fieldset",{className:"cmp-form-options cmp-form-options--drop-down",children:[D("label",{className:"cmp-form-options__label",children:e("chemical_check.select_your_language")}),D("div",{className:ze("choices",{"is-open":i}),"data-type":"select-one",role:"listbox","aria-expanded":"false",children:D("div",{className:"choices__inner",children:[D("select",{className:"cmp-form-options__field cmp-form-options__field--drop-down"}),D("div",{className:"choices__list choices__list--single",onClick:()=>s(!i),children:D("div",{className:"choices__item choices__item--selectable","data-item":!0,"data-value":a?.attributes.text,children:e(`chemical_check.${a?.attributes.text}`)})}),D("div",{className:ze("choices__list choices__list--dropdown",{"is-active":i}),"aria-expanded":i?"true":"false",children:D("div",{className:"choices__list",role:"listbox",children:yi.value.sort((o,l)=>o.attributes.text>l.attributes.text?1:-1).map((o,l)=>D("div",{className:ze("choices__item choices__item--selectable choices__item--choice",{"is-selected":o.attributes.text===rs.value,"is-highlighted":l===n}),onClick:()=>{t(o.attributes.text),s(!i);},onMouseEnter:()=>r(l),onMouseLeave:()=>r(null),"data-item":!0,"data-value":o.attributes.text,children:e(`chemical_check.${o.attributes.text}`)},l))})})]})})]})})},Vo=iu;var su=()=>{let{defaultLanguage:t,apiUrl:e,projectId:i}=Xt();return Ee(()=>{ss.value=e,ln(t||"de",i);},[]),D(fe,{children:[D(Vo,{onChange:n=>{ln(n,i);}}),D(Bo,{})]})},nu=su;document.addEventListener("DOMContentLoaded",()=>to(dn));function ru(t,e,i,s){function n(r){if(r.nodeType===Node.TEXT_NODE)return (r.textContent||"").split(/\s+/).map(c=>{if(c.length<e)return c;let u="",d=0;for(;d<c.length;){let h=c.slice(d,d+e);d===0?h.length>i?u+=h.slice(0,i)+"­"+h.slice(i):u+=h:d+e>=c.length&&h.length>s?u+="­"+h.slice(0,h.length-s)+h.slice(h.length-s):u+="­"+h,d+=e;}return u}).join(" ");if(r.nodeType===Node.ELEMENT_NODE){let a=r,o=Array.from(a.childNodes).map(l=>n(l)).join("");return `<${a.tagName.toLowerCase()}${Array.from(a.attributes).map(l=>` ${l.name}="${l.value}"`).join("")}>${o}</${a.tagName.toLowerCase()}>`}return ""}t.nodeType===Node.ELEMENT_NODE&&(t.innerHTML=Array.from(t.childNodes).map(r=>n(r)).join(""));}document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(i=>{let s=window.getComputedStyle(i);if(!s.getPropertyValue("hyphenate-limit-chars")){let r=s.getPropertyValue("--hyphenate-limit-chars");if(r){let[a,o,l]=r.split(" ").map(Number);a&&o&&l&&ru(i,a,o,l);}}});});function Go(t){if(t.nodeType===Node.TEXT_NODE){let e=t.parentNode;if(e?.tagName==="SUP")return;let i=t.nodeValue,s=i?.replace(/(®)/g,"<sup>$1</sup>");if(s!==i&&!au()){let n=document.createElement("span");n.innerHTML=s,e.replaceChild(n,t);}}else t.childNodes.forEach(Go);}function au(){return document.querySelector("form#cq-sites-properties-form.cq-siteadmin-admin-properties")!==null}document.addEventListener("DOMContentLoaded",()=>{Go(document.body);});var qr={};re(qr,{carousel:()=>Tr,embed:()=>Un,filterlist:()=>yn,formcontainer:()=>Er,header:()=>Or,imageinteractive:()=>vr,infoticker:()=>br,lightbox:()=>Nr,options:()=>Wn,recommendation:()=>Vr,search:()=>Sn,sectiongrid:()=>pr,stickynavigation:()=>Hr,tabs:()=>pn,teaserhero:()=>mn,teaseroverlapimage:()=>Wr,teaserpopup:()=>jn,video:()=>En});var pn={};re(pn,{default:()=>fn});var W=class{constructor(e,i){this.el=e,this.parent=e.parentElement,this.props=i,this.init();}findChild(e){return this.parent.querySelector(e)}findChildren(e){return Array.from(this.parent.querySelectorAll(e))}
19async init(){await this.onMount?.(),this.registerEvents?.();}};var ou=".cmp-tabs__tablist",lu=".cmp-tabs__tab",Wo="icon-CaretRight",cu="icon-CaretLeft",qo="cmp-tabs__tab--active",Ko="hidden",un=class extends W{constructor(){super(...arguments);this.isInitiallyOverflowing=!1;}async onMount(){this.list=this.findChild(ou),this.tabs=this.findChildren(lu),this.isInitiallyOverflowing=this.isTabListOverflowing(),this.createCarets(),this.updateCaretVisibility(!0);}registerEvents(){this.tabs.forEach((i,s)=>{i.addEventListener("click",()=>this.onTabClick(s));}),this.list?.addEventListener("scroll",Zt(()=>this.updateCaretVisibility(),50));}createCarets(){let i=document.createElement("span"),s=document.createElement("span");i.addEventListener("click",this.handleCaretEvent.bind(this)),s.addEventListener("click",this.handleCaretEvent.bind(this)),i.classList.add("icon","icon-CaretLeft"),s.classList.add("icon","icon-CaretRight"),this.el.prepend(i),this.el.append(s);}handleCaretEvent(i){let n=i.currentTarget.classList.contains(Wo),r;n?r=this.findLastVisibleTabIndex()+1:r=this.findFirstVisibleTabIndex()-1,r=Math.max(0,Math.min(r,this.tabs.length-1)),this.scrollTabIntoView(r);}onTabClick(i){i<0||i>
19=this.tabs.length||(this.tabs.forEach(s=>s.classList.remove(qo)),this.tabs[i]?.classList.add(qo),this.scrollTabIntoView(i));}scrollTabIntoView(i){this.list?.scroll({left:this.tabs[i-1]?.offsetLeft,behavior:"smooth"}),setTimeout(()=>{requestAnimationFrame(()=>this.updateCaretVisibility());},150);}isTabVisible(i){if(i&&this.list){let s=i.getBoundingClientRect(),n=this.list.getBoundingClientRect(),r=Math.floor(s.left-n.left+this.list.scrollLeft),a=Math.floor(s.right-n.left+this.list.scrollLeft);return r>=this.list.scrollLeft&&a<=this.list.scrollLeft+this.list.clientWidth}return !1}findFirstVisibleTabIndex(){return this.tabs.findIndex(i=>this.isTabVisible(i))}findLastVisibleTabIndex(){for(let i=this.tabs.length-1;i>=0;i--)if(this.isTabVisible(this.tabs[i]))return i;return -1}updateCaretVisibility(i=!1){let s=this.findChild(`.${Wo}`),n=this.findChild(`.${cu}`),r=i?this.isInitiallyOverflowing:!0;n?.classList.toggle(Ko,!r||this.isTabVisible(this.tabs[0])),s?.classList.toggle(Ko,!r||this.isTabVisible(this.tabs[this.tabs.length-1]));}isTabListOverflowing(){return this.tabs.reduce((s,n)=>s+n.offsetWidth,0)>(this.list?.clientWidth||0)}},fn=un;var mn={};re(mn,{default:()=>pu});var du=".video-play",uu=".cmp-teaser__content",fu="fade",hn=class extends W{async onMount(){this.playCTA=this.findChild(du);}registerEvents(){this.playCTA?.addEventListener("click",()=>this.toggleContent());}toggleContent(){this.props.videoContentFade&&this.findChild(uu)?.classList.toggle(fu);}},pu=hn;var yn={};re(yn,{default:()=>bu});var hu=".cmp-filterlist__tag",Uo=".cmp-list__item",mu=".cmp-teaser__content",gu=".load-more",vu=".cmp-list",gn="selected",bi="hidden",yu="visible",vn=class extends W{async onMount(){this.loadMore=this.findChild(gu),this.items=[],this.activeItems=[],this.activeTags=new Set,this.filterTags=this.findChildren(hu),this.visibleItemCount=this.props.loadMoreCount??0,this.setItems(),this.addTagsForEachListItem(),this.props.deepLinking&&this.initTagsFromURL(),this.visibleItemCount>0&&this.toggleActiveItems();}registerEvents(){this.filterTags.forEach(e=>{e.addEventListener("click",()=>{this.handleTagSelection(e),this.props.deepLinking&&this.updateURLWithTags();});}),this.loadMore.addEventListener("click",()=>Qs(()=>this.loadMoreItems()));}loadMoreItems(){let e=this.activeItems.length,i=this.props.loadMoreCount??e;this.visibleItemCount=Math.min(e,this.visibleItemCount+i),this.activeItems.slice(0,this.visibleItemCount).forEach(s=>{s.el.classList.remove(bi);}),this.reorderItemsInDom(),this.toggleLoadMore(this.visibleItemCount<e);}handleTagSelection(e){this.activeTags[e.classList.contains(gn)?"delete":"add"](e.dataset.id),e.classList.toggle(gn),Qs(()=>this.toggleActiveItems());}setItems(){this.findChildren(Uo).forEach(i=>{this.items.push({el:i,tags:JSON.parse(i.dataset.tags??"[]")});}),this.activeItems=[...this.items],this.originalItemsOrder=[...this.items];}addTagsForEachListItem(){this.items.forEach(e=>{let i=document.createElement("div");i.classList.add("cmp-teaser__tags"),e.tags?.forEach(s=>{let n=document.createElement("span");n.classList.add("tag"),n.innerText=s.label,i.append(n);}),e.tags?.length&&e.el.querySelector(mu)?.prepend(i);});}toggleActiveItems(){this.activeItems=this.items.filter(e=>!this.activeTags.size||e.tags?.some(i=>this.activeTags.has(i.id))),this.props.loadMoreCount&&this.props.loadMoreCount>0?this.visibleItemCount=Math.min(this.activeItems.length,this.props.loadMoreCount):this.visibleItemCount=this.activeItems.length,this.items.forEach(e=>e.el.classList.add(bi)),this.activeItems.slice(0,this.visibleItemCount).forEach(e=>e.el.classList.remove(bi)),this.reorderItemsInDom(),this.toggleLoadMore(this.activeItems.length>this.visibleItemCount);}reorderItemsInDom(){let e=this.findChild(vu),s=this.activeTags.size>0&&this.activeTags.size<this.filterTags.length?this.findChildren(Uo):this.originalItemsOrder.map(a=>a.el),n=s.filter(a=>!a.classList.contains(bi)),r=s.filter(a=>a.classList.contains(bi));n.forEach(a=>e.appendChild(a)),r.forEach(a=>e.appendChild(a));}toggleLoadMore(e=!1){this.visibleItemCount>0&&this.loadMore.classList[e?"add":"remove"](yu);}initTagsFromURL(){let i=new URLSearchParams(window.location.search).getAll("tag");
19this.filterTags.forEach(s=>{let n=s.dataset.id?.split("/").pop();i.includes(n)&&(s.classList.add(gn),this.activeTags.add(s.dataset.id));}),this.toggleActiveItems();}updateURLWithTags(){let e=new URL(window.location.href);e.searchParams.delete("tag"),this.activeTags.forEach(i=>{let s=i.split("/").pop();s&&e.searchParams.append("tag",s);}),history.replaceState(null,"",e.toString());}},bu=vn;var En={};re(En,{default:()=>Ou});var _u=".close",Eu=".cmp-overlay__backdrop",Yo="open",jo="overlay",bn=class extends W{constructor(i,s,n){super(s,{});this.trigger=i;this.content=s;this.toggleOverlay=()=>{this.content.classList.toggle(Yo),this.content.classList.contains(Yo)?(this.callbacks.onOpen(),document.body.classList.add(jo),this.overlayPortal(!0)):(this.overlayPortal(),this.callbacks.onClose(),document.body.classList.remove(jo));};this.overlayPortal=(i=!1)=>{i?document.body.appendChild(this.content):this.trigger.parentElement?.parentElement?.appendChild(this.content);};this.callbacks=n;}registerEvents(){this.trigger.addEventListener("click",this.toggleOverlay),this.closeCTA.addEventListener("click",this.toggleOverlay),this.backdrop.addEventListener("click",this.toggleOverlay);}async onMount(){this.closeCTA=this.findChild(_u),this.backdrop=this.findChild(Eu);}},Xo=bn;var wu=".video-play",Su=".video-audio",Tu=".overlay-trigger",xu=".cmp-overlay",Cu=".cmp-overlay__content",Qo=".video-controls",Iu=".cmp-video",Lu="video",Mu="pause",Au="muted",Pu="visible",_n=class extends W{async onMount(){this.playCTA=this.findChild(wu),this.overlayCTA=this.findChild(Tu),this.audioCTA=this.findChild(Su),this.video=this.findChild(Lu),this.overlaying=!1,this.setupOverlay();}registerEvents(){this.playCTA?.addEventListener("click",()=>this.toggleVideoState()),this.audioCTA?.addEventListener("click",()=>this.toggleAudioState()),this.video?.addEventListener("ended",()=>this.resetVideo());}setupOverlay(){this.overlayCTA&&new Xo(this.overlayCTA,this.findChild(xu),{onOpen:()=>this.props.seamless?this.moveVideoAndCTAToOverlay():this.toggleVideoState(),onClose:()=>this.props.seamless?this.moveVideoAndCTABack():this.resetVideo()});}toggleAudioState(){this.video&&(this.video.muted=!this.video.muted,this.audioCTA?.classList.toggle(Au,this.video.muted));}toggleVideoState(){this.video&&(this.props.overlay&&!this.overlaying&&this.overlayCTA?.click(),this.video.paused?this.video.play():this.video.pause(),this.audioCTA?.classList.toggle(Pu,!this.video.paused),this.setVideoState(!this.video.paused));}setVideoState(e){this.playCTA?.classList.toggle(Mu,e);}resetVideo(){this.video&&(this.setVideoState(!1),this.video.load());}moveVideoAndCTAToOverlay(){let e=this.findChild(Cu),i=e?.querySelector(Qo);this.video&&e&&e.insertBefore(this.video,i),this.playCTA&&i&&i.appendChild(this.playCTA),this.overlaying=!0;}moveVideoAndCTABack(){let e=this.findChild(Iu),i=e?.querySelector(Qo);this.video&&e&&e.insertBefore(this.video,i),this.playCTA&&i&&i.prepend(this.playCTA),this.overlaying&&(this.setVideoState(!this.video?.paused),this.overlaying=!1),this.props.overlay&&this.video?.pause();}},Ou=_n;var Sn={};re(Sn,{default:()=>Nu});var Du=".cmp-search__icon",wn=class extends W{async onMount(){this.searchIcon=this.findChild(Du),this.field=this.findChild("input");}registerEvents(){this.searchIcon?.addEventListener("click",()=>this.navigateToSearchResults()),this.field?.addEventListener("keydown",e=>{e.key==="Enter"&&this.navigateToSearchResults();});}navigateToSearchResults(){this.props.searchResultsPath&&this.field&&this.field.value.length>=this.props.cmpMinLength&&(window.location.href=`${this.props.searchResultsPath}?q=${this.field?.value}`);}},Nu=wn;var Wn={};re(Wn,{default:()=>np});var In=function(t,e){return In=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s;}||function(i,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(i[n]=s[n]);},In(t,e)};function hl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");In(t,e);function i(){this.constructor=t;}
19t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i);}var Oe=function(){return Oe=Object.assign||function(e){for(var i,s=1,n=arguments.length;s<n;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);}return e},Oe.apply(this,arguments)};function ku(t,e,i){for(var s=0,n=e.length,r;s<n;s++)(r||!(s in e))&&(r||(r=Array.prototype.slice.call(e,0,s)),r[s]=e[s]);return t.concat(r||Array.prototype.slice.call(e))}var ue={ADD_CHOICE:"ADD_CHOICE",REMOVE_CHOICE:"REMOVE_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM"},Pe={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},Te={TAB_KEY:9,SHIFT_KEY:16,BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},Fu=["fuseOptions","classNames"],Et={Text:"text",SelectOne:"select-one",SelectMultiple:"select-multiple"},Ru=function(t){return {type:ue.ADD_CHOICE,choice:t}},Zo=function(t){return {type:ue.REMOVE_CHOICE,choice:t}},Hu=function(t){return {type:ue.FILTER_CHOICES,results:t}},zu=function(t){return {type:ue.ACTIVATE_CHOICES,active:t}},$u=function(t){return {type:ue.ADD_GROUP,group:t}},Bu=function(t){return {type:ue.ADD_ITEM,item:t}},Jo=function(t){return {type:ue.REMOVE_ITEM,item:t}},as=function(t,e){return {type:ue.HIGHLIGHT_ITEM,item:t,highlighted:e}},Vu=function(t,e){return Math.floor(Math.random()*(e-t)+t)},el=function(t){return Array.from({length:t},function(){return Vu(0,36).toString(36)}).join("")},Gu=function(t,e){var i=t.id||t.name&&"".concat(t.name,"-").concat(el(2))||el(4);return i=i.replace(/(:|\.|\[|\]|,)/g,""),i="".concat(e,"-").concat(i),i},Wu=function(t,e,i){i===void 0&&(i=1);for(var s="".concat(i>0?"next":"previous","ElementSibling"),n=t[s];n;){if(n.matches(e))return n;n=n[s];}return null},qu=function(t,e,i){i===void 0&&(i=1);var s;return i>0?s=e.scrollTop+e.offsetHeight>=t.offsetTop+t.offsetHeight:s=t.offsetTop>=e.scrollTop,s},fs=function(t){if(typeof t!="string"){if(t==null)return "";if(typeof t=="object"){if("raw"in t)return fs(t.raw);if("trusted"in t)return t.trusted}return t}return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/'/g,"'").replace(/"/g,""")},Ku=function(){var t=document.createElement("div");return function(e){t.innerHTML=e.trim();for(var i=t.children[0];t.firstChild;)t.removeChild(t.firstChild);return i}}(),Si=function(t,e){return typeof t=="function"?t(fs(e),e):t},tl=function(t){return typeof t=="function"?t():t},Ot=function(t){if(typeof t=="string")return t;if(typeof t=="object"){if("trusted"in t)return t.trusted;if("raw"in t)return t.raw}return ""},Uu=function(t){if(typeof t=="string")return t;if(typeof t=="object"){if("escaped"in t)return t.escaped;if("trusted"in t)return t.trusted}return ""},Vn=function(t,e){return t?Uu(e):fs(e)},ct=function(t,e,i){t.innerHTML=Vn(e,i);},Yu=function(t,e){var i=t.value,s=t.label,n=s===void 0?i:s,r=e.value,a=e.label,o=a===void 0?r:a;return Ot(n).localeCompare(Ot(o),[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},ju=function(t,e){return t.rank-e.rank},Xu=function(t,e,i){i===void 0&&(i=null);var s=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0});return t.dispatchEvent(s)},Qu=function(t,e){var i=Object.keys(t).sort(),s=Object.keys(e).sort();return i.filter(function(n){return s.indexOf(n)<0})},ps=function(t){return Array.isArray(t)?t:[t]},_i=function(t){return t&&Array.isArray(t)?t.map(function(e){return ".".concat(e)}).join(""):".".concat(t)},j=function(t,e){var i;(i=t.classList).add.apply(i,ps(e));},tt=function(t,e){var i;(i=t.classList).remove.apply(i,ps(e));},Zu=function(t){if(typeof t<"u")try{return JSON.parse(t)}catch{return t}return {}},Ju=function(t,e,i){var s=t.itemEl;s&&(tt(s,i),j(s,e));},ef=function(){function t(e){var i=e.element,s=e.type,n=e.classNames;this.element=i,this.classNames=n,this.type=s,this.isActive=!1;}return t.prototype.show=function(){return j(this.element,this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},t.prototype.hide=function(){return tt(this.element,this.classNames.activeState),this.element.setAttribute("aria-expanded","fal
19se"),this.isActive=!1,this},t}(),il=function(){function t(e){var i=e.element,s=e.type,n=e.classNames,r=e.position;this.element=i,this.classNames=n,this.type=s,this.position=r,this.isOpen=!1,this.isFlipped=!1,this.isDisabled=!1,this.isLoading=!1;}return t.prototype.shouldFlip=function(e,i){var s=!1;return this.position==="auto"?s=this.element.getBoundingClientRect().top-i>=0&&!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches:this.position==="top"&&(s=!0),s},t.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e);},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant");},t.prototype.open=function(e,i){j(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e,i)&&(j(this.element,this.classNames.flippedState),this.isFlipped=!0);},t.prototype.close=function(){tt(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(tt(this.element,this.classNames.flippedState),this.isFlipped=!1);},t.prototype.addFocusState=function(){j(this.element,this.classNames.focusState);},t.prototype.removeFocusState=function(){tt(this.element,this.classNames.focusState);},t.prototype.enable=function(){tt(this.element,this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===Et.SelectOne&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1;},t.prototype.disable=function(){j(this.element,this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===Et.SelectOne&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0;},t.prototype.wrap=function(e){var i=this.element,s=e.parentNode;s&&(e.nextSibling?s.insertBefore(i,e.nextSibling):s.appendChild(i)),i.appendChild(e);},t.prototype.unwrap=function(e){var i=this.element,s=i.parentNode;s&&(s.insertBefore(e,i),s.removeChild(i));},t.prototype.addLoadingState=function(){j(this.element,this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0;},t.prototype.removeLoadingState=function(){tt(this.element,this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1;},t}(),tf=function(){function t(e){var i=e.element,s=e.type,n=e.classNames,r=e.preventPaste;this.element=i,this.type=s,this.classNames=n,this.preventPaste=r,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=i.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this);}return Object.defineProperty(t.prototype,"placeholder",{set:function(e){this.element.placeholder=e;},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e;},enumerable:!1,configurable:!0}),t.prototype.addEventListeners=function(){var e=this.element;e.addEventListener("paste",this._onPaste),e.addEventListener("input",this._onInput,{passive:!0}),e.addEventListener("focus",this._onFocus,{passive:!0}),e.addEventListener("blur",this._onBlur,{passive:!0});},t.prototype.removeEventListeners=function(){var e=this.element;e.removeEventListener("input",this._onInput),e.removeEventListener("paste",this._onPaste),e.removeEventListener("focus",this._onFocus),e.removeEventListener("blur",this._onBlur);},t.prototype.enable=function(){var e=this.element;e.removeAttribute("disabled"),this.isDisabled=!1;},t.prototype.disable=function(){var e=this.element;e.setAttribute("disabled",""),this.isDisabled=!0;},t.prototype.focus=function(){this.isFocussed||this.element.focus();},t.prototype.blur=function(){this.isFocussed&&this.element.blur();},t.prototype.clear=function(e){return e===void 0&&(e=!0),this.element.value="",e&&this.setWidth(),this},t.prototype.setWidth=function(){var e=this.element;e.style.minWidth="".concat(e.placeholder.length+1,"ch"),e.style.width="".concat(e.value.length+1,"ch");},t.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e);},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant");},t.prototype._onInput=function(){this.type!==Et.SelectOne&&this.setWidth();},t.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault();},t.prototype._onFocus=function(){this.isFocussed=!0;},t.prototype._onBlur=function(){this.isFocussed=!1;},t}(),sf=4,sl=function(){function t(e){var i=e.element;this.element=i,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight;}return t.prototype.prepend=function(e){var i=this.element.firstElementChild;i?this.element.insertBefore(e,i):this.element.append(e);},t.prototype.scrollToTop=function(){this.element.scrollTop=0;},t.prototype.scrollToChildElement=function(e,i){var s=this;if(e){var n=this.element.offsetHeight,r=this.element.scrollTop+n,a=e.offsetHeight,o=e.offsetTop+a,l=i>0?this.element.scrollTop+o-r:e.offsetTop;requestAnimationFrame(function(){s._animateScroll(l,i);});}},t.prototype._scrollDown=function(e,i,s){var n=(s-e)/i,r=n>1?n:1;this.element.scrollTop=e+r;},t.prototype._scrollUp=function(e,i,s){var n=(e-s)/i,r=n>1?n:1;this.element.scrollTop=e-r;},t.prototype._animateScroll=function(e,i){var s=this,n=sf,r=this.element.scrollTop,a=!1;i>0?(this._scrollDown(r,n,e),r<e&&(a=!0)):(this._scrollUp(r,n,e),r>e&&(a=!0)),a&&requestAnimationFrame(function(){s._animateScroll(e,i);});},t}(),ml=function(){function t(e){var i=e.element,s=e.classNames;this.element=i,this.classNames=s,this.isDisabled=!1;}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.element.dataset.choice==="active"}
19,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e;},enumerable:!1,configurable:!0}),t.prototype.conceal=function(){var e=this.element;j(e,this.classNames.input),e.hidden=!0,e.tabIndex=-1;var i=e.getAttribute("style");i&&e.setAttribute("data-choice-orig-style",i),e.setAttribute("data-choice","active");},t.prototype.reveal=function(){var e=this.element;tt(e,this.classNames.input),e.hidden=!1,e.removeAttribute("tabindex");var i=e.getAttribute("data-choice-orig-style");i?(e.removeAttribute("data-choice-orig-style"),e.setAttribute("style",i)):e.removeAttribute("style"),e.removeAttribute("data-choice");},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1;},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0;},t.prototype.triggerEvent=function(e,i){Xu(this.element,e,i||{});},t}(),nf=function(t){hl(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ml),wi=function(t,e){return e===void 0&&(e=!0),typeof t>"u"?e:!!t},gl=function(t){if(typeof t=="string"&&(t=t.split(" ").filter(function(e){return e.length})),Array.isArray(t)&&t.length)return t},et=function(t,e,i){if(i===void 0&&(i=!0),typeof t=="string"){var s=fs(t),n=i||s===t?t:{escaped:s,raw:t},r=et({value:t,label:n,selected:!0},!1);return r}var a=t;if("choices"in a){if(!e)throw new TypeError("optGroup is not allowed");var o=a,l=o.choices.map(function(h){return et(h,!1)}),c={id:0,label:Ot(o.label)||o.value,active:!!l.length,disabled:!!o.disabled,choices:l};return c}var u=a,d={id:0,group:null,score:0,rank:0,value:u.value,label:u.label||u.value,active:wi(u.active),selected:wi(u.selected,!1),disabled:wi(u.disabled,!1),placeholder:wi(u.placeholder,!1),highlighted:!1,labelClass:gl(u.labelClass),labelDescription:u.labelDescription,customProperties:u.customProperties};return d},rf=function(t){return t.tagName==="INPUT"},vl=function(t){return t.tagName==="SELECT"},af=function(t){return t.tagName==="OPTION"},of=function(t){return t.tagName==="OPTGROUP"},lf=function(t){hl(e,t);function e(i){var s=i.element,n=i.classNames,r=i.template,a=i.extractPlaceholder,o=t.call(this,{element:s,classNames:n})||this;return o.template=r,o.extractPlaceholder=a,o}return Object.defineProperty(e.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),e.prototype.addOptions=function(i){var s=this,n=document.createDocumentFragment();i.forEach(function(r){var a=r;if(!a.element){var o=s.template(a);n.appendChild(o),a.element=o;}}),this.element.appendChild(n);},e.prototype.optionsAsChoices=function(){var i=this,s=[];return this.element.querySelectorAll(":scope > option, :scope > optgroup").forEach(function(n){af(n)?s.push(i._optionToChoice(n)):of(n)&&s.push(i._optgroupToChoice(n));}),s},e.prototype._optionToChoice=function(i){return !i.hasAttribute("value")&&i.hasAttribute("placeholder")&&(i.setAttribute("value",""),i.value=""),{id:0,group:null,score:0,rank:0,value:i.value,label:i.innerText,element:i,active:!0,selected:this.extractPlaceholder?i.selected:i.hasAttribute("selected"),disabled:i.disabled,highlighted:!1,placeholder:this.extractPlaceholder&&(!i.value||i.hasAttribute("placeholder")),labelClass:typeof i.dataset.labelClass<"u"?gl(i.dataset.labelClass):void 0,labelDescription:typeof i.dataset.labelDescription<"u"?i.dataset.labelDescription:void 0,customProperties:Zu(i.dataset.customProperties)}},e.prototype._optgroupToChoice=function(i){var s=this,n=i.querySelectorAll("option"),r=Array.from(n).map(function(a){return s._optionToChoice(a)});return {id:0,label:i.label||"",element:i,active:!!r.length,disabled:i.disabled,choices:r}},e}(ml),cf={containerOuter:["choices"],containerInner:["choices__inner"],input:["choices__input"],inputCloned:["choices__input--cloned"],list:["choices__list"],listItems:["choices__list--multiple"],listSingle:["choices__list--single"],listDropdown:["choices__list--dropdown"],item:["choices__item"],itemSelectable:["choices__item--selectable"],itemDisabled:["choices__item--disabled"],itemChoice:["choices__item--choice"],description:["choices__description"],placeholder:["choices__placeholder"],group:["choices__group"],groupHeading:["choices__heading"],button:["choices__button"],activeState:["is-active"],focusState:["is-focused"],openState:["is-open"],disabledState:["is-disabled"],highlightedState:["is-highlighted"],selectedState:["is-selected"],flippedState:["is-flipped"],loadingState:["is-loading"],notice:["choices__notice"],addChoice:["choices__item--selectable","add-choice"],noResults:["has-no-results"],noChoices:["has-no-choices"]},nl={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,closeDropdownOnSelect:"auto",singleModeForMultiSelect:!1,addChoices:!1,addItems:!0,addItemFilter:function(t){return !!t&&t!==""},removeItems:!0,removeItemButton:!1,removeItemButtonAlignLeft:!1,editItems:!1,allowHTML:!1,allowHtmlUserInput:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:Yu,shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prepe
19ndValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(t){return 'Press Enter to add <b>"'.concat(t,'"</b>')},removeItemIconText:function(){return "Remove item"},removeItemLabelText:function(t){return "Remove item: ".concat(t)},maxItemText:function(t){return "Only ".concat(t," values can be added")},valueComparer:function(t,e){return t===e},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:cf,appendGroupInSearch:!1},rl=function(t){var e=t.itemEl;e&&(e.remove(),t.itemEl=void 0);};function df(t,e,i){var s=t,n=!0;switch(e.type){case ue.ADD_ITEM:{e.item.selected=!0;var r=e.item.element;r&&(r.selected=!0,r.setAttribute("selected","")),s.push(e.item);break}case ue.REMOVE_ITEM:{e.item.selected=!1;var r=e.item.element;if(r){r.selected=!1,r.removeAttribute("selected");var a=r.parentElement;a&&vl(a)&&a.type===Et.SelectOne&&(a.value="");}rl(e.item),s=s.filter(function(u){return u.id!==e.item.id});break}case ue.REMOVE_CHOICE:{rl(e.choice),s=s.filter(function(c){return c.id!==e.choice.id});break}case ue.HIGHLIGHT_ITEM:{var o=e.highlighted,l=s.find(function(c){return c.id===e.item.id});l&&l.highlighted!==o&&(l.highlighted=o,i&&Ju(l,o?i.classNames.highlightedState:i.classNames.selectedState,o?i.classNames.selectedState:i.classNames.highlightedState));break}default:{n=!1;break}}return {state:s,update:n}}function uf(t,e){var i=t,s=!0;switch(e.type){case ue.ADD_GROUP:{i.push(e.group);break}case ue.CLEAR_CHOICES:{i=[];break}default:{s=!1;break}}return {state:i,update:s}}function ff(t,e,i){var s=t,n=!0;switch(e.type){case ue.ADD_CHOICE:{s.push(e.choice);break}case ue.REMOVE_CHOICE:{e.choice.choiceEl=void 0,e.choice.group&&(e.choice.group.choices=e.choice.group.choices.filter(function(a){return a.id!==e.choice.id})),s=s.filter(function(a){return a.id!==e.choice.id});break}case ue.ADD_ITEM:case ue.REMOVE_ITEM:{e.item.choiceEl=void 0;break}case ue.FILTER_CHOICES:{var r=[];e.results.forEach(function(a){r[a.item.id]=a;}),s.forEach(function(a){var o=r[a.id];o!==void 0?(a.score=o.score,a.rank=o.rank,a.active=!0):(a.score=0,a.rank=0,a.active=!1),i&&i.appendGroupInSearch&&(a.choiceEl=void 0);});break}case ue.ACTIVATE_CHOICES:{s.forEach(function(a){a.active=e.active,i&&i.appendGroupInSearch&&(a.choiceEl=void 0);});break}case ue.CLEAR_CHOICES:{s=[];break}default:{n=!1;break}}return {state:s,update:n}}var al={groups:uf,items:df,choices:ff},pf=function(){function t(e){this._state=this.defaultState,this._listeners=[],this._txn=0,this._context=e;}return Object.defineProperty(t.prototype,"defaultState",{get:function(){return {groups:[],items:[],choices:[]}},enumerable:!1,configurable:!0}),t.prototype.changeSet=function(e){return {groups:e,items:e,choices:e}},t.prototype.reset=function(){this._state=this.defaultState;var e=this.changeSet(!0);this._txn?this._changeSet=e:this._listeners.forEach(function(i){return i(e)});},t.prototype.subscribe=function(e){return this._listeners.push(e),this},t.prototype.dispatch=function(e){var i=this,s=this._state,n=!1,r=this._changeSet||this.changeSet(!1);Object.keys(al).forEach(function(a){var o=al[a](s[a],e,i._context);o.update&&(n=!0,r[a]=!0,s[a]=o.state);}),n&&(this._txn?this._changeSet=r:this._listeners.forEach(function(a){return a(r)}));},t.prototype.withTxn=function(e){this._txn++;try{e();}finally{if(this._txn=Math.max(0,this._txn-1),!this._txn){var i=this._changeSet;i&&(this._changeSet=void 0,this._listeners.forEach(function(s){return s(i)}));}}},Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedActiveItems",{get:function(){return this.items.filter(function(e){return !e.disabled&&e.active&&e.highlighted})}
19,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choices.filter(function(e){return e.active})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchableChoices",{get:function(){return this.choices.filter(function(e){return !e.disabled&&!e.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeGroups",{get:function(){var e=this;return this.state.groups.filter(function(i){var s=i.active&&!i.disabled,n=e.state.choices.some(function(r){return r.active&&!r.disabled});return s&&n},[])},enumerable:!1,configurable:!0}),t.prototype.inTxn=function(){return this._txn>0},t.prototype.getChoiceById=function(e){return this.activeChoices.find(function(i){return i.id===e})},t.prototype.getGroupById=function(e){return this.groups.find(function(i){return i.id===e})},t}(),xe={noChoices:"no-choices",noResults:"no-results",addChoice:"add-choice",generic:""};function hf(t,e,i){return (e=gf(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function ol(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,s);}return i}function ti(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?ol(Object(i),!0).forEach(function(s){hf(t,s,i[s]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ol(Object(i)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(i,s));});}return t}function mf(t,e){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var s=i.call(t,e||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(t)}function gf(t){var e=mf(t,"string");return typeof e=="symbol"?e:e+""}function dt(t){return Array.isArray?Array.isArray(t):_l(t)==="[object Array]"}var vf=1/0;function yf(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-vf?"-0":e}function bf(t){return t==null?"":yf(t)}function it(t){return typeof t=="string"}function yl(t){return typeof t=="number"}function _f(t){return t===!0||t===!1||Ef(t)&&_l(t)=="[object Boolean]"}function bl(t){return typeof t=="object"}function Ef(t){return bl(t)&&t!==null}function Re(t){return t!=null}function Tn(t){return !t.trim().length}function _l(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}var wf="Incorrect 'index' type",Sf=t=>`Invalid value for key ${t}`,Tf=t=>`Pattern length exceeds max of ${t}.`,xf=t=>`Missing ${t} property in key`,Cf=t=>`Property 'weight' in key '${t}' must be a positive integer`,ll=Object.prototype.hasOwnProperty,Ln=class{constructor(e){this._keys=[],this._keyMap={};let i=0;e.forEach(s=>{let n=El(s);this._keys.push(n),this._keyMap[n.id]=n,i+=n.weight;}),this._keys.forEach(s=>{s.weight/=i;});}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function El(t){let e=null,i=null,s=null,n=1,r=null;if(it(t)||dt(t))s=t,e=cl(t),i=Mn(t);else {if(!ll.call(t,"name"))throw new Error(xf("name"));let a=t.name;if(s=a,ll.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(Cf(a));
19e=cl(a),i=Mn(a),r=t.getFn;}return {path:e,id:i,weight:n,src:s,getFn:r}}function cl(t){return dt(t)?t:t.split(".")}function Mn(t){return dt(t)?t.join("."):t}function If(t,e){let i=[],s=!1,n=(r,a,o)=>{if(Re(r))if(!a[o])i.push(r);else {let l=a[o],c=r[l];if(!Re(c))return;if(o===a.length-1&&(it(c)||yl(c)||_f(c)))i.push(bf(c));else if(dt(c)){s=!0;for(let u=0,d=c.length;u<d;u+=1)n(c[u],a,o+1);}else a.length&&n(c,a,o+1);}};return n(t,it(e)?e.split("."):e,0),s?i:i[0]}var Lf={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Mf={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Af={location:0,threshold:.6,distance:100},Pf={useExtendedSearch:!1,getFn:If,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},Y=ti(ti(ti(ti({},Mf),Lf),Af),Pf),Of=/[^ ]+/g;function Df(t=1,e=3){let i=new Map,s=Math.pow(10,e);return {get(n){let r=n.match(Of).length;if(i.has(r))return i.get(r);let a=1/Math.pow(r,.5*t),o=parseFloat(Math.round(a*s)/s);return i.set(r,o),o},clear(){i.clear();}}}var Ti=class{constructor({getFn:e=Y.getFn,fieldNormWeight:i=Y.fieldNormWeight}={}){this.norm=Df(i,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords();}setSources(e=[]){this.docs=e;}setIndexRecords(e=[]){this.records=e;}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((i,s)=>{this._keysMap[i.id]=s;});}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,it(this.docs[0])?this.docs.forEach((e,i)=>{this._addString(e,i);}):this.docs.forEach((e,i)=>{this._addObject(e,i);}),this.norm.clear());}add(e){let i=this.size();it(e)?this._addString(e,i):this._addObject(e,i);}removeAt(e){this.records.splice(e,1);for(let i=e,s=this.size();i<s;i+=1)this.records[i].i-=1;}getValueForItemAtKeyId(e,i){return e[this._keysMap[i]]}size(){return this.records.length}_addString(e,i){if(!Re(e)||Tn(e))return;let s={v:e,i,n:this.norm.get(e)};this.records.push(s);}_addObject(e,i){let s={i,$:{}};this.keys.forEach((n,r)=>{let a=n.getFn?n.getFn(e):this.getFn(e,n.path);if(Re(a)){if(dt(a)){let o=[],l=[{nestedArrIndex:-1,value:a}];for(;l.length;){let{nestedArrIndex:c,value:u}=l.pop();if(Re(u))if(it(u)&&!Tn(u)){let d={v:u,i:c,n:this.norm.get(u)};o.push(d);}else dt(u)&&u.forEach((d,h)=>{l.push({nestedArrIndex:h,value:d});});}s.$[r]=o;}else if(it(a)&&!Tn(a)){let o={v:a,n:this.norm.get(a)};s.$[r]=o;}}}),this.records.push(s);}toJSON(){return {keys:this.keys,records:this.records}}};function wl(t,e,{getFn:i=Y.getFn,fieldNormWeight:s=Y.fieldNormWeight}={}){let n=new Ti({getFn:i,fieldNormWeight:s});return n.setKeys(t.map(El)),n.setSources(e),n.create(),n}function Nf(t,{getFn:e=Y.getFn,fieldNormWeight:i=Y.fieldNormWeight}={}){let{keys:s,records:n}=t,r=new Ti({getFn:e,fieldNormWeight:i});return r.setKeys(s),r.setIndexRecords(n),r}function os(t,{errors:e=0,currentLocation:i=0,expectedLocation:s=0,distance:n=Y.distance,ignoreLocation:r=Y.ignoreLocation}={}){let a=e/t.length;if(r)return a;let o=Math.abs(s-i);return n?a+o/n:o?1:a}function kf(t=[],e=Y.minMatchCharLength){let i=[],s=-1,n=-1,r=0;for(let a=t.length;r<a;r+=1){let o=t[r];o&&s===-1?s=r:!o&&s!==-1&&(n=r-1,n-s+1>=e&&i.push([s,n]),s=-1);}return t[r-1]&&r-s>=e&&i.push([s,r-1]),i}var Pt=32;function Ff(t,e,i,{location:s=Y.location,distance:n=Y.distance,threshold:r=Y.threshold,findAllMatches:a=Y.findAllMatches,minMatchCharLength:o=Y.minMatchCharLength,includeMatches:l=Y.includeMatches,ignoreLocation:c=Y.ignoreLocation}={}){if(e.length>Pt)throw new Error(Tf(Pt));let u=e.length,d=t.length,h=Math.max(0,Math.min(s,d)),y=r,m=h,_=o>1||l,S=_?Array(d):[],E;for(;(E=t.indexOf(e,m))>-1;){let R=os(e,{currentLocation:E,expectedLocation:h,distance:n,ignoreLocation:c});if(y=Math.min(R,y),m=E+u,_){let g=0;for(;g<u;)S[E+g]=1,g+=1;}}m=-1;let v=[],b=1,T=u+d,L=1<<u-1;for(let R=0;R<u;R+=1){let g=0,k=T;for(;g<k;)os(e,{errors:R,currentLocation:h+k,expectedLocation:h,distance:n,ignoreLocation:c})<=y?g=k:T=k,k=Math.floor((T-g)/2+g);T=k;let A=Math.max(1,h-k+1),M=a?d:Math.min(h+k,d)+u,$=Array(M+2);$[M+1]=(1<<R)-1;for(let O=M;O>=A;O-=1){let H=O-1,x=i[t.charAt(H)];if(_&&(S[H]=+!!x),$[O]=($[O+1]<<1|1)&x,R&&($[O]|=(v[O+1]|v[O])<<1|1|v[O+1]),$[O]&L&&(b=os(e,{errors:R,currentLocation:H,expectedLocation:h,distance:n,ignoreLocation:c}),b<=y)){if(y=b,m=H,m<=h)break;A=Math.max(1,2*h-m);}}if(os(e,{errors:R+1,currentLocation:h,expectedLocation:h,distance:n,ignoreLocation:c})>y)break;v=$;}let P={isMatch:m>=0,score:Math.max(.001,b)};if(_){let R=kf(S,o);R.length?l&&(P.indices=R):P.isMatch=!1;}return P}function Rf(t){let e={};for(let i=0,s=t.length;i<s;i+=1){let n=t.charAt(i);e[n]=(e[n]||0)|1<<s-i-1;}return e}var ls=class{constructor(e,{location:i=Y.location,threshold:s=Y.threshold,distance:n=Y.distance,includeMatches:r=Y.includeMatches,findAllMatches:a=Y.findAllMatches,minMatchCharLength:o=Y.minMatchCharLength,isCaseSensitive:l=Y.isCaseSensitive,ignoreLocation:c=Y.ignoreLocation}={}){if(this.options={location:i,threshold:s,distance:n,includeMatches:r,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:l,ignoreLocation:c},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;let u=(h,y)=>{this.chunks.push({pattern:h,alphabet:Rf(h),startIndex:y});},d=this.pattern.length;if(d>Pt){let h=0,y=d%Pt,m=d-y;for(;h<m;)u(this.pattern.substr(h,Pt),h),h+=Pt;if(y){let _=d-Pt;u(this.pattern.substr(_),_);}}else u(this.pattern,0);}searchIn(e){let{isCaseSensitive:i,includeMatches:s}=this.options;if(i||(e=e.toLowerCase()),this.pattern===e){let m={isMatch:!0,score:0};return s&&(m.indices=[[0,e.length-1]]),m}let{location:n,distance:r,threshold:a,findAllMatches:o,minMatchCharLength:l,ignoreLocation:c}=this.options,u=[],d=0,h=!1;this.chunks.forEach(({pattern:m,alphabet:_,startIndex:S})=>{let{isMatch:E,score:v,indices:b}=Ff(e,m,_,{location:n+S,distance:r,threshold:a,findAllMatches:o,minMatchCharLength:l,includeMatches:s,ignoreLocation:c});E&&(h=!0),d+=v,E&&b&&(u=[...u,...b]);});let y={isMatch:h,score:h?d/this.chunks.length:1};return h&&s&&(y.indices=u),y}},st=class{constructor(e){this.pattern=e;}static isMultiMatch(e){return dl(e,this.multiRegex)}static isSingleMatch(e){return dl(e,this.singleRegex)}search(){}};function dl(t,e){let i=t.match(e);return i?i[1]:null}var An=class extends st{constructor(e){super(e);}static get type(){return "exact"}static get multiRegex(){return /^="(.*)"$/}static get singleRegex(){return /^=(.*)$/}
vendor: 4,670 bytes, line 19
19search(e){let i=e===this.pattern;return {isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}},Pn=class extends st{constructor(e){super(e);}static get type(){return "inverse-exact"}static get multiRegex(){return /^!"(.*)"$/}static get singleRegex(){return /^!(.*)$/}search(e){let s=e.indexOf(this.pattern)===-1;return {isMatch:s,score:s?0:1,indices:[0,e.length-1]}}},On=class extends st{constructor(e){super(e);}static get type(){return "prefix-exact"}static get multiRegex(){return /^\^"(.*)"$/}static get singleRegex(){return /^\^(.*)$/}search(e){let i=e.startsWith(this.pattern);return {isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}},Dn=class extends st{constructor(e){super(e);}static get type(){return "inverse-prefix-exact"}static get multiRegex(){return /^!\^"(.*)"$/}static get singleRegex(){return /^!\^(.*)$/}search(e){let i=!e.startsWith(this.pattern);return {isMatch:i,score:i?0:1,indices:[0,e.length-1]}}},Nn=class extends st{constructor(e){super(e);}static get type(){return "suffix-exact"}static get multiRegex(){return /^"(.*)"\$$/}static get singleRegex(){return /^(.*)\$$/}search(e){let i=e.endsWith(this.pattern);return {isMatch:i,score:i?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},kn=class extends st{constructor(e){super(e);}static get type(){return "inverse-suffix-exact"}static get multiRegex(){return /^!"(.*)"\$$/}static get singleRegex(){return /^!(.*)\$$/}search(e){let i=!e.endsWith(this.pattern);return {isMatch:i,score:i?0:1,indices:[0,e.length-1]}}},cs=class extends st{constructor(e,{location:i=Y.location,threshold:s=Y.threshold,distance:n=Y.distance,includeMatches:r=Y.includeMatches,findAllMatches:a=Y.findAllMatches,minMatchCharLength:o=Y.minMatchCharLength,isCaseSensitive:l=Y.isCaseSensitive,ignoreLocation:c=Y.ignoreLocation}={}){super(e),this._bitapSearch=new ls(e,{location:i,threshold:s,distance:n,includeMatches:r,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:l,ignoreLocation:c});}static get type(){return "fuzzy"}static get multiRegex(){return /^"(.*)"$/}static get singleRegex(){return /^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},ds=class extends st{constructor(e){super(e);}static get type(){return "include"}static get multiRegex(){return /^'"(.*)"$/}static get singleRegex(){return /^'(.*)$/}search(e){let i=0,s,n=[],r=this.pattern.length;for(;(s=e.indexOf(this.pattern,i))>-1;)i=s+r,n.push([s,i-1]);let a=!!n.length;return {isMatch:a,score:a?0:1,indices:n}}},Fn=[An,ds,On,Dn,kn,Nn,Pn,cs],ul=Fn.length,Hf=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,zf="|";function $f(t,e={}){return t.split(zf).map(i=>{let s=i.trim().split(Hf).filter(r=>r&&!!r.trim()),n=[];for(let r=0,a=s.length;r<a;r+=1){let o=s[r],l=!1,c=-1;for(;!l&&++c<ul;){let u=Fn[c],d=u.isMultiMatch(o);d&&(n.push(new u(d,e)),l=!0);}if(!l)for(c=-1;++c<ul;){let u=Fn[c],d=u.isSingleMatch(o);if(d){n.push(new u(d,e));break}}}return n})}var Bf=new Set([cs.type,ds.type]),Rn=class{constructor(e,{isCaseSensitive:i=Y.isCaseSensitive,includeMatches:s=Y.includeMatches,minMatchCharLength:n=Y.minMatchCharLength,ignoreLocation:r=Y.ignoreLocation,findAllMatches:a=Y.findAllMatches,location:o=Y.location,threshold:l=Y.threshold,distance:c=Y.distance}={}){this.query=null,this.options={isCaseSensitive:i,includeMatches:s,minMatchCharLength:n,findAllMatches:a,ignoreLocation:r,location:o,threshold:l,distance:c},this.pattern=i?e:e.toLowerCase(),this.query=$f(this.pattern,this.options);}static condition(e,i){return i.useExtendedSearch}searchIn(e){let i=this.query;if(!i)return {isMatch:!1,score:1};let{includeMatches:s,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let r=0,a=[],o=0;for(let l=0,c=i.length;l<c;l+=1){let u=i[l];a.length=0,r=0;for(let d=0,h=u.length;d<h;d+=1){let y=u[d],{isMatch:m,indices:_,score:S}=y.search(e);if(m){if(r+=1,o+=S,s){let E=y.constructor.type;Bf.has(E)?a=[...a,..._]:a.push(_);}}else {o=0,r=0,a.length=0;break}}if(r){let d={isMatch:!0,score:o/r};return s&&(d.indices=a),d}}return {isMatch:!1,score:1}}},Hn=[];function Vf(...t){Hn.push(...t);}function zn(t,e){for(let i=0,s=Hn.length;i<s;i+=1){let n=Hn[i];if(n.condition(t,e))return new n(t,e)}return new ls(t,e)}var us={AND:"$and",OR:"$or"},$n={PATH:"$path",PATTERN:"$val"},Bn=t=>!!(t[us.AND]||t[us.OR]),Gf=t=>!!t[$n.PATH],Wf=t=>!dt(t)&&bl(t)&&!Bn(t),fl=t=>({[us.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Sl(t,e,{auto:i=!0}={}){let s=n=>{let r=Object.keys(n),a=Gf(n);if(!a&&r.length>1&&!Bn(n))return s(fl(n));if(Wf(n)){let l=a?n[$n.PATH]:r[0],c=a?n[$n.PATTERN]:n[l];if(!it(c))throw new Error(Sf(l));let u={keyId:Mn(l),pattern:c};return i&&(u.searcher=zn(c,e)),u}let o={children:[],operator:r[0]};return r.forEach(l=>{let c=n[l];
19dt(c)&&c.forEach(u=>{o.children.push(s(u));});}),o};return Bn(t)||(t=fl(t)),s(t)}function qf(t,{ignoreFieldNorm:e=Y.ignoreFieldNorm}){t.forEach(i=>{let s=1;i.matches.forEach(({key:n,norm:r,score:a})=>{let o=n?n.weight:null;s*=Math.pow(a===0&&o?Number.EPSILON:a,(o||1)*(e?1:r));}),i.score=s;});}function Kf(t,e){let i=t.matches;e.matches=[],Re(i)&&i.forEach(s=>{if(!Re(s.indices)||!s.indices.length)return;let{indices:n,value:r}=s,a={indices:n,value:r};s.key&&(a.key=s.key.src),s.idx>-1&&(a.refIndex=s.idx),e.matches.push(a);});}function Uf(t,e){e.score=t.score;}function Yf(t,e,{includeMatches:i=Y.includeMatches,includeScore:s=Y.includeScore}={}){let n=[];return i&&n.push(Kf),s&&n.push(Uf),t.map(r=>{let{idx:a}=r,o={item:e[a],refIndex:a};return n.length&&n.forEach(l=>{l(r,o);}),o})}var wt=class{constructor(e,i={},s){this.options=ti(ti({},Y),i),this.options.useExtendedSearch,this._keyStore=new Ln(this.options.keys),this.setCollection(e,s);}setCollection(e,i){if(this._docs=e,i&&!(i instanceof Ti))throw new Error(wf);this._myIndex=i||wl(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight});}add(e){Re(e)&&(this._docs.push(e),this._myIndex.add(e));}remove(e=()=>!1){let i=[];for(let s=0,n=this._docs.length;s<n;s+=1){let r=this._docs[s];e(r,s)&&(this.removeAt(s),s-=1,n-=1,i.push(r));}return i}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e);}getIndex(){return this._myIndex}search(e,{limit:i=-1}={}){let{includeMatches:s,includeScore:n,shouldSort:r,sortFn:a,ignoreFieldNorm:o}=this.options,l=it(e)?it(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return qf(l,{ignoreFieldNorm:o}),r&&l.sort(a),yl(i)&&i>-1&&(l=l.slice(0,i)),Yf(l,this._docs,{includeMatches:s,includeScore:n})}_searchStringList(e){let i=zn(e,this.options),{records:s}=this._myIndex,n=[];return s.forEach(({v:r,i:a,n:o})=>{if(!Re(r))return;let{isMatch:l,score:c,indices:u}=i.searchIn(r);l&&n.push({item:r,idx:a,matches:[{score:c,value:r,norm:o,indices:u}]});}),n}_searchLogical(e){let i=Sl(e,this.options),s=(o,l,c)=>{if(!o.children){let{keyId:d,searcher:h}=o,y=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(l,d),searcher:h});return y&&y.length?[{idx:c,item:l,matches:y}]:[]}let u=[];for(let d=0,h=o.children.length;d<h;d+=1){let y=o.children[d],m=s(y,l,c);if(m.length)u.push(...m);else if(o.operator===us.AND)return []}return u},n=this._myIndex.records,r={},a=[];return n.forEach(({$:o,i:l})=>{if(Re(o)){let c=s(i,o,l);c.length&&(r[l]||(r[l]={idx:l,item:o,matches:[]},a.push(r[l])),c.forEach(({matches:u})=>{r[l].matches.push(...u);}));}}),a}_searchObjectList(e){let i=zn(e,this.options),{keys:s,records:n}=this._myIndex,r=[];return n.forEach(({$:a,i:o})=>{if(!Re(a))return;let l=[];s.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:a[u],searcher:i}));}),l.length&&r.push({idx:o,item:a,matches:l});}),r}_findMatches({key:e,value:i,searcher:s}){if(!Re(i))return [];let n=[];if(dt(i))i.forEach(({v:r,i:a,n:o})=>{if(!Re(r))return;let{isMatch:l,score:c,indices:u}=s.searchIn(r);l&&n.push({score:c,key:e,value:r,idx:a,norm:o,indices:u});});else {let{v:r,n:a}=i,{isMatch:o,score:l,indices:c}=s.searchIn(r);o&&n.push({score:l,key:e,value:r,norm:a,indices:c});}return n}};wt.version="7.0.0";wt.createIndex=wl;wt.parseIndex=Nf;wt.config=Y;wt.parseQuery=Sl;Vf(Rn);var jf=function(){function t(e){this._haystack=[],this._fuseOptions=Oe(Oe({},e.fuseOptions),{keys:ku([],e.searchFields),includeMatches:!0});}return t.prototype.index=function(e){this._haystack=e,this._fuse&&this._fuse.setCollection(e);},t.prototype.reset=function(){this._haystack=[],this._fuse=void 0;},t.prototype.isEmptyIndex=function(){return !this._haystack.length},t.prototype.search=function(e){this._fuse||(this._fuse=new wt(this._haystack,this._fuseOptions));var i=this._fuse.search(e);return i.map(function(s,n){return {item:s.item,score:s.score||0,rank:n+1}})},t}();function Xf(t){return new jf(t)}var Qf=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return !1;return !0}
19,xn=function(t,e,i){var s=t.dataset,n=e.customProperties,r=e.labelClass,a=e.labelDescription;r&&(s.labelClass=ps(r).join(" ")),a&&(s.labelDescription=a),i&&n&&(typeof n=="string"?s.customProperties=n:typeof n=="object"&&!Qf(n)&&(s.customProperties=JSON.stringify(n)));},pl=function(t,e,i){var s=e&&t.querySelector("label[for='".concat(e,"']")),n=s&&s.innerText;n&&i.setAttribute("aria-label",n);},Zf={containerOuter:function(t,e,i,s,n,r,a){var o=t.classNames.containerOuter,l=document.createElement("div");return j(l,o),l.dataset.type=r,e&&(l.dir=e),s&&(l.tabIndex=0),i&&(l.setAttribute("role",n?"combobox":"listbox"),n?l.setAttribute("aria-autocomplete","list"):a||pl(this._docRoot,this.passedElement.element.id,l),l.setAttribute("aria-haspopup","true"),l.setAttribute("aria-expanded","false")),a&&l.setAttribute("aria-labelledby",a),l},containerInner:function(t){var e=t.classNames.containerInner,i=document.createElement("div");return j(i,e),i},itemList:function(t,e){var i=t.searchEnabled,s=t.classNames,n=s.list,r=s.listSingle,a=s.listItems,o=document.createElement("div");return j(o,n),j(o,e?r:a),this._isSelectElement&&i&&o.setAttribute("role","listbox"),o},placeholder:function(t,e){var i=t.allowHTML,s=t.classNames.placeholder,n=document.createElement("div");return j(n,s),ct(n,i,e),n},item:function(t,e,i){var s=t.allowHTML,n=t.removeItemButtonAlignLeft,r=t.removeItemIconText,a=t.removeItemLabelText,o=t.classNames,l=o.item,c=o.button,u=o.highlightedState,d=o.itemSelectable,h=o.placeholder,y=Ot(e.value),m=document.createElement("div");if(j(m,l),e.labelClass){var _=document.createElement("span");ct(_,s,e.label),j(_,e.labelClass),m.appendChild(_);}else ct(m,s,e.label);if(m.dataset.item="",m.dataset.id=e.id,m.dataset.value=y,xn(m,e,!0),(e.disabled||this.containerOuter.isDisabled)&&m.setAttribute("aria-disabled","true"),this._isSelectElement&&(m.setAttribute("aria-selected","true"),m.setAttribute("role","option")),e.placeholder&&(j(m,h),m.dataset.placeholder=""),j(m,e.highlighted?u:d),i){e.disabled&&tt(m,d),m.dataset.deletable="";var S=document.createElement("button");S.type="button",j(S,c),ct(S,!0,Si(r,e.value));var E=Si(a,e.value);E&&S.setAttribute("aria-label",E),S.dataset.button="",n?m.insertAdjacentElement("afterbegin",S):m.appendChild(S);}return m},choiceList:function(t,e){var i=t.classNames.list,s=document.createElement("div");return j(s,i),e||s.setAttribute("aria-multiselectable","true"),s.setAttribute("role","listbox"),s},choiceGroup:function(t,e){var i=t.allowHTML,s=t.classNames,n=s.group,r=s.groupHeading,a=s.itemDisabled,o=e.id,l=e.label,c=e.disabled,u=Ot(l),d=document.createElement("div");j(d,n),c&&j(d,a),d.setAttribute("role","group"),d.dataset.group="",d.dataset.id=o,d.dataset.value=u,c&&d.setAttribute("aria-disabled","true");var h=document.createElement("div");return j(h,r),ct(h,i,l||""),d.appendChild(h),d},choice:function(t,e,i,s){var n=t.allowHTML,r=t.classNames,a=r.item,o=r.itemChoice,l=r.itemSelectable,c=r.selectedState,u=r.itemDisabled,d=r.description,h=r.placeholder,y=e.label,m=Ot(e.value),_=document.createElement("div");_.id=e.elementId,j(_,a),j(_,o),s&&typeof y=="string"&&(y=Vn(n,y),y+=" (".concat(s,")"),y={trusted:y});var S=_;if(e.labelClass){var E=document.createElement("span");ct(E,n,y),j(E,e.labelClass),S=E,_.appendChild(E);}else ct(_,n,y);if(e.labelDescription){var v="".concat(e.elementId,"-description");S.setAttribute("aria-describedby",v);var b=document.createElement("span");ct(b,n,e.labelDescription),b.id=v,j(b,d),_.appendChild(b);}return e.selected&&j(_,c),e.placeholder&&j(_,h),_.setAttribute("role",e.group?"treeitem":"option"),_.dataset.choice="",_.dataset.id=e.id,_.dataset.value=m,i&&(_.dataset.selectText=i),e.group&&(_.dataset.groupId="".concat(e.group.id)),xn(_,e,!1),e.disabled?(j(_,u),_.dataset.choiceDisabled="",_.setAttribute("aria-disabled","true")):(j(_,l),_.dataset.choiceSelectable=""),_},input:function(t,e){var i=t.classNames,s=i.input,n=i.inputCloned,r=t.labelId,a=document.createElement("input");return a.type="search",j(a,s),j(a,n),a.autocomplete="off",a.autocapitalize="off",a.spellcheck=!1,a.setAttribute("role","textbox"),a.setAttribute("aria-autocomplete","list"),e?a.setAttribute("aria-label",e):r||pl(this._docRoot,this.passedElement.element.i
vendor: 4,617 bytes, line 19
19d,a),a},dropdown:function(t){var e=t.classNames,i=e.list,s=e.listDropdown,n=document.createElement("div");return j(n,i),j(n,s),n.setAttribute("aria-expanded","false"),n},notice:function(t,e,i){var s=t.classNames,n=s.item,r=s.itemChoice,a=s.addChoice,o=s.noResults,l=s.noChoices,c=s.notice;i===void 0&&(i=xe.generic);var u=document.createElement("div");switch(ct(u,!0,e),j(u,n),j(u,r),j(u,c),i){case xe.addChoice:j(u,a);break;case xe.noResults:j(u,o);break;case xe.noChoices:j(u,l);break}return i===xe.addChoice&&(u.dataset.choiceSelectable="",u.dataset.choice=""),u},option:function(t){var e=Ot(t.label),i=new Option(e,t.value,!1,t.selected);return xn(i,t,!0),i.disabled=t.disabled,t.selected&&i.setAttribute("selected",""),i}},Jf="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,ep={},Cn=function(t){if(t)return t.dataset.id?parseInt(t.dataset.id,10):void 0},Ei="[data-choice-selectable]",Tl=function(){function t(e,i){e===void 0&&(e="[data-choice]"),i===void 0&&(i={});var s=this;this.initialisedOK=void 0,this._hasNonChoicePlaceholder=!1,this._lastAddedChoiceId=0,this._lastAddedGroupId=0;var n=t.defaults;this.config=Oe(Oe(Oe({},n.allOptions),n.options),i),Fu.forEach(function(E){s.config[E]=Oe(Oe(Oe({},n.allOptions[E]),n.options[E]),i[E]);});var r=this.config;r.silent||this._validateConfig();var a=r.shadowRoot||document.documentElement;this._docRoot=a;var o=typeof e=="string"?a.querySelector(e):e;if(!o||typeof o!="object"||!(rf(o)||vl(o)))throw TypeError(!o&&typeof e=="string"?"Selector ".concat(e," failed to find an element"):"Expected one of the following types text|select-one|select-multiple");var l=o.type,c=l===Et.Text;(c||r.maxItemCount!==1)&&(r.singleModeForMultiSelect=!1),r.singleModeForMultiSelect&&(l=Et.SelectMultiple);var u=l===Et.SelectOne,d=l===Et.SelectMultiple,h=u||d;if(this._elementType=l,this._isTextElement=c,this._isSelectOneElement=u,this._isSelectMultipleElement=d,this._isSelectElement=u||d,this._canAddUserChoices=c&&r.addItems||h&&r.addChoices,typeof r.renderSelectedChoices!="boolean"&&(r.renderSelectedChoices=r.renderSelectedChoices==="always"||u),r.closeDropdownOnSelect==="auto"?r.closeDropdownOnSelect=c||u||r.singleModeForMultiSelect:r.closeDropdownOnSelect=wi(r.closeDropdownOnSelect),r.placeholder&&(r.placeholderValue?this._hasNonChoicePlaceholder=!0:o.dataset.placeholder&&(this._hasNonChoicePlaceholder=!0,r.placeholderValue=o.dataset.placeholder)),i.addItemFilter&&typeof i.addItemFilter!="function"){var y=i.addItemFilter instanceof RegExp?i.addItemFilter:new RegExp(i.addItemFilter);r.addItemFilter=y.test.bind(y);}if(this._isTextElement)this.passedElement=new nf({element:o,classNames:r.classNames});else {var m=o;this.passedElement=new lf({element:m,classNames:r.classNames,template:function(E){return s._templates.option(E)},extractPlaceholder:r.placeholder&&!this._hasNonChoicePlaceholder});}if(this.initialised=!1,this._store=new pf(r),this._currentValue="",r.searchEnabled=!c&&r.searchEnabled||d,this._canSearch=r.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=Gu(o,"choices-"),this._direction=o.dir,!this._direction){var _=window.getComputedStyle(o).direction,S=window.getComputedStyle(document.documentElement).direction;_!==S&&(this._direction=_);}if(this._idNames={itemChoice:"item-choice"},this._templates=n.templates,this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onInput=this._onInput.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive){r.silent||console.warn("Trying to initialise Choices on element already initialised",{element:e}),this.initialised=!0,this.initialisedOK=!1;return}this.init(),this._initialItems=this._store.items.map(function(E){return E.value});}return Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return ep},get allOptions(){return nl},get templates(){return Zf}})}
19,enumerable:!1,configurable:!0}),t.prototype.init=function(){if(!(this.initialised||this.initialisedOK!==void 0)){this._searcher=Xf(this.config),this._loadChoices(),this._createTemplates(),this._createElements(),this._createStructure(),this._isTextElement&&!this.config.addItems||this.passedElement.element.hasAttribute("disabled")||this.passedElement.element.closest("fieldset:disabled")?this.disable():(this.enable(),this._addEventListeners()),this._initStore(),this.initialised=!0,this.initialisedOK=!0;var e=this.config.callbackOnInit;typeof e=="function"&&e.call(this);}},t.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this._store._listeners=[],this.clearStore(!1),this._stopSearch(),this._templates=t.defaults.templates,this.initialised=!1,this.initialisedOK=void 0);},t.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},t.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},t.prototype.highlightItem=function(e,i){if(i===void 0&&(i=!0),!e||!e.id)return this;var s=this._store.items.find(function(n){return n.id===e.id});return !s||s.highlighted?this:(this._store.dispatch(as(s,!0)),i&&this.passedElement.triggerEvent(Pe.highlightItem,this._getChoiceForOutput(s)),this)},t.prototype.unhighlightItem=function(e,i){if(i===void 0&&(i=!0),!e||!e.id)return this;var s=this._store.items.find(function(n){return n.id===e.id});return !s||!s.highlighted?this:(this._store.dispatch(as(s,!1)),i&&this.passedElement.triggerEvent(Pe.unhighlightItem,this._getChoiceForOutput(s)),this)},t.prototype.highlightAll=function(){var e=this;return this._store.withTxn(function(){e._store.items.forEach(function(i){i.highlighted||(e._store.dispatch(as(i,!0)),e.passedElement.triggerEvent(Pe.highlightItem,e._getChoiceForOutput(i)));});}),this},t.prototype.unhighlightAll=function(){var e=this;return this._store.withTxn(function(){e._store.items.forEach(function(i){i.highlighted&&(e._store.dispatch(as(i,!1)),e.passedElement.triggerEvent(Pe.highlightItem,e._getChoiceForOutput(i)));});}),this},t.prototype.removeActiveItemsByValue=function(e){var i=this;return this._store.withTxn(function(){i._store.items.filter(function(s){return s.value===e}).forEach(function(s){return i._removeItem(s)});}),this},t.prototype.removeActiveItems=function(e){var i=this;return this._store.withTxn(function(){i._store.items.filter(function(s){var n=s.id;return n!==e}).forEach(function(s){return i._removeItem(s)});}),this},t.prototype.removeHighlightedItems=function(e){var i=this;return e===void 0&&(e=!1),this._store.withTxn(function(){i._store.highlightedActiveItems.forEach(function(s){i._removeItem(s),e&&i._triggerChange(s.value);});}),this},t.prototype.showDropdown=function(e){var i=this;return this.dropdown.isActive?this:(e===void 0&&(e=!this._canSearch),requestAnimationFrame(function(){i.dropdown.show();var s=i.dropdown.element.getBoundingClientRect();i.containerOuter.open(s.bottom,s.height),e||i.input.focus(),i.passedElement.triggerEvent(Pe.showDropdown);}),this)},t.prototype.hideDropdown=function(e){var i=this;return this.dropdown.isActive?(requestAnimationFrame(function(){i.dropdown.hide(),i.containerOuter.close(),!e&&i._canSearch&&(i.input.removeActiveDescendant(),i.input.blur()),i.passedElement.triggerEvent(Pe.hideDropdown);}),this):this},t.prototype.getValue=function(e){var i=this,s=this._store.items.map(function(n){return e?n.value:i._getChoiceForOutput(n)});return this._isSelectOneElement||this.config.singleModeForMultiSelect?s[0]:s},t.prototype.setValue=function(e){var i=this;return this.initialisedOK?(this._store.withTxn(function(){e.forEach(function(s){s&&i._addChoice(et(s,!1));});}),this._searcher.reset(),this):(this._warnChoicesInitFailed("setValue"),this)},t.prototype.setChoiceByValue=function(e){var i=this;return this.initialisedOK?this._isTextElement?this:(this._store.withTxn(function(){var s=Array.isArray(e)?e:[e];
19s.forEach(function(n){return i._findAndSelectChoiceByValue(n)}),i.unhighlightAll();}),this._searcher.reset(),this):(this._warnChoicesInitFailed("setChoiceByValue"),this)},t.prototype.setChoices=function(e,i,s,n,r){var a=this;if(e===void 0&&(e=[]),i===void 0&&(i="value"),s===void 0&&(s="label"),n===void 0&&(n=!1),r===void 0&&(r=!0),!this.initialisedOK)return this._warnChoicesInitFailed("setChoices"),this;if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if(typeof i!="string"||!i)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(n&&this.clearChoices(),typeof e=="function"){var o=e(this);if(typeof Promise=="function"&&o instanceof Promise)return new Promise(function(l){return requestAnimationFrame(l)}).then(function(){return a._handleLoadingState(!0)}).then(function(){return o}).then(function(l){return a.setChoices(l,i,s,n)}).catch(function(l){a.config.silent||console.error(l);}).then(function(){return a._handleLoadingState(!1)}).then(function(){return a});if(!Array.isArray(o))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof o));return this.setChoices(o,i,s,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._store.withTxn(function(){r&&(a._isSearching=!1);var l=i==="value",c=s==="label";e.forEach(function(u){if("choices"in u){var d=u;c||(d=Oe(Oe({},d),{label:d[s]})),a._addGroup(et(d,!0));}else {var h=u;(!c||!l)&&(h=Oe(Oe({},h),{value:h[i],label:h[s]})),a._addChoice(et(h,!1));}}),a.unhighlightAll();}),this._searcher.reset(),this},t.prototype.refresh=function(e,i,s){var n=this;return e===void 0&&(e=!1),i===void 0&&(i=!1),s===void 0&&(s=!1),this._isSelectElement?(this._store.withTxn(function(){var r=n.passedElement.optionsAsChoices(),a={};s||n._store.items.forEach(function(l){l.id&&l.active&&l.selected&&!l.disabled&&(a[l.value]=!0);}),n.clearStore(!1);var o=function(l){s?n._store.dispatch(Jo(l)):a[l.value]&&(l.selected=!0);};r.forEach(function(l){if("choices"in l){l.choices.forEach(o);return}o(l);}),n._addPredefinedChoices(r,i,e),n._isSearching&&n._searchChoices(n.input.value);}),this):(this.config.silent||console.warn("refresh method can only be used on choices backed by a <select> element"),this)},t.prototype.removeChoice=function(e){var i=this._store.choices.find(function(s){return s.value===e});return i?(this._clearNotice(),this._store.dispatch(Zo(i)),this._searcher.reset(),i.selected&&this.passedElement.triggerEvent(Pe.removeItem,this._getChoiceForOutput(i)),this):this},t.prototype.clearChoices=function(){var e=this;return this._store.withTxn(function(){e._store.choices.forEach(function(i){i.selected||e._store.dispatch(Zo(i));});}),this._searcher.reset(),this},t.prototype.clearStore=function(e){return e===void 0&&(e=!0),this._stopSearch(),e&&this.passedElement.element.replaceChildren(""),this.itemList.element.replaceChildren(""),this.choiceList.element.replaceChildren(""),this._clearNotice(),this._store.reset(),this._lastAddedChoiceId=0,this._lastAddedGroupId=0,this._searcher.reset(),this},t.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),this._stopSearch(),this},t.prototype._validateConfig=function(){var e=this.config,i=Qu(e,nl);i.length&&console.warn("Unknown config option(s) passed",i.join(", ")),e.allowHTML&&e.allowHtmlUserInput&&(e.addItems&&console.warn("Warning: allowHTML/allowHtmlUserInput/addItems all being true is strongly not recommended and may lead to XSS attacks"),e.addChoices&&console.warn("Warning: allowHTML/allowHtmlUserInput/addChoices all being true is strongly not recommended and may lead to XSS attacks"));},t.prototype._render=function(e){e===void 0&&(e={choices:!0,groups:!0,items:!0}),!this._store.inTxn()&&(this._isSelectElement&&(e.choices||e.groups)&&this._renderChoices(),e.items&&this._renderItems());},t.prototype._renderChoices=function(){var e=this;if(this._canAddItems()){var i=this,s=i.config,n=i._isSearching,r=this._store,a=r.activeGroups,o=r.activeChoices,l=0;if(n&&s.searchResultLimit>0?l=s.searchResultLimit:s.renderChoiceLimit>0&&(l=s.renderChoiceLimit),this._isSelectElement){var c=o.filter(function(m){return !m.element});c.length&&this.passedElement.addOptions(c);}
19var u=document.createDocumentFragment(),d=function(m){return m.filter(function(_){return !_.placeholder&&(n?!!_.rank:s.renderSelectedChoices||!_.selected)})},h=!1,y=function(m,_,S){n?m.sort(ju):s.shouldSort&&m.sort(s.sorter);var E=m.length;E=!_&&l&&E>l?l:E,E--,m.every(function(v,b){var T=v.choiceEl||e._templates.choice(s,v,s.itemSelectText,S);return v.choiceEl=T,u.appendChild(T),!v.disabled&&(n||!v.selected)&&(h=!0),b<E});};o.length&&(s.resetScrollPosition&&requestAnimationFrame(function(){return e.choiceList.scrollToTop()}),!this._hasNonChoicePlaceholder&&!n&&this._isSelectOneElement&&y(o.filter(function(m){return m.placeholder&&!m.group}),!1,void 0),a.length&&!n?(s.shouldSort&&a.sort(s.sorter),y(o.filter(function(m){return !m.placeholder&&!m.group}),!1,void 0),a.forEach(function(m){var _=d(m.choices);if(_.length){if(m.label){var S=m.groupEl||e._templates.choiceGroup(e.config,m);m.groupEl=S,S.remove(),u.appendChild(S);}y(_,!0,s.appendGroupInSearch&&n?m.label:void 0);}})):y(d(o),!1,void 0)),h||(this._notice||(this._notice={text:tl(n?s.noResultsText:s.noChoicesText),type:n?xe.noResults:xe.noChoices}),u.replaceChildren("")),this._renderNotice(u),this.choiceList.element.replaceChildren(u),h&&this._highlightChoice();}},t.prototype._renderItems=function(){var e=this,i=this._store.items||[],s=this.itemList.element,n=this.config,r=document.createDocumentFragment(),a=function(d){return s.querySelector('[data-item][data-id="'.concat(d.id,'"]'))},o=function(d){var h=d.itemEl;h&&h.parentElement||(h=a(d)||e._templates.item(n,d,n.removeItemButton),d.itemEl=h,r.appendChild(h));};i.forEach(o);var l=!!r.childNodes.length;if(this._isSelectOneElement&&this._hasNonChoicePlaceholder){var c=s.children.length;if(l||c>1){var u=s.querySelector(_i(n.classNames.placeholder));u&&u.remove();}else c||(l=!0,o(et({selected:!0,value:"",label:n.placeholderValue||"",placeholder:!0},!1)));}l&&(s.append(r),n.shouldSortItems&&!this._isSelectOneElement&&(i.sort(n.sorter),i.forEach(function(d){var h=a(d);h&&(h.remove(),r.append(h));}),s.append(r))),this._isTextElement&&(this.passedElement.value=i.map(function(d){var h=d.value;return h}).join(n.delimiter));},t.prototype._displayNotice=function(e,i,s){s===void 0&&(s=!0);var n=this._notice;if(n&&(n.type===i&&n.text===e||n.type===xe.addChoice&&(i===xe.noResults||i===xe.noChoices))){s&&this.showDropdown(!0);return}this._clearNotice(),this._notice=e?{text:e,type:i}:void 0,this._renderNotice(),s&&e&&this.showDropdown(!0);},t.prototype._clearNotice=function(){if(this._notice){var e=this.choiceList.element.querySelector(_i(this.config.classNames.notice));e&&e.remove(),this._notice=void 0;}},t.prototype._renderNotice=function(e){var i=this._notice;if(i){var s=this._templates.notice(this.config,i.text,i.type);e?e.append(s):this.choiceList.prepend(s);}},t.prototype._getChoiceForOutput=function(e,i){return {id:e.id,highlighted:e.highlighted,labelClass:e.labelClass,labelDescription:e.labelDescription,customProperties:e.customProperties,disabled:e.disabled,active:e.active,label:e.label,placeholder:e.placeholder,value:e.value,groupValue:e.group?e.group.label:void 0,element:e.element,keyCode:i}},t.prototype._triggerChange=function(e){e!=null&&this.passedElement.triggerEvent(Pe.change,{value:e});},t.prototype._handleButtonAction=function(e){var i=this,s=this._store.items;if(!(!s.length||!this.config.removeItems||!this.config.removeItemButton)){var n=e&&Cn(e.parentElement),r=n&&s.find(function(a){return a.id===n});r&&this._store.withTxn(function(){if(i._removeItem(r),i._triggerChange(r.value),i._isSelectOneElement&&!i._hasNonChoicePlaceholder){var a=i._store.choices.reverse().find(function(o){return !o.disabled&&o.placeholder});a&&(i._addItem(a),i.unhighlightAll(),a.value&&i._triggerChange(a.value));}});}},t.prototype._handleItemAction=function(e,i){var s=this;i===void 0&&(i=!1);var n=this._store.items;if(!(!n.length||!this.config.removeItems||this._isSelectOneElement)){var r=Cn(e);r&&(n.forEach(function(a){a.id===r&&!a.highlighted?s.highlightItem(a):!i&&a.highlighted&&s.unhighlightItem(a);}),this.input.focus());}},t.prototype._handleChoiceAction=function(e){var i=this,s=Cn(e),n=s&&this._store.getChoiceById(s);if(!n||n.disabled)return !1;var r=this.dropdown.isActive;if(!n.selected){if(!this._canAddItems())return !0;
19this._store.withTxn(function(){i._addItem(n,!0,!0),i.clearInput(),i.unhighlightAll();}),this._triggerChange(n.value);}return r&&this.config.closeDropdownOnSelect&&(this.hideDropdown(!0),this.containerOuter.element.focus()),!0},t.prototype._handleBackspace=function(e){var i=this.config;if(!(!i.removeItems||!e.length)){var s=e[e.length-1],n=e.some(function(r){return r.highlighted});i.editItems&&!n&&s?(this.input.value=s.value,this.input.setWidth(),this._removeItem(s),this._triggerChange(s.value)):(n||this.highlightItem(s,!1),this.removeHighlightedItems(!0));}},t.prototype._loadChoices=function(){var e,i=this,s=this.config;if(this._isTextElement){if(this._presetChoices=s.items.map(function(a){return et(a,!1)}),this.passedElement.value){var n=this.passedElement.value.split(s.delimiter).map(function(a){return et(a,!1,i.config.allowHtmlUserInput)});this._presetChoices=this._presetChoices.concat(n);}this._presetChoices.forEach(function(a){a.selected=!0;});}else if(this._isSelectElement){this._presetChoices=s.choices.map(function(a){return et(a,!0)});var r=this.passedElement.optionsAsChoices();r&&(e=this._presetChoices).push.apply(e,r);}},t.prototype._handleLoadingState=function(e){e===void 0&&(e=!0);var i=this.itemList.element;e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?i.replaceChildren(this._templates.placeholder(this.config,this.config.loadingText)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?(i.replaceChildren(""),this._render()):this.input.placeholder=this._placeholderValue||"");},t.prototype._handleSearch=function(e){if(this.input.isFocussed)if(e!==null&&typeof e<"u"&&e.length>=this.config.searchFloor){var i=this.config.searchChoices?this._searchChoices(e):0;i!==null&&this.passedElement.triggerEvent(Pe.search,{value:e,resultCount:i});}else this._store.choices.some(function(s){return !s.active})&&this._stopSearch();},t.prototype._canAddItems=function(){var e=this.config,i=e.maxItemCount,s=e.maxItemText;return !e.singleModeForMultiSelect&&i>0&&i<=this._store.items.length?(this.choiceList.element.replaceChildren(""),this._notice=void 0,this._displayNotice(typeof s=="function"?s(i):s,xe.addChoice),!1):!0},t.prototype._canCreateItem=function(e){var i=this.config,s=!0,n="";if(s&&typeof i.addItemFilter=="function"&&!i.addItemFilter(e)&&(s=!1,n=Si(i.customAddItemText,e)),s){var r=this._store.choices.find(function(a){return i.valueComparer(a.value,e)});if(this._isSelectElement){if(r)return this._displayNotice("",xe.addChoice),!1}else this._isTextElement&&!i.duplicateItemsAllowed&&r&&(s=!1,n=Si(i.uniqueItemText,e));}return s&&(n=Si(i.addItemText,e)),n&&this._displayNotice(n,xe.addChoice),s},t.prototype._searchChoices=function(e){var i=e.trim().replace(/\s{2,}/," ");if(!i.length||i===this._currentValue)return null;var s=this._searcher;s.isEmptyIndex()&&s.index(this._store.searchableChoices);var n=s.search(i);this._currentValue=i,this._highlightPosition=0,this._isSearching=!0;var r=this._notice,a=r&&r.type;return a!==xe.addChoice&&(n.length?this._clearNotice():this._displayNotice(tl(this.config.noResultsText),xe.noResults)),this._store.dispatch(Hu(n)),n.length},t.prototype._stopSearch=function(){this._isSearching&&(this._currentValue="",this._isSearching=!1,this._clearNotice(),this._store.dispatch(zu(!0)),this.passedElement.triggerEvent(Pe.search,{value:"",resultCount:0}));},t.prototype._addEventListeners=function(){var e=this._docRoot,i=this.containerOuter.element,s=this.input.element;e.addEventListener("touchend",this._onTouchEnd,!0),i.addEventListener("keydown",this._onKeyDown,!0),i.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(i.addEventListener("focus",this._onFocus,{passive:!0}),i.addEventListener("blur",this._onBlur,{passive:!0})),s.addEventListener("keyup",this._onKeyUp,{passive:!0}),s.addEventListener("input",this._onInput,{passive:!0}),s.addEventListener("focus",this._onFocus,{passive:!0}),s.addEventListener("blur",this._onBlur,{passive:!0}),s.form&&s.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners();},t.prototype._removeEventListeners=function(){var e=this._docRoot,i=this.containerOuter.element,s=this.input.element;e.removeEventListener("touchend",this._onTouchEnd,!0),i.removeEventListener("keydown",this._onKeyDown,!0),i.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(i.removeEventListener("focus",this._onFocus),i.removeEventListener("blur",this._onBlur)),s.removeEventListener("keyup",this._onKeyUp),s.removeEventListener("input",this._onInput),s.removeEventListener("focus",this._onFocus),s.removeEventListener("blur",this._onBlur),s.form&&s.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners();},t.prototype._onKeyDown=function(e){var i=e.keyCode,s=this.dropdown.isActive,n=e.key.length===1||e.key.length===2&&e.key.charCo
19deAt(0)>=55296||e.key==="Unidentified";switch(!this._isTextElement&&!s&&i!==Te.ESC_KEY&&i!==Te.TAB_KEY&&i!==Te.SHIFT_KEY&&(this.showDropdown(),!this.input.isFocussed&&n&&(this.input.value+=e.key,e.key===" "&&e.preventDefault())),i){case Te.A_KEY:return this._onSelectKey(e,this.itemList.element.hasChildNodes());case Te.ENTER_KEY:return this._onEnterKey(e,s);case Te.ESC_KEY:return this._onEscapeKey(e,s);case Te.UP_KEY:case Te.PAGE_UP_KEY:case Te.DOWN_KEY:case Te.PAGE_DOWN_KEY:return this._onDirectionKey(e,s);case Te.DELETE_KEY:case Te.BACK_KEY:return this._onDeleteKey(e,this._store.items,this.input.isFocussed)}},t.prototype._onKeyUp=function(){this._canSearch=this.config.searchEnabled;},t.prototype._onInput=function(){var e=this.input.value;if(!e){this._isTextElement?this.hideDropdown(!0):this._stopSearch();return}this._canAddItems()&&(this._canSearch&&this._handleSearch(e),this._canAddUserChoices&&(this._canCreateItem(e),this._isSelectElement&&(this._highlightPosition=0,this._highlightChoice())));},t.prototype._onSelectKey=function(e,i){if((e.ctrlKey||e.metaKey)&&i){this._canSearch=!1;var s=this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement;s&&this.highlightAll();}},t.prototype._onEnterKey=function(e,i){var s=this,n=this.input.value,r=e.target;if(e.preventDefault(),r&&r.hasAttribute("data-button")){this._handleButtonAction(r);return}if(!i){(this._isSelectElement||this._notice)&&this.showDropdown();return}var a=this.dropdown.element.querySelector(_i(this.config.classNames.highlightedState));if(!(a&&this._handleChoiceAction(a))){if(!r||!n){this.hideDropdown(!0);return}if(this._canAddItems()){var o=!1;this._store.withTxn(function(){if(o=s._findAndSelectChoiceByValue(n,!0),!o){if(!s._canAddUserChoices||!s._canCreateItem(n))return;s._addChoice(et(n,!1,s.config.allowHtmlUserInput),!0,!0),o=!0;}s.clearInput(),s.unhighlightAll();}),o&&(this._triggerChange(n),this.config.closeDropdownOnSelect&&this.hideDropdown(!0));}}},t.prototype._onEscapeKey=function(e,i){i&&(e.stopPropagation(),this.hideDropdown(!0),this._stopSearch(),this.containerOuter.element.focus());},t.prototype._onDirectionKey=function(e,i){var s=e.keyCode;if(i||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var n=s===Te.DOWN_KEY||s===Te.PAGE_DOWN_KEY?1:-1,r=e.metaKey||s===Te.PAGE_DOWN_KEY||s===Te.PAGE_UP_KEY,a=void 0;if(r)n>0?a=this.dropdown.element.querySelector("".concat(Ei,":last-of-type")):a=this.dropdown.element.querySelector(Ei);else {var o=this.dropdown.element.querySelector(_i(this.config.classNames.highlightedState));o?a=Wu(o,Ei,n):a=this.dropdown.element.querySelector(Ei);}a&&(qu(a,this.choiceList.element,n)||this.choiceList.scrollToChildElement(a,n),this._highlightChoice(a)),e.preventDefault();}},t.prototype._onDeleteKey=function(e,i,s){!this._isSelectOneElement&&!e.target.value&&s&&(this._handleBackspace(i),e.preventDefault());},t.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1);},t.prototype._onTouchEnd=function(e){var i=(e||e.touches[0]).target,s=this._wasTap&&this.containerOuter.element.contains(i);if(s){var n=i===this.containerOuter.element||i===this.containerInner.element;n&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation();}this._wasTap=!0;},t.prototype._onMouseDown=function(e){var i=e.target;if(i instanceof HTMLElement){if(Jf&&this.choiceList.element.contains(i)){var s=this.choiceList.element.firstElementChild;this._isScrollingOnIe=this._direction==="ltr"?e.offsetX>=s.offsetWidth:e.offsetX<s.offsetLeft;}if(i!==this.input.element){var n=i.closest("[data-button],[data-item],[data-choice]");n instanceof HTMLElement&&("button"in n.dataset?this._handleButtonAction(n):"item"in n.dataset?this._handleItemAction(n,e.shiftKey):"choice"in n.dataset&&this._handleChoiceAction(n)),e.preventDefault();}}},t.prototype._onMouseOver=function(e){var i=e.target;i instanceof HTMLElement&&"choice"in i.dataset&&this._highlightChoice(i);},t.prototype._onClick=function(e){var i=e.target,s=this.containerOuter,n=s.element.contains(i);n?!this.dropdown.isActive&&!s.isDisabled?this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),s.element.focus()):this._isSelectOneElement&&i!==this.input.element&&!this.dropdown.element.contains(i)&&this.hideDropdown():(s.removeFocusState(),this.hideDropdown(!0),this.unhighlightAll());},t.prototype._onFocus=function(e){var i=e.target,s=this.containerOuter,n=i&&s.element.contains(i);if(n){var r=i===this.input.element;this._isTextElement?r&&s.addFocusState():this._isSelectMultipleElement?r&&(this.showDropdown(!0),s.addFocusState()):(s.addFocusState(),r&&this.showDropdown(!0));}},t.prototype._onBlur=function(e){var i=e.target,s=this.containerOuter,n=i&&s.element.contains(i);n&&!this._isScrollingOnIe?i===this.input.element?(s.removeFocusState(),this.hideDropdown(!0),(this._isTextElement||this._isSelectMultipleElement)&&this.unhighlightAll()):i===this.containerOuter.element&&s.removeFocusState():(this._isScrollingOnIe=!1,this.input.element.focus());},t.prototype._onFormReset=function(){var e=this;this._store.withTxn(function(){e.clearInput(),e.hideDropdown(),e.refresh(!1,!1,!0),e._initialItems.length&&e.setChoiceByValue(e._initialItems);});},t.prototype._highlightChoice=function(e){e===void 0&&(e=null);var i=Array.from(this.dropdown.element.querySelectorAll(Ei));if(i.length){var s=e,n=this.config.classNames.highlightedState,r=Array.from(this.dropdown.element.querySelectorAll(_i(n)));r.forEach(function(a){tt(a,n),a.setAttribute("aria-selected","false");}),s?this._highlightPosition=i.indexOf(s):(i.length>this._highlightPosition?s=i[this._highlightPosition]:s=i[i.length-1],s||(s=i[0])),j(s,n),s.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(Pe.highlightChoice,{el:s}),this.dropdown.isActive&&(this.input.setActiveDescendant(s.id),this.containerOuter.setActiveDescendant(s.id));}},t.prototype._addItem=function(e,i,s){if(i===void 0&&(i=!0),s===void 0&&(s=!1),!e.id)throw new TypeError("item.id must be set before _addItem is called for a choice/item");(this.config.singleModeForMultiSelect||this._isSelectOneElement)&&this.removeActiveItems(e.id),this._store.dispatch(Bu(e)),i&&(this.passedElement.triggerEvent(Pe.addItem,this._getChoiceForOutput(e)),s&&this.passedElement.triggerEvent(Pe.choice,this._getChoiceForOutput(e)));},t.prototype._removeItem=function(e){if(e.id){this._store.dispatch(Jo(e));var i=this._notice;i&&i.type===xe.noChoices&&this._clearNotice(),this.passedElement.triggerEvent(Pe.removeItem,this._getChoiceForOutput(e));}},t.prototype._addChoice=function(e,i,s){if(i===void 0&&(i=!0),s===void 0&&(s=!1),e.id)throw new TypeError("Can not re-add a choice which has already been added");var n=this.config;if(!((this._isSelectElement||!n.duplicateItemsAllowed)&&this._store.choices.find(function(o){return n.valueComparer(o.value,e.value)}))){this._lastAddedChoiceId++,e.id=this._lastAddedChoiceId,e.elementId="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(e.id);var r=n.prependValue,a=n.appendValue;r&&(e.value=r+e.value),a&&(e.value+=a.toString()),(r||a)&&e.element&&(e.element.value=e.value),this._clearNotice(),this._store.dispatch(Ru(e)),e.selected&&this._addItem(e,i,s);}},t.prototype._addGroup=function(e,i){var s=this;if(i===void 0&&(i=!0),e.id)throw new TypeError("Can not re-add a group which has already been added");this._store.dispatch($u(e)),e.choices&&(this._lastAddedGroupId++,e.id=this._lastAddedGroupId,e.choices.forEac
19h(function(n){n.group=e,e.disabled&&(n.disabled=!0),s._addChoice(n,i);}));},t.prototype._createTemplates=function(){var e=this,i=this.config.callbackOnCreateTemplates,s={};typeof i=="function"&&(s=i.call(this,Ku,Vn,ps));var n={};Object.keys(this._templates).forEach(function(r){r in s?n[r]=s[r].bind(e):n[r]=e._templates[r].bind(e);}),this._templates=n;},t.prototype._createElements=function(){var e=this._templates,i=this,s=i.config,n=i._isSelectOneElement,r=s.position,a=s.classNames,o=this._elementType;this.containerOuter=new il({element:e.containerOuter(s,this._direction,this._isSelectElement,n,s.searchEnabled,o,s.labelId),classNames:a,type:o,position:r}),this.containerInner=new il({element:e.containerInner(s),classNames:a,type:o,position:r}),this.input=new tf({element:e.input(s,this._placeholderValue),classNames:a,type:o,preventPaste:!s.paste}),this.choiceList=new sl({element:e.choiceList(s,n)}),this.itemList=new sl({element:e.itemList(s,n)}),this.dropdown=new ef({element:e.dropdown(s),classNames:a,type:o});},t.prototype._createStructure=function(){var e=this,i=e.containerInner,s=e.containerOuter,n=e.passedElement,r=this.dropdown.element;n.conceal(),i.wrap(n.element),s.wrap(i.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":(this._placeholderValue&&(this.input.placeholder=this._placeholderValue),this.input.setWidth()),s.element.appendChild(i.element),s.element.appendChild(r),i.element.appendChild(this.itemList.element),r.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&r.insertBefore(this.input.element,r.firstChild):i.element.appendChild(this.input.element),this._highlightPosition=0,this._isSearching=!1;},t.prototype._initStore=function(){var e=this;this._store.subscribe(this._render).withTxn(function(){e._addPredefinedChoices(e._presetChoices,e._isSelectOneElement&&!e._hasNonChoicePlaceholder,!1);}),(!this._store.choices.length||this._isSelectOneElement&&this._hasNonChoicePlaceholder)&&this._render();},t.prototype._addPredefinedChoices=function(e,i,s){var n=this;if(i===void 0&&(i=!1),s===void 0&&(s=!0),i){var r=e.findIndex(function(a){return a.selected})===-1;r&&e.some(function(a){return a.disabled||"choices"in a?!1:(a.selected=!0,!0)});}e.forEach(function(a){"choices"in a?n._isSelectElement&&n._addGroup(a,s):n._addChoice(a,s);});},t.prototype._findAndSelectChoiceByValue=function(e,i){var s=this;i===void 0&&(i=!1);var n=this._store.choices.find(function(r){return s.config.valueComparer(r.value,e)});return n&&!n.disabled&&!n.selected?(this._addItem(n,!0,i),!0):!1},t.prototype._generatePlaceholderValue=function(){var e=this.config;if(!e.placeholder)return null;if(this._hasNonChoicePlaceholder)return e.placeholderValue;if(this._isSelectElement){var i=this.passedElement.placeholderOption;return i?i.text:null}return null},t.prototype._warnChoicesInitFailed=function(e){if(!this.config.silent)if(this.initialised){if(!this.initialisedOK)throw new TypeError("".concat(e," called for an element which has multiple instances of Choices initialised on it"))}else throw new TypeError("".concat(e," called on a non-initialised instance of Choices"))},t.version="11.0.3",t}();var tp=".cmp-form-options",xl=tp+"__field",ip=xl+"--drop-down",sp=xl+"--multi-drop-down",Gn=class extends W{async onMount(){this.field=this.findChild(ip),this.field&&this.initDropdown(!1),this.field=this.findChild(sp),this.field&&this.initDropdown(!0),this.setValidation();}setValidation(){let e=this.el.dataset.requiredMessage??"",i=this.el.querySelectorAll('input[type="checkbox"], input[type="radio"], select'),s=()=>{i.forEach(n=>{n.setCustomValidity(n.required&&n.validity.valueMissing?e:"");});};s(),i.forEach(n=>n.addEventListener("change",s));}initDropdown(e){let i={itemSelectText:""};e?i.removeItemButton=!0:i.searchEnabled=!1,this.field&&new Tl(this.field,i);}},np=Gn;var Un={};re(Un,{default:()=>lp});var rp="breakout",Cl="fullwidth",ap="overflow-hidden",op="on-top",qn=class extends W{async onMount(){this.iframe=this.el,this.footer=document.querySelector("footer"),this.footerHeight=this.footer?.clientHeight||0,this.preparePage(),this.updateIframe(),this.registerEvents();}registerEvents(){this.iframe.contentWindow?.addEventListener("scroll",()=>this.handleFooterPosition());}handleFooterPosition(){let e=this.iframe.contentWindow?.scrollY||0,i=this.iframe.contentWindow?.document.documentElement.scrollHeight||0,s=this.iframe.contentWindow?.innerHe
19ight||0,n=i-s-this.footerHeight;e>=n?this.adjustFooterAndGoUp(e-n):this.adjustFooterAndGoUp(0);}adjustFooterAndGoUp(e){this.footer&&(this.footer.style.transform=`translateY(-${e}px)`),this.iframe.contentDocument.querySelector(".page--home .flatnav")?.style.setProperty("bottom",`${e+15}px`);}updateIframe(){this.iframe.onload=()=>{let e=this.iframe.contentDocument?.body;e&&(e.style.paddingBottom=`${this.footerHeight}px`);};}preparePage(){document.body.classList.add(ap),this.applyClassChanges(".header.breakout",Cl),this.applyClassChanges(".footer.breakout",Cl),this.applyClassChanges("footer",op);}applyClassChanges(e,...i){let s=document.querySelector(e);s&&(s.classList.remove(rp),s.classList.add(...i));}},Il=qn;var Kn=class extends W{async onMount(){let e=this.findChild("iframe");!!e&&this.parent.classList.contains("fullwidth")&&this.parent.classList.contains("format--3")&&new Il(e,this.props);}},lp=Kn;var jn={};re(jn,{default:()=>pp});var Ll=".cmp-teaser",Ml=Ll+"__dialog",cp=Ml+"__closer",dp=Ll+"__action-link",up="melitta_teaserpopup_cookie",fp=1,Yn=class extends W{async onMount(){this.dialog=this.findChild(Ml),this.buttonCloser=this.findChild(cp),this.buttonsCTA=this.findChildren(dp),this.cookieKey=`${up}_id-${this.el?.id}_v-${this.dialog?.dataset?.contentVersion}`,this.shouldShow()&&!Jt()&&document.querySelector("[data-cmp=teaserpopup]")===this.parent&&this.dialog?.showModal();}registerEvents(){this.buttonCloser?.addEventListener("click",()=>{this.dialog?.close(),this.alreadyShown();}),this.buttonsCTA.forEach(e=>{e.addEventListener("click",()=>{this.dialog?.close(),this.alreadyShown();});});}shouldShow(){return !this.cookieKey||Qa(this.cookieKey)===void 0}alreadyShown(){this.cookieKey&&Za(this.cookieKey,1,fp);}},pp=Yn;var pr={};re(pr,{default:()=>Ph});function Al(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Xn(t,e){t===void 0&&(t={}),e===void 0&&(e={});let i=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>i.indexOf(s)<0).forEach(s=>{typeof t[s]>"u"?t[s]=e[s]:Al(e[s])&&Al(t[s])&&Object.keys(e[s]).length>0&&Xn(t[s],e[s]);});}var Pl={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return []},getElementById(){return null},createEvent(){return {initEvent(){}}},createElement(){return {children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return []}}},createElementNS(){return {}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function me(){let t=typeof document<"u"?document:{};return Xn(t,Pl),t}var hp={document:Pl,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return {getPropertyValue(){return ""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return {}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t);}};function ce(){let t=typeof window<"u"?window:{};return Xn(t,hp),t}function Ol(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Dl(t){let e=t;Object.keys(e).forEach(i=>{try{e[i]=null;}catch{}try{delete e[i];}catch{}});}function Dt(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Nt(){return Date.now()}function mp(t){let e=ce(),i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Qn(t,e){e===void 0&&(e="x");let i=ce(),s,n,r,a=mp(t);return i.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(o=>o.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix(n==="none"?"":n)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?n=r.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?n=r.m42:s.length===16?n=parseFloat(s[13]):n=parseFloat(s[5])),n||0}function xi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function gp(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function De(){let t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){let s=i<0||arguments.length<=i?void 0:arguments[i];if(s!=null&&!gp(s)){let n=Object.keys(Object(s)).filter(r=>e.indexOf(r)<0);for(let r=0,a=n.length;r<a;r+=1){let o=n[r],l=Object.getOwnPropertyDescriptor(s,o);l!==void 0&&l.enumerable&&(xi(t[o])&&xi(s[o])?s[o].__swiper__?t[o]=s[o]:De(t[o],s[o]):!xi(t[o
19])&&xi(s[o])?(t[o]={},s[o].__swiper__?t[o]=s[o]:De(t[o],s[o])):t[o]=s[o]);}}}return t}function ii(t,e,i){t.style.setProperty(e,i);}function Zn(t){let{swiper:e,targetPosition:i,side:s}=t,n=ce(),r=-e.translate,a=null,o,l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(e.cssModeFrameID);let c=i>r?"next":"prev",u=(h,y)=>c==="next"&&h>=y||c==="prev"&&h<=y,d=()=>{o=new Date().getTime(),a===null&&(a=o);let h=Math.max(Math.min((o-a)/l,1),0),y=.5-Math.cos(h*Math.PI)/2,m=r+y*(i-r);if(u(m,i)&&(m=i),e.wrapperEl.scrollTo({[s]:m}),u(m,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:m});}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(d);};d();}function ye(t,e){e===void 0&&(e="");let i=ce(),s=[...t.children];return i.HTMLSlotElement&&t instanceof HTMLSlotElement&&s.push(...t.assignedElements()),e?s.filter(n=>n.matches(e)):s}function vp(t,e){let i=[e];for(;i.length>0;){let s=i.shift();if(t===s)return !0;i.push(...s.children,...s.shadowRoot?s.shadowRoot.children:[],...s.assignedElements?s.assignedElements():[]);}}function Nl(t,e){let i=ce(),s=e.contains(t);return !s&&i.HTMLSlotElement&&e instanceof HTMLSlotElement&&(s=[...e.assignedElements()].includes(t),s||(s=vp(t,e))),s}function Ci(t){try{console.warn(t);return}catch{}}function je(t,e){e===void 0&&(e=[]);let i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Ol(e)),i}function kl(t,e){let i=[];for(;t.previousElementSibling;){let s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s;}return i}function Fl(t,e){let i=[];for(;t.nextElementSibling;){let s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s;}return i}function ut(t,e){return ce().getComputedStyle(t,null).getPropertyValue(e)}function kt(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function si(t,e){let i=[],s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function Ii(t,e,i){let s=ce();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function de(t){return (Array.isArray(t)?t:[t]).filter(e=>!!e)}var Jn;function yp(){let t=ce(),e=me();return {smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Vl(){return Jn||(Jn=yp()),Jn}var er;function bp(t){let{userAgent:e}=t===void 0?{}:t,i=Vl(),s=ce(),n=s.navigator.platform,r=e||s.navigator.userAgent,a={ios:!1,android:!1},o=s.screen.width,l=s.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/),u=r.match(/(iPad).*OS\s([\d_]+)/),d=r.match(/(iPod)(.*OS\s([\d_]+))?/),h=!u&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),y=n==="Win32",m=n==="MacIntel",_=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return !u&&m&&i.touch&&_.indexOf(`${o}x${l}`)>=0&&(u=r.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),m=!1),c&&!y&&(a.os="android",a.android=!0),(u||h||d)&&(a.os="ios",a.ios=!0),a}function Gl(t){return t===void 0&&(t={}),er||(er=bp(t)),er}var tr;function _p(){let t=ce(),e=Gl(),i=!1;function s(){let o=t.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(s()){let o=String(t.navigator.userAgent);if(o.includes("Version/")){let[l,c]=o.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));i=l<16||l===16&&c<2;}}let n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),r=s(),a=r||n&&e.ios;return {isSafari:i||r,needPerspectiveFix:i,need3dFix:a,isWebView:n}}function Wl(){return tr||(tr=_p()),tr}function Ep(t){let{swiper:e,on:i,emit:s}=t,n=ce(),r=null,a=null,o=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"));},l=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(d=>{a=n.requestAnimationFrame(()=>{let{width:h,height:y}=e,m=h,_=y;d.forEach(S=>{let{contentBoxSize:E,contentRect:v,target:b}=S;b&&b!==e.el||(m=v?v.width:(E[0]||E).inlineSize,_=v?v.height:(E[0]||E).blockSize);}),(m!==h||_!==y)&&o();});}),r.observe(e.el));},c=()=>{a&&n.cancelAnimationFrame(a),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null);},u=()=>{!e||e.destroyed||!e.initialized||s("orientationchange");};i("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){l();return}n.addEventListener("resize",o),n.addEventListener("orientationchange",u);}),i("destroy",()=>{c(),n.removeEventListener("resize",o),n.removeEventListener("orientationchange",u);});}function wp(t){let{swiper:e,extendParams:i,on:s,emit:n}=t,r=[],a=ce(),o=function(u,d){d===void 0&&(d={});let h=a.MutationObserver||a.WebkitMutationObserver,y=new h(m=>{if(e.__preventObserver__)return;if(m.length===1){n("observerUpdate",m[0]);return}let _=function(){n("observerUpdate",m[0]);};a.requestAnimationFrame?a.requestAnimationFrame(_):a.setTimeout(_,0);});y.observe(u,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:e.isElement||(typeof d.childList>"u"?!0:d).childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),r.push(y);},l=()=>{if(e.params.observer){if(e.params.observeParents){let u=si(e.hostEl);for(let d=0;d<u.length;d+=1)o(u[d]);}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1});}},c=()=>{r.forEach(u=>{u.disconnect();}),r.splice(0,r.length);};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",l),s("destroy",c);}var Sp={on(t,e,i){let s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;let n=i?"unshift":"push";return t.split(" ").forEach(r=>{s.eventsListeners[r]||(s.eventsListeners[r]=[]),s.eventsListeners[r][n](e);}),s},once(t,e,i){let s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function n(){s.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];e.apply(s,a);}return n.__emitterProxy=e,s.on(t,n,i)},onAny(t,e){let i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;let s=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[s](t),i},offAny(t){let e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;let i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){let i=this;return !i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEac
vendor: 3,022 bytes, line 19
19h((n,r)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[s].splice(r,1);});}),i},emit(){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return typeof r[0]=="string"||Array.isArray(r[0])?(e=r[0],i=r.slice(1,r.length),s=t):(e=r[0].events,i=r[0].data,s=r[0].context||t),i.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(s,[l,...i]);}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(s,i);});}),t}};function Tp(){let t=this,e,i,s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ut(s,"padding-left")||0,10)-parseInt(ut(s,"padding-right")||0,10),i=i-parseInt(ut(s,"padding-top")||0,10)-parseInt(ut(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}));}function xp(){let t=this;function e(A,M){return parseFloat(A.getPropertyValue(t.getDirectionLabel(M))||0)}let i=t.params,{wrapperEl:s,slidesEl:n,size:r,rtlTranslate:a,wrongRTL:o}=t,l=t.virtual&&i.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,u=ye(n,`.${t.params.slideClass}, swiper-slide`),d=l?t.virtual.slides.length:u.length,h=[],y=[],m=[],_=i.slidesOffsetBefore;typeof _=="function"&&(_=i.slidesOffsetBefore.call(t));let S=i.slidesOffsetAfter;typeof S=="function"&&(S=i.slidesOffsetAfter.call(t));let E=t.snapGrid.length,v=t.slidesGrid.length,b=i.spaceBetween,T=-_,L=0,P=0;if(typeof r>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*r:typeof b=="string"&&(b=parseFloat(b)),t.virtualSize=-b,u.forEach(A=>{a?A.style.marginLeft="":A.style.marginRight="",A.style.marginBottom="",A.style.marginTop="";}),i.centeredSlides&&i.cssMode&&(ii(s,"--swiper-centered-offset-before",""),ii(s,"--swiper-centered-offset-after",""));let R=i.grid&&i.grid.rows>1&&t.grid;R?t.grid.initSlides(u):t.grid&&t.grid.unsetSlides();let g,k=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(A=>typeof i.breakpoints[A].slidesPerView<"u").length>0;for(let A=0;A<d;A+=1){g=0;let M;if(u[A]&&(M=u[A]),R&&t.grid.updateSlide(A,M,u),!(u[A]&&ut(M,"display")==="none")){if(i.slidesPerView==="auto"){k&&(u[A].style[t.getDirectionLabel("width")]="");let $=getComputedStyle(M),F=M.style.transform,O=M.style.webkitTransform;if(F&&(M.style.transform="none"),O&&(M.style.webkitTransform="none"),i.roundLengths)g=t.isHorizontal()?Ii(M,"width",!0):Ii(M,"height",!0);else {let H=e($,"width"),x=e($,"padding-left"),B=e($,"padding-right"),N=e($,"margin-left"),V=e($,"margin-right"),G=$.getPropertyValue("box-sizing");if(G&&G==="border-box")g=H+N+V;else {let{clientWidth:X,offsetWidth:ie}=M;g=H+x+B+N+V+(ie-X);}}
19F&&(M.style.transform=F),O&&(M.style.webkitTransform=O),i.roundLengths&&(g=Math.floor(g));}else g=(r-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(g=Math.floor(g)),u[A]&&(u[A].style[t.getDirectionLabel("width")]=`${g}px`);u[A]&&(u[A].swiperSlideSize=g),m.push(g),i.centeredSlides?(T=T+g/2+L/2+b,L===0&&A!==0&&(T=T-r/2-b),A===0&&(T=T-r/2-b),Math.abs(T)<1/1e3&&(T=0),i.roundLengths&&(T=Math.floor(T)),P%i.slidesPerGroup===0&&h.push(T),y.push(T)):(i.roundLengths&&(T=Math.floor(T)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&h.push(T),y.push(T),T=T+g+b),t.virtualSize+=g+b,L=g,P+=1;}}if(t.virtualSize=Math.max(t.virtualSize,r)+S,a&&o&&(i.effect==="slide"||i.effect==="coverflow")&&(s.style.width=`${t.virtualSize+b}px`),i.setWrapperSize&&(s.style[t.getDirectionLabel("width")]=`${t.virtualSize+b}px`),R&&t.grid.updateWrapperSize(g,h),!i.centeredSlides){let A=[];for(let M=0;M<h.length;M+=1){let $=h[M];i.roundLengths&&($=Math.floor($)),h[M]<=t.virtualSize-r&&A.push($);}h=A,Math.floor(t.virtualSize-r)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-r);}if(l&&i.loop){let A=m[0]+b;if(i.slidesPerGroup>1){let M=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),$=A*i.slidesPerGroup;for(let F=0;F<M;F+=1)h.push(h[h.length-1]+$);}for(let M=0;M<t.virtual.slidesBefore+t.virtual.slidesAfter;M+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+A),y.push(y[y.length-1]+A),t.virtualSize+=A;}if(h.length===0&&(h=[0]),b!==0){let A=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");u.filter((M,$)=>!i.cssMode||i.loop?!0:$!==u.length-1).forEach(M=>{M.style[A]=`${b}px`;});}if(i.centeredSlides&&i.centeredSlidesBounds){let A=0;m.forEach($=>{A+=$+(b||0);}),A-=b;let M=A>r?A-r:0;h=h.map($=>$<=0?-_:$>M?M+S:$);}if(i.centerInsufficientSlides){let A=0;m.forEach($=>{A+=$+(b||0);}),A-=b;let M=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(A+M<r){let $=(r-A-M)/2;h.forEach((F,O)=>{h[O]=F-$;}),y.forEach((F,O)=>{y[O]=F+$;});}}if(Object.assign(t,{slides:u,snapGrid:h,slidesGrid:y,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){ii(s,"--swiper-centered-offset-before",`${-h[0]}px`),ii(s,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);let A=-t.snapGrid[0],M=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map($=>$+A),t.slidesGrid=t.slidesGrid.map($=>$+M);}if(d!==c&&t.emit("slidesLengthChange"),h.length!==E&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),y.length!==v&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){let A=`${i.containerModifierClass}backface-hidden`,M=t.el.classList.contains(A);d<=i.maxBackfaceHiddenSlides?M||t.el.classList.add(A):M&&t.el.classList.remove(A);}}function Cp(t){let e=this,i=[],s=e.virtual&&e.params.virtual.enabled,n=0,r;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);let a=o=>s?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{i.push(o);});else for(r=0;r<Math.ceil(e.params.slidesPerView);r+=1){let o=e.activeIndex+r;if(o>e.slides.length&&!s)break;i.push(a(o));}else i.push(a(e.activeIndex));for(r=0;r<i.length;r+=1)if(typeof i[r]<"u"){let o=i[r].offsetHeight;n=o>n?o:n;}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`);}function Ip(){let t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s<e.length;s+=1)e[s].swiperSlideOffset=(t.isHorizontal()?e[s].offsetLeft:e[s].offsetTop)-i-t.cssOverflowAdjustment();}var Rl=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i);};function Lp(t){t===void 0&&(t=this&&this.translate||0);let e=this,i=e.params,{slides:s,rtlTranslate:n,snapGrid:r}=e;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;n&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=i.spaceBetween;
19typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l<s.length;l+=1){let c=s[l],u=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(u-=s[0].swiperSlideOffset);let d=(a+(i.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+o),h=(a-r[0]+(i.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+o),y=-(a-u),m=y+e.slidesSizesGrid[l],_=y>=0&&y<=e.size-e.slidesSizesGrid[l],S=y>=0&&y<e.size-1||m>1&&m<=e.size||y<=0&&m>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l)),Rl(c,S,i.slideVisibleClass),Rl(c,_,i.slideFullyVisibleClass),c.progress=n?-d:d,c.originalProgress=n?-h:h;}}function Mp(t){let e=this;if(typeof t>"u"){let u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0;}let i=e.params,s=e.maxTranslate()-e.minTranslate(),{progress:n,isBeginning:r,isEnd:a,progressLoop:o}=e,l=r,c=a;if(s===0)n=0,r=!0,a=!0;else {n=(t-e.minTranslate())/s;let u=Math.abs(t-e.minTranslate())<1,d=Math.abs(t-e.maxTranslate())<1;r=u||n<=0,a=d||n>=1,u&&(n=0),d&&(n=1);}if(i.loop){let u=e.getSlideIndexByData(0),d=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[u],y=e.slidesGrid[d],m=e.slidesGrid[e.slidesGrid.length-1],_=Math.abs(t);_>=h?o=(_-h)/m:o=(_+m-y)/m,o>1&&(o-=1);}Object.assign(e,{progress:n,progressLoop:o,isBeginning:r,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!a)&&e.emit("fromEdge"),e.emit("progress",n);}var ir=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i);};function Ap(){let t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,r=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,o=d=>ye(s,`.${i.slideClass}${d}, swiper-slide${d}`)[0],l,c,u;if(r)if(i.loop){let d=n-t.virtual.slidesBefore;d<0&&(d=t.virtual.slides.length+d),d>=t.virtual.slides.length&&(d-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${d}"]`);}else l=o(`[data-swiper-slide-index="${n}"]`);else a?(l=e.find(d=>d.column===n),u=e.find(d=>d.column===n+1),c=e.find(d=>d.column===n-1)):l=e[n];l&&(a||(u=Fl(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u&&(u=e[0]),c=kl(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(d=>{ir(d,d===l,i.slideActiveClass),ir(d,d===u,i.slideNextClass),ir(d,d===c,i.slidePrevClass);}),t.emitSlidesClasses();}var hs=(t,e)=>{if(!t||t.destroyed||!t.params)return;let i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(i());if(s){let n=s.querySelector(`.${t.params.lazyPreloaderClass}`);!n&&t.isElement&&(s.shadowRoot?n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),n&&n.remove());})),n&&n.remove();}},sr=(t,e)=>{if(!t.slides[e])return;let i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading");},ar=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext,i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);let s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){let a=n,o=[a-e];o.push(...Array.from({length:e}).map((l,c)=>a+s+c)),t.slides.forEach((l,c)=>{o.includes(l.column)&&sr(t,c);});return}let r=n+s-1;if(t.params.rewind||t.params.loop)for(let a=n-e;a<=r+e;a+=1){let o=(a%i+i)%i;(o<n||o>r)&&sr(t,o);}else for(let a=Math.max(n-e,0);a<=Math.min(r+e,i-1);a+=1)a!==n&&(a>r||a<n)&&sr(t,a);};function Pp(t){let{slidesGrid:e,params:i}=t,s=t.rtlTranslate?t.translate:-t.translate,n;for(let r=0;r<e.length;r+=1)typeof e[r+1]<"u"?s>=e[r]&&s<e[r+1]-(e[r+1]-e[r])/2?n=r:s>=e[r]&&s<e[r+1]&&(n=r+1):s>=e[r]&&(n=r);return i.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function Op(t){let e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:a,snapIndex:o}=e,l=t,c,u=y=>{let m=y-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof l>"u"&&(l=Pp(e)),s.indexOf(i)>=0)c=s.indexOf(i);else {let y=Math.min(n.slidesPerGroupSkip,l);c=y+Math.floor((l-y)/n.slidesPerGroup);}if(c>=s.length&&(c=s.length-1),l===r&&!e.params.loop){c!==o&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===r&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=u(l);return}let d=e.grid&&n.grid&&n.grid.rows>1,h;if(e.virtual&&n.virtual.enabled&&n.loop)h=u(l);else if(d){let y=e.slides.find(_=>_.column===l),m=parseInt(y.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(y),0)),h=Math.floor(m/n.grid.rows);}else if(e.slides[l]){let y=e.slides[l].getAttribute("data-swiper-slide-index");y?h=parseInt(y,10):h=l;}else h=l;Object.assign(e,{previousSnapIndex:o,snapIndex:c,previousRealIndex:a,realIndex:h,previousIndex:r,activeIndex:l}),e.initialized&&ar(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==h&&e.emit("realIndexChange"),e.emit("slideChange"));}function Dp(t,e){let i=this,s=i.params,n=t.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&e&&e.length>
vendor: 5,561 bytes, line 19
191&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!n&&o.matches&&o.matches(`.${s.slideClass}, swiper-slide`)&&(n=o);});let r=!1,a;if(n){for(let o=0;o<i.slides.length;o+=1)if(i.slides[o]===n){r=!0,a=o;break}}if(n&&r)i.clickedSlide=n,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else {i.clickedSlide=void 0,i.clickedIndex=void 0;return}s.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide();}var Np={updateSize:Tp,updateSlides:xp,updateAutoHeight:Cp,updateSlidesOffset:Ip,updateSlidesProgress:Lp,updateProgress:Mp,updateSlidesClasses:Ap,updateActiveIndex:Op,updateClickedSlide:Dp};function kp(t){t===void 0&&(t=this.isHorizontal()?"x":"y");let e=this,{params:i,rtlTranslate:s,translate:n,wrapperEl:r}=e;if(i.virtualTranslate)return s?-n:n;if(i.cssMode)return n;let a=Qn(r,t);return a+=e.cssOverflowAdjustment(),s&&(a=-a),a||0}function Fp(t,e){let i=this,{rtlTranslate:s,params:n,wrapperEl:r,progress:a}=i,o=0,l=0,c=0;i.isHorizontal()?o=s?-t:t:l=t,n.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:l,n.cssMode?r[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-o:-l:n.virtualTranslate||(i.isHorizontal()?o-=i.cssOverflowAdjustment():l-=i.cssOverflowAdjustment(),r.style.transform=`translate3d(${o}px, ${l}px, ${c}px)`);let u,d=i.maxTranslate()-i.minTranslate();d===0?u=0:u=(t-i.minTranslate())/d,u!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e);}function Rp(){return -this.snapGrid[0]}function Hp(){return -this.snapGrid[this.snapGrid.length-1]}function zp(t,e,i,s,n){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),s===void 0&&(s=!0);let r=this,{params:a,wrapperEl:o}=r;if(r.animating&&a.preventInteractionOnTransition)return !1;let l=r.minTranslate(),c=r.maxTranslate(),u;if(s&&t>l?u=l:s&&t<c?u=c:u=t,r.updateProgress(u),a.cssMode){let d=r.isHorizontal();if(e===0)o[d?"scrollLeft":"scrollTop"]=-u;else {if(!r.support.smoothScroll)return Zn({swiper:r,targetPosition:-u,side:d?"left":"top"}),!0;o.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"});}return !0}return e===0?(r.setTransition(0),r.setTranslate(u),i&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionEnd"))):(r.setTransition(e),r.setTranslate(u),i&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(h){!r||r.destroyed||h.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,i&&r.emit("transitionEnd"));}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}var $p={getTranslate:kp,setTranslate:Fp,minTranslate:Rp,maxTranslate:Hp,translateTo:zp};function Bp(t,e){let i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e);}function ql(t){let{swiper:e,runCallbacks:i,direction:s,step:n}=t,{activeIndex:r,previousIndex:a}=e,o=s;if(o||(r>a?o="next":r<a?o="prev":o="reset"),e.emit(`transition${n}`),i&&r!==a){if(o==="reset"){e.emit(`slideResetTransition${n}`);return}e.emit(`slideChangeTransition${n}`),o==="next"?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`);}}function Vp(t,e){t===void 0&&(t=!0);let i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),ql({swiper:i,runCallbacks:t,direction:e,step:"Start"}));}function Gp(t,e){t===void 0&&(t=!0);let i=this,{params:s}=i;i.animating=!1,!s.cssMode&&(i.setTransition(0),ql({swiper:i,runCallbacks:t,direction:e,step:"End"}));}var Wp={setTransition:Bp,transitionStart:Vp,transitionEnd:Gp};function qp(t,e,i,s,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));let r=this,a=t;a<0&&(a=0);let{params:o,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:h,wrapperEl:y,enabled:m}=r;if(!m&&!s&&!n||r.destroyed||r.animating&&o.preventInteractionOnTransition)return !1;typeof e>"u"&&(e=r.params.speed);let _=Math.min(r.params.slidesPerGroupSkip,a),S=_+Math.floor((a-_)/r.params.slidesPerGroup);S>=l.length&&(S=l.length-1);let E=-l[S];if(o.normalizeSlideIndex)for(let R=0;R<c.length;R+=1){let g=-Math.floor(E*100),k=Math.floor(c[R]*100),A=Math.floor(c[R+1]*100);typeof c[R+1]<"u"?g>=k&&g<A-(A-k)/2?a=R:g>=k&&g<A&&(a=R+1):g>=k&&(a=R);}if(r.initialized&&a!==d&&(!r.allowSlideNext&&(h?E>r.translate&&E>r.minTranslate():E<r.translate&&E<r.minTranslate())||!r.allowSlidePrev&&E>r.translate&&E>r.maxTranslate()&&(d||0)!==a))return !1;a!==(u||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(E);let v;a>d?v="next":a<d?v="prev":v="reset";let b=r.virtual&&r.params.virtual.enabled;if(!(b&&n)&&(h&&-E===r.translate||!h&&E===r.translate))return r.updateActiveIndex(a),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),o.effect!=="slide"&&r.setTranslate(E),v!=="reset"&&(r.transitionStart(i,v),r.transitionEnd(i,v)),!1;if(o.cssMode){let R=r.isHorizontal(),g=h?E:-E;if(e===0)b&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),b&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{y[R?"scrollLeft":"scrollTop"]=g;})):y[R?"scrollLeft":"scrollTop"]=g,b&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1;});
19else {if(!r.support.smoothScroll)return Zn({swiper:r,targetPosition:g,side:R?"left":"top"}),!0;y.scrollTo({[R?"left":"top"]:g,behavior:"smooth"});}return !0}let P=Wl().isSafari;return b&&!n&&P&&r.isElement&&r.virtual.update(!1,!1,a),r.setTransition(e),r.setTranslate(E),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(i,v),e===0?r.transitionEnd(i,v):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(g){!r||r.destroyed||g.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,v));}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function Kp(t,e,i,s){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));let n=this;if(n.destroyed)return;typeof e>"u"&&(e=n.params.speed);let r=n.grid&&n.params.grid&&n.params.grid.rows>1,a=t;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)a=a+n.virtual.slidesBefore;else {let o;if(r){let h=a*n.params.grid.rows;o=n.slides.find(y=>y.getAttribute("data-swiper-slide-index")*1===h).column;}
19else o=n.getSlideIndexByData(a);let l=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:c}=n.params,u=n.params.slidesPerView;u==="auto"?u=n.slidesPerViewDynamic():(u=Math.ceil(parseFloat(n.params.slidesPerView,10)),c&&u%2===0&&(u=u+1));let d=l-o<u;if(c&&(d=d||o<Math.ceil(u/2)),s&&c&&n.params.slidesPerView!=="auto"&&!r&&(d=!1),d){let h=c?o<n.activeIndex?"prev":"next":o-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?o+1:o-l+1,slideRealIndex:h==="next"?n.realIndex:void 0});}if(r){let h=a*n.params.grid.rows;a=n.slides.find(y=>y.getAttribute("data-swiper-slide-index")*1===h).column;}else a=n.getSlideIndexByData(a);}return requestAnimationFrame(()=>{n.slideTo(a,e,i,s);}),n}function Up(t,e,i){e===void 0&&(e=!0);let s=this,{enabled:n,params:r,animating:a}=s;if(!n||s.destroyed)return s;typeof t>"u"&&(t=s.params.speed);let o=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));let l=s.activeIndex<r.slidesPerGroupSkip?1:o,c=s.virtual&&r.virtual.enabled;if(r.loop){if(a&&!c&&r.loopPreventsSliding)return !1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+l,t,e,i);}),!0}return r.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+l,t,e,i)}function Yp(t,e,i){e===void 0&&(e=!0);let s=this,{params:n,snapGrid:r,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;typeof t>"u"&&(t=s.params.speed);let u=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!u&&n.loopPreventsSliding)return !1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft;}let d=o?s.translate:-s.translate;function h(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}let y=h(d),m=r.map(v=>h(v)),_=n.freeMode&&n.freeMode.enabled,S=r[m.indexOf(y)-1];if(typeof S>"u"&&(n.cssMode||_)){let v;r.forEach((b,T)=>{y>=b&&(v=T);}),typeof v<"u"&&(S=_?r[v]:r[v>0?v-1:v]);}let E=0;if(typeof S<"u"&&(E=a.indexOf(S),E<0&&(E=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(E=E-s.slidesPerViewDynamic("previous",!0)+1,E=Math.max(E,0))),n.rewind&&s.isBeginning){let v=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(v,t,e,i)}else if(n.loop&&s.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(E,t,e,i);}),!0;return s.slideTo(E,t,e,i)}function jp(t,e,i){e===void 0&&(e=!0);let s=this;if(!s.destroyed)return typeof t>"u"&&(t=s.params.speed),s.slideTo(s.activeIndex,t,e,i)}function Xp(t,e,i,s){e===void 0&&(e=!0),s===void 0&&(s=.5);let n=this;if(n.destroyed)return;typeof t>"u"&&(t=n.params.speed);let r=n.activeIndex,a=Math.min(n.params.slidesPerGroupSkip,r),o=a+Math.floor((r-a)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[o]){let c=n.snapGrid[o],u=n.snapGrid[o+1];l-c>(u-c)*s&&(r+=n.params.slidesPerGroup);}else {let c=n.snapGrid[o-1],u=n.snapGrid[o];l-c<=(u-c)*s&&(r-=n.params.slidesPerGroup);}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,t,e,i)}function Qp(){let t=this;if(t.destroyed)return;let{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView,n=t.clickedIndex,r,a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;r=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?n<t.loopedSlides-s/2||n>t.slides.length-t.loopedSlides+s/2?(t.loopFix(),n=t.getSlideIndex(ye(i,`${a}[data-swiper-slide-index="${r}"]`)[0]),Dt(()=>{t.slideTo(n);})):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=t.getSlideIndex(ye(i,`${a}[data-swiper-slide-index="${r}"]`)[0]),Dt(()=>{t.slideTo(n);})):t.slideTo(n);}else t.slideTo(n);}var Zp={slideTo:qp,slideToLoop:Kp,slideNext:Up,slidePrev:Yp,slideReset:jp,slideToClosest:Xp,slideToClickedSlide:Qp};function Jp(t,e){let i=this,{params:s,slidesEl:n}=i;if(!s.loop||i.virtual&&i.params.virtual.enabled)return;let r=()=>{ye(n,`.${s.slideClass}, swiper-slide`).forEach((h,y)=>{h.setAttribute("data-swiper-slide-index",y);});},a=i.grid&&s.grid&&s.grid.rows>1,o=s.slidesPerGroup*(a?s.grid.rows:1),l=i.slides.length%o!==0,c=a&&i.slides.length%s.grid.rows!==0,u=d=>{for(let h=0;h<d;h+=1){let y=i.isElement?je("swiper-slide",[s.slideBlankClass]):je("div",[s.slideClass,s.slideBlankClass]);i.slidesEl.append(y);}};if(l){if(s.loopAddBlankSlides){let d=o-i.slides.length%o;u(d),i.recalcSlides(),i.updateSlides();}else Ci("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may
19not function properly. You need to add more slides (or make duplicates, or empty slides)");r();}else if(c){if(s.loopAddBlankSlides){let d=s.grid.rows-i.slides.length%s.grid.rows;u(d),i.recalcSlides(),i.updateSlides();}else Ci("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r();}else r();i.loopFix({slideRealIndex:t,direction:s.centeredSlides?void 0:"next",initial:e});}function eh(t){let{slideRealIndex:e,slideTo:i=!0,direction:s,setTranslate:n,activeSlideIndex:r,initial:a,byController:o,byMousewheel:l}=t===void 0?{}:t,c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");let{slides:u,allowSlidePrev:d,allowSlideNext:h,slidesEl:y,params:m}=c,{centeredSlides:_,initialSlide:S}=m;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&m.virtual.enabled){i&&(!m.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):m.centeredSlides&&c.snapIndex<m.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=h,c.emit("loopFix");return}let E=m.slidesPerView;E==="auto"?E=c.slidesPerViewDynamic():(E=Math.ceil(parseFloat(m.slidesPerView,10)),_&&E%2===0&&(E=E+1));let v=m.slidesPerGroupAuto?E:m.slidesPerGroup,b=v;b%v!==0&&(b+=v-b%v),b+=m.loopAdditionalSlides,c.loopedSlides=b;let T=c.grid&&m.grid&&m.grid.rows>1;u.length<E+b||c.params.effect==="cards"&&u.length<E+b*2?Ci("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):T&&m.grid.fill==="row"&&Ci("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let L=[],P=[],R=T?Math.ceil(u.length/m.grid.rows):u.length,g=a&&R-S<E&&!_,k=g?S:c.activeIndex;typeof r>
19"u"?r=c.getSlideIndex(u.find(x=>x.classList.contains(m.slideActiveClass))):k=r;let A=s==="next"||!s,M=s==="prev"||!s,$=0,F=0,H=(T?u[r].column:r)+(_&&typeof n>"u"?-E/2+.5:0);if(H<b){$=Math.max(b-H,v);for(let x=0;x<b-H;x+=1){let B=x-Math.floor(x/R)*R;if(T){let N=R-B-1;for(let V=u.length-1;V>=0;V-=1)u[V].column===N&&L.push(V);}else L.push(R-B-1);}}else if(H+E>R-b){F=Math.max(H-(R-b*2),v),g&&(F=Math.max(F,E-R+S+1));for(let x=0;x<F;x+=1){let B=x-Math.floor(x/R)*R;T?u.forEach((N,V)=>{N.column===B&&P.push(V);}):P.push(B);}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1;}),c.params.effect==="cards"&&u.length<E+b*2&&(P.includes(r)&&P.splice(P.indexOf(r),1),L.includes(r)&&L.splice(L.indexOf(r),1)),M&&L.forEach(x=>{u[x].swiperLoopMoveDOM=!0,y.prepend(u[x]),u[x].swiperLoopMoveDOM=!1;}),A&&P.forEach(x=>{u[x].swiperLoopMoveDOM=!0,y.append(u[x]),u[x].swiperLoopMoveDOM=!1;}),c.recalcSlides(),m.slidesPerView==="auto"?c.updateSlides():T&&(L.length>0&&M||P.length>0&&A)&&c.slides.forEach((x,B)=>{c.grid.updateSlide(B,x,c.slides);}),m.watchSlidesProgress&&c.updateSlidesOffset(),i){if(L.length>0&&M){if(typeof e>"u"){let x=c.slidesGrid[k],N=c.slidesGrid[k+$]-x;l?c.setTranslate(c.translate-N):(c.slideTo(k+Math.ceil($),0,!1,!0),n&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-N,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-N));}else if(n){let x=T?L.length/m.grid.rows:L.length;c.slideTo(c.activeIndex+x,0,!1,!0),c.touchEventsData.currentTranslate=c.translate;}}else if(P.length>0&&A)if(typeof e>"u"){let x=c.slidesGrid[k],N=c.slidesGrid[k-F]-x;l?c.setTranslate(c.translate-N):(c.slideTo(k-F,0,!1,!0),n&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-N,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-N));}else {let x=T?P.length/m.grid.rows:P.length;c.slideTo(c.activeIndex-x,0,!1,!0);}}if(c.allowSlidePrev=d,c.allowSlideNext=h,c.controller&&c.controller.control&&!o){let x={slideRealIndex:e,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(B=>{!B.destroyed&&B.params.loop&&B.loopFix({...x,slideTo:B.params.slidesPerView===m.slidesPerView?i:!1});}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...x,slideTo:c.controller.control.params.slidesPerView===m.slidesPerView?i:!1});}c.emit("loopFix");}function th(){let t=this,{params:e,slidesEl:i}=t;if(!e.loop||!i||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();let s=[];t.slides.forEach(n=>{let r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;s[r]=n;}),t.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index");}),s.forEach(n=>{i.append(n);}),t.recalcSlides(),t.slideTo(t.realIndex,0);}var ih={loopCreate:Jp,loopFix:eh,loopDestroy:th};function sh(t){let e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;let i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1;});}function nh(){let t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1;}));}var rh={setGrabCursor:sh,unsetGrabCursor:nh};function ah(t,e){e===void 0&&(e=this);function i(s){if(!s||s===me()||s===ce())return null;s.assignedSlot&&(s=s.assignedSlot);let n=s.closest(t);return !n&&!s.getRootNode?null:n||i(s.getRootNode().host)}return i(e)}function Hl(t,e,i){let s=ce(),{params:n}=t,r=n.edgeSwipeDetection,a=n.edgeSwipeThreshold;return r&&(i<=a||i>=s.innerWidth-a)?r==="prevent"?(e.preventDefault(),!0):!1:!0}function oh(t){let e=this,i=me(),s=t;s.originalEvent&&(s=s.originalEvent);let n=e.touchEventsData;if(s.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==s.pointerId)return;n.pointerId=s.pointerId;}else s.type==="touchstart"&&s.targetTouches.length===1&&(n.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){Hl(e,s,s.targetTouches[0].pageX);return}let{params:r,touches:a,enabled:o}=e;if(!o||!r.simulateTouch&&s.pointerType==="mouse"||e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let l=s.target;if(r.touchEventsTarget==="wrapper"&&!Nl(l,e.wrapperEl)||"which"in s&&s.which===3||"button"in s&&s.button>0||n.isTouched&&n.isMoved)return;let c=!!r.noSwipingClass&&r.noSwipingClass!=="",u=s.composedPath?s.composedPath():s.path;c&&s.target&&s.target.shadowRoot&&u&&(l=u[0]);let d=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,h=!!(s.target&&s.target.shadowRoot);if(r.noSwiping&&(h?ah(d,l):l.closest(d))){e.allowClick=!0;return}if(r.swipeHandler&&!l.closest(r.swipeHandler))return;a.currentX=s.pageX,a.currentY=s.pageY;let y=a.currentX,m=a.currentY;if(!Hl(e,s,y))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=y,a.startY=m,n.touchStartTime=Nt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let _=!0;l.matches(n.focusableElements)&&(_=!1,l.nodeName==="SELECT"&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==l&&(s.pointerType==="mouse"||s.pointerType!=="mouse"&&!l.matches(n.focusableElements))&&i.activeElement.blur();let S=_&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||S)&&!l.isContentEditable&&s.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s);}function lh(t){let e=me(),i=this,s=i.touchEventsData,{params:n,touches:r,rtlTranslate:a,enabled:o}=i;if(!o||!n.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(s.touchId!==null||l.pointerId!==s.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(P=>P.identifier===s.touchId),!c||c.identifier!==s.touchId)return}else c=l;if(!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",l);return}let u=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){r.startX=u,r.startY=d;return}if(!i.allowTouchMove){l.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(r,{startX:u,startY:d,currentX:u,currentY:d}),s.touchStartTime=Nt());return}if(n.touchReleaseOnEdges&&!n.loop)if(i.isVertical()){if(d<r.startY&&i.translate<=i.maxTranslate()||d>r.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else {if(a&&(u>r.startX&&-i.translate<=i.maxTranslate()||u<r.startX&&-i.translate>=i.minTranslate()))return;if(!a&&(u<r.startX&&i.translate<=i.maxTranslate()||u>r.startX&&i.translate>=i.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(s.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}s.allowTouchCallbacks&&i.emit("touchMove",l),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=u,r.currentY=d;let h=r.currentX-r.startX,y=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(h**2+y**2)<i.params.threshold)return;if(typeof s.isScrolling>"u"){let P;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:h*h+y*y>=25&&(P=Math.atan2(Math.abs(y),Math.abs(h))*180/Math.PI,s.isScrolling=i.isHorizontal()?P>n.touchAngle:90-P>n.touchAngle);}if(s.isScrolling&&i.emit("touchMoveOpposite",l),typeof s.startMoving>
vendor: 4,759 bytes, line 19
19"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(s.startMoving=!0),s.isScrolling||l.type==="touchmove"&&s.preventTouchMoveFromPointerMove){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation();let m=i.isHorizontal()?h:y,_=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),_=Math.abs(_)*(a?1:-1)),r.diff=m,m*=n.touchRatio,a&&(m=-m,_=-_);let S=i.touchesDirection;i.swipeDirection=m>0?"prev":"next",i.touchesDirection=_>0?"prev":"next";let E=i.params.loop&&!n.cssMode,v=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!s.isMoved){if(E&&v&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){let P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(P);}s.allowMomentumBounce=!1,n.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",l);}let b;if(new Date().getTime(),n._loopSwapReset!==!1&&s.isMoved&&s.allowThresholdMove&&S!==i.touchesDirection&&E&&v&&Math.abs(m)>=1){Object.assign(r,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}i.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=m+s.startTranslate;let T=!0,L=n.resistanceRatio;if(n.touchReleaseOnEdges&&(L=0),m>0?(E&&v&&!b&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-(n.slidesPerView!=="auto"&&i.slides.length-n.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(T=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+m)**L))):m<0&&(E&&v&&!b&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+(n.slidesPerView!=="auto"&&i.slides.length-n.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(n.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslate<i.maxTranslate()&&(T=!1,n.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-m)**L))),T&&(l.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(m)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else {s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate));}function ch(t){let e=this,i=e.touchEventsData,s=t;s.originalEvent&&(s=s.originalEvent);let n;if(s.type==="touchend"||s.type==="touchcancel"){if(n=[...s.changedTouches].find(L=>L.identifier===i.touchId),!n||n.identifier!==i.touchId)return}else {if(i.touchId!==null||s.pointerId!==i.pointerId)return;n=s;}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;let{params:a,touches:o,rtlTranslate:l,slidesGrid:c,enabled:u}=e;if(!u||!a.simulateTouch&&s.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);let d=Nt(),h=d-i.touchStartTime;if(e.allowClick){let L=s.path||s.composedPath&&s.composedPath();e.updateClickedSlide(L&&L[0]||s.target,L),e.emit("tap click",s),h<300&&d-i.lastClickTime<300&&e.emit("doubleTap doubleClick",
vendor: 6,690 bytes, line 19
19s);}if(i.lastClickTime=Nt(),Dt(()=>{e.destroyed||(e.allowClick=!0);}),!i.isTouched||!i.isMoved||!e.swipeDirection||o.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let y;if(a.followFinger?y=l?e.translate:-e.translate:y=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:y});return}let m=y>=-e.maxTranslate()&&!e.params.loop,_=0,S=e.slidesSizesGrid[0];for(let L=0;L<c.length;L+=L<a.slidesPerGroupSkip?1:a.slidesPerGroup){let P=L<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[L+P]<"u"?(m||y>=c[L]&&y<c[L+P])&&(_=L,S=c[L+P]-c[L]):(m||y>=c[L])&&(_=L,S=c[c.length-1]-c[c.length-2]);}let E=null,v=null;a.rewind&&(e.isBeginning?v=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(E=0));let b=(y-c[_])/S,T=_<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(h>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?E:_+T):e.slideTo(_)),e.swipeDirection==="prev"&&(b>1-a.longSwipesRatio?e.slideTo(_+T):v!==null&&b<0&&Math.abs(b)>a.longSwipesRatio?e.slideTo(v):e.slideTo(_));}else {if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(s.target===e.navigation.nextEl||s.target===e.navigation.prevEl)?s.target===e.navigation.nextEl?e.slideTo(_+T):e.slideTo(_):(e.swipeDirection==="next"&&e.slideTo(E!==null?E:_+T),e.swipeDirection==="prev"&&e.slideTo(v!==null?v:_));}}function zl(){let t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();let{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();let o=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume();},500)),t.allowSlidePrev=n,t.allowSlideNext=s,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow();}function dh(t){let e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())));}function uh(){let t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let n,r=t.maxTranslate()-t.minTranslate();r===0?n=0:n=(t.translate-t.minTranslate())/r,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1);}function fh(t){let e=this;hs(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update();}function ph(){let t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"));}var Kl=(t,e)=>{let i=me(),{params:s,el:n,wrapperEl:r,device:a}=t,o=!!s.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;!n||typeof n=="string"||(i[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),n[l]("touchstart",t.onTouchStart,{passive:!1}),n[l]("pointerdown",t.onTouchStart,{passive:!1}),i[l]("touchmove",t.onTouchMove,{passive:!1,capture:o}),i[l]("pointermove",t.onTouchMove,{passive:!1,capture:o}),i[l]("touchend",t.onTouchEnd,{passive:!0}),i[l]("pointerup",t.onTouchEnd,{passive:!0}),i[l]("pointercancel",t.onTouchEnd,{passive:!0}),i[l]("touchcancel",t.onTouchEnd,{passive:!0}),i[l]("pointerout",t.onTouchEnd,{passive:!0}),i[l]("pointerleave",t.onTouchEnd,{passive:!0}),i[l]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[l]("click",t.onClick,!0),s.cssMode&&r[l]("scroll",t.onScroll),s.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",zl,!0):t[c]("observerUpdate",zl,!0),n[l]("load",t.onLoad,{capture:!0}));};function hh(){let t=this,{params:e}=t;t.onTouchStart=oh.bind(t),t.onTouchMove=lh.bind(t),t.onTouchEnd=ch.bind(t),t.onDocumentTouchStart=ph.bind(t),e.cssMode&&(t.onScroll=uh.bind(t)),t.onClick=dh.bind(t),t.onLoad=fh.bind(t),Kl(t,"on");}function mh(){Kl(this,"off");}var gh={attachEvents:hh,detachEvents:mh},$l=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function vh(){let t=this,{realIndex:e,initialized:i,params:s,el:n}=t,r=s.breakpoints;if(!r||r&&Object.keys(r).length===0)return;let a=me(),o=s.breakpointsBase==="window"||!s.breakpointsBase?s.breakpointsBase:"container",l=["window","container"].includes(s.breakpointsBase)||!s.breakpointsBase?t.el:a.querySelector(s.breakpointsBase),c=t.getBreakpoint(r,o,l);if(!c||t.currentBreakpoint===c)return;let d=(c in r?r[c]:void 0)||t.originalParams,h=$l(t,s),y=$l(t,d),m=t.params.grabCursor,_=d.grabCursor,S=s.enabled;h&&!y?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!h&&y&&(n.classList.add(`${s.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&s.grid.fill==="column")&&n.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),m&&!_?t.unsetGrabCursor():!m&&_&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(P=>{if(typeof d[P]>"u")return;let R=s[P]&&s[P].enabled,g=d[P]&&d[P].enabled;R&&!g&&t[P].disable(),!R&&g&&t[P].enable();});let E=d.direction&&d.direction!==s.direction,v=s.loop&&(d.slidesPerView!==s.slidesPerView||E),b=s.loop;E&&i&&t.changeDirection(),De(t.params,d);let T=t.params.enabled,L=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),S&&!T?t.disable():!S&&T&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",d),i&&(v?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!b&&L?(t.loopCreate(e),t.updateSlides()):b&&!L&&t.loopDestroy()),t.emit("breakpoint",d);}function yh(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1,n=ce(),r=e==="window"?n.innerHeight:i.clientHeight,a=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){let l=parseFloat(o.substr(1));return {value:r*l,point:o}}return {value:o,point:o}});a.sort((o,l)=>
19parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o<a.length;o+=1){let{point:l,value:c}=a[o];e==="window"?n.matchMedia(`(min-width: ${c}px)`).matches&&(s=l):c<=i.clientWidth&&(s=l);}return s||"max"}var bh={setBreakpoint:vh,getBreakpoint:yh};function _h(t,e){let i=[];return t.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&i.push(e+n);}):typeof s=="string"&&i.push(e+s);}),i}function Eh(){let t=this,{classNames:e,params:i,rtl:s,el:n,device:r}=t,a=_h(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),n.classList.add(...e),t.emitContainerClasses();}function wh(){let t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses());}var Sh={addClasses:Eh,removeClasses:wh};function Th(){let t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){let n=t.slides.length-1,r=t.slidesGrid[n]+t.slidesSizesGrid[n]+s*2;t.isLocked=t.size>r;}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock");}var xh={checkOverflow:Th},Bl={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ch(t,e){return function(s){s===void 0&&(s={});let n=Object.keys(s)[0],r=s[n];if(typeof r!="object"||r===null){De(e,s);return}if(t[n]===!0&&(t[n]={enabled:!0}),n==="navigation"&&t[n]&&t[n].enabled&&!t[n].prevEl&&!t[n].nextEl&&(t[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&t[n]&&t[n].enabled&&!t[n].el&&(t[n].auto=!0),!(n in t&&"enabled"in r)){De(e,s);return}typeof t[n]=="object"&&!("enabled"in t[n])&&(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),De(e,s);}}var nr={eventsEmitter:Sp,update:Np,translate:$p,transition:Wp,slide:Zp,loop:ih,grabCursor:rh,events:gh,breakpoints:bh,checkOverflow:xh,classes:Sh},rr={},Be=class t{constructor(){let e,i;for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];n.length===1&&n[0].constructor&&Object.prototype.toString.call(n[0]).slice(8,-1)==="Object"?i=n[0]:[e,i]=n,i||(i={}),i=De({},i),e&&!i.el&&(i.el=e);let a=me();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){let u=[];return a.querySelectorAll(i.el).forEach(d=>{let h=De({},i,{el:d});u.push(new t(h));}),u}let o=this;o.__swiper__=!0,o.support=Vl(),o.device=Gl({userAgent:i.userAgent}),o.browser=Wl(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],i.modules&&Array.isArray(i.modules)&&o.modules.push(...i.modules);let l={};
19o.modules.forEach(u=>{u({params:i,swiper:o,extendParams:Ch(i,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)});});let c=De({},Bl,l);return o.params=De({},c,rr,i),o.originalParams=De({},o.params),o.passedParams=De({},i),o.params&&o.params.on&&Object.keys(o.params.on).forEach(u=>{o.on(u,o.params.on[u]);}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){let{slidesEl:i,params:s}=this,n=ye(i,`.${s.slideClass}, swiper-slide`),r=kt(n[0]);return kt(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(i=>i.getAttribute("data-swiper-slide-index")*1===e))}
19recalcSlides(){let e=this,{slidesEl:i,params:s}=e;e.slides=ye(i,`.${s.slideClass}, swiper-slide`);}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"));}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"));}setProgress(e,i){let s=this;e=Math.min(Math.max(e,0),1);let n=s.minTranslate(),a=(s.maxTranslate()-n)*e+n;s.translateTo(a,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses();}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let i=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "));}getSlideClasses(e){let i=this;return i.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let i=[];e.slides.forEach(s=>{let n=e.getSlideClasses(s);i.push({slideEl:s,classNames:n}),e.emit("_slideClass",s,n);}),e.emit("_slideClasses",i);}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);let s=this,{params:n,slides:r,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:c}=s,u=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let d=r[c]?Math.ceil(r[c].swiperSlideSize):0,h;for(let y=c+1;y<r.length;y+=1)r[y]&&!h&&(d+=Math.ceil(r[y].swiperSlideSize),u+=1,d>l&&(h=!0));for(let y=c-1;y>=0;y-=1)r[y]&&!h&&(d+=r[y].swiperSlideSize,u+=1,d>l&&(h=!0));}else if(e==="current")for(let d=c+1;d<r.length;d+=1)(i?a[d]+o[d]-a[c]<l:a[d]-a[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)a[c]-a[d]<l&&(u+=1);return u}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:i,params:s}=e;s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&hs(e,a);}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){let a=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses();}let r;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)n(),s.autoHeight&&e.updateAutoHeight();else {if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){let a=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(a.length-1,0,!1,!0);}else r=e.slideTo(e.activeIndex,0,!1,!0);r||n();}s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update");}changeDirection(e,i){i===void 0&&(i=!0);let s=this,n=s.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${n}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(r=>{e==="vertical"?r.style.width="":r.style.height="";}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(e){let i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update());}mount(e){let i=this;if(i.mounted)return !0;let s=e||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return !1;s.swiper=i,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);let n=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`,a=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(n()):ye(s,n())[0];return !a&&i.params.createElements&&(a=je("div",i.params.wrapperClass),s.append(a),ye(s,`.${i.params.slideClass}`).forEach(o=>{a.append(o);})),Object.assign(i,{el:s,wrapperEl:a,slidesEl:i.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:a,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||ut(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||ut(s,"direction")==="rtl"),wrongRTL:ut(a,"display")==="-webkit-box"}),!0}init(e){let i=this;
19if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(void 0,!0),i.attachEvents();let n=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?hs(i,r):r.addEventListener("load",a=>{hs(i,a.target);});}),ar(i),i.initialized=!0,ar(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);let s=this,{params:n,el:r,wrapperEl:a,slides:o}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),i&&(s.removeClasses(),r&&typeof r!="string"&&r.removeAttribute("style"),a&&a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index");})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l);}),e!==!1&&(s.el&&typeof s.el!="string"&&(s.el.swiper=null),Dl(s)),s.destroyed=!0),null}static extendDefaults(e){De(rr,e);}static get extendedDefaults(){return rr}static get defaults(){return Bl}static installModule(e){t.prototype.__modules__||(t.prototype.__modules__=[]);let i=t.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e);}static use(e){return Array.isArray(e)?(e.forEach(i=>t.installModule(i)),t):(t.installModule(e),t)}};Object.keys(nr).forEach(t=>{Object.keys(nr[t]).forEach(e=>{Be.prototype[e]=nr[t][e];});});Be.use([Ep,wp]);function Li(t,e,i,s){return t.params.createElements&&Object.keys(s).forEach(n=>{if(!i[n]&&i.auto===!0){let r=ye(t.el,`.${s[n]}`)[0];r||(r=je("div",s[n]),r.className=s[n],t.el.append(r)),i[n]=r,e[n]=r;}}),i}function Mi(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function r(m){let _;return m&&typeof m=="string"&&e.isElement&&(_=e.el.querySelector(m)||e.hostEl.querySelector(m),_)?_:(m&&(typeof m=="string"&&(_=[...document.querySelectorAll(m)]),e.params.uniqueNavElements&&typeof m=="string"&&_&&_.length>1&&e.el.querySelectorAll(m).length===1?_=e.el.querySelector(m):_&&_.length===1&&(_=_[0])),m&&!_?m:_)}function a(m,_){let S=e.params.navigation;m=de(m),m.forEach(E=>{E&&(E.classList[_?"add":"remove"](...S.disabledClass.split(" ")),E.tagName==="BUTTON"&&(E.disabled=_),e.params.watchOverflow&&e.enabled&&E.classList[e.isLocked?"add":"remove"](S.lockClass));});}function o(){let{nextEl:m,prevEl:_}=e.navigation;if(e.params.loop){a(_,!1),a(m,!1);return}a(_,e.isBeginning&&!e.params.rewind),a(m,e.isEnd&&!e.params.rewind);}function l(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),n("navigationPrev"));}function c(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),n("navigationNext"));}function u(){let m=e.params.navigation;if(e.params.navigation=Li(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;let _=r(m.nextEl),S=r(m.prevEl);Object.assign(e.navigation,{nextEl:_,prevEl:S}),_=de(_),S=de(S);let E=(v,b)=>{v&&v.addEventListener("click",b==="next"?c:l),!e.enabled&&v&&v.classList.add(...m.lockClass.split(" "));};_.forEach(v=>E(v,"next")),S.forEach(v=>E(v,"prev"));}function d(){let{nextEl:m,prevEl:_}=e.navigation;m=de(m),_=de(_);let S=(E,v)=>{E.removeEventListener("click",v==="next"?c:l),E.classList.remove(...e.params.navigation.disabledClass.split(" "));};m.forEach(E=>S(E,"next")),_.forEach(E=>S(E,"prev"));}s("init",()=>{e.params.navigation.enabled===!1?y():(u(),o());}),s("toEdge fromEdge lock unlock",()=>{o();}),s("destroy",()=>{d();}),s("enable disable",()=>{let{nextEl:m,prevEl:_}=e.navigation;if(m=de(m),_=de(_),e.enabled){o();return}[...m,..._].filter(S=>
19!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass));}),s("click",(m,_)=>{let{nextEl:S,prevEl:E}=e.navigation;S=de(S),E=de(E);let v=_.target,b=E.includes(v)||S.includes(v);if(e.isElement&&!b){let T=_.path||_.composedPath&&_.composedPath();T&&(b=T.find(L=>S.includes(L)||E.includes(L)));}if(e.params.navigation.hideOnClick&&!b){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===v||e.pagination.el.contains(v)))return;let T;S.length?T=S[0].classList.contains(e.params.navigation.hiddenClass):E.length&&(T=E[0].classList.contains(e.params.navigation.hiddenClass)),n(T===!0?"navigationShow":"navigationHide"),[...S,...E].filter(L=>!!L).forEach(L=>L.classList.toggle(e.params.navigation.hiddenClass));}});let h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),o();},y=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d();};Object.assign(e.navigation,{enable:h,disable:y,update:o,init:u,destroy:d});}function St(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ai(t){let{swiper:e,extendParams:i,on:s,emit:n}=t,r="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:v=>v,formatFractionTotal:v=>v,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0;function l(){return !e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(v,b){let{bulletActiveClass:T}=e.params.pagination;v&&(v=v[`${b==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${T}-${b}`),v=v[`${b==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${T}-${b}-${b}`)));}function u(v,b,T){if(v=v%T,b=b%T,b===v+1)return "next";if(b===v-1)return "previous"}function d(v){let b=v.target.closest(St(e.params.pagination.bulletClass));if(!b)return;v.preventDefault();let T=kt(b)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===T)return;let L=u(e.realIndex,T,e.slides.length);L==="next"?e.slideNext():L==="previous"?e.slidePrev():e.slideToLoop(T);}else e.slideTo(T);}function h(){let v=e.rtl,b=e.params.pagination;if(l())return;let T=e.pagination.el;T=de(T);let L,P,R=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,g=e.params.loop?Math.ceil(R/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(P=e.previousRealIndex||0,L=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(L=e.snapIndex,P=e.previousSnapIndex):(P=e.previousIndex||0,L=e.activeIndex||0),b.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){let k=e.pagination.bullets,A,M,$;if(b.dynamicBullets&&(a=Ii(k[0],e.isHorizontal()?"width":"height",!0),T.forEach(F=>{F.style[e.isHorizontal()?"width":"height"]=`${a*(b.dynamicMainBullets+4)}px`;}),b.dynamicMainBullets>1&&P!==void 0&&(o+=L-(P||0),o>b.dynamicMainBullets-1?o=b.dynamicMainBullets-1:o<0&&(o=0)),A=Math.max(L-o,0),M=A+(Math.min(k.length,b.dynamicMainBullets)-1),$=(M+A)/2),k.forEach(F=>{let O=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(H=>`${b.bulletActiveClass}${H}`)].map(H=>typeof H=="string"&&H.includes(" ")?H.split(" "):H).flat();F.classList.remove(...O);}),T.length>1)k.forEach(F=>{let O=kt(F);O===L?F.classList.add(...b.bulletActiveClass.split(" ")):e.isElement&&F.setAttribute("part","bullet"),b.dynamicBullets&&(O>=A&&O<=M&&F.classList.add(...`${b.bulletActiveClass}-main`.split(" ")),O===A&&c(F,"prev"),O===M&&c(F,"next"));});else {let F=k[L];if(F&&F.classList.add(...b.bulletActiveClass.split(" ")),e.isElement&&k.forEac
19h((O,H)=>{O.setAttribute("part",H===L?"bullet-active":"bullet");}),b.dynamicBullets){let O=k[A],H=k[M];for(let x=A;x<=M;x+=1)k[x]&&k[x].classList.add(...`${b.bulletActiveClass}-main`.split(" "));c(O,"prev"),c(H,"next");}}if(b.dynamicBullets){let F=Math.min(k.length,b.dynamicMainBullets+4),O=(a*F-a)/2-$*a,H=v?"right":"left";k.forEach(x=>{x.style[e.isHorizontal()?H:"top"]=`${O}px`;});}}T.forEach((k,A)=>{if(b.type==="fraction"&&(k.querySelectorAll(St(b.currentClass)).forEach(M=>{M.textContent=b.formatFractionCurrent(L+1);}),k.querySelectorAll(St(b.totalClass)).forEach(M=>{M.textContent=b.formatFractionTotal(g);})),b.type==="progressbar"){let M;b.progressbarOpposite?M=e.isHorizontal()?"vertical":"horizontal":M=e.isHorizontal()?"horizontal":"vertical";let $=(L+1)/g,F=1,O=1;M==="horizontal"?F=$:O=$,k.querySelectorAll(St(b.progressbarFillClass)).forEach(H=>{H.style.transform=`translate3d(0,0,0) scaleX(${F}) scaleY(${O})`,H.style.transitionDuration=`${e.params.speed}ms`;});}b.type==="custom"&&b.renderCustom?(k.innerHTML=b.renderCustom(e,L+1,g),A===0&&n("paginationRender",k)):(A===0&&n("paginationRender",k),n("paginationUpdate",k)),e.params.watchOverflow&&e.enabled&&k.classList[e.isLocked?"add":"remove"](b.lockClass);});}function y(){let v=e.params.pagination;if(l())return;let b=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length,T=e.pagination.el;T=de(T);let L="";if(v.type==="bullets"){let P=e.params.loop?Math.ceil(b/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&P>b&&(P=b);for(let R=0;R<P;R+=1)v.renderBullet?L+=v.renderBullet.call(e,R,v.bulletClass):L+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`;}v.type==="fraction"&&(v.renderFraction?L=v.renderFraction.call(e,v.currentClass,v.totalClass):L=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?L=v.renderProgressbar.call(e,v.progressbarFillClass):L=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],T.forEach(P=>{v.type!=="custom"&&(P.innerHTML=L||""),v.type==="bullets"&&e.pagination.bullets.push(...P.querySelectorAll(St(v.bulletClass)));}),v.type!=="custom"&&n("paginationRender",T[0]);}function m(){e.params.pagination=Li(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});let v=e.params.pagination;if(!v.el)return;let b;typeof v.el=="string"&&e.isElement&&(b=e.el.querySelector(v.el)),!b&&typeof v.el=="string"&&(b=[...document.querySelectorAll(v.el)]),b||(b=v.el),!(!b||b.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(b)&&b.length>1&&(b=[...e.el.querySelectorAll(v.el)],b.length>1&&(b=b.find(T=>si(T,".swiper")[0]===e.el))),Array.isArray(b)&&b.length===1&&(b=b[0]),Object.assign(e.pagination,{el:b}),b=de(b),b.forEach(T=>{v.type==="bullets"&&v.clickable&&T.classList.add(...(v.clickableClass||"").split(" ")),T.classList.add(v.modifierClass+v.type),T.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(T.classList.add(`${v.modifierClass}${v.type}-dynamic`),o=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&T.classList.add(v.progressbarOppositeClass),v.clickable&&T.addEventListener("click",d),e.enabled||T.classList.add(v.lockClass);}));}function _(){let v=e.params.pagination;if(l())return;let b=e.pagination.el;b&&(b=de(b),b.forEach(T=>{T.classList.remove(v.hiddenClass),T.classList.remove(v.modifierClass+v.type),T.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(T.classList.remove(...(v.clickableClass||"").split(" ")),T.removeEventListener("click",d));})),e.pagination.bullets&&e.pagination.bullets.forEach(T=>T.classList.remove(...v.bulletActiveClass.split(" ")));}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;let v=e.params.pagination,{el:b}=e.pagination;b=de(b),b.forEach(T=>{T.classList.remove(v.horizontalClass,v.verticalClass),T.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass);});}),s("init",()=>{e.params.pagination.enabled===!1?E():(m(),y(),h());}),s("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h();}),s("snapIndexChange",()=>{h();}),s("snapGridLengthChange",()=>{y(),h();}),s("destroy",()=>{_();}),s("enable disable",()=>{let{el:v}=e.pagination;v&&(v=de(v),v.forEach(b=>b.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)));}),s("lock unlock",()=>{h();}),s("click",(v,b)=>{let T=b.target,L=de(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&L&&L.length>0&&!T.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&T===e.navigation.nextEl||e.navigation.prevEl&&T===e.navigation.prevEl))return;let P=L[0].classList.contains(e.params.pagination.hiddenClass);
19n(P===!0?"paginationShow":"paginationHide"),L.forEach(R=>R.classList.toggle(e.params.pagination.hiddenClass));}});let S=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=de(v),v.forEach(b=>b.classList.remove(e.params.pagination.paginationDisabledClass))),m(),y(),h();},E=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=de(v),v.forEach(b=>b.classList.add(e.params.pagination.paginationDisabledClass))),_();};Object.assign(e.pagination,{enable:S,disable:E,render:y,update:h,init:m,destroy:_});}function or(t){let{swiper:e,extendParams:i,on:s,emit:n,params:r}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,o,l=r&&r.autoplay?r.autoplay.delay:3e3,c=r&&r.autoplay?r.autoplay.delay:3e3,u,d=new Date().getTime(),h,y,m,_,S,E,v;function b(N){!e||e.destroyed||!e.wrapperEl||N.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),!(v||N.detail&&N.detail.bySwiperTouchMove)&&A());}let T=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(c=u,h=!1);let N=e.autoplay.paused?u:d+c-new Date().getTime();e.autoplay.timeLeft=N,n("autoplayTimeLeft",N,N/l),o=requestAnimationFrame(()=>{T();});},L=()=>{let N;return e.virtual&&e.params.virtual.enabled?N=e.slides.find(G=>G.classList.contains("swiper-slide-active")):N=e.slides[e.activeIndex],N?parseInt(N.getAttribute("data-swiper-autoplay"),10):void 0},P=N=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),T();let V=typeof N>"u"?e.params.autoplay.delay:N;l=e.params.autoplay.delay,c=e.params.autoplay.delay;let G=L();!Number.isNaN(G)&&G>0&&typeof N>"u"&&(V=G,l=G,c=G),u=V;let X=e.params.speed,ie=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(X,!0,!0),n("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,X,!0,!0),n("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(X,!0,!0),n("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,X,!0,!0),n("autoplay")),e.params.cssMode&&(d=new Date().getTime(),requestAnimationFrame(()=>{P();})));};return V>0?(clearTimeout(a),a=setTimeout(()=>{ie();},V)):requestAnimationFrame(()=>{ie();}),V},R=()=>{d=new Date().getTime(),e.autoplay.running=!0,P(),n("autoplayStart");},g=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),n("autoplayStop");},k=(N,V)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),N||(E=!0);let G=()=>{n("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):A();};if(e.autoplay.paused=!0,V){S&&(u=e.params.autoplay.delay),S=!1,G();return}u=(u||e.params.autoplay.delay)-(new Date().getTime()-d),!(e.isEnd&&u<0&&!e.params.loop)&&(u<0&&(u=0),G());},A=()=>{e.isEnd&&u<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(d=new Date().getTime(),E?(E=!1,P(u)):P(),e.autoplay.paused=!1,n("autoplayResume"));},M=()=>{if(e.destroyed||!e.autoplay.running)return;let N=me();N.visibilityState==="hidden"&&(E=!0,k(!0)),N.visibilityState==="visible"&&A();},$=N=>{N.pointerType==="mouse"&&(E=!0,v=!0,!(e.animating||e.autoplay.paused)&&k(!0));},F=N=>{N.pointerType==="mouse"&&(v=!1,e.autoplay.paused&&A());},O=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",$),e.el.addEventListener("pointerleave",F));},H=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",$),e.el.removeEventListener("pointerleave",F));},x=()=>{me().addEventListener("visibilitychange",M);},B=()=>{me().removeEventListener("visibilitychange",M);};s("init",()=>{e.params.autoplay.enabled&&(O(),x(),R());}),s("destroy",()=>{H(),B(),e.autoplay.running&&g();}),s("_freeModeStaticRelease",()=>{(m||E)&&A();}),s("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?g():k(!0,!0);}),s("beforeTransitionStart",(N,V,G)=>{e.destroyed||!e.autoplay.running||(G||!e.params.autoplay.disableOnInteraction?k(!0,!0):g());}),s("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){g();return}y=!0,m=!1,E=!1,_=setTimeout(()=>{E=!0,m=!0,k(!0);},200);}}),s("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!y)){if(clearTimeout(_),clearTimeout(a),e.params.autoplay.disableOnInteraction){m=!1,y=!1;return}m&&e.params.cssMode&&A(),m=!1,y=!1;}}),s("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0);}),Object.assign(e.autoplay,{start:R,stop:g,pause:k,resume:A});}var Ih="aem-Grid",Lh="aem-GridColumn",jl="swiper-pagination",Mh="swiper-navigation",Xl="swiper-navigation-button-prev",Ql="swiper-navigation-button-next",gs={"gap--large":[64,96,128],"gap--medium":[32,48,64],"ga
19p--small":[16,24,32],"gap--xsmall":[4,8,16]},Zl={sm:0,md:1,lg:2},ur=class extends W{async onMount(){Jt()||(this.createPagination(),this.createNavigation(),this.initSwiper());}initSwiper(){let e=this.props.withOverflow,i={768:{slidesPerView:this.getSlidesPerView(e?1:2,"md",e),spaceBetween:this.getSpaceBetween("md")},1440:{slidesPerView:this.getSlidesPerView(3,"lg",e),spaceBetween:this.getSpaceBetween("lg")}};e&&(i[1024]={slidesPerView:this.getSlidesPerView(2,"md",!0)}),this.swiper=new Be(this.el,{modules:[Ai,Mi],wrapperClass:Ih,slideClass:Lh,slidesPerView:this.getSlidesPerView(e?.7:1,"sm",e),spaceBetween:this.getSpaceBetween("sm"),centeredSlides:e,loop:e,pagination:{el:`.${jl}`,clickable:!0,dynamicBullets:!0,dynamicMainBullets:3},navigation:{nextEl:`.${Ql}`,prevEl:`.${Xl}`},breakpoints:i,on:{slideChangeTransitionEnd:s=>{e&&s.swipeDirection==="next"&&setTimeout(()=>{s.loopFix();});}}}),e&&setTimeout(()=>{this.swiper.loopFix();});}getSlidesPerView(e,i,s){if(!s)return e;let n=.2,r=Zl[i],a=Object.keys(gs).reduce((h,y)=>this.parent.classList.contains(y)?gs[y][r]:h,0),o=this.el.offsetWidth,l=(e-1)*a,c=(o-l)/e,d=c*n+a;return e+d/c*2}getSpaceBetween(e){let i=Zl[e];return Object.keys(gs).reduce((s,n)=>this.parent.classList.contains(n)?gs[n][i]:s,0)}createPagination(){let e=document.createElement("div");e.className=jl,this.el.appendChild(e);}createNavigation(){if(this.parent.dataset?.carouselNavigation==="true"){let e=document.createElement("div");e.className=Mh;let i=document.createElement("div");i.className=Ql;let s=document.createElement("div");s.className=Xl,e.appendChild(s),e.appendChild(i),this.el.appendChild(e);}}},Jl=ur;var Ah="layout--carousel",fr=class extends W{async onMount(){this.parent.classList.contains(Ah)&&(this.props.withOverflow=this.parent.classList.contains("overflow"),new Jl(this.el,this.props));}},Ph=fr;var vr={};re(vr,{default:()=>kh});var Oh=".cmp-image",sc="cmp-image__overlay",gr=sc+"__point",Dh=gr+"__link",hr=gr+"__content",Nh=hr+"__header",ec="quickview:fragment=",tc="quickview:sku=",ic="reservedVal_productPath",mr=class extends W{async onMount(){this.image=this.findChild(Oh),this.image&&this.initImageMap();}async initImageMap(){let e=await this.fetchImageData();e?.metadata?.imageMap&&e?.metadata?.["tiff:ImageWidth"]&&e?.metadata?.["tiff:ImageLength"]&&this.generateHotspots(e.metadata.imageMap,e.metadata?.["tiff:ImageWidth"],e?.metadata?.["tiff:ImageLength"]);}async fetchImageData(){let e=null;if(this.image.dataset?.asset)try{let i=await fetch(`${this.image.dataset?.asset}/jcr:content.1.json`);if(!i.ok)throw new Error(`status: ${i.status}`);return await i.json()}catch(i){console.error(i.message);}return e}generateHotspots(e,i,s){e?.match(/\[(.*?)\]/g).forEach(n=>{let r=/poly\((.*)\)/i.exec(n);if(r&&r.length>0){let a=r[1].split(",").map(Number);if(a.length>1&&a.length%2===0){let[o,l]=a.reduce((d,h,y)=>(d[y%2]+=h,d),[0,0]),c=o/(a.length/2),u=l/(a.length/2);if(c>=0&&c<=i&&u>=0&&u<=s){let d=`${Math.ceil(c/i*100)}%`,h=`${Math.ceil(u/s*100)}%`,y=null,m=null,_=null,S=null,E=n.match(/"(.*?)"/g);if(E?.length===3)if(m=E[0].replace(/"/g,""),_=E[1].replace(/"/g,""),y=E[2].replace(/"/g,""),m.startsWith(tc))S="product",m=m.replace(tc,"");else if(m.startsWith(ec)){S="xf",m=m.replace(ec,"");let v=new URLSearchParams(m);v?.get(ic)&&(m=v.get(ic));}else S="link";this.addHotspot({left:d,top:h,type:S,target:_,link:m,title:y});}}}});}async addHotspot({left:e,top:i,type:s,target:n,link:r,title:a}){this.overlay||(this.overlay=document.createElement("div"),this.overlay.classList.add(sc),this.image.appendChild(this.overlay));let o=document.createElement("div"),l=document.createElement("a");if(s==="link")r&&(l.setAttribute("href",r),n&&l.setAttribute("target",n));else if(s==="xf"){if(r){let c=await this.preloadXFContent(r);if(c){let u=this.parent.dataset?.hotspotOverlay||"inline",d=document.createElement(u==="popup"?"dialog":"div");if(d.classList.add(hr),d.classList.add(u),d.innerHTML=c,u==="popup"){let h=document.createElement("div");h.classList.add(Nh);let y=document.createElement("button");y.classList.add("closer"),h.appendChild(y),d.prepend(h),y.addEventListener("click",()=>{d?.close();});}o.appendChild(d),this.xfContents||(this.xfContents=[]),this.xfContents.push(d);}else l.classList.add("disabled");}}else s==="product"&&l.classList.add("disabled");o.appendChild(l),o.classList.add(gr),o.style.left=e,o.style.top=i,o.classList.add(this.parent.dataset?.hotspotLink||"point"),l.classList.add(Dh),l.classList.add(this.parent.dataset?.hotspotLink||"point"),a&&(l.setAttribute("data-title",a),l.setAttribute("title",a),l.setAttribute("alt",a)),l.addEventListener("click",c=>{s!=="link"&&c.preventDefault(),this.handleHotspotClick(o,s);}),this.overlay.appendChild(o);}async preloadXFContent(e){try{let i=await fetch(`${e}/_jcr_content/root/container.html`);if(!i.ok)throw new Error(`status: ${i.status}`);return await i.text()}catch(i){console.error(i.message);}}async handleHotspotClick(e,i){if(i==="xf"){let s=e.querySelector(`.${hr}`);
19s&&(this.xfContents.forEach(n=>{n!==s&&(n.classList.contains("popup")?n?.close():n.classList.contains("inline")&&n.classList.remove("visible"));}),s.classList.contains("popup")?s?.showModal():s.classList.contains("inline")&&s.classList.toggle("visible"));}}},kh=mr;var br={};re(br,{default:()=>Hh});var Fh=".cmp-list",Rh=2,yr=class extends W{async onMount(){this.list=this.findChild(Fh),this.list&&this.initMarquee();}initMarquee(){this.updateMarqueeTransition(),lt(()=>this.updateMarqueeTransition());}updateMarqueeTransition(){if(this.list.scrollWidth>this.list.offsetWidth){let e=this.list.scrollWidth,i=Math.floor(e/(Rh*50));this.list.style.setProperty("--infoticker-marquee-translate-offset",`-${e}px`),this.list.style.animationDuration=`${i}s`;}}},Hh=yr;var Er={};re(Er,{default:()=>Gh});var zh=".cmp-form",$h=zh+"__variables > a",Bh=".cmp-form-options--checkbox .cmp-form-options__field-description, .cmp-form-options--radio .cmp-form-options__field-description",Vh={names:".{4,}",email:"[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}",tel:"[0-9 \\-\\+]{6,}",address:"[A-Za-z\xDF\xC4\xD6\xDC\xE4\xF6\xFC0-9 ]{4,}",streetno:"[A-Za-z\xDF\xC4\xD6\xDC\xE4\xF6\xFC0-9\\. ]+",zip:"[A-Za-z0-9]+",city:"[A-Za-z\xDF\xC4\xD6\xDC\xE4\xF6\xFC ]+",message:".{0,500}",subject:".{0,150}",country:"[A-Za-z\xDF\xC4\xD6\xDC\xE4\xF6\xFC ]+"},_r=class extends W{async onMount(){this.linksVariables={},this.formElement=this.el,this.findChildren($h).forEach(e=>{let i=e.dataset?.variable;i&&(this.linksVariables[i]=e);}),this.formOptionsLabels=this.findChildren(Bh),this.initFormVariables(),this.initCustomValidation();}initFormVariables(){Object.keys(this.linksVariables).length>0&&this.formOptionsLabels.length>
190&&this.formOptionsLabels.forEach(e=>{let i=e.innerText;i&&Object.keys(this.linksVariables).forEach(s=>{let n=`[${s}]`;i.includes(n)&&(i=i.split(n).join(this.linksVariables[s].outerHTML),e.innerHTML=i);});});}initCustomValidation(){if(!this.formElement)return;this.formElement.querySelectorAll(".cmp-form-text[data-input-validation]").forEach(i=>{let s=i.dataset.inputValidation,n=i.querySelector(".cmp-form-text__text, .cmp-form-text__textarea");if(s&&s!==""&&n){let r=i.getAttribute(`data-input-invalid-message-${s}`),a=Vh[s];a&&r&&(n instanceof HTMLInputElement?(n.setAttribute("pattern",a),n.addEventListener("invalid",o=>{o.stopImmediatePropagation(),n.validity.patternMismatch&&n.setCustomValidity(r);},!0),n.addEventListener("input",o=>{o.stopImmediatePropagation(),n.validity.patternMismatch?n.setCustomValidity(r):n.setCustomValidity("");})):n instanceof HTMLTextAreaElement&&s==="message"&&n.setAttribute("maxlength","500"));}}),this.formElement.addEventListener("submit",()=>{this.ensureTurnstileToken();});}ensureTurnstileToken(){let e=this.formElement.querySelector('input[name="cf-turnstile-response"]');if(!e){let s=document.querySelector('input[name="cf-turnstile-response"]');if(s&&s.value)e=document.createElement("input"),e.type="hidden",e.name="cf-turnstile-response",e.value=s.value,this.formElement.appendChild(e),console.debug("Turnstile token copied into form for submission");else {console.warn("Turnstile input field not found in document. Backend validation may fail.");return}}let i=e.value;!i||i.trim()===""?console.warn("Turnstile token is empty. Form may be rejected by backend validation."):console.debug("Turnstile token ready for form submission");}},Gh=_r;var Tr={};re(Tr,{default:()=>Yh});var Wh="cmp-carousel__content",wr="cmp-carousel__item",nc="cmp-carousel__indicators",qh="cmp-carousel__action--next",Kh="cmp-carousel__action--previous",rc="cmp-carousel__item--active",Uh="cmp-carousel__actions",Sr=class extends W{async onMount(){this.initCarousel(),Jt()&&this.observeActiveSlide();}registerEvents(){window.addEventListener("load",()=>this.updateIndicatorsPosition()),this.swiper.on("slideChangeTransitionEnd",()=>this.updateIndicatorsPosition());}initCarousel(){let e=this.findChild(`.${rc}`),i=this.findChild(`.${Uh}`),s=!1;this.props.cmpAutoplay&&(s={delay:this.props.cmpDelay,pauseOnMouseEnter:!this.props.cmpAutoPauseDisabled}),this.swiper=new Be(this.el,{modules:[Ai,Mi,or],wrapperClass:Wh,slideClass:wr,loop:!0,initialSlide:e?e.tabIndex:1,autoplay:s,slidesPerView:1,pagination:{el:`.${nc}`,clickable:!0,dynamicBullets:!0,dynamicMainBullets:3},navigation:{nextEl:`#${this.el?.id} .${qh}`,prevEl:`#${this.el?.id} .${Kh}`},on:{init:()=>{i&&this.el.dataset?.arrowPosition==="centerMiddle"&&i?.parentNode?.parentNode?.appendChild(i);}}});}observeActiveSlide(){let e={attributes:!0,attributeFilter:["class"]},i=n=>{for(let r of n)if(r.type==="attributes"&&r.attributeName==="class"){let a=r.target;a.classList.contains(rc)&&this.swiper.slideTo(a.tabIndex);}};this.observer=new MutationObserver(i),this.el.querySelectorAll(`.${wr}`).forEach(n=>this.observer.observe(n,e));}updateIndicatorsPosition(){let e=this.findChildren(`.${wr}`)[this.swiper.activeIndex],i=this.findChild(`.${nc}`);if(e&&i){let s=e.clientHeight,n=e.querySelector("img")?.clientHeight;if(n){let r=n/s*100;i.style.top=`calc(${r}% - 65px)`;}}}},Yh=Sr;var Or={};re(Or,{DESKTOP_BREAKPOINT:()=>Ir,IFRAME_BLOCK:()=>Ft,MOBILE_BREAKPOINT:()=>Ne,default:()=>cm});var ac="active",xr=class extends W{async onMount(){this.isOpen=!1,this.trigger=this.findChild("button");}registerEvents(){Ye(this.trigger,()=>this.toggle(!this.isOpen)),window.innerWidth>=Ne&&Qt(this.el,ac,this.toggle.bind(this,!1),Ne);}toggle(e){this.isOpen=e,this.el.classList[e?"add":"remove"](ac),document.body.classList.toggle(Ft,this.isOpen);}},oc=xr;var Oi=".cmp-navigation__item",lc=".cmp-navigation",jh=".cmp-navigation__item__with-children",Ve="active",Di="visible",Cr=class extends W{async onMount(){this.setSlider(),this.createIcons(),this.createBackCTA(),this.toggleNestedItems(),this.storeInitialActiveStates(),this.handleInitialActiveGroup(),this.updateBackCTA();}handleInitialActiveGroup(){let e=this.getCurrentDomIdx();e>1&&(this.swiper.slideTo(e),this.updateBackCTA());}registerEvents(){this.setupNavItemEvents(),Ye(this.back,this.goBack.bind(this));}
19setupNavItemEvents(){this.findChildren(jh).forEach(e=>{Ye(e,i=>this.handleNavItemEvent(i));});}handleNavItemEvent(e){let i=e.target.parentElement;this.toggleNestedItems(i),(window.innerWidth<Ne||this.getCurrentDomIdx()>0)&&this.swiper.slideNext(),this.updateBackCTA();}setSlider(){this.swiper=new Be(this.parent,{wrapperClass:"cmp-navigation",slideClass:"cmp-navigation__group",slidesPerView:1,spaceBetween:0,allowTouchMove:!1,breakpoints:{[Ne]:{slidesPerView:2,spaceBetween:48},[Ir]:{slidesPerView:3,spaceBetween:128}}});}storeInitialActiveStates(){this.initialActiveItems=this.findChildren(`${Oi}.${Ve}`).map(e=>e.id);}resetNavigation(){this.findChildren(Oi).forEach(e=>{e.classList.remove(Ve,Di);}),this.initialActiveItems.forEach(e=>{this.findChild(`#${CSS.escape(e)}`)?.classList.add(Ve);}),this.toggleNestedItems(),this.swiper.slideTo(this.getCurrentDomIdx()),this.updateBackCTA();}createIcons(){this.findChildren(Oi).forEach(i=>{"withChildren"in i.dataset?this.createCaretIcon(i):new URL(i.querySelector("a")?.href||"").origin!==location.origin&&this.createExternalIcon(i);});}toggleNestedItems(e){let i=this.findChildren(Oi);e&&(i.forEach(s=>s.classList.remove(Ve,Di)),e.classList.add(Ve),i=[e]),i.forEach(s=>{s.classList.contains(Ve)&&!s.id.startsWith("overview-")&&this.getLevelsById(s.id).forEach(r=>{let a=r.split("/").length,o=this.findChild(`#${CSS.escape(r)}`),l=this.findChild(`#overview-${CSS.escape(r)}`),c=this.findChildren(`[id^='${CSS.escape(r)}']`);o?.classList.add(Ve),l?.classList.add(Di),c.forEach(u=>{let d=u.id.split("/").length;a===d-1&&u.classList.add(Di);});});});}getLevelsById(e){return e.split("/").map((s,n,r)=>r.slice(0,n+1).join("/"))}updateBackCTA(){if(this.back){let e=this.swiper.activeIndex,{overview:i}=this.getActiveGroupDetails(e);i?(this.back.innerText=i.title,this.back.classList.add(Ve)):this.back.classList.remove(Ve);}}getActiveGroupDetails(e){let i=this.findChild(lc),n=Array.from(i?.children||[])[e];return {group:n,overview:n?.querySelector(`[id^='overview-'].${Di}`)?.querySelector("a")}}createBackCTA(){let e=document.createElement("button");e.classList.add("cmp-navigation__back","icon","icon-CaretLeft"),this.back=e,this.parent.closest(".sectiongriditem")?.prepend(e);}createExternalIcon(e){let i=document.createElement("span");i.classList.add("icon","icon-ArrowSquareOut"),e.append(i);}createCaretIcon(e){let i=document.createElement("span");i.classList.add("icon","icon-CaretRight","text-brand"),e.appendChild(i);}goBack(){this.swiper.slidePrev(),this.updateBackCTA();let e=this.getCurrentDomIdx(),{group:i}=this.getActiveGroupDetails(e);i?.querySelector(`.${Ve}`)?.classList.remove(Ve);}getCurrentDomIdx(){let e=this.findChildren(Oi),i=this.findChild(lc),s=Array.from(i?.children||[]),n=e.filter(r=>r.classList.contains(Ve)).pop()?.parentElement;return n?s.indexOf(n):0}},cc=Cr;var Xh=".cmp-search__clear",Qh=".cmp-search__form",Zh=".sectiongriditem",Jh=".cmp-search__field",Lr="search-active",Mr=class extends W{async onMount(){this.field=this.findChild(Jh),this.container=this.el.closest(Zh);}registerEvents(){window.innerWidth>=Ne&&Qt(this.container,Lr,this.disable.bind(this),Ne),Ye(this.field,this.enable.bind(this),!0);}disable(){this.isOpen=!1;let e=this.container.querySelector(Xh),i=this.container.querySelector(Qh);e&&i&&(e.style.display="none",i.reset()),this.container.classList.remove(Lr),document.body.classList.remove(Ft);}enable(){this.isOpen=!0,this.container.classList.add(Lr),this.field.querySelector("input")?.focus(),document.body.classList.add(Ft);}},dc=Mr;var uc="search-active",em=".sectiongriditem",Ar=class extends W{async onMount(){this.container=this.el.closest(em);}registerEvents(){Ye(this.el,this.enable.bind(this),!0);}disable(){this.isOpen=!1,this.container.classList.remove(uc);}enable(){this.isOpen=!0,this.container.classList.add(uc);}},fc=Ar;var tm=".cmp-searchresult",im=".cmp-search",sm=".icon",nm=".nestednavigation .cmp-navigation",rm=".cmp-languagenavigation",am="#burger",pc="active",om="icon-List",hc="icon-X",lm="overflow-hidden-mobile",mc="visible",Ft="iframe-block",Ne=768,Ir=1440,Pr=class extends W{constructor(){super(...arguments);this.lastScrollY=0;}async onMount(){this.burger=this.findChild(am),this.initSearch();let i=this.findChild(nm),s=this.findChild(rm);i&&(this.navigation=new cc(i,this.props)),s&&(this.languageNav=new oc(s,this.props));}registerEvents(){window.innerWidth>=Ne&&Qt(this.parent,pc,this.toggleElement.bind(this),Ne),Ye(this.burger,this.toggleElement.bind(this)),lt(this.closeNestedComponents.bind(this),()=>window.innerWidth<Ne),window.addEventListener("scroll",this.handleScrollBehaviour.bind(this));}toggleElement(){let i=this.burger?.querySelector(sm);if(!this.closeNestedComponents()&&i){let n=i.classList.contains(hc);i.classList.toggle(hc,!n),i.classList.toggle(om,n),this.parent.classList.toggle(pc,!n),document.body.classList.toggle(lm,!n),document.body.classList.toggle(Ft,!n),n&&this.navigation.resetNavigation();}}closeNestedComponents(){let i=!1;return this.languageNav?.isOpen&&(this.languageNav.toggle(!1),i=!0),this.search?.isOpen&&(this.search.disable(),i=!0),i}handleScrollBehaviour(){let i=window.scrollY,s=document.querySelector("header");i>0&&i<this.lastScrollY?s?.classList.add(mc):(i<=0||i>this.lastScrollY&&i>(s?.clientHeight||50))&&s?.classList.remove(mc),this.lastScrollY=i;}initSearch(){let i=()=>{let s=window.innerWidth<Ne,n=s?tm:im,r=s?fc:dc,a=this.findChild(n);a&&(this.search=new r(a,this.props));};lt(()=>i()),i();}},cm=Pr;var Nr={};re(Nr,{default:()=>fm});var dm=".cmp-lightbox__overlay",um=".cmp-lightbox__close",gc="visible",Dr=class extends W{registerEvents(){this.el.id&&document.querySelectorAll(`[href="#${this.el.id}
19"]`).forEach(e=>{e.addEventListener("click",i=>{i.preventDefault(),this.parent.classList.toggle(gc);});}),this.findChild(dm)?.addEventListener("click",()=>this.close()),this.findChild(um)?.addEventListener("click",()=>this.close());}close(){this.parent.classList.remove(gc);}},fm=Dr;var Hr={};re(Hr,{default:()=>gm});var pm=".stickynavigation .cmp-tabs__tablist-wrap",hm=".stickynavigation .cmp-tabs__tab",mm=".stickynavigation .cmp-tabs__tablist",kr="cmp-tabs__tablist-wrap--fixed",Fr="cmp-tabs__tablist-wrap--absolute",Rr=class extends fn{constructor(){super(...arguments);this.isInitiallyOverflowing=!1;}async onMount(){this.list=this.findChild(mm),this.listWrap=this.findChild(pm),this.tabs=this.findChildren(hm),this.isInitiallyOverflowing=this.isTabListOverflowing(),this.parentContainer=this.parent.parentElement,this.elInitialOffset=this.parent.offsetTop,this.createCarets(),this.updateCaretVisibility(!0),this.setSticky();}registerEvents(){this.tabs.forEach((i,s)=>{i.addEventListener("click",()=>this.onTabClick(s));}),this.list?.addEventListener("scroll",Zt(()=>this.updateCaretVisibility(),50)),window.addEventListener("scroll",()=>this.setSticky());}createCarets(){let i=document.createElement("span"),s=document.createElement("span");i.addEventListener("click",this.handleCaretEvent.bind(this)),s.addEventListener("click",this.handleCaretEvent.bind(this)),i.classList.add("icon","icon-CaretLeft"),s.classList.add("icon","icon-CaretRight"),this.listWrap?.prepend(i),this.listWrap?.append(s);}onTabClick(i){if(i<0||i>=this.tabs.length)return;let s=this.parent.getBoundingClientRect(),n=s.top<(window.innerHeight||document.documentElement.clientHeight)&&s.bottom>0;this.scrollTabIntoView(i),n||setTimeout(()=>{window.scrollTo({top:this.parent.offsetTop,behavior:"smooth"});},100);}setSticky(){if(!this.listWrap||!this.parentContainer)return;let i=window.pageYOffset,n=this.parentContainer.offsetTop+this.parentContainer.offsetHeight,r=this.listWrap.offsetHeight;i>=this.elInitialOffset&&i<n-r?(this.listWrap.classList.add(kr),this.listWrap.classList.remove(Fr),this.listWrap.removeAttribute("style"),this.parent.style.paddingBlockStart=`${r}px`):i>=n-r?(this.listWrap.classList.remove(kr),this.listWrap.classList.add(Fr),this.listWrap.style.top=`${this.parentContainer.offsetHeight}px`,this.parent.style.paddingBlockStart=`${r}px`):i<this.elInitialOffset&&(this.listWrap.classList.remove(kr),this.listWrap.classList.remove(Fr),this.listWrap.removeAttribute("style"),this.parent.removeAttribute("style"));}},gm=Rr;var Vr={};re(Vr,{default:()=>Tm});var ri=function(){return ri=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},ri.apply(this,arguments)};function Ec(t,e,i){for(var s,n=0,r=e.length;n<r;n++)!s&&n in e||(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}function vc(t){return Array.prototype.slice.call(t)}function yc(t,e){var i=Math.floor(t);return i===e||i+1===e?t:e}function bc(){return Date.now()}function zr(t,e,i){if(e="data-keen-slider-"+e,i===null)return t.removeAttribute(e);t.setAttribute(e,i||"");}function vs(t,e){return e=e||document,typeof t=="function"&&(t=t(e)),Array.isArray(t)?t:typeof t=="string"?vc(e.querySelectorAll(t)):t instanceof HTMLElement?[t]:t instanceof NodeList?vc(t):[]}function Ni(t){t.raw&&(t=t.raw),t.cancelable&&!t.defaultPrevented&&t.preventDefault();}function ki(t){t.raw&&(t=t.raw),t.stopPropagation&&t.stopPropagation();}function wc(){var t=[];return {add:function(e,i,s,n){e.addListener?e.addListener(s):e.addEventListener(i,s,n),t.push([e,i,s,n]);},input:function(e,i,s,n){this.add(e,i,function(r){return function(a){a.nativeEvent&&(a=a.nativeEvent);var o=a.changedTouches||[],l=a.targetTouches||[],c=a.detail&&a.detail.x?a.detail:null;return r({id:c?c.identifier?c.identifier:"i":l[0]?l[0]?l[0].identifier:"e":"d",idChanged:c?c.identifier?c.identifier:"i":o[0]?o[0]?o[0].identifier:"e":"d",raw:a,x:c&&c.x?c.x:l[0]?l[0].screenX:c?c.x:a.pageX,y:c&&c.y?c.y:l[0]?l[0].screenY:c?c.y:a.pageY})}}(s),n);},purge:function(){t.forEach(function(e){e[0].removeListener?e[0].removeListener(e[2]):e[0].removeEventListener(e[1],e[2],e[3]);}),t=[];}}}function $r(t,e,i){return Math.min(Math.max(t,e),i)}function Xe(t){return (t>0?1:0)-(t<0?1:0)||+t}function _c(t){var e=t.getBoundingClientRect();return {height:yc(e.height,t.offsetHeight),width:yc(e.width,t.offsetWidth)}}function Le(t,e,i,s){var n=t&&t[e];return n==null?i:s&&typeof n=="function"?n():n}function Ge(t){return Math.round(1e6*t)/1e6}function vm(t){var e,i,s,n,r,a;function o(h){a||(a=h),l(!0);var y=h-a;y>s&&(y=s);var m=n[i];if(m[3]<y)return i++,o(h);var _=m[2],S=m[4],E=m[0],v=m[1]*(0, m[5])(S===0?1:(y-_)/S);if(v&&t.track.to(E+v),y<s)return u();a=null,l(!1),c(null),t.emit("animationEnded");}function l(h){e.active=h;}function c(h){e.targetIdx=h;}function u(){var h;h=o,r=window.requestAnimationFrame(h);}function d(){var h;h=r,window.cancelAnimationFrame(h),l(!1),c(null),a&&t.emit("animationStopped"),a=null;}return e={active:!1,start:function(h){if(d(),t.track.details){var y=0,m=t.track.details.position;i=0,s=0,n=h.map(function(_){var S,E=Number(m),v=(S=_.earlyExit)!==null&&S!==void 0?S:_.duration,b=_.easing,T=_.distance*b(v/_.duration)||0;m+=T;var L=s;return s+=v,y+=T,[E,_.distance,L,s,_.duration,b]}),c(t.track.distToIdx(y)),u(),t.emit("animationStarted");}},stop:d,targetIdx:null}}function ym(t){var e,i,s,n,r,a,o,l,c,u,d,h,y,m,_=1/0,S=[],E=null,v=0;function b(O){$(v+O);}function T(O){var H=L(v+O).abs;return g(H)?H:null}function L(O){var H=Math.floor(Math.abs(Ge(O/i))),x=Ge((O%i+i)%i);x===i&&(x=0);var B=Xe(O),N=o.indexOf(Ec([],o).reduce(function(G,X){return Math.abs(X-x)<Math.abs(G-x)?X:G})),V=N;return B<0&&H++,N===a&&(V=0,H+=B>0?1:-1),{abs:V+H*a*B,origin:N,rel:V}}function P(O,H,x){var B;if(H||!A())return R(O,x);if(!g(O))return null;var N=L(x??v),V=N.abs,G=O-N.rel,X=V+G;B=R(X);var ie=R(X-a*Xe(G));return (ie!==null&&Math.abs(ie)<Math.abs(B)||B===null)&&(B=ie),Ge(B)}function R(O,H){if(H==null&&(H=Ge(v)),!g(O)||O===null)return null;O=Math.round(O);var x=L(H),B=x.abs,N=x.rel,V=x.origin,G=M(O),X=(H%i+i)%i,ie=o[V],be=Math.floor((O-(B-N))/a)*i;return Ge(ie-X-ie+o[G]+be+(V===a?i:0))}function g(O){return k(O)===O}function k(O){return $r(O,c,u)}function A(){return n.loop}function M(O){return (O%a+a)%a}function $(O){var H;H=O-v,S.push({distance:H,timestamp:bc()}),S.length>6&&(S=S.slice(-6)),v=Ge(O);var x=F().abs;if(x!==E){var B=E!==null;E=x,B&&t.emit("slideChanged");}}function F(O){var H=O?null:function(){if(a){var x=A(),B=x?(v%i+i)%i:v,N=(x?v%i:v)-r[0][2],V=0-(N<0&&x?i-Math.abs(N):N),G=0,X=L(v),ie=X.abs,be=X.rel,Tt=r[be][2],Rt=r.map(function(p,f){var I=V+G;(I<0-p[0]||I>1)&&(I+=(Math.abs(I)>i-1&&x?i:0)*Xe(-I));var w=f-be,ee=Xe(w),ne=w+ie;x&&(ee===-1&&I>Tt&&(ne+=a),ee===1&&I<Tt&&(ne-=a),d!==null&&ne<d&&(I+=i),h!==null&&ne>h&&(I-=i));
19var le=I+p[0]+p[1],_e=Math.max(I>=0&&le<=1?1:le<0||I>1?0:I<0?Math.min(1,(p[0]+I)/p[0]):(1-I)/p[0],0);return G+=p[0]+p[1],{abs:ne,distance:n.rtl?-1*I+1-p[0]:I,portion:_e,size:p[0]}});return ie=k(ie),be=M(ie),{abs:k(ie),length:s,max:m,maxIdx:u,min:y,minIdx:c,position:v,progress:x?B/i:v/s,rel:be,slides:Rt,slidesLength:i}}}();return e.details=H,t.emit("detailsChanged"),H}return e={absToRel:M,add:b,details:null,distToIdx:T,idxToDist:P,init:function(O){if(function(){if(n=t.options,r=(n.trackConfig||[]).map(function(N){return [Le(N,"size",1),Le(N,"spacing",0),Le(N,"origin",0)]}),a=r.length){i=Ge(r.reduce(function(N,V){return N+V[0]+V[1]},0));var x,B=a-1;s=Ge(i+r[0][2]-r[B][0]-r[B][2]-r[B][1]),o=r.reduce(function(N,V){if(!N)return [0];var G=r[N.length-1],X=N[N.length-1]+(G[0]+G[2])+G[1];return X-=V[2],N[N.length-1]>X&&(X=N[N.length-1]),X=Ge(X),N.push(X),(!x||x<X)&&(l=N.length-1),x=X,N},null),s===0&&(l=0),o.push(Ge(i));}}(),!a)return F(!0);var H;((function(){var x=t.options.range,B=t.options.loop;d=c=B?Le(B,"min",-1/0):0,h=u=B?Le(B,"max",_):l;var N=Le(x,"min",null),V=Le(x,"max",null);N!==null&&(c=N),V!==null&&(u=V),y=c===-1/0?c:t.track.idxToDist(c||0,!0,0),m=u===_?u:P(u,!0,0),V===null&&(h=u),Le(x,"align",!1)&&u!==_&&r[M(u)][2]===0&&(m-=1-r[M(u)][0],u=T(m-v)),y=Ge(y),m=Ge(m);}))(),H=O,Number(H)===H?b(R(k(O))):F();},to:$,velocity:function(){var O=bc(),H=S.reduce(function(x,B){var N=B.distance,V=B.timestamp;return O-V>200||(Xe(N)!==Xe(x.distance)&&x.distance&&(x={distance:0,lastTimestamp:0,time:0}),x.time&&(x.distance+=N),x.lastTimestamp&&(x.time+=V-x.lastTimestamp),x.lastTimestamp=V),x},{distance:0,lastTimestamp:0,time:0});return H.distance/H.time||0}}}function bm(t){var e,i,s,n,r,a,o,l;function c(E){return 2*E}function u(E){return $r(E,o,l)}function d(E){return 1-Math.pow(1-E,3)}function h(){return s?t.track.velocity():0}function y(){S();var E=t.options.mode==="free-snap",v=t.track,b=h();n=Xe(b);var T=t.track.details,L=[];if(b||!E){var P=m(b),R=P.dist,g=P.dur;if(g=c(g),R*=n,E){var k=v.idxToDist(v.distToIdx(R),!0);k&&(R=k);}L.push({distance:R,duration:g,easing:d});var A=T.position,M=A+R;if(M<r||M>a){var $=M<r?r-A:a-A,F=0,O=b;if(Xe($)===n){var H=Math.min(Math.abs($)/Math.abs(R),1),x=function(V){return 1-Math.pow(1-V,1/3)}(H)*g;L[0].earlyExit=x,O=b*(1-H);}else L[0].earlyExit=0,F+=$;var B=m(O,100),N=B.dist*n;t.options.rubberband&&(L.push({distance:N,duration:c(B.dur),easing:d}),L.push({distance:-N+F,duration:500,easing:d}));}t.animator.start(L);}else t.moveToIdx(u(T.abs),!0,{duration:500,easing:function(V){return 1+--V*V*V*V*V}});}function m(E,v){v===void 0&&(v=1e3);var b=147e-9+(E=Math.abs(E))/v;return {dist:Math.pow(E,2)/b,dur:E/b}}function _(){var E=t.track.details;E&&(r=E.min,a=E.max,o=E.minIdx,l=E.maxIdx);}function S(){t.animator.stop();}t.on("updated",_),t.on("optionsChanged",_),t.on("created",_),t.on("dragStarted",function(){s=!1,S(),e=i=t.track.details.abs;}),t.on("dragChecked",function(){s=!0;}),t.on("dragEnded",function(){var E=t.options.mode;E==="snap"&&function(){var v=t.track,b=t.track.details,T=b.position,L=Xe(h());(T>a||T<r)&&(L=0);var P=e+L;b.slides[v.absToRel(P)].portion===0&&(P-=L),e!==i&&(P=i),Xe(v.idxToDist(P,!0))!==L&&(P+=L),P=u(P);var R=v.idxToDist(P,!0);t.animator.start([{distance:R,duration:500,easing:function(g){return 1+--g*g*g*g*g}}]);}(),E!=="free"&&E!=="free-snap"||y();}),t.on("dragged",function(){i=t.track.details.abs;});}function _m(t){var e,i,s,n,r,a,o,l,c,u,d,h,y,m,_,S,E,v,b=wc();function T(F){if(a&&l===F.id){var O=g(F);if(c){if(!R(F))return P(F);u=O,c=!1,t.emit("dragChecked");}if(S)return u=O;Ni(F);var H=function(B){if(E===-1/0&&v===1/0)return B;var N=t.track.details,V=N.length,G=N.position,X=$r(B,E-G,v-G);if(V===0)return 0;if(!t.options.rubberband)return X;if(G<=v&&G>=E||G<E&&i>0||G>v&&i<0)return B;var ie=(G<E?G-E:G-v)/V,be=n*V,Tt=Math.abs(ie*be),Rt=Math.max(0,1-Tt/r*2);return Rt*Rt*B}(o(u-O)/n*s);i=Xe(H);var x=t.track.details.position;(x>E&&x<v||x===E&&i>0||x===v&&i<0)&&ki(F),d+=H,!h&&Math.abs(d*n)>5&&(h=!0),t.track.add(H),u=O,t.emit("dragged");}}function L(F){!a&&t.track.details&&t.track.details.length&&(d=0,a=!0,h=!1,c=!0,l=F.id,R(F),u=g(F),t.emit("dragStarted"));}function P(F){a&&l===F.idChanged&&(a=!1,t.emit("dragEnded"));}function R(F){var O=k(),H=O?F.y:F.x,x=O?F.x:F.y,B=y!==void 0&&m!==void 0&&Math.abs(m-x)<=Math.abs(y-H);return y=H,m=x,B}function g(F){return k()?F.y:F.x}function k(){return t.options.vertical}function A(){n=t.size,r=k()?window.innerHeight:window.innerWidth;var F=t.track.details;F&&(E=F.min,v=F.max);}function M(F){h&&(ki(F),Ni(F));}function $(){if(b.purge(),t.options.drag&&!t.options.disabled){var F;F=t.options.dragSpeed||1,o=typeof F=="function"?F:function(H){return H*F}
19,s=t.options.rtl?-1:1,A(),e=t.container,function(){var H="data-keen-slider-clickable";vs("[".concat(H,"]:not([").concat(H,"=false])"),e).map(function(x){b.add(x,"dragstart",ki),b.add(x,"mousedown",ki),b.add(x,"touchstart",ki);});}(),b.add(e,"dragstart",function(H){Ni(H);}),b.add(e,"click",M,{capture:!0}),b.input(e,"ksDragStart",L),b.input(e,"ksDrag",T),b.input(e,"ksDragEnd",P),b.input(e,"mousedown",L),b.input(e,"mousemove",T),b.input(e,"mouseleave",P),b.input(e,"mouseup",P),b.input(e,"touchstart",L,{passive:!0}),b.input(e,"touchmove",T,{passive:!1}),b.input(e,"touchend",P),b.input(e,"touchcancel",P),b.add(window,"wheel",function(H){a&&Ni(H);});var O="data-keen-slider-scrollable";vs("[".concat(O,"]:not([").concat(O,"=false])"),t.container).map(function(H){return function(x){var B;b.input(x,"touchstart",function(N){B=g(N),S=!0,_=!0;},{passive:!0}),b.input(x,"touchmove",function(N){var V=k(),G=V?x.scrollHeight-x.clientHeight:x.scrollWidth-x.clientWidth,X=B-g(N),ie=V?x.scrollTop:x.scrollLeft,be=V&&x.style.overflowY==="scroll"||!V&&x.style.overflowX==="scroll";if(B=g(N),(X<0&&ie>0||X>0&&ie<G)&&_&&be)return S=!0;_=!1,Ni(N),S=!1;}),b.input(x,"touchend",function(){S=!1;});}(H)});}}t.on("updated",A),t.on("optionsChanged",$),t.on("created",$),t.on("destroyed",b.purge);}function Em(t){var e,i,s=null;function n(y,m,_){t.animator.active?a(y,m,_):requestAnimationFrame(function(){return a(y,m,_)});}function r(){n(!1,!1,i);}function a(y,m,_){var S=0,E=t.size,v=t.track.details;if(v&&e){var b=v.slides;e.forEach(function(T,L){if(y)!s&&m&&l(T,null,_),c(T,null,_);else {if(!b[L])return;var P=b[L].size*E;!s&&m&&l(T,P,_),c(T,b[L].distance*E-S,_),S+=P;}});}}function o(y){return t.options.renderMode==="performance"?Math.round(y):y}function l(y,m,_){var S=_?"height":"width";m!==null&&(m=o(m)+"px"),y.style["min-"+S]=m,y.style["max-"+S]=m;}function c(y,m,_){if(m!==null){m=o(m);var S=_?m:0;m="translate3d(".concat(_?0:m,"px, ").concat(S,"px, 0)");}y.style.transform=m,y.style["-webkit-transform"]=m;}function u(){e&&(a(!0,!0,i),e=null),t.on("detailsChanged",r,!0);}function d(){n(!1,!0,i);}function h(){u(),i=t.options.vertical,t.options.disabled||t.options.renderMode==="custom"||(s=Le(t.options.slides,"perView",null)==="auto",t.on("detailsChanged",r),(e=t.slides).length&&d());}t.on("created",h),t.on("optionsChanged",h),t.on("beforeOptionsChanged",function(){u();}),t.on("updated",d),t.on("destroyed",u);}function wm(t,e){return function(i){var s,n,r,a,l,c=wc();function u(g){var k;zr(i.container,"reverse",(k=i.container,window.getComputedStyle(k,null).getPropertyValue("direction")!=="rtl"||g?null:"")),zr(i.container,"v",i.options.vertical&&!g?"":null),zr(i.container,"disabled",i.options.disabled&&!g?"":null);}function d(){h()&&E();}function h(){var g=null;if(a.forEach(function(A){A.matches&&(g=A.__media);}),g===s)return !1;s||i.emit("beforeOptionsChanged"),s=g;var k=g?r.breakpoints[g]:r;return i.options=ri(ri({},r),k),u(),P(),R(),b(),!0}function y(g){var k=_c(g);return (i.options.vertical?k.height:k.width)/i.size||1}function m(){return i.options.trackConfig.length}function _(g){for(var k in s=!1,r=ri(ri({},e),g),c.purge(),n=i.size,a=[],r.breakpoints||[]){var A=window.matchMedia(k);A.__media=k,a.push(A),c.add(A,"change",d);}c.add(window,"orientationchange",L),c.add(window,"resize",T),h();}function S(g){i.animator.stop();var k=i.track.details;i.track.init(g??(k?k.abs:0));}function E(g){S(g),i.emit("optionsChanged");}function v(g,k){if(g)return _(g),void E(k);P(),R();var A=m();b(),m()!==A?E(k):S(k),i.emit("updated");}function b(){var g=i.options.slides;if(typeof g=="function")return i.options.trackConfig=g(i.size,i.slides);for(var k=i.slides,A=k.length,M=typeof g=="number"?g:Le(g,"number",A,!0),$=[],F=Le(g,"perView",1,!0),O=Le(g,"spacing",0,!0)/i.size||0,H=F==="auto"?O:O/F,x=Le(g,"origin","auto"),B=0,N=0;N<M;N++){var V=F==="auto"?y(k[N]):1/F-O+H,G=x==="center"?.5-V/2:x==="auto"?0:x;$.push({origin:G,size:V,spacing:O}),B+=V;}if(B+=O*(M-1),x==="auto"&&!i.options.loop&&F!==1){var X=0;$.map(function(ie){var be=B-X;return X+=ie.size+O,be>=1||(ie.origin=1-be-(B>1?0:1-B)),ie});}i.options.trackConfig=$;}function T(){P();var g=i.size;i.options.disabled||g===n||(n=g,v());}function L(){T(),setTimeout(T,500),setTimeout(T,2e3);}function P(){var g=_c(i.container);i.size=(i.options.vertical?g.height:g.width)||1;}function R(){i.slides=vs(i.options.selector,i.container);}i.container=(l=vs(t,document)).length?l[0]:null,i.destroy=function(){c.purge(),i.emit("destroyed"),u(!0);},i.prev=function(){i.moveToIdx(i.track.details.abs-1,!0);},i.next=function(){i.moveToIdx(i.track.details.abs+1,!0);},i.update=v,_(i.options);}}
19var Sc=function(t,e,i){try{return function(s,n){var r,a={};return r={emit:function(o){a[o]&&a[o].forEach(function(c){c(r);});var l=r.options&&r.options[o];l&&l(r);},moveToIdx:function(o,l,c){var u=r.track.idxToDist(o,l);if(u){var d=r.options.defaultAnimation;r.animator.start([{distance:u,duration:Le(c||d,"duration",500),easing:Le(c||d,"easing",function(h){return 1+--h*h*h*h*h})}]);}},on:function(o,l,c){c===void 0&&(c=!1),a[o]||(a[o]=[]);var u=a[o].indexOf(l);u>-1?c&&delete a[o][u]:c||a[o].push(l);},options:s},function(){if(r.track=ym(r),r.animator=vm(r),n)for(var o=0,l=n;o<l.length;o++)(0,l[o])(r);r.track.init(r.options.initial||0),r.emit("created");}(),r}(e,Ec([wm(t,{drag:!0,mode:"snap",renderMode:"precision",rubberband:!0,selector:".keen-slider__slide"}),Em,_m,bm],i||[],!0))}catch(s){console.error(s);}};var Sm=()=>window.matchMedia("(min-width: 1440px)").matches,ys=()=>window.matchMedia("(min-width: 768px)").matches,Br=class extends W{constructor(){super(...arguments);this.lastWidth=window.innerWidth;}async onMount(){this.lowerThan3=this.el.classList.contains("centered"),this.initCarousel();}registerEvents(){window.addEventListener("resize",()=>{window.innerWidth!==this.lastWidth&&this.slider&&this.slider.update({...this.slider.options,disabled:!this.isSliderActive(),slides:{origin:ys()?void 0:"center",perView:ys()?1.2:2.1,spacing:16}});});}isSliderActive(){return !Sm()&&(ys()&&!this.lowerThan3||!ys())}initCarousel(){this.slider=new Sc(this.el,{mode:"snap",selector:".teaser",disabled:!this.isSliderActive(),slides:{origin:"center",perView:1.2,spacing:16},breakpoints:{"(min-width: 768px)":{slides:{perView:2.1,spacing:16}}}});}},Tm=Br;var Wr={};re(Wr,{default:()=>xm});var Gr=class extends W{async onMount(){this.waitForImagesToLoad().then(()=>{this.setTopOffsetProp(),this.setLgTopMarginProp();});}registerEvents(){lt(()=>{this.setTopOffsetProp(),this.setLgTopMarginProp();});}setTopOffsetProp(){let e=this.findChild(".cmp-teaser__image");e&&this.el.style.setProperty("--top-offset",e.offsetHeight/2*-1+"px");}setLgTopMarginProp(){let e=this.findChild(".cmp-teaser__content .image.overlap"),i=this.findChild(".cmp-teaser__content-side");e&&i&&this.el.style.setProperty("--lg-top-margin","calc("+-1*Math.max(0,e.offsetHeight-i.offsetHeight)+"px + var(--lg-content-side-top-margin))");}async waitForImagesToLoad(){let e=this.findChildren("img");return Promise.all(e.map(i=>new Promise((s,n)=>{i.complete?s(i):(i.addEventListener("load",()=>s(i)),i.addEventListener("error",()=>n(new Error(`Failed to load image: ${i.src}`))));})))}},xm=Gr;new Hi;window.addEventListener("load",()=>{if(document.body?.classList.contains("header--blend")){let e=document.querySelector("header"),i=document.querySelector("header ~ .container > .cmp-container > .aem-Grid > div");e&&i&&(i.style.paddingBlockStart=`${e.clientHeight}px`);}});document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("h1, h2, h3, h4, h5, h6, p, small, blockquote, td, th, li, dt, dd, caption, figcaption, div").forEach(i=>{i.children.length===0&&i.innerHTML.includes("||")&&(i.innerHTML=i.innerHTML.replace(/\|\|/g,"­"));}),Ja(qr);}); 20/*! Bundled license information: 21 22sax/lib/sax.js: 23 (*! http://mths.be/fromcodepoint v0.1.0 by @mathias *) 24 25choices.js/public/assets/scripts/choices.mjs: 26 (*! choices.js v11.0.3 | © 2024 Josh Johnson | https://github.com/jshjohnson/Choices#readme *) 27*/})();
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.