@ekolabs/eko-gallery-react 4.0.5-temporal-queue-autoscaling-1153253.0 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eko-gallery-react.cjs.js +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/server.cjs.js +1 -1
- package/package.json +1 -1
package/dist/server.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function t(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function e(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(e,n){return e.get(t(e,n))}function o(t,n,o){e(t,n),n.set(t,o)}function i(e,n,o){return e.set(t(e,n),o),o}function s(t,n){e(t,n),n.add(t)}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=r(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}const a=300,c=60,u="none";function d(t,e,n){return t.addEventListener(e,n),()=>t.removeEventListener(e,n)}function p(t,e,n){const{x:o,y:i}=function(t,e){const n=t.getBoundingClientRect();return{x:Math.round(e.clientX-n.left),y:Math.round(e.clientY-n.top)}}(t,e);return{event:e,pointersCount:n.length,target:e.target,x:o,y:i,attachmentNode:t}}function v(t,e,n,o,i){const s=p(t,n,o);return t.dispatchEvent(new CustomEvent(`${e}${i}`,{detail:s})),s}function h(){let t=[],e=()=>{},n=[];return{setPointerControls:(o,i,s,l,r,a=u,c=[])=>{var p;if(i.style.touchAction=(p=a,Array.isArray(p)?p:[p]).join(" "),n=c,n.forEach((e=>{var n;null===(n=e.onInit)||void 0===n||n.call(e,t)})),!t.length){function h(e){t.push(e);const a=v(i,o,e,t,"down");function c(e){const s=t.length;t=function(t,e){return e.filter((e=>t.pointerId!==e.pointerId))}(e,t);if(s>t.length){t.length||(u(),p(),h(),g());const s=v(i,o,e,t,"up");null==r||r(t,e),setTimeout((()=>{n.forEach((e=>{var n;null===(n=e.onUp)||void 0===n||n.call(e,s,t)}))}))}}null==l||l(t,e),setTimeout((()=>{n.forEach((e=>{var n;null===(n=e.onDown)||void 0===n||n.call(e,a,t)}))}));const u=d(i,"pointermove",(e=>{t=t.map((t=>e.pointerId===t.pointerId?e:t));const l=v(i,o,e,t,"move");null==s||s(t,e),n.forEach((e=>{var n;null===(n=e.onMove)||void 0===n||n.call(e,l,t)}))})),p=d(i,"lostpointercapture",(t=>{c(t)})),h=d(i,"pointerup",(t=>{c(t)})),g=d(i,"pointerleave",(t=>{c(t)}))}e=d(i,"pointerdown",h)}return{destroy:()=>{t.length||(e(),n.forEach((t=>{var e;null===(e=t.onDestroy)||void 0===e||e.call(t)})))}}}}}const g="@attach";const x="swipe";function f(t,e,n,o=!1){const{setPointerControls:i}=h(),s=o?x:Symbol(g);return{...n,[`on${x}`]:t,[s]:t=>{const{onDown:n,onUp:o,parameters:s}=function(t,e){const n={timeframe:a,minSwipeDistance:c,touchAction:u,composed:!1,...e};let o,i,s,l;function r(t,e){i=e.clientX,s=e.clientY,o=Date.now(),1===t.length&&(l=e.target)}function d(e,r){if("pointerup"===r.type&&0===e.length&&Date.now()-o<n.timeframe){const e=r.clientX-i,o=r.clientY-s,a=Math.abs(e),c=Math.abs(o);let u=null;a>=2*c&&a>n.minSwipeDistance?u=e>0?"right":"left":c>=2*a&&c>n.minSwipeDistance&&(u=o>0?"bottom":"top"),u&&t.dispatchEvent(new CustomEvent(x,{detail:{direction:u,target:l,pointerType:r.pointerType}}))}}return{onDown:r,onUp:d,parameters:n}}(t,null==e?void 0:e());return i(x,t,null,n,o,s.touchAction,s.plugins).destroy}}}const m=t=>{const e={color:"#00ff00",fadeTime:1e3,zIndex:1e6,lineWidth:4};let n,o,i,s=null,l=!1,r=Date.now();const a={x:void 0,y:void 0};function c(){var a;const u=null!==(a=t.fadeTime)&&void 0!==a?a:e.fadeTime,d=Date.now(),p=d-r;p>u/20&&(s&&o&&i&&n&&(i.drawImage(n,0,0),s.clearRect(0,0,n.width,n.height),s.globalAlpha=1-3*p/u,s.drawImage(o,0,0),s.globalAlpha=1,i.clearRect(0,0,n.width,n.height)),r=d),l&&requestAnimationFrame(c)}function u(t){a.x=t.x,a.y=t.y}function d(){s&&o&&n&&(s.canvas.width=window.innerWidth,s.canvas.height=window.innerHeight,o.width=n.width,o.height=n.height)}function p(r){var a;v(),n=window.document.createElement("canvas"),n.id="svelte-gestures-highlight-plugin",s=n.getContext("2d"),n.style.cssText=`\ndisplay: block; \nwidth: 100dvw;\nheight: 100dvh;\ntop: 0;\nleft: 0;\nposition: fixed;\npointer-events: none;\nz-index: ${null!==(a=t.zIndex)&&void 0!==a?a:e.zIndex};\n`,window.document.body.appendChild(n),window.addEventListener("resize",d),r&&u(r.event),o=document.createElement("canvas"),d(),i=o.getContext("2d"),l=!0,c()}function v(){var t;l=!1,null===(t=window.document.getElementById("svelte-gestures-highlight-plugin"))||void 0===t||t.remove(),window.removeEventListener("resize",d)}return{onMove:n=>{var o,i,l;o=n.event,s&&(s.beginPath(),s.lineWidth=null!==(i=t.lineWidth)&&void 0!==i?i:e.lineWidth,s.lineCap="round",s.strokeStyle=null!==(l=t.color)&&void 0!==l?l:e.color,void 0!==a.x&&void 0!==a.y?(s.moveTo(a.x,a.y),u(o),s.lineTo(a.x,a.y)):u(o),s.stroke())},onDown:t=>{p(t)},onUp:(t,e)=>{0===e.length&&v()},onDestroy:v,onInit:t=>{t.length&&(a.x=void 0,a.y=void 0,p())}}};var b;const y=1,_=2,w=4,F=Symbol(),I=/[&"<]/g,M=/[&<]/g;function k(t,e){const n=String(null!=t?t:""),o=e?I:M;o.lastIndex=0;let i="",s=0;for(;o.test(n);){const t=o.lastIndex-1,e=n[t];i+=n.substring(s,t)+("&"===e?"&":'"'===e?""":"<"),s=t+1}return i+n.substring(s)}const C={translate:new Map([[!0,"yes"],[!1,"no"]])};function $(t,e,n=!1){if("hidden"===t&&"until-found"!==e&&(n=!0),null==e||!e&&n)return"";const o=t in C&&C[t].get(e)||e;return` ${t}${n?"":`="${k(o,!0)}"`}`}function E(t){return"object"==typeof t?function(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=r(t))&&(o&&(o+=" "),o+=e);return o}(t):null!=t?t:""}const S=[..." \t\n\r\f \v\ufeff"];function T(t,e,n){var o=null==t?"":""+t;if(e&&(o=o?o+" "+e:e),n)for(var i in n)if(n[i])o=o?o+" "+i:i;else if(o.length)for(var s=i.length,l=0;(l=o.indexOf(i,l))>=0;){var r=l+s;0!==l&&!S.includes(o[l-1])||r!==o.length&&!S.includes(o[r])?l=r:o=(0===l?"":o.substring(0,l))+o.substring(r+1)}return""===o?null:o}function P(t,e=!1){var n=e?" !important;":";",o="";for(var i in t){var s=t[i];null!=s&&""!==s&&(o+=" "+i+": "+s+n)}return o}function A(t){return"-"!==t[0]||"-"!==t[1]?t.toLowerCase():t}function L(t,e){if(e){var n,o,i="";if(Array.isArray(e)?(n=e[0],o=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,r=!1,a=[];n&&a.push(...Object.keys(n).map(A)),o&&a.push(...Object.keys(o).map(A));var c=0,u=-1;const e=t.length;for(var d=0;d<e;d++){var p=t[d];if(r?"/"===p&&"*"===t[d-1]&&(r=!1):s?s===p&&(s=!1):"/"===p&&"*"===t[d+1]?r=!0:'"'===p||"'"===p?s=p:"("===p?l++:")"===p&&l--,!r&&!1===s&&0===l)if(":"===p&&-1===u)u=d;else if(";"===p||d===e-1){if(-1!==u){var v=A(t.substring(c,u).trim());if(!a.includes(v))";"!==p&&d++,i+=" "+t.substring(c,d).trim()+";"}c=d+1,u=-1}}}return n&&(i+=P(n)),o&&(i+=P(o,!0)),""===(i=i.trim())?null:i}return null==t?null:String(t)}const z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};const O=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];function j(t){return O.includes(t)}{let t=function(t){if(!(t in globalThis)){let e;Object.defineProperty(globalThis,t,{configurable:!0,get:()=>{if(void 0!==e)return e;!function(t){{const e=new Error(`rune_outside_svelte\nThe \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}}(t)},set:t=>{e=t}})}};t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}const D="\x3c!--[--\x3e",W="\x3c!--]--\x3e";let R=null;var B=null;function N(t){B=t}function q(t){return X("getContext").get(t)}function X(t){var e,n;return null===B&&function(t){{const e=new Error(`lifecycle_outside_component\n\`${t}(...)\` can only be used during component initialisation\nhttps://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}}(t),null!==(n=(e=B).c)&&void 0!==n?n:e.c=new Map(function(t){let e=t.p;for(;null!==e;){const t=e.c;if(null!==t)return t;e=e.p}return null}(B)||void 0)}function H(t){var e;(B={p:B,c:null,r:null}).function=t,B.element=null===(e=B.p)||void 0===e?void 0:e.element}function V(){B=B.p}var U=new WeakMap,Z=new WeakMap,G=new WeakMap,Y=new WeakMap,J=new WeakSet;class K{constructor(t,e){s(this,J),o(this,U,[]),o(this,Z,void 0),o(this,G,!1),l(this,"type",void 0),o(this,Y,void 0),l(this,"promise",void 0),l(this,"global",void 0),l(this,"local",void 0),i(Y,this,e),this.global=t,this.local=e?{...e.local}:{select_value:void 0},this.type=e?e.type:"body"}head(t){const e=new K(this.global,this);e.type="head",n(U,this).push(e),e.child(t)}async_block(t,e){n(U,this).push(D),this.async(t,e),n(U,this).push(W)}async(t,e){let n=e;if(t.length>0){const o=B;n=n=>Promise.all(t).then((()=>{const t=B;try{return N(o),e(n)}finally{N(t)}}))}this.child(n)}run(t){const e=B;let n=Promise.resolve(t[0]());const o=[n];for(const i of t.slice(1))n=n.then((()=>{const t=B;N(e);try{return i()}finally{N(t)}})),o.push(n);return o}child(t){const e=new K(this.global,this);n(U,this).push(e);const o=B;N({...B,p:o,c:null,r:e});const i=t(e);return N(o),i instanceof Promise&&("sync"===e.global.mode&&function(){const t=new Error("await_invalid\nEncountered asynchronous work while rendering synchronously.\nhttps://svelte.dev/e/await_invalid");throw t.name="Svelte error",t}(),i.catch((()=>{})),e.promise=i),e}component(t,e){H(e);const n=this.child(t);i(G,n,!0),V()}select(t,e,n,o,i,s,l){const{value:r,...a}=t;this.push(`<select${ut(a,n,o,i,s)}>`),this.child((t=>{t.local.select_value=r,e(t)})),this.push((l?"<!>":"")+"</select>")}option(e,o,i,s,l,r,a){n(U,this).push(`<option${ut(e,i,s,l,r)}`);const c=(t,o,{head:i,body:s})=>{"value"in e&&(o=e.value),o===this.local.select_value&&n(U,t).push(" selected"),n(U,t).push(`>${s}${a?"<!>":""}</option>`),i&&t.head((t=>t.push(i)))};"function"==typeof o?this.child((e=>{const n=new K(this.global,this);if(o(n),"async"===this.global.mode)return t(J,n,it).call(n).then((t=>{c(e,t.body.replaceAll("\x3c!----\x3e",""),t)}));{const o=t(J,n,ot).call(n);c(e,o.body.replaceAll("\x3c!----\x3e",""),o)}})):c(this,o,{body:o})}title(e){const n=this.get_path(),o=t=>{this.global.set_title(t,n)};this.child((n=>{const i=new K(n.global,n);if(e(i),"async"===n.global.mode)return t(J,i,it).call(i).then((t=>{o(t.head)}));{const e=t(J,i,ot).call(i);o(e.head)}}))}push(t){"function"==typeof t?this.child((async e=>e.push(await t()))):n(U,this).push(t)}on_destroy(t){var e;(null!==(e=n(Z,this))&&void 0!==e?e:i(Z,this,[])).push(t)}get_path(){return n(Y,this)?[...n(Y,this).get_path(),n(U,n(Y,this)).indexOf(this)]:[]}copy(){const t=new K(this.global,n(Y,this));return i(U,t,n(U,this).map((t=>t instanceof K?t.copy():t))),t.promise=this.promise,t}subsume(t){if(this.global.mode!==t.global.mode)throw new Error("invariant: A renderer cannot switch modes. If you're seeing this, there's a compiler bug. File an issue!");this.local=t.local,i(U,this,n(U,t).map((t=>(t instanceof K&&t.subsume(t),t)))),this.promise=t.promise,this.type=t.type}get length(){return n(U,this).length}static render(t,e={}){let n;const o={};return Object.defineProperties(o,{html:{get:()=>{var o;return(null!==(o=n)&&void 0!==o?o:n=nt.call(K,t,e)).body}},head:{get:()=>{var o;return(null!==(o=n)&&void 0!==o?o:n=nt.call(K,t,e)).head}},body:{get:()=>{var o;return(null!==(o=n)&&void 0!==o?o:n=nt.call(K,t,e)).body}},hashes:{value:{script:""}},then:{value:(o,i)=>{{var s;const i=null!==(s=n)&&void 0!==s?s:n=nt.call(K,t,e),l=o({head:i.head,body:i.body,html:i.body,hashes:{script:[]}});return Promise.resolve(l)}}}}),o}}function*Q(){for(const e of t(J,this,tt).call(this))yield*t(J,e,et).call(e)}function*tt(){for(const e of n(U,this))"string"!=typeof e&&(yield*t(J,e,tt).call(e));n(G,this)&&(yield this)}function*et(){if(n(Z,this))for(const t of n(Z,this))yield t;for(const e of n(U,this))e instanceof b&&!n(G,e)&&(yield*t(J,e,et).call(e))}function nt(e,n){var o,i=B;try{const o=st.call(b,"sync",e,n),i=t(J,o,ot).call(o);return lt.call(b,i,o)}finally{null===(o=R)||void 0===o||o.abort(z),R=null,N(i)}}function ot(e={head:"",body:""}){for(const o of n(U,this))"string"==typeof o?e[this.type]+=o:o instanceof b&&t(J,o,ot).call(o,e);return e}async function it(e={head:"",body:""}){await this.promise;for(const o of n(U,this))"string"==typeof o?e[this.type]+=o:o instanceof b&&await t(J,o,it).call(o,e);return e}function st(t,e,n){var o;const i=new b(new rt(t,n.idPrefix?n.idPrefix+"-":"",n.csp));return i.push(D),n.context&&(H(),B.c=n.context,B.r=i),e(i,null!==(o=n.props)&&void 0!==o?o:{}),n.context&&V(),i.push(W),i}function lt(e,n){for(const e of t(J,n,Q).call(n))e();let o=e.head+n.global.get_title(),i=e.body;for(const{hash:t,code:e}of n.global.css)o+=`<style id="${t}">${e}</style>`;return{head:o,body:i,hashes:{script:n.global.csp.script_hashes}}}b=K;class rt{csp;mode;uid;css=new Set;#t={path:[],value:""};constructor(t,e="",n={hash:!1}){this.mode=t,this.csp={...n,script_hashes:[]};let o=1;this.uid=()=>`${e}s${o++}`}get_title(){return this.#t.value}set_title(t,e){const n=this.#t.path;let o=0,i=Math.min(e.length,n.length);for(;o<i&&e[o]===n[o];)o+=1;void 0!==e[o]&&(void 0===n[o]||e[o]>n[o])&&(this.#t.path=e,this.#t.value=t)}}const at=/[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;function ct(t,e={}){var n;return null!==(n=e.csp)&&void 0!==n&&n.hash&&e.csp.nonce&&function(){const t=new Error("invalid_csp\n`csp.nonce` was set while `csp.hash` was `true`. These options cannot be used simultaneously.\nhttps://svelte.dev/e/invalid_csp");throw t.name="Svelte error",t}(),K.render(t,e)}function ut(t,e,n,o,i=0){o&&(t.style=L(t.style,o)),t.class&&(t.class=E(t.class)),(e||n)&&(t.class=T(t.class,e,n));let s,l="";const r=!(i&y),a=!(i&_),c=!!(i&w);for(s in t)if("function"!=typeof t[s]&&("$"!==s[0]||"$"!==s[1])&&!at.test(s)){var u=t[s];a&&(s=s.toLowerCase()),c&&("defaultvalue"===s||"defaultchecked"===s)&&(s="defaultvalue"===s?"value":"checked",t[s])||(l+=$(s,u,r&&j(s)))}return l}function dt(t){return"string"==typeof t?t:null==t?"":t+""}function pt(t,e,n){var o=T(t,e,n);return o?` class="${k(o,!0)}"`:""}function vt(t,e){var n=L(t,e);return n?` style="${k(n,!0)}"`:""}function ht(t){return t?void 0!==t.length?t:Array.from(t):[]}function gt(t){const e=function(t){let e=F;return()=>(e===F&&(e=t()),e)}(t);let n;return function(t){var o;return 0===arguments.length?null!==(o=n)&&void 0!==o?o:e():(n=t,n)}}function xt(t,{include:e,exclude:n}={}){const o=t=>{const o=e=>"string"==typeof e?t===e:e.test(t);return e?e.some(o):!n||!n.some(o)};for(const[e,n]of(t=>{const e=new Set;do{for(const n of Reflect.ownKeys(t))e.add([t,n])}while((t=Reflect.getPrototypeOf(t))&&t!==Object.prototype);return e})(t.constructor.prototype)){if("constructor"===n||!o(n))continue;const i=Reflect.getOwnPropertyDescriptor(e,n);i&&"function"==typeof i.value&&(t[n]=t[n].bind(t))}return t}function ft(t,e){t.getNodesAtTime(0)[0].once("nodestart",e)}class mt{constructor({position:t,galleryState:e,config:n}){this.config=n,this.position=t,this.galleryState=e,this.name=n.name;const{variantId:o,itemIndex:i,moduleIndex:s}=t;this.id=`${n.itemType}_${o}_${i}_${s}`,xt(this)}#e={};#n=null;#o=!1;#i=null;id;player;position;config;timeline;moduleEndListener;hasDuration=!1;coverAssets=[];get state(){return this.#e}set state(t){this.#e=t}get cover(){return this.#n}set cover(t){this.#n=t}get showCover(){return this.#o}set showCover(t){this.#o=t}get Component(){return this.#i}set Component(t){this.#i=t}emitModuleEnd(){var t;null===(t=this.moduleEndListener)||void 0===t||t.call(this)}start(t){this.player=t}setPosition(){this.galleryState.playingModulePosition=this.position}play(){ft(this.timeline,(()=>{this.setPosition()})),this.player.switchTimeline(this.timeline)}get duration(){return this.hasDuration?this.timeline.placements.reduce(((t,e)=>t+this.player.getNode(e.nodeId).duration),0):0}}function bt(t,e,n){var o,i,s;const l=(null==e||null===(o=e.entity)||void 0===o?void 0:o.entityId)||(null==e?void 0:e.assetId),r=null!==(i=null==e||null===(s=e.entity)||void 0===s?void 0:s.entityRevision)&&void 0!==i?i:null==e?void 0:e.assetRevision;return n.addNode({id:t,manifestRef:{type:"assets-delivery-service",assetId:l,assetRevision:r,availableEncodeProfiles:e.availableEncodeProfiles}})}const yt={hash:"svelte-17x2i38",code:".step-description-container.svelte-17x2i38 {width:100%;position:absolute;bottom:0;display:flex;justify-content:space-between;gap:8px;box-sizing:border-box;font-size:12px;font-weight:400;font-style:normal;line-height:16px;letter-spacing:0px;overflow:hidden;pointer-events:none;background:linear-gradient(\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.9) 27.79%,\n rgba(255, 255, 255, 0.95) 100%\n );&.expanded {flex-direction:column;justify-content:flex-start;}&:not(.expanded) {button:where(.svelte-17x2i38) {line-height:16px;}}}.expanded-text-content.svelte-17x2i38:not([hidden]) {display:flex;flex-direction:column;gap:8px;}button.svelte-17x2i38 {background:none;border:none;padding:0;cursor:pointer;line-height:18px;gap:8px;letter-spacing:0%;color:#014FD3;font-size:12px;font-weight:500;flex-shrink:0;text-align:left;font-family:inherit;pointer-events:auto;}h3.svelte-17x2i38, p.svelte-17x2i38, span.svelte-17x2i38 {color:#030303;}.text-wrapper.svelte-17x2i38 {width:100%;}.text-box-title.svelte-17x2i38 {margin:0;font-weight:500;font-size:12px;}.text-box-description.svelte-17x2i38 {margin:0;text-align:left;font-weight:400;}.minimized-description.svelte-17x2i38 {overflow:hidden;line-clamp:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-weight:400;}.expand-description-button.svelte-17x2i38 {width:100%;display:flex;justify-content:space-between;gap:6px;flex-wrap:nowrap;.read-more-cta:where(.svelte-17x2i38) {color:#014FD3;flex-shrink:0;}}"};function _t(t,e){const{state:n,isMobile:o}=e,{textBox:i}=n;!function(t,e){t.global.css.add(yt),t.component((t=>{let{textBox:n=null,isMobile:o=!1}=e,i=(null==n?void 0:n.title)||"",s=(null==n?void 0:n.description)||"",l=o?16:18;i||s?(t.push("\x3c!--[--\x3e"),t.push(`<section${pt(`step-description-container ${dt("")}`,"svelte-17x2i38")}${vt(`padding: ${o?"8px 16px":"16px 16px 56px 16px"};`)} aria-label="Feature description" aria-live="polite"><div class="text-wrapper svelte-17x2i38"><div class="expanded-text-content svelte-17x2i38"${vt(`line-height: ${l}px;`)}${$("hidden",!0)}>`),o?(t.push("\x3c!--[--\x3e"),t.push(`<h3 class="text-box-title svelte-17x2i38">${k(i)}</h3>`)):t.push("\x3c!--[!--\x3e"),t.push(`\x3c!--]--\x3e <p class="text-box-description svelte-17x2i38">${k(s)}</p></div> `),t.push("\x3c!--[--\x3e"),t.push(`<button class="expand-description-button svelte-17x2i38"${vt(`line-height: ${l}px;`)} aria-expanded="false" aria-controls="expanded-text-content" aria-label="Expand feature description">`),o&&i?(t.push("\x3c!--[--\x3e"),t.push(`<span class="text-box-title svelte-17x2i38">${k(i)}</span>`)):(t.push("\x3c!--[!--\x3e"),t.push(`<span class="text-box-description minimized-description svelte-17x2i38">${k(s)}</span>`)),t.push("\x3c!--]--\x3e "),o?(t.push("\x3c!--[--\x3e"),t.push('<span class="read-more-cta svelte-17x2i38" aria-hidden="true">Read more</span>')):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</button>"),t.push("\x3c!--]--\x3e</div> "),t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</section>")):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e")}))}(t,{textBox:i,isMobile:o})}const wt={hash:"svelte-16pmvvn",code:".eko-gallery-app {--toggleModule_gap: 8px;--toggleModule_padding: 10px 58px 0 0;--toggleModule_options_padding: 0;--toggleModule_options_height: auto;--toggleModule_options_width: 100%;--toggleModule_options_gap: 8px;--toggleModule_button_backgroundColor: #FFFFFF;--toggleModule_button_padding: 8px 12px;--toggleModule_button_boxShadow: 0px 2px 8px 2px rgba(0, 0, 0, 0.07);--toggleModule_button_text_fontFamily: var(--fontName);--toggleModule_button_text_fontSize: 12px;--toggleModule_button_text_fontWeight: 400;--toggleModule_button_text_fontStyle: normal;--toggleModule_button_text_lineHeight: 16px;--toggleModule_button_text_letterSpacing: -0.2px;--toggleModule_button_text_color: #000;--toggleModule_button_border_radius: 100px;--toggleModule_title_fontFamily: var(--fontName);--toggleModule_title_fontSize: 13px;--toggleModule_title_fontWeight: 400;--toggleModule_title_fontStyle: normal;--toggleModule_title_lineHeight: 120%;--toggleModule_title_letterSpacing: 0;--toggleModule_title_color: #666;--toggleModule_title_textAlignment: center;--toggleModule_note_fontFamily: var(--fontName);--toggleModule_note_fontSize: 12px;--toggleModule_note_fontWeight: 400;--toggleModule_note_fontStyle: normal;--toggleModule_note_lineHeight: 120%;--toggleModule_note_letterSpacing: 0;--toggleModule_note_color: #888;--toggleModule_note_topMargin: 4px;}.toggle-container.svelte-16pmvvn {position:absolute;top:0;padding:var(--toggleModule_padding);width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--toggleModule_gap);pointer-events:auto;box-sizing:border-box;}.toggle-options.svelte-16pmvvn {width:var(--toggleModule_options_width);height:var(--toggleModule_options_height);padding:var(--toggleModule_options_padding);gap:var(--toggleModule_options_gap);display:flex;justify-content:end;margin:0;}.toggle-option-container.svelte-16pmvvn {position:relative;min-width:0;}.toggle-option-button.svelte-16pmvvn {border-radius:var(--toggleModule_button_borderRadius);font-family:var(--toggleModule_button_text_fontFamily);font-size:var(--toggleModule_button_text_fontSize);font-weight:var(--toggleModule_button_text_fontWeight);font-style:var(--toggleModule_button_text_fontStyle);line-height:var(--toggleModule_button_text_lineHeight);letter-spacing:var(--toggleModule_button_text_letterSpacing);color:var(--toggleModule_button_text_color);padding:var(--toggleModule_button_padding);border:#E4E5E8 solid 1px;background:#FBFBFB;display:flex;width:100%;height:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;cursor:pointer;position:relative;transition:all 0.3s ease-in-out;animation-duration:0.5s;animation-timing-function:cubic-bezier(0.36, 0, 0, 1);animation-fill-mode:both;animation-delay:calc(var(--button-index) * 90ms);\n animation-name: svelte-16pmvvn-button-back-appear-anim;transform-origin:bottom center;border-radius:var(--toggleModule_button_border_radius);}.toggle-option-button.selected.svelte-16pmvvn {box-shadow:none;color:#FFFFFF;background:#014FD3;border-color:#014FD3;}.toggle-option-button.svelte-16pmvvn:hover:not(.selected) {background:#F3F4F6;}.toggle-option-button.svelte-16pmvvn:active:not(.selected) {background:#E4E5E8;}.toggle-option-button.svelte-16pmvvn:focus {outline-offset:4px;outline-width:2px;}\n\n@keyframes svelte-16pmvvn-button-back-appear-anim {\n from {\n transform: scale(0);\n }\n to {\n transform: scale(1);\n }\n}\n@keyframes svelte-16pmvvn-optionNoteIn {\n 0% {\n opacity: 0;\n translate: -50% -5px;\n }\n 100% {\n opacity: 1;\n translate: -50% var(--toggleModule_note_topMargin);\n }\n}"};function Ft(t,e){t.global.css.add(wt);const{state:n}=e,{options:o,currentOptionIndex:i,onOptionClicked:s}=n;t.push(`<div class="toggle-container svelte-16pmvvn"><div${pt(`toggle-options selected-${dt(i)}`,"svelte-16pmvvn")}>\x3c!--[--\x3e`);const l=ht(o);for(let e=0,n=l.length;e<n;e++){let n=l[e];t.push(`<div class="toggle-option-container svelte-16pmvvn"${vt(`--button-index: ${dt(e)};`)}><button${pt("toggle-option-button svelte-16pmvvn",void 0,{selected:i===e})}>${k(n.label)}</button></div>`)}t.push("\x3c!--]--\x3e</div></div>")}var It=new WeakSet;function Mt(t){var e,n;t!==this.state.currentOptionIndex&&(this.state.currentOptionIndex=t,this.cover=this.coverAssets[t],this.synced?this.switchTo(t):(this.timeline=null===(e=this.timelines)||void 0===e?void 0:e[t],this.showCover=!0,ft(this.timeline,(()=>{this.showCover=!1})),null===(n=this.player)||void 0===n||n.switchTimeline(this.timeline)))}const kt={hash:"svelte-16kucsb",code:".eko-gallery-app {--tryItModule_justifyContent: center;--tryItModule_alignItems: flex-end;--tryItModule_padding: 16px 20px 48px 20px;--tryItModule_button_padding: 16px 32px;--tryItModule_button_textAlign: center;--tryItModule_button_borderRadius: 100px;--tryItModule_button_border: 0;--tryItModule_button_boxShadow: 0 4px 24px 2px rgba(0, 0, 0, 0.12);--tryItModule_button_background: #FFFFFF;--tryItModule_button_text_fontFamily: var(--fontName);--tryItModule_button_text_fontSize: 18px;--tryItModule_button_text_color: #222;--tryItModule_button_text_weight: 500;--tryItModule_button_text_lineHeight: 120%;--tryItModule_button_text_letterSpacing: -0.1px;}.tryIt-container.svelte-16kucsb {position:relative;padding:var(--tryItModule_padding);width:100%;height:100%;box-sizing:border-box;display:flex;justify-content:var(--tryItModule_justifyContent);align-items:var(--tryItModule_alignItems);}.tryIt-container.svelte-16kucsb button:where(.svelte-16kucsb) {padding:var(--tryItModule_button_padding);text-align:var(--tryItModule_button_textAlign);border-radius:var(--tryItModule_button_borderRadius);border:var(--tryItModule_button_border);background:var(--tryItModule_button_background);box-shadow:var(--tryItModule_button_boxShadow);font-family:var(--tryItModule_button_text_fontFamily);font-size:var(--tryItModule_button_text_fontSize);color:var(--tryItModule_button_text_color);font-weight:var(--tryItModule_button_text_weight);line-height:var(--tryItModule_button_text_lineHeight);letter-spacing:var(--tryItModule_button_text_letterSpacing);cursor:pointer;opacity:0;overflow:hidden;}.tryIt-container.svelte-16kucsb button:where(.svelte-16kucsb) div:where(.svelte-16kucsb) {opacity:0;}"};function Ct(t,e){t.global.css.add(kt),t.component((t=>{const{state:n}=e,{ctaText:o,animationConfig:i,showCta:s,onCtaClick:l}=n;t.push('<div class="tryIt-container svelte-16kucsb">'),s?(t.push("\x3c!--[--\x3e"),t.push(`<button${vt(`pointer-events: ${dt("none")}`)} class="svelte-16kucsb"><div class="svelte-16kucsb">${k(o)}</div></button>`)):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</div>")}))}var $t=new WeakSet;function Et(){this.mainTimeline?this.player.switchTimeline(this.mainTimeline):this.emitModuleEnd(),this.state.showCta=!1}const St={videoModule:class extends mt{constructor({config:t,...e}){var n;super({...e,config:t}),this.Component=_t,this.hasDuration=!t.loop,xt(this),this.coverAssets.push(null!==(n=t.intro)&&void 0!==n?n:t.video),this.cover=this.coverAssets[0],this.state={textBox:t.textBox}}start(t){super.start(t),this.timeline=t.createTimeline();const e=this.config;e.intro&&this.timeline.placeOnTimeline(bt(`${this.id}_intro`,e.intro,t),"end");const n=bt(this.id,e.video,t);this.timeline.placeOnTimeline(n,"end",{loop:e.loop}),e.loop||n.on("nodeend",this.emitModuleEnd)}},toggleModule:class extends mt{constructor({config:e,...n}){super({...n,config:e}),s(this,It),this.Component=Ft,this.synced=e.sync,this.switchTo=()=>{},xt(this),this.coverAssets=e.options.map((t=>{var e;return null!==(e=t.intro)&&void 0!==e?e:t.video})),this.cover=this.coverAssets[0],this.state={options:e.options.map((t=>({label:t.label,note:t.note}))),currentOptionIndex:0,onOptionClicked:t(It,this,Mt).bind(this)}}start(t){super.start(t),this.synced?(this.timeline=t.createTimeline(),this.config.options.forEach(((e,n)=>{this.timeline.placeOnTimeline(bt(`${this.id}_option_${n}`,e.video,t),0,{loop:!0})})),this.timeline.placeRenderNodeOnTimeline("switch",0,1/0,{params:{switchCrossfadeSeconds:.25,initSwitching:({switchTo:t})=>{this.switchTo=t,t(this.state.currentOptionIndex,{crossfadeSeconds:0})}}})):(this.timelines=this.config.options.map(((e,n)=>{const o=t.createTimeline();return e.intro&&o.placeOnTimeline(bt(`${this.id}_option_${n}_intro`,e.intro,t),"end"),o.placeOnTimeline(bt(`${this.id}_option_${n}`,e.video,t),"end",{loop:!0}),o})),this.timeline=this.timelines[this.state.currentOptionIndex])}},tryItModule:class extends mt{constructor({config:e,...n}){var o;super({...n,config:e}),s(this,$t),xt(this);const{introVideo:i}=e;this.coverAssets.push(null!==(o=i.intro)&&void 0!==o?o:i.loop),this.cover=this.coverAssets[0],this.state={ctaText:e.ctaText,animationConfig:e.animationConfig,showCta:!0,onCtaClick:t($t,this,Et).bind(this)}}start(t){super.start(t),this.Component=Ct,this.timeline=t.createTimeline();const{introVideo:e,mainVideo:n}=this.config;if(e.intro&&this.timeline.placeOnTimeline(bt(`${this.id}_intro_intro`,e.intro,t)),this.timeline.placeOnTimeline(bt(`${this.id}_intro_loop`,e.loop,t),"end",{loop:!0}),n){this.mainTimeline=t.createTimeline(),n.intro&&this.mainTimeline.placeOnTimeline(bt(`${this.id}_main_intro`,n.intro,t));const e=bt(`${this.id}_main_loop`,n.loop,t);this.mainTimeline.placeOnTimeline(e,"end",{loop:!0})}}play(){this.state.showCta=!0,super.play()}}};class Tt{#s={};#l="ekonovar";#r=0;#a=0;#c={itemIndex:0,moduleIndex:0};#u=gt((()=>{var t;return null===(t=this.#s)||void 0===t?void 0:t[this.#l]}));#d=gt((()=>{var t;return null===(t=this.#u())||void 0===t?void 0:t[this.#r]}));#p=gt((()=>{var t,e;return this.#v?null===(e=this.#u())||void 0===e?void 0:e[this.#c.itemIndex].modules[this.#c.moduleIndex]:null===(t=this.#d())||void 0===t?void 0:t.modules[this.#a]}));#h=gt((()=>{var t;return(null===(t=this.#u())||void 0===t?void 0:t.flatMap((t=>t.modules)))||[]}));#g=!1;#x=!1;#v=!1;#f=gt((()=>!(this.#c.itemIndex===this.activeItemIndex&&this.#c.moduleIndex===this.activeModuleIndex)));set variants(t){this.#s=t}set activeVariant(t){this.#l=t}set activeItemIndex(t){this.#r=t}set activeModuleIndex(t){this.#a=t}set playingModulePosition(t){this.#c=t}set playerLoaded(t){this.#g=t}set paused(t){this.#x=t}set startedPlaying(t){this.#v=t}get variants(){return this.#s}get activeVariant(){return this.#l}get activeItemIndex(){return this.#r}get activeModuleIndex(){return this.#a}get playingModulePosition(){return this.#c}get currentItemsList(){return this.#u()}get currentItem(){return this.#d()}get currentModule(){return this.#p()}get playerLoaded(){return this.#g}get paused(){return this.#x}get startedPlaying(){return this.#v}get seeking(){return this.#f()}get currentModulesList(){return this.#h()}}const Pt={assetsDeliveryBase:"https://{{env}}assets.eko.com"},At=2,Lt=5,zt=["version","selectItem","selectItemAndStep","next","prev","subscribe"];var Ot=new WeakMap,jt=new WeakMap,Dt=new WeakMap,Wt=new WeakMap,Rt=new WeakSet;class Bt{constructor(e){var n,r,a;s(this,Rt),o(this,Ot,void 0),o(this,jt,void 0),o(this,Dt,void 0),o(this,Wt,void 0),l(this,"public",void 0),l(this,"version","0.0.7"),xt(this),i(Dt,this,e),i(Ot,this,new Tt(null==e||null===(n=e.options)||void 0===n?void 0:n.galleryEnv)),i(Wt,this,((t="")=>("production"===t&&(t=""),Object.fromEntries(Object.entries(Pt).map((([e,n])=>[e,n.replaceAll("{{env}}",t)])))))(null==e||null===(r=e.options)||void 0===r?void 0:r.galleryEnv)),i(jt,this,[]);const c=null==e||null===(a=e.instance)||void 0===a||null===(a=a.data)||void 0===a||null===(a=a.blocks)||void 0===a||null===(a=a.blocksArr)||void 0===a||null===(a=a.find((t=>"GalleryBlock"===t.blockType)))||void 0===a?void 0:a.config;var u;c?(t(Rt,this,Nt).call(this,c.items),t(Rt,this,qt).call(this,c.items)):console.warn("[eko-gallery-app] Gallery initiated without an instance, results will be empty"),this.public=(u=this,zt.reduce(((t,e)=>{if(!(e in u))throw new Error(`[eko-gallery-app] Public API member "${e}" does not exist on GalleryLogic`);const n=u[e];return t[e]="function"==typeof n?n.bind(u):n,t}),{}))}start(e){n(Ot,this).playerLoaded=!0,n(jt,this).forEach((t=>{t.start(e)})),i(jt,this,null),t(Rt,this,Xt).call(this,e),n(Ot,this).currentModule.play()}selectItem(t){const e=n(Ot,this);t!==e.activeItemIndex&&(e.activeItemIndex=t,e.activeModuleIndex=0)}selectItemAndStep(t,e){const o=n(Ot,this);t===o.activeItemIndex&&e===o.activeModuleIndex||(o.activeItemIndex=t,o.activeModuleIndex=e)}next(){t(Rt,this,Vt).call(this)}prev(){const t=n(Ot,this);if(t.activeModuleIndex=t.activeModuleIndex-1,!t.currentItem.modules[t.activeModuleIndex])if(t.currentItemsList[t.activeItemIndex-1]){t.activeItemIndex=t.activeItemIndex-1;const e=t.currentItemsList[t.activeItemIndex];t.activeModuleIndex=e.modules.length-1}else t.activeModuleIndex=t.activeModuleIndex+1}subscribe(t){return n(Ot,this),()=>{}}getCoverUrl(t,e){var o,i,s,l;const r=(null==t||null===(o=t.entity)||void 0===o?void 0:o.entityId)||(null==t?void 0:t.assetId),a=null!==(i=null==t||null===(s=t.entity)||void 0===s?void 0:s.entityRevision)&&void 0!==i?i:null==t?void 0:t.assetRevision;if(!r)throw new Error(`[getCoverUrl] No assetId found in assetConfig: ${JSON.stringify(t||{},null,2)}`);if(!a&&0!==a)throw new Error(`[getCoverUrl] No assetRevision found for asset ${r}.`);let c;return null!==(l=n(Dt,this))&&void 0!==l&&null!==(l=l.coverAssetsMap)&&void 0!==l&&l[r]?(c=new URL(n(Dt,this).coverAssetsMap[r]),/^[a-z0-9]*assets.eko.com$/.test(c.host)&&e&&(c.pathname=c.pathname.replace(".png",".webp"))):(c=new URL(`${n(Wt,this).assetsDeliveryBase}/image/${r}/${a}?startOffset=0`),c.pathname+=e?".webp":".png"),e&&c.searchParams.set("width",e),c.href}get currentConfig(){return n(Dt,this)}get state(){return n(Ot,this)}get urls(){return n(Wt,this)}}function Nt(t){const e={};for(let n of t)for(let t of Object.keys(n.variants||{}))e[t]=[];e.ekonovar=[],n(Ot,this).variants=e}function qt(e){const o=(e=[],o)=>{const i=[];for(let[s,l]of e.entries()){if(!St[l.itemType])throw new Error(`Unknown module type ${l.itemType}`);const e=new St[l.itemType]({position:{...o,moduleIndex:s},config:l,galleryState:n(Ot,this)});e.moduleEndListener=t(Rt,this,Ht).bind(this),i.push(e)}return i};for(const[t,l]of e.entries())if("galleryItemV2"===l.itemType){const{modules:e,...r}=l;for(const[a,c]of Object.entries(n(Ot,this).variants)){var s;if(null===(s=l.variants)||void 0===s?void 0:s[a])console.log("NO IMPLEMENTED");else{const s={...r};s.modules=o(e,{variantId:a,itemIndex:t}),i(jt,this,[...n(jt,this),...s.modules]),c.push(s)}}}}function Xt(t){for(const[,e]of Object.entries(n(Ot,this).variants))for(const[n,o]of e.entries()){const i=o.modules,s=e.filter((t=>t!==o)).map((t=>t.modules[0]));for(const[o,l]of i.entries()){let r=i[o+1];r||(r=e[(n+1)%e.length].modules[0]);const a=r.timeline.getNodesAtTime(0)[0],c=s.filter((t=>t!==r)).map((t=>t.timeline.getNodesAtTime(0)[0])),u=[{nodeId:a.id,weight:At},...c.map((t=>({nodeId:t.id,weight:Lt})))];for(const e of l.timeline.placements){t.getNode(e.nodeId).setChildren(u)}}}}function Ht(){const e=n(Ot,this),o=e.currentItem.modules;o.length>1&&e.activeModuleIndex===o.length-1?e.activeModuleIndex=0:t(Rt,this,Vt).call(this)}function Vt(){const t=n(Ot,this);t.activeModuleIndex=t.activeModuleIndex+1,t.currentItem.modules[t.activeModuleIndex]||(t.currentItemsList[t.activeItemIndex+1]?(t.activeItemIndex=t.activeItemIndex+1,t.activeModuleIndex=0):t.activeModuleIndex=t.activeModuleIndex-1)}const Ut={hash:"svelte-er27y2",code:".eko-gallery-app {--nav_gap: 10px;--nav_padding: 12px 16px;--nav_bgColor: #FFFFFF;--nav_justifyContent: center;--nav_button_width: fit-content;--nav_button_bgColor: #FFFFFF;--nav_button_borderRadius: 100px;--nav_button_paddingTop: 8px;--nav_button_paddingBottom: var(--nav_button_paddingTop);--nav_button_paddingLeft: 12px;--nav_button_paddingRight: var(--nav_button_paddingLeft);--nav_button_boxShadow: 0 0 0 1px #E7E7E7;--nav_button_gap: 2px;--nav_button_selected_boxShadow: 0 0 0 1px #000000;--nav_button_selected_bgColor: var(--nav_button_bgColor);--nav_button_text_color: #000000;--nav_button_text_fontSize: 14px;--nav_button_text_fontWeight: 500;--nav_button_text_fontFamily: var(--fontName);--nav_button_text_lineHeight: 120%;--nav_button_text_letterSpacing: 0px;--nav_button_text_align: center;--nav_button_selected_text_color: var(--nav_button_text_color);--nav_button_selected_text_fontWeight: var(--nav_button_text_fontWeight);--nav_button_image_borderRadius: calc(var(--nav_button_borderRadius) - var(--nav_button_paddingTop));--nav_arrow_color: var(--secondaryColor);--nav_arrow_bgColor: var(--primaryColor);--nav_arrow_padding: 9px;--nav_arrow_size: 28px;--nav_arrow_boxShadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);}.nav-buttons-container.svelte-er27y2 {width:100%;background-color:var(--nav_bgColor);height:var(--buttonsContainerHeight);display:flex;box-sizing:border-box;text-align:center;justify-content:var(--nav_justifyContent);align-items:center;position:relative;flex-shrink:0;}.nav-buttons-container.svelte-er27y2 :where(.svelte-er27y2) {touch-action:auto;}.nav-buttons.svelte-er27y2 {display:flex;margin:0;gap:var(--nav_gap);height:100%;align-items:center;padding:var(--nav_padding);box-sizing:border-box;overflow-x:auto;scrollbar-width:none;max-width:100%;width:fit-content;overflow-y:hidden;overscroll-behavior-y:none;}.nav-button.svelte-er27y2 {display:flex;outline:none;flex-shrink:0;height:100%;width:var(--nav_button_width);border:none;cursor:pointer;align-items:center;gap:var(--nav_button_gap);background-color:var(--nav_button_bgColor);border-radius:var(--nav_button_borderRadius);\n /* eslint-disable-next-line max-len */padding:var(--nav_button_paddingTop) var(--nav_button_paddingRight) var(--nav_button_paddingBottom) var(--nav_button_paddingLeft);box-shadow:var(--nav_button_boxShadow);}.nav-button.svelte-er27y2 span:where(.svelte-er27y2) {flex:1 0 0;transition:color 0.2s ease-in-out;color:var(--nav_button_text_color);font-weight:var(--nav_button_text_fontWeight);font-size:var(--nav_button_text_fontSize);font-family:var(--nav_button_text_fontFamily);line-height:var(--nav_button_text_lineHeight);letter-spacing:var(--nav_button_text_letterSpacing);text-align:var(--nav_button_text_align);}.nav-button.selected.svelte-er27y2 {background-color:var(--nav_button_selected_bgColor);box-shadow:var(--nav_button_selected_boxShadow);}.nav-button.selected.svelte-er27y2 span:where(.svelte-er27y2) {color:var(--nav_button_selected_text_color);font-weight:var(--nav_button_selected_text_fontWeight);}"};const Zt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20320%20512'%3e%3cpath%20d='M310.6%20233.4c12.5%2012.5%2012.5%2032.8%200%2045.3l-192%20192c-12.5%2012.5-32.8%2012.5-45.3%200s-12.5-32.8%200-45.3L242.7%20256%2073.4%2086.6c-12.5-12.5-12.5-32.8%200-45.3s32.8-12.5%2045.3%200l192%20192z'/%3e%3c/svg%3e",Gt={hash:"svelte-1al44kl",code:'.nav-button.svelte-1al44kl {height:30px;width:30px;border-radius:100%;background-color:transparent;padding:9px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;pointer-events:auto;border:0;opacity:100%;cursor:pointer;transition-property:background-color, box-shadow, opacity;position:relative;}.nav-button.prev.svelte-1al44kl {transform:rotate(180deg);}.nav-button.hidden.svelte-1al44kl {opacity:0;pointer-events:none;}.nav-button.svelte-1al44kl::before {content:"";position:absolute;top:-8px;right:-8px;bottom:-8px;left:-8px;}.nav-button.svelte-1al44kl img:where(.svelte-1al44kl) {height:100%;}'};function Yt(t,e){t.global.css.add(Gt);const{type:n,hidden:o=!1,onClick:i}=e;t.push(`<button${pt(`nav-button ${dt(n)}`,"svelte-1al44kl",{hidden:o})}${$("aria-label",n)}><img${$("src",Zt)}${$("alt",n)} class="svelte-1al44kl"/></button>`)}const Jt={hash:"svelte-1mxltt0",code:'.steps-indicator-container.svelte-1mxltt0 {width:calc(100% - 32px);position:absolute;bottom:12px;left:16px;animation-duration:0.75s;animation-timing-function:cubic-bezier(0.36, 0, 0, 1);animation-fill-mode:both;animation-delay:0.15s;\n animation-name: svelte-1mxltt0-gallery-steps-appear-anim;}.steps-indicator.svelte-1mxltt0 {--stepSize: 6px;--stepPadding: 7px;padding:4px 0px;display:flex;gap:8px;align-items:center;overflow-x:auto;pointer-events:all;scrollbar-width:none;}.steps-indicator.with-duration.svelte-1mxltt0 .step-button:where(.svelte-1mxltt0) span:where(.svelte-1mxltt0) {position:relative;overflow:hidden;}.steps-indicator.with-duration.svelte-1mxltt0 .step-button:where(.svelte-1mxltt0) span:where(.svelte-1mxltt0):after {transition:0.3s ease-in-out;transition-property:opacity, width;}.step-button.svelte-1mxltt0 {padding:8px 12px;border:#E4E5E8 solid 1px;background-color:#FBFBFB;cursor:pointer;pointer-events:all;flex-shrink:0;border-radius:100px;font-size:12px;font-weight:500;line-height:16px;color:#030303;transition:all 0.3s ease-in-out;outline-color:#3191fc;}.step-button.active.svelte-1mxltt0 {background-color:#014FD3;color:#FFFFFF;box-shadow:none;border-color:#014FD3;}.step-button.active.svelte-1mxltt0:after {opacity:100%;\n animation: svelte-1mxltt0-stepDurationAnimation var(--stepDuration) linear forwards;animation-play-state:running;}.step-button.svelte-1mxltt0:hover:not(.active) {background:#F3F4F6;}.step-button.svelte-1mxltt0:active:not(.active) {background:#E4E5E8;}.step-button.svelte-1mxltt0:focus {outline-offset:4px;outline-width:2px;}.step-button.svelte-1mxltt0 span:where(.svelte-1mxltt0) {display:block;box-sizing:border-box;pointer-events:none;white-space:nowrap;}.step-button.svelte-1mxltt0 span:where(.svelte-1mxltt0):after {content:"";background-color:rgba(0, 0, 0, 0.6);position:absolute;border-radius:var(--stepSize);width:0;height:100%;top:0;left:-100%;opacity:0;transform:translateX(0);animation-play-state:paused;}.step-arrow.svelte-1mxltt0 {max-height:34px;position:absolute;padding-top:4px;padding-bottom:4px;z-index:10;bottom:4px;border:none;background-color:#FFF;pointer-events:none;cursor:pointer;opacity:0;}.step-arrow.svelte-1mxltt0:hover {background:#F6F6F7;}.step-arrow.svelte-1mxltt0:active {background:#E4E5E8;}.step-arrow-prev.svelte-1mxltt0 {padding-right:8px;padding-left:0;left:0;transform:translateX(-100%);\n animation: svelte-1mxltt0-arrow-left-disappear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}.step-arrow-prev.visible.svelte-1mxltt0 {pointer-events:auto;\n animation: svelte-1mxltt0-arrow-left-appear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}.step-arrow-next.svelte-1mxltt0 {padding-right:0;padding-left:8px;right:0;transform:translateX(100%);\n animation: svelte-1mxltt0-arrow-right-disappear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}.step-arrow-next.visible.svelte-1mxltt0 {pointer-events:auto;\n animation: svelte-1mxltt0-arrow-right-appear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}\n\n@keyframes svelte-1mxltt0-gallery-steps-appear-anim {\n from {\n opacity: 0;\n transform: translate(0, 10px);\n }\n to {\n opacity: 1;\n transform: translate(0, 0);\n }\n}\n@keyframes svelte-1mxltt0-gallery-steps-disappear-anim {\n from {\n opacity: 1;\n transform: translate(0, 0);\n }\n to {\n opacity: 0;\n transform: translate(0, 10px);\n }\n}\n@keyframes svelte-1mxltt0-arrow-left-appear {\n from {\n opacity: 0;\n transform: translateX(-100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n@keyframes svelte-1mxltt0-arrow-left-disappear {\n from {\n opacity: 1;\n transform: translateX(0);\n }\n to {\n opacity: 0;\n transform: translateX(-100%);\n }\n}\n@keyframes svelte-1mxltt0-arrow-right-appear {\n from {\n opacity: 0;\n transform: translateX(100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n@keyframes svelte-1mxltt0-arrow-right-disappear {\n from {\n opacity: 1;\n transform: translateX(0);\n }\n to {\n opacity: 0;\n transform: translateX(100%);\n }\n}\n@keyframes svelte-1mxltt0-stepDurationAnimation {\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(100%);\n }\n}'};const Kt="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.01318%203.42005C3.01318%202.06672%204.50652%201.26672%205.66652%201.90672C6.82652%202.54672%2014.0732%206.48672%2014.0732%206.48672C15.2865%207.15339%2015.2865%208.86005%2014.0732%209.52005L5.66652%2014.1001C4.50652%2014.7334%203.01318%2013.9401%203.01318%2012.5801V3.42005ZM3.98652%2012.5801C3.98652%2013.1334%204.63318%2013.5467%205.19985%2013.2401L13.6065%208.66005C14.1399%208.36672%2014.1465%207.63339%2013.6065%207.34005C13.0665%207.04672%205.19985%202.76005%205.19985%202.76005C4.63985%202.44672%203.98652%202.86005%203.98652%203.42005V12.5801Z'%20fill='%23030303'/%3e%3c/svg%3e",Qt="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.8332%2014C10.5598%2014%2010.3332%2013.7733%2010.3332%2013.5V2.5C10.3332%202.22667%2010.5598%202%2010.8332%202C11.1065%202%2011.3332%202.22667%2011.3332%202.5V13.5C11.3332%2013.7733%2011.1065%2014%2010.8332%2014ZM5.1665%2014C4.89317%2014%204.6665%2013.7733%204.6665%2013.5V2.5C4.6665%202.22667%204.89317%202%205.1665%202C5.43984%202%205.6665%202.22667%205.6665%202.5V13.5C5.6665%2013.7733%205.43984%2014%205.1665%2014Z'%20fill='%23030303'/%3e%3c/svg%3e",te={hash:"svelte-a3r6re",code:".pause-button.svelte-a3r6re {position:absolute;top:10px;right:10px;background:#FFFFFF;border-radius:100%;border:1px #C4C8CF solid;padding:0;width:32px;height:32px;display:flex;justify-content:center;align-items:center;pointer-events:auto;transition:background 0.2s ease-in-out;cursor:pointer;outline-color:#3191fc;}.pause-button.svelte-a3r6re:hover {background:#F6F6F7;}.pause-button.svelte-a3r6re:active {background:#E4E5E8;}.pause-button.svelte-a3r6re:focus {outline-offset:8px;outline-width:2px;}.pause-button.svelte-a3r6re img:where(.svelte-a3r6re) {width:16px;height:16px;pointer-events:none;}"};const ee={hash:"svelte-1fv6njc",code:".swiper.svelte-1fv6njc {position:absolute;top:0;left:0;pointer-events:auto;width:100%;height:100%;}"};function ne(t,e){t.global.css.add(ee),t.component((t=>{const{gallery:n,debug:o,onEvent:i}=e,s={color:"#e3e3e3",fadeTime:300,lineWidth:8};t.push(`<div${ut({...f((function(t){const{direction:e}=t.detail;"left"===e?(null==n||n.next(),i("swipe",[-1,0])):"right"===e&&(null==n||n.prev(),i("swipe",[1,0]))}),(()=>({touchAction:"pan-y",plugins:o?[m(s)]:[]}))),class:"swiper"},"svelte-1fv6njc")}></div>`)}))}const oe={hash:"svelte-1rvgxfc",code:".covers-container.svelte-1rvgxfc {position:absolute;top:0;left:0;bottom:0;right:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;display:flex;gap:0.5px;}.covers-container.svelte-1rvgxfc::-webkit-scrollbar {display:none;}.cover-container.svelte-1rvgxfc {position:relative;display:flex;width:100%;height:100%;flex-shrink:0;scroll-snap-align:center;user-select:none;justify-content:center;align-items:center;}.cover-image.svelte-1rvgxfc {width:var(--videoWidth);height:var(--videoHeight);aspect-ratio:var(--videoAspect);object-fit:cover;pointer-events:none;background:#ffffff;}.cover-image.hidden.svelte-1rvgxfc {opacity:0;}.cover-image.hidden.force-show.svelte-1rvgxfc {opacity:1;background:transparent;}.ui-container.svelte-1rvgxfc {position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none;}"};function ie(t,e){t.global.css.add(oe),t.component((t=>{const n=[375,768,1024,1400,1920];let{scrollOffset:o,isMobile:i=!1,gallery:s,debug:l,onEvent:r}=e;const a=q("state");a().playingModulePosition;let c=a().startedPlaying,u=a().currentModulesList,d=u.findIndex((t=>{return e=a().playingModulePosition,n=t.position,e.itemIndex===n.itemIndex&&e.moduleIndex===n.moduleIndex;var e,n}));if(u){t.push("\x3c!--[--\x3e"),t.push('<div class="covers-container svelte-1rvgxfc" style="scroll-behavior: auto;">\x3c!--[--\x3e');const e=ht(u);for(let o=0,a=e.length;o<a;o++){let a=e[o];t.push('<div class="cover-container svelte-1rvgxfc">'),t.push("\x3c!--[--\x3e"),t.push(`<img${pt("cover-image svelte-1rvgxfc",void 0,{hidden:c&&o===d,"force-show":a.showCover})}${$("src",s.getCoverUrl(a.cover,n[n.length-1]))}${$("alt",a.name)}${$("fetchpriority",0===o?"high":"auto")} onload="this.__e=event"/>`),t.push("\x3c!--]--\x3e "),i?(t.push("\x3c!--[--\x3e"),ne(t,{gallery:s,debug:l,onEvent:r})):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e "),null!=a&&a.Component?(t.push("\x3c!--[--\x3e"),t.push('<div class="ui-container svelte-1rvgxfc">\x3c!----\x3e'),a.Component(t,{state:a.state,isMobile:i}),t.push("\x3c!----\x3e</div>")):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</div>")}t.push("\x3c!--]--\x3e</div>")}else t.push("\x3c!--[!--\x3e");t.push("\x3c!--]--\x3e"),function(t,e){for(const o in e){var n;const i=t[o],s=e[o];void 0===i&&void 0!==s&&null!==(n=Object.getOwnPropertyDescriptor(t,o))&&void 0!==n&&n.set&&(t[o]=s)}}(e,{scrollOffset:o})}))}const se="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||{};let le;function re(){const t=se&&se.navigator&&(se.navigator.userAgent||se.navigator.platform||se.navigator.vendor)||"";if(le&&le.ua===t)return le;const e=t.toLowerCase(),n=e.includes("android"),o=e.includes("iphone")||e.includes("ipad")||e.includes("ipod")||e.includes("ios"),i=n||o||e.includes("mobile");return le={ua:t,isMobile:i},le}"undefined"!=typeof window&&window.addEventListener("pageshow",(function(t){t.persisted&&setTimeout((function(){window.location.reload()}),10)}),!1);const ae={hash:"svelte-1n46o8q",code:'.eko-gallery-app.svelte-1n46o8q {position:relative;width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}.eko-gallery-app.svelte-1n46o8q:hover .paging-buttons:where(.svelte-1n46o8q) .nav-button {background-color:#FFFFFF;box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.12);}.eko-gallery-app.svelte-1n46o8q * {box-sizing:border-box;touch-action:pan-y;font-family:"Human BBY Digital", sans-serif;}.player-container.svelte-1n46o8q {position:relative;flex:1;width:100%;pointer-events:none;overflow:hidden;display:flex;align-items:center;justify-content:center;}.player-div.svelte-1n46o8q {position:absolute;width:var(--videoWidth);height:var(--videoHeight);aspect-ratio:var(--videoAspect);}.swipable.svelte-1n46o8q {will-change:transform;transform:translate3d(var(--uiTranformX, 0), 0, 0);}.paging-buttons.svelte-1n46o8q {position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:space-between;align-items:center;pointer-events:none;padding:0 12px;}.paging-buttons.svelte-1n46o8q .nav-button {transition:0.2s ease-in-out;box-shadow:none;}.paging-buttons.svelte-1n46o8q .nav-button img {opacity:0.6;}'};function ce(t,e){t.global.css.add(ae),t.component((t=>{const{EkoPlayer:n,config:o={},debug:i,playerOptions:s,hideNav:l,forceMobile:r=!1,videoAspectRatio:a="unset",onGalleryReady:c=()=>{},onEvent:u=()=>{}}=e;let d=new Bt(o),p=r||re().isMobile,v=0,h={width:"100%",height:"100%"};var g,x;function f(){null==d||d.next()}function m(){null==d||d.prev()}g="state",x=()=>d.state,X("setContext").set(g,x);let b,y=!0;function _(t){var e;(t.push('<div class="eko-gallery-app svelte-1n46o8q">'),o)?(t.push("\x3c!--[--\x3e"),t.push(`<div class="player-container svelte-1n46o8q"${vt(`--uiTranformX: ${v}px;--videoAspect: ${a};--videoWidth: ${h.width};--videoHeight: ${h.height};`)}><div class="player-div swipable svelte-1n46o8q"></div> `),ie(t,{isMobile:p,gallery:d,debug:i,onEvent:u,get scrollOffset(){return v},set scrollOffset(t){v=t,y=!1}}),t.push("\x3c!----\x3e "),p||l?t.push("\x3c!--[!--\x3e"):(t.push("\x3c!--[--\x3e"),t.push('<div class="paging-buttons svelte-1n46o8q">'),Yt(t,{type:"prev",onClick:m}),t.push("\x3c!----\x3e "),Yt(t,{type:"next",onClick:f}),t.push("\x3c!----\x3e</div>")),t.push("\x3c!--]--\x3e "),!p&&(null===(e=d.state.currentItem)||void 0===e?void 0:e.modules.length)>1?(t.push("\x3c!--[--\x3e"),function(t){t.global.css.add(Jt),t.component((t=>{const e=q("state"),n=(()=>{let t=[];return t=e().currentItem.modules.map(((t,n)=>({index:n,type:n===e().activeModuleIndex?"active":"",name:t.name}))),t})();t.push("\x3c!----\x3e");{t.push(`<div class="steps-indicator-container svelte-1mxltt0"><button${pt("step-arrow step-arrow-prev svelte-1mxltt0",void 0,{visible:!1})} aria-label="Scroll to previous steps"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1mxltt0"><path d="M12.8333 16.6668C12.68 16.6668 12.5266 16.5935 12.4266 16.4601L9.42663 12.2935C9.36482 12.2081 9.33154 12.1055 9.33154 12.0001C9.33154 11.8948 9.36482 11.7921 9.42663 11.7068L12.4266 7.54012C12.4651 7.48671 12.5138 7.44142 12.5698 7.40682C12.6259 7.37222 12.6882 7.349 12.7532 7.33848C12.8182 7.32795 12.8846 7.33033 12.9487 7.34549C13.0128 7.36064 13.0732 7.38826 13.1266 7.42678C13.18 7.46531 13.2253 7.51397 13.2599 7.56999C13.2945 7.62602 13.3177 7.68831 13.3283 7.75331C13.3388 7.81831 13.3364 7.88475 13.3213 7.94883C13.3061 8.01291 13.2785 8.07338 13.24 8.12678L10.4466 12.0001L13.2333 15.8735C13.2864 15.9479 13.3181 16.0355 13.3251 16.1267C13.332 16.2179 13.314 16.3092 13.2728 16.3909C13.2316 16.4725 13.1689 16.5414 13.0915 16.59C13.014 16.6386 12.9247 16.6652 12.8333 16.6668Z" fill="#030303" class="svelte-1mxltt0"></path></svg></button> <div${pt("steps-indicator svelte-1mxltt0",void 0,{"with-duration":e().currentModule.hasDuration,paused:e().paused})} role="group" aria-roledescription="Sequence navigation buttons"${vt(`--stepDuration: ${dt(e().currentModule.duration)}s`)}>\x3c!--[--\x3e`);const o=ht(n);for(let e=0,n=o.length;e<n;e++){let n=o[e];t.push(`<button${pt("step-button svelte-1mxltt0",void 0,{active:"active"===n.type})}${$("aria-label",`Go to step $${dt(n.index+1)}`)}><span class="svelte-1mxltt0">${k(n.name)}</span></button>`)}t.push(`\x3c!--]--\x3e</div> <button${pt("step-arrow step-arrow-next svelte-1mxltt0",void 0,{visible:!1})} aria-label="Scroll to next steps"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1mxltt0"><path d="M11.1668 16.6666C11.0668 16.6666 10.9601 16.6333 10.8734 16.5733C10.8199 16.5348 10.7746 16.4862 10.7399 16.4302C10.7053 16.3741 10.682 16.3118 10.6715 16.2468C10.6609 16.1818 10.6634 16.1153 10.6786 16.0512C10.6938 15.9871 10.7215 15.9266 10.7601 15.8733L13.5534 11.9999L10.7601 8.12661C10.6001 7.89994 10.6468 7.59328 10.8734 7.42661C11.1001 7.26661 11.4068 7.31994 11.5734 7.53994L14.5734 11.7066C14.7001 11.8799 14.7001 12.1133 14.5734 12.2933L11.5734 16.4599C11.4734 16.5933 11.3201 16.6666 11.1668 16.6666Z" fill="#030303" class="svelte-1mxltt0"></path></svg></button></div>`)}t.push("\x3c!----\x3e")}))}(t)):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e "),d.state.startedPlaying?(t.push("\x3c!--[--\x3e"),function(t){t.global.css.add(te),t.component((t=>{const e=q("state");t.push(`<button class="pause-button svelte-a3r6re"${$("aria-label",e().paused?"Play":"Pause")}>`),e().paused?(t.push("\x3c!--[--\x3e"),t.push(`<img${$("src",Kt)} alt="Play" class="svelte-a3r6re"/>`)):(t.push("\x3c!--[!--\x3e"),t.push(`<img${$("src",Qt)} alt="Pause" class="svelte-a3r6re"/>`)),t.push("\x3c!--]--\x3e</button>")}))}(t),t.push("\x3c!----\x3e "),i?(t.push("\x3c!--[--\x3e"),t.push('<div style="position: absolute; top: 0; left: 0; width: 100%;"></div>')):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e")):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</div> "),l?t.push("\x3c!--[!--\x3e"):(t.push("\x3c!--[--\x3e"),function(t){t.global.css.add(Ut),t.component((t=>{const e=q("state");t.push('<div class="nav-buttons-container svelte-er27y2"><div class="nav-buttons svelte-er27y2">\x3c!--[--\x3e');const n=ht(e().currentItemsList);for(let o=0,i=n.length;o<i;o++){let i=n[o];t.push(`<button${pt("nav-button svelte-er27y2",void 0,{selected:o===e().activeItemIndex})}><span class="svelte-er27y2">${k(i.name)}</span></button>`)}t.push("\x3c!--]--\x3e</div></div>")}))}(t)),t.push("\x3c!--]--\x3e")):t.push("\x3c!--[!--\x3e");t.push("\x3c!--]--\x3e</div>")}do{y=!0,b=t.copy(),_(b)}while(!y);t.subsume(b)}))}var ue=Object.freeze({__proto__:null,render:function(t){const e=ct(ce,{props:t});return e.head+e.body}});exports.getSsrHtml=async function(t,e){const{render:n}=await Promise.resolve().then((function(){return ue}));return{ssrHtml:n({config:t,hideNav:!0,forceMobile:e})}};
|
|
1
|
+
"use strict";function t(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function e(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(e,n){return e.get(t(e,n))}function o(t,n,o){e(t,n),n.set(t,o)}function i(e,n,o){return e.set(t(e,n),o),o}function s(t,n){e(t,n),n.add(t)}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=r(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}const a=300,c=60,u="none";function d(t,e,n){return t.addEventListener(e,n),()=>t.removeEventListener(e,n)}function p(t,e,n){const{x:o,y:i}=function(t,e){const n=t.getBoundingClientRect();return{x:Math.round(e.clientX-n.left),y:Math.round(e.clientY-n.top)}}(t,e);return{event:e,pointersCount:n.length,target:e.target,x:o,y:i,attachmentNode:t}}function v(t,e,n,o,i){const s=p(t,n,o);return t.dispatchEvent(new CustomEvent(`${e}${i}`,{detail:s})),s}function h(){let t=[],e=()=>{},n=[];return{setPointerControls:(o,i,s,l,r,a=u,c=[])=>{var p;if(i.style.touchAction=(p=a,Array.isArray(p)?p:[p]).join(" "),n=c,n.forEach((e=>{var n;null===(n=e.onInit)||void 0===n||n.call(e,t)})),!t.length){function h(e){t.push(e);const a=v(i,o,e,t,"down");function c(e){const s=t.length;t=function(t,e){return e.filter((e=>t.pointerId!==e.pointerId))}(e,t);if(s>t.length){t.length||(u(),p(),h(),g());const s=v(i,o,e,t,"up");null==r||r(t,e),setTimeout((()=>{n.forEach((e=>{var n;null===(n=e.onUp)||void 0===n||n.call(e,s,t)}))}))}}null==l||l(t,e),setTimeout((()=>{n.forEach((e=>{var n;null===(n=e.onDown)||void 0===n||n.call(e,a,t)}))}));const u=d(i,"pointermove",(e=>{t=t.map((t=>e.pointerId===t.pointerId?e:t));const l=v(i,o,e,t,"move");null==s||s(t,e),n.forEach((e=>{var n;null===(n=e.onMove)||void 0===n||n.call(e,l,t)}))})),p=d(i,"lostpointercapture",(t=>{c(t)})),h=d(i,"pointerup",(t=>{c(t)})),g=d(i,"pointerleave",(t=>{c(t)}))}e=d(i,"pointerdown",h)}return{destroy:()=>{t.length||(e(),n.forEach((t=>{var e;null===(e=t.onDestroy)||void 0===e||e.call(t)})))}}}}}const g="@attach";const x="swipe";function f(t,e,n,o=!1){const{setPointerControls:i}=h(),s=o?x:Symbol(g);return{...n,[`on${x}`]:t,[s]:t=>{const{onDown:n,onUp:o,parameters:s}=function(t,e){const n={timeframe:a,minSwipeDistance:c,touchAction:u,composed:!1,...e};let o,i,s,l;function r(t,e){i=e.clientX,s=e.clientY,o=Date.now(),1===t.length&&(l=e.target)}function d(e,r){if("pointerup"===r.type&&0===e.length&&Date.now()-o<n.timeframe){const e=r.clientX-i,o=r.clientY-s,a=Math.abs(e),c=Math.abs(o);let u=null;a>=2*c&&a>n.minSwipeDistance?u=e>0?"right":"left":c>=2*a&&c>n.minSwipeDistance&&(u=o>0?"bottom":"top"),u&&t.dispatchEvent(new CustomEvent(x,{detail:{direction:u,target:l,pointerType:r.pointerType}}))}}return{onDown:r,onUp:d,parameters:n}}(t,null==e?void 0:e());return i(x,t,null,n,o,s.touchAction,s.plugins).destroy}}}const m=t=>{const e={color:"#00ff00",fadeTime:1e3,zIndex:1e6,lineWidth:4};let n,o,i,s=null,l=!1,r=Date.now();const a={x:void 0,y:void 0};function c(){var a;const u=null!==(a=t.fadeTime)&&void 0!==a?a:e.fadeTime,d=Date.now(),p=d-r;p>u/20&&(s&&o&&i&&n&&(i.drawImage(n,0,0),s.clearRect(0,0,n.width,n.height),s.globalAlpha=1-3*p/u,s.drawImage(o,0,0),s.globalAlpha=1,i.clearRect(0,0,n.width,n.height)),r=d),l&&requestAnimationFrame(c)}function u(t){a.x=t.x,a.y=t.y}function d(){s&&o&&n&&(s.canvas.width=window.innerWidth,s.canvas.height=window.innerHeight,o.width=n.width,o.height=n.height)}function p(r){var a;v(),n=window.document.createElement("canvas"),n.id="svelte-gestures-highlight-plugin",s=n.getContext("2d"),n.style.cssText=`\ndisplay: block; \nwidth: 100dvw;\nheight: 100dvh;\ntop: 0;\nleft: 0;\nposition: fixed;\npointer-events: none;\nz-index: ${null!==(a=t.zIndex)&&void 0!==a?a:e.zIndex};\n`,window.document.body.appendChild(n),window.addEventListener("resize",d),r&&u(r.event),o=document.createElement("canvas"),d(),i=o.getContext("2d"),l=!0,c()}function v(){var t;l=!1,null===(t=window.document.getElementById("svelte-gestures-highlight-plugin"))||void 0===t||t.remove(),window.removeEventListener("resize",d)}return{onMove:n=>{var o,i,l;o=n.event,s&&(s.beginPath(),s.lineWidth=null!==(i=t.lineWidth)&&void 0!==i?i:e.lineWidth,s.lineCap="round",s.strokeStyle=null!==(l=t.color)&&void 0!==l?l:e.color,void 0!==a.x&&void 0!==a.y?(s.moveTo(a.x,a.y),u(o),s.lineTo(a.x,a.y)):u(o),s.stroke())},onDown:t=>{p(t)},onUp:(t,e)=>{0===e.length&&v()},onDestroy:v,onInit:t=>{t.length&&(a.x=void 0,a.y=void 0,p())}}};var b;const y=1,_=2,w=4,F=Symbol(),M=/[&"<]/g,I=/[&<]/g;function k(t,e){const n=String(null!=t?t:""),o=e?M:I;o.lastIndex=0;let i="",s=0;for(;o.test(n);){const t=o.lastIndex-1,e=n[t];i+=n.substring(s,t)+("&"===e?"&":'"'===e?""":"<"),s=t+1}return i+n.substring(s)}const C={translate:new Map([[!0,"yes"],[!1,"no"]])};function E(t,e,n=!1){if("hidden"===t&&"until-found"!==e&&(n=!0),null==e||!e&&n)return"";const o=t in C&&C[t].get(e)||e;return` ${t}${n?"":`="${k(o,!0)}"`}`}function $(t){return"object"==typeof t?function(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=r(t))&&(o&&(o+=" "),o+=e);return o}(t):null!=t?t:""}const S=[..." \t\n\r\f \v\ufeff"];function T(t,e,n){var o=null==t?"":""+t;if(e&&(o=o?o+" "+e:e),n)for(var i in n)if(n[i])o=o?o+" "+i:i;else if(o.length)for(var s=i.length,l=0;(l=o.indexOf(i,l))>=0;){var r=l+s;0!==l&&!S.includes(o[l-1])||r!==o.length&&!S.includes(o[r])?l=r:o=(0===l?"":o.substring(0,l))+o.substring(r+1)}return""===o?null:o}function j(t,e=!1){var n=e?" !important;":";",o="";for(var i in t){var s=t[i];null!=s&&""!==s&&(o+=" "+i+": "+s+n)}return o}function P(t){return"-"!==t[0]||"-"!==t[1]?t.toLowerCase():t}function A(t,e){if(e){var n,o,i="";if(Array.isArray(e)?(n=e[0],o=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,r=!1,a=[];n&&a.push(...Object.keys(n).map(P)),o&&a.push(...Object.keys(o).map(P));var c=0,u=-1;const e=t.length;for(var d=0;d<e;d++){var p=t[d];if(r?"/"===p&&"*"===t[d-1]&&(r=!1):s?s===p&&(s=!1):"/"===p&&"*"===t[d+1]?r=!0:'"'===p||"'"===p?s=p:"("===p?l++:")"===p&&l--,!r&&!1===s&&0===l)if(":"===p&&-1===u)u=d;else if(";"===p||d===e-1){if(-1!==u){var v=P(t.substring(c,u).trim());if(!a.includes(v))";"!==p&&d++,i+=" "+t.substring(c,d).trim()+";"}c=d+1,u=-1}}}return n&&(i+=j(n)),o&&(i+=j(o,!0)),""===(i=i.trim())?null:i}return null==t?null:String(t)}const L=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};const z=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];function O(t){return z.includes(t)}const D="\x3c!--[--\x3e",B="\x3c!--]--\x3e";let W=null;var R=null;function N(t){R=t}function q(t){return X().get(t)}function X(t){var e,n;return null===R&&function(){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),null!==(n=(e=R).c)&&void 0!==n?n:e.c=new Map(function(t){let e=t.p;for(;null!==e;){const t=e.c;if(null!==t)return t;e=e.p}return null}(R)||void 0)}function H(t){R={p:R,c:null,r:null}}function V(){R=R.p}var U=new WeakMap,Z=new WeakMap,G=new WeakMap,Y=new WeakMap,J=new WeakSet;class K{constructor(t,e){s(this,J),o(this,U,[]),o(this,Z,void 0),o(this,G,!1),l(this,"type",void 0),o(this,Y,void 0),l(this,"promise",void 0),l(this,"global",void 0),l(this,"local",void 0),i(Y,this,e),this.global=t,this.local=e?{...e.local}:{select_value:void 0},this.type=e?e.type:"body"}head(t){const e=new K(this.global,this);e.type="head",n(U,this).push(e),e.child(t)}async_block(t,e){n(U,this).push(D),this.async(t,e),n(U,this).push(B)}async(t,e){let n=e;if(t.length>0){const o=R;n=n=>Promise.all(t).then((()=>{const t=R;try{return N(o),e(n)}finally{N(t)}}))}this.child(n)}run(t){const e=R;let n=Promise.resolve(t[0]());const o=[n];for(const i of t.slice(1))n=n.then((()=>{const t=R;N(e);try{return i()}finally{N(t)}})),o.push(n);return o}child(t){const e=new K(this.global,this);n(U,this).push(e);const o=R;N({...R,p:o,c:null,r:e});const i=t(e);return N(o),i instanceof Promise&&("sync"===e.global.mode&&function(){const t=new Error("await_invalid\nEncountered asynchronous work while rendering synchronously.\nhttps://svelte.dev/e/await_invalid");throw t.name="Svelte error",t}(),i.catch((()=>{})),e.promise=i),e}component(t,e){H();const n=this.child(t);i(G,n,!0),V()}select(t,e,n,o,i,s,l){const{value:r,...a}=t;this.push(`<select${ut(a,n,o,i,s)}>`),this.child((t=>{t.local.select_value=r,e(t)})),this.push((l?"<!>":"")+"</select>")}option(e,o,i,s,l,r,a){n(U,this).push(`<option${ut(e,i,s,l,r)}`);const c=(t,o,{head:i,body:s})=>{"value"in e&&(o=e.value),o===this.local.select_value&&n(U,t).push(" selected"),n(U,t).push(`>${s}${a?"<!>":""}</option>`),i&&t.head((t=>t.push(i)))};"function"==typeof o?this.child((e=>{const n=new K(this.global,this);if(o(n),"async"===this.global.mode)return t(J,n,it).call(n).then((t=>{c(e,t.body.replaceAll("\x3c!----\x3e",""),t)}));{const o=t(J,n,ot).call(n);c(e,o.body.replaceAll("\x3c!----\x3e",""),o)}})):c(this,o,{body:o})}title(e){const n=this.get_path(),o=t=>{this.global.set_title(t,n)};this.child((n=>{const i=new K(n.global,n);if(e(i),"async"===n.global.mode)return t(J,i,it).call(i).then((t=>{o(t.head)}));{const e=t(J,i,ot).call(i);o(e.head)}}))}push(t){"function"==typeof t?this.child((async e=>e.push(await t()))):n(U,this).push(t)}on_destroy(t){var e;(null!==(e=n(Z,this))&&void 0!==e?e:i(Z,this,[])).push(t)}get_path(){return n(Y,this)?[...n(Y,this).get_path(),n(U,n(Y,this)).indexOf(this)]:[]}copy(){const t=new K(this.global,n(Y,this));return i(U,t,n(U,this).map((t=>t instanceof K?t.copy():t))),t.promise=this.promise,t}subsume(t){if(this.global.mode!==t.global.mode)throw new Error("invariant: A renderer cannot switch modes. If you're seeing this, there's a compiler bug. File an issue!");this.local=t.local,i(U,this,n(U,t).map((t=>(t instanceof K&&t.subsume(t),t)))),this.promise=t.promise,this.type=t.type}get length(){return n(U,this).length}static render(t,e={}){let n;const o={};return Object.defineProperties(o,{html:{get:()=>{var o;return(null!==(o=n)&&void 0!==o?o:n=nt.call(K,t,e)).body}},head:{get:()=>{var o;return(null!==(o=n)&&void 0!==o?o:n=nt.call(K,t,e)).head}},body:{get:()=>{var o;return(null!==(o=n)&&void 0!==o?o:n=nt.call(K,t,e)).body}},hashes:{value:{script:""}},then:{value:(o,i)=>{{var s;const i=null!==(s=n)&&void 0!==s?s:n=nt.call(K,t,e),l=o({head:i.head,body:i.body,html:i.body,hashes:{script:[]}});return Promise.resolve(l)}}}}),o}}function*Q(){for(const e of t(J,this,tt).call(this))yield*t(J,e,et).call(e)}function*tt(){for(const e of n(U,this))"string"!=typeof e&&(yield*t(J,e,tt).call(e));n(G,this)&&(yield this)}function*et(){if(n(Z,this))for(const t of n(Z,this))yield t;for(const e of n(U,this))e instanceof b&&!n(G,e)&&(yield*t(J,e,et).call(e))}function nt(e,n){var o,i=R;try{const o=st.call(b,"sync",e,n),i=t(J,o,ot).call(o);return lt.call(b,i,o)}finally{null===(o=W)||void 0===o||o.abort(L),W=null,N(i)}}function ot(e={head:"",body:""}){for(const o of n(U,this))"string"==typeof o?e[this.type]+=o:o instanceof b&&t(J,o,ot).call(o,e);return e}async function it(e={head:"",body:""}){await this.promise;for(const o of n(U,this))"string"==typeof o?e[this.type]+=o:o instanceof b&&await t(J,o,it).call(o,e);return e}function st(t,e,n){var o;const i=new b(new rt(t,n.idPrefix?n.idPrefix+"-":"",n.csp));return i.push(D),n.context&&(H(),R.c=n.context,R.r=i),e(i,null!==(o=n.props)&&void 0!==o?o:{}),n.context&&V(),i.push(B),i}function lt(e,n){for(const e of t(J,n,Q).call(n))e();let o=e.head+n.global.get_title(),i=e.body;for(const{hash:t,code:e}of n.global.css)o+=`<style id="${t}">${e}</style>`;return{head:o,body:i,hashes:{script:n.global.csp.script_hashes}}}b=K;class rt{csp;mode;uid;css=new Set;#t={path:[],value:""};constructor(t,e="",n={hash:!1}){this.mode=t,this.csp={...n,script_hashes:[]};let o=1;this.uid=()=>`${e}s${o++}`}get_title(){return this.#t.value}set_title(t,e){const n=this.#t.path;let o=0,i=Math.min(e.length,n.length);for(;o<i&&e[o]===n[o];)o+=1;void 0!==e[o]&&(void 0===n[o]||e[o]>n[o])&&(this.#t.path=e,this.#t.value=t)}}const at=/[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;function ct(t,e={}){var n;return null!==(n=e.csp)&&void 0!==n&&n.hash&&e.csp.nonce&&function(){const t=new Error("invalid_csp\n`csp.nonce` was set while `csp.hash` was `true`. These options cannot be used simultaneously.\nhttps://svelte.dev/e/invalid_csp");throw t.name="Svelte error",t}(),K.render(t,e)}function ut(t,e,n,o,i=0){o&&(t.style=A(t.style,o)),t.class&&(t.class=$(t.class)),(e||n)&&(t.class=T(t.class,e,n));let s,l="";const r=!(i&y),a=!(i&_),c=!!(i&w);for(s in t)if("function"!=typeof t[s]&&("$"!==s[0]||"$"!==s[1])&&!at.test(s)){var u=t[s];a&&(s=s.toLowerCase()),c&&("defaultvalue"===s||"defaultchecked"===s)&&(s="defaultvalue"===s?"value":"checked",t[s])||(l+=E(s,u,r&&O(s)))}return l}function dt(t){return"string"==typeof t?t:null==t?"":t+""}function pt(t,e,n){var o=T(t,e,n);return o?` class="${k(o,!0)}"`:""}function vt(t,e){var n=A(t,e);return n?` style="${k(n,!0)}"`:""}function ht(t){return t?void 0!==t.length?t:Array.from(t):[]}function gt(t){const e=function(t){let e=F;return()=>(e===F&&(e=t()),e)}(t);let n;return function(t){var o;return 0===arguments.length?null!==(o=n)&&void 0!==o?o:e():(n=t,n)}}function xt(t,{include:e,exclude:n}={}){const o=t=>{const o=e=>"string"==typeof e?t===e:e.test(t);return e?e.some(o):!n||!n.some(o)};for(const[e,n]of(t=>{const e=new Set;do{for(const n of Reflect.ownKeys(t))e.add([t,n])}while((t=Reflect.getPrototypeOf(t))&&t!==Object.prototype);return e})(t.constructor.prototype)){if("constructor"===n||!o(n))continue;const i=Reflect.getOwnPropertyDescriptor(e,n);i&&"function"==typeof i.value&&(t[n]=t[n].bind(t))}return t}function ft(t,e){t.getNodesAtTime(0)[0].once("nodestart",e)}class mt{constructor({position:t,galleryState:e,config:n}){this.config=n,this.position=t,this.galleryState=e,this.name=n.name;const{variantId:o,itemIndex:i,moduleIndex:s}=t;this.id=`${n.itemType}_${o}_${i}_${s}`,xt(this)}#e={};#n=null;#o=!1;#i=null;id;player;position;config;timeline;moduleEndListener;hasDuration=!1;coverAssets=[];get state(){return this.#e}set state(t){this.#e=t}get cover(){return this.#n}set cover(t){this.#n=t}get showCover(){return this.#o}set showCover(t){this.#o=t}get Component(){return this.#i}set Component(t){this.#i=t}emitModuleEnd(){var t;null===(t=this.moduleEndListener)||void 0===t||t.call(this)}start(t){this.player=t}setPosition(){this.galleryState.playingModulePosition=this.position}play(){ft(this.timeline,(()=>{this.setPosition()})),this.player.switchTimeline(this.timeline)}get duration(){return this.hasDuration?this.timeline.placements.reduce(((t,e)=>t+this.player.getNode(e.nodeId).duration),0):0}}function bt(t,e,n){var o,i,s;const l=(null==e||null===(o=e.entity)||void 0===o?void 0:o.entityId)||(null==e?void 0:e.assetId),r=null!==(i=null==e||null===(s=e.entity)||void 0===s?void 0:s.entityRevision)&&void 0!==i?i:null==e?void 0:e.assetRevision;return n.addNode({id:t,manifestRef:{type:"assets-delivery-service",assetId:l,assetRevision:r,availableEncodeProfiles:e.availableEncodeProfiles}})}const yt={hash:"svelte-wejicf",code:".step-description-container.svelte-wejicf {width:100%;position:absolute;bottom:0;display:flex;justify-content:space-between;gap:8px;box-sizing:border-box;font-size:12px;font-weight:400;font-style:normal;line-height:16px;letter-spacing:0px;overflow:hidden;pointer-events:none;background:linear-gradient(\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.9) 27.79%,\n rgba(255, 255, 255, 0.95) 100%\n );&.expanded {flex-direction:column;justify-content:flex-start;}&:not(.expanded) {button:where(.svelte-wejicf) {line-height:16px;}}}.expanded-text-content.svelte-wejicf:not([hidden]) {display:flex;flex-direction:column;gap:8px;}button.svelte-wejicf {background:none;border:none;padding:0;cursor:pointer;line-height:18px;gap:8px;letter-spacing:0%;color:#014FD3;font-size:12px;font-weight:500;flex-shrink:0;text-align:left;font-family:inherit;pointer-events:auto;}h3.svelte-wejicf, p.svelte-wejicf, span.svelte-wejicf {color:#030303;}.text-wrapper.svelte-wejicf {width:100%;}.text-box-title.svelte-wejicf {margin:0;font-weight:500;font-size:12px;}.text-box-description.svelte-wejicf {margin:0;text-align:left;font-weight:400;}.minimized-description.svelte-wejicf {overflow:hidden;line-clamp:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-weight:400;}.expand-description-button.svelte-wejicf {width:100%;display:flex;justify-content:space-between;gap:6px;flex-wrap:nowrap;.read-more-cta:where(.svelte-wejicf) {color:#014FD3;flex-shrink:0;}}"};function _t(t,e){t.global.css.add(yt),t.component((t=>{let{textBox:n=null,isMobile:o=!1}=e,i=(null==n?void 0:n.title)||"",s=(null==n?void 0:n.description)||"",l=o?16:18;i||s?(t.push("\x3c!--[--\x3e"),t.push(`<section${pt(`step-description-container ${dt("")}`,"svelte-wejicf")}${vt(`padding: ${o?"8px 16px":"16px 16px 56px 16px"};`)} aria-label="Feature description" aria-live="polite"><div class="text-wrapper svelte-wejicf"><div class="expanded-text-content svelte-wejicf"${vt(`line-height: ${l}px;`)}${E("hidden",!0)}>`),o?(t.push("\x3c!--[--\x3e"),t.push(`<h3 class="text-box-title svelte-wejicf">${k(i)}</h3>`)):t.push("\x3c!--[!--\x3e"),t.push(`\x3c!--]--\x3e <p class="text-box-description svelte-wejicf">${k(s)}</p></div> `),t.push("\x3c!--[--\x3e"),t.push(`<button class="expand-description-button svelte-wejicf"${vt(`line-height: ${l}px;`)} aria-expanded="false" aria-controls="expanded-text-content" aria-label="Expand feature description">`),o&&i?(t.push("\x3c!--[--\x3e"),t.push(`<span class="text-box-title svelte-wejicf">${k(i)}</span>`)):(t.push("\x3c!--[!--\x3e"),t.push(`<span class="text-box-description minimized-description svelte-wejicf">${k(s)}</span>`)),t.push("\x3c!--]--\x3e "),o?(t.push("\x3c!--[--\x3e"),t.push('<span class="read-more-cta svelte-wejicf" aria-hidden="true">Read more</span>')):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</button>"),t.push("\x3c!--]--\x3e</div> "),t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</section>")):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e")}))}function wt(t,e){const{state:n,isMobile:o}=e,{textBox:i}=n;_t(t,{textBox:i,isMobile:o})}const Ft={hash:"svelte-16pmvvn",code:".eko-gallery-app {--toggleModule_gap: 8px;--toggleModule_padding: 10px 58px 0 0;--toggleModule_options_padding: 0;--toggleModule_options_height: auto;--toggleModule_options_width: 100%;--toggleModule_options_gap: 8px;--toggleModule_button_backgroundColor: #FFFFFF;--toggleModule_button_padding: 8px 12px;--toggleModule_button_boxShadow: 0px 2px 8px 2px rgba(0, 0, 0, 0.07);--toggleModule_button_text_fontFamily: var(--fontName);--toggleModule_button_text_fontSize: 12px;--toggleModule_button_text_fontWeight: 400;--toggleModule_button_text_fontStyle: normal;--toggleModule_button_text_lineHeight: 16px;--toggleModule_button_text_letterSpacing: -0.2px;--toggleModule_button_text_color: #000;--toggleModule_button_border_radius: 100px;--toggleModule_title_fontFamily: var(--fontName);--toggleModule_title_fontSize: 13px;--toggleModule_title_fontWeight: 400;--toggleModule_title_fontStyle: normal;--toggleModule_title_lineHeight: 120%;--toggleModule_title_letterSpacing: 0;--toggleModule_title_color: #666;--toggleModule_title_textAlignment: center;--toggleModule_note_fontFamily: var(--fontName);--toggleModule_note_fontSize: 12px;--toggleModule_note_fontWeight: 400;--toggleModule_note_fontStyle: normal;--toggleModule_note_lineHeight: 120%;--toggleModule_note_letterSpacing: 0;--toggleModule_note_color: #888;--toggleModule_note_topMargin: 4px;}.toggle-container.svelte-16pmvvn {position:absolute;top:0;padding:var(--toggleModule_padding);width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--toggleModule_gap);pointer-events:auto;box-sizing:border-box;}.toggle-options.svelte-16pmvvn {width:var(--toggleModule_options_width);height:var(--toggleModule_options_height);padding:var(--toggleModule_options_padding);gap:var(--toggleModule_options_gap);display:flex;justify-content:end;margin:0;}.toggle-option-container.svelte-16pmvvn {position:relative;min-width:0;}.toggle-option-button.svelte-16pmvvn {border-radius:var(--toggleModule_button_borderRadius);font-family:var(--toggleModule_button_text_fontFamily);font-size:var(--toggleModule_button_text_fontSize);font-weight:var(--toggleModule_button_text_fontWeight);font-style:var(--toggleModule_button_text_fontStyle);line-height:var(--toggleModule_button_text_lineHeight);letter-spacing:var(--toggleModule_button_text_letterSpacing);color:var(--toggleModule_button_text_color);padding:var(--toggleModule_button_padding);border:#E4E5E8 solid 1px;background:#FBFBFB;display:flex;width:100%;height:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;cursor:pointer;position:relative;transition:all 0.3s ease-in-out;animation-duration:0.5s;animation-timing-function:cubic-bezier(0.36, 0, 0, 1);animation-fill-mode:both;animation-delay:calc(var(--button-index) * 90ms);\n animation-name: svelte-16pmvvn-button-back-appear-anim;transform-origin:bottom center;border-radius:var(--toggleModule_button_border_radius);}.toggle-option-button.selected.svelte-16pmvvn {box-shadow:none;color:#FFFFFF;background:#014FD3;border-color:#014FD3;}.toggle-option-button.svelte-16pmvvn:hover:not(.selected) {background:#F3F4F6;}.toggle-option-button.svelte-16pmvvn:active:not(.selected) {background:#E4E5E8;}.toggle-option-button.svelte-16pmvvn:focus {outline-offset:4px;outline-width:2px;}\n\n@keyframes svelte-16pmvvn-button-back-appear-anim {\n from {\n transform: scale(0);\n }\n to {\n transform: scale(1);\n }\n}\n@keyframes svelte-16pmvvn-optionNoteIn {\n 0% {\n opacity: 0;\n translate: -50% -5px;\n }\n 100% {\n opacity: 1;\n translate: -50% var(--toggleModule_note_topMargin);\n }\n}"};function Mt(t,e){t.global.css.add(Ft);const{state:n,isMobile:o}=e,{options:i,currentOptionIndex:s,onOptionClicked:l,textBox:r}=n;t.push(`<div class="toggle-container svelte-16pmvvn"><div${pt(`toggle-options selected-${dt(s)}`,"svelte-16pmvvn")}>\x3c!--[--\x3e`);const a=ht(i);for(let e=0,n=a.length;e<n;e++){let n=a[e];t.push(`<div class="toggle-option-container svelte-16pmvvn"${vt(`--button-index: ${dt(e)};`)}><button${pt("toggle-option-button svelte-16pmvvn",void 0,{selected:s===e})}>${k(n.label)}</button></div>`)}t.push("\x3c!--]--\x3e</div></div> "),r?(t.push("\x3c!--[--\x3e"),_t(t,{textBox:r,isMobile:o})):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e")}var It=new WeakSet;function kt(t){var e,n;t!==this.state.currentOptionIndex&&(this.state.currentOptionIndex=t,this.state.textBox=this.config.options[t].textBox,this.cover=this.coverAssets[t],this.synced?this.switchTo(t):(this.timeline=null===(e=this.timelines)||void 0===e?void 0:e[t],this.showCover=!0,ft(this.timeline,(()=>{this.showCover=!1})),null===(n=this.player)||void 0===n||n.switchTimeline(this.timeline)))}const Ct={hash:"svelte-16kucsb",code:".eko-gallery-app {--tryItModule_justifyContent: center;--tryItModule_alignItems: flex-end;--tryItModule_padding: 16px 20px 48px 20px;--tryItModule_button_padding: 16px 32px;--tryItModule_button_textAlign: center;--tryItModule_button_borderRadius: 100px;--tryItModule_button_border: 0;--tryItModule_button_boxShadow: 0 4px 24px 2px rgba(0, 0, 0, 0.12);--tryItModule_button_background: #FFFFFF;--tryItModule_button_text_fontFamily: var(--fontName);--tryItModule_button_text_fontSize: 18px;--tryItModule_button_text_color: #222;--tryItModule_button_text_weight: 500;--tryItModule_button_text_lineHeight: 120%;--tryItModule_button_text_letterSpacing: -0.1px;}.tryIt-container.svelte-16kucsb {position:relative;padding:var(--tryItModule_padding);width:100%;height:100%;box-sizing:border-box;display:flex;justify-content:var(--tryItModule_justifyContent);align-items:var(--tryItModule_alignItems);}.tryIt-container.svelte-16kucsb button:where(.svelte-16kucsb) {padding:var(--tryItModule_button_padding);text-align:var(--tryItModule_button_textAlign);border-radius:var(--tryItModule_button_borderRadius);border:var(--tryItModule_button_border);background:var(--tryItModule_button_background);box-shadow:var(--tryItModule_button_boxShadow);font-family:var(--tryItModule_button_text_fontFamily);font-size:var(--tryItModule_button_text_fontSize);color:var(--tryItModule_button_text_color);font-weight:var(--tryItModule_button_text_weight);line-height:var(--tryItModule_button_text_lineHeight);letter-spacing:var(--tryItModule_button_text_letterSpacing);cursor:pointer;opacity:0;overflow:hidden;}.tryIt-container.svelte-16kucsb button:where(.svelte-16kucsb) div:where(.svelte-16kucsb) {opacity:0;}"};function Et(t,e){t.global.css.add(Ct),t.component((t=>{const{state:n}=e,{ctaText:o,animationConfig:i,showCta:s,onCtaClick:l}=n;t.push('<div class="tryIt-container svelte-16kucsb">'),s?(t.push("\x3c!--[--\x3e"),t.push(`<button${vt(`pointer-events: ${dt("none")}`)} class="svelte-16kucsb"><div class="svelte-16kucsb">${k(o)}</div></button>`)):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</div>")}))}var $t=new WeakSet;function St(){this.mainTimeline?this.player.switchTimeline(this.mainTimeline):this.emitModuleEnd(),this.state.showCta=!1}const Tt={videoModule:class extends mt{constructor({config:t,...e}){var n;super({...e,config:t}),this.Component=wt,this.hasDuration=!t.loop,xt(this),this.coverAssets.push(null!==(n=t.intro)&&void 0!==n?n:t.video),this.cover=this.coverAssets[0],this.state={textBox:t.textBox}}start(t){super.start(t),this.timeline=t.createTimeline();const e=this.config;e.intro&&this.timeline.placeOnTimeline(bt(`${this.id}_intro`,e.intro,t),"end");const n=bt(this.id,e.video,t);this.timeline.placeOnTimeline(n,"end",{loop:e.loop}),e.loop||n.on("nodeend",this.emitModuleEnd)}},toggleModule:class extends mt{constructor({config:e,...n}){super({...n,config:e}),s(this,It),this.Component=Mt,this.synced=e.sync,this.switchTo=()=>{},xt(this),this.coverAssets=e.options.map((t=>{var e;return null!==(e=t.intro)&&void 0!==e?e:t.video})),this.cover=this.coverAssets[0],this.state={options:e.options.map((t=>({label:t.label,note:t.note}))),currentOptionIndex:0,onOptionClicked:t(It,this,kt).bind(this),textBox:e.options[0].textBox}}start(t){super.start(t),this.synced?(this.timeline=t.createTimeline(),this.config.options.forEach(((e,n)=>{this.timeline.placeOnTimeline(bt(`${this.id}_option_${n}`,e.video,t),0,{loop:!0})})),this.timeline.placeRenderNodeOnTimeline("switch",0,1/0,{params:{switchCrossfadeSeconds:.25,initSwitching:({switchTo:t})=>{this.switchTo=t,t(this.state.currentOptionIndex,{crossfadeSeconds:0})}}})):(this.timelines=this.config.options.map(((e,n)=>{const o=t.createTimeline();return e.intro&&o.placeOnTimeline(bt(`${this.id}_option_${n}_intro`,e.intro,t),"end"),o.placeOnTimeline(bt(`${this.id}_option_${n}`,e.video,t),"end",{loop:!0}),o})),this.timeline=this.timelines[this.state.currentOptionIndex])}},tryItModule:class extends mt{constructor({config:e,...n}){var o;super({...n,config:e}),s(this,$t),xt(this);const{introVideo:i}=e;this.coverAssets.push(null!==(o=i.intro)&&void 0!==o?o:i.loop),this.cover=this.coverAssets[0],this.state={ctaText:e.ctaText,animationConfig:e.animationConfig,showCta:!0,onCtaClick:t($t,this,St).bind(this)}}start(t){super.start(t),this.Component=Et,this.timeline=t.createTimeline();const{introVideo:e,mainVideo:n}=this.config;if(e.intro&&this.timeline.placeOnTimeline(bt(`${this.id}_intro_intro`,e.intro,t)),this.timeline.placeOnTimeline(bt(`${this.id}_intro_loop`,e.loop,t),"end",{loop:!0}),n){this.mainTimeline=t.createTimeline(),n.intro&&this.mainTimeline.placeOnTimeline(bt(`${this.id}_main_intro`,n.intro,t));const e=bt(`${this.id}_main_loop`,n.loop,t);this.mainTimeline.placeOnTimeline(e,"end",{loop:!0})}}play(){this.state.showCta=!0,super.play()}}};class jt{#s={};#l="ekonovar";#r=0;#a=0;#c={itemIndex:0,moduleIndex:0};#u=gt((()=>{var t;return null===(t=this.#s)||void 0===t?void 0:t[this.#l]}));#d=gt((()=>{var t;return null===(t=this.#u())||void 0===t?void 0:t[this.#r]}));#p=gt((()=>{var t,e;return this.#v?null===(e=this.#u())||void 0===e?void 0:e[this.#c.itemIndex].modules[this.#c.moduleIndex]:null===(t=this.#d())||void 0===t?void 0:t.modules[this.#a]}));#h=gt((()=>{var t;return(null===(t=this.#u())||void 0===t?void 0:t.flatMap((t=>t.modules)))||[]}));#g=!1;#x=!1;#v=!1;#f=gt((()=>!(this.#c.itemIndex===this.activeItemIndex&&this.#c.moduleIndex===this.activeModuleIndex)));set variants(t){this.#s=t}set activeVariant(t){this.#l=t}set activeItemIndex(t){this.#r=t}set activeModuleIndex(t){this.#a=t}set playingModulePosition(t){this.#c=t}set playerLoaded(t){this.#g=t}set paused(t){this.#x=t}set startedPlaying(t){this.#v=t}get variants(){return this.#s}get activeVariant(){return this.#l}get activeItemIndex(){return this.#r}get activeModuleIndex(){return this.#a}get playingModulePosition(){return this.#c}get currentItemsList(){return this.#u()}get currentItem(){return this.#d()}get currentModule(){return this.#p()}get playerLoaded(){return this.#g}get paused(){return this.#x}get startedPlaying(){return this.#v}get seeking(){return this.#f()}get currentModulesList(){return this.#h()}}const Pt={assetsDeliveryBase:"https://{{env}}assets.eko.com"},At=2,Lt=5,zt=["version","selectItem","selectItemAndStep","next","prev","subscribe"];var Ot=new WeakMap,Dt=new WeakMap,Bt=new WeakMap,Wt=new WeakMap,Rt=new WeakSet;class Nt{constructor(e){var n,r,a;s(this,Rt),o(this,Ot,void 0),o(this,Dt,void 0),o(this,Bt,void 0),o(this,Wt,void 0),l(this,"public",void 0),l(this,"version","0.0.8"),xt(this),i(Bt,this,e),i(Ot,this,new jt(null==e||null===(n=e.options)||void 0===n?void 0:n.galleryEnv)),i(Wt,this,((t="")=>("production"===t&&(t=""),Object.fromEntries(Object.entries(Pt).map((([e,n])=>[e,n.replaceAll("{{env}}",t)])))))(null==e||null===(r=e.options)||void 0===r?void 0:r.galleryEnv)),i(Dt,this,[]);const c=null==e||null===(a=e.instance)||void 0===a||null===(a=a.data)||void 0===a||null===(a=a.blocks)||void 0===a||null===(a=a.blocksArr)||void 0===a||null===(a=a.find((t=>"GalleryBlock"===t.blockType)))||void 0===a?void 0:a.config;var u;c?(t(Rt,this,qt).call(this,c.items),t(Rt,this,Xt).call(this,c.items)):console.warn("[eko-gallery-app] Gallery initiated without an instance, results will be empty"),this.public=(u=this,zt.reduce(((t,e)=>{if(!(e in u))throw new Error(`[eko-gallery-app] Public API member "${e}" does not exist on GalleryLogic`);const n=u[e];return t[e]="function"==typeof n?n.bind(u):n,t}),{}))}start(e){n(Ot,this).playerLoaded=!0,n(Dt,this).forEach((t=>{t.start(e)})),i(Dt,this,null),t(Rt,this,Ht).call(this,e),n(Ot,this).currentModule.play()}selectItem(t){const e=n(Ot,this);t!==e.activeItemIndex&&(e.activeItemIndex=t,e.activeModuleIndex=0)}selectItemAndStep(t,e){const o=n(Ot,this);t===o.activeItemIndex&&e===o.activeModuleIndex||(o.activeItemIndex=t,o.activeModuleIndex=e)}next(){t(Rt,this,Ut).call(this)}prev(){const t=n(Ot,this);if(t.activeModuleIndex=t.activeModuleIndex-1,!t.currentItem.modules[t.activeModuleIndex])if(t.currentItemsList[t.activeItemIndex-1]){t.activeItemIndex=t.activeItemIndex-1;const e=t.currentItemsList[t.activeItemIndex];t.activeModuleIndex=e.modules.length-1}else t.activeModuleIndex=t.activeModuleIndex+1}subscribe(t){return n(Ot,this),()=>{}}getCoverUrl(t,e){var o,i,s,l;const r=(null==t||null===(o=t.entity)||void 0===o?void 0:o.entityId)||(null==t?void 0:t.assetId),a=null!==(i=null==t||null===(s=t.entity)||void 0===s?void 0:s.entityRevision)&&void 0!==i?i:null==t?void 0:t.assetRevision;if(!r)throw new Error(`[getCoverUrl] No assetId found in assetConfig: ${JSON.stringify(t||{},null,2)}`);if(!a&&0!==a)throw new Error(`[getCoverUrl] No assetRevision found for asset ${r}.`);let c;return null!==(l=n(Bt,this))&&void 0!==l&&null!==(l=l.coverAssetsMap)&&void 0!==l&&l[r]?(c=new URL(n(Bt,this).coverAssetsMap[r]),/^[a-z0-9]*assets.eko.com$/.test(c.host)&&e&&(c.pathname=c.pathname.replace(".png",".webp"))):(c=new URL(`${n(Wt,this).assetsDeliveryBase}/image/${r}/${a}?startOffset=0`),c.pathname+=e?".webp":".png"),e&&c.searchParams.set("width",e),c.href}get currentConfig(){return n(Bt,this)}get state(){return n(Ot,this)}get urls(){return n(Wt,this)}}function qt(t){const e={};for(let n of t)for(let t of Object.keys(n.variants||{}))e[t]=[];e.ekonovar=[],n(Ot,this).variants=e}function Xt(e){const o=(e=[],o)=>{const i=[];for(let[s,l]of e.entries()){if(!Tt[l.itemType])throw new Error(`Unknown module type ${l.itemType}`);const e=new Tt[l.itemType]({position:{...o,moduleIndex:s},config:l,galleryState:n(Ot,this)});e.moduleEndListener=t(Rt,this,Vt).bind(this),i.push(e)}return i};for(const[t,l]of e.entries())if("galleryItemV2"===l.itemType){const{modules:e,...r}=l;for(const[a,c]of Object.entries(n(Ot,this).variants)){var s;if(null===(s=l.variants)||void 0===s?void 0:s[a])console.log("NO IMPLEMENTED");else{const s={...r};s.modules=o(e,{variantId:a,itemIndex:t}),i(Dt,this,[...n(Dt,this),...s.modules]),c.push(s)}}}}function Ht(t){for(const[,e]of Object.entries(n(Ot,this).variants))for(const[n,o]of e.entries()){const i=o.modules,s=e.filter((t=>t!==o)).map((t=>t.modules[0]));for(const[o,l]of i.entries()){let r=i[o+1];r||(r=e[(n+1)%e.length].modules[0]);const a=r.timeline.getNodesAtTime(0)[0],c=s.filter((t=>t!==r)).map((t=>t.timeline.getNodesAtTime(0)[0])),u=[{nodeId:a.id,weight:At},...c.map((t=>({nodeId:t.id,weight:Lt})))];for(const e of l.timeline.placements){t.getNode(e.nodeId).setChildren(u)}}}}function Vt(){const e=n(Ot,this),o=e.currentItem.modules;o.length>1&&e.activeModuleIndex===o.length-1?e.activeModuleIndex=0:t(Rt,this,Ut).call(this)}function Ut(){const t=n(Ot,this);t.activeModuleIndex=t.activeModuleIndex+1,t.currentItem.modules[t.activeModuleIndex]||(t.currentItemsList[t.activeItemIndex+1]?(t.activeItemIndex=t.activeItemIndex+1,t.activeModuleIndex=0):t.activeModuleIndex=t.activeModuleIndex-1)}const Zt={hash:"svelte-er27y2",code:".eko-gallery-app {--nav_gap: 10px;--nav_padding: 12px 16px;--nav_bgColor: #FFFFFF;--nav_justifyContent: center;--nav_button_width: fit-content;--nav_button_bgColor: #FFFFFF;--nav_button_borderRadius: 100px;--nav_button_paddingTop: 8px;--nav_button_paddingBottom: var(--nav_button_paddingTop);--nav_button_paddingLeft: 12px;--nav_button_paddingRight: var(--nav_button_paddingLeft);--nav_button_boxShadow: 0 0 0 1px #E7E7E7;--nav_button_gap: 2px;--nav_button_selected_boxShadow: 0 0 0 1px #000000;--nav_button_selected_bgColor: var(--nav_button_bgColor);--nav_button_text_color: #000000;--nav_button_text_fontSize: 14px;--nav_button_text_fontWeight: 500;--nav_button_text_fontFamily: var(--fontName);--nav_button_text_lineHeight: 120%;--nav_button_text_letterSpacing: 0px;--nav_button_text_align: center;--nav_button_selected_text_color: var(--nav_button_text_color);--nav_button_selected_text_fontWeight: var(--nav_button_text_fontWeight);--nav_button_image_borderRadius: calc(var(--nav_button_borderRadius) - var(--nav_button_paddingTop));--nav_arrow_color: var(--secondaryColor);--nav_arrow_bgColor: var(--primaryColor);--nav_arrow_padding: 9px;--nav_arrow_size: 28px;--nav_arrow_boxShadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);}.nav-buttons-container.svelte-er27y2 {width:100%;background-color:var(--nav_bgColor);height:var(--buttonsContainerHeight);display:flex;box-sizing:border-box;text-align:center;justify-content:var(--nav_justifyContent);align-items:center;position:relative;flex-shrink:0;}.nav-buttons-container.svelte-er27y2 :where(.svelte-er27y2) {touch-action:auto;}.nav-buttons.svelte-er27y2 {display:flex;margin:0;gap:var(--nav_gap);height:100%;align-items:center;padding:var(--nav_padding);box-sizing:border-box;overflow-x:auto;scrollbar-width:none;max-width:100%;width:fit-content;overflow-y:hidden;overscroll-behavior-y:none;}.nav-button.svelte-er27y2 {display:flex;outline:none;flex-shrink:0;height:100%;width:var(--nav_button_width);border:none;cursor:pointer;align-items:center;gap:var(--nav_button_gap);background-color:var(--nav_button_bgColor);border-radius:var(--nav_button_borderRadius);\n /* eslint-disable-next-line max-len */padding:var(--nav_button_paddingTop) var(--nav_button_paddingRight) var(--nav_button_paddingBottom) var(--nav_button_paddingLeft);box-shadow:var(--nav_button_boxShadow);}.nav-button.svelte-er27y2 span:where(.svelte-er27y2) {flex:1 0 0;transition:color 0.2s ease-in-out;color:var(--nav_button_text_color);font-weight:var(--nav_button_text_fontWeight);font-size:var(--nav_button_text_fontSize);font-family:var(--nav_button_text_fontFamily);line-height:var(--nav_button_text_lineHeight);letter-spacing:var(--nav_button_text_letterSpacing);text-align:var(--nav_button_text_align);}.nav-button.selected.svelte-er27y2 {background-color:var(--nav_button_selected_bgColor);box-shadow:var(--nav_button_selected_boxShadow);}.nav-button.selected.svelte-er27y2 span:where(.svelte-er27y2) {color:var(--nav_button_selected_text_color);font-weight:var(--nav_button_selected_text_fontWeight);}"};const Gt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20320%20512'%3e%3cpath%20d='M310.6%20233.4c12.5%2012.5%2012.5%2032.8%200%2045.3l-192%20192c-12.5%2012.5-32.8%2012.5-45.3%200s-12.5-32.8%200-45.3L242.7%20256%2073.4%2086.6c-12.5-12.5-12.5-32.8%200-45.3s32.8-12.5%2045.3%200l192%20192z'/%3e%3c/svg%3e",Yt={hash:"svelte-1al44kl",code:'.nav-button.svelte-1al44kl {height:30px;width:30px;border-radius:100%;background-color:transparent;padding:9px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;pointer-events:auto;border:0;opacity:100%;cursor:pointer;transition-property:background-color, box-shadow, opacity;position:relative;}.nav-button.prev.svelte-1al44kl {transform:rotate(180deg);}.nav-button.hidden.svelte-1al44kl {opacity:0;pointer-events:none;}.nav-button.svelte-1al44kl::before {content:"";position:absolute;top:-8px;right:-8px;bottom:-8px;left:-8px;}.nav-button.svelte-1al44kl img:where(.svelte-1al44kl) {height:100%;}'};function Jt(t,e){t.global.css.add(Yt);const{type:n,hidden:o=!1,onClick:i}=e;t.push(`<button${pt(`nav-button ${dt(n)}`,"svelte-1al44kl",{hidden:o})}${E("aria-label",n)}><img${E("src",Gt)}${E("alt",n)} class="svelte-1al44kl"/></button>`)}const Kt={hash:"svelte-1mxltt0",code:'.steps-indicator-container.svelte-1mxltt0 {width:calc(100% - 32px);position:absolute;bottom:12px;left:16px;animation-duration:0.75s;animation-timing-function:cubic-bezier(0.36, 0, 0, 1);animation-fill-mode:both;animation-delay:0.15s;\n animation-name: svelte-1mxltt0-gallery-steps-appear-anim;}.steps-indicator.svelte-1mxltt0 {--stepSize: 6px;--stepPadding: 7px;padding:4px 0px;display:flex;gap:8px;align-items:center;overflow-x:auto;pointer-events:all;scrollbar-width:none;}.steps-indicator.with-duration.svelte-1mxltt0 .step-button:where(.svelte-1mxltt0) span:where(.svelte-1mxltt0) {position:relative;overflow:hidden;}.steps-indicator.with-duration.svelte-1mxltt0 .step-button:where(.svelte-1mxltt0) span:where(.svelte-1mxltt0):after {transition:0.3s ease-in-out;transition-property:opacity, width;}.step-button.svelte-1mxltt0 {padding:8px 12px;border:#E4E5E8 solid 1px;background-color:#FBFBFB;cursor:pointer;pointer-events:all;flex-shrink:0;border-radius:100px;font-size:12px;font-weight:500;line-height:16px;color:#030303;transition:all 0.3s ease-in-out;outline-color:#3191fc;}.step-button.active.svelte-1mxltt0 {background-color:#014FD3;color:#FFFFFF;box-shadow:none;border-color:#014FD3;}.step-button.active.svelte-1mxltt0:after {opacity:100%;\n animation: svelte-1mxltt0-stepDurationAnimation var(--stepDuration) linear forwards;animation-play-state:running;}.step-button.svelte-1mxltt0:hover:not(.active) {background:#F3F4F6;}.step-button.svelte-1mxltt0:active:not(.active) {background:#E4E5E8;}.step-button.svelte-1mxltt0:focus {outline-offset:4px;outline-width:2px;}.step-button.svelte-1mxltt0 span:where(.svelte-1mxltt0) {display:block;box-sizing:border-box;pointer-events:none;white-space:nowrap;}.step-button.svelte-1mxltt0 span:where(.svelte-1mxltt0):after {content:"";background-color:rgba(0, 0, 0, 0.6);position:absolute;border-radius:var(--stepSize);width:0;height:100%;top:0;left:-100%;opacity:0;transform:translateX(0);animation-play-state:paused;}.step-arrow.svelte-1mxltt0 {height:34px;position:absolute;padding-top:4px;padding-bottom:4px;z-index:10;bottom:4px;border:none;background-color:#FFF;pointer-events:none;cursor:pointer;opacity:0;}.step-arrow.svelte-1mxltt0:hover {background:#F6F6F7;}.step-arrow.svelte-1mxltt0:active {background:#E4E5E8;}.step-arrow-prev.svelte-1mxltt0 {padding-right:8px;padding-left:0;left:0;transform:translateX(-100%);\n animation: svelte-1mxltt0-arrow-left-disappear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}.step-arrow-prev.visible.svelte-1mxltt0 {pointer-events:auto;\n animation: svelte-1mxltt0-arrow-left-appear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}.step-arrow-next.svelte-1mxltt0 {padding-right:0;padding-left:8px;right:0;transform:translateX(100%);\n animation: svelte-1mxltt0-arrow-right-disappear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}.step-arrow-next.visible.svelte-1mxltt0 {pointer-events:auto;\n animation: svelte-1mxltt0-arrow-right-appear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}\n\n@keyframes svelte-1mxltt0-gallery-steps-appear-anim {\n from {\n opacity: 0;\n transform: translate(0, 10px);\n }\n to {\n opacity: 1;\n transform: translate(0, 0);\n }\n}\n@keyframes svelte-1mxltt0-gallery-steps-disappear-anim {\n from {\n opacity: 1;\n transform: translate(0, 0);\n }\n to {\n opacity: 0;\n transform: translate(0, 10px);\n }\n}\n@keyframes svelte-1mxltt0-arrow-left-appear {\n from {\n opacity: 0;\n transform: translateX(-100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n@keyframes svelte-1mxltt0-arrow-left-disappear {\n from {\n opacity: 1;\n transform: translateX(0);\n }\n to {\n opacity: 0;\n transform: translateX(-100%);\n }\n}\n@keyframes svelte-1mxltt0-arrow-right-appear {\n from {\n opacity: 0;\n transform: translateX(100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n@keyframes svelte-1mxltt0-arrow-right-disappear {\n from {\n opacity: 1;\n transform: translateX(0);\n }\n to {\n opacity: 0;\n transform: translateX(100%);\n }\n}\n@keyframes svelte-1mxltt0-stepDurationAnimation {\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(100%);\n }\n}'};const Qt="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.01318%203.42005C3.01318%202.06672%204.50652%201.26672%205.66652%201.90672C6.82652%202.54672%2014.0732%206.48672%2014.0732%206.48672C15.2865%207.15339%2015.2865%208.86005%2014.0732%209.52005L5.66652%2014.1001C4.50652%2014.7334%203.01318%2013.9401%203.01318%2012.5801V3.42005ZM3.98652%2012.5801C3.98652%2013.1334%204.63318%2013.5467%205.19985%2013.2401L13.6065%208.66005C14.1399%208.36672%2014.1465%207.63339%2013.6065%207.34005C13.0665%207.04672%205.19985%202.76005%205.19985%202.76005C4.63985%202.44672%203.98652%202.86005%203.98652%203.42005V12.5801Z'%20fill='%23030303'/%3e%3c/svg%3e",te="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.8332%2014C10.5598%2014%2010.3332%2013.7733%2010.3332%2013.5V2.5C10.3332%202.22667%2010.5598%202%2010.8332%202C11.1065%202%2011.3332%202.22667%2011.3332%202.5V13.5C11.3332%2013.7733%2011.1065%2014%2010.8332%2014ZM5.1665%2014C4.89317%2014%204.6665%2013.7733%204.6665%2013.5V2.5C4.6665%202.22667%204.89317%202%205.1665%202C5.43984%202%205.6665%202.22667%205.6665%202.5V13.5C5.6665%2013.7733%205.43984%2014%205.1665%2014Z'%20fill='%23030303'/%3e%3c/svg%3e",ee={hash:"svelte-a3r6re",code:".pause-button.svelte-a3r6re {position:absolute;top:10px;right:10px;background:#FFFFFF;border-radius:100%;border:1px #C4C8CF solid;padding:0;width:32px;height:32px;display:flex;justify-content:center;align-items:center;pointer-events:auto;transition:background 0.2s ease-in-out;cursor:pointer;outline-color:#3191fc;}.pause-button.svelte-a3r6re:hover {background:#F6F6F7;}.pause-button.svelte-a3r6re:active {background:#E4E5E8;}.pause-button.svelte-a3r6re:focus {outline-offset:8px;outline-width:2px;}.pause-button.svelte-a3r6re img:where(.svelte-a3r6re) {width:16px;height:16px;pointer-events:none;}"};const ne={hash:"svelte-1fv6njc",code:".swiper.svelte-1fv6njc {position:absolute;top:0;left:0;pointer-events:auto;width:100%;height:100%;}"};function oe(t,e){t.global.css.add(ne),t.component((t=>{const{gallery:n,debug:o,onEvent:i}=e,s={color:"#e3e3e3",fadeTime:300,lineWidth:8};t.push(`<div${ut({...f((function(t){const{direction:e}=t.detail;"left"===e?(null==n||n.next(),i("swipe",[-1,0])):"right"===e&&(null==n||n.prev(),i("swipe",[1,0]))}),(()=>({touchAction:"pan-y",plugins:o?[m(s)]:[]}))),class:"swiper"},"svelte-1fv6njc")}></div>`)}))}const ie={hash:"svelte-1rvgxfc",code:".covers-container.svelte-1rvgxfc {position:absolute;top:0;left:0;bottom:0;right:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;display:flex;gap:0.5px;}.covers-container.svelte-1rvgxfc::-webkit-scrollbar {display:none;}.cover-container.svelte-1rvgxfc {position:relative;display:flex;width:100%;height:100%;flex-shrink:0;scroll-snap-align:center;user-select:none;justify-content:center;align-items:center;}.cover-image.svelte-1rvgxfc {width:var(--videoWidth);height:var(--videoHeight);aspect-ratio:var(--videoAspect);object-fit:cover;pointer-events:none;background:#ffffff;}.cover-image.hidden.svelte-1rvgxfc {opacity:0;}.cover-image.hidden.force-show.svelte-1rvgxfc {opacity:1;background:transparent;}.ui-container.svelte-1rvgxfc {position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none;}"};function se(t,e){t.global.css.add(ie),t.component((t=>{const n=[375,768,1024,1400,1920];let{scrollOffset:o,isMobile:i=!1,gallery:s,debug:l,onEvent:r}=e;const a=q("state");a().playingModulePosition;let c=a().startedPlaying,u=a().currentModulesList,d=u.findIndex((t=>{return e=a().playingModulePosition,n=t.position,e.itemIndex===n.itemIndex&&e.moduleIndex===n.moduleIndex;var e,n}));if(u){t.push("\x3c!--[--\x3e"),t.push('<div class="covers-container svelte-1rvgxfc" style="scroll-behavior: auto;">\x3c!--[--\x3e');const e=ht(u);for(let o=0,a=e.length;o<a;o++){let a=e[o];t.push('<div class="cover-container svelte-1rvgxfc">'),t.push("\x3c!--[--\x3e"),t.push(`<img${pt("cover-image svelte-1rvgxfc",void 0,{hidden:c&&o===d,"force-show":a.showCover})}${E("src",s.getCoverUrl(a.cover,n[n.length-1]))}${E("alt",a.name)}${E("fetchpriority",0===o?"high":"auto")} onload="this.__e=event"/>`),t.push("\x3c!--]--\x3e "),i?(t.push("\x3c!--[--\x3e"),oe(t,{gallery:s,debug:l,onEvent:r})):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e "),null!=a&&a.Component?(t.push("\x3c!--[--\x3e"),t.push('<div class="ui-container svelte-1rvgxfc">\x3c!----\x3e'),a.Component(t,{state:a.state,isMobile:i}),t.push("\x3c!----\x3e</div>")):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</div>")}t.push("\x3c!--]--\x3e</div>")}else t.push("\x3c!--[!--\x3e");t.push("\x3c!--]--\x3e"),function(t,e){for(const o in e){var n;const i=t[o],s=e[o];void 0===i&&void 0!==s&&null!==(n=Object.getOwnPropertyDescriptor(t,o))&&void 0!==n&&n.set&&(t[o]=s)}}(e,{scrollOffset:o})}))}const le="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||{};let re;function ae(){const t=le&&le.navigator&&(le.navigator.userAgent||le.navigator.platform||le.navigator.vendor)||"";if(re&&re.ua===t)return re;const e=t.toLowerCase(),n=e.includes("android"),o=e.includes("iphone")||e.includes("ipad")||e.includes("ipod")||e.includes("ios"),i=n||o||e.includes("mobile");return re={ua:t,isMobile:i},re}"undefined"!=typeof window&&window.addEventListener("pageshow",(function(t){t.persisted&&setTimeout((function(){window.location.reload()}),10)}),!1);const ce={hash:"svelte-1n46o8q",code:'.eko-gallery-app.svelte-1n46o8q {position:relative;width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}.eko-gallery-app.svelte-1n46o8q:hover .paging-buttons:where(.svelte-1n46o8q) .nav-button {background-color:#FFFFFF;box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.12);}.eko-gallery-app.svelte-1n46o8q * {box-sizing:border-box;touch-action:pan-y;font-family:"Human BBY Digital", sans-serif;}.player-container.svelte-1n46o8q {position:relative;flex:1;width:100%;pointer-events:none;overflow:hidden;display:flex;align-items:center;justify-content:center;}.player-div.svelte-1n46o8q {position:absolute;width:var(--videoWidth);height:var(--videoHeight);aspect-ratio:var(--videoAspect);}.swipable.svelte-1n46o8q {will-change:transform;transform:translate3d(var(--uiTranformX, 0), 0, 0);}.paging-buttons.svelte-1n46o8q {position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:space-between;align-items:center;pointer-events:none;padding:0 12px;}.paging-buttons.svelte-1n46o8q .nav-button {transition:0.2s ease-in-out;box-shadow:none;}.paging-buttons.svelte-1n46o8q .nav-button img {opacity:0.6;}'};function ue(t,e){t.global.css.add(ce),t.component((t=>{const{EkoPlayer:n,config:o={},debug:i,playerOptions:s,hideNav:l,forceMobile:r=!1,videoAspectRatio:a="unset",onGalleryReady:c=()=>{},onEvent:u=()=>{}}=e;let d=new Nt(o),p=r||ae().isMobile,v=0,h={width:"100%",height:"100%"};var g,x;function f(){null==d||d.next()}function m(){null==d||d.prev()}g="state",x=()=>d.state,X().set(g,x);let b,y=!0;function _(t){var e;(t.push('<div class="eko-gallery-app svelte-1n46o8q">'),o)?(t.push("\x3c!--[--\x3e"),t.push(`<div class="player-container svelte-1n46o8q"${vt(`--uiTranformX: ${v}px;--videoAspect: ${a};--videoWidth: ${h.width};--videoHeight: ${h.height};`)}><div class="player-div swipable svelte-1n46o8q"></div> `),se(t,{isMobile:p,gallery:d,debug:i,onEvent:u,get scrollOffset(){return v},set scrollOffset(t){v=t,y=!1}}),t.push("\x3c!----\x3e "),p||l?t.push("\x3c!--[!--\x3e"):(t.push("\x3c!--[--\x3e"),t.push('<div class="paging-buttons svelte-1n46o8q">'),Jt(t,{type:"prev",onClick:m}),t.push("\x3c!----\x3e "),Jt(t,{type:"next",onClick:f}),t.push("\x3c!----\x3e</div>")),t.push("\x3c!--]--\x3e "),!p&&(null===(e=d.state.currentItem)||void 0===e?void 0:e.modules.length)>1?(t.push("\x3c!--[--\x3e"),function(t){t.global.css.add(Kt),t.component((t=>{const e=q("state"),n=(()=>{let t=[];return t=e().currentItem.modules.map(((t,n)=>({index:n,type:n===e().activeModuleIndex?"active":"",name:t.name}))),t})();t.push("\x3c!----\x3e");{t.push(`<div class="steps-indicator-container svelte-1mxltt0"><button${pt("step-arrow step-arrow-prev svelte-1mxltt0",void 0,{visible:!1})} aria-label="Scroll to previous steps"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1mxltt0"><path d="M12.8333 16.6668C12.68 16.6668 12.5266 16.5935 12.4266 16.4601L9.42663 12.2935C9.36482 12.2081 9.33154 12.1055 9.33154 12.0001C9.33154 11.8948 9.36482 11.7921 9.42663 11.7068L12.4266 7.54012C12.4651 7.48671 12.5138 7.44142 12.5698 7.40682C12.6259 7.37222 12.6882 7.349 12.7532 7.33848C12.8182 7.32795 12.8846 7.33033 12.9487 7.34549C13.0128 7.36064 13.0732 7.38826 13.1266 7.42678C13.18 7.46531 13.2253 7.51397 13.2599 7.56999C13.2945 7.62602 13.3177 7.68831 13.3283 7.75331C13.3388 7.81831 13.3364 7.88475 13.3213 7.94883C13.3061 8.01291 13.2785 8.07338 13.24 8.12678L10.4466 12.0001L13.2333 15.8735C13.2864 15.9479 13.3181 16.0355 13.3251 16.1267C13.332 16.2179 13.314 16.3092 13.2728 16.3909C13.2316 16.4725 13.1689 16.5414 13.0915 16.59C13.014 16.6386 12.9247 16.6652 12.8333 16.6668Z" fill="#030303" class="svelte-1mxltt0"></path></svg></button> <div${pt("steps-indicator svelte-1mxltt0",void 0,{"with-duration":e().currentModule.hasDuration,paused:e().paused})} role="group" aria-roledescription="Sequence navigation buttons"${vt(`--stepDuration: ${dt(e().currentModule.duration)}s`)}>\x3c!--[--\x3e`);const o=ht(n);for(let e=0,n=o.length;e<n;e++){let n=o[e];t.push(`<button${pt("step-button svelte-1mxltt0",void 0,{active:"active"===n.type})}${E("aria-label",`Go to step $${dt(n.index+1)}`)}><span class="svelte-1mxltt0">${k(n.name)}</span></button>`)}t.push(`\x3c!--]--\x3e</div> <button${pt("step-arrow step-arrow-next svelte-1mxltt0",void 0,{visible:!1})} aria-label="Scroll to next steps"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1mxltt0"><path d="M11.1668 16.6666C11.0668 16.6666 10.9601 16.6333 10.8734 16.5733C10.8199 16.5348 10.7746 16.4862 10.7399 16.4302C10.7053 16.3741 10.682 16.3118 10.6715 16.2468C10.6609 16.1818 10.6634 16.1153 10.6786 16.0512C10.6938 15.9871 10.7215 15.9266 10.7601 15.8733L13.5534 11.9999L10.7601 8.12661C10.6001 7.89994 10.6468 7.59328 10.8734 7.42661C11.1001 7.26661 11.4068 7.31994 11.5734 7.53994L14.5734 11.7066C14.7001 11.8799 14.7001 12.1133 14.5734 12.2933L11.5734 16.4599C11.4734 16.5933 11.3201 16.6666 11.1668 16.6666Z" fill="#030303" class="svelte-1mxltt0"></path></svg></button></div>`)}t.push("\x3c!----\x3e")}))}(t)):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e "),d.state.startedPlaying?(t.push("\x3c!--[--\x3e"),function(t){t.global.css.add(ee),t.component((t=>{const e=q("state");t.push(`<button class="pause-button svelte-a3r6re"${E("aria-label",e().paused?"Play":"Pause")}>`),e().paused?(t.push("\x3c!--[--\x3e"),t.push(`<img${E("src",Qt)} alt="Play" class="svelte-a3r6re"/>`)):(t.push("\x3c!--[!--\x3e"),t.push(`<img${E("src",te)} alt="Pause" class="svelte-a3r6re"/>`)),t.push("\x3c!--]--\x3e</button>")}))}(t),t.push("\x3c!----\x3e "),i?(t.push("\x3c!--[--\x3e"),t.push('<div style="position: absolute; top: 0; left: 0; width: 100%;"></div>')):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e")):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</div> "),l?t.push("\x3c!--[!--\x3e"):(t.push("\x3c!--[--\x3e"),function(t){t.global.css.add(Zt),t.component((t=>{const e=q("state");t.push('<div class="nav-buttons-container svelte-er27y2"><div class="nav-buttons svelte-er27y2">\x3c!--[--\x3e');const n=ht(e().currentItemsList);for(let o=0,i=n.length;o<i;o++){let i=n[o];t.push(`<button${pt("nav-button svelte-er27y2",void 0,{selected:o===e().activeItemIndex})}><span class="svelte-er27y2">${k(i.name)}</span></button>`)}t.push("\x3c!--]--\x3e</div></div>")}))}(t)),t.push("\x3c!--]--\x3e")):t.push("\x3c!--[!--\x3e");t.push("\x3c!--]--\x3e</div>")}do{y=!0,b=t.copy(),_(b)}while(!y);t.subsume(b)}))}var de=Object.freeze({__proto__:null,render:function(t){const e=ct(ue,{props:t});return e.head+e.body}});exports.getSsrHtml=async function(t,e){const{render:n}=await Promise.resolve().then((function(){return de}));return{ssrHtml:n({config:t,hideNav:!0,forceMobile:e})}};
|