diff --git a/build/slide-show-ol.js b/build/slide-show-ol.js index 6d38772..58a42c5 100644 --- a/build/slide-show-ol.js +++ b/build/slide-show-ol.js @@ -1,7 +1,7 @@ /* slide-show 1.2.3 By Stephen Band - Built 2023-09-19 16:13 */ + Built 2023-09-19 16:27 */ var Qe=Object.defineProperty;var W=(t,e)=>{for(var o in e)Qe(t,o,{get:e[o],enumerable:!0})};function j(t){var e=new Map;return function(r){if(e.has(r))return e.get(r);var i=t(r);return e.set(r,i),i}}var Je=Array.prototype;function Ze(t,e){return typeof t=="function"?t.apply(null,e):t}function Nt(t,e,o){o=o||t.length;var r=o===1?e?t:j(t):j(function(i){return Nt(function(){var s=[i];return s.push.apply(s,arguments),t.apply(null,s)},e,o-1)});return function i(s){return arguments.length===0?i:arguments.length===1?r(s):arguments.length>=o?t.apply(null,arguments):Ze(r(s),Je.slice.call(arguments,1))}}var S=Nt;function tn(t,e){return 1-Math.pow(1-e,t)}var Xt=S(tn);function L(){}function yt(t,e){return e(t)}function T(t){return t}var en=Array.prototype;function bt(){let t=arguments;return t.length?e=>en.reduce.call(t,yt,e):T}function xt(t,e,o){return o*(e-t)+t}var nn=window.performance,Yt=window.requestAnimationFrame,on=window.cancelAnimationFrame;function Et(t,e,o){var r=nn.now();function i(c){var f=(c-r)/(t*1e3);f<1?(f>0&&e(f),s=Yt(i)):(e(1),o&&o())}var s=Yt(i);return function(){on(s)}}function Z(t,e,o,r,i,s){let c=r[o];return Et(t,bt(e,f=>xt(c,i,f),f=>r[o]=f),s)}function rn(){return{x:0,y:0,left:0,top:0,right:window.innerWidth,bottom:window.innerHeight,width:window.innerWidth,height:window.innerHeight}}function k(t){return t===window?rn():t.getClientRects()[0]||t.getBoundingClientRect()}var z={scrollDuration:.3,scrollDurationPerHeight:.125,scrollTransform:Xt(3)},Kt=L;function sn(t,e){if(e.behavior==="smooth"){let o=t.style.getPropertyValue("scroll-snap-type"),r=()=>{let i=t.scrollLeft,s=t.scrollTop;t.style.setProperty("scroll-snap-type",o),t.scrollLeft=i,t.scrollTop=s};if(t.style.setProperty("scroll-snap-type","none"),e.left!==void 0){let i=t===document.body?window.innerWidth:k(t).width,s=z.scrollDuration+z.scrollDurationPerHeight*Math.abs(e.left-t.scrollLeft)/i;Kt=Z(s,z.scrollTransform,"scrollLeft",t,e.left,r)}else{let i=t===document.body?window.innerHeight:k(t).height,s=z.scrollDuration+z.scrollDurationPerHeight*Math.abs(e.top-t.scrollTop)/i;Kt=Z(s,z.scrollTransform,"scrollTop",t,e.top,r)}}else e.left!==void 0&&(t.scrollLeft=e.left),e.top!==void 0&&(t.scrollTop=e.top)}if(!("scrollBehavior"in document.documentElement.style)){window.console&&console.log("Polyfilling Element.scrollTo(options)");let t="scrollTo"in Element.prototype?Element:HTMLElement,e=t.scrollIntoView;t.prototype.scrollTo=function(o){typeof o=="object"?sn(this,o):e.apply(this,arguments)}}function St(t,e,o){let r;typeof o!="string"&&o.input!==void 0&&o.index!==void 0&&(r=o,o=r.input.slice(o.index+o[0].length+(o.consumed||0)));let i=t.exec(o);if(!i)return;let s=e(i);return r&&(r.consumed=(r.consumed||0)+i.index+i[0].length+(i.consumed||0)),s}var or=S(St,!0);function cn(t,e,o){throw o.input!==void 0&&o.index!==void 0&&(o=o.input),new Error('Cannot parse string "'+(o.length>128?o.length.slice(0,128)+"…":o)+'"')}function an(t,e,o){let r=-1;for(;++ran(e,o,s),r);return i===void 0?e.catch?e.catch(o,r):cn(t,e,r):i}var _t=S(un,!0);function y(t,e){return function(){let r=t.apply(this,arguments),i=e[r]||e.default;if(!i)throw new Error('overload() no function defined for key "'+r+'"');return i.apply(this,arguments)}}var ln=y(T,{is:L,tag:L,data:function(t,e,o){Object.assign(e.dataset,o)},html:function(t,e,o){e.innerHTML=o},text:function(t,e,o){e.textContent=o},children:function(t,e,o){e.innerHTML="",e.append.apply(e,o)},points:A,cx:A,cy:A,r:A,transform:A,preserveAspectRatio:A,viewBox:A,default:function(t,e,o){t in e?e[t]=o:e.setAttribute(t,o)}});function A(t,e,o){e.setAttribute(t,o)}function pn(t,e){for(var o=Object.keys(e),r=o.length;r--;)ln(o[r],t,e[o[r]]);return t}var tt=S(pn,!0);var Lt="http://www.w3.org/2000/svg",Qt=document.createElement("template"),Tt=(t,e)=>e&&typeof e;function Jt(t,e){let o=document.createRange();return o.selectNode(t),o.createContextualFragment(e)}var F=y(Tt,{string:function(t,e){let o=document.createElementNS(Lt,t);return o.innerHTML=e,o},object:function(t,e){let o=document.createElementNS(Lt,t);return typeof e.length=="number"?o.append.apply(o,e):tt(o,e),o},default:t=>document.createElementNS(Lt,t)}),fn=y(Tt,{string:function(t,e){let o=document.createElement(t);return o.innerHTML=e,o},object:function(t,e){let o=document.createElement(t);return typeof e.length=="number"?o.append.apply(o,e):tt(o,e),o},default:t=>document.createElement(t)}),dn=y(T,{comment:function(t,e){return document.createComment(e||"")},fragment:y(Tt,{string:function(t,e,o){return o?Jt(o,e):(Qt.innerHTML=e,Qt.content.cloneNode(!0))},object:function(t,e,o){let r=o?Jt(o):document.createDocumentFragment();return typeof e.length=="number"?r.append.apply(r,e):tt(r,e),r},default:()=>document.createDocumentFragment()}),text:function(t,e){return document.createTextNode(e||"")},circle:F,ellipse:F,g:F,glyph:F,image:F,line:F,rect:F,use:F,path:F,pattern:F,polygon:F,polyline:F,svg:F,default:fn}),w=dn;var Zt={once:!0};function V(t){return new Promise((e,o)=>{t.addEventListener("load",e,Zt),t.addEventListener("error",o,Zt)})}var te=j(t=>{if(!t||t.includes("undefined"))throw new Error("ERRR?");let e=w("link",{rel:"preload",as:"style",href:t}),o=V(e);return document.head.append(e),o});var I=Symbol("internals"),ee=Object.defineProperties,mn={},hn={a:HTMLAnchorElement,article:HTMLElement,dl:HTMLDListElement,p:HTMLParagraphElement,br:HTMLBRElement,fieldset:HTMLFieldSetElement,hr:HTMLHRElement,img:HTMLImageElement,li:HTMLLIElement,ol:HTMLOListElement,optgroup:HTMLOptGroupElement,q:HTMLQuoteElement,section:HTMLElement,textarea:HTMLTextAreaElement,td:HTMLTableCellElement,th:HTMLTableCellElement,tr:HTMLTableRowElement,tbody:HTMLTableSectionElement,thead:HTMLTableSectionElement,tfoot:HTMLTableSectionElement,ul:HTMLUListElement},gn={name:{set:function(t){return this.setAttribute("name",t)},get:function(){return this.getAttribute("name")||""}},form:{get:function(){return this[I].form}},labels:{get:function(){return this[I].labels}},validity:{get:function(){return this[I].validity}},validationMessage:{get:function(){return this[I].validationMessage}},willValidate:{get:function(){return this[I].willValidate}},checkValidity:{value:function(){return this[I].checkValidity()}},reportValidity:{value:function(){return this[I].reportValidity()}}},ne=0,oe=!1;function vn(t){return hn[t]||window["HTML"+t[0].toUpperCase()+t.slice(1)+"Element"]||(()=>{throw new Error('Constructor not found for tag "'+t+'"')})()}var wn=_t(/^\s*?\s*$|^\s*?\s*$/,{1:(t,e)=>({name:e[1]}),2:(t,e)=>({name:e[3],tag:e[2]}),catch:function(t,e){throw new SyntaxError(`dom element() – name must be of the form 'element-name' or 'tag is="element-name"' (`+e+")")}},null);function yn(t,e){if(t.hasOwnProperty(e)){let o=t[e];delete t[e],t[e]=o}return t}function re(t,e,o){let r=t.attachShadow({mode:e.mode||"closed",delegatesFocus:e.focusable||!1});if(o){let i=w("link",{rel:"stylesheet",href:o});r.append(i)}return r}function bn(t){var e;if(t.attachInternals){if(e=t.attachInternals(),e.setFormValue)return e}else e={shadowRoot:elem.shadowRoot};return e.polyfillInput=w("input",{type:"hidden",name:elem.name}),elem.appendChild(e.polyfillInput),e.setFormValue=function(o){this.input.value=o},e}function xn(t){return!!t.attribute}function En(t){return t.set||t.get||t.hasOwnProperty("value")}function Sn(t,e){return xn(e[1])&&(t.attributes[e[0]]=e[1].attribute),En(e[1])&&(t.properties[e[0]]=e[1]),t}function $(t){return t[I]=t[I]||{}}function kt(t,e,o,r,i=""){let{name:s,tag:c}=wn(t),f=typeof c=="string"?vn(c):HTMLElement,{attributes:d,properties:m}=o?Object.entries(o).reduce(Sn,{attributes:{},properties:{}}):mn;function v(){let p=Reflect.construct(f,arguments,v),h=e.construct&&e.construct.length>ne?re(p,e,r||e.stylesheet):void 0,l=v.formAssociated?bn(p):{shadowRoot:h};if(l.unconnected=!0,p[I]=l,c&&(oe=!0),e.construct&&e.construct.call(p,h,l),m&&Object.keys(m).reduce(yn,p),h){let u=h.querySelectorAll('link[rel="stylesheet"]');if(u.length){let H=w("style","*:not(:has(slot:not([name]))) { display: none !important; }");h.append(H),l.stylesheetsLoadPromise=Promise.all(Array.from(u,V)).finally(()=>H.remove())}}return p}return r&&(te(r),i=i),v.prototype=Object.create(f.prototype,m),m&&m.value&&(v.formAssociated=!0,ee(v.prototype,gn),(e.enable||e.disable)&&(v.prototype.formDisabledCallback=function(p){let h=$(this),l=h.shadowRoot;return p?e.disable&&e.disable.call(this,l,h):e.enable&&e.enable.call(this,l,h)}),e.reset&&(v.prototype.formResetCallback=function(){let p=$(this),h=p.shadowRoot;return e.reset.call(this,h,p)}),e.restore&&(v.prototype.formStateRestoreCallback=function(){let p=$(this),h=p.shadowRoot;return e.restore.call(this,h,p)})),d&&(v.observedAttributes=Object.keys(d),v.prototype.attributeChangedCallback=function(p,h,l){return d[p].call(this,l)}),v.prototype.connectedCallback=function(){let p=$(this),h=p.shadowRoot;p.polyfillInput&&elem.appendChild(p.polyfillInput),p.unconnected&&(e.load&&p.stylesheetsLoadPromise?p.stylesheetsLoadPromise.then(()=>e.load.call(this,h,p)):e.load&&Promise.resolve().then(()=>e.load.call(this,h,p)),delete p.unconnected),e.connect&&e.connect.call(this,h,p)},e.disconnect&&(v.prototype.disconnectedCallback=function(){let p=$(this),h=p.shadowRoot;return e.disconnect.call(this,h,p)}),window.console&&window.console.log("%c<"+(c?c+" is="+s:s)+">%c "+i,"color: #3a8ab0; font-weight: 600;","color: #888888; font-weight: 400;"),window.customElements.define(s,v,c&&{extends:c}),c&&!oe&&document.querySelectorAll('[is="'+s+'"]').forEach(p=>{m&&ee(p,m);let h=e.construct&&e.construct.length>ne?re(p,e,r||e.stylesheet):void 0;e.construct&&e.construct.call(p,h);let l;for(l in d){let u=p.attributes[l];u&&d[l].call(p,u.value)}e.connect&&e.connect.apply(p)}),v}function ie(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!="object"||typeof e!="object")return!1;let o=Object.keys(t),r=Object.keys(e),i=o.length;for(;i--;){if(t[o[i]]===void 0){if(e[o[i]]!==void 0)return!1}else if(!e.hasOwnProperty(o[i])||!ie(t[o[i]],e[o[i]]))return!1;let s=r.indexOf(o[i]);s>-1&&r.splice(s,1)}for(i=r.length;i--;)if(e[r[i]]===void 0){if(t[r[i]]!==void 0)return!1}else return!1;return!0}var se=S(ie,!0);function Ln(t,e){return e[t]}var G=S(Ln,!0);function Ft(t){return function(){return arguments[t]}}function P(){return this}var ce=Object.create,Tn=Object.freeze,M=Tn(ce(ce(Object.prototype,{at:{value:L},shift:{value:L},push:{value:L},forEach:{value:L},join:{value:function(){return""}},every:{value:function(){return!0}},filter:{value:P},find:{value:L},findIndex:{value:function(){return-1}},flat:{value:P},flatMap:{value:P},includes:{value:function(){return!1}},indexOf:{value:function(){return-1}},map:{value:P},reduce:{value:Ft(1)},sort:{value:P},each:{value:P},pipe:{value:T},start:{value:P},stop:{value:P},done:{value:P},valueOf:{value:function(){return null}}}),{length:{value:0}}));function Pt(t){return t&&t[Symbol.iterator]}var et=t=>typeof t;var O=Object.assign,C=Object.create,nt=Symbol("done"),ae=y(et,{function:t=>t(),object:t=>t.stop()});function x(t,e){return e.stop&&(e.input=t),t[0]=e,e}function It(t,e){let o=-1,r;for(;t[++o]&&t[o]!==e;);for(e.input=void 0;t[o++];)t[o-1]=t[o];return e}function b(t){if(t.status==="done"||(t.status="done",t.pipe&&!t[0]))return t;let e=t[nt];for(t[nt]=void 0,e&&e.forEach(ae);t[0];)Array.isArray(t[0])?It(t,t[0]):b(It(t,t[0]));return t}function a(t){this.input=t}O(a.prototype,{push:function(t){return this[0]&&this[0].push(t)},each:function(t){return this.pipe(new ue(this,t))},pipe:function(t){if(this[0])throw new Error("Stream: cannot .pipe() a unicast stream more than once");return x(this,t),this.input.pipe(this),t},broadcast:function(t){return new ot(this,t)},filter:function(t){return new le(this,t)},flatMap:function(t){return new pe(this,t)},map:function(t){return new fe(this,t)},reduce:function(t,e){return this.pipe(new de(t,e)).value},scan:function(t,e){return new me(this,t,e)},slice:function(t,e){return new he(this,t,e)},split:function(t){return new ge(this,t)},start:function(){return this.status==="done"?this:(this.input.start.apply(this.input,arguments),this)},stop:function(){return this.status==="done"?this:this.input[1]?(It(this.input,this),b(this)):(this.input.stop.apply(this.input,arguments),this)},done:function(t){return this.status==="done"?(ae(t),this):((this[nt]||(this[nt]=[])).push(t),this)},[Symbol.asyncIterator]:async function*(){let t=[],e=r=>t.push(r);function o(r,i){e=r}for(this.each(r=>e(r)).done(()=>e=noop);e!==noop;)yield t.length?t.shift():await new Promise(o)}});function ot(t,e){this.input=t,this.memory=!!(e&&e.memory),e&&e.hot&&this.pipe(M)}ot.prototype=O(C(a.prototype),{push:function(t){if(t===void 0)return;this.memory&&(this.value=t);let e=-1;for(;this[++e];)this[e].push(t)},pipe:function(t){let e=-1;for(;this[++e];);return this.memory&&e===0&&this.input.pipe(this),this[e]=t,this.value!==void 0&&t.push(this.value),!this.memory&&e===0&&this.input.pipe(this),t}});function ue(t,e){this.input=t,this.push=e}ue.prototype=O(C(a.prototype),{pipe:null});function le(t,e){this.input=t,this.fn=e}le.prototype=O(C(a.prototype),{push:function(e){let o=this.fn;o(e)&&this[0].push(e)}});function pe(t,e){this.input=t,this.fn=e}pe.prototype=O(C(a.prototype),{push:function(e){let o=this.fn,r=o(e);if(r!==void 0)if(Pt(r))for(let i of r)this[0].push(i);else r.pipe&&(console.warn("FlatMapping pipeables is dodgy. Map to arrays for the moment please."),this.done(r.each(i=>this[0].push(i))))}});function fe(t,e){this.input=t,this.fn=e}fe.prototype=O(C(a.prototype),{push:function(e){let o=this.fn,r=o(e);return r===void 0||!this[0]?!1:this[0].push(r)}});function de(t,e){this.fn=t,this.value=e,this.i=0}de.prototype=O(C(a.prototype),{push:function(t){let e=this.fn;this.value=e(this.value,t,this.i++,this)}});function me(t,e,o){this.input=t,this.fn=e,this.value=o}me.prototype=O(C(a.prototype),{push:function(t){let e=this.fn;this.value=e(this.value,t),this[0].push(this.value)}});function he(t,e,o=1/0){this.input=t,this.index=-e,this.indexEnd=e+o}he.prototype=O(C(a.prototype),{push:function(e){++this.index>0&&this[0].push(e),this.index===this.indexEnd&&this.stop()}});function ge(t,e){this.input=t,this.chunk=[],typeof n=="number"?this.n=e:this.fn=e}ge.prototype=O(C(a.prototype),{fn:function(){return this.chunk.length===this.n},push:function(e){let o=this.chunk;this.fn(e)?(this[0].push(o),this.chunk=[]):o.push(e)}});var kn=Array.prototype,Fn=Object.assign,Pn=Object.create;function N(t){this.buffer=t||[]}N.prototype=Fn(Pn(a.prototype),{pipe:function(t){for(x(this,t);this.buffer.length&&this[0];){let e=kn.shift.apply(this.buffer);e!==void 0&&this[0].push(e)}return this.buffer=t,t},push:function(t){if(t!==void 0)return this.buffer.push(t)},stop:function(){return this.input?a.prototype.stop.apply(this,arguments):(this.buffer=M,b(this))}});var In=Object.assign,On=Object.create;function U(t){this.promise=t}U.prototype=In(On(a.prototype),{push:null,pipe:function(t){let e=this.promise;return x(this,t),e.then(o=>{this.status!=="done"&&this[0].push(o)}),e.finally(()=>b(this)),t}});var Ot=Object.assign,Mn=Object.create;function Cn(t){return!!t.active}function jn(t){return!!t.stopped}function ve(t,e,o,r,i){this.input=t.then?new U(t):t,this.stream=o,this.values=r,this.pipes=i,this.name=e,this.active=!1,this.stopped=!1}Ot(ve.prototype,{push:function(t){let{stream:e,values:o,name:r}=this;if(o[r]=t,this.active=!0,e.active||(e.active=this.pipes.every(Cn)))if(e.mutable)e[0].push(o);else{let i=new this.values.constructor;e[0].push(Ot(i,o))}},stop:function(){this.stopped=!0,this.pipes.every(jn)&&b(this.stream)}});function X(t,e){this.inputs=t,this.mutable=e&&(e===!0||e.mutable),this.active=!1}X.prototype=Ot(Mn(a.prototype),{push:null,pipe:function(t){let e=this.inputs,o=this.pipes=[],r;x(this,t);let i;for(i in e){let s=e[i];typeof s=="object"&&(s.pipe||s.then)&&o.push(new ve(s,i,this,e,o))}for(r of o)r.input.done(r).pipe(r);return t},stop:function(){return this.status==="done"?this:(this.pipes.forEach(t=>{let e=t.input;e[1]?unpipe(e,t):e.stop()}),b(this.stream))}});var Hn=Object.assign,An=Object.create;function rt(t){this.fn=t}rt.prototype=Hn(An(a.prototype),{pipe:function(t){return x(this,t),this.fn(e=>this.push(e),e=>this.stop(e)),t}});var we=Object.assign,Bn=Object.create;function ye(t){this.stream=t}we(ye.prototype,{push:function(t){this.stream[0].push(t)},stop:function(){--this.stream.count===0&&b(this.stream)},done:function(t){console.log("HELLO"),this.stream.done(t)}});function it(t){this.inputs=t}it.prototype=we(Bn(a.prototype),{push:null,pipe:function(t){let e=this.inputs;this.count=e.length,x(this,t);let o=new ye(this),r=-1,i;for(;i=e[++r];)if(i.pipe)i.pipe(o);else if(i.then)i.then(s=>o.push(s)),i.finally(()=>o.stop());else{let s=-1;for(;++s{this.timer=requestAnimationFrame(t),this[0].push(e/1e3)};requestAnimationFrame(t)}else this.timer=setInterval(()=>this[0].push(performance.now()/1e3),this.duration*1e3);return this},stop:function(t){return this.status!=="playing"?this:(this.duration==="frame"?cancelAnimationFrame(this.timer):clearInterval(this.timer),this.timer=void 0,this.status="idle",this)}});var zn=Object.assign,Gn=Object.create;function st(t,e){e=a.isStream(e)?e:new q(this,e),this.input=t,this.frames=e.each(o=>{if(this.value===void 0){e.stop();return}this[0].push(this.value),this.value=void 0})}st.prototype=zn(Gn(a.prototype),{push:function(t){t!==void 0&&(this.frames.status!=="playing"?(this.frames.start(),this[0].push(t)):this.value=t)},stop:function(){return this.frames.stop(),a.prototype.stop.apply(this,arguments),this}});var Un=Array.prototype,xe=Object.assign;function be(t){throw new TypeError("Stream cannot be created .from() "+typeof t)}xe(a,{isStream:function(t){return a.prototype.isPrototypeOf(t)},of:function(){return new N(Un.slice.apply(arguments))},from:function(t){return t?typeof t=="object"?typeof t.pipe=="function"?new a(t):typeof t.then=="function"?new U(t):typeof t.length=="number"?new N(t):new X(t):typeof t=="function"?new rt(t):be(t):be(t)},broadcast:t=>new ot(M,t),combine:(t,e)=>new X(t,e),frames:t=>new q(t),merge:function(){return new it(arguments)}});xe(a.prototype,{throttle:function(t){return new st(this,t)},log:P});var qn=Object.assign,Wn=/\s+/,ct={fullscreenchange:j(()=>"fullscreenElement"in document?"fullscreenchange":"webkitFullscreenElement"in document?"webkitfullscreenchange":"mozFullScreenElement"in document?"mozfullscreenchange":"msFullscreenElement"in document?"MSFullscreenChange":"fullscreenchange")},Ee=0;window.addEventListener("click",t=>Ee=t.timeStamp);function Vn(t,e){return t.node.addEventListener(ct[e]?ct[e]():e,t,t.options),t}function $n(t,e){return t.node.removeEventListener(ct[e]?ct[e]():e,t),t}function Se(t,e,o,r){this.types=t.split(Wn),this.options=e,this.node=o,this.select=e&&e.select,this.initialEvent=r}qn(Se.prototype,{pipe:function(t){x(this,t),this.types.reduce(Vn,this),this.initialEvent&&(this.handleEvent(this.initialEvent),delete this.initialEvent)},handleEvent:function(t){if(!(t.type==="click"&&t.timeStamp<=Ee)){if(this.select){let e=t.target.closest(this.select);if(!e)return;t.selectedTarget=e}this[0].push(t)}},stop:function(){this.types.reduce($n,this),b(this[0])}});function E(t,e,o){let r;return typeof t=="object"&&(r=t,t=r.type),new a(new Se(t,r,e,o))}var Nn=/^\s*([+-]?\d*\.?\d+)([^\s\d]*)\s*$/;function Y(t){return function(o){if(typeof o=="number")return o;var r=Nn.exec(o);if(!r||!t[r[2]||""]){if(!t.catch)throw new Error('Cannot parse value "'+o+'" (accepted units '+Object.keys(t).join(", ")+")");return r?t.catch(parseFloat(r[1]),r[2]):t.catch(parseFloat(o))}return t[r[2]||""](parseFloat(r[1]))}}var Xn=/px$/,Le={"transform:translateX":function(t){var e=K("transform",t);if(!e||e==="none")return 0;var o=at(e);return parseFloat(o[4])},"transform:translateY":function(t){var e=K("transform",t);if(!e||e==="none")return 0;var o=at(e);return parseFloat(o[5])},"transform:scale":function(t){var e=K("transform",t);if(!e||e==="none")return 0;var o=at(e),r=parseFloat(o[0]),i=parseFloat(o[1]);return Math.sqrt(r*r+i*i)},"transform:rotate":function(t){var e=K("transform",t);if(!e||e==="none")return 0;var o=at(e),r=parseFloat(o[0]),i=parseFloat(o[1]);return Math.atan2(i,r)}};function at(t){return t.split("(")[1].split(")")[0].split(/\s*,\s*/)}function K(t,e){return window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):0}function ut(t,e){if(Le[t])return Le[t](e);var o=K(t,e);return typeof o=="string"&&Xn.test(o)?parseFloat(o):o}var lt,pt;function Yn(){if(!lt){let t=document.documentElement.style.fontSize;document.documentElement.style.fontSize="100%",lt=ut("font-size",document.documentElement),document.documentElement.style.fontSize=t||""}return lt}function Kn(){return pt||(pt=ut("font-size",document.documentElement)),pt}window.addEventListener("resize",()=>{lt=void 0,pt=void 0});var B=y(et,{number:T,string:Y({px:T,em:t=>Yn()*t,rem:t=>Kn()*t,vw:t=>window.innerWidth*t/100,vh:t=>window.innerHeight*t/100,vmin:t=>window.innerWidthwindow.innerWidth60||(t.stopPropagation(),t.preventDefault())}function Jn(t,e,o){return e*e+o*o>=t*t}function Fe(t,e,o){if(this.stream=t,this.target=e.gestureTarget,this.events=[e],this.options=o,this.pointerId=e.pointerId,typeof o.threshold=="function")this.checkThreshold=o.threshold;else{let r=Te(o.threshold);this.checkThreshold=(i,s,c)=>Jn(r,i,s,c)}document.addEventListener("pointermove",this),document.addEventListener("pointerup",this),document.addEventListener("pointercancel",this)}Ct(Fe.prototype,{handleEvent:y(G("type"),{pointermove:function(t){if(this.pointerId===t.pointerId){if(this.pointerId in ft&&this!==ft[this.pointerId]){this.stop();return}if(this.events.push(t),!this.isGesture){let e=this.events[0],o=t.clientX-e.clientX,r=t.clientY-e.clientY,i=(t.timeStamp-e.timeStamp)/1e3;this.checkThreshold(o,r,i)&&this.createGesture()}}},pointerup:function(t){this.pointerId===t.pointerId&&(this.events.push(t),this.target.releasePointerCapture(this.pointerId),this.stop(),this.isGesture&&(ke=t.timeStamp,document.addEventListener("click",Qn,{capture:!0,once:!0})))},default:function(t){this.pointerId===t.pointerId&&(this.events.push(t),this.target.releasePointerCapture(this.pointerId),this.stop())}}),createGesture:function(){this.isGesture=!0,this.userSelectState=document.body.style[Mt],document.body.style[Mt]="none",ft[this.pointerId]=this,this.target.setPointerCapture(this.pointerId),this.stream.push(new a(this))},pipe:function(t){for(x(this,t);this.events.length;)this[0].push(_n.shift.apply(this.events));this.events=t},stop:function(){if(document.removeEventListener("pointermove",this),document.removeEventListener("pointerup",this),document.removeEventListener("pointercancel",this),this.isGesture&&(document.body.style[Mt]=this.userSelectState,delete ft[this.pointerId]),this[0]){let t=this[0];b(t)}}});function Zn(t){var e=t.target.tagName;return e&&(!!dt.ignoreTags[e.toLowerCase()]||t.target.draggable)}function Pe(t,e){this.node=t,this.options=e}Ct(Pe.prototype,{pipe:function(t){return this[0]=t,this.node.addEventListener("pointerdown",this),t},handleEvent:function(t){if(t.button!==0||this.options.device&&!this.options.device.includes(t.pointerType)||Zn(t))return;let e=t.target;if(!(this.options.select&&(e=t.target.closest(this.options.select),!delegateTarget))){var o={type:t.type,target:t.target,currentTarget:t.currentTarget,gestureTarget:e,clientX:t.clientX,clientY:t.clientY,timeStamp:t.timeStamp,pointerId:t.pointerId};new Fe(this[0],o,this.options)}},stop:function(){return this[0]&&(this.node.removeEventListener("pointerdown",this),b(this[0])),this}});function jt(t,e){return t=e&&t?Ct({},dt,t):dt,e=e||t,new a(new Pe(e,t))}function Ht(t){return t.which===1&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}var to=Object.assign,_={bubbles:!0,cancelable:!0};function At(t,e){let o=_,r,i,s,c,f,d;return typeof t=="object"?({type:t,detail:i,bubbles:s,cancelable:c,composed:f,...r}=t,d=to(new CustomEvent(t,{detail:i,bubbles:s||_.bubbles,cancelable:c||_.cancelable,composed:f||_.composed}),r)):d=new CustomEvent(t,_),e.dispatchEvent(d)}var Wi=S(At,!0);var g=Symbol("data"),Q={minScrollInterval:.0375,maxScrollInterval:.18},Ie=Q.maxScrollInterval;function Oe(t){let e=t.length,o=0;for(;--e;){let r=t[e]-t[e-1];o=r>o?r:o}o=oQ.maxScrollInterval?Q.maxScrollInterval:1.4*o}function mt(){return Ie}var Bt="MozAppearance"in document.documentElement.style;var Me=!1;Bt&&document.addEventListener("DOMContentLoaded",t=>Me=!0);function Ce(t){let e=k(t),o=window.getComputedStyle(t,null),r,i;try{r=B(o.getPropertyValue("padding-left")),i=B(o.getPropertyValue("padding-right"))}catch(s){console.warn(s.message),r=0,i=0}return e.leftPadding=e.left+r,e.rightPadding=e.left+e.width-i,e.centrePadding=e.leftPadding+(e.width-r-i)/2,e}function je(t){let e=window.getComputedStyle(t,null).getPropertyValue("scroll-snap-align");return e.endsWith("start")?"left":e.endsWith("end")?"right":"centre"}function He(t,e,o){let r=Ce(t),i=k(e),s=je(e),c={top:t.scrollTop,left:t.scrollLeft+(s==="left"?i.left-r.leftPadding:s==="right"?i.right-r.rightPadding:i.left+i.width/2-r.centrePadding),behavior:o};t.scrollTo(c),Bt&&!Me&&document.addEventListener("DOMContentLoaded",()=>t.scrollTo(c))}function Ae(t,e){return He(t,e,"smooth"),e}function D(t,e){return t.style.setProperty("scroll-behavior","auto","important"),He(t,e,"auto"),t.style.setProperty("scroll-behavior",""),e}function Be(t,e){let{leftPadding:o,rightPadding:r,centrePadding:i}=Ce(t),s=e.length,c;for(;c=e[--s];){let f=k(c);if(!f)continue;let d=je(c),m=f.width/2+(d==="left"?o:d==="right"?r:i);if((d==="left"?f.left:d==="right"?f.right:f.left+f.width/2)<=m)break}return c}function De(t){return!!t.dataset.slideIndex}function Re(t){let{scroller:e,elements:o,children:r}=t,i=Be(e,o);return De(i)?r[i.dataset.slideIndex]:i}function ze(t){let{scroller:e,children:o,elements:r}=t,i=Be(e,r),s;i&&(De(i)?(s=o[i.dataset.slideIndex],D(e,s)):s=i,t.activations.push(s))}function ht(t,e,o){let r=e[o];r&&(t.active=r)}function Ge(t,e,o){let r=e.indexOf(o)+1;ht(t,e,r)}function Ue(t,e,o){let r=e.indexOf(o)-1;ht(t,e,r)}function eo(t,e){t.style.setProperty("scroll-snap-type",""),e.stop()}var qe=y((t,e)=>e.type,{pointerdown:function(t,e){return t.e0=e,t.x0=e.clientX,t.y0=e.clientY,t},pointermove:function(t,e){let o=e.clientX,r=e.clientY;if(!t.gesturing){if(Math.abs(o-t.x0)(clearTimeout(c),setTimeout(eo,mt()*1e3,o,m)))}return t.gesturing=!1,t.e0=void 0,t.x0=void 0,t.y0=void 0,t.pointers=void 0,t.scrollLeft0=void 0,t}});var no=Object.assign,oo={capture:!0,passive:!0};function ro(t,e){t.timer=void 0,t.stream.push(e);let o=t.times;o.length>1&&Oe(o),o.length=0}function We(t){this.element=t,this.times=[]}no(We.prototype,{pipe:function(t){this.stream=t,this.element.addEventListener("scroll",this,oo)},handleEvent:function(t){let e=t.timeStamp/1e3;this.times.push(e),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(ro,mt()*1e3,this,t)},stop:function(){this.element.removeEventListener("scroll",this),b(this.stream)}});function Dt(t){return new a(new We(t))}function io(t,e,o){let r=o.length,i=-1/0;for(;r--;){let m=k(o[r]),v=m.x+m.width;i=v>i?v:i}let s=k(e),c=getComputedStyle(t),f=B(c.paddingLeft||0),d=B(c.paddingRight||0);return f+d+i-s.x}function so(t,e,o){let r=io(t,e,o);t.style.setProperty("--scroll-width",r+"px")}function co(t){return!t.dataset.slideIndex}var Ve={mode:"open",construct:function(t){let e=w("slot",{part:"slides"}),o=w("div",{class:"scroller",children:[e]}),r=w("nav",{part:"controls",children:[w("slot",{name:"controls"})]});t.append(o,r);let i=a.broadcast(),s=a.broadcast(),c=a.combine({host:s,elements:E("slotchange",e).map(u=>l.elements=e.assignedElements())}).broadcast({memory:!0}),f=c.map(u=>{let H=u.elements.filter(co);return se(l.children,H)?void 0:l.children=H}).broadcast({memory:!0,hot:!0}),d=a.of(),m=a.of(),v=m.map(u=>u.dataset.slideIndex?l.children[u.dataset.slideIndex]:u).filter(u=>l.active!==u&&At("slide-active",u)).map(u=>l.active=u).broadcast({memory:!0,hot:!0}),p=E("click",t).filter(Ht).broadcast(),h=Dt(o).filter(u=>l.connected&&!l.gesturing).broadcast(),l=this[g]={clickSuppressTime:-1/0,connected:!1,host:this,style:window.getComputedStyle(this),elements:M,children:M,device:void 0,shadow:t,scroller:o,slides:e,controls:r,connects:i,load:s,views:d,activations:m,actives:v,slotchanges:c,mutations:f,clicks:p,scrolls:h};a.merge(c,E("resize",window)).filter(u=>e.offsetWidth&&e.offsetHeight).each(u=>so(o,e,l.elements)),a.combine({slotchanges:c,connects:i}).map(u=>l.elements.includes(l.active)?l.active:l.children[0]).map(u=>l.connected?D(o,u):u).pipe(m),a.combine({host:s,child:d}).map(u=>l.elements.includes(u.child)&&l.active!==u.child?u.child:void 0).map(u=>l.connected?l.active?Ae(o,u):D(o,u):u).pipe(m),h.each(u=>ze(l)),jt({threshold:"0.25rem",device:"mouse"},t).filter(()=>l.children.length>1).each(u=>{l.pointers=u,u.reduce(qe,l)}),p.each(u=>{u.timeStamp-l.clickSuppressTime<120&&(u.preventDefault(),u.stopPropagation())}),E("fullscreenchange",window).filter(u=>l.active&&e.offsetWidth&&e.offsetHeight).each(u=>{(u.target===this||u.target.contains(this))&&D(o,l.active)}),a.merge(E("pointerdown",this),E("keydown",this)).each(u=>l.device=u.type==="keydown"?"keyboard":u.pointerType),E("focusin",this).filter(u=>l.device==="keyboard").map(u=>l.children.indexOf(u.target)!==-1?u.target:l.children.find(H=>H.contains(u.target))).pipe(d),E("keydown",this).filter(()=>document.activeElement===this||this.contains(document.activeElement)).map(y(G("keyCode"),{37:u=>(u.preventDefault(),l.elements[l.elements.indexOf(l.active)-1]),39:u=>(u.preventDefault(),l.elements[l.elements.indexOf(l.active)+1]),default:L})).pipe(d)},load:function(t){this[g].load.push(this)},connect:function(t){let e=this[g];e.connected=!0,e.connects.push(!0)},disconnect:function(t){let e=this[g];e.connected=!1}};function gt(t){function e(o,r){if(t.getState(o)!==r)return t[r?"enable":"disable"](o)}return{attribute:function(o){return e(this,o!==null)},set:function(o){return e(this,!!o)},get:function(){return t.getState(this)},enumerable:!0}}function Rt(t,e){t.remove&&t.remove(e);let o;for(;(o=t.indexOf(e))!==-1;)t.splice(o,1);return t}var Ts=S(Rt,!0);var ao=Object.assign;function J(t,e){this.element=t,this.definitions=e,this.tokens=[]}ao(J.prototype,{contains:function(t){return this.tokens.includes(t)},add:function(){let t=arguments.length;for(;t--;){let e=arguments[t];this.tokens.includes(e)||(this.tokens.push(e),this.supports(e)&&this.definitions[e].enable(this.element))}},remove:function(){let t=arguments.length;for(;t--;){let e=arguments[t];this.tokens.includes(e)&&(Rt(this.tokens,e),this.supports(e)&&this.definitions[e].disable(this.element))}},supports:function(t){return!!this.definitions&&!!this.definitions[t]}});var uo=Array.prototype;function zt(t,e){let o=t.tokens.slice(),r=uo.slice.apply(e),i=o.length;for(;i--;)r.includes(o[i])&&o.splice(i,1);t.remove.apply(t,o),t.add.apply(t,r)}function Gt(t){let e=Symbol("TokenList");function o(r,i){let s=r[e]||(r[e]=new J(r,t));zt(s,i.trim().split(/\s+/))}return{attribute:function(r){o(this,r||"")},set:function(r){o(this,r+"")},get:function(){return this[e]||(this[e]=new J(this,t))},enumerable:!0}}var Ut={};W(Ut,{disable:()=>ho,enable:()=>mo,getState:()=>go});var lo=Y({s:T,ms:t=>t/1e3});function po(t){let{active:e,children:o,elements:r,host:i}=t,s=r.indexOf(e),c=r[s+1]||o[0];t.autoplay.timer=null,c&&(i.active=c)}function fo(t){let{active:e,style:o}=t,r=lo(window.getComputedStyle(e).getPropertyValue("--slide-duration")||o.getPropertyValue("--slide-duration"));clearTimeout(t.autoplay.timer),t.autoplay.timer=setTimeout(po,r*1e3,t)}function $e(t){clearTimeout(t.autoplay.timer),t.autoplay.timer=null}function mo(t){let e=t[g],{actives:o}=e,r=e.autoplay={},i=a.merge([!1],E("pointerenter pointerleave",t).map(c=>c.type==="pointerenter")),s=a.merge([t.contains(document.activeElement)],E("focusin focusout",t).map(y(G("type"),{focusin:c=>!0,focusout:c=>t.contains(c.relatedTarget)}))).map((c=>f=>c===f?void 0:c=f)());r.updates=a.combine({active:o,hover:i,focus:s}).each(c=>c.hover||c.focus?$e(e):fo(e))}function ho(t){let e=t[g];$e(e),e.autoplay.updates.stop(),e.autoplay=void 0}function go(t){return!!t[g].autoplay}var qt={};W(qt,{disable:()=>yo,enable:()=>wo,getState:()=>bo});function Ne(t,e){let o=t.cloneNode(!0);return o.dataset.slideIndex=e,o.removeAttribute("id"),o.setAttribute("aria-hidden","true"),o.tabIndex="-1",o}function vo(t){let{active:e,children:o,host:r,scroller:i}=t;if(t.loop.prepends&&(t.loop.prepends.forEach(h=>h.remove()),t.loop.appends.forEach(h=>h.remove()),t.loop.prepends=void 0,t.loop.appends=void 0),o.length<2){t.elements=t.slides.assignedElements();return}let s=r.clientWidth,c=o.map(k),f=c[1].left,d=c[c.length-2].right,m=1;for(;c[++m]&&c[m].leftd-s;);let p=o.slice(++m).map((h,l)=>Ne(h,m+l));r.prepend.apply(r,p),r.append.apply(r,v),t.loop.prepends=p,t.loop.appends=v,t.elements=t.slides.assignedElements(),D(i,e||o[0])}function wo(t){let e=t[g],{mutations:o}=e,r=e.loop={};r.renders=o.each(i=>vo(e))}function yo(t){let e=t[g];e.loop&&(e.loop.prepends&&e.loop.prepends.forEach(o=>o.remove()),e.loop.appends&&e.loop.appends.forEach(o=>o.remove()),e.loop.renders.stop(),e.loop=void 0)}function bo(t){return!!t[g].loop}var Wt={};W(Wt,{disable:()=>So,enable:()=>Eo,getState:()=>Lo});function R(t){if(typeof t!="object"||arguments.length>1)throw new Error("delegate() now takes an object of selector:fn pairs.");return function(o){let r=o.target,i;for(i in t){let s=r.closest(i);if(s)return t[i](s,...arguments)}}}function xo(t,e,o,r,i){i===0||t.scrollLeft===0?e.hidden=!0:e.hidden=!1,i===r.length-1||t.scrollLeft>=t.scrollWidth-t.clientWidth?o.hidden=!0:o.hidden=!1}function Eo(t){let e=t[g],{actives:o,clicks:r,slotchanges:i,scroller:s,scrolls:c}=e,f=e.navigation={prev:w("button",{part:"prev-button",type:"button",name:"navigation",value:"-1",children:[w("slot",{name:"prev-button",html:`