(()=>{var Ac=Object.create;var Qd=Object.defineProperty,yc=Object.defineProperties,zc=Object.getOwnPropertyDescriptor,Lc=Object.getOwnPropertyDescriptors,wc=Object.getOwnPropertyNames,Ze=Object.getOwnPropertySymbols,Oc=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty,jc=Object.prototype.propertyIsEnumerable;var Ie=(t,l,d)=>l in t?Qd(t,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):t[l]=d,lt=(t,l)=>{for(var d in l||(l={}))Fe.call(l,d)&&Ie(t,d,l[d]);if(Ze)for(var d of Ze(l))jc.call(l,d)&&Ie(t,d,l[d]);return t},ge=(t,l)=>yc(t,Lc(l));var g=(t,l)=>()=>(l||t((l={exports:{}}).exports,l),l.exports);var Dc=(t,l,d,V)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of wc(l))!Fe.call(t,i)&&i!==d&&Qd(t,i,{get:()=>l[i],enumerable:!(V=zc(l,i))||V.enumerable});return t};var A=(t,l,d)=>(d=t!=null?Ac(Oc(t)):{},Dc(l||!t||!t.__esModule?Qd(d,"default",{value:t,enumerable:!0}):d,t));var me=(t,l,d)=>new Promise((V,i)=>{var e=b=>{try{R(d.next(b))}catch(a){i(a)}},n=b=>{try{R(d.throw(b))}catch(a){i(a)}},R=b=>b.done?V(b.value):Promise.resolve(b.value).then(e,n);R((d=d.apply(t,l)).next())});var dt=g((Pm,Be)=>{var hl=function(t){return t&&t.Math==Math&&t};Be.exports=hl(typeof globalThis=="object"&&globalThis)||hl(typeof window=="object"&&window)||hl(typeof self=="object"&&self)||hl(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var Vt=g((Km,pe)=>{pe.exports=function(t){try{return!!t()}catch(l){return!0}}});var It=g((_m,oe)=>{var vc=Vt();oe.exports=!vc(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var ul=g((qm,xe)=>{var fc=Vt();xe.exports=!fc(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")})});var rl=g(($m,Je)=>{var Pc=ul(),sl=Function.prototype.call;Je.exports=Pc?sl.bind(sl):function(){return sl.apply(sl,arguments)}});var Xe=g(Ce=>{"use strict";var Ne={}.propertyIsEnumerable,Qe=Object.getOwnPropertyDescriptor,Kc=Qe&&!Ne.call({1:2},1);Ce.f=Kc?function(l){var d=Qe(this,l);return!!d&&d.enumerable}:Ne});var Cd=g((l1,he)=>{he.exports=function(t,l){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:l}}});var P=g((d1,re)=>{var ue=ul(),se=Function.prototype,Xd=se.call,_c=ue&&se.bind.bind(Xd,Xd);re.exports=ue?_c:function(t){return function(){return Xd.apply(t,arguments)}}});var At=g((V1,Te)=>{var Ye=P(),qc=Ye({}.toString),$c=Ye("".slice);Te.exports=function(t){return $c(qc(t),8,-1)}});var ke=g((i1,Se)=>{var tW=P(),lW=Vt(),dW=At(),hd=Object,VW=tW("".split);Se.exports=lW(function(){return!hd("z").propertyIsEnumerable(0)})?function(t){return dW(t)=="String"?VW(t,""):hd(t)}:hd});var ud=g((e1,Me)=>{Me.exports=function(t){return t==null}});var yt=g((a1,He)=>{var iW=ud(),eW=TypeError;He.exports=function(t){if(iW(t))throw eW("Can't call method on "+t);return t}});var Kt=g((n1,Ee)=>{var aW=ke(),nW=yt();Ee.exports=function(t){return aW(nW(t))}});var rd=g((b1,Ae)=>{var sd=typeof document=="object"&&document.all,bW=typeof sd=="undefined"&&sd!==void 0;Ae.exports={all:sd,IS_HTMLDDA:bW}});var q=g((R1,ze)=>{var ye=rd(),RW=ye.all;ze.exports=ye.IS_HTMLDDA?function(t){return typeof t=="function"||t===RW}:function(t){return typeof t=="function"}});var mt=g((G1,Oe)=>{var Le=q(),we=rd(),GW=we.all;Oe.exports=we.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:Le(t)||t===GW}:function(t){return typeof t=="object"?t!==null:Le(t)}});var zt=g((c1,je)=>{var Yd=dt(),cW=q(),WW=function(t){return cW(t)?t:void 0};je.exports=function(t,l){return arguments.length<2?WW(Yd[t]):Yd[t]&&Yd[t][l]}});var ve=g((W1,De)=>{var UW=P();De.exports=UW({}.isPrototypeOf)});var Td=g((U1,fe)=>{var ZW=zt();fe.exports=ZW("navigator","userAgent")||""});var la=g((Z1,ta)=>{var $e=dt(),Sd=Td(),Pe=$e.process,Ke=$e.Deno,_e=Pe&&Pe.versions||Ke&&Ke.version,qe=_e&&_e.v8,it,Yl;qe&&(it=qe.split("."),Yl=it[0]>0&&it[0]<4?1:+(it[0]+it[1]));!Yl&&Sd&&(it=Sd.match(/Edge\/(\d+)/),(!it||it[1]>=74)&&(it=Sd.match(/Chrome\/(\d+)/),it&&(Yl=+it[1])));ta.exports=Yl});var kd=g((I1,Va)=>{var da=la(),IW=Vt();Va.exports=!!Object.getOwnPropertySymbols&&!IW(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&da&&da<41})});var Md=g((F1,ia)=>{var FW=kd();ia.exports=FW&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Hd=g((g1,ea)=>{var gW=zt(),mW=q(),BW=ve(),pW=Md(),oW=Object;ea.exports=pW?function(t){return typeof t=="symbol"}:function(t){var l=gW("Symbol");return mW(l)&&BW(l.prototype,oW(t))}});var na=g((m1,aa)=>{var xW=String;aa.exports=function(t){try{return xW(t)}catch(l){return"Object"}}});var Tl=g((B1,ba)=>{var JW=q(),NW=na(),QW=TypeError;ba.exports=function(t){if(JW(t))return t;throw QW(NW(t)+" is not a function")}});var Ga=g((p1,Ra)=>{var CW=Tl(),XW=ud();Ra.exports=function(t,l){var d=t[l];return XW(d)?void 0:CW(d)}});var Wa=g((o1,ca)=>{var Ed=rl(),Ad=q(),yd=mt(),hW=TypeError;ca.exports=function(t,l){var d,V;if(l==="string"&&Ad(d=t.toString)&&!yd(V=Ed(d,t))||Ad(d=t.valueOf)&&!yd(V=Ed(d,t))||l!=="string"&&Ad(d=t.toString)&&!yd(V=Ed(d,t)))return V;throw hW("Can't convert object to primitive value")}});var Za=g((x1,Ua)=>{Ua.exports=!1});var Sl=g((J1,Fa)=>{var Ia=dt(),uW=Object.defineProperty;Fa.exports=function(t,l){try{uW(Ia,t,{value:l,configurable:!0,writable:!0})}catch(d){Ia[t]=l}return l}});var kl=g((N1,ma)=>{var sW=dt(),rW=Sl(),ga="__core-js_shared__",YW=sW[ga]||rW(ga,{});ma.exports=YW});var zd=g((Q1,pa)=>{var TW=Za(),Ba=kl();(pa.exports=function(t,l){return Ba[t]||(Ba[t]=l!==void 0?l:{})})("versions",[]).push({version:"3.27.1",mode:TW?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var Ld=g((C1,oa)=>{var SW=yt(),kW=Object;oa.exports=function(t){return kW(SW(t))}});var Bt=g((X1,xa)=>{var MW=P(),HW=Ld(),EW=MW({}.hasOwnProperty);xa.exports=Object.hasOwn||function(l,d){return EW(HW(l),d)}});var wd=g((h1,Ja)=>{var AW=P(),yW=0,zW=Math.random(),LW=AW(1 .toString);Ja.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+LW(++yW+zW,36)}});var pt=g((u1,ha)=>{var wW=dt(),OW=zd(),Na=Bt(),jW=wd(),Qa=kd(),Xa=Md(),Lt=OW("wks"),ut=wW.Symbol,Ca=ut&&ut.for,DW=Xa?ut:ut&&ut.withoutSetter||jW;ha.exports=function(t){if(!Na(Lt,t)||!(Qa||typeof Lt[t]=="string")){var l="Symbol."+t;Qa&&Na(ut,t)?Lt[t]=ut[t]:Xa&&Ca?Lt[t]=Ca(l):Lt[t]=DW(l)}return Lt[t]}});var Ya=g((s1,ra)=>{var vW=rl(),ua=mt(),sa=Hd(),fW=Ga(),PW=Wa(),KW=pt(),_W=TypeError,qW=KW("toPrimitive");ra.exports=function(t,l){if(!ua(t)||sa(t))return t;var d=fW(t,qW),V;if(d){if(l===void 0&&(l="default"),V=vW(d,t,l),!ua(V)||sa(V))return V;throw _W("Can't convert object to primitive value")}return l===void 0&&(l="number"),PW(t,l)}});var Od=g((r1,Ta)=>{var $W=Ya(),t0=Hd();Ta.exports=function(t){var l=$W(t,"string");return t0(l)?l:l+""}});var Dd=g((Y1,ka)=>{var l0=dt(),Sa=mt(),jd=l0.document,d0=Sa(jd)&&Sa(jd.createElement);ka.exports=function(t){return d0?jd.createElement(t):{}}});var vd=g((T1,Ma)=>{var V0=It(),i0=Vt(),e0=Dd();Ma.exports=!V0&&!i0(function(){return Object.defineProperty(e0("div"),"a",{get:function(){return 7}}).a!=7})});var fd=g(Ea=>{var a0=It(),n0=rl(),b0=Xe(),R0=Cd(),G0=Kt(),c0=Od(),W0=Bt(),U0=vd(),Ha=Object.getOwnPropertyDescriptor;Ea.f=a0?Ha:function(l,d){if(l=G0(l),d=c0(d),U0)try{return Ha(l,d)}catch(V){}if(W0(l,d))return R0(!n0(b0.f,l,d),l[d])}});var Pd=g((k1,Aa)=>{var Z0=It(),I0=Vt();Aa.exports=Z0&&I0(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var _t=g((M1,ya)=>{var F0=mt(),g0=String,m0=TypeError;ya.exports=function(t){if(F0(t))return t;throw m0(g0(t)+" is not an object")}});var wt=g(La=>{var B0=It(),p0=vd(),o0=Pd(),Ml=_t(),za=Od(),x0=TypeError,Kd=Object.defineProperty,J0=Object.getOwnPropertyDescriptor,_d="enumerable",qd="configurable",$d="writable";La.f=B0?o0?function(l,d,V){if(Ml(l),d=za(d),Ml(V),typeof l=="function"&&d==="prototype"&&"value"in V&&$d in V&&!V[$d]){var i=J0(l,d);i&&i[$d]&&(l[d]=V.value,V={configurable:qd in V?V[qd]:i[qd],enumerable:_d in V?V[_d]:i[_d],writable:!1})}return Kd(l,d,V)}:Kd:function(l,d,V){if(Ml(l),d=za(d),Ml(V),p0)try{return Kd(l,d,V)}catch(i){}if("get"in V||"set"in V)throw x0("Accessors not supported");return"value"in V&&(l[d]=V.value),l}});var tV=g((E1,wa)=>{var N0=It(),Q0=wt(),C0=Cd();wa.exports=N0?function(t,l,d){return Q0.f(t,l,C0(1,d))}:function(t,l,d){return t[l]=d,t}});var Da=g((A1,ja)=>{var lV=It(),X0=Bt(),Oa=Function.prototype,h0=lV&&Object.getOwnPropertyDescriptor,dV=X0(Oa,"name"),u0=dV&&function(){}.name==="something",s0=dV&&(!lV||lV&&h0(Oa,"name").configurable);ja.exports={EXISTS:dV,PROPER:u0,CONFIGURABLE:s0}});var iV=g((y1,va)=>{var r0=P(),Y0=q(),VV=kl(),T0=r0(Function.toString);Y0(VV.inspectSource)||(VV.inspectSource=function(t){return T0(t)});va.exports=VV.inspectSource});var Ka=g((z1,Pa)=>{var S0=dt(),k0=q(),fa=S0.WeakMap;Pa.exports=k0(fa)&&/native code/.test(String(fa))});var eV=g((L1,qa)=>{var M0=zd(),H0=wd(),_a=M0("keys");qa.exports=function(t){return _a[t]||(_a[t]=H0(t))}});var Hl=g((w1,$a)=>{$a.exports={}});var Vn=g((O1,dn)=>{var E0=Ka(),ln=dt(),A0=mt(),y0=tV(),aV=Bt(),nV=kl(),z0=eV(),L0=Hl(),tn="Object already initialized",bV=ln.TypeError,w0=ln.WeakMap,El,qt,Al,O0=function(t){return Al(t)?qt(t):El(t,{})},j0=function(t){return function(l){var d;if(!A0(l)||(d=qt(l)).type!==t)throw bV("Incompatible receiver, "+t+" required");return d}};E0||nV.state?(et=nV.state||(nV.state=new w0),et.get=et.get,et.has=et.has,et.set=et.set,El=function(t,l){if(et.has(t))throw bV(tn);return l.facade=t,et.set(t,l),l},qt=function(t){return et.get(t)||{}},Al=function(t){return et.has(t)}):(st=z0("state"),L0[st]=!0,El=function(t,l){if(aV(t,st))throw bV(tn);return l.facade=t,y0(t,st,l),l},qt=function(t){return aV(t,st)?t[st]:{}},Al=function(t){return aV(t,st)});var et,st;dn.exports={set:El,get:qt,has:Al,enforce:O0,getterFor:j0}});var nn=g((j1,an)=>{var D0=Vt(),v0=q(),yl=Bt(),RV=It(),f0=Da().CONFIGURABLE,P0=iV(),en=Vn(),K0=en.enforce,_0=en.get,zl=Object.defineProperty,q0=RV&&!D0(function(){return zl(function(){},"length",{value:8}).length!==8}),$0=String(String).split("String"),tU=an.exports=function(t,l,d){String(l).slice(0,7)==="Symbol("&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),d&&d.getter&&(l="get "+l),d&&d.setter&&(l="set "+l),(!yl(t,"name")||f0&&t.name!==l)&&(RV?zl(t,"name",{value:l,configurable:!0}):t.name=l),q0&&d&&yl(d,"arity")&&t.length!==d.arity&&zl(t,"length",{value:d.arity});try{d&&yl(d,"constructor")&&d.constructor?RV&&zl(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var V=K0(t);return yl(V,"source")||(V.source=$0.join(typeof l=="string"?l:"")),t};Function.prototype.toString=tU(function(){return v0(this)&&_0(this).source||P0(this)},"toString")});var Rn=g((D1,bn)=>{var lU=q(),dU=wt(),VU=nn(),iU=Sl();bn.exports=function(t,l,d,V){V||(V={});var i=V.enumerable,e=V.name!==void 0?V.name:l;if(lU(d)&&VU(d,e,V),V.global)i?t[l]=d:iU(l,d);else{try{V.unsafe?t[l]&&(i=!0):delete t[l]}catch(n){}i?t[l]=d:dU.f(t,l,{value:d,enumerable:!1,configurable:!V.nonConfigurable,writable:!V.nonWritable})}return t}});var cn=g((v1,Gn)=>{var eU=Math.ceil,aU=Math.floor;Gn.exports=Math.trunc||function(l){var d=+l;return(d>0?aU:eU)(d)}});var Ll=g((f1,Wn)=>{var nU=cn();Wn.exports=function(t){var l=+t;return l!==l||l===0?0:nU(l)}});var Zn=g((P1,Un)=>{var bU=Ll(),RU=Math.max,GU=Math.min;Un.exports=function(t,l){var d=bU(t);return d<0?RU(d+l,0):GU(d,l)}});var GV=g((K1,In)=>{var cU=Ll(),WU=Math.min;In.exports=function(t){return t>0?WU(cU(t),9007199254740991):0}});var wl=g((_1,Fn)=>{var UU=GV();Fn.exports=function(t){return UU(t.length)}});var cV=g((q1,mn)=>{var ZU=Kt(),IU=Zn(),FU=wl(),gn=function(t){return function(l,d,V){var i=ZU(l),e=FU(i),n=IU(V,e),R;if(t&&d!=d){for(;e>n;)if(R=i[n++],R!=R)return!0}else for(;e>n;n++)if((t||n in i)&&i[n]===d)return t||n||0;return!t&&-1}};mn.exports={includes:gn(!0),indexOf:gn(!1)}});var UV=g(($1,pn)=>{var gU=P(),WV=Bt(),mU=Kt(),BU=cV().indexOf,pU=Hl(),Bn=gU([].push);pn.exports=function(t,l){var d=mU(t),V=0,i=[],e;for(e in d)!WV(pU,e)&&WV(d,e)&&Bn(i,e);for(;l.length>V;)WV(d,e=l[V++])&&(~BU(i,e)||Bn(i,e));return i}});var Ol=g((tB,on)=>{on.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Jn=g(xn=>{var oU=UV(),xU=Ol(),JU=xU.concat("length","prototype");xn.f=Object.getOwnPropertyNames||function(l){return oU(l,JU)}});var Qn=g(Nn=>{Nn.f=Object.getOwnPropertySymbols});var Xn=g((VB,Cn)=>{var NU=zt(),QU=P(),CU=Jn(),XU=Qn(),hU=_t(),uU=QU([].concat);Cn.exports=NU("Reflect","ownKeys")||function(l){var d=CU.f(hU(l)),V=XU.f;return V?uU(d,V(l)):d}});var sn=g((iB,un)=>{var hn=Bt(),sU=Xn(),rU=fd(),YU=wt();un.exports=function(t,l,d){for(var V=sU(l),i=YU.f,e=rU.f,n=0;n<V.length;n++){var R=V[n];!hn(t,R)&&!(d&&hn(d,R))&&i(t,R,e(l,R))}}});var Yn=g((eB,rn)=>{var TU=Vt(),SU=q(),kU=/#|\.prototype\./,$t=function(t,l){var d=HU[MU(t)];return d==AU?!0:d==EU?!1:SU(l)?TU(l):!!l},MU=$t.normalize=function(t){return String(t).replace(kU,".").toLowerCase()},HU=$t.data={},EU=$t.NATIVE="N",AU=$t.POLYFILL="P";rn.exports=$t});var tl=g((aB,Tn)=>{var ZV=dt(),yU=fd().f,zU=tV(),LU=Rn(),wU=Sl(),OU=sn(),jU=Yn();Tn.exports=function(t,l){var d=t.target,V=t.global,i=t.stat,e,n,R,b,a,G;if(V?n=ZV:i?n=ZV[d]||wU(d,{}):n=(ZV[d]||{}).prototype,n)for(R in l){if(a=l[R],t.dontCallGetSet?(G=yU(n,R),b=G&&G.value):b=n[R],e=jU(V?R:d+(i?".":"#")+R,t.forced),!e&&b!==void 0){if(typeof a==typeof b)continue;OU(a,b)}(t.sham||b&&b.sham)&&zU(a,"sham",!0),LU(n,R,a,t)}}});var IV=g((nB,Sn)=>{var DU=At();Sn.exports=Array.isArray||function(l){return DU(l)=="Array"}});var Mn=g((bB,kn)=>{var vU=TypeError,fU=9007199254740991;kn.exports=function(t){if(t>fU)throw vU("Maximum allowed index exceeded");return t}});var En=g((RB,Hn)=>{var PU=At(),KU=P();Hn.exports=function(t){if(PU(t)==="Function")return KU(t)}});var zn=g((GB,yn)=>{var An=En(),_U=Tl(),qU=ul(),$U=An(An.bind);yn.exports=function(t,l){return _U(t),l===void 0?t:qU?$U(t,l):function(){return t.apply(l,arguments)}}});var On=g((cB,wn)=>{"use strict";var tZ=IV(),lZ=wl(),dZ=Mn(),VZ=zn(),Ln=function(t,l,d,V,i,e,n,R){for(var b=i,a=0,G=n?VZ(n,R):!1,c,W;a<V;)a in d&&(c=G?G(d[a],a,l):d[a],e>0&&tZ(c)?(W=lZ(c),b=Ln(t,l,c,W,b,e-1)-1):(dZ(b+1),t[b]=c),b++),a++;return b};wn.exports=Ln});var vn=g((WB,Dn)=>{var iZ=pt(),eZ=iZ("toStringTag"),jn={};jn[eZ]="z";Dn.exports=String(jn)==="[object z]"});var FV=g((UB,fn)=>{var aZ=vn(),nZ=q(),jl=At(),bZ=pt(),RZ=bZ("toStringTag"),GZ=Object,cZ=jl(function(){return arguments}())=="Arguments",WZ=function(t,l){try{return t[l]}catch(d){}};fn.exports=aZ?jl:function(t){var l,d,V;return t===void 0?"Undefined":t===null?"Null":typeof(d=WZ(l=GZ(t),RZ))=="string"?d:cZ?jl(l):(V=jl(l))=="Object"&&nZ(l.callee)?"Arguments":V}});var tb=g((ZB,$n)=>{var UZ=P(),ZZ=Vt(),Pn=q(),IZ=FV(),FZ=zt(),gZ=iV(),Kn=function(){},mZ=[],_n=FZ("Reflect","construct"),gV=/^\s*(?:class|function)\b/,BZ=UZ(gV.exec),pZ=!gV.exec(Kn),ll=function(l){if(!Pn(l))return!1;try{return _n(Kn,mZ,l),!0}catch(d){return!1}},qn=function(l){if(!Pn(l))return!1;switch(IZ(l)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pZ||!!BZ(gV,gZ(l))}catch(d){return!0}};qn.sham=!0;$n.exports=!_n||ZZ(function(){var t;return ll(ll.call)||!ll(Object)||!ll(function(){t=!0})||t})?qn:ll});var ib=g((IB,Vb)=>{var lb=IV(),oZ=tb(),xZ=mt(),JZ=pt(),NZ=JZ("species"),db=Array;Vb.exports=function(t){var l;return lb(t)&&(l=t.constructor,oZ(l)&&(l===db||lb(l.prototype))?l=void 0:xZ(l)&&(l=l[NZ],l===null&&(l=void 0))),l===void 0?db:l}});var ab=g((FB,eb)=>{var QZ=ib();eb.exports=function(t,l){return new(QZ(t))(l===0?0:l)}});var nb=g(()=>{"use strict";var CZ=tl(),XZ=On(),hZ=Tl(),uZ=Ld(),sZ=wl(),rZ=ab();CZ({target:"Array",proto:!0},{flatMap:function(l){var d=uZ(this),V=sZ(d),i;return hZ(l),i=rZ(d,0),i.length=XZ(i,d,d,V,0,1,l,arguments.length>1?arguments[1]:void 0),i}})});var Rb=g((BB,bb)=>{var YZ=UV(),TZ=Ol();bb.exports=Object.keys||function(l){return YZ(l,TZ)}});var cb=g(Gb=>{var SZ=It(),kZ=Pd(),MZ=wt(),HZ=_t(),EZ=Kt(),AZ=Rb();Gb.f=SZ&&!kZ?Object.defineProperties:function(l,d){HZ(l);for(var V=EZ(d),i=AZ(d),e=i.length,n=0,R;e>n;)MZ.f(l,R=i[n++],V[R]);return l}});var Ub=g((oB,Wb)=>{var yZ=zt();Wb.exports=yZ("document","documentElement")});var ob=g((xB,pb)=>{var zZ=_t(),LZ=cb(),Zb=Ol(),wZ=Hl(),OZ=Ub(),jZ=Dd(),DZ=eV(),Ib=">",Fb="<",BV="prototype",pV="script",mb=DZ("IE_PROTO"),mV=function(){},Bb=function(t){return Fb+pV+Ib+t+Fb+"/"+pV+Ib},gb=function(t){t.write(Bb("")),t.close();var l=t.parentWindow.Object;return t=null,l},vZ=function(){var t=jZ("iframe"),l="java"+pV+":",d;return t.style.display="none",OZ.appendChild(t),t.src=String(l),d=t.contentWindow.document,d.open(),d.write(Bb("document.F=Object")),d.close(),d.F},Dl,vl=function(){try{Dl=new ActiveXObject("htmlfile")}catch(l){}vl=typeof document!="undefined"?document.domain&&Dl?gb(Dl):vZ():gb(Dl);for(var t=Zb.length;t--;)delete vl[BV][Zb[t]];return vl()};wZ[mb]=!0;pb.exports=Object.create||function(l,d){var V;return l!==null?(mV[BV]=zZ(l),V=new mV,mV[BV]=null,V[mb]=l):V=vl(),d===void 0?V:LZ.f(V,d)}});var JV=g((JB,xb)=>{var fZ=pt(),PZ=ob(),KZ=wt().f,oV=fZ("unscopables"),xV=Array.prototype;xV[oV]==null&&KZ(xV,oV,{configurable:!0,value:PZ(null)});xb.exports=function(t){xV[oV][t]=!0}});var Jb=g(()=>{var _Z=JV();_Z("flatMap")});var dl=g((CB,Nb)=>{var qZ=dt(),$Z=P();Nb.exports=function(t,l){return $Z(qZ[t].prototype[l])}});var Cb=g((XB,Qb)=>{nb();Jb();var tI=dl();Qb.exports=tI("Array","flatMap")});var hb=g((hB,Xb)=>{var lI=Cb();Xb.exports=lI});var sb=g((uB,ub)=>{var dI=hb();ub.exports=dI});var rb=g(()=>{"use strict";var VI=tl(),iI=cV().includes,eI=Vt(),aI=JV(),nI=eI(function(){return!Array(1).includes()});VI({target:"Array",proto:!0,forced:nI},{includes:function(l){return iI(this,l,arguments.length>1?arguments[1]:void 0)}});aI("includes")});var Tb=g((YB,Yb)=>{rb();var bI=dl();Yb.exports=bI("Array","includes")});var kb=g((TB,Sb)=>{var RI=Tb();Sb.exports=RI});var Hb=g((SB,Mb)=>{var GI=kb();Mb.exports=GI});var Ab=g((kB,Eb)=>{var cI=mt(),WI=At(),UI=pt(),ZI=UI("match");Eb.exports=function(t){var l;return cI(t)&&((l=t[ZI])!==void 0?!!l:WI(t)=="RegExp")}});var zb=g((MB,yb)=>{var II=Ab(),FI=TypeError;yb.exports=function(t){if(II(t))throw FI("The method doesn't accept regular expressions");return t}});var fl=g((HB,Lb)=>{var gI=FV(),mI=String;Lb.exports=function(t){if(gI(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return mI(t)}});var Ob=g((EB,wb)=>{var BI=pt(),pI=BI("match");wb.exports=function(t){var l=/./;try{"/./"[t](l)}catch(d){try{return l[pI]=!1,"/./"[t](l)}catch(V){}}return!1}});var Db=g(()=>{"use strict";var oI=tl(),xI=P(),JI=zb(),NI=yt(),jb=fl(),QI=Ob(),CI=xI("".indexOf);oI({target:"String",proto:!0,forced:!QI("includes")},{includes:function(l){return!!~CI(jb(NI(this)),jb(JI(l)),arguments.length>1?arguments[1]:void 0)}})});var fb=g((zB,vb)=>{Db();var XI=dl();vb.exports=XI("String","includes")});var Kb=g((LB,Pb)=>{var hI=fb();Pb.exports=hI});var qb=g((wB,_b)=>{var uI=Kb();_b.exports=uI});var tR=g((OB,$b)=>{"use strict";var sI=Ll(),rI=fl(),YI=yt(),TI=RangeError;$b.exports=function(l){var d=rI(YI(this)),V="",i=sI(l);if(i<0||i==1/0)throw TI("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(d+=d))i&1&&(V+=d);return V}});var eR=g((jB,iR)=>{var VR=P(),SI=GV(),lR=fl(),kI=tR(),MI=yt(),HI=VR(kI),EI=VR("".slice),AI=Math.ceil,dR=function(t){return function(l,d,V){var i=lR(MI(l)),e=SI(d),n=i.length,R=V===void 0?" ":lR(V),b,a;return e<=n||R==""?i:(b=e-n,a=HI(R,AI(b/R.length)),a.length>b&&(a=EI(a,0,b)),t?i+a:a+i)}};iR.exports={start:dR(!1),end:dR(!0)}});var nR=g((DB,aR)=>{var yI=Td();aR.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(yI)});var bR=g(()=>{"use strict";var zI=tl(),LI=eR().start,wI=nR();zI({target:"String",proto:!0,forced:wI},{padStart:function(l){return LI(this,l,arguments.length>1?arguments[1]:void 0)}})});var GR=g((PB,RR)=>{bR();var OI=dl();RR.exports=OI("String","padStart")});var WR=g((KB,cR)=>{var jI=GR();cR.exports=jI});var ZR=g((_B,UR)=>{var DI=WR();UR.exports=DI});var oR=g((tp,hV)=>{function XV(){}XV.prototype={on:function(t,l,d){var V=this.e||(this.e={});return(V[t]||(V[t]=[])).push({fn:l,ctx:d}),this},once:function(t,l,d){var V=this;function i(){V.off(t,i),l.apply(d,arguments)}return i._=l,this.on(t,i,d)},emit:function(t){var l=[].slice.call(arguments,1),d=((this.e||(this.e={}))[t]||[]).slice(),V=0,i=d.length;for(V;V<i;V++)d[V].fn.apply(d[V].ctx,l);return this},off:function(t,l){var d=this.e||(this.e={}),V=d[t],i=[];if(V&&l)for(var e=0,n=V.length;e<n;e++)V[e].fn!==l&&V[e].fn._!==l&&i.push(V[e]);return i.length?d[t]=i:delete d[t],this}};hV.exports=XV;hV.exports.TinyEmitter=XV});var f=g((kV,MV)=>{(function(t){"use strict";var l=function(){},d=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(a){return setTimeout(a,16)};function V(){var a=this;a.reads=[],a.writes=[],a.raf=d.bind(t),l("initialized",a)}V.prototype={constructor:V,runTasks:function(a){l("run tasks");for(var G;G=a.shift();)G()},measure:function(a,G){l("measure");var c=G?a.bind(G):a;return this.reads.push(c),i(this),c},mutate:function(a,G){l("mutate");var c=G?a.bind(G):a;return this.writes.push(c),i(this),c},clear:function(a){return l("clear",a),n(this.reads,a)||n(this.writes,a)},extend:function(a){if(l("extend",a),typeof a!="object")throw new Error("expected object");var G=Object.create(this);return R(G,a),G.fastdom=this,G.initialize&&G.initialize(),G},catch:null};function i(a){a.scheduled||(a.scheduled=!0,a.raf(e.bind(null,a)),l("flush scheduled"))}function e(a){l("flush");var G=a.writes,c=a.reads,W;try{l("flushing reads",c.length),a.runTasks(c),l("flushing writes",G.length),a.runTasks(G)}catch(I){W=I}if(a.scheduled=!1,(c.length||G.length)&&i(a),W)if(l("task errored",W.message),a.catch)a.catch(W);else throw W}function n(a,G){var c=a.indexOf(G);return!!~c&&!!a.splice(c,1)}function R(a,G){for(var c in G)G.hasOwnProperty(c)&&(a[c]=G[c])}var b=t.fastdom=t.fastdom||new V;typeof MV=="object"&&(MV.exports=b)})(typeof window!="undefined"?window:typeof kV!="undefined"?kV:globalThis)});var HV=g((mp,uR)=>{uR.exports=IF;function IF(t,l,d){return l<d?t<l?l:t>d?d:t:t<d?d:t>l?l:t}});var EV=g((Jp,Kl)=>{(function(){"use strict";var t=function(){function l(){}l.prototype=Object.create(null);function d(G,c){for(var W=c.length,I=0;I<W;++I)b(G,c[I])}var V={}.hasOwnProperty;function i(G,c){G[c]=!0}function e(G,c){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){G[c.toString()]=!0;return}for(var W in c)V.call(c,W)&&(G[W]=!!c[W])}var n=/\s+/;function R(G,c){for(var W=c.split(n),I=W.length,B=0;B<I;++B)G[W[B]]=!0}function b(G,c){if(c){var W=typeof c;W==="string"?R(G,c):Array.isArray(c)?d(G,c):W==="object"?e(G,c):W==="number"&&i(G,c)}}function a(){for(var G=arguments.length,c=Array(G),W=0;W<G;W++)c[W]=arguments[W];var I=new l;d(I,c);var B=[];for(var U in I)I[U]&&B.push(U);return B.join(" ")}return a}();typeof Kl!="undefined"&&Kl.exports?(t.default=t,Kl.exports=t):window.classNames=t})()});var rR=g((sR,_l)=>{(function(t){var l={browser:[[/msie ([\.\_\d]+)/,"ie"],[/trident\/.*?rv:([\.\_\d]+)/,"ie"],[/firefox\/([\.\_\d]+)/,"firefox"],[/chrome\/([\.\_\d]+)/,"chrome"],[/version\/([\.\_\d]+).*?safari/,"safari"],[/mobile safari ([\.\_\d]+)/,"safari"],[/android.*?version\/([\.\_\d]+).*?safari/,"com.android.browser"],[/crios\/([\.\_\d]+).*?safari/,"chrome"],[/opera/,"opera"],[/opera\/([\.\_\d]+)/,"opera"],[/opera ([\.\_\d]+)/,"opera"],[/opera mini.*?version\/([\.\_\d]+)/,"opera.mini"],[/opios\/([a-z\.\_\d]+)/,"opera"],[/blackberry/,"blackberry"],[/blackberry.*?version\/([\.\_\d]+)/,"blackberry"],[/bb\d+.*?version\/([\.\_\d]+)/,"blackberry"],[/rim.*?version\/([\.\_\d]+)/,"blackberry"],[/iceweasel\/([\.\_\d]+)/,"iceweasel"],[/edge\/([\.\d]+)/,"edge"]],os:[[/linux ()([a-z\.\_\d]+)/,"linux"],[/mac os x/,"macos"],[/mac os x.*?([\.\_\d]+)/,"macos"],[/os ([\.\_\d]+) like mac os/,"ios"],[/openbsd ()([a-z\.\_\d]+)/,"openbsd"],[/android/,"android"],[/android ([a-z\.\_\d]+);/,"android"],[/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/,"firefoxos"],[/windows\s*(?:nt)?\s*([\.\_\d]+)/,"windows"],[/windows phone.*?([\.\_\d]+)/,"windows.phone"],[/windows mobile/,"windows.mobile"],[/blackberry/,"blackberryos"],[/bb\d+/,"blackberryos"],[/rim.*?os\s*([\.\_\d]+)/,"blackberryos"]],device:[[/ipad/,"ipad"],[/iphone/,"iphone"],[/lumia/,"lumia"],[/htc/,"htc"],[/nexus/,"nexus"],[/galaxy nexus/,"galaxy.nexus"],[/nokia/,"nokia"],[/ gt\-/,"galaxy"],[/ sm\-/,"galaxy"],[/xbox/,"xbox"],[/(?:bb\d+)|(?:blackberry)|(?: rim )/,"blackberry"]]},d="Unknown",V=Object.keys(l);function i(){var R=this;V.forEach(function(b){R[b]={name:d,version:[],versionString:d}})}function e(R,b,a){l[b].forEach(function(G){var c=G[0],W=G[1],I=a.match(c);I&&(R[b].name=W,I[2]?(R[b].versionString=I[2],R[b].version=[]):I[1]?(R[b].versionString=I[1].replace(/_/g,"."),R[b].version=n(I[1])):(R[b].versionString=d,R[b].version=[]))})}function n(R){return R.split(/[\._]/).map(function(b){return parseInt(b)})}i.prototype.sniff=function(R){var b=this,a=typeof window!="undefined",G=a?navigator.userAgent:"",c=(R||G).toLowerCase();return V.forEach(function(W){e(b,W,c)}),this},typeof _l!="undefined"&&_l.exports?_l.exports=i:(t.Sniffr=new i,t.Sniffr.sniff(navigator.userAgent))})(sR)});var jV=g((Pp,MR)=>{MR.exports=function(){var t=function(R){return typeof R=="function"},l=function(R){var b=Number(R);return isNaN(b)?0:b===0||!isFinite(b)?b:(b>0?1:-1)*Math.floor(Math.abs(b))},d=Math.pow(2,53)-1,V=function(R){var b=l(R);return Math.min(Math.max(b,0),d)},i=function(R){if(R!=null){if(["string","number","boolean","symbol"].indexOf(typeof R)>-1)return Symbol.iterator;if(typeof Symbol!="undefined"&&"iterator"in Symbol&&Symbol.iterator in R)return Symbol.iterator;if("@@iterator"in R)return"@@iterator"}},e=function(R,b){if(R!=null&&b!=null){var a=R[b];if(a==null)return;if(!t(a))throw new TypeError(a+" is not a function");return a}},n=function(R){var b=R.next(),a=!!b.done;return a?!1:b};return function(b){"use strict";var a=this,G=arguments.length>1?arguments[1]:void 0,c;if(typeof G!="undefined"){if(!t(G))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(c=arguments[2])}var W,I,B=e(b,i(b));if(B!==void 0){W=t(a)?Object(new a):[];var U=B.call(b);if(U==null)throw new TypeError("Array.from requires an array-like or iterable object");I=0;for(var Z,m;;){if(Z=n(U),!Z)return W.length=I,W;m=Z.value,G?W[I]=G.call(c,m,I):W[I]=m,I++}}else{var J=Object(b);if(b==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var X=V(J.length);W=t(a)?Object(new a(X)):new Array(X),I=0;for(var u;I<X;)u=J[I],G?W[I]=G.call(c,u,I):W[I]=u,I++;W.length=X}return W}}()});var AR=g((Vo,ER)=>{var nl,bl;typeof document.hidden!="undefined"?(nl="hidden",bl="visibilitychange"):typeof document.mozHidden!="undefined"?(nl="mozHidden",bl="mozvisibilitychange"):typeof document.msHidden!="undefined"?(nl="msHidden",bl="msvisibilitychange"):typeof document.webkitHidden!="undefined"&&(nl="webkitHidden",bl="webkitvisibilitychange");ER.exports={hidden:nl,visibilityChange:bl}});var wR=g((Gl,fV)=>{(function(t,l){typeof Gl=="object"&&typeof fV=="object"?fV.exports=l():typeof Gl=="object"?Gl.StateMachine=l():t.StateMachine=l()})(Gl,function(){return d={},t.m=l=[function(V,i,e){"use strict";V.exports=function(n,R){for(var b,a,G=1;G<arguments.length;G++)for(a in b=arguments[G])b.hasOwnProperty(a)&&(n[a]=b[a]);return n}},function(V,i,e){"use strict";var n=e(0);V.exports={build:function(R,b){for(var a,G=b.plugins,c=0,W=G.length;c<W;c++)(a=G[c]).methods&&n(R,a.methods),a.properties&&Object.defineProperties(R,a.properties)},hook:function(R,b,a){var G,c,W,I,B=R.config.plugins,U=[R.context];for(a&&(U=U.concat(a)),G=0,c=B.length;G<c;G++)I=B[G],(W=B[G][b])&&W.apply(I,U)}}},function(V,i,e){"use strict";function n(R){if(R.length===0)return R;var b,a,G=R.split(/[_-]/);if(G.length===1&&G[0][0].toLowerCase()===G[0][0])return R;for(a=G[0].toLowerCase(),b=1;b<G.length;b++)a=a+G[b].charAt(0).toUpperCase()+G[b].substring(1).toLowerCase();return a}n.prepended=function(R,b){return R+(b=n(b))[0].toUpperCase()+b.substring(1)},V.exports=n},function(V,i,e){"use strict";var n=e(0),R=e(2);function b(a,G){a=a||{},this.options=a,this.defaults=G.defaults,this.states=[],this.transitions=[],this.map={},this.lifecycle=this.configureLifecycle(),this.init=this.configureInitTransition(a.init),this.data=this.configureData(a.data),this.methods=this.configureMethods(a.methods),this.map[this.defaults.wildcard]={},this.configureTransitions(a.transitions||[]),this.plugins=this.configurePlugins(a.plugins,G.plugin)}n(b.prototype,{addState:function(a){this.map[a]||(this.states.push(a),this.addStateLifecycleNames(a),this.map[a]={})},addStateLifecycleNames:function(a){this.lifecycle.onEnter[a]=R.prepended("onEnter",a),this.lifecycle.onLeave[a]=R.prepended("onLeave",a),this.lifecycle.on[a]=R.prepended("on",a)},addTransition:function(a){this.transitions.indexOf(a)<0&&(this.transitions.push(a),this.addTransitionLifecycleNames(a))},addTransitionLifecycleNames:function(a){this.lifecycle.onBefore[a]=R.prepended("onBefore",a),this.lifecycle.onAfter[a]=R.prepended("onAfter",a),this.lifecycle.on[a]=R.prepended("on",a)},mapTransition:function(a){var G=a.name,c=a.from,W=a.to;return this.addState(c),typeof W!="function"&&this.addState(W),this.addTransition(G),this.map[c][G]=a},configureLifecycle:function(){return{onBefore:{transition:"onBeforeTransition"},onAfter:{transition:"onAfterTransition"},onEnter:{state:"onEnterState"},onLeave:{state:"onLeaveState"},on:{transition:"onTransition"}}},configureInitTransition:function(a){return typeof a=="string"?this.mapTransition(n({},this.defaults.init,{to:a,active:!0})):typeof a=="object"?this.mapTransition(n({},this.defaults.init,a,{active:!0})):(this.addState(this.defaults.init.from),this.defaults.init)},configureData:function(a){return typeof a=="function"?a:typeof a=="object"?function(){return a}:function(){return{}}},configureMethods:function(a){return a||{}},configurePlugins:function(a,G){for(var c,W=0,I=(a=a||[]).length;W<I;W++)typeof(c=a[W])=="function"&&(a[W]=c=c()),c.configure&&c.configure(this);return a},configureTransitions:function(a){for(var G,c,W,I,B=this.defaults.wildcard,U=0;U<a.length;U++)for(c=a[U],W=Array.isArray(c.from)?c.from:[c.from||B],I=c.to||B,G=0;G<W.length;G++)this.mapTransition({name:c.name,from:W[G],to:I})},transitionFor:function(a,G){var c=this.defaults.wildcard;return this.map[a][G]||this.map[c][G]},transitionsFor:function(a){var G=this.defaults.wildcard;return Object.keys(this.map[a]).concat(Object.keys(this.map[G]))},allStates:function(){return this.states},allTransitions:function(){return this.transitions}}),V.exports=b},function(V,i,e){var n=e(0),R=e(6),b=e(1),a=[null,[]];function G(c,W){this.context=c,this.config=W,this.state=W.init.from,this.observers=[c]}n(G.prototype,{init:function(c){if(n(this.context,this.config.data.apply(this.context,c)),b.hook(this,"init"),this.config.init.active)return this.fire(this.config.init.name,[])},is:function(c){return Array.isArray(c)?0<=c.indexOf(this.state):this.state===c},isPending:function(){return this.pending},can:function(c){return!this.isPending()&&!!this.seek(c)},cannot:function(c){return!this.can(c)},allStates:function(){return this.config.allStates()},allTransitions:function(){return this.config.allTransitions()},transitions:function(){return this.config.transitionsFor(this.state)},seek:function(B,W){var I=this.config.defaults.wildcard,B=this.config.transitionFor(this.state,B),B=B&&B.to;return typeof B=="function"?B.apply(this.context,W):B===I?this.state:B},fire:function(c,W){return this.transit(c,this.state,this.seek(c,W),W)},transit:function(c,W,I,B){var U=this.config.lifecycle,Z=this.config.options.observeUnchangedState||W!==I;return I?this.isPending()?this.context.onPendingTransition(c,W,I):(this.config.addState(I),this.beginTransit(),B.unshift({transition:c,from:W,to:I,fsm:this.context}),this.observeEvents([this.observersForEvent(U.onBefore.transition),this.observersForEvent(U.onBefore[c]),Z?this.observersForEvent(U.onLeave.state):a,Z?this.observersForEvent(U.onLeave[W]):a,this.observersForEvent(U.on.transition),Z?["doTransit",[this]]:a,Z?this.observersForEvent(U.onEnter.state):a,Z?this.observersForEvent(U.onEnter[I]):a,Z?this.observersForEvent(U.on[I]):a,this.observersForEvent(U.onAfter.transition),this.observersForEvent(U.onAfter[c]),this.observersForEvent(U.on[c])],B)):this.context.onInvalidTransition(c,W,I)},beginTransit:function(){this.pending=!0},endTransit:function(c){return this.pending=!1,c},failTransit:function(c){throw this.pending=!1,c},doTransit:function(c){this.state=c.to},observe:function(c){var W;c.length===2?((W={})[c[0]]=c[1],this.observers.push(W)):this.observers.push(c[0])},observersForEvent:function(c){for(var W,I=0,B=this.observers.length,U=[];I<B;I++)(W=this.observers[I])[c]&&U.push(W);return[c,U,!0]},observeEvents:function(c,W,I,B){if(c.length===0)return this.endTransit(B===void 0||B);var U=c[0][0],Z=c[0][1],m=c[0][2];return(W[0].event=U)&&m&&U!==I&&b.hook(this,"lifecycle",W),Z.length===0?(c.shift(),this.observeEvents(c,W,U,B)):(Z=Z.shift(),Z=Z[U].apply(Z,W),Z&&typeof Z.then=="function"?Z.then(this.observeEvents.bind(this,c,W,U)).catch(this.failTransit.bind(this)):Z===!1?this.endTransit(!1):this.observeEvents(c,W,U,Z))},onInvalidTransition:function(c,W,I){throw new R("transition is invalid in current state",c,W,I,this.state)},onPendingTransition:function(c,W,I){throw new R("transition is invalid while previous transition is still in progress",c,W,I,this.state)}}),V.exports=G},function(V,i,e){"use strict";var n=e(0),R=e(2),b=e(1),a=e(3),G=e(4),c={is:function(Z){return this._fsm.is(Z)},can:function(Z){return this._fsm.can(Z)},cannot:function(Z){return this._fsm.cannot(Z)},observe:function(){return this._fsm.observe(arguments)},transitions:function(){return this._fsm.transitions()},allTransitions:function(){return this._fsm.allTransitions()},allStates:function(){return this._fsm.allStates()},onInvalidTransition:function(Z,m,J){return this._fsm.onInvalidTransition(Z,m,J)},onPendingTransition:function(Z,m,J){return this._fsm.onPendingTransition(Z,m,J)}},W={state:{configurable:!1,enumerable:!0,get:function(){return this._fsm.state},set:function(Z){throw Error("use transitions to change state")}}};function I(Z){return B(this||{},Z)}function B(Z,m){return U(Z,new a(m,I)),Z._fsm(),Z}function U(Z,m){if(typeof Z!="object"||Array.isArray(Z))throw Error("StateMachine can only be applied to objects");b.build(Z,m),Object.defineProperties(Z,W),n(Z,c),n(Z,m.methods),m.allTransitions().forEach(function(J){Z[R(J)]=function(){return this._fsm.fire(J,[].slice.call(arguments))}}),Z._fsm=function(){this._fsm=new G(this,m),this._fsm.init(arguments)}}I.version="3.0.1",I.factory=function(){var Z,m=typeof arguments[0]=="function"?(Z=arguments[0],arguments[1]||{}):(Z=function(){this._fsm.apply(this,arguments)},arguments[0]||{}),m=new a(m,I);return U(Z.prototype,m),Z.prototype._fsm.config=m,Z},I.apply=B,I.defaults={wildcard:"*",init:{name:"init",from:"none"}},V.exports=I},function(V,i,e){"use strict";V.exports=function(n,R,b,a,G){this.message=n,this.transition=R,this.from=b,this.to=a,this.current=G}}],t.c=d,t.i=function(V){return V},t.d=function(V,i,e){t.o(V,i)||Object.defineProperty(V,i,{configurable:!1,enumerable:!0,get:e})},t.n=function(V){var i=V&&V.__esModule?function(){return V.default}:function(){return V};return t.d(i,"a",i),i},t.o=function(V,i){return Object.prototype.hasOwnProperty.call(V,i)},t.p="",t(t.s=5);function t(V){if(d[V])return d[V].exports;var i=d[V]={i:V,l:!1,exports:{}};return l[V].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var l,d})});var JG=g((xG,pd)=>{(function(t,l){typeof pd=="object"&&pd.exports?pd.exports=l():function d(){document&&document.body?t.zenscroll=l():setTimeout(d,9)}()})(xG,function(){"use strict";var t=function(b){return b&&"getComputedStyle"in window&&window.getComputedStyle(b)["scroll-behavior"]==="smooth"};if(typeof window=="undefined"||!("document"in window))return{};var l=function(b,a,G){a=a||999,!G&&G!==0&&(G=9);var c,W=function(u){c=u},I=function(){clearTimeout(c),W(0)},B=function(u){return Math.max(0,b.getTopOf(u)-G)},U=function(u,x,F){if(I(),x===0||x&&x<0||t(b.body))b.toY(u),F&&F();else{var Y=b.getY(),h=Math.max(0,u)-Y,S=new Date().getTime();x=x||Math.min(Math.abs(h),a),function Q(){W(setTimeout(function(){var o=Math.min(1,(new Date().getTime()-S)/x),N=Math.max(0,Math.floor(Y+h*(o<.5?2*o*o:o*(4-o*2)-1)));b.toY(N),o<1&&b.getHeight()+N<b.body.scrollHeight?Q():(setTimeout(I,99),F&&F())},9))}()}},Z=function(u,x,F){U(B(u),x,F)},m=function(u,x,F){var Y=u.getBoundingClientRect().height,h=b.getTopOf(u)+Y,S=b.getHeight(),Q=b.getY(),o=Q+S;B(u)<Q||Y+G>S?Z(u,x,F):h+G>o?U(h-S+G,x,F):F&&F()},J=function(u,x,F,Y){U(Math.max(0,b.getTopOf(u)-b.getHeight()/2+(F||u.getBoundingClientRect().height/2)),x,Y)},X=function(u,x){return(u===0||u)&&(a=u),(x===0||x)&&(G=x),{defaultDuration:a,edgeOffset:G}};return{setup:X,to:Z,toY:U,intoView:m,center:J,stop:I,moving:function(){return!!c},getY:b.getY,getTopOf:b.getTopOf}},d=document.documentElement,V=function(){return window.scrollY||d.scrollTop},i=l({body:document.scrollingElement||document.body,toY:function(b){window.scrollTo(0,b)},getY:V,getHeight:function(){return window.innerHeight||d.clientHeight},getTopOf:function(b){return b.getBoundingClientRect().top+V()-d.offsetTop}});if(i.createScroller=function(b,a,G){return l({body:b,toY:function(c){b.scrollTop=c},getY:function(){return b.scrollTop},getHeight:function(){return Math.min(b.clientHeight,window.innerHeight||d.clientHeight)},getTopOf:function(c){return c.offsetTop}},a,G)},"addEventListener"in window&&!window.noZensmooth&&!t(document.body)){var e="history"in window&&"pushState"in history,n=e&&"scrollRestoration"in history;n&&(history.scrollRestoration="auto"),window.addEventListener("load",function(){n&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(b){b.state&&"zenscrollY"in b.state&&i.toY(b.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var b=i.setup().edgeOffset;if(b){var a=document.getElementById(window.location.href.split("#")[1]);if(a){var G=Math.max(0,i.getTopOf(a)-b),c=i.getY()-G;0<=c&&c<9&&window.scrollTo(0,G)}}},9)},!1);var R=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",function(b){for(var a=b.target;a&&a.tagName!=="A";)a=a.parentNode;if(!(!a||b.which!==1||b.shiftKey||b.metaKey||b.ctrlKey||b.altKey)){if(n){var G=history.state&&typeof history.state=="object"?history.state:{};G.zenscrollY=i.getY();try{history.replaceState(G,"")}catch(Z){}}var c=a.getAttribute("href")||"";if(c.indexOf("#")===0&&!R.test(a.className)){var W=0,I=document.getElementById(c.substring(1));if(c!=="#"){if(!I)return;W=i.getTopOf(I)}b.preventDefault();var B=function(){window.location=c},U=i.setup().edgeOffset;U&&(W=Math.max(0,W-U),e&&(B=function(){history.pushState({},"",c)})),i.toY(W,null,B)}}},!1)}return i})});var Yi=g((XN,sG)=>{"use strict";var zg=sG.exports={};zg.forEach=function(t,l){for(var d=0;d<t.length;d++){var V=l(t[d]);if(V)return V}}});var YG=g((hN,rG)=>{"use strict";rG.exports=function(t){var l=t.stateHandler.getState;function d(n){var R=l(n);return R&&!!R.isDetectable}function V(n){l(n).isDetectable=!0}function i(n){return!!l(n).busy}function e(n,R){l(n).busy=!!R}return{isDetectable:d,markAsDetectable:V,isBusy:i,markBusy:e}}});var SG=g((uN,TG)=>{"use strict";TG.exports=function(t){var l={};function d(n){var R=t.get(n);return R===void 0?[]:l[R]||[]}function V(n,R){var b=t.get(n);l[b]||(l[b]=[]),l[b].push(R)}function i(n,R){for(var b=d(n),a=0,G=b.length;a<G;++a)if(b[a]===R){b.splice(a,1);break}}function e(n){var R=d(n);R&&(R.length=0)}return{get:d,add:V,removeListener:i,removeAllListeners:e}}});var MG=g((sN,kG)=>{"use strict";kG.exports=function(){var t=1;function l(){return t++}return{generate:l}}});var EG=g((rN,HG)=>{"use strict";HG.exports=function(t){var l=t.idGenerator,d=t.stateHandler.getState;function V(e){var n=d(e);return n&&n.id!==void 0?n.id:null}function i(e){var n=d(e);if(!n)throw new Error("setId required the element to have a resize detection state.");var R=l.generate();return n.id=R,R}return{get:V,set:i}}});var yG=g((YN,AG)=>{"use strict";AG.exports=function(t){function l(){}var d={log:l,warn:l,error:l};if(!t&&window.console){var V=function(i,e){i[e]=function(){var R=console[e];if(R.apply)R.apply(console,arguments);else for(var b=0;b<arguments.length;b++)R(arguments[b])}};V(d,"log"),V(d,"warn"),V(d,"error")}return d}});var Ti=g((TN,LG)=>{"use strict";var zG=LG.exports={};zG.isIE=function(t){function l(){var V=navigator.userAgent.toLowerCase();return V.indexOf("msie")!==-1||V.indexOf("trident")!==-1||V.indexOf(" edge/")!==-1}if(!l())return!1;if(!t)return!0;var d=function(){var V,i=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do e.innerHTML="<!--[if gt IE "+ ++i+"]><i></i><![endif]-->";while(n[0]);return i>4?i:V}();return t===d};zG.isLegacyOpera=function(){return!!window.opera}});var OG=g((SN,wG)=>{"use strict";var Lg=wG.exports={};Lg.getOption=wg;function wg(t,l,d){var V=t[l];return V==null&&d!==void 0?d:V}});var fG=g((kN,vG)=>{"use strict";var jG=OG();vG.exports=function(l){l=l||{};var d=l.reporter,V=jG.getOption(l,"async",!0),i=jG.getOption(l,"auto",!0);i&&!V&&(d&&d.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),V=!0);var e=DG(),n,R=!1;function b(U,Z){!R&&i&&V&&e.size()===0&&c(),e.add(U,Z)}function a(){for(R=!0;e.size();){var U=e;e=DG(),U.process()}R=!1}function G(U){R||(U===void 0&&(U=V),n&&(I(n),n=null),U?c():a())}function c(){n=B(a)}function W(){e={},batchSize=0,topLevel=0,bottomLevel=0}function I(U){var Z=clearTimeout;return Z(U)}function B(U){var Z=function(m){return setTimeout(m,0)};return Z(U)}return{add:b,force:G}};function DG(){var t={},l=0,d=0,V=0;function i(R,b){b||(b=R,R=0),R>d?d=R:R<V&&(V=R),t[R]||(t[R]=[]),t[R].push(b),l++}function e(){for(var R=V;R<=d;R++)for(var b=t[R],a=0;a<b.length;a++){var G=b[a];G()}}function n(){return l}return{add:i,process:e,size:n}}});var _G=g((MN,KG)=>{"use strict";var Si="_erd";function Og(t){return t[Si]={},PG(t)}function PG(t){return t[Si]}function jg(t){delete t[Si]}KG.exports={initState:Og,getState:PG,cleanState:jg}});var $G=g((HN,qG)=>{"use strict";var pl=Ti();qG.exports=function(t){t=t||{};var l=t.reporter,d=t.batchProcessor,V=t.stateHandler.getState;if(!l)throw new Error("Missing required dependency: reporter.");function i(a,G){function c(){G(a)}if(pl.isIE(8))V(a).object={proxy:c},a.attachEvent("onresize",c);else{var W=R(a);if(!W)throw new Error("Element is not detectable by this strategy.");W.contentDocument.defaultView.addEventListener("resize",c)}}function e(a){var G=t.important?" !important; ":"; ";return(a.join(G)+G).trim()}function n(a,G,c){c||(c=G,G=a,a=null),a=a||{};var W=a.debug;function I(B,U){var Z=e(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),m=!1,J=window.getComputedStyle(B),X=B.offsetWidth,u=B.offsetHeight;V(B).startSize={width:X,height:u};function x(){function F(){if(J.position==="static"){B.style.setProperty("position","relative",a.important?"important":"");var S=function(Q,o,N,C){function k(K){return K.replace(/[^-\d\.]/g,"")}var r=N[C];r!=="auto"&&k(r)!=="0"&&(Q.warn("An element that is positioned static has style."+C+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+C+" will be set to 0. Element: ",o),o.style.setProperty(C,"0",a.important?"important":""))};S(l,B,J,"top"),S(l,B,J,"right"),S(l,B,J,"bottom"),S(l,B,J,"left")}}function Y(){m||F();function S(o,N){if(!o.contentDocument){var C=V(o);C.checkForObjectDocumentTimeoutId&&window.clearTimeout(C.checkForObjectDocumentTimeoutId),C.checkForObjectDocumentTimeoutId=setTimeout(function(){C.checkForObjectDocumentTimeoutId=0,S(o,N)},100);return}N(o.contentDocument)}var Q=this;S(Q,function(N){U(B)})}J.position!==""&&(F(J),m=!0);var h=document.createElement("object");h.style.cssText=Z,h.tabIndex=-1,h.type="text/html",h.setAttribute("aria-hidden","true"),h.onload=Y,pl.isIE()||(h.data="about:blank"),V(B)&&(B.appendChild(h),V(B).object=h,pl.isIE()&&(h.data="about:blank"))}d?d.add(x):x()}pl.isIE(8)?c(G):I(G,c)}function R(a){return V(a).object}function b(a){if(V(a)){var G=R(a);G&&(pl.isIE(8)?a.detachEvent("onresize",G.proxy):a.removeChild(G),V(a).checkForObjectDocumentTimeoutId&&window.clearTimeout(V(a).checkForObjectDocumentTimeoutId),delete V(a).object)}}return{makeDetectable:n,addListener:i,uninstall:b}}});var lc=g((EN,tc)=>{"use strict";var Dg=Yi().forEach;tc.exports=function(t){t=t||{};var l=t.reporter,d=t.batchProcessor,V=t.stateHandler.getState,i=t.stateHandler.hasState,e=t.idHandler;if(!d)throw new Error("Missing required dependency: batchProcessor");if(!l)throw new Error("Missing required dependency: reporter.");var n=c(),R="erd_scroll_detection_scrollbar_style",b="erd_scroll_detection_container";function a(x){W(x,R,b)}a(window.document);function G(x){var F=t.important?" !important; ":"; ";return(x.join(F)+F).trim()}function c(){var x=500,F=500,Y=document.createElement("div");Y.style.cssText=G(["position: absolute","width: "+x*2+"px","height: "+F*2+"px","visibility: hidden","margin: 0","padding: 0"]);var h=document.createElement("div");h.style.cssText=G(["position: absolute","width: "+x+"px","height: "+F+"px","overflow: scroll","visibility: none","top: "+-x*3+"px","left: "+-F*3+"px","visibility: hidden","margin: 0","padding: 0"]),h.appendChild(Y),document.body.insertBefore(h,document.body.firstChild);var S=x-h.clientWidth,Q=F-h.clientHeight;return document.body.removeChild(h),{width:S,height:Q}}function W(x,F,Y){function h(N,C){C=C||function(r){x.head.appendChild(r)};var k=x.createElement("style");return k.innerHTML=N,k.id=F,C(k),k}if(!x.getElementById(F)){var S=Y+"_animation",Q=Y+"_animation_active",o=`/* Created by the element-resize-detector library. */
`;o+="."+Y+" > div::-webkit-scrollbar { "+G(["display: none"])+` }

`,o+="."+Q+" { "+G(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+S,"animation-name: "+S])+` }
`,o+="@-webkit-keyframes "+S+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,o+="@keyframes "+S+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",h(o)}}function I(x){x.className+=" "+b+"_animation_active"}function B(x,F,Y){if(x.addEventListener)x.addEventListener(F,Y);else if(x.attachEvent)x.attachEvent("on"+F,Y);else return l.error("[scroll] Don't know how to add event listeners.")}function U(x,F,Y){if(x.removeEventListener)x.removeEventListener(F,Y);else if(x.detachEvent)x.detachEvent("on"+F,Y);else return l.error("[scroll] Don't know how to remove event listeners.")}function Z(x){return V(x).container.childNodes[0].childNodes[0].childNodes[0]}function m(x){return V(x).container.childNodes[0].childNodes[0].childNodes[1]}function J(x,F){var Y=V(x).listeners;if(!Y.push)throw new Error("Cannot add listener to an element that is not detectable.");V(x).listeners.push(F)}function X(x,F,Y){Y||(Y=F,F=x,x=null),x=x||{};function h(){if(x.debug){var s=Array.prototype.slice.call(arguments);if(s.unshift(e.get(F),"Scroll: "),l.log.apply)l.log.apply(null,s);else for(var M=0;M<s.length;M++)l.log(s[M])}}function S(s){function M(y){var bt=y.getRootNode&&y.getRootNode().contains(y);return y===y.ownerDocument.body||y.ownerDocument.body.contains(y)||bt}return!M(s)||window.getComputedStyle(s)===null}function Q(s){var M=V(s).container.childNodes[0],y=window.getComputedStyle(M);return!y.width||y.width.indexOf("px")===-1}function o(){var s=window.getComputedStyle(F),M={};return M.position=s.position,M.width=F.offsetWidth,M.height=F.offsetHeight,M.top=s.top,M.right=s.right,M.bottom=s.bottom,M.left=s.left,M.widthCSS=s.width,M.heightCSS=s.height,M}function N(){var s=o();V(F).startSize={width:s.width,height:s.height},h("Element start size",V(F).startSize)}function C(){V(F).listeners=[]}function k(){if(h("storeStyle invoked."),!V(F)){h("Aborting because element has been uninstalled");return}var s=o();V(F).style=s}function r(s,M,y){V(s).lastWidth=M,V(s).lastHeight=y}function K(s){return Z(s).childNodes[0]}function Jl(){return 2*n.width+1}function Nl(){return 2*n.height+1}function Ql(s){return s+10+Jl()}function ae(s){return s+10+Nl()}function sc(s){return s*2+Jl()}function rc(s){return s*2+Nl()}function ne(s,M,y){var bt=Z(s),Ct=m(s),kt=Ql(M),Mt=ae(y),_=sc(M),E=rc(y);bt.scrollLeft=kt,bt.scrollTop=Mt,Ct.scrollLeft=_,Ct.scrollTop=E}function be(){var s=V(F).container;if(!s){s=document.createElement("div"),s.className=b,s.style.cssText=G(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),V(F).container=s,I(s),F.appendChild(s);var M=function(){V(F).onRendered&&V(F).onRendered()};B(s,"animationstart",M),V(F).onAnimationStart=M}return s}function Yc(){function s(){var w=V(F).style;if(w.position==="static"){F.style.setProperty("position","relative",x.important?"important":"");var Zt=function(Et,ht,Mc,Xl){function Hc(Ec){return Ec.replace(/[^-\d\.]/g,"")}var Nd=Mc[Xl];Nd!=="auto"&&Hc(Nd)!=="0"&&(Et.warn("An element that is positioned static has style."+Xl+"="+Nd+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Xl+" will be set to 0. Element: ",ht),ht.style[Xl]=0)};Zt(l,F,w,"top"),Zt(l,F,w,"right"),Zt(l,F,w,"bottom"),Zt(l,F,w,"left")}}function M(w,Zt,Et,ht){return w=w?w+"px":"0",Zt=Zt?Zt+"px":"0",Et=Et?Et+"px":"0",ht=ht?ht+"px":"0",["left: "+w,"top: "+Zt,"right: "+ht,"bottom: "+Et]}if(h("Injecting elements"),!V(F)){h("Aborting because element has been uninstalled");return}s();var y=V(F).container;y||(y=be());var bt=n.width,Ct=n.height,kt=G(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),Mt=G(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(M(-(1+bt),-(1+Ct),-Ct,-bt))),_=G(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),E=G(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),$=G(["position: absolute","left: 0","top: 0"]),Xt=G(["position: absolute","width: 200%","height: 200%"]),Wt=document.createElement("div"),Ut=document.createElement("div"),Ht=document.createElement("div"),Ge=document.createElement("div"),Cl=document.createElement("div"),ce=document.createElement("div");Wt.dir="ltr",Wt.style.cssText=kt,Wt.className=b,Ut.className=b,Ut.style.cssText=Mt,Ht.style.cssText=_,Ge.style.cssText=$,Cl.style.cssText=E,ce.style.cssText=Xt,Ht.appendChild(Ge),Cl.appendChild(ce),Ut.appendChild(Ht),Ut.appendChild(Cl),Wt.appendChild(Ut),y.appendChild(Wt);function We(){var w=V(F);w&&w.onExpand?w.onExpand():h("Aborting expand scroll handler: element has been uninstalled")}function Ue(){var w=V(F);w&&w.onShrink?w.onShrink():h("Aborting shrink scroll handler: element has been uninstalled")}B(Ht,"scroll",We),B(Cl,"scroll",Ue),V(F).onExpandScroll=We,V(F).onShrinkScroll=Ue}function Tc(){function s(_,E,$){var Xt=K(_),Wt=Ql(E),Ut=ae($);Xt.style.setProperty("width",Wt+"px",x.important?"important":""),Xt.style.setProperty("height",Ut+"px",x.important?"important":"")}function M(_){var E=F.offsetWidth,$=F.offsetHeight,Xt=E!==V(F).lastWidth||$!==V(F).lastHeight;h("Storing current size",E,$),r(F,E,$),d.add(0,function(){if(Xt){if(!V(F)){h("Aborting because element has been uninstalled");return}if(!y()){h("Aborting because element container has not been initialized");return}if(x.debug){var Ut=F.offsetWidth,Ht=F.offsetHeight;(Ut!==E||Ht!==$)&&l.warn(e.get(F),"Scroll: Size changed before updating detector elements.")}s(F,E,$)}}),d.add(1,function(){if(!V(F)){h("Aborting because element has been uninstalled");return}if(!y()){h("Aborting because element container has not been initialized");return}ne(F,E,$)}),Xt&&_&&d.add(2,function(){if(!V(F)){h("Aborting because element has been uninstalled");return}if(!y()){h("Aborting because element container has not been initialized");return}_()})}function y(){return!!V(F).container}function bt(){function _(){return V(F).lastNotifiedWidth===void 0}h("notifyListenersIfNeeded invoked");var E=V(F);if(_()&&E.lastWidth===E.startSize.width&&E.lastHeight===E.startSize.height)return h("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(E.lastWidth===E.lastNotifiedWidth&&E.lastHeight===E.lastNotifiedHeight)return h("Not notifying: Size already notified");h("Current size not notified, notifying..."),E.lastNotifiedWidth=E.lastWidth,E.lastNotifiedHeight=E.lastHeight,Dg(V(F).listeners,function($){$(F)})}function Ct(){if(h("startanimation triggered."),Q(F)){h("Ignoring since element is still unrendered...");return}h("Element rendered.");var _=Z(F),E=m(F);(_.scrollLeft===0||_.scrollTop===0||E.scrollLeft===0||E.scrollTop===0)&&(h("Scrollbars out of sync. Updating detector elements..."),M(bt))}function kt(){if(h("Scroll detected."),Q(F)){h("Scroll event fired while unrendered. Ignoring...");return}M(bt)}if(h("registerListenersAndPositionElements invoked."),!V(F)){h("Aborting because element has been uninstalled");return}V(F).onRendered=Ct,V(F).onExpand=kt,V(F).onShrink=kt;var Mt=V(F).style;s(F,Mt.width,Mt.height)}function Sc(){if(h("finalizeDomMutation invoked."),!V(F)){h("Aborting because element has been uninstalled");return}var s=V(F).style;r(F,s.width,s.height),ne(F,s.width,s.height)}function kc(){Y(F)}function Re(){h("Installing..."),C(),N(),d.add(0,k),d.add(1,Yc),d.add(2,Tc),d.add(3,Sc),d.add(4,kc)}h("Making detectable..."),S(F)?(h("Element is detached"),be(),h("Waiting until element is attached..."),V(F).onRendered=function(){h("Element is now attached"),Re()}):Re()}function u(x){var F=V(x);F&&(F.onExpandScroll&&U(Z(x),"scroll",F.onExpandScroll),F.onShrinkScroll&&U(m(x),"scroll",F.onShrinkScroll),F.onAnimationStart&&U(F.container,"animationstart",F.onAnimationStart),F.container&&x.removeChild(F.container))}return{makeDetectable:X,addListener:J,uninstall:u,initDocument:a}}});var nc=g((AN,ac)=>{"use strict";var ol=Yi().forEach,vg=YG(),fg=SG(),Pg=MG(),Kg=EG(),_g=yG(),dc=Ti(),qg=fG(),Nt=_G(),$g=$G(),tm=lc();function Vc(t){return Array.isArray(t)||t.length!==void 0}function ic(t){if(Array.isArray(t))return t;var l=[];return ol(t,function(d){l.push(d)}),l}function ec(t){return t&&t.nodeType===1}ac.exports=function(t){t=t||{};var l;if(t.idHandler)l={get:function(J){return t.idHandler.get(J,!0)},set:t.idHandler.set};else{var d=Pg(),V=Kg({idGenerator:d,stateHandler:Nt});l=V}var i=t.reporter;if(!i){var e=i===!1;i=_g(e)}var n=Qt(t,"batchProcessor",qg({reporter:i})),R={};R.callOnAdd=!!Qt(t,"callOnAdd",!0),R.debug=!!Qt(t,"debug",!1);var b=fg(l),a=vg({stateHandler:Nt}),G,c=Qt(t,"strategy","object"),W=Qt(t,"important",!1),I={reporter:i,batchProcessor:n,stateHandler:Nt,idHandler:l,important:W};if(c==="scroll"&&(dc.isLegacyOpera()?(i.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),c="object"):dc.isIE(9)&&(i.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),c="object")),c==="scroll")G=tm(I);else if(c==="object")G=$g(I);else throw new Error("Invalid strategy name: "+c);var B={};function U(J,X,u){function x(o){var N=b.get(o);ol(N,function(k){k(o)})}function F(o,N,C){b.add(N,C),o&&C(N)}if(u||(u=X,X=J,J={}),!X)throw new Error("At least one element required.");if(!u)throw new Error("Listener required.");if(ec(X))X=[X];else if(Vc(X))X=ic(X);else return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var Y=0,h=Qt(J,"callOnAdd",R.callOnAdd),S=Qt(J,"onReady",function(){}),Q=Qt(J,"debug",R.debug);ol(X,function(N){Nt.getState(N)||(Nt.initState(N),l.set(N));var C=l.get(N);if(Q&&i.log("Attaching listener to element",C,N),!a.isDetectable(N)){if(Q&&i.log(C,"Not detectable."),a.isBusy(N)){Q&&i.log(C,"System busy making it detectable"),F(h,N,u),B[C]=B[C]||[],B[C].push(function(){Y++,Y===X.length&&S()});return}return Q&&i.log(C,"Making detectable..."),a.markBusy(N,!0),G.makeDetectable({debug:Q,important:W},N,function(r){if(Q&&i.log(C,"onElementDetectable"),Nt.getState(r)){a.markAsDetectable(r),a.markBusy(r,!1),G.addListener(r,x),F(h,r,u);var K=Nt.getState(r);if(K&&K.startSize){var Jl=r.offsetWidth,Nl=r.offsetHeight;(K.startSize.width!==Jl||K.startSize.height!==Nl)&&x(r)}B[C]&&ol(B[C],function(Ql){Ql()})}else Q&&i.log(C,"Element uninstalled before being detectable.");delete B[C],Y++,Y===X.length&&S()})}Q&&i.log(C,"Already detecable, adding listener."),F(h,N,u),Y++}),Y===X.length&&S()}function Z(J){if(!J)return i.error("At least one element is required.");if(ec(J))J=[J];else if(Vc(J))J=ic(J);else return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");ol(J,function(X){b.removeAllListeners(X),G.uninstall(X),Nt.cleanState(X)})}function m(J){G.initDocument&&G.initDocument(J)}return{listenTo:U,removeListener:b.removeListener,removeAllListeners:b.removeAllListeners,uninstall:Z,initDocument:m}};function Qt(t,l,d){var V=t[l];return V==null&&d!==void 0?d:V}});var oC=A(sb()),xC=A(Hb()),JC=A(qb()),NC=A(ZR());var j=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof global!="undefined"&&global||{},v={searchParams:"URLSearchParams"in j,iterable:"Symbol"in j&&"iterator"in Symbol,blob:"FileReader"in j&&"Blob"in j&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in j,arrayBuffer:"ArrayBuffer"in j};function vI(t){return t&&DataView.prototype.isPrototypeOf(t)}v.arrayBuffer&&(IR=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],gR=ArrayBuffer.isView||function(t){return t&&IR.indexOf(Object.prototype.toString.call(t))>-1});var IR,gR;function Ot(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function QV(t){return typeof t!="string"&&(t=String(t)),t}function CV(t){var l={next:function(){var d=t.shift();return{done:d===void 0,value:d}}};return v.iterable&&(l[Symbol.iterator]=function(){return l}),l}function z(t){this.map={},t instanceof z?t.forEach(function(l,d){this.append(d,l)},this):Array.isArray(t)?t.forEach(function(l){if(l.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+l.length);this.append(l[0],l[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(l){this.append(l,t[l])},this)}z.prototype.append=function(t,l){t=Ot(t),l=QV(l);var d=this.map[t];this.map[t]=d?d+", "+l:l};z.prototype.delete=function(t){delete this.map[Ot(t)]};z.prototype.get=function(t){return t=Ot(t),this.has(t)?this.map[t]:null};z.prototype.has=function(t){return this.map.hasOwnProperty(Ot(t))};z.prototype.set=function(t,l){this.map[Ot(t)]=QV(l)};z.prototype.forEach=function(t,l){for(var d in this.map)this.map.hasOwnProperty(d)&&t.call(l,this.map[d],d,this)};z.prototype.keys=function(){var t=[];return this.forEach(function(l,d){t.push(d)}),CV(t)};z.prototype.values=function(){var t=[];return this.forEach(function(l){t.push(l)}),CV(t)};z.prototype.entries=function(){var t=[];return this.forEach(function(l,d){t.push([d,l])}),CV(t)};v.iterable&&(z.prototype[Symbol.iterator]=z.prototype.entries);function NV(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function mR(t){return new Promise(function(l,d){t.onload=function(){l(t.result)},t.onerror=function(){d(t.error)}})}function fI(t){var l=new FileReader,d=mR(l);return l.readAsArrayBuffer(t),d}function PI(t){var l=new FileReader,d=mR(l),V=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=V?V[1]:"utf-8";return l.readAsText(t,i),d}function KI(t){for(var l=new Uint8Array(t),d=new Array(l.length),V=0;V<l.length;V++)d[V]=String.fromCharCode(l[V]);return d.join("")}function FR(t){if(t.slice)return t.slice(0);var l=new Uint8Array(t.byteLength);return l.set(new Uint8Array(t)),l.buffer}function BR(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?typeof t=="string"?this._bodyText=t:v.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:v.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():v.arrayBuffer&&v.blob&&vI(t)?(this._bodyArrayBuffer=FR(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):v.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||gR(t))?this._bodyArrayBuffer=FR(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof t=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},v.blob&&(this.blob=function(){var t=NV(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=NV(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(v.blob)return this.blob().then(fI);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var t=NV(this);if(t)return t;if(this._bodyBlob)return PI(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(KI(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},v.formData&&(this.formData=function(){return this.text().then($I)}),this.json=function(){return this.text().then(JSON.parse)},this}var _I=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function qI(t){var l=t.toUpperCase();return _I.indexOf(l)>-1?l:t}function Yt(t,l){if(!(this instanceof Yt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');l=l||{};var d=l.body;if(t instanceof Yt){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,l.headers||(this.headers=new z(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!d&&t._bodyInit!=null&&(d=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=l.credentials||this.credentials||"same-origin",(l.headers||!this.headers)&&(this.headers=new z(l.headers)),this.method=qI(l.method||this.method||"GET"),this.mode=l.mode||this.mode||null,this.signal=l.signal||this.signal||function(){if("AbortController"in j){var e=new AbortController;return e.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&d)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(d),(this.method==="GET"||this.method==="HEAD")&&(l.cache==="no-store"||l.cache==="no-cache")){var V=/([?&])_=[^&]*/;if(V.test(this.url))this.url=this.url.replace(V,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Yt.prototype.clone=function(){return new Yt(this,{body:this._bodyInit})};function $I(t){var l=new FormData;return t.trim().split("&").forEach(function(d){if(d){var V=d.split("="),i=V.shift().replace(/\+/g," "),e=V.join("=").replace(/\+/g," ");l.append(decodeURIComponent(i),decodeURIComponent(e))}}),l}function tF(t){var l=new z,d=t.replace(/\r?\n[\t ]+/g," ");return d.split("\r").map(function(V){return V.indexOf(`
`)===0?V.substr(1,V.length):V}).forEach(function(V){var i=V.split(":"),e=i.shift().trim();if(e){var n=i.join(":").trim();try{l.append(e,n)}catch(R){console.warn("Response "+R.message)}}}),l}BR.call(Yt.prototype);function Rt(t,l){if(!(this instanceof Rt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(l||(l={}),this.type="default",this.status=l.status===void 0?200:l.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=l.statusText===void 0?"":""+l.statusText,this.headers=new z(l.headers),this.url=l.url||"",this._initBody(t)}BR.call(Rt.prototype);Rt.prototype.clone=function(){return new Rt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new z(this.headers),url:this.url})};Rt.error=function(){var t=new Rt(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var lF=[301,302,303,307,308];Rt.redirect=function(t,l){if(lF.indexOf(l)===-1)throw new RangeError("Invalid status code");return new Rt(null,{status:l,headers:{location:t}})};var rt=j.DOMException;try{new rt}catch(t){rt=function(l,d){this.message=l,this.name=d;var V=Error(l);this.stack=V.stack},rt.prototype=Object.create(Error.prototype),rt.prototype.constructor=rt}function pR(t,l){return new Promise(function(d,V){var i=new Yt(t,l);if(i.signal&&i.signal.aborted)return V(new rt("Aborted","AbortError"));var e=new XMLHttpRequest;function n(){e.abort()}e.onload=function(){var a={statusText:e.statusText,headers:tF(e.getAllResponseHeaders()||"")};i.url.indexOf("file://")===0&&(e.status<200||e.status>599)?a.status=200:a.status=e.status,a.url="responseURL"in e?e.responseURL:a.headers.get("X-Request-URL");var G="response"in e?e.response:e.responseText;setTimeout(function(){d(new Rt(G,a))},0)},e.onerror=function(){setTimeout(function(){V(new TypeError("Network request failed"))},0)},e.ontimeout=function(){setTimeout(function(){V(new TypeError("Network request timed out"))},0)},e.onabort=function(){setTimeout(function(){V(new rt("Aborted","AbortError"))},0)};function R(a){try{return a===""&&j.location.href?j.location.href:a}catch(G){return a}}if(e.open(i.method,R(i.url),!0),i.credentials==="include"?e.withCredentials=!0:i.credentials==="omit"&&(e.withCredentials=!1),"responseType"in e&&(v.blob?e.responseType="blob":v.arrayBuffer&&(e.responseType="arraybuffer")),l&&typeof l.headers=="object"&&!(l.headers instanceof z||j.Headers&&l.headers instanceof j.Headers)){var b=[];Object.getOwnPropertyNames(l.headers).forEach(function(a){b.push(Ot(a)),e.setRequestHeader(a,QV(l.headers[a]))}),i.headers.forEach(function(a,G){b.indexOf(G)===-1&&e.setRequestHeader(G,a)})}else i.headers.forEach(function(a,G){e.setRequestHeader(G,a)});i.signal&&(i.signal.addEventListener("abort",n),e.onreadystatechange=function(){e.readyState===4&&i.signal.removeEventListener("abort",n)}),e.send(typeof i._bodyInit=="undefined"?null:i._bodyInit)})}pR.polyfill=!0;j.fetch||(j.fetch=pR,j.Headers=z,j.Request=Yt,j.Response=Rt);var XR=A(oR());function p(t,l=null){let V=dF(l).querySelectorAll(t);return Array.from(V)}function L(t,l=null){let d=p(t,l);return d.length===0?!1:d[0]}function dF(t){return t||(window.__shadowRoot?window.__shadowRoot.querySelector("article"):document)}(function(t,l){"use strict";var d=/Edge\/\d+/i.test(navigator.userAgent);if(!d&&"IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype){"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var V=[];function i(U){this.time=U.time,this.target=U.target,this.rootBounds=U.rootBounds,this.boundingClientRect=U.boundingClientRect,this.intersectionRect=U.intersectionRect||W(),this.isIntersecting=!!U.intersectionRect;var Z=this.boundingClientRect,m=Z.width*Z.height,J=this.intersectionRect,X=J.width*J.height;m?this.intersectionRatio=X/m:this.intersectionRatio=this.isIntersecting?1:0}function e(U,Z){var m=Z||{};if(typeof U!="function")throw new Error("callback must be a function");if(m.root&&m.root.nodeType!=1)throw new Error("root must be an Element");this._checkForIntersections=R(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=U,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(m.rootMargin),this.thresholds=this._initThresholds(m.threshold),this.root=m.root||null,this.rootMargin=this._rootMarginValues.map(function(J){return J.value+J.unit}).join(" ")}e.prototype.THROTTLE_TIMEOUT=100,e.prototype.POLL_INTERVAL=null,e.prototype.USE_MUTATION_OBSERVER=!0,e.prototype.observe=function(U){var Z=this._observationTargets.some(function(m){return m.element==U});if(!Z){if(!(U&&U.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:U,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},e.prototype.unobserve=function(U){this._observationTargets=this._observationTargets.filter(function(Z){return Z.element!=U}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},e.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},e.prototype.takeRecords=function(){var U=this._queuedEntries.slice();return this._queuedEntries=[],U},e.prototype._initThresholds=function(U){var Z=U||[0];return Array.isArray(Z)||(Z=[Z]),Z.sort().filter(function(m,J,X){if(typeof m!="number"||isNaN(m)||m<0||m>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return m!==X[J-1]})},e.prototype._parseRootMargin=function(U){var Z=U||"0px",m=Z.split(/\s+/).map(function(J){var X=/^(-?\d*\.?\d+)(px|%)$/.exec(J);if(!X)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(X[1]),unit:X[2]}});return m[1]=m[1]||m[0],m[2]=m[2]||m[0],m[3]=m[3]||m[1],m},e.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(b(t,"resize",this._checkForIntersections,!0),b(l,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(l,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},e.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(t,"resize",this._checkForIntersections,!0),a(l,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},e.prototype._checkForIntersections=function(){var U=this._rootIsInDom(),Z=U?this._getRootRect():W();this._observationTargets.forEach(function(m){var J=m.element,X=c(J),u=this._rootContainsTarget(J),x=m.entry,F=U&&u&&this._computeTargetAndRootIntersection(J,Z),Y=m.entry=new i({time:n(),target:J,boundingClientRect:X,rootBounds:Z,intersectionRect:F});x?U&&u?this._hasCrossedThreshold(x,Y)&&this._queuedEntries.push(Y):x&&x.isIntersecting&&this._queuedEntries.push(Y):this._queuedEntries.push(Y)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},e.prototype._computeTargetAndRootIntersection=function(U,Z){if(t.getComputedStyle(U).display!="none"){for(var m=c(U),J=m,X=B(U),u=!1;!u;){var x=null,F=X.nodeType==1?t.getComputedStyle(X):{};if(F.display=="none")return;if(X==this.root||X==l?(u=!0,x=Z):X!=l.body&&X!=l.documentElement&&F.overflow!="visible"&&(x=c(X)),x&&(J=G(x,J),!J))break;X=B(X)}return J}},e.prototype._getRootRect=function(){var U;if(this.root)U=c(this.root);else{var Z=l.documentElement,m=l.body;U={top:0,left:0,right:Z.clientWidth||m.clientWidth,width:Z.clientWidth||m.clientWidth,bottom:Z.clientHeight||m.clientHeight,height:Z.clientHeight||m.clientHeight}}return this._expandRectByRootMargin(U)},e.prototype._expandRectByRootMargin=function(U){var Z=this._rootMarginValues.map(function(J,X){return J.unit=="px"?J.value:J.value*(X%2?U.width:U.height)/100}),m={top:U.top-Z[0],right:U.right+Z[1],bottom:U.bottom+Z[2],left:U.left-Z[3]};return m.width=m.right-m.left,m.height=m.bottom-m.top,m},e.prototype._hasCrossedThreshold=function(U,Z){var m=U&&U.isIntersecting?U.intersectionRatio||0:-1,J=Z.isIntersecting?Z.intersectionRatio||0:-1;if(m!==J)for(var X=0;X<this.thresholds.length;X++){var u=this.thresholds[X];if(u==m||u==J||u<m!=u<J)return!0}},e.prototype._rootIsInDom=function(){return!this.root||I(l,this.root)},e.prototype._rootContainsTarget=function(U){return I(this.root||l,U)},e.prototype._registerInstance=function(){V.indexOf(this)<0&&V.push(this)},e.prototype._unregisterInstance=function(){var U=V.indexOf(this);U!=-1&&V.splice(U,1)};function n(){return t.performance&&performance.now&&performance.now()}function R(U,Z){var m=null;return function(){m||(m=setTimeout(function(){U(),m=null},Z))}}function b(U,Z,m,J){typeof U.addEventListener=="function"?U.addEventListener(Z,m,J||!1):typeof U.attachEvent=="function"&&U.attachEvent("on"+Z,m)}function a(U,Z,m,J){typeof U.removeEventListener=="function"?U.removeEventListener(Z,m,J||!1):typeof U.detatchEvent=="function"&&U.detatchEvent("on"+Z,m)}function G(U,Z){var m=Math.max(U.top,Z.top),J=Math.min(U.bottom,Z.bottom),X=Math.max(U.left,Z.left),u=Math.min(U.right,Z.right),x=u-X,F=J-m;return x>=0&&F>=0&&{top:m,bottom:J,left:X,right:u,width:x,height:F}}function c(U){var Z;try{Z=U.getBoundingClientRect()}catch(m){}return Z?(Z.width&&Z.height||(Z={top:Z.top,right:Z.right,bottom:Z.bottom,left:Z.left,width:Z.right-Z.left,height:Z.bottom-Z.top}),Z):W()}function W(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function I(U,Z){for(var m=Z;m;){if(m==U)return!0;m=B(m)}return!1}function B(U){var Z=U.parentNode;return Z&&Z.nodeType==11&&Z.host?Z.host:Z}t.IntersectionObserver=e,t.IntersectionObserverEntry=i})(window,document);window.hasOwnProperty("Shorthand")||(window.Shorthand={});window.Shorthand.lazyloadTriggerMargin=window.Shorthand.lazyloadTriggerMargin||"500%";var uV=window.innerHeight||window.screen.height,VF={"nearly visible":"100%","on visibile":"0%","partially visible":"-10%","mostly visible":"-40% 0% -40% 0%","fully visible":"0px",lazyload:window.Shorthand.lazyloadTriggerMargin,"lazyload 3D models":`${uV*2}px`,"unload 3D models":`${uV*2+100}px`,"lazy download 3D models":`${uV*5}px`},iF={"nearly visible":[0,.001],lazyload:[0,.001],"on visibile":[0,.001],"mostly visible":[0,.001],"fully visible":.99,"lazyload 3D models":[0,.001],"lazy download 3D models":[0,.001],"unload 3D models":[0,.001],"partially visible":0},xR=[],JR=[];function Gt(t){return t.intersectionRatio>=1e-5}function NR(t,l=null){let d=xR.find(V=>V.triggerPoint===t&&V.root===l);if(!d){let V={rootMargin:VF[t],threshold:iF[t],root:l},i=new IntersectionObserver(e=>{eF(e,t,l)},V);return xR.push({instance:i,triggerPoint:t,root:l}),i}return d.instance}function eF(t,l,d=null){t.forEach(V=>{QR(V.target,l,d).callbacks.forEach(e=>e(V))})}function aF(t,l,d=null){let V={target:t,triggerPoint:l,callbacks:[],root:d};return JR.push(V),V}function QR(t,l,d=null){return JR.find(V=>V.target===t&&V.triggerPoint===l&&V.root===d)}function jt(t,l={}){let d=l.triggerPoint||"on visibile",V=l.root||null;NR(d,V).unobserve(t)}function at(t,l,d={}){let V=d.triggerPoint||"on visibile",i=d.root||null,e=NR(V),n=QR(t,V,i);n||(n=aF(t,V,i)),n.callbacks.push(l),e.observe(t)}var nF=5,bF=1e3;function RF(t,l){let d={isTracking:!1,trackingStartAt:0,cumulativeLingerTime:0};at(t,V=>{if(Gt(V)&&!d.isTracking)d.isTracking=!0,d.trackingStartAt=Date.now();else if(d.isTracking){d.isTracking=!1;let i=Math.round((Date.now()-d.trackingStartAt)/bF);if(i<nF)return;d.cumulativeLingerTime+=i,l(i)}})}function GF(t){let l=/\bTheme-(\w+Section)\b/,d=t.match(l);return d!==null?d[1]:"UnknownTypeSection"}function sV(t,l){t.forEach((d,V)=>{let i=GF(d.className),e=V.toString().padStart(3,"0")+" "+d.id;RF(d,R=>{l(i,"linger-seconds",e,R)})})}function cF(...t){}function Pl(...t){(window.ga||cF)(...t)}function rV(t){t.on("logEvent",function(...l){Pl("send","event",...l),Pl("shorthand.send","event",...l)}),t.on("logSocial",(...l)=>{Pl("send","social",...l),Pl("shorthand.send","social",...l)})}function WF(t){return t.hasAttribute("data-social-share")?{type:"social",network:t.getAttribute("data-social-share"),target:window.location.href}:t.hasAttribute("data-story-nav-item")?{type:"nav-link",target:t.href}:{type:"link",target:t.href,element:t}}function UF(t){let l=WF(t);l.type==="social"?CR(l.network,"share",l.target):Ft(l.type,"click",l.target)}function YV(){p("a").forEach(l=>l.addEventListener("click",()=>UF(l)))}var TV=new XR.default;function Ft(...t){TV.emit("logEvent",...t)}function CR(...t){TV.emit("logSocial",...t)}function SV(){let t=p(".Theme-Section");rV(TV),sV(t,Ft),YV()}var kR=A(f());var ZF={textPerLine:!1,textFade:"none",textZoom:"none",textBlur:"none",backgroundFade:"none",backgroundZoom:"none",backgroundBlur:"none",backgroundGrayscale:"none",hasEffects:!1};function hR(t,l=ZF){try{return lt(lt({},l),JSON.parse(window.atob(t.getAttribute("data-effects"))))}catch(d){return lt({},l)}}var LV=A(HV());var ql=A(f());var TR=A(EV());function gt(t,l,d,V){function i(){t.removeEventListener(l,e,V)}function e(){return i(),d.apply(this,arguments)}return t.addEventListener(l,e,V),i}var FF=rR(),YR=["android","ios","firefoxos","windows.phone","windows.mobile","blackberryos"],gF={hasTouch:!1},AV=null;function D(){if(AV===null){let t=new FF;t.sniff(navigator.userAgent),AV={isMobile:YR.includes(t.os.name),isDesktop:!YR.includes(t.os.name),isTablet:!1,isiPhone:t.device.name==="iphone",isiPad:t.device.name==="ipad",isAndroid:t.os.name==="android",isiOS:t.os.name==="ios",isiOS10:t.os.name==="ios"&&t.os.version[0]===10,isMac:t.os.name==="macos",isWindows:t.os.name==="windows",isIE:t.browser.name==="ie",isEdge:t.browser.name==="edge",isChrome:t.browser.name==="chrome",isSafari:t.browser.name==="safari",isFirefox:t.browser.name==="firefox",isOpera:t.browser.name==="opera",isBot:/bot|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent),isCypress:window.Cypress}}return AV}function mF(t){let l=D(),d=Object.keys(l).reduce((V,i)=>(V[`DeviceDetect--${i}`]=l[i],V),{});t.className=(0,TR.default)(t.className,d)}function yV(t=document.documentElement){var l;mF(((l=window.__shadowRoot)==null?void 0:l.querySelector("article"))||t),BF()}function BF(){gt(document.documentElement,"touchstart",()=>{gF.hasTouch=!0,document.documentElement.classList.add("DeviceDetect--isTouch")})}function zV(){let{isIE:t,isEdge:l}=D();if(!t&&!l)return;let d={tallTOMs:[]};ql.default.measure(()=>{p(".DisplayContainerHeight--flex").forEach(i=>{d.tallTOMs.push(i)});function V(){pF(d)}V(),window.addEventListener("resize",V,{passive:!0})})}function pF(t){t.tallTOMs.forEach(l=>{ql.default.measure(()=>{let d=l.querySelector(".FullSize--child"),V=l.querySelector(".DisplayContainer--heightBasis").getBoundingClientRect().height+200,i=V+"px",e=i;if(V<T.getHeight()){l.style.setProperty("height",i);return}l.classList.contains("SplitLayout")&&T.getWidth()<=960&&(i=`calc(${V} + 50vh)`,e="50vh"),ql.default.mutate(()=>{l.style.setProperty("height",i),d.style.setProperty("height",e),p(".FullSize--fixedChild",d).forEach(n=>{n.style.setProperty("height",e)}),d.style.setProperty("clip-path",`polygon(0 0, 0 ${e}, 100% ${e}, 100% 0)`)})})})}var Vl=class{constructor(l={}){this.cache={width:0,height:0,top:0,bottom:0};l.measuringElement?this.measuringElement=l.measuringElement:this.ensureMeasuringElement(),window.addEventListener("resize",this.refresh.bind(this),{passive:!0}),this.refresh()}ensureMeasuringElement(){let l=this.measuringElement=document.createElement("div");l.style.width="100%",l.style.height="100vh",l.style.visibility="hidden",l.style.pointerEvents="none",l.style.opacity="0",l.style.position="absolute",l.style.top="0",l.setAttribute("id","viewport-height-element"),document.body.appendChild(l)}refresh(){let l=this.measuringElement.getBoundingClientRect();this.cache.width=l.width,this.cache.height=l.height,this.cache.top=0,this.cache.bottom=0}getCache(){return this.cache}};function td(t=new Vl){window.Shorthand.displayContainer=t,zV()}var $l={getOrientation(){return window.Shorthand.displayContainer?$l.getWidth()>$l.getHeight()?"landscape":"portrait":window.innerWidth>window.innerHeight?"landscape":"portrait"},getHeight(){return window.Shorthand.displayContainer.getCache().height},getWidth(){return window.Shorthand.displayContainer.getCache().width},getTop(){return window.Shorthand.displayContainer.getCache().top},getBottom(){return window.Shorthand.displayContainer.getCache().bottom},getVhUnitsInPixels(t){return $l.getHeight()*(t/100)},getDisplayContainer(){return window.Shorthand.displayContainer}},T=$l;var il;function ld(t,l=0,d=1){var W,I;let{top:V,height:i}=t.getBoundingClientRect();il===null&&(il=L(".Header[role=banner]"));let e=(W=il==null?void 0:il.offsetHeight)!=null?W:0,n=1,R=/scale\((.*)\)/.exec((I=t.style.getPropertyValue("transform"))!=null?I:"");R&&(n=parseFloat(R[1]));let b=V+(i-i/n)/2,a=-i/n+e,c=T.getHeight()-a;return t.className.includes("Theme-BackgroundMedia")&&i<T.getHeight()*.6&&(d*=.5),{threshold:(0,LV.default)(T.getHeight()*.6/c,l,d),percent:(0,LV.default)(1-(b-a)/c,0,1)}}function el(t,l,d=3){return t<l?Math.pow(t/l,d):t>1-l?Math.pow(1-(t-(1-l))/l,d):1}var wV=[];function ot(){wV.forEach(t=>t())}function OV(){let t=!!L("#editor-viewport");t&&(document.removeEventListener("focus",ot,!0),document.addEventListener("focus",ot,!0),document.removeEventListener("blur",ot,!0),document.addEventListener("blur",ot,!0));let l=t?document.querySelector("#editor-viewport"):window;l.removeEventListener("scroll",ot),l.addEventListener("scroll",ot,{passive:!0}),wV=[],kR.default.mutate(()=>{p("[data-effects]").forEach(d=>{let V=hR(d),e=p(t?".Theme-Layer-background-viewport:not(.Theme-Layer-background-viewport-cyclops)":".Theme-BackgroundMedia:not(.Theme-BackgroundModel)",d),n=p(".Theme-Layer-TextBlock-Inner",d);if(!V.hasEffects){t&&ot();return}e.forEach(b=>{let a=p("video",b);a.length===0&&(a=p("img",b).filter(G=>G.className.indexOf("InstantImage__img")===-1)),V.needsBackgroundClone&&p("picture",b).forEach((G,c)=>{c!==0&&(G.style.setProperty("position","absolute"),G.style.setProperty("top","0"))}),a.forEach((G,c)=>{G.style.setProperty("transition","none"),G.tagName.toLowerCase()==="img"&&c===0&&SR(G,V,0),G.style.setProperty("transform","scale(1)"),G.style.setProperty("opacity","1")})}),n.forEach(b=>{oF(b)&&(b.classList.remove("Layout__flex--xleft"),b.classList.remove("Layout__flex--xright"),b.classList.add("Layout__flex--xcenter")),b.parentElement.parentElement.style.setProperty("overflow","visible");let a=b.className.indexOf("Layout__flex--xright")>-1;b.className.indexOf("Layout__flex--xleft")>-1?b.style.setProperty("transform-origin","0% 0%"):a?b.style.setProperty("transform-origin","100% 0%"):b.style.removeProperty("transform-origin");let c=t?p(".NodeContent"):[].slice.call(b.firstElementChild.firstElementChild.children);(V.textPerLine?c:[b]).forEach(I=>{let B=[];V.textZoom!=="none"&&navigator.maxTouchPoints>0&&B.push("transform"),V.textBlur!=="none"&&B.push("filter"),B.length>0&&I.style.setProperty("will-change",B.join(", "))})});function R(){let b=ld(d).percent;b<=0||b>=1||(e.forEach(a=>{let G=p("video",a);G.length===0&&(G=p("img",a).filter(I=>I.className.indexOf("InstantImage__img")===-1));let{percent:c,threshold:W}=ld(a,0,.5);G.forEach((I,B)=>{I.parentElement.style.setProperty("overflow","hidden"),V.backgroundZoom==="in"?I.style.setProperty("transform",`scale(${1+.4*c})`):V.backgroundZoom==="out"&&I.style.setProperty("transform",`scale(${1.4-.4*c})`);let U=1;V.backgroundFade!=="none"&&(["in","both"].includes(V.backgroundFade)&&c<.5||["out","both"].includes(V.backgroundFade)&&c>.5?U=el(c,W,2):U=1,I.style.setProperty("opacity",`${U}`)),I.tagName.toLowerCase()==="img"&&(B===0?SR(I,V,c):(U*=el(c,W),I.style.setProperty("opacity",`${U}`)))})}),n.forEach(a=>{let G=t?p(".NodeContent",a):[].slice.call(a.firstElementChild.firstElementChild.children);if(t&&xF(V.textPerLine,a,G),t&&a.contains(document.activeElement))return;(V.textPerLine?G:[a]).forEach(W=>{let{percent:I,threshold:B}=ld(W,0,.2);V.textZoom==="in"?W.style.setProperty("transform",`scale(${.7+.3*I})`):V.textZoom==="out"&&W.style.setProperty("transform",`scale(${1-.3*I})`);let U=[];(["in","both"].includes(V.textBlur)&&I<.5||["out","both"].includes(V.textBlur)&&I>.5)&&U.push(`blur(${(20*(1-el(I,B,2))).toFixed(2)}px)`);let Z=U.join(" ");W.style.getPropertyValue("filter")!==Z&&W.style.setProperty("filter",Z);let m=1;["in","both"].includes(V.textFade)&&I<.5||["out","both"].includes(V.textFade)&&I>.5?m*=el(I,B):m=1,W.style.setProperty("opacity",`${m}`)})}))}wV.push(R)})}),setTimeout(ot,500)}function SR(t,l,d){let V=[];d<.5?(["in","both"].includes(l.backgroundBlur)&&V.push("blur(20px)"),["in","both"].includes(l.backgroundGrayscale)&&V.push("grayscale(100%)")):(["out","both"].includes(l.backgroundBlur)&&V.push("blur(20px)"),["out","both"].includes(l.backgroundGrayscale)&&V.push("grayscale(100%)"));let i=V.join(" ");t.style.getPropertyValue("filter")!==i&&t.style.setProperty("filter",i)}function oF(t){let l=t;for(;l&&!l.classList.contains("Theme-Section");)l.parentNode?l=l.parentNode:console.error("Could not find the parent Theme-section");return l.classList.contains("SplitLayout")}function xF(t,l,d){(t||l.contains(document.activeElement))&&(l.style.removeProperty("transform"),l.style.removeProperty("filter"),l.style.removeProperty("opacity")),(!t||l.contains(document.activeElement))&&d.forEach(V=>{V.style.removeProperty("transform"),V.style.removeProperty("filter"),V.style.removeProperty("opacity")})}var PR=A(jV());function DV(){p("[data-lazyload-container][data-lazyload-trigger]").map(l=>({pictures:p("[data-lazyload-item] picture",l),container:l,trigger:l})).forEach(al)}function al({pictures:t,container:l,trigger:d}){let V=!1,i=()=>{V||(jt(l),V=!0)};return at(d,n=>{Gt(n)&&(t.forEach(R=>JF(R,()=>NF(l))),i())},{triggerPoint:"lazyload"}),i}function JF(t,l){let d=L("img",t),V=p("source",t);d&&(d.addEventListener("load",l),HR(d),V.forEach(HR))}function HR(t){Object.entries({"data-src":"src","data-srcset":"srcset"}).forEach(([d,V])=>{let i=t.getAttribute(d);i&&(t.removeAttribute(d),t.setAttribute(V,i))})}function NF(t){t.classList.remove("Lazyload--isLoading"),t.classList.add("Lazyload--isLoaded")}var vV=A(AR()),QF={isHidden(){var t;return document[(t=vV.default)==null?void 0:t.hidden]},addVisibilityChangeListener(t){return document.addEventListener(vV.default.visibilityChange,t)}},Tt=QF;var CF=window.setTimeout,XF=window.clearTimeout,yR=0,hF=t=>{let l=Date.now(),d=Math.max(0,16-(l-yR)),V=CF(()=>t(l+d),d);return yR=l+d,V},uF=t=>XF(t),Vd=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):hF,eo=window.requestAnimationFrame?window.cancelAnimationFrame.bind(window):uF;var Rl=[],id=!1;function sF(t){Rl.forEach(l=>l(t))}function LR(t){sF(t),id&&Vd(LR)}var zR=!1;function ed(){id||(zR||(Tt.addVisibilityChangeListener(()=>{Tt.isHidden()?rF():ed()}),zR=!0),!Tt.isHidden()&&(id=!0,Vd(LR)))}function rF(){id=!1}function tt(t){Rl.indexOf(t)===-1&&Rl.push(t),ed()}function xt(t){let l=Rl.indexOf(t);l!==-1&&Rl.splice(l,1)}var vR=A(wR());var cl=A(f());(function(){"use strict";if(typeof window!="undefined"){var t=window.navigator.userAgent.match(/Edge\/(\d{2})\./),l=t?parseInt(t[1],10):null,d=!!l&&16<=l&&l<=18;if(!("objectFit"in document.documentElement.style)||d){var V=function(n,R,b){var a,G,c,W,I;if((b=b.split(" ")).length<2&&(b[1]=b[0]),n==="x")a=b[0],G=b[1],c="left",W="right",I=R.clientWidth;else{if(n!=="y")return;a=b[1],G=b[0],c="top",W="bottom",I=R.clientHeight}if(a!==c&&G!==c){if(a!==W&&G!==W)return a==="center"||a==="50%"?(R.style[c]="50%",void(R.style["margin-"+c]=I/-2+"px")):void(0<=a.indexOf("%")?(a=parseInt(a,10))<50?(R.style[c]=a+"%",R.style["margin-"+c]=I*(a/-100)+"px"):(a=100-a,R.style[W]=a+"%",R.style["margin-"+W]=I*(a/-100)+"px"):R.style[c]=a);R.style[W]="0"}else R.style[c]="0"},i=function(n){var R=n.dataset?n.dataset.objectFit:n.getAttribute("data-object-fit"),b=n.dataset?n.dataset.objectPosition:n.getAttribute("data-object-position");R=R||"cover",b=b||"50% 50%";var a=n.parentNode;return function(G){var c=window.getComputedStyle(G,null),W=c.getPropertyValue("position"),I=c.getPropertyValue("overflow"),B=c.getPropertyValue("display");W&&W!=="static"||(G.style.position="relative"),I!=="hidden"&&(G.style.overflow="hidden"),B&&B!=="inline"||(G.style.display="block"),G.clientHeight===0&&(G.style.height="100%"),G.className.indexOf("object-fit-polyfill")===-1&&(G.className=G.className+" object-fit-polyfill")}(a),function(G){var c=window.getComputedStyle(G,null),W={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px",top:"auto",right:"auto",bottom:"auto",left:"auto","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};for(var I in W)c.getPropertyValue(I)!==W[I]&&(G.style[I]=W[I])}(n),n.style.position="absolute",n.style.width="auto",n.style.height="auto",R==="scale-down"&&(R=n.clientWidth<a.clientWidth&&n.clientHeight<a.clientHeight?"none":"contain"),R==="none"?(V("x",n,b),void V("y",n,b)):R==="fill"?(n.style.width="100%",n.style.height="100%",V("x",n,b),void V("y",n,b)):(n.style.height="100%",void(R==="cover"&&n.clientWidth>a.clientWidth||R==="contain"&&n.clientWidth<a.clientWidth?(n.style.top="0",n.style.marginTop="0",V("x",n,b)):(n.style.width="100%",n.style.height="auto",n.style.left="0",n.style.marginLeft="0",V("y",n,b))))},e=function(n){if(n===void 0||n instanceof Event)n=document.querySelectorAll("[data-object-fit]");else if(n&&n.nodeName)n=[n];else{if(typeof n!="object"||!n.length||!n[0].nodeName)return!1;n=n}for(var R=0;R<n.length;R++)if(n[R].nodeName){var b=n[R].nodeName.toLowerCase();if(b==="img"){if(d)continue;n[R].complete?i(n[R]):n[R].addEventListener("load",function(){i(this)})}else b==="video"?0<n[R].readyState?i(n[R]):n[R].addEventListener("loadedmetadata",function(){i(this)}):i(n[R])}return!0};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e(),window.addEventListener("resize",e),window.objectFitPolyfill=e}else window.objectFitPolyfill=function(){return!1}}})();function OR(){if(!window)return!1;let t=document.querySelector(".ObjectFit--cover");if(!t)return!1;let d=window.getComputedStyle(t).objectFit,V=D().isEdge;return(d?/^(contain|cover|fill)$/.test(d):!1)&&!V}function Wl(){cl.default.measure(()=>{let t=T.getOrientation();cl.default.mutate(()=>{let l=p(".ObjectFit--cover");l.forEach(d=>{d.dataset.objectFit="cover";let V=d.tagName==="IMG"?d.parentElement:d;V.hasAttribute(`data-${t}-focal`)&&(d.dataset.objectPosition=V.dataset[`${t}Focal`])}),PV(l)})})}function PV(t){window.objectFitPolyfill(t),YF(t)}function YF(t){let{isIE:l,isEdge:d}=D();!l&&!d||t.forEach(V=>ad(V))}function ad(t){let{isIE:l,isEdge:d}=D();!l&&!d||t.className.indexOf("FullSize__fixedChild")!==-1&&cl.default.measure(()=>{let V=window.innerWidth>window.innerHeight?"landscape":"portrait",i=jR(t);if(i==="none")return;let e=parseFloat(window.getComputedStyle(t.parentElement).getPropertyValue("width"));if(d){t.style.setProperty("width",`${V==="landscape"?e+"px":"100%"}`);return}if(V==="portrait"){t.style.removeProperty("transform");return}let n="play"in t?{width:t.videoWidth,height:t.videoHeight}:{width:t.naturalWidth,height:t.naturalHeight};if(n.width<1){setTimeout(()=>ad(t),100);return}let R=n.width>n.height;cl.default.mutate(()=>{if(R)i==="media-left"?t.style.getPropertyValue("left")==="50%"?t.style.setProperty("transform",`translateX(-${e*.5}px)`):["","0px"].includes(t.style.getPropertyValue("margin-left"))?t.style.setProperty("transform",`translateX(-${e*.75}px)`):t.style.setProperty("transform",`translateX(-${e*.25}px)`):t.style.getPropertyValue("left")==="50%"?t.style.setProperty("transform",`translateX(${e*.5}px)`):["","0px"].includes(t.style.getPropertyValue("margin-left"))?t.style.setProperty("transform",`translateX(${e*.25}px)`):t.style.setProperty("transform",`translateX(${e*.75}px)`);else{let[b,a]=t.dataset["object-position"].split(" ").map(W=>parseInt(W,10)),G=t.style.getPropertyValue("margin-left")&&t.style.getPropertyValue("margin-left")!=="0px",c=t.style.getPropertyValue("margin-right")&&t.style.getPropertyValue("margin-right")!=="0px";if(i==="media-right"){if(b===50?t.style.setProperty("transform",`scale(0.5) translate(${e}px, 0%)`):a<50?t.style.setProperty("transform",`scale(0.5) translate(${e}px, -${50-a}%)`):t.style.setProperty("transform",`scale(0.5) translate(${e}px, ${a-50}%)`),G){t.style.setProperty("transform",`translateX(${e-Math.abs(parseFloat(t.style.getPropertyValue("margin-left")))}px)`);return}if(c){t.style.setProperty("transform",`translateX(${Math.abs(parseFloat(t.style.getPropertyValue("margin-right")))}px)`);return}}else{if(a===50?t.style.setProperty("transform",`scale(0.5) translate(-${e}px, 0%)`):a<50?t.style.setProperty("transform",`scale(0.5) translate(-${e}px, -${50-a}%)`):t.style.setProperty("transform",`scale(0.5) translate(-${e}px, ${a-50}%)`),G){t.style.setProperty("transform",`translateX(-${Math.abs(parseFloat(t.style.getPropertyValue("margin-left")))}px)`);return}if(c){t.style.setProperty("transform",`translateX(-${e-Math.abs(parseFloat(t.style.getPropertyValue("margin-right")))}px)`);return}}}})})}function jR(t){var l;return((l=t.id)==null?void 0:l.indexOf("section-"))===0?t.className.indexOf("SplitLayout--rowReverse")>-1?"media-left":t.className.indexOf("SplitLayout")>-1?"media-right":"none":jR(t.parentElement)}function Ul(){window.addEventListener("resize",()=>Wl(),{passive:!0}),Wl()}function DR(t){let l=t.getBoundingClientRect(),d=-l.top,V=Math.max(1,l.height-document.documentElement.clientHeight),i=d/V;return{percentage:i,scrollingIn:i<0,scrollingOut:i>1}}var nd=vR.default.factory({init:"ready",transitions:[{name:"prime",from:"ready",to:"primed"},{name:"startTransition",from:"primed",to:"transitioning"},{name:"activate",from:"transitioning",to:"active"},{name:"linger",from:"active",to:"lingering"},{name:"complete",from:["active","lingering"],to:"completed"},{name:"activate",from:["completed","lingering"],to:"active"},{name:"reverseTransition",from:"active",to:"transitioning"},{name:"reset",from:"transitioning",to:"ready"}],methods:{onPrimed(){let{item:t,classNames:l}=this;t.itemEl.classList.add(l.prime),this.onItemShown&&this.onItemShown(t)},onStartTransition(){let{item:t,classNames:l}=this;gt(t.itemEl,"transitionend",()=>this.activate()),requestAnimationFrame(()=>t.itemEl.classList.add(l.active)),Wl()},onReverseTransition(){let{item:t,classNames:l}=this;gt(t.itemEl,"transitionend",()=>this.reset()),t.itemEl.classList.remove(l.active)},onReset(){let{item:t,classNames:l}=this;t.itemEl.classList.remove(l.prime),t.itemEl.classList.remove(l.active)},onActive(){let{item:t,classNames:l}=this;[l.prime,l.active].forEach(d=>t.itemEl.classList.add(d)),this.onItemShown&&this.onItemShown(t),Wl()},onCompleted(){let{item:t,classNames:l}=this;t.itemEl.classList.remove(l.prime),t.itemEl.classList.remove(l.active)},requestReady(){this.is("ready")||this.is("active")&&this.reverseTransition()},requestActive(){this.is("ready")&&this.prime(),this.is("primed")&&this.startTransition(),(this.is("completed")||this.is("lingering"))&&this.activate()},requestComplete(){let t=this.shouldLinger(this.item),l=this.can("linger"),d=!t,V=this.can("complete");t&&l?this.linger():d&&V&&this.complete()},isActive(){return this.is("active")}},data(t){return t}});function bd(t){if(t.isRendering)return;t.isRendering=!0;let l=DR(t.scrollContainer);t.items.forEach(d=>{let V=TF(l,d.data);if(!V)return;let i=t.machines.get(d);({ready:i.requestReady,active:i.requestActive,complete:i.requestComplete})[V].call(i)}),t.isRendering=!1}function TF(t,l){let d=t.scrollingIn&&l.showDuringScrollIn,V=t.scrollingOut&&l.showDuringScrollOut,i=SF(t.percentage,l.start,l.end);if(d||V||i)return"active";if(t.percentage<l.start)return"ready";if(t.percentage>l.end)return"complete"}function SF(t,l,d){return t>=l&&t<d}var _V={instances:new Map,isRunning:!1},KV=new WeakMap;function kF(t){let l=_V.instances;return l.has(t)||l.set(t,{scrollContainer:t.parentElement,items:[],isRendering:!1,machines:new WeakMap}),l.get(t)}function MF(t,l,d){let V=1/d.length,i=l*V,e=i+V,n=l===0,R=l===d.length-1;return{itemEl:t,index:l,data:{start:i,end:e,showDuringScrollIn:n,showDuringScrollOut:R}}}function HF(){document.querySelectorAll(".Theme-BackgroundScrollmationSection").forEach(l=>{let d=l.querySelectorAll(".MediaRenderer__fixedCaption--icon"),V=l.querySelector(".MediaRenderer__Scrollmation-portrait--Caption"),i=l.querySelectorAll(".btn-close-caption-scrollmation");function e(){V.removeAttribute("style")}function n(){V.style.display="none"}d.forEach(R=>R.addEventListener("click",e)),i.forEach(R=>R.addEventListener("click",n))})}function qV(){let t=p("[data-background-scrollmation]");HF(),t.forEach(l=>EF(l,{doLazyload:!0})),["resize","orientationchange"].forEach(l=>window.addEventListener(l,KR,{passive:!0}))}function EF(t,l,d){let V=p("[data-background-scrollmation-item]",t);if(V.length===0)return()=>{};let i=V.map(MF),e=kF(t);e.items=i.reduce((R,b)=>{let a=e.items.find(G=>G.itemEl===b.itemEl);return a&&(a.data=b.data),[...R,a||b]},[]),e.items.map(R=>l.doLazyload?AF(R,t.parentElement):R).filter(R=>!e.machines.get(R)).forEach(R=>e.machines.set(R,new nd({item:R,classNames:{prime:"BackgroundScrollmationItem--isPrimed",active:"BackgroundScrollmationItem--isActive"},onItemShown(b){d&&d(b,e.items.indexOf(b))},shouldLinger(b){return!e.items.filter(W=>W!==b).map(W=>e.machines.get(W)).some(W=>W.isActive())}})));function n(){let R=t.parentElement.getBoundingClientRect();R.bottom<T.getTop()+T.getHeight()?t.setAttribute("data-attach","after"):R.top<T.getTop()?t.setAttribute("data-attach","during"):t.setAttribute("data-attach","before")}return document.getElementById("editor-viewport")||document.addEventListener("scroll",n,{passive:!0}),l.doLazyload&&KR(),tt(fR),()=>{xt(fR),document.getElementById("editor-viewport")||document.removeEventListener("scroll",n)}}function AF(t,l){if(!KV.get(t.itemEl)){let V=document.createElement("div");V.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),V.setAttribute("data-item-index",String(t.index)),KV.set(t.itemEl,V),l.appendChild(V);let i={pictures:p("picture",t.itemEl),container:t.itemEl.querySelector("[data-lazyload-container]"),trigger:V};al(i)}return t}function KR(){(0,PR.default)(_V.instances.values()).map(t=>t.items).map(t=>t.map(l=>{let d=KV.get(l.itemEl);Object.assign(d.style,{position:"absolute",top:`${l.data.start*100}%`})}))}function fR(){_V.instances.forEach(t=>bd(t))}td();function li(t,l){Jt.length===0&&yF();let d=Jt.find(V=>V.element===t);d?d.listeners.find(V=>V===l)||d.listeners.push(l):Jt.push({element:t,lastVisible:!1,listeners:[l]})}function di(t,l){let d=Jt.findIndex(V=>V.element===t);if(d!==-1){let V=Jt[d];V.listeners=V.listeners.filter(i=>i!==l),V.listeners.length===0&&(Jt.splice(d,1),Jt.length===0&&zF())}}var Jt=[],Rd,$V=0,Zl=null;function yF(){let t=document.querySelector("#editor-viewport");t?(Rd=t,$V=t.getBoundingClientRect().top,Zl=new ResizeObserver(Il),Zl.observe(t,{box:"content-box"})):(Rd=window,$V=0,window.addEventListener("resize",Il,{passive:!0})),Rd.addEventListener("scroll",Il,{passive:!0}),tt(_R)}function zF(){Rd.removeEventListener("scroll",Il),Zl?(Zl.disconnect(),Zl=null):window.removeEventListener("resize",Il),xt(_R)}var ti=!1;function Il(){ti=!0}function _R(){ti&&(ti=!1,LF())}function LF(){Jt.forEach(t=>{let{top:l,isVisible:d,scrollPercent:V,elementHeight:i,viewportHeight:e}=Gd(t.element),n=d===t.lastVisible?"scroll":d?"enter":"leave";if(d||n==="leave"){let R={element:t.element,type:n,top:l,scrollPercent:V,elementHeight:i,viewportHeight:e};t.listeners.forEach(b=>b(R)),t.lastVisible=d}})}function Gd(t){let{top:l,height:d}=t.getBoundingClientRect(),V=T.getHeight(),i=V+d,e=l-$V,n=1-(d+e)/i;return{top:e,isVisible:n>=0&&n<=1,scrollPercent:n,elementHeight:d,viewportHeight:V}}function qR(){let t={};return{on(l,d){if(t[l])t[l].push(d);else return t[l]=[d],!0},off(l,d){if(t[l]){let V=t[l].indexOf(d);if(V!==-1){if(t[l].length===1)return delete t[l],!0;t[l].splice(V,1)}}return!1},emit(l,...d){var V;(V=t[l])==null||V.forEach(i=>i(...d))},hasListener(l){return l in t}}}function $R(t){return["enter","leave","scroll"].includes(t)}var cd=class extends HTMLElement{constructor(){super(...arguments);this.internalEvents=qR();this.scrollListenerCount=0;this.observer=new MutationObserver(()=>{this.internalEvents.emit("content")});this.scrollListener=d=>{switch(d.type){case"enter":this.internalEvents.emit("enter"),this.internalEvents.emit("scroll",d);break;case"leave":this.internalEvents.emit("leave");break;case"scroll":this.internalEvents.emit("scroll",d);break}}}connectedCallback(){if(this.internalEvents.emit("connected"),this.internalEvents.hasListener("content")&&(this.observer.observe(this,{childList:!0,subtree:!0}),this.hasChildNodes()&&this.internalEvents.emit("content")),this.scrollListenerCount>0){this.scrolledParent=tG(this),li(this.scrolledParent,this.scrollListener);let d=Gd(this.scrolledParent);d.scrollPercent<0||d.scrollPercent>1?this.internalEvents.emit("leave"):(this.internalEvents.emit("enter"),this.internalEvents.emit("scroll",lt({element:this.scrolledParent,type:"enter"},d)))}}getScrollPosition(){return Gd(this.scrolledParent)}disconnectedCallback(){this.scrollListenerCount>0&&(di(this.scrolledParent,this.scrollListener),this.internalEvents.emit("leave")),this.internalEvents.hasListener("content")&&this.observer.disconnect(),this.internalEvents.emit("disconnected")}on(d,V){this.internalEvents.on(d,V)&&($R(d)?(this.isConnected&&this.scrollListenerCount===0&&(this.scrolledParent=tG(this),li(this.scrolledParent,this.scrollListener)),this.scrollListenerCount++):d==="content"&&this.isConnected&&this.observer.observe(this,{childList:!0,subtree:!0}))}off(d,V){this.internalEvents.off(d,V)&&($R(d)?(this.scrollListenerCount--,this.isConnected&&this.scrollListenerCount===0&&di(this.scrolledParent,this.scrollListener)):d==="content"&&this.isConnected&&this.observer.disconnect())}};function tG(t){let l=t;for(;l.parentElement;){let d=getComputedStyle(l);if(d.position!=="sticky"&&d.display!=="inline")return l;l=l.parentElement}return l}var wF={fadeInThreshold:.7,fadeOutThreshold:.15,hideWhenOutOfBounds:!0};function lG(t,l,d,V,i=wF){let e=d/(d+V),n=e*i.fadeInThreshold*.5-e,R=1-e;if(n>l||l>=R)return[];let b=t.filter(c=>c.transitionPercentage).sort((c,W)=>W.transitionPercentage-c.transitionPercentage);if(b.length===0)return[];let a=b[0],G=b[1];if(a.transitionPercentage<i.fadeInThreshold)return[];if(G){let c=G.transitionPercentage>i.fadeInThreshold,W=G.transitionPercentage>i.fadeOutThreshold;if(c)return[G];if(W)return[a,G]}return[a]}var Vi=A(HV()),ii=A(f());function ei(t){var i;let l=p(".Theme-Layer-BodyText",t.parentElement);((i=document.getElementById("editor-viewport"))!=null?i:document).addEventListener("scroll",V,{passive:!0});function V(){l.forEach(e=>{ii.default.measure(()=>{let{top:n,bottom:R}=e.getBoundingClientRect(),b=window.innerHeight,a=b*.3,G=n<b&&n>b-a,c=R<a&&R>0;ii.default.mutate(()=>{if(G){let W=(0,Vi.default)((b-n)/a,0,1);e.style.setProperty("opacity",W.toString())}else if(c){let W=(0,Vi.default)(R/a,0,1);e.style.setProperty("opacity",W.toString())}else R<0||n>b?e.style.setProperty("opacity","0"):e.style.setProperty("opacity","1")})})})}}function dG(t){return t?t.split(";").map(d=>{let V=d.trim().split(/\s+/);if(V.length<2)return{name:V[0]||"none",speed:1};{let i=parseFloat(V[0]);return{name:V[1],speed:isNaN(i)?1:i}}}):[]}function VG(t,l,d,V){var G,c,W;let i=d+V,e=d*.4,n=d/i,R=-e/i,b=[{name:"none",start:R,end:R+n}],a=d;for(let I=0;I<l.length-1;I++){a+=l[I];let B=((c=(G=t[I])==null?void 0:G.speed)!=null?c:1)*n,U=(a-e)/i;b.push({name:((W=t[I])==null?void 0:W.name)||"none",start:U,end:U+B})}return b}function iG(t,l){return t.map((d,V)=>{if(V!==0&&l<d.start||V+1<t.length&&l>t[V+1].end)return{index:V,display:"none"};{let i=d.end-d.start,e=l-d.start,n=Math.min(e/i,1),R=OF(d,V,n);return R.opacity===0?{display:"none",index:V}:R}})}function OF(t,l,d){let V={display:"block",transitionPercentage:d,index:l,clipPath:"none",opacity:1},i=0,e=0,n=0,R=0;return t.name.split(",").forEach(a=>{switch(a){case"fade":V.opacity=d;break;case"up":i=(1-d)*100;break;case"right":e=(1-d)*100;break;case"down":n=(1-d)*100;break;case"left":R=(1-d)*100;break}}),(i||e||n||R)&&(V.clipPath=`inset(${i}% ${e}% ${n}% ${R}%)`),V}var jF=`
<style type="text/css">
.PositionSticky {
  position: -webkit-sticky; /* Safari 12 and earlier */
  top: 0px;
  position: sticky;
}
</style>
<div class="PositionSticky" style="width: 100%; height: 100vh; overflow: hidden">
 <div style="width: 100%; height: 100vh; overflow: hidden; top: 0px; isolation: isolate">
 <slot></slot>
 </div>
 <slot name="caption"></slot>
</div>
<slot name="foreground"></slot>`,Wd=class extends cd{constructor(){super();this.textHeights=[];this.isTextBlockConnected=!1;let d=this.attachShadow({mode:"open"});d.innerHTML=jF,this.slotElements=Array.from(d.querySelectorAll("slot")),window.ResizeObserver&&(this.textObserver=new ResizeObserver(()=>{this.textBlockElement&&(this.textHeights=eG(this.textBlockElement))})),this.slotElements[0].addEventListener("slotchange",()=>{this.updateScene(this.getScrollPosition())}),this.slotElements[1].addEventListener("slotchange",()=>{this.captionElement=this.slotElements[1].assignedElements()[0];let V=this.getScrollPosition();this.captionElement&&V.isVisible&&(this.captionElement.style.display="block",this.updateScene(V))}),this.slotElements[2].addEventListener("slotchange",()=>{this.disconnectTextBlockElement(),this.textBlockElement=this.slotElements[2].assignedElements()[0],this.connectTextBlockElement(),this.updateScene(this.getScrollPosition())}),this.on("connected",()=>{ei(this),this.readTransitions(),this.connectTextBlockElement()}),this.on("disconnected",()=>{this.disconnectTextBlockElement()}),this.on("enter",()=>{this.captionElement&&(this.captionElement.style.display="block")}),this.on("scroll",V=>{this.updateScene(V)}),this.on("leave",()=>{this.captionElement&&(this.captionElement.style.display="none")})}connectTextBlockElement(){var d;this.isConnected&&this.textBlockElement&&!this.isTextBlockConnected&&(this.textHeights=eG(this.textBlockElement),(d=this.textObserver)==null||d.observe(this.textBlockElement),this.isTextBlockConnected=!0)}disconnectTextBlockElement(){var d;this.textBlockElement&&this.isTextBlockConnected&&(this.textHeights=[],(d=this.textObserver)==null||d.observe(this.textBlockElement),this.isTextBlockConnected=!1)}readTransitions(){this.transitions=dG(this.getAttribute("data-transitions"))}updateScene({scrollPercent:d,viewportHeight:V,elementHeight:i}){if(this.textHeights.length===0)return;let e=VG(this.transitions,this.textHeights,V,i),n=iG(e,d),R=lG(n,d,V,i),b=this.slotElements[0].assignedElements();PF(this.captionElement,b,R),n.forEach((a,G)=>DF(b[G],a))}attributeChangedCallback(){this.isConnected&&(this.readTransitions(),this.updateScene(this.getScrollPosition()))}};Wd.observedAttributes=["data-transitions"];function eG(t){return Array.from(t.children).map(l=>l.getBoundingClientRect().height)}function DF(t,l){var d;t instanceof HTMLElement&&(t.style.display!==l.display&&(l.display==="none"?vF(t):fF(t),t.style.display=l.display),t.style.opacity=(d=l.opacity)==null?void 0:d.toString(),t.style.clipPath=l.clipPath,t.style.zIndex=l.index.toString())}function vF(t){t.querySelectorAll("video").forEach(l=>{l.autoplay&&(l.autoplay=!1);try{l.pause()}catch(d){}})}function fF(t){t.querySelectorAll("video").forEach(l=>{if(l.src)try{l.play().catch(()=>{})}catch(d){}else l.autoplay=!0})}function PF(t,l,d){if(t){let V=t.querySelector("[data-mediarenderer-caption-container]")||t,i=d.map(e=>l[e.index].querySelector(".Theme-OverlayedCaption"));d.length===0||i.some(e=>!e)?t.style.opacity="0":(t.style.opacity="1",d.length===2?V.style.opacity="0":(V.style.opacity="1",V.innerHTML=i[0].innerHTML))}}function KF(t="sh-background-transition"){customElements.get(t)||customElements.define(t,Wd)}KF();function aG(t,l,d){var V,i,e;l===void 0&&(l=50),d===void 0&&(d={});var n=(V=d.isImmediate)!=null&&V,R=(i=d.callback)!=null&&i,b=d.maxWait,a=Date.now(),G=[];function c(){if(b!==void 0){var I=Date.now()-a;if(I+l>=b)return b-I}return l}var W=function(){var I=[].slice.call(arguments),B=this;return new Promise(function(U,Z){var m=n&&e===void 0;if(e!==void 0&&clearTimeout(e),e=setTimeout(function(){if(e=void 0,a=Date.now(),!n){var X=t.apply(B,I);R&&R(X),G.forEach(function(u){return(0,u.resolve)(X)}),G=[]}},c()),m){var J=t.apply(B,I);return R&&R(J),U(J)}G.push({resolve:U,reject:Z})})};return W.cancel=function(I){e!==void 0&&clearTimeout(e),G.forEach(function(B){return(0,B.reject)(I)}),G=[]},W}var nG=A(EV());function Ud(t){let l={"InstantImage--isLoading":!1,"InstantImage--isLoaded":!0};t.className=(0,nG.default)(t.className,l)}var{isSafari:bG}=D();function St(t,l){let d=Array.from(t.querySelectorAll("source")),V;return bG&&(V=d.find(i=>i.type==="video/mp4"&&i.hasAttribute(`data-${l}`))),V||(V=d.find(i=>t.canPlayType(i.type)&&i.hasAttribute(`data-${l}`)&&(!bG||i.type==="video/mp4"))),V?[_F(V.getAttribute(`data-${l}`)),V.type]:[void 0,void 0]}function _F(t){let l=document.createElement("a");return l.href=t,l.href}function ct(t,l){l.classList.remove("video-stopped","video-paused","video-playing","video-loading","video-error"),l.classList.add(t)}function qF(t){let l=()=>{t.style.opacity="1"};["loadeddata","playing","canplaythrough"].forEach(V=>gt(t,V,l))}function $F(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2}function ai(t,l={canControl:!0},d){let V=T.getHeight()>T.getWidth(),i=$F(t),[e]=St(t,V?"portrait":"landscape");e&&t.src!==e&&(t.src=e,t.load(),l.canControl&&i&&Zd(t,d))}function ni(){let{isSafari:t}=D();p("[data-background-video]").forEach(i=>{let e=i.querySelector("[data-video]"),n=i.querySelector("img");if(!e)return;t&&e.className.includes("FullSize__fixedChild")&&e.addEventListener("canplay",()=>{e.className=e.className.replace("FullSize__fixedChild","FullSize__fixedChild--Safari")});let R=e.autoplay;if(e.muted=!0,e.defaultMuted=!0,qF(e),e.readyState>=2?Ud(i):(e.addEventListener("loadeddata",()=>Ud(i)),e.addEventListener("error",()=>Ud(i))),R){at(i,G=>{ai(e,{canControl:!1},n),ad(e),Gt(G)?Zd(e,n):e.pause()},{triggerPoint:"on visibile"});let{top:a}=i.getBoundingClientRect();a<T.getHeight()*2&&(Zd(e,n),setTimeout(()=>{e.readyState<2&&e.paused&&(e.load(),Zd(e,n))},1e3))}else ai(e,{canControl:!1},n)});let d=p("[data-background-video] [data-video]"),V=aG(i=>d.forEach(e=>{var n;ai(e,{canControl:!0},(n=e.parentElement)==null?void 0:n.querySelector("img"))}),100);["resize","orientationchange"].forEach(i=>{window.addEventListener(i,V,{passive:!0})})}function Zd(t,l){try{t.pause(),t.style.visibility="hidden",l.style.visibility="visible"}catch(V){}let d=t.play();typeof d!="undefined"&&(t.style.visibility="visible",l.style.visibility="hidden",d.then(()=>{t.style.visibility="visible",l.style.visibility="hidden"}).catch(()=>{t.play().catch(V=>{t.pause(),t.style.visibility="hidden",l.style.visibility="visible"})}))}var cG=A(jV());var bi=A(f());function Ri(t,l){bi.default.measure(()=>{let d=window.innerWidth,i=l.reduce((e,n)=>e.clientHeight>n.clientHeight?e:n,l[0]).clientHeight;bi.default.mutate(()=>{t.style.height=d>=900?`${i}px`:null})})}var gl=A(f());var Fl={items:[],lastSizes:new WeakMap},tg=250;function RG(){let t=dg(document.documentElement);t.length!==0&&(Fl.items=t,tt(lg))}function lg(){Fl.items.forEach(t=>ig(t))}function dg(t){return p("[data-card-canvas-item]",t).map(Vg)}function Vg(t){return{el:t,img:p("img",t),caption:t.querySelector(".CardCanvasItem__caption"),heightReferenceEl:t.parentElement.querySelector("[data-card-canvas-height-reference]")}}function ig(t){eg(t).then(()=>ag(t)).catch(()=>{})}function eg(t){return new Promise((l,d)=>{gl.default.measure(()=>{if(getComputedStyle(t.el).getPropertyValue("display")==="none")return d();let i=window.innerWidth,e=t.heightReferenceEl.clientHeight,n=t.caption?t.caption.clientHeight:0,R=Fl.lastSizes.has(t)?Fl.lastSizes.get(t):{width:0,height:0,captionHeight:0};if(i===R.width&&e===R.height&&n===R.captionHeight)return d();R.width=i,R.height=e,R.captionHeight=n,Fl.lastSizes.set(t,R);let b=e-n;gl.default.mutate(()=>{t.img.forEach(a=>a.style.maxHeight=i>=900?`${b}px`:null),l()})})})}function ag(t){return new Promise(l=>{if(!t.caption)return l();function d(V,i){gl.default.mutate(()=>{let e=ng(i,{width:V.naturalWidth,height:V.naturalHeight}),n=Math.max(e.width,tg);t.caption.style.maxWidth=`${n}px`,l()})}gl.default.measure(()=>{let V=t.el.querySelector("picture img");if(!V)return;let i=V.getBoundingClientRect();V.naturalWidth>0?d(V,i):V.addEventListener("load",()=>d(V,i))})})}function ng(t,l){let d=l.width/t.width,V=l.height/t.height,i=Math.max(d,V);return{width:l.width/i,height:l.height/i}}var ci={instances:new Map,isRunning:!1},Gi=new WeakMap;function bg(t){let l=ci.instances;return l.has(t)||l.set(t,{scrollContainer:t.parentElement,items:[],isRendering:!1,machines:new WeakMap}),l.get(t)}function Rg(t,l,d){let V=1/d.length,i=l*V,e=i+V,n=l===0,R=l===d.length-1;return{itemEl:t,index:l,data:{start:i,end:e,showDuringScrollIn:n,showDuringScrollOut:R}}}function Wi(){RG(),p("[data-card-canvas]").forEach(l=>Gg(l,{doLazyload:!0})),["resize","orientationchange"].forEach(l=>window.addEventListener(l,WG,{passive:!0}))}function Gg(t,l,d){let V=p("[data-card-canvas-item]",t);if(V.length===0)return;let i=V.map(Rg),e=bg(t);return e.items=i.reduce((n,R)=>{let b=e.items.find(a=>a.itemEl===R.itemEl);return b&&(b.data=R.data),[...n,b||R]},[]),e.items.map(n=>l.doLazyload?cg(n,t.parentElement):n).filter(n=>!e.machines.get(n)).forEach(n=>e.machines.set(n,new nd({item:n,classNames:{prime:"CardCanvasItem--isPrimed",active:"CardCanvasItem--isActive"},onItemShown(R){d&&d(R,e.items.indexOf(R))},shouldLinger(R){return!e.items.filter(c=>c!==R).map(c=>e.machines.get(c)).some(c=>c.isActive())}}))),l.doLazyload&&WG(),tt(GG),()=>xt(GG)}function cg(t,l){if(!Gi.get(t.itemEl)){let V=document.createElement("div");V.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),V.setAttribute("data-item-index",String(t.index)),Gi.set(t.itemEl,V),l.appendChild(V);let i={pictures:p("picture",t.itemEl),container:t.itemEl.querySelector("[data-lazyload-container]"),trigger:V};al(i)}return t}function WG(){(0,cG.default)(ci.instances.values()).map(t=>t.items).map(t=>t.map(l=>{let d=Gi.get(l.itemEl);Object.assign(d.style,{position:"absolute",top:`${l.data.start*100}%`})}))}function Wg(t,l){bd(t),Ri(l,t.items.map(d=>d.itemEl))}function GG(){ci.instances.forEach(Wg)}function Ui(){}var Zi=Symbol("hidden"),Ii=Symbol("visible");function Ug(t,l,d){let V=d.find(([e])=>e===t),i=V?V[1]:!1;return(!i||i!==l)&&t(l),d.filter(([e])=>e!==t).concat([[t,l]])}function Zg(t){let{lastCalls:l}=t;Id.forEach(d=>{let i=t.isPageHidden||!t.visibleElements.has(d.element)?Zi:Ii;l=Ug(d.cb,i,l)}),t.lastCalls=l}function Ig(t,l){return t.add(l)}function Fg(t,l){return t.delete(l),t}function gg(){Tt.addVisibilityChangeListener(()=>{let t={isPageHidden:UG()};IG(t)})}function UG(){return Tt.isHidden()}var Id=[],Fd={isPageHidden:UG(),visibleElements:new Set,lastCalls:[]};function ZG(t,l,d="nearly visible"){Id.push({cb:l,element:t});let V={triggerPoint:d};return at(t,e=>{let{visibleElements:n}=Fd,R=Gt(e)?Ig(n,t):Fg(n,t);IG({visibleElements:R})},V),()=>{jt(t,V);let e=Id.findIndex(n=>n.element===t&&n.cb===l);Id.splice(e,1)}}function IG(t){Fd=lt(lt({},Fd),t),Zg(Fd)}function Fi(){gg()}var gi=A(f());function mi(){window.addEventListener("resize",()=>FG(),{passive:!0}),FG()}function FG(){gi.default.measure(()=>{let t=T.getOrientation();gi.default.mutate(()=>{p("[data-landscape-focal]").forEach(l=>{let d=l.dataset[`${t}Focal`];if(d){let V=l.tagName==="PICTURE"?l.querySelector("img"):l;V==null||V.style.setProperty("object-position",d)}})})})}var O=null,ml=!1;function Bi(){mg(),p("[data-footnote]").forEach(t=>pg(t))}function mg(){let t=L(".Theme-Story");t&&(!O||!L(".Theme-Footnote",t))&&(O=document.createElement("div"),O.classList.add("Theme-Footnote"),O.setAttribute("role","tooltip"),O.setAttribute("aria-live","polite"),O.setAttribute("aria-atomic","true"),t.appendChild(O))}function gG(){return L("#editor-viewport")||document}function Bg(){let t=L(".Theme-Header");if(!t)return 0;let l=getComputedStyle(t).height,d=parseInt(l,10),V=L(".Navigation__itemList"),i=V&&window.innerWidth>=1100&&V.childNodes.length?36:0,e=L(".navbar-editor");return(e?parseInt(getComputedStyle(e).height,10):0)+d+i}function pg(t){t.addEventListener("mouseover",()=>gd(t)),t.addEventListener("touchstart",()=>gd(t)),t.addEventListener("focus",()=>{setTimeout(()=>gd(t),100)}),t.addEventListener("keydown",l=>{switch(l.key){case"Enter":ml?pi():gd(t);break;case"ArrowUp":ml&&(l.preventDefault(),O.firstElementChild.scrollBy(0,-20));break;case"ArrowDown":ml&&(l.preventDefault(),O.firstElementChild.scrollBy(0,20));break}})}function gd(t){let l=t.getBoundingClientRect();O.style.display="block",O.innerHTML=decodeURIComponent(t.getAttribute("data-footnote"));let d=O.getBoundingClientRect(),V=l.top<Bg()+d.height,i=V?l.bottom+5:l.top-d.height-5,e=l.left+l.width/2;e-d.width/2<0?e=d.width/2+2:e+d.width/2>window.innerWidth&&(e=window.innerWidth-d.width/2-2),O.style.top=`${i}px`,O.style.left=`${e}px`,O.classList.remove("Theme-Position-Top"),O.classList.remove("Theme-Position-Bottom"),O.classList.add(V?"Theme-Position-Top":"Theme-Position-Bottom"),document.addEventListener("mouseover",md),document.addEventListener("touchstart",md),gG().addEventListener("scroll",mG),ml=!0}function pi(){ml=!1,O.style.display="",document.removeEventListener("mouseover",md),document.removeEventListener("touchstart",md),gG().removeEventListener("scroll",mG)}function mG(){pi()}function md(t){let l=t.target;!l.closest(".Theme-Layer-BodyText-Highlight")&&!l.closest(".Theme-Footnote")&&pi()}var oi=A(f());var BG="HideOffscreen__media--onscreen";function og(t){oi.default.mutate(()=>{t.forEach(l=>l.classList.remove(BG))})}function xg(t){oi.default.mutate(()=>{t.forEach(l=>{l.classList.add(BG),PV([l])})})}function xi(){p(".HideOffscreen--container").map(t=>({container:t,children:p(".HideOffscreen__media",t)})).filter(t=>t.children&&t.children.length>0).forEach(t=>{ZG(t.container,l=>{switch(l){case Ii:xg(t.children);break;case Zi:og(t.children);break}},"on visibile")})}function Ji(){}function Jg(){let t=document.createElement("div");return t.style.display="flex",t.style.display==="flex"}function Ni(){Jg()||document.documentElement.classList.add("Layout--flexboxUnsupported")}function Qi(){Ni()}var oG=A(f());function Bd(t,l){let d=t.querySelector(".carousel-inner"),V=t.querySelector(".carousel-container"),i=t.querySelector(".carousel-image-Small"),e=t.querySelector(".carousel-captions"),n=t.querySelector("#carousel-next-btn"),R=t.querySelector("#carousel-prev-btn"),b=Array.from(d.querySelectorAll(".carousel-cell-item")),a=[],G=0;function c(Q,o,N){Q.style.transition=o,Q.style.transform=N}let W;document.querySelector(".Theme-Story").dir==="rtl"&&(W=!0);function B(Q,o){let N;return Q instanceof HTMLImageElement?N=Q.naturalWidth/Q.naturalHeight:Q instanceof HTMLVideoElement&&(N=Q.videoWidth/Q.videoHeight),o*N}function U(Q,o){let N=window.innerWidth,C=i?d.clientHeight-60:d.clientHeight,k=()=>{let K=B(Q,C);a[parseInt(o.dataset.index)]=K,N<900&&!i?(o.style.width="92vw",o.style.height="100%",o.classList.add("active","carousel-mobile-media")):(o.classList.remove("carousel-mobile-media"),o.style.width=`${K}px`,o.style.height=`${C}px`)};function r(){k(),l?Z():(c(d,"transform 0.5s ease","translateX(0px)"),c(e,"transform 0.5s ease","translateX(0px)")),m()}Q instanceof HTMLImageElement?Q.complete?r():Q.addEventListener("load",r):Q instanceof HTMLVideoElement&&(Q.readyState>=3?r():Q.addEventListener("loadeddata",r)),m()}function Z(){let Q=window.innerWidth;if(d)if(Q<900&&!i)c(d,"none",`translateX(${G*92}vw)`),c(e,"none",`translateX(${G*92}vw)`);else{let o=t.querySelector(".carousel-container").offsetWidth/2-a[G]/2;c(d,"none",`translateX(${W?-o:o}px)`),c(e,"none",`translateX(${W?-(o+15*G):o+15*G}px)`)}}function m(){let Q=t.querySelectorAll("[data-media-long-captions]"),o=window.innerWidth,N=Array.from(Q).every(C=>C.textContent.trim()==="");b.forEach((C,k)=>{let r=Q[k];o<900&&!i?(r.classList.add("mobile-caption"),r.style.width="92vw",r.classList.remove("carousel-center-caption")):l?(r.classList.add("carousel-center-caption"),r.classList.remove("mobile-caption"),r.style.width=`${a[k]}px`):(r.classList.remove("mobile-caption"),r.classList.remove("carousel-center-caption"),r.style.width="92vw"),k!==G&&!N?(C.classList.add("non-active-fade-out"),r.classList.add("fade-out-caption","hide-caption"),r.classList.remove("active-caption")):(C.classList.add("active"),C.classList.remove("non-active-fade-out"),r.classList.add("active-caption"),r.classList.remove("fade-out-caption","hide-caption"))}),n.style.display=W?G===0?"none":"block":G===b.length-1?"none":"block",R.style.display=W?G===b.length-1?"none":"block":G===0?"none":"block"}function J(){b.forEach((N,C)=>{N.dataset.index=String(C);let k=N.querySelector("img"),r=N.querySelector("video");r&&!r.paused&&(r.style.visibility="visible"),U(k,N)}),G=0;let Q=a.reduce((N,C)=>N+C,0),o=t.querySelector(".MediaGallery_carousel");a[G]<o.clientWidth-20&&!W?o.classList.add("fade-at-end"):o.classList.remove("fade-at-end"),Q<window.innerWidth?(o.classList.add("center-carousel"),e.style.display="none",R.style.display="none",n.style.display="none",o.classList.remove("fade-at-end"),c(d,"transform 0.5s ease","translateX(0px)"),b.forEach(N=>{N.classList.add("active"),e.classList.add("active-caption"),N.classList.remove("non-active-fade-out"),e.classList.remove("non-active-fade-out")})):(e.style.display="flex",o.classList.remove("center-carousel"),m())}function X(){return 15/window.innerWidth*100}function u(Q){let o=(G+(Q==="next"?1:-1)+a.length)%a.length,N=a[o],C=a.slice(0,o).reduce((r,K)=>r+K+15,0);if(window.innerWidth<900&&!i)c(d,"transform 0.5s ease",`translateX(${W?o*92+X()*o:-(o*92+X()*o)}vw)`),c(e,"transform 0.5s ease",`translateX(${W?o*92+X()*o:-(o*92+X()*o)}vw)`);else if(l){let r=t.querySelector(".carousel-container").offsetWidth/2-N/2-C;c(d,"transform 0.5s ease",`translateX(${W?-r:r}px)`),c(e,"transform 0.5s ease",`translateX(${W?-r:r+15*o}px)`)}else c(d,"transform 0.5s ease",`translateX(${W?C:-C}px)`),c(e,"transform 0.5s ease",`translateX(${W?o*92:-o*92}vw)`);G=o,m()}n.addEventListener("click",()=>u(W?"prev":"next")),R.addEventListener("click",()=>u(W?"next":"prev"));function x(Q){return{x:Q.touches[0].clientX,y:Q.touches[0].clientY}}let F=null,Y=-1;V.addEventListener("touchstart",Q=>{F=x(Q),Y=F.x},{passive:!0}),V.addEventListener("touchmove",Q=>{let o=x(Q),N=o.x-F.x,C=o.y-F.y;Math.abs(N)>Math.abs(C)&&Q.cancelable&&Q.preventDefault()}),V.addEventListener("touchend",Q=>{if(Y===-1)return;let o=Q.changedTouches[0].clientX-Y,N=window.innerWidth*.1;o<-N&&G<a.length-1?u("next"):o>N&&G>0&&u("prev"),Y=-1},{passive:!0});function h(){return me(this,null,function*(){let Q=b.map(o=>{let N=o.querySelector("img"),C=o.querySelector("video");return{img:N,video:C}});yield Promise.all(Q.map(({img:o,video:N})=>new Promise(C=>{o?o.complete?C():(o.addEventListener("load",()=>C()),o.src=o.src):N&&(N.readyState>=3?C():(N.addEventListener("loadeddata",()=>C()),N.src=N.src))}))),J()})}window.addEventListener("DOMContentLoaded",h);let S=window.innerHeight;window.addEventListener("resize",()=>{let Q=window.innerHeight;Math.abs(Q-S)>100&&(J(),S=Q)})}var nt=class t{constructor(l){this.element=l,this.counter=l.querySelector("[aria-live]"),this.element.parentElement.removeChild(this.element),document.body.appendChild(this.element),this.currentMediaIndex=0,this.media=p("[data-media-gallery-index]",this.element),this.element.addEventListener("click",()=>{this.close()}),p("img, .Videoplayer, .Theme-Caption",this.element).forEach(n=>{n.addEventListener("click",R=>R.stopPropagation())});let d=L('[data-action="previous"]',this.element);d&&d.addEventListener("click",n=>{n.stopPropagation(),this.prev()});let V=L('[data-action="next"]',this.element);V&&V.addEventListener("click",n=>{n.stopPropagation(),this.next()}),L('[data-action="close"]',this.element).addEventListener("click",n=>{n.stopPropagation(),this.close()}),this.element.addEventListener("touchmove",n=>n.preventDefault());let e=-1;p("img, .Videoplayer",this.element).forEach(n=>{n.addEventListener("touchstart",R=>{e=R.touches[0].clientX}),n.addEventListener("touchend",R=>{let b=R.changedTouches[0].clientX-e,a=window.innerWidth*.1;b<-a?this.next():b>a&&this.prev(),e=-1})})}getFocusable(){let l=p("*[data-action]",this.element),d=L(`[data-media-gallery-index="${this.currentMediaIndex}"].active [tabindex]`,this.element);return l.concat(d).filter(V=>V)}open(l,d){var V;(V=t.current)==null||V.close(!1),p("video",this.element).forEach(i=>i.setAttribute("playsinline","true")),p([".DeviceDetect--isEdge .MediaGallery--lightbox .plyr__progress--seek",".DeviceDetect--isIE .MediaGallery--lightbox .plyr__progress--seek"].join(",")).forEach(i=>{i.style.setProperty("width","0"),setTimeout(()=>i.style.removeProperty("width"),100)}),this.goToIndex(l),this.element.classList.add("MediaGallery--lightbox--open"),t.current=this,document.body.classList.add("Body--hasLightbox"),this.getFocusable()[1].focus(),this.onClose=d}close(l=!0){this.element.classList.remove("MediaGallery--lightbox--open"),document.body.classList.remove("Body--hasLightbox"),p("video",this.element).forEach(d=>d.pause()),l&&typeof this.onClose=="function"&&this.onClose(),t.current=null}prev(){let l=this.currentMediaIndex===0?this.media.length-1:this.currentMediaIndex-1;this.goToIndex(l)}next(){let l=this.currentMediaIndex===this.media.length-1?0:this.currentMediaIndex+1;this.goToIndex(l)}goToIndex(l){this.media[this.currentMediaIndex].classList.remove("active"),p("video",this.element).forEach(V=>V.pause()),this.currentMediaIndex=l,L(`[data-media-gallery-index="${this.currentMediaIndex}"]`,this.element).classList.add("active"),this.counter.innerText=`Item ${l+1} of ${this.media.length}`}};function Ci(){let t={};p("[data-media-gallery-lightbox]").forEach(d=>{let V=d.getAttribute("data-media-gallery-lightbox");t[V]=new nt(d)}),p("[data-media-gallery]").forEach(d=>{let V=d.getAttribute("data-media-gallery");p("[data-cell-index]",d).forEach(i=>{i.addEventListener("click",()=>l(V,i)),i.addEventListener("keydown",e=>{nt.current||e.code==="Enter"&&(e.preventDefault(),e.stopPropagation(),l(V,i))})})}),window.removeEventListener("keydown",pG),window.addEventListener("keydown",pG);function l(d,V){let i=parseInt(V.getAttribute("data-cell-index"),10);Ng(),t[d].open(i,()=>{Qg(),V.focus()})}}function pG(t){if(nt.current&&T.getHeight()!==window.screen.height)switch(t.code){case"Tab":let l=nt.current.getFocusable(),d=l[0],V=l[l.length-1];!l.includes(document.activeElement)||!t.shiftKey&&document.activeElement===V?(t.preventDefault(),t.stopPropagation(),d.focus()):t.shiftKey&&document.activeElement===d&&(t.preventDefault(),t.stopPropagation(),V.focus());break;case"Enter":document.activeElement.className.includes("plyr")&&(t.preventDefault(),t.stopPropagation(),document.activeElement.querySelector('[data-plyr="fullscreen"]').click());break;case"ArrowRight":t.preventDefault(),t.stopPropagation(),document.activeElement.className.includes("plyr")||nt.current.next();break;case"ArrowLeft":t.preventDefault(),t.stopPropagation(),document.activeElement.className.includes("plyr")||nt.current.prev();break;case"Escape":t.preventDefault(),t.stopPropagation(),nt.current.close();break}}function Ng(){p("[data-media-gallery] video").forEach(t=>t.pause())}function Qg(){p("[data-media-gallery] video").forEach(t=>{oG.default.measure(()=>{let l=t.getBoundingClientRect();l.top<T.getHeight()&&l.bottom>0&&t.play()})})}p("[data-media-carousel]").forEach(t=>{Bd(t,!1)});p("[data-media-center-carouse]").forEach(t=>{Bd(t,!0)});function Xi(){let{isIE:t,isEdge:l}=D();(t||l)&&(window.addEventListener("mousewheel",d=>{let{wheelDelta:V,wheelDeltaY:i}=d;d.preventDefault(),Bl(1-(i||V))}),document.body.addEventListener("keydown",d=>{switch(d.key){case"PageUp":d.preventDefault(),Bl(window.innerHeight*-.8);break;case"PageDown":d.preventDefault(),Bl(window.innerHeight*.8);break;case"ArrowUp":d.preventDefault(),Bl(-120);break;case"ArrowDown":d.preventDefault(),Bl(120);break;default:return}}))}function Bl(t,l=100){let d=10,V=t/d,i=setInterval(()=>{window.scrollTo(0,Math.round(window.pageYOffset+V)),d>0?d--:clearInterval(i)},l/d)}var CG=A(JG());var hi=A(f());var QG="Theme-ActiveNavigationBarItem";function Cg(t){return t.reduce((l,d)=>{let V=d.getAttribute("href");if(V.indexOf("#")!==0)return l;let i=V.replace(/^#/,"");try{let e=document.getElementById(i);e||console.warn(`navigation: Couldn't locate target via nav item id '${i}'.`),l.push({target:e,navItem:d})}catch(e){console.warn(`navigation: Bad target via nav item selector ${i}.`)}return l},[])}function Xg(t){t.forEach(hg)}function hg(t){t.parentElement.classList.remove(QG)}function ug(t){t.parentElement.classList.add(QG)}function sg(t){let l=T.getHeight()/2;return t.find(d=>{let V=d.target.getBoundingClientRect(),i=d.target.className.match(/\bTheme-TitleSection\b/)!==null;return V.top<l&&(i||V.bottom>l)})}var NG={lastMostVisible:!1};function rg(t){hi.default.measure(()=>{let l=sg(t.slice().reverse());NG.lastMostVisible!==l&&hi.default.mutate(()=>{Xg(t.map(d=>d.navItem)),l&&ug(l.navItem),NG.lastMostVisible=l})})}function ui(t){let l=Cg(t);if(l.length===0)return;let d=()=>rg(l);["scroll","resize"].forEach(V=>window.addEventListener(V,d)),setTimeout(d,1e3),d()}function si(){let t=p(".Navigation"),l=p(".Navigation__hamburger");if(!t.length||!l.length)return;let d=t[0],V=l[0],i=p(".Navigation__item",d);if(i.length===0){V.classList.add("hidden");return}Yg(V,d),Sg(i,d,V),Tg(V)}function Yg(t,l){function d(i){return e=>{e.key==="Tab"&&!e.shiftKey&&(e.preventDefault(),i.focus())}}function V(i){return e=>{e.key==="Tab"&&e.shiftKey&&(e.preventDefault(),i.focus())}}t.addEventListener("click",i=>{i.preventDefault(),l.classList.toggle("Navigation--isActive");let e=l.classList.contains("Navigation--isActive"),n=e?"true":"false";t.setAttribute("aria-expanded",n);let R=p("nav.Theme-NavigationBar a"),b=R.at(0),a=R.at(-1),G=b?V(a):null,c=a?d(b):null;function W(){l.classList.remove("Navigation--isActive"),t.setAttribute("aria-expanded","false"),t.focus(),b==null||b.removeEventListener("keydown",G),a==null||a.removeEventListener("keydown",c)}function I(U){!U.target.closest(".Navigation__hamburger")&&!l.contains(U.target)&&W()}function B(U){U.key==="Escape"&&W()}e?(b==null||b.focus(),b==null||b.addEventListener("keydown",G),a==null||a.addEventListener("keydown",c),document.addEventListener("click",I),document.addEventListener("keydown",B)):(b==null||b.removeEventListener("keydown",G),a==null||a.removeEventListener("keydown",c),document.removeEventListener("click",I),document.removeEventListener("keydown",B),t.focus())})}function Tg(t){t.classList.remove("Navigation__hamburger--initializing")}function Sg(t,l,d){let V=()=>{l.classList.remove("Navigation--isActive"),d.setAttribute("aria-expanded","false")};t.forEach(i=>i.addEventListener("click",V))}var kg="[data-story-nav-item]",Mg=-2;function Hg(){return p("[data-fixed-story-element]").reduce((l,d)=>l+d.getBoundingClientRect().height,Mg)}function ri(t=kg){let l=p(t);ui(l),si();let d=Hg();CG.default.setup(500,d)}var ki=A(f());var Eg={clientWidth:["padding-left","padding-right","border-left-width","border-right-width"],clientHeight:["padding-top","padding-bottom","border-top-width","border-bottom-width"]};function XG(t){return uG(t,"clientWidth")}function hG(t){return uG(t,"clientHeight")}function Ag(t,l){switch(l){case"clientWidth":return t.clientWidth;case"clientHeight":return t.clientHeight}}function uG(t,l){let d=Eg[l];try{let V=window.getComputedStyle(t),i=d.reduce((e,n)=>{let R=V.getPropertyValue(n);return e+yg(R)},0);return Ag(t,l)-i}catch(V){throw new Error(`Couldn't get styles for element ${t} in getInnerDimension`)}}function yg(t){return parseInt(t,10)}var lm=nc(),bc={elements:[]},dm=lm();function Hi(t){let{elements:l}=bc;if(l.findIndex(V=>V.element===t)>-1)return;let d={element:t,onResize(){Mi(t)}};l.push(d),Mi(t,!0),dm.listenTo(d.element.parentElement,d.onResize),od()}function Vm(){let{elements:t}=bc;t.forEach(l=>Mi(l.element))}function Mi(t,l=!1){ki.default.measure(()=>{let d=t.parentNode,V=d?XG(d):-1,i=t.clientWidth;(V!==i||l)&&ki.default.mutate(()=>{t.style.width=`${V}px`})})}function od(){let t=document.getElementsByClassName("ParentWidth");Array.prototype.forEach.call(t,Hi),Vm()}var xd=A(f());var Rc=!1;function Ai(t){t&&(Dt.getTopOffset=t),p("[data-scrollymoly]").forEach(im),window.addEventListener("orientationchange",()=>Ei()),Rc||(Rc=!0,window.addEventListener("resize",am),tt(Ei))}var Dt={moles:[],getTopOffset(t){return document.documentElement?t.getBoundingClientRect().top+document.documentElement.scrollTop:(console.error("Document element is not available."),0)}};function im(t){let l=t.getAttribute("data-scrollymoly");try{let d=JSON.parse(l).map(e=>ge(lt({},e),{offset:Number.isFinite(e.offset)?e.offset:0})),V=t.closest("[data-scrollymoly-basis]"),i=Dt.getTopOffset(V);em({element:t,basisEl:V,effects:d,topOffset:i,state:{}})}catch(d){console.error(d)}}function em(t){Dt.moles.push(t),Ei()}function Ei(){Dt.moles.map(nm)}function am(){Dt.moles.forEach(t=>{t.topOffset=Dt.getTopOffset(t.basisEl)})}function nm(t){return new Promise((l,d)=>{xd.default.measure(()=>{t.effects.forEach(V=>{V.kind in cc?cc[V.kind](t,V,l):(console.error(`Unknown effect type '${V.kind}'`),l())})})})}function Gc(t,l,d){let V=l.firstElementChild.getBoundingClientRect(),i=t.kind==="fadeIn"?V.top:V.bottom,e=T.getHeight()*t.end,n=e+Math.min(V.height,T.getHeight()*t.start),R=i>n?1:(i-e)/(n-e);return Math.round(R*100)/100}var cc={fadeOut(t,l,d){let V=Gc(l,t.basisEl,t.topOffset),i=Math.max(0,Math.min(1,V));if(t.state.lastOpacity===i)return d();xd.default.mutate(()=>{t.state.lastOpacity=i,t.element.style.opacity=i.toString(),d()})},fadeIn(t,l,d){let V=Gc(l,t.basisEl,t.topOffset),i=Math.max(0,Math.min(1,1-V));if(t.state.lastOpacity===i)return d();xd.default.mutate(()=>{t.state.lastOpacity=i,t.element.style.opacity=i.toString(),d()})}};var Wc={facebook:{networkName:"Facebook",shareAction:"Share",popupWidth:600,popupHeight:420},twitter:{networkName:"Twitter",shareAction:"Tweet",popupWidth:600,popupHeight:250},linkedin:{networkName:"LinkedIn",shareAction:"Share",popupWidth:600,popupHeight:250}};function bm(t,l){let d=Math.round(T.getWidth()/2-l.popupWidth/2),V=0;T.getHeight()>l.popupHeight&&(V=Math.round(T.getHeight()/3-l.popupHeight/2));let i={left:d,top:V,width:l.popupWidth,height:l.popupHeight,personalbar:0,toolbar:0,scrollbars:1,resizable:1},e=Object.keys(i).map(b=>`${b}=${i[b]}`).join(","),n="social-widget-"+l.networkName.replace(/\s+/,"-"),R=window.open(t,n,e);R?R.focus():location.href=t}function Rm(t){t.preventDefault();let l=t.currentTarget,d=l.getAttribute("data-social-share"),V=Wc[d],i=l.href;bm(i,V)}function Gm(t){let l=t.getAttribute("data-social-share");l in Wc?t.addEventListener("click",Rm,{passive:!1}):console.error(`Social Share button of type ${l} is not supported.`)}function yi(t="[data-social-share]"){p(t).forEach(Gm)}var vt={};function ft(t,l){return()=>{vt.pause&&vt.instance!==l&&vt.pause(),vt.pause=()=>{delete vt.pause,t()},vt.instance=l}}var cm="https://w.soundcloud.com/player/api.js",Wm=!1,Um="SoundCloudPlayer--initializing";function Zm(t){if(Wm)return t();let l=document.createElement("script");l.type="text/javascript",l.async=!0,l.addEventListener("load",t),l.src=cm;let d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(l,d)}function Im(t){let l=t.getAttribute("data-src"),d=t.getAttribute("data-height"),V=gm({src:l,height:d});V.addEventListener("load",()=>{Zm(()=>{t.classList.remove(Um);let i=new SC.Widget(V);Fm(i,V)})}),t.appendChild(V)}function Fm(t,l){let d=t.pause.bind(t);t.bind(SC.Widget.Events.READY,()=>{t.bind(SC.Widget.Events.PLAY,ft(d,l))})}function gm(t){let l=document.createElement("iframe"),d={width:"100%",scrolling:"no",frameborder:"no",src:t.src,height:t.height};return Object.keys(d).forEach(V=>l.setAttribute(V,d[V])),l}function zi(){let t=p("[data-soundcloud]");window.addEventListener("load",()=>{setTimeout(()=>t.forEach(Im),100)})}function Li(){p(".SplitLayout").forEach(mm)}function mm(t){let l=p(".FullSize__fixedChild.ObjectFit--cover",t);OR()&&l.forEach(Hi)}var wi=A(f());function Bm(t){let l=p("[data-stacked-content-fill]",t),d=p("[data-stacked-content-basis]",t),V=()=>pm(t,l,d);return V(),tt(V),()=>xt(V)}function pm(t,l,d){l.length!==0&&wi.default.measure(()=>{let V=hG(t);if(!V)return;let i=d.reduce((n,R)=>n+R.clientHeight,0),e=(V-i)/l.length;wi.default.mutate(()=>{l.forEach(n=>n.style.maxHeight=`${e}px`)})})}function Oi(){return p("[data-stacked-content]").map(Bm)}function om(t,l){let d=`https://views.unsplash.com/v?app_id=${t}&photo_id=${l}`;fetch(d).catch(V=>console.log(V))}function ji(){p("[data-unsplash-ids]").forEach(t=>{let l=t.getAttribute("data-unsplash-ids"),d=t.getAttribute("data-unsplash-app");om(d,l)})}var Di=class extends Error{constructor(d){super(d.statusText);this.response=d}};function Uc(t){if(t.status>=200&&t.status<300)return t;let l=new Di(t);throw l.response=t,l}function Zc(t,l,d){let V=t.headers.get("content-type");if(V&&V.includes(l))return t;throw new TypeError(d)}function vi(t,l,d){fetch(t).then(Uc).then(V=>Zc(V,"application/json","Incorrect data for Gallery")).then(V=>V.json()).then(V=>{let i=V.items.filter(n=>n.url.replace(/index\.html$/,"")!==window.location.href.replace(/index\.html$/,"")).map(n=>{let R=l==="tiles"?'class="ObjectFit--cover"':"",b=n.mediaSrc?`<img alt="" src="${n.mediaSrc}" ${R}>`:"",a=n.openInNewWindow?'target="_blank"':"",G=n.isNoFollow?'rel="nofollow"':"";return`
              <li class="Theme-Layer-Gallery-Item" style="overflow:hidden">
                <a href="${n.url?n.url:"/"}" ${a} ${G}>
                  <div class="Theme-Layer-Gallery-Item-Media">
                  ${b}
                  </div>
                  <div class="Theme-Layer-Gallery-Item-Text">
                    <h4 class="Theme-Layer-Gallery-Item-Title">${n.title?n.title:""}</h4>
                    <div class="Theme-Layer-Gallery-Item-Description">${n.description?n.description:""}</div>
                  </div>
                </a>
              </li>
            `}).join(""),e=`
          <h3 class="Layout Theme-Layer-Gallery-Heading">${V.title?V.title:""}</h3>
          <ul class="Layout Theme-Layer-Gallery-List">${i}</ul>
        `;return d?d(e):e}).catch(V=>{console.log("Gallery was unable to parse external data",V)})}var xm="GalleryRenderer--initializing";function Jm(t){let l=t.getAttribute("data-url"),d=t.getAttribute("data-mode");vi(l,d,V=>{t.innerHTML=V,t.classList.remove(xm),Ul()})}function fi(){p("[data-galleryrenderer]").forEach(Jm)}function Pi(){}var Nm=A(f());function Ic(t,l,d){return d!==void 0?Qm(t,l,d):t.classList.toggle(l)}function Qm(t,l,d){let V=t.className.split(/\s+/),i=V.includes(l),e=d&&!i?[...V,l]:!d&&i?V.filter(n=>n!==l):V;t.className=e.join(" ")}var Cm={mainSelector:".TransitionIn--fade",fadeInClass:"TransitionIn--fadeIn"};function Ki(t=Cm){p(t.mainSelector).forEach(d=>{Xm(d,{fadeInClass:t.fadeInClass})})}function Xm(t,l){let d=V=>{let i=V.rootBounds?V.rootBounds.top:0;V.boundingClientRect.top<i&&!V.isIntersecting||hm(t,l.fadeInClass,Gt(V))};return t.classList.add(l.fadeInClass),at(t,d,{triggerPoint:"mostly visible"}),()=>jt(t)}function hm(t,l,d){Ic(t,l,d)}function _i(){Ki()}var qi=t=>`${t}px`;function Fc(t){let{width:l,height:d,top:V}=t.getBoundingClientRect();Object.assign(t.style,{position:"fixed",top:qi(V),width:qi(l),height:qi(d),overflowY:"scroll"})}function gc(t){let l=parseInt(t.style.top,10);Object.assign(t.style,{position:"",top:"",width:"",height:"",overflowY:""}),window.scrollTo(0,-l)}function Bc(){return T.getWidth()<900?"portrait":"landscape"}var $i=[],xl;function pc(){return xl||(xl=Bc()),xl}function oc(t){$i.length===0&&um(),$i.push(t)}function mc(){let t=Bc();t!==xl&&(xl=t,$i.forEach(l=>l(t)))}function um(){window.addEventListener("resize",mc,{passive:!0}),window.addEventListener("orientationchange",mc,{passive:!0})}var Pt="AutoplayReplayButton",sm={unmuteAndReplay:"Unmute & Replay Video",replay:"Replay Video"},H={nowPlaying:[],nowPaused:[],volumeHasBeenInteractedWith:!1,firstVideoWithVolumeInteraction:null,scrollListenerIsActive:!1,videoClosestToCenterY:null},xc=new IntersectionObserver(Ym,{root:null,rootMargin:"0px",threshold:.1});function le(t){xc.unobserve(t)}function de(t){xc.observe(t)}function Jc(t,l,d){t.dataset.autoplay="true",t.dataset.id=l,t.preload="auto",t.defaultMuted=!0,t.muted=!0,t.classList.remove("video-play");let[V]=St(t,d);t.src=V,t.load()}function Nc(t,l,d){if(t.controls=!0,t.addEventListener("volumechange",Qc),d){let V=document.createElement("button");V.textContent=sm[d],V.classList.add(Pt),l.append(V),l.addEventListener("click",({target:i})=>{i.classList.contains(Pt)&&rm(t)})}}function rm(t){t.currentTime=0,t.muted=!1,t.play()}function Qc({target:t}){if(H.volumeHasBeenInteractedWith)t.dataset.id!==H.firstVideoWithVolumeInteraction&&(H.firstVideoWithVolumeInteraction=null,document.querySelectorAll("video[data-controls=true]").forEach(d=>d.removeEventListener("volumechange",Qc)));else{H.volumeHasBeenInteractedWith=!0,H.firstVideoWithVolumeInteraction=t.dataset.id,document.querySelectorAll(`.${Pt}`).forEach(d=>d.remove());let l=document.querySelectorAll("video[data-controls=true]");Tm(l)}Ve()}function Ym(t){for(let l of t){let{target:d,isIntersecting:V}=l,i=d.querySelector("video"),e=i.dataset.id,n=i.closest("[data-videoplayer]");V?i.play().then(()=>ct("video-playing",n)).catch(R=>{let b=n.querySelector(`.${Pt}`);b&&b.remove(),console.error("Playback of video failed: ",R)}):(H.nowPlaying.includes(e)&&(H.nowPlaying=H.nowPlaying.filter(R=>R!==e)),i.pause())}}function Cc(t,l,d){let V=t.dataset.id;d&&(H.nowPlaying.push(V),Ve(),H.nowPaused.includes(V)&&(de(l),H.nowPaused=H.nowPaused.filter(i=>i!==V)))}function Xc(t,l){let d=t.dataset.id;H.nowPlaying.includes(d)&&(le(l),H.nowPaused.push(d),H.nowPlaying=H.nowPlaying.filter(V=>V!==d)),Ve()}function Ve(){if(H.volumeHasBeenInteractedWith)if(H.nowPlaying.length>1){if(!H.scrollListenerIsActive)if(document.addEventListener("scroll",te),H.scrollListenerIsActive=!0,H.firstVideoWithVolumeInteraction){let t=document.querySelector(`[data-id="${H.firstVideoWithVolumeInteraction}"]`);hc(t)}else te()}else document.removeEventListener("scroll",te),H.scrollListenerIsActive=!1,H.videoClosestToCenterY=null}function hc(t){uc(t);for(let l of H.nowPlaying)if(l!==t.dataset.id){let d=document.querySelector(`[data-id="${l}"]`);d.muted=!0}}function Tm(t){t.forEach(l=>uc(l))}function uc(t){t.muted=!1}function te(){let t=null,l=null;for(let d=0;d<H.nowPlaying.length;d++){let V=document.querySelector(`[data-id="${H.nowPlaying[d]}"]`),i=Sm(V);(t===null||i<=l)&&(t=H.nowPlaying[d],l=i)}if(H.videoClosestToCenterY!==t){H.videoClosestToCenterY=t;let d=document.querySelector(`[data-id="${H.videoClosestToCenterY}"]`);hc(d)}}function Sm(t){let l=Mm(),d=km(t);return Math.abs(l-d)}function km(t){let{top:l,bottom:d}=t.getBoundingClientRect();return(l+d)/2}function Mm(){return window.innerHeight/2}var Hm="[data-videoplayer-youtube]",Em='[data-projection="360"]',Am="__YOUTUBE_API_SCRIPT__",Jd={whenApiReady:!1,players:[]};function ym(t){p('script[src="//www.youtube.com/player_api"]').length>0||(Jd.whenApiReady||(Jd.whenApiReady=new Promise((l,d)=>{window.onYouTubeIframeAPIReady=()=>l();let V=document.createElement("script");V.src="//www.youtube.com/player_api",V.id=Am,V.async=!0;let i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(V,i)})),Jd.whenApiReady.then(t))}function zm(t){return{[YT.PlayerState.PLAYING]:"play",[YT.PlayerState.PAUSED]:"pause",[YT.PlayerState.ENDED]:"end"}[t.data]}function Lm(t){let l=t.getAttribute("data-video-id");return new YT.Player(t,{videoId:l,playerVars:{rel:0},events:{onStateChange(V){if(V.data===YT.PlayerState.PLAYING){let e=V.target,n=e.pauseVideo.bind(e);ft(n,e.getIframe())()}let i=zm(V);i&&wm(i,V.target)}}})}function wm(t,l){let d=l.getVideoData(),V=`${d.title} (${d.video_id})`;Ft("Videos",t,V)}function Om(t){t.forEach(l=>{let d=l.getAttribute("data-video-id"),V=l.parentElement,i=document.createElement("div"),e=document.createElement("a");l.removeAttribute("data-videoplayer-youtube"),V.style.backgroundImage="url('https://img.youtube.com/vi/"+d+"/maxresdefault.jpg')",V.style.backgroundSize="cover",e.setAttribute("href","http://www.youtube.com/watch?v="+d),e.setAttribute("target","_blank"),e.className="Theme-360Video-Link",V.parentNode.insertBefore(e,V),e.appendChild(V),e.appendChild(i),i.innerText="Tap to view 360 video",i.className="Theme-360Video-Button"})}function ie(t=Hm,l=Em){let d=p(l);D().isiOS&&Om(d);let V=p(t);V.length!==0&&ym(()=>{Jd.players=V.map(Lm)})}var{isSafari:jm}=D(),Dm=`<svg xmlns="http://www.w3.org/2000/svg">
  <symbol id="video-play-icon" viewBox="0 0 18 18"><path d="M15.562 8.1L3.87.225C3.052-.337 2 .225 2 1.125v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"/></symbol>
  <symbol id="video-error-icon" viewBox="0 0 24 24"><path d="M21.171,15.398l-5.912-9.854C14.483,4.251,13.296,3.511,12,3.511s-2.483,0.74-3.259,2.031l-5.912,9.856  c-0.786,1.309-0.872,2.705-0.235,3.83C3.23,20.354,4.472,21,6,21h12c1.528,0,2.77-0.646,3.406-1.771  C22.043,18.104,21.957,16.708,21.171,15.398z M12,17.549c-0.854,0-1.55-0.695-1.55-1.549c0-0.855,0.695-1.551,1.55-1.551  s1.55,0.696,1.55,1.551C13.55,16.854,12.854,17.549,12,17.549z M13.633,10.125c-0.011,0.031-1.401,3.468-1.401,3.468  c-0.038,0.094-0.13,0.156-0.231,0.156s-0.193-0.062-0.231-0.156l-1.391-3.438C10.289,9.922,10.25,9.712,10.25,9.5  c0-0.965,0.785-1.75,1.75-1.75s1.75,0.785,1.75,1.75C13.75,9.712,13.711,9.922,13.633,10.125z"/></symbol>
 </svg>`;function vm(t,l,d){let V=!0,i=!1,e=null,n=null,R=null,b=d,{dataset:{autoplay:a,controls:G,replayButton:c,id:W},loop:I}=l,B=a==="true",U=G==="true",Z=B?U:l.controls;B&&(Jc(l,W,d),U?Nc(l,t,c):(l.controls=!1,t.style.pointerEvents="none"),I||l.addEventListener("ended",()=>le(t)),de(t)),J(d),l.controls=!1;function m(){V&&(V=!1,ct("video-stopped",t),t.removeAttribute("data-lazyload-video"))}function J(N){let C=l.getAttribute(`data-${N}-poster`);if(C&&C!==l.poster){let r=function(){R===k&&(l.poster=C,m())},k=document.createElement("img");k.addEventListener("load",r),k.addEventListener("error",r),k.src=C,R=k}else m()}function X(N){if(b=N,l.src){let[C]=St(l,N);C&&C!==l.src&&(i&&(l.pause(),i=!1),Y(),V||ct("video-stopped",t),l.src=C)}J(N)}function u(){e===null&&(e=document.createElement("div"),e.className="Lazyload__spinner Theme-Lazyload-Spinner",t.appendChild(e))}function x(){return e!==null?(e.remove(),e=null,!0):!1}function F(){if(n===null){n=document.createElement("div"),n.className="video-error-container",n.innerHTML='<div class="video-error-block"><svg><use xlink:href="#video-error-icon"/></svg><span>THERE WAS AN ERROR LOADING THIS VIDEO</span></div>',t.appendChild(n);let N=t.querySelector(`.${Pt}`);N&&N.remove()}}function Y(){return n!==null?(n.remove(),n=null,!0):!1}function h(){if(l.readyState===0){if(e===null){u(),ct("video-loading",t);let[N,C]=St(l,b);if(jm){let k=function(){l.removeEventListener("canplay",k),C!=="video/mp4"?setTimeout(()=>{l.play()},1e3):l.play()};l.addEventListener("canplay",k),l.src=N,l.load()}else l.autoplay=!0,l.src=N}}else l.play().catch()}function S(N){i||(N.preventDefault(),h(),t.removeEventListener("click",S))}l.addEventListener("play",()=>{B&&Cc(l,t,U)}),l.addEventListener("error",()=>{x()&&(F(),ct("video-error",t))}),l.addEventListener("pause",()=>{ct("video-paused",t),i=!1,Xc(l,t),Ft("Videos","pause",l.currentSrc)}),l.addEventListener("playing",()=>{Y(),x(),ct("video-playing",t),B||ft(l.pause.bind(l),l)(),i=!0,l.controls=Z,Ft("Videos","play",l.currentSrc)}),l.addEventListener("ended",()=>{ct("video-paused",t),i=!1,Ft("Videos","ended",l.currentSrc)}),t.addEventListener("click",S);let Q=document.documentElement,o=t.closest("[class*='Layer--']");l.addEventListener("fullscreenchange",()=>{document.fullscreenElement===null?(gc(Q),o.classList.remove("Levels--god")):(Fc(Q),o.classList.add("Levels--god"))}),oc(X)}function ee(t={}){if(t.body&&!t.iconUrl){let i=new DOMParser().parseFromString(Dm,"image/svg+xml"),e=document.createElement("div");e.style.display="none",e.id="__PLYR_SVGICON_CONTAINER__",e.appendChild(i.childNodes[0]),t.body.appendChild(e)}let l=p("[data-videoplayer]"),d=pc();l.forEach(V=>{let i=V.querySelector("[data-videoplayer-media]");i&&vm(V,i,d)}),ie()}Ui();yV();td();Qi();DV();Ul();Oi();ed();Fi();Pi();mi();_i();xi();ri();Ji();zi();od();ee({body:document.body});ni();yi();SV();fi();Wi();qV();Ai();Li();Ci();Bi();OV();Xi();ji();})();
/*! Bundled license information:

classnames/dedupe.js:
  (*!
  	Copyright (c) 2018 Jed Watson.
  	Licensed under the MIT License (MIT), see
  	http://jedwatson.github.io/classnames
  *)
*/
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7272b7c5-0b5f-5e8b-bd90-1e94a74b3998")}catch(e){}}();
//# sourceMappingURL=story.350340.min.js.map
//# debugId=7272b7c5-0b5f-5e8b-bd90-1e94a74b3998
