@micrio/client 5.2.2 → 5.3.0
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/micrio.min.d.ts +682 -594
- package/micrio.min.js +4 -4
- package/package.json +1 -1
package/micrio.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Micrio Client 5.
|
|
1
|
+
/* Micrio Client 5.3.0
|
|
2
2
|
* Copyright © 2015 - 2025 Q42 Internet B.V., Micrio <https://micr.io>
|
|
3
3
|
*
|
|
4
4
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
((M,I,C,R='O')=>{
|
|
21
|
-
if(!(typeof window !== undefined && typeof window !== 'undefined')) return;M='H4sIAAAAAAACCt19e4BdRXn4zJxz7j13527ubLILSzbI3JNUr2wCq2DcRGDvWTZhIxEWCBgtml2yG7Kb1ya7gaAbdi0YU8Ua8AUp1ftI1EpbodpCeZhQH4VKW6wvrK2NYv2JWI1WK1ZLfn7fN+ec#Xc3ENrfX78N3HNm5ps58$zmm+81bGhiG2eM8b93w0E+zQbF9DQb5NN8etCZnsbwFEbyaYidGvSmp6amptggn+JTg4xPD7rTGBbTEJHB1GmGmfn0oJiCWHcai3KmKQXAswRowqYYyAHlY1aFEBAwL3x6sMm8UkgmIQjit7EWuWmTE+vIBr1pqoCPz6h+e$F3ig1mpk2bn#m904xqwqLiIBe+UAGmRsx8g8p1TZfcDJ1EjaHmmw$ie4E+bTdHT#$l04PZ6b34hxEQ3RrBESyWASW0zRUf91nUBUl3xp0yRXUx$QlDS4l8mu$Fsd2LPUEPGGQz#tB9Jhu+F6I#py$PjpqCzA58Y0r8lM9zRrbf4A1dt2PXJCu424ZGtzdNjExeMzoxet3WEcYxJju0fbRvx$YRxjDoD20fDTEDheUNoyM3ju$YNXnVyCTLUlRSxqtNIfMmRibXjW4duXx8a#Po5E1sp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XNldY3tmUyr3rFxBtY+PC8lzIw23AaDc3q0t$MUcrSUygFhno0Ki18uCAH1jaUcv4plLKFjeJkBISwcVbdbl#zl9jCkyyW#G$4sDrVSTLKtrEhRDqzJ8lvVHqJwXd9U1oCdXfL3Eggj#ul2SiDWy9G2DY2zibZTbB8W9Jld5iyRXr5ngTKSa#4+WmoRQbKTS$i+X#X5aWgnjgJVCZdr5NAZdP1WjA3lJ+u10mgcul6LTgldHdKULe1ntKWcEpQT7T#jcxnzzRCtztw00ojx$8LpbzCEpHIAAA=',I=window.DecompressionStream,C=(b,t,d,a)=>(a=atob(b.replace(/\$/g,'/').replace(/#/g,'O')).split('').map(x=>x.charCodeAt(0)),d=I?new Response(new Blob([new Uint8Array(a)]).stream().pipeThrough(new I('gzip'))):(new Zlib.Gunzip(a)).decompress())&&(I?t?d.arrayBuffer():d.text():t?d:new self.TextDecoder('utf-8').decode(d));(I?new Promise(a=>a()):fetch('https://r2.micr.io/gunzip.min.js').then(r=>r.text()).then(js=>Function(js)())).then(()=>(function(){const [_c,_u,_b]=arguments,_css=document.createElement('style');
|
|
21
|
+
if(!(typeof window !== undefined && typeof window !== 'undefined')) return;M='H4sIAAAAAAACCt19a4AdRZloVXX3#X2mzsypSWZgyASp08nqkSQyCsZJeMzpYRImEiFAx#ByyQyZCZnJa5KZQNAJMwpiVnFFXF3Iop5HIqys1+ALloCEVVdQvLK+1rs+LurqinB3s153F1eXXL$vq+6uPmcCYff+uhM43VX1VXU9v$rqexUbntz#GWP86244xGfYkJiZYUN8hs8MiZlpfJsecmZmKIXPDHkz09PTkDDNp4cYnxlyZzAsZiAig6kzDLNAGdMQ685gAc4MpQB4lgBN2BQTlY9ZFUJAwLzwmaEW80ohmYQgiN$GWuRmTE6sIxvyZqgCPj6j+u3D32k2lJkxbXJm9s0wqgmLioNc+EIFmBox8w0q1zVdch#fgX6ZoQbzmeiD+F6gT9vNETP7+MxQdmYf$lGX85mhjgi#YLEMKKFzrvi4z6IuSLoz7pRpqov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ib3L69$5y8uu#fV979y4u5nbhk48poV3$3AivCmjZ9978Zb7v71iituPv6nz59xbuk3j7y3$ax$Ktzp$egbNy3ffsb2lrdu7lt96Q#5r73qKw+9as+yX2786L+tyJ7$9n$+2bP3b$zt1l$ecfl7Vvc4V$r$7X1n6Ie$cey+rW$$3fAHfvrnpy$$9YGN77pr1#$++TWz3zv+vvKWSsdb#j#Z175q8k0sfLjt5QzMdpxGw01d+rs5Sll6EqXAUI9FpYUPF+S6tQ2lnHMSpWxlYzgZASFsaqrbbap5iS04wWKJ84YPq5#dJGNs#xtGpNM8SX6n0ksMvuub0hKou9vnRgJhXC$NxhhcpDHKtrMJNsVuh#Xbni6725Qt0su3AWqhgXLSKG7e3GW56UV8AigvBfXkCaAy6XqdACqbrtf8uaH8dL3mnwwie$KkoJ47Kajb#k5qS+iYG003zyFCpDtx#0qjvf8Lh39cpBLJAAA=',I=window.DecompressionStream,C=(b,t,d,a)=>(a=atob(b.replace(/\$/g,'/').replace(/#/g,'O')).split('').map(x=>x.charCodeAt(0)),d=I?new Response(new Blob([new Uint8Array(a)]).stream().pipeThrough(new I('gzip'))):(new Zlib.Gunzip(a)).decompress())&&(I?t?d.arrayBuffer():d.text():t?d:new self.TextDecoder('utf-8').decode(d));(I?new Promise(a=>a()):fetch('https://r2.micr.io/gunzip.min.js').then(r=>r.text()).then(js=>Function(js)())).then(()=>(function(){const [_c,_u,_b]=arguments,_css=document.createElement('style');
|
|
22
22
|
_css.className='micrio-interface';_css.textContent=_c;
|
|
23
23
|
document.head.insertBefore(_css,document.head.firstChild);
|
|
24
|
-
var __defProp=Object.defineProperty,__defNormalProp=(t,e,i)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,__publicField=(t,e,i)=>__defNormalProp(t,"symbol"!=typeof e?e+"":e,i);!function(){"use strict";function t(){}const e=t=>t;function i(t,e){for(const i in e)t[i]=e[i];return t}function n(t){return t()}function s(){return Object.create(null)}function r(t){t.forEach(n)}function o(t){return"function"==typeof t}function a(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let l;function c(t,e){return t===e||(l||(l=document.createElement("a")),l.href=e,t===l.href)}function d(e,...i){if(null==e){for(const t of i)t(void 0);return t}const n=e.subscribe(...i);return n.unsubscribe?()=>n.unsubscribe():n}function u(t){let e;return d(t,(t=>e=t))(),e}function h(t,e,i){t.$$.on_destroy.push(d(e,i))}function m(t,e,i,n){if(t){const s=p(t,e,i,n);return t[0](s)}}function p(t,e,n,s){return t[1]&&s?i(n.ctx.slice(),t[1](s(e))):n.ctx}function f(t,e,i,n){if(t[2]&&n){const s=t[2](n(i));if(void 0===e.dirty)return s;if("object"==typeof s){const t=[],i=Math.max(e.dirty.length,s.length);for(let n=0;n<i;n+=1)t[n]=e.dirty[n]|s[n];return t}return e.dirty|s}return e.dirty}function g(t,e,i,n,s,r){if(s){const o=p(e,i,n,r);t.p(o,s)}}function v(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let t=0;t<i;t++)e[t]=-1;return e}return-1}function $(t){return null==t?"":t}function w(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const y="undefined"!=typeof window;let b=y?()=>window.performance.now():()=>Date.now(),k=y?t=>requestAnimationFrame(t):t;const T=new Set;function x(t){T.forEach((e=>{e.c(t)||(T.delete(e),e.f())})),0!==T.size&&k(x)}function _(t){let e;return 0===T.size&&k(x),{promise:new Promise((i=>{T.add(e={c:t,f:i})})),abort(){T.delete(e)}}}const E="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function S(t,e){t.appendChild(e)}function M(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function A(t){const e=N("style");return e.textContent="/* empty */",function(t,e){S(t.head||t,e),e.sheet}(M(t),e),e.sheet}function I(t,e,i){t.insertBefore(e,i||null)}function L(t){t.parentNode&&t.parentNode.removeChild(t)}function P(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function N(t){return document.createElement(t)}function C(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function z(t){return document.createTextNode(t)}function D(){return z(" ")}function O(){return z("")}function R(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function F(t){return function(e){return e.preventDefault(),t.call(this,e)}}function U(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function V(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}const B=["width","height"];function q(t,e){const i=Object.getOwnPropertyDescriptors(t.__proto__);for(const n in e)null==e[n]?t.removeAttribute(n):"style"===n?t.style.cssText=e[n]:"__value"===n?t.value=t[n]=e[n]:i[n]&&i[n].set&&-1===B.indexOf(n)?t[n]=e[n]:V(t,n,e[n])}function W(t,e){Object.keys(e).forEach((i=>{X(t,i,e[i])}))}function X(t,e,i){const n=e.toLowerCase();n in t?t[n]="boolean"==typeof t[n]&&""===i||i:e in t?t[e]="boolean"==typeof t[e]&&""===i||i:V(t,e,i)}function G(t){return/-/.test(t)?W:q}function Y(t,e){e=""+e,t.data!==e&&(t.data=e)}function j(t,e,i,n){null==i?t.style.removeProperty(e):t.style.setProperty(e,i,"")}function H(t,e,i){t.classList.toggle(e,!!i)}function Z(t,e,{bubbles:i=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:e,bubbles:i,cancelable:n})}class K{constructor(t=!1){__publicField(this,"is_svg",!1),__publicField(this,"e"),__publicField(this,"n"),__publicField(this,"t"),__publicField(this,"a"),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,i=null){this.e||(this.is_svg?this.e=C(e.nodeName):this.e=N(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)I(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(L)}}const J=new Map;let Q,tt=0;function et(t,e,i,n,s,r,o,a=0){const l=16.666/n;let c="{\n";for(let g=0;g<=1;g+=l){const t=e+(i-e)*r(g);c+=100*g+`%{${o(t,1-t)}}\n`}const d=c+`100% {${o(i,1-i)}}\n}`,u=`__svelte_${function(t){let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return e>>>0}(d)}_${a}`,h=M(t),{stylesheet:m,rules:p}=J.get(h)||function(t,e){const i={stylesheet:A(e),rules:{}};return J.set(t,i),i}(h,t);p[u]||(p[u]=!0,m.insertRule(`@keyframes ${u} ${d}`,m.cssRules.length));const f=t.style.animation||"";return t.style.animation=`${f?`${f}, `:""}${u} ${n}ms linear ${s}ms 1 both`,tt+=1,u}function it(t,e){const i=(t.style.animation||"").split(", "),n=i.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),s=i.length-n.length;s&&(t.style.animation=n.join(", "),tt-=s,tt||k((()=>{tt||(J.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&L(e)})),J.clear())})))}function nt(t){Q=t}function st(){if(!Q)throw new Error("Function called outside component initialization");return Q}function rt(t){st().$$.on_mount.push(t)}function ot(){const t=st();return(e,i,{cancelable:n=!1}={})=>{const s=t.$$.callbacks[e];if(s){const r=Z(e,i,{cancelable:n});return s.slice().forEach((e=>{e.call(t,r)})),!r.defaultPrevented}return!0}}function at(t,e){return st().$$.context.set(t,e),e}function lt(t){return st().$$.context.get(t)}function ct(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach((t=>t.call(this,e)))}const dt=[],ut=[];let ht=[];const mt=[],pt=Promise.resolve();let ft=!1;function gt(){ft||(ft=!0,pt.then(Tt))}function vt(){return gt(),pt}function $t(t){ht.push(t)}function wt(t){mt.push(t)}const yt=new Set;let bt,kt=0;function Tt(){if(0!==kt)return;const t=Q;do{try{for(;kt<dt.length;){const t=dt[kt];kt++,nt(t),xt(t.$$)}}catch(e){throw dt.length=0,kt=0,e}for(nt(null),dt.length=0,kt=0;ut.length;)ut.pop()();for(let t=0;t<ht.length;t+=1){const e=ht[t];yt.has(e)||(yt.add(e),e())}ht.length=0}while(dt.length);for(;mt.length;)mt.pop()();ft=!1,yt.clear(),nt(t)}function xt(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach($t)}}function _t(){return bt||(bt=Promise.resolve(),bt.then((()=>{bt=null}))),bt}function Et(t,e,i){t.dispatchEvent(Z(`${e?"intro":"outro"}${i}`))}const St=new Set;let Mt;function At(){Mt={r:0,c:[],p:Mt}}function It(){Mt.r||r(Mt.c),Mt=Mt.p}function Lt(t,e){t&&t.i&&(St.delete(t),t.i(e))}function Pt(t,e,i,n){if(t&&t.o){if(St.has(t))return;St.add(t),Mt.c.push((()=>{St.delete(t),n&&(i&&t.d(1),n())})),t.o(e)}else n&&n()}const Nt={duration:0};function Ct(i,n,s){const r={direction:"in"};let a,l,c=n(i,s,r),d=!1,u=0;function h(){a&&it(i,a)}function m(){const{delay:n=0,duration:s=300,easing:r=e,tick:o=t,css:m}=c||Nt;m&&(a=et(i,0,1,s,n,r,m,u++)),o(0,1);const p=b()+n,f=p+s;l&&l.abort(),d=!0,$t((()=>Et(i,!0,"start"))),l=_((t=>{if(d){if(t>=f)return o(1,0),Et(i,!0,"end"),h(),d=!1;if(t>=p){const e=r((t-p)/s);o(e,1-e)}}return d}))}let p=!1;return{start(){p||(p=!0,it(i),o(c)?(c=c(r),_t().then(m)):m())},invalidate(){p=!1},end(){d&&(h(),d=!1)}}}function zt(i,n,s,a){let l,c=n(i,s,{direction:"both"}),d=a?0:1,u=null,h=null,m=null;function p(){m&&it(i,m)}function f(t,e){const i=t.b-d;return e*=Math.abs(i),{a:d,b:t.b,d:i,duration:e,start:t.start,end:t.start+e,group:t.group}}function g(n){const{delay:s=0,duration:o=300,easing:a=e,tick:g=t,css:v}=c||Nt,$={start:b()+s,b:n};n||($.group=Mt,Mt.r+=1),"inert"in i&&(n?void 0!==l&&(i.inert=l):(l=i.inert,i.inert=!0)),u||h?h=$:(v&&(p(),m=et(i,d,n,o,s,a,v)),n&&g(0,1),u=f($,o),$t((()=>Et(i,n,"start"))),_((t=>{if(h&&t>h.start&&(u=f(h,o),h=null,Et(i,u.b,"start"),v&&(p(),m=et(i,d,u.b,u.duration,0,a,c.css))),u)if(t>=u.end)g(d=u.b,1-d),Et(i,u.b,"end"),h||(u.b?p():--u.group.r||r(u.group.c)),u=null;else if(t>=u.start){const e=t-u.start;d=u.a+u.d*a(e/u.duration),g(d,1-d)}return!(!u&&!h)})))}return{run(t){o(c)?_t().then((()=>{c=c({direction:t?"in":"out"}),g(t)})):g(t)},end(){p(),u=h=null}}}function Dt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Ot(t,e){t.d(1),e.delete(t.key)}function Rt(t,e){Pt(t,1,1,(()=>{e.delete(t.key)}))}function Ft(t,e,i,n,s,o,a,l,c,d,u,h){let m=t.length,p=o.length,f=m;const g={};for(;f--;)g[t[f].key]=f;const v=[],$=new Map,w=new Map,y=[];for(f=p;f--;){const t=h(s,o,f),n=i(t);let r=a.get(n);r?y.push((()=>r.p(t,e))):(r=d(n,t),r.c()),$.set(n,v[f]=r),n in g&&w.set(n,Math.abs(f-g[n]))}const b=new Set,k=new Set;function T(t){Lt(t,1),t.m(l,u),a.set(t.key,t),u=t.first,p--}for(;m&&p;){const e=v[p-1],i=t[m-1],n=e.key,s=i.key;e===i?(u=e.first,m--,p--):$.has(s)?!a.has(n)||b.has(n)?T(e):k.has(s)?m--:w.get(n)>w.get(s)?(k.add(n),T(e)):(b.add(s),m--):(c(i,a),m--)}for(;m--;){const e=t[m];$.has(e.key)||c(e,a)}for(;p;)T(v[p-1]);return r(y),v}function Ut(t,e){const i={},n={},s={$$scope:1};let r=t.length;for(;r--;){const o=t[r],a=e[r];if(a){for(const t in o)t in a||(n[t]=1);for(const t in a)s[t]||(i[t]=a[t],s[t]=1);t[r]=a}else for(const t in o)s[t]=1}for(const o in n)o in i||(i[o]=void 0);return i}function Vt(t){return"object"==typeof t&&null!==t?t:{}}function Bt(t,e,i){const n=t.$$.props[e];void 0!==n&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function qt(t){t&&t.c()}function Wt(t,e,i){const{fragment:s,after_update:a}=t.$$;s&&s.m(e,i),$t((()=>{const e=t.$$.on_mount.map(n).filter(o);t.$$.on_destroy?t.$$.on_destroy.push(...e):r(e),t.$$.on_mount=[]})),a.forEach($t)}function Xt(t,e){const i=t.$$;null!==i.fragment&&(!function(t){const e=[],i=[];ht.forEach((n=>-1===t.indexOf(n)?e.push(n):i.push(n))),i.forEach((t=>t())),ht=e}(i.after_update),r(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function Gt(e,i,n,o,a,l,c=null,d=[-1]){const u=Q;nt(e);const h=e.$$={fragment:null,ctx:[],props:l,update:t,not_equal:a,bound:s(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(u?u.$$.context:[])),callbacks:s(),dirty:d,skip_bound:!1,root:i.target||u.$$.root};c&&c(h.root);let m=!1;if(h.ctx=n?n(e,i.props||{},((t,i,...n)=>{const s=n.length?n[0]:i;return h.ctx&&a(h.ctx[t],h.ctx[t]=s)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](s),m&&function(t,e){-1===t.$$.dirty[0]&&(dt.push(t),gt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(e,t)),i})):[],h.update(),m=!0,r(h.before_update),h.fragment=!!o&&o(h.ctx),i.target){if(i.hydrate){const t=(p=i.target,Array.from(p.childNodes));h.fragment&&h.fragment.l(t),t.forEach(L)}else h.fragment&&h.fragment.c();i.intro&&Lt(e.$$.fragment),Wt(e,i.target,i.anchor),Tt()}var p;nt(u)}class Yt{constructor(){__publicField(this,"$$"),__publicField(this,"$$set")}$destroy(){Xt(this,1),this.$destroy=t}$on(e,i){if(!o(i))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const t=n.indexOf(i);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const jt=[];function Ht(e,i=t){let n;const s=new Set;function r(t){if(a(e,t)&&(e=t,n)){const t=!jt.length;for(const i of s)i[1](),jt.push(i,e);if(t){for(let t=0;t<jt.length;t+=2)jt[t][0](jt[t+1]);jt.length=0}}}function o(t){r(t(e))}return{set:r,update:o,subscribe:function(a,l=t){const c=[a,l];return s.add(c),1===s.size&&(n=i(r,o)||t),a(e),()=>{s.delete(c),0===s.size&&n&&(n(),n=null)}}}}const Zt=(t,e)=>Math.sqrt(t*t+e*e),Kt=(t,e=1)=>(t%e+e)%e,Jt=()=>Qt()+Qt()+"-"+Qt()+"-"+Qt()+"-"+Qt()+"-"+Qt()+Qt()+Qt(),Qt=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),te=t=>new Promise((e=>t?setTimeout(e,t):e())),ee=navigator.userAgent,ie={iOS:/ipad|iphone|ipod/i.test(ee),firefox:/firefox/i.test(ee),OSX:/macintosh/i.test(ee)&&/os\ x/i.test(ee),hasTouch:"TouchEvent"in self,safari:!1};function ne(t,e,i={}){for(let n in t)t[n]&&null!=t[n].constructor&&"Object"==t[n].constructor.name?(e[n]&&"object"==typeof e[n]||(e[n]={}),ne(t[n],e[n],i)):i.mergeArrays&&e[n]instanceof Array&&t[n]instanceof Array?e[n].push(...t[n]):i.noOverwrite&&n in e||(e[n]=t[n]);return e}ie.safari=(ie.OSX||ie.iOS)&&(/safari/i.test(ee)||/instagram/i.test(ee))&&!/chrome/i.test(ee),ie.OSX&&ie.safari&&"TouchEvent"in self&&(ie.iOS=!0,ie.OSX=!1);const se=t=>{if(void 0===t)return t;t=(t=t.replace(/^\s+|\s+$/g,"")).toLowerCase();const e="àáäâèéëêìíïîòóöôùúüûñç·/_,:;";for(var i=0;i<28;i++)t=t.replace(new RegExp(e.charAt(i),"g"),"aaaaeeeeiiiioooouuuunc------".charAt(i));return t=t.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")},re=[],oe=(t,e,i)=>new Promise(((n,s)=>{if(i||re.indexOf(t)>=0)return n();const r=document.createElement("script"),o=()=>{re.push(t),n()};e?self[e]=o:r.onload=o,r.onerror=()=>s&&s(),r.async=!0,r.defer=!0,self.crossOriginIsolated&&(r.crossOrigin="anonymous"),r.src=t,document.head.appendChild(r)}));function ae(t){const e=t<0;e&&(t*=-1);let i=[0,0,Math.ceil(t)];for(let n of[0,1])for(;i[2-n]>=60&&(i[2-n]-=60,++i[1-n]););return(e?"-":"")+i.filter(((t,e)=>e>0||t)).map(((t,e)=>(t<10&&e?"0":"")+t)).join(":")}const le=(t,e={})=>new Promise((i=>{let n,s=!0;n=t.subscribe((t=>{s&&e.allowUndefined&&void 0===t||(s=!1,(void 0!==e.targetValue?t===e.targetValue:e.allowUndefined||void 0!==t)&&(n?n():vt().then((()=>n())),i(t)))}))})),ce=new Map,de=new Map,ue=async(t,e)=>{if(ce.has(t))return ce.get(t);if(de.has(t))return de.get(t);const i=fetch(t+(e?"?"+Math.random():"")).then((async t=>{if(200==t.status)return t.json();throw await t.text()})).then((e=>(ce.set(t,e),de.delete(t),e)));return de.set(t,i),i},he=t=>"MICRIO_DATA"in self?(null==self?void 0:self.MICRIO_DATA).find((e=>e[0]==t)):void 0,me=(t,e,i)=>{var n;const s=null==(n=he(t))?void 0:n[1];return s?Promise.resolve(s):ue(`${e??"https://i.micr.io/"}${t}/info.json`,i).then((t=>(t&&("Height"in t&&(t.height=t.Height,t.version=1,t.tileSize=512),"Width"in t&&(t.width=t.Width)),ge(t),t)))},pe={"micrio-cdn.azureedge.net":"micrio.vangoghmuseum.nl/micrio","micrio-cdn.vangoghmuseum.nl":"micrio.vangoghmuseum.nl/micrio","rijks-micrio.azureedge.net":"micrio.rijksmuseum.nl"},fe=t=>{if(t instanceof Object&&"fileUrl"in t&&!t.src&&(t.src=t.fileUrl),null==t?void 0:t.src)for(let e in pe)t.src.includes(e)&&(t.src=t.src.replace(e,pe[e]))},ge=t=>{var e,i,n,s,r,o,a,l;t&&(fe(null==(e=t.organisation)?void 0:e.logo),fe(null==(n=null==(i=t.settings)?void 0:i._markers)?void 0:n.markerIcon),null==(o=null==(r=null==(s=t.settings)?void 0:s._markers)?void 0:r.customIcons)||o.forEach(fe),fe(null==(l=null==(a=t.settings)?void 0:a._360)?void 0:l.video))},ve=t=>{var e;fe(t.image),null==(e=t.children)||e.forEach(ve)},$e=(t,e,i)=>{var n,s,r,o;t.data||(t.data={}),t.id||(t.id=Jt()),t.tags||(t.tags=[]),"type"in t||(t.type="default"),t.popupType||(t.popupType="popup"),"string"==typeof t.data.icon&&(t.data.icon={title:"",size:0,uploaded:0,width:-1,height:-1,src:t.data.icon}),null==(n=t.images)||n.forEach(fe),fe(t.positionalAudio),fe(null==(s=t.data)?void 0:s.icon),Object.values(t.i18n??{}).forEach((t=>fe(t.audio)));const a="embedImages"in t?t.embedImages:void 0;a&&a.forEach((t=>fe(t)));const l=null==(o=null==(r=t.data)?void 0:r._meta)?void 0:o.secondary;l&&(t.data.micrioSplitLink=l),i&&"class"in t&&t.tags.push(...t.class.split(" ").map((t=>t.trim())).filter((e=>!!e&&!t.tags.includes(e)))),t.tags.includes("default")&&(t.type="default"),e&&t.view&&t.view[2]<t.view[0]&&t.view[2]++};async function we(t,e,i,n){if(!("steps"in e)||e.stepInfo)return;let s=e.steps.map((t=>t.split(",")[1])).filter((e=>!!e&&e!=t.id));s=s.filter(((t,e)=>s.indexOf(t)==e));const r=await Promise.all(s.map((e=>ue(t.dataPath+(t.isV5?e+"/data/pub.json":e+"/data."+i+".json")))));r.forEach((e=>{var i;return null==(i=null==e?void 0:e.markers)?void 0:i.forEach((e=>$e(e,t.is360,!t.isV5)))})),fe(e.image);let o=-1;const a=[];e.stepInfo=e.steps.map(((e,l)=>{var c,d,u,h,m,p,f,g,v,$;const[w,y]=e.split(","),b=r[s.indexOf(y)]??n,k=null==(c=null==b?void 0:b.markers)?void 0:c.find((t=>t.id==w)),T=(null==(d=null==k?void 0:k.i18n)?void 0:d[i])??k;(null==T?void 0:T.title)&&(o=l);const x=(null==k?void 0:k.videoTour)?"timeline"in k.videoTour?k:(null==(u=k.videoTour.i18n)?void 0:u[i])??void 0:void 0;return fe(null==x?void 0:x.audio),fe(null==x?void 0:x.subtitle),k||(console.warn(`[Micrio] Warning: tour step ${l+1} with id [${w}] not found! Removing it from the tour`),a.push(l)),fe(null==T?void 0:T.audio),k?{markerId:w,marker:k,micrioId:y||t.id,duration:Number((null==x?void 0:x.duration)||(null==(h=null==T?void 0:T.audio)?void 0:h.duration)||0),startView:(null==(m=null==x?void 0:x.timeline)?void 0:m.length)?x.timeline[0].rect:null==k?void 0:k.view,imageHasOtherMarkers:!!y&&!!(null==(p=null==b?void 0:b.markers)?void 0:p.find((t=>t.id!=w&&!t.noMarker))),gridView:!(!(null==(g=null==(f=k.data)?void 0:f._meta)?void 0:g.gridView)&&!(null==($=null==(v=k.data)?void 0:v._meta)?void 0:$.gridAction)),chapter:o}:void 0})).filter((t=>"object"==typeof t)),a.reverse().forEach((t=>e.steps.splice(t,1))),e.initialStep=0,e.duration=e.stepInfo.reduce(((t,e)=>t+(e.duration||0)),0)}const ye=t=>{let e=t.charCodeAt(0),i=e<91;return(e-=i?65:97)-(e>7?1:0)+(i?24:e>10?-1:0)},be=t=>6==t.length||7==t.length;function ke(t,e){var i,n,s,r;const o=t.$current;if(!o)return;const a=null==(i=t.spaceData)?void 0:i.images.find((t=>t.id==o.id)),l=null==(n=t.spaceData)?void 0:n.images.find((t=>t.id==e));if(!a||!l)return;const c=[(l.x??.5)-(a.x??.5),(a.y??.5)-(l.y??.5),(l.z??.5)-(a.z??.5)];let d=c[0]*c[0]+c[1]*c[1]+c[2]*c[2];d>0&&(d=1/Math.sqrt(d));const u=[c[0]*d,c[1]*d,c[2]*d],h=.5-((null==(r=null==(s=o.$settings)?void 0:s._360)?void 0:r.trueNorth)??.5),m=Kt(Math.atan2(-u[0],u[2])/Math.PI/2);return{v:c,vN:u,directionX:m,vector:{direction:m%1-h,distanceX:Math.max(0,Math.min(.4,Math.sqrt(u[0]*u[0]+u[2]*u[2]))),distanceY:-c[1]}}}const Te=t=>!(!(null==t?void 0:t.canPlayType("application/vnd.apple.mpegurl"))&&!(null==t?void 0:t.canPlayType("application/x-mpegURL")));function xe(t){const e=t-1;return e*e*e+1}function _e(t,{delay:i=0,duration:n=400,easing:s=e}={}){const r=+getComputedStyle(t).opacity;return{delay:i,duration:n,easing:s,css:t=>"opacity: "+t*r}}function Ee(t,{delay:e=0,duration:i=400,easing:n=xe,x:s=0,y:r=0,opacity:o=0}={}){const a=getComputedStyle(t),l=+a.opacity,c="none"===a.transform?"":a.transform,d=l*(1-o),[u,h]=w(s),[m,p]=w(r);return{delay:e,duration:i,easing:n,css:(t,e)=>`\n\t\t\ttransform: ${c} translate(${(1-t)*u}${h}, ${(1-t)*m}${p});\n\t\t\topacity: ${l-d*e}`}}function Se(t){let e,i,n;return{c(){e=N("a"),V(e,"rel","noopener"),V(e,"href","https://micr.io/"),V(e,"title","Powered by Micrio"),V(e,"aria-label","Micrio homepage"),V(e,"target",t[4]),V(e,"class","micrio-logo"),H(e,"loading",t[0])},m(t,i){I(t,e,i),n=!0},p(t,i){(!n||1&i)&&H(e,"loading",t[0])},i(t){n||(t&&$t((()=>{n&&(i||(i=zt(e,_e,{duration:200},!0)),i.run(1))})),n=!0)},o(t){t&&(i||(i=zt(e,_e,{duration:200},!1)),i.run(0)),n=!1},d(t){t&&L(e),t&&i&&i.end()}}}function Me(t){let e,i=!t[1]&&Se(t);return{c(){i&&i.c(),e=O()},m(t,n){i&&i.m(t,n),I(t,e,n)},p(t,[n]){t[1]?i&&(At(),Pt(i,1,1,(()=>{i=null})),It()):i?(i.p(t,n),2&n&&Lt(i,1)):(i=Se(t),i.c(),Lt(i,1),i.m(e.parentNode,e))},i(t){Lt(i)},o(t){Pt(i)},d(t){t&&L(e),i&&i.d(t)}}}function Ae(t,e,i){let n,s,r;const o=lt("micrio"),{tour:a,marker:l}=o.state;h(t,a,(t=>i(6,r=t))),h(t,l,(t=>i(5,s=t)));const c=/micr\.io/.test(location.origin)&&self.parent==self?void 0:"_blank";let d,u=!1;return rt((()=>o.loading.subscribe((t=>{clearTimeout(d),t?u||(d=setTimeout((()=>i(0,u=!0)),750)):i(0,u=!1)})))),t.$$.update=()=>{96&t.$$.dirty&&i(1,n=!!r||!!s)},[u,n,a,l,c,s,r]}class Ie extends Yt{constructor(t){super(),Gt(this,t,Ae,Me,a,{})}}function Le(t){let e,i,n,s,r,o,a,l;return{c(){e=N("a"),i=N("img"),c(i.src,n=Ne(t[0].logo))||V(i,"src",n),V(i,"alt","Logo"),V(i,"class","micrio-logo-org"),V(e,"rel","noopener"),V(e,"href",s=t[0].href??"#"),V(e,"title",r=t[0].name),V(e,"aria-label",o=t[0].name+" homepage"),V(e,"target","_blank"),V(e,"class","micrio-logo-org")},m(t,n){I(t,e,n),S(e,i),l=!0},p(t,a){(!l||1&a&&!c(i.src,n=Ne(t[0].logo)))&&V(i,"src",n),(!l||1&a&&s!==(s=t[0].href??"#"))&&V(e,"href",s),(!l||1&a&&r!==(r=t[0].name))&&V(e,"title",r),(!l||1&a&&o!==(o=t[0].name+" homepage"))&&V(e,"aria-label",o)},i(t){l||(t&&$t((()=>{l&&(a||(a=zt(e,_e,{duration:200},!0)),a.run(1))})),l=!0)},o(t){t&&(a||(a=zt(e,_e,{duration:200},!1)),a.run(0)),l=!1},d(t){t&&L(e),t&&a&&a.end()}}}function Pe(t){let e,i=!t[1]&&t[0].logo&&Le(t);return{c(){i&&i.c(),e=O()},m(t,n){i&&i.m(t,n),I(t,e,n)},p(t,[n]){!t[1]&&t[0].logo?i?(i.p(t,n),3&n&&Lt(i,1)):(i=Le(t),i.c(),Lt(i,1),i.m(e.parentNode,e)):i&&(At(),Pt(i,1,1,(()=>{i=null})),It())},i(t){Lt(i)},o(t){Pt(i)},d(t){t&&L(e),i&&i.d(t)}}}function Ne(t){if("string"==typeof t)return t;let e=0,i=Math.max(t.width,t.height);for(;i>1024;)e++,i/=2;return t.micrioId&&t.width>1024?"https://r2.micr.io/"+t.micrioId+"/"+e+"/0-0."+(t.isPng?"png":t.isWebP?"webp":"jpg"):t.src}function Ce(t,e,i){let n,s,r,o,{organisation:a}=e;const l=lt("micrio"),{tour:c,marker:d,popover:u}=l.state;return h(t,c,(t=>i(7,o=t))),h(t,d,(t=>i(6,r=t))),h(t,u,(t=>i(5,s=t))),t.$$set=t=>{"organisation"in t&&i(0,a=t.organisation)},t.$$.update=()=>{224&t.$$.dirty&&i(1,n=!!o||!!r||!!s)},[a,n,c,d,u,s,r,o]}class ze extends Yt{constructor(t){super(),Gt(this,t,Ce,Pe,a,{organisation:0})}}const De={en:{close:"Close",zoomIn:"Zoom in",zoomOut:"Zoom out",fullscreenToggle:"Toggle fullscreen",switchLanguage:"Switch language",share:"Share",audioMute:"Mute audio",audioUnmute:"Unmute audio",closeMarker:"Close this marker",tourStepNext:"Next step",tourStepPrev:"Previous step",tourStop:"Stop this tour",minimize:"Minimize",play:"Play",pause:"Pause",stop:"Stop",subtitlesToggle:"Toggle subtitles",galleryPrev:"Previous image",galleryNext:"Next image",menuToggle:"Toggle menu",waypointFollow:"Go this way"},nl:{close:"Sluit",zoomIn:"Zoom in",zoomOut:"Zoom uit",fullscreenToggle:"Volledig scherm aan / uit",switchLanguage:"Kies taal",share:"Deel",audioMute:"Geluid uit",audioUnmute:"Geluid aan",closeMarker:"Sluit deze marker",tourStepNext:"Volgende stap",tourStepPrev:"Vorige stap",tourStop:"Stop deze tour",minimize:"Minimaliseer",play:"Start",pause:"Pauzeer",stop:"Stop",subtitlesToggle:"Ondertitels aan / uit",galleryPrev:"Vorige afbeelding",galleryNext:"Volgende afbeelding",menuToggle:"Menu openen / sluiten",waypointFollow:"Ga deze richting"}},Oe=Ht(De.en),Re={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},Fe={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},Ue={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},Ve={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},Be={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l96 0 32 0 208 0c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},qe={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},We={prefix:"fas",iconName:"pause",icon:[320,512,[9208],"f04c","M48 64C21.5 64 0 85.5 0 112L0 400c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48L48 64zm192 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48l-32 0z"]},Xe={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},Ge={prefix:"fas",iconName:"arrow-up-right-from-square",icon:[512,512,["external-link"],"f08e","M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},Ye={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},je={prefix:"fas",iconName:"volume-high",icon:[640,512,[128266,"volume-up"],"f028","M533.6 32.5C598.5 85.2 640 165.8 640 256s-41.5 170.7-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64l0 384c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352 64 352c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l67.8 0L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"]},He={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},Ze={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},Ke={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},Je={prefix:"fas",iconName:"closed-captioning",icon:[576,512,[],"f20a","M0 96C0 60.7 28.7 32 64 32l448 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM200 208c14.2 0 27 6.1 35.8 16c8.8 9.9 24 10.7 33.9 1.9s10.7-24 1.9-33.9c-17.5-19.6-43.1-32-71.5-32c-53 0-96 43-96 96s43 96 96 96c28.4 0 54-12.4 71.5-32c8.8-9.9 8-25-1.9-33.9s-25-8-33.9 1.9c-8.8 9.9-21.6 16-35.8 16c-26.5 0-48-21.5-48-48s21.5-48 48-48zm144 48c0-26.5 21.5-48 48-48c14.2 0 27 6.1 35.8 16c8.8 9.9 24 10.7 33.9 1.9s10.7-24 1.9-33.9c-17.5-19.6-43.1-32-71.5-32c-53 0-96 43-96 96s43 96 96 96c28.4 0 54-12.4 71.5-32c8.8-9.9 8-25-1.9-33.9s-25-8-33.9 1.9c-8.8 9.9-21.6 16-35.8 16c-26.5 0-48-21.5-48-48z"]},Qe={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},ti={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},ei={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},ii={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},ni={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},si={prefix:"fas",iconName:"volume-xmark",icon:[576,512,["volume-mute","volume-times"],"f6a9","M301.1 34.8C312.6 40 320 51.4 320 64l0 384c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352 64 352c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l67.8 0L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3zM425 167l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},ri={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},oi={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},ai={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},li={prefix:"fas",iconName:"share",icon:[512,512,["mail-forward"],"f064","M307 34.8c-11.5 5.1-19 16.6-19 29.2l0 64-112 0C78.8 128 0 206.8 0 304C0 417.3 81.5 467.9 100.2 478.1c2.5 1.4 5.3 1.9 8.1 1.9c10.9 0 19.7-8.9 19.7-19.7c0-7.5-4.3-14.4-9.8-19.5C108.8 431.9 96 414.4 96 384c0-53 43-96 96-96l96 0 0 64c0 12.6 7.4 24.1 19 29.2s25 3 34.4-5.4l160-144c6.7-6.1 10.6-14.7 10.6-23.8s-3.8-17.7-10.6-23.8l-160-144c-9.4-8.5-22.9-10.6-34.4-5.4z"]},ci={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M0 128C0 92.7 28.7 64 64 64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2l0 256c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1l0-17.1 0-128 0-17.1 14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z"]};function di(t){let e,i,n,s,r,o,a,l=t[3]&&ui(t);function c(t,e){return"string"==typeof t[17][4]?mi:hi}let d=c(t),u=d(t);return{c(){e=C("svg"),l&&l.c(),i=C("g"),n=C("g"),u.c(),V(n,"transform",t[16]),V(i,"transform",s="translate("+t[17][0]/2+" "+t[17][1]/2+")"),V(i,"transform-origin",r=t[17][0]/4+" 0"),V(e,"id",t[1]),V(e,"class",o="svelte-fa svelte-fa-base "+t[0]+" micrio-fa"),V(e,"style",t[2]),V(e,"viewBox",a="0 0 "+t[17][0]+" "+t[17][1]),V(e,"aria-hidden","true"),V(e,"role","img"),V(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"pulse",t[9]),H(e,"svelte-fa-size-lg","lg"===t[4]),H(e,"svelte-fa-size-sm","sm"===t[4]),H(e,"svelte-fa-size-xs","xs"===t[4]),H(e,"svelte-fa-fw",t[6]),H(e,"svelte-fa-pull-left","left"===t[7]),H(e,"svelte-fa-pull-right","right"===t[7]),H(e,"spin",t[8])},m(s,r){I(s,e,r),l&&l.m(e,null),S(e,i),S(i,n),u.m(n,null),t[24](e)},p(t,h){t[3]?l?l.p(t,h):(l=ui(t),l.c(),l.m(e,i)):l&&(l.d(1),l=null),d===(d=c(t))&&u?u.p(t,h):(u.d(1),u=d(t),u&&(u.c(),u.m(n,null))),65536&h&&V(n,"transform",t[16]),131072&h&&s!==(s="translate("+t[17][0]/2+" "+t[17][1]/2+")")&&V(i,"transform",s),131072&h&&r!==(r=t[17][0]/4+" 0")&&V(i,"transform-origin",r),2&h&&V(e,"id",t[1]),1&h&&o!==(o="svelte-fa svelte-fa-base "+t[0]+" micrio-fa")&&V(e,"class",o),4&h&&V(e,"style",t[2]),131072&h&&a!==(a="0 0 "+t[17][0]+" "+t[17][1])&&V(e,"viewBox",a),513&h&&H(e,"pulse",t[9]),17&h&&H(e,"svelte-fa-size-lg","lg"===t[4]),17&h&&H(e,"svelte-fa-size-sm","sm"===t[4]),17&h&&H(e,"svelte-fa-size-xs","xs"===t[4]),65&h&&H(e,"svelte-fa-fw",t[6]),129&h&&H(e,"svelte-fa-pull-left","left"===t[7]),129&h&&H(e,"svelte-fa-pull-right","right"===t[7]),257&h&&H(e,"spin",t[8])},d(i){i&&L(e),l&&l.d(),u.d(),t[24](null)}}}function ui(t){let e,i;return{c(){e=C("title"),i=z(t[3])},m(t,n){I(t,e,n),S(e,i)},p(t,e){8&e&&Y(i,t[3])},d(t){t&&L(e)}}}function hi(t){let e,i,n,s,r,o,a,l,c,d;return{c(){e=C("path"),o=C("path"),V(e,"d",i=t[17][4][0]),V(e,"fill",n=t[11]||t[5]||"currentColor"),V(e,"fill-opacity",s=0!=t[14]?t[12]:t[13]),V(e,"transform",r="translate("+t[17][0]/-2+" "+t[17][1]/-2+")"),V(o,"d",a=t[17][4][1]),V(o,"fill",l=t[10]||t[5]||"currentColor"),V(o,"fill-opacity",c=0!=t[14]?t[13]:t[12]),V(o,"transform",d="translate("+t[17][0]/-2+" "+t[17][1]/-2+")")},m(t,i){I(t,e,i),I(t,o,i)},p(t,u){131072&u&&i!==(i=t[17][4][0])&&V(e,"d",i),2080&u&&n!==(n=t[11]||t[5]||"currentColor")&&V(e,"fill",n),28672&u&&s!==(s=0!=t[14]?t[12]:t[13])&&V(e,"fill-opacity",s),131072&u&&r!==(r="translate("+t[17][0]/-2+" "+t[17][1]/-2+")")&&V(e,"transform",r),131072&u&&a!==(a=t[17][4][1])&&V(o,"d",a),1056&u&&l!==(l=t[10]||t[5]||"currentColor")&&V(o,"fill",l),28672&u&&c!==(c=0!=t[14]?t[13]:t[12])&&V(o,"fill-opacity",c),131072&u&&d!==(d="translate("+t[17][0]/-2+" "+t[17][1]/-2+")")&&V(o,"transform",d)},d(t){t&&(L(e),L(o))}}}function mi(t){let e,i,n,s;return{c(){e=C("path"),V(e,"d",i=t[17][4]),V(e,"fill",n=t[5]||t[10]||"currentColor"),V(e,"transform",s="translate("+t[17][0]/-2+" "+t[17][1]/-2+")")},m(t,i){I(t,e,i)},p(t,r){131072&r&&i!==(i=t[17][4])&&V(e,"d",i),1056&r&&n!==(n=t[5]||t[10]||"currentColor")&&V(e,"fill",n),131072&r&&s!==(s="translate("+t[17][0]/-2+" "+t[17][1]/-2+")")&&V(e,"transform",s)},d(t){t&&L(e)}}}function pi(e){let i,n=e[17][4]&&di(e);return{c(){n&&n.c(),i=O()},m(t,e){n&&n.m(t,e),I(t,i,e)},p(t,[e]){t[17][4]?n?n.p(t,e):(n=di(t),n.c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},i:t,o:t,d(t){t&&L(i),n&&n.d(t)}}}function fi(t,e,i){let n,s,r,{class:o}=e,{id:a}=e,{style:l}=e,{icon:c}=e,{title:d}=e,{size:u}=e,{color:h}=e,{fw:m=!1}=e,{pull:p}=e,{scale:f=1}=e,{translateX:g=0}=e,{translateY:v=0}=e,{rotate:$}=e,{flip:w}=e,{spin:y=!1}=e,{pulse:b=!1}=e,{primaryColor:k=""}=e,{secondaryColor:T=""}=e,{primaryOpacity:x=1}=e,{secondaryOpacity:_=.4}=e,{swapOpacity:E=!1}=e;return t.$$set=t=>{"class"in t&&i(0,o=t.class),"id"in t&&i(1,a=t.id),"style"in t&&i(2,l=t.style),"icon"in t&&i(18,c=t.icon),"title"in t&&i(3,d=t.title),"size"in t&&i(4,u=t.size),"color"in t&&i(5,h=t.color),"fw"in t&&i(6,m=t.fw),"pull"in t&&i(7,p=t.pull),"scale"in t&&i(19,f=t.scale),"translateX"in t&&i(20,g=t.translateX),"translateY"in t&&i(21,v=t.translateY),"rotate"in t&&i(22,$=t.rotate),"flip"in t&&i(23,w=t.flip),"spin"in t&&i(8,y=t.spin),"pulse"in t&&i(9,b=t.pulse),"primaryColor"in t&&i(10,k=t.primaryColor),"secondaryColor"in t&&i(11,T=t.secondaryColor),"primaryOpacity"in t&&i(12,x=t.primaryOpacity),"secondaryOpacity"in t&&i(13,_=t.secondaryOpacity),"swapOpacity"in t&&i(14,E=t.swapOpacity)},t.$$.update=()=>{32784&t.$$.dirty&&r&&u&&function(t,e){t.style.fontSize=e&&"lg"!==e&&"sm"!==e&&"xs"!==e?e.replace("x","em"):""}(r,u),262144&t.$$.dirty&&i(17,n=c&&c.icon||[0,0,"",[],""]),16252928&t.$$.dirty&&i(16,s=function(t,e,i,n,s,r=1,o="",a=""){let l=1,c=1;s&&("horizontal"==s?l=-1:"vertical"==s?c=-1:l=c=-1),"string"==typeof t&&(t=parseFloat(t)),"string"==typeof e&&(e=parseFloat(e)),"string"==typeof i&&(i=parseFloat(i));let d=`translate(${e*r}${o},${i*r}${o}) scale(${l*t},${c*t})`;return n&&(d+=` rotate(${n}${a})`),d}(f,g,v,$,w,512))},[o,a,l,d,u,h,m,p,y,b,k,T,x,_,E,r,s,n,c,f,g,v,$,w,function(t){ut[t?"unshift":"push"]((()=>{r=t,i(15,r)}))}]}class gi extends Yt{constructor(t){super(),Gt(this,t,fi,pi,a,{class:0,id:1,style:2,icon:18,title:3,size:4,color:5,fw:6,pull:7,scale:19,translateX:20,translateY:21,rotate:22,flip:23,spin:8,pulse:9,primaryColor:10,secondaryColor:11,primaryOpacity:12,secondaryOpacity:13,swapOpacity:14})}}function vi(t){let e,i;return e=new gi({props:{icon:t[4].get(t[1]),size:t[3]?"14":"24",style:t[0]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};2&i&&(n.icon=t[4].get(t[1])),1&i&&(n.style=t[0]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function $i(e){let i,n;return{c(){i=new K(!1),n=O(),i.a=n},m(t,s){i.m(e[2],t,s),I(t,n,s)},p(t,e){4&e&&i.p(t[2])},i:t,o:t,d(t){t&&(L(n),i.d())}}}function wi(t){let e,i,n,s,r;const o=[$i,vi],a=[];function l(t,i){return 2&i&&(e=null),t[2]?0:(null==e&&(e=!!t[4].has(t[1])),e?1:-1)}return~(i=l(t,-1))&&(n=a[i]=o[i](t)),{c(){n&&n.c(),s=O()},m(t,e){~i&&a[i].m(t,e),I(t,s,e),r=!0},p(t,[e]){let r=i;i=l(t,e),i===r?~i&&a[i].p(t,e):(n&&(At(),Pt(a[r],1,1,(()=>{a[r]=null})),It()),~i?(n=a[i],n?n.p(t,e):(n=a[i]=o[i](t),n.c()),Lt(n,1),n.m(s.parentNode,s)):n=null)},i(t){r||(Lt(n),r=!0)},o(t){Pt(n),r=!1},d(t){t&&L(s),~i&&a[i].d(t)}}}function yi(t,e,i){var n,s;let r,{style:o=null}=e,{name:a}=e;const l=lt("micrio"),c="chevron-down"==a||"link-ext"==a,d=null==(s=null==(n=l.defaultSettings)?void 0:n.ui)?void 0:s.icons,u=new Map([["play",ei],["pause",We],["close",ai],["play-filled",qe],["a11y",Ve],["menu",Re],["zoom-in",ri],["zoom-out",Ze],["maximize",oi],["minimize",Ue],["volume-off",si],["volume-up",je],["subtitles",Je],["subtitles-off",Je],["arrow-left",He],["arrow-up",ni],["arrow-right",Ye],["arrow-down",Qe],["video",ci],["audio",je],["image",Be],["share",li],["error",Fe],["chevron-down",ii],["link",ti],["link-ext",Ge],["ellipsis-vertical",Ke]]);return t.$$set=t=>{"style"in t&&i(0,o=t.style),"name"in t&&i(1,a=t.name)},t.$$.update=()=>{2&t.$$.dirty&&i(2,r=d&&("zoom-in"==a?d.zoomIn:"zoom-out"==a?d.zoomOut:"maximize"==a?d.fullscreenEnter:"minimize"==a?d.fullscreenLeave:"close"==a?d.close:"arrow-right"==a?d.next:"arrow-left"==a?d.prev:"arrow-up"==a?d.up:"arrow-down"==a?d.down:"play"==a?d.play:"pause"==a?d.pause:"subtitles"==a?d.subtitles:"subtitles-off"==a?d.subtitlesOff:"volume-off"==a?d.muted:"volume-up"==a?d.unmuted:null))},[o,a,r,c,u]}class bi extends Yt{constructor(t){super(),Gt(this,t,yi,wi,a,{style:0,name:1})}}function ki(t,e,i){const n=t.slice();return n[17]=e[i],n[19]=i,n}function Ti(t){var e;let i,n,s,r,o,a,l,c=((null==(e=t[4])?void 0:e.title)??"(Unknown)")+"",d=t[0].icon&&_i(t),u=t[0].children&&t[0].children.length&&Ei();return{c(){i=N("button"),d&&d.c(),n=D(),s=N("strong"),r=z(c),u&&u.c(),V(s,"class","micrio-menu"),V(i,"class","micrio-menu-action micrio-menu"),V(i,"type","button")},m(e,c){I(e,i,c),d&&d.m(i,null),S(i,n),S(i,s),S(s,r),u&&u.m(s,null),t[9](i),o=!0,a||(l=R(i,"click",t[6]),a=!0)},p(t,e){var a;t[0].icon?d?(d.p(t,e),1&e&&Lt(d,1)):(d=_i(t),d.c(),Lt(d,1),d.m(i,n)):d&&(At(),Pt(d,1,1,(()=>{d=null})),It()),(!o||16&e)&&c!==(c=((null==(a=t[4])?void 0:a.title)??"(Unknown)")+"")&&Y(r,c),t[0].children&&t[0].children.length?u?1&e&&Lt(u,1):(u=Ei(),u.c(),Lt(u,1),u.m(s,null)):u&&(At(),Pt(u,1,1,(()=>{u=null})),It())},i(t){o||(Lt(d),Lt(u),o=!0)},o(t){Pt(d),Pt(u),o=!1},d(e){e&&L(i),d&&d.d(),u&&u.d(),t[9](null),a=!1,l()}}}function xi(t){var e;let i,n,s,r,o,a,l,c,d,u=((null==(e=t[4])?void 0:e.title)??"(Unknown)")+"";return r=new bi({props:{style:"opacity:.75",name:"link-ext"}}),{c(){i=N("a"),n=N("strong"),s=z(u),qt(r.$$.fragment),V(n,"class","micrio-menu"),V(i,"class","micrio-menu-action micrio-menu"),V(i,"href",o=t[0].link),V(i,"target",a=t[0].linkTargetBlank?"_blank":void 0)},m(e,o){I(e,i,o),S(i,n),S(n,s),Wt(r,n,null),l=!0,c||(d=R(i,"click",t[6]),c=!0)},p(t,e){var n;(!l||16&e)&&u!==(u=((null==(n=t[4])?void 0:n.title)??"(Unknown)")+"")&&Y(s,u),(!l||1&e&&o!==(o=t[0].link))&&V(i,"href",o),(!l||1&e&&a!==(a=t[0].linkTargetBlank?"_blank":void 0))&&V(i,"target",a)},i(t){l||(Lt(r.$$.fragment,t),l=!0)},o(t){Pt(r.$$.fragment,t),l=!1},d(t){t&&L(i),Xt(r),c=!1,d()}}}function _i(t){let e,i;return e=new gi({props:{icon:t[0].icon,style:"margin-right:10px;"}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.icon=t[0].icon),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Ei(t){let e,i;return e=new bi({props:{name:"chevron-down"}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Si(t){let e,i,n=[],s=new Map,r=Dt(t[0].children);const o=t=>t[19]+t[17].id;for(let a=0;a<r.length;a+=1){let e=ki(t,r,a),i=o(e);s.set(i,n[a]=Mi(i,e))}return{c(){e=N("div");for(let t=0;t<n.length;t+=1)n[t].c();V(e,"class","items micrio-menu")},m(t,s){I(t,e,s);for(let i=0;i<n.length;i+=1)n[i]&&n[i].m(e,null);i=!0},p(t,i){3&i&&(r=Dt(t[0].children),At(),n=Ft(n,i,o,0,t,r,s,e,Rt,Mi,null,ki),It())},i(t){if(!i){for(let t=0;t<r.length;t+=1)Lt(n[t]);i=!0}},o(t){for(let e=0;e<n.length;e+=1)Pt(n[e]);i=!1},d(t){t&&L(e);for(let e=0;e<n.length;e+=1)n[e].d()}}}function Mi(t,e){let i,n,s,r;return n=new Ci({props:{menu:e[17],originalId:e[1]}}),n.$on("close",e[10]),{key:t,first:null,c(){i=O(),qt(n.$$.fragment),s=D(),this.first=i},m(t,e){I(t,i,e),Wt(n,t,e),I(t,s,e),r=!0},p(t,i){e=t;const s={};1&i&&(s.menu=e[17]),2&i&&(s.originalId=e[1]),n.$set(s)},i(t){r||(Lt(n.$$.fragment,t),r=!0)},o(t){Pt(n.$$.fragment,t),r=!1},d(t){t&&(L(i),L(s)),Xt(n,t)}}}function Ai(t){let e,i,n,s,r,o;const a=[xi,Ti],l=[];function c(t,e){return t[0].link?0:1}i=c(t),n=l[i]=a[i](t);let d=t[0].children&&t[0].children.length&&Si(t);return{c(){var i,o;e=N("menu"),n.c(),s=D(),d&&d.c(),V(e,"data-title",r=null==(o=null==(i=t[4])?void 0:i.title)?void 0:o.toLowerCase()),V(e,"class","micrio-menu"),H(e,"opened",t[3])},m(t,n){I(t,e,n),l[i].m(e,null),S(e,s),d&&d.m(e,null),o=!0},p(t,[u]){var h,m;let p=i;i=c(t),i===p?l[i].p(t,u):(At(),Pt(l[p],1,1,(()=>{l[p]=null})),It(),n=l[i],n?n.p(t,u):(n=l[i]=a[i](t),n.c()),Lt(n,1),n.m(e,s)),t[0].children&&t[0].children.length?d?(d.p(t,u),1&u&&Lt(d,1)):(d=Si(t),d.c(),Lt(d,1),d.m(e,null)):d&&(At(),Pt(d,1,1,(()=>{d=null})),It()),(!o||16&u&&r!==(r=null==(m=null==(h=t[4])?void 0:h.title)?void 0:m.toLowerCase()))&&V(e,"data-title",r),(!o||8&u)&&H(e,"opened",t[3])},i(t){o||(Lt(n),Lt(d),o=!0)},o(t){Pt(n),Pt(d),o=!1},d(t){t&&L(e),l[i].d(),d&&d.d()}}}const Ii=Ht(void 0),Li=()=>Ii.set(void 0);let Pi=!1;function Ni(t,e,i){let n,s,r,o;h(t,Ii,(t=>i(7,r=t)));let{menu:a}=e,{originalId:l=null}=e;const c=ot(),d=lt("micrio"),{events:u,state:m,_lang:p}=d;let f;h(t,p,(t=>i(8,o=t)));rt((()=>{var t;(null==n?void 0:n.title)||1!=(null==(t=a.children)?void 0:t.length)||i(0,a=a.children[0]),a.action||(a.markerId?i(0,a.action=()=>{var t,e;l&&(null==(t=d.$current)?void 0:t.id)!=l&&d.open(l),null==(e=d.$current)||e.state.marker.set(a.markerId)},a):((null==n?void 0:n.content)||(null==n?void 0:n.embed)||a.image)&&i(0,a.action=()=>{u.dispatch("page-open",a),m.popover.set({contentPage:a})},a)),i(0,a._button=f,a)}));const g=t=>{var e;return t==r||!!(null==(e=t.children)?void 0:e.some(g))};return t.$$set=t=>{"menu"in t&&i(0,a=t.menu),"originalId"in t&&i(1,l=t.originalId)},t.$$.update=()=>{var e,l,c;257&t.$$.dirty&&i(4,(l=o,n=(null==(c=(e=a).i18n)?void 0:c[l])??e)),129&t.$$.dirty&&i(3,s=r&&g(a))},[a,l,f,s,n,p,function(t){a.link||t.preventDefault(),a.action&&a.action();const e=!!(s||a.action||a.link);Ii.set(e?void 0:a),e&&c("close")},r,o,function(t){ut[t?"unshift":"push"]((()=>{f=t,i(2,f)}))},function(e){ct.call(this,t,e)}]}Ii.subscribe((t=>{t?!Pi&&window.addEventListener("click",Li):Pi&&window.removeEventListener("click",Li),Pi=!!t}));class Ci extends Yt{constructor(t){super(),Gt(this,t,Ni,Ai,a,{menu:0,originalId:1})}}function zi(e){let i,n;return{c(){i=N("img"),c(i.src,n=e[1].src)||V(i,"src",n),V(i,"alt","Icon"),V(i,"class","micrio-button")},m(t,e){I(t,i,e)},p(t,e){2&e&&!c(i.src,n=t[1].src)&&V(i,"src",n)},i:t,o:t,d(t){t&&L(i)}}}function Di(t){let e,i;return e=new bi({props:{name:t[0]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.name=t[0]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Oi(t){let e,n,s,o,a,l,c,d,u,h,p,$;const w=[Di,zi],y=[];function b(t,e){return t[0]?0:t[1]?1:-1}~(n=b(t))&&(s=y[n]=w[n](t));const k=t[10].default,T=m(k,t,t[9],null);let x=[{href:t[6]},{target:a=t[7]?"_blank":void 0},{disabled:l=!!t[3]||void 0},{title:t[2]},{"aria-label":t[2]},{role:c=t[6]?void 0:"button"},{tabindex:d=t[6]?void 0:0},{class:u="micrio-button "+(t[0]??"")+" "+t[5]+" micrio-button"}],_={};for(let r=0;r<x.length;r+=1)_=i(_,x[r]);return{c(){e=N(t[6]?"a":"button"),s&&s.c(),o=O(),T&&T.c(),G(t[6]?"a":"button")(e,_),H(e,"active",t[4]),H(e,"no-click",t[8])},m(i,s){I(i,e,s),~n&&y[n].m(e,null),S(e,o),T&&T.m(e,null),h=!0,p||($=[R(e,"click",t[11]),R(e,"focus",t[12]),R(e,"pointerdown",t[13])],p=!0)},p(t,i){let r=n;n=b(t),n===r?~n&&y[n].p(t,i):(s&&(At(),Pt(y[r],1,1,(()=>{y[r]=null})),It()),~n?(s=y[n],s?s.p(t,i):(s=y[n]=w[n](t),s.c()),Lt(s,1),s.m(e,o)):s=null),T&&T.p&&(!h||512&i)&&g(T,k,t,t[9],h?f(k,t[9],i,null):v(t[9]),null),G(t[6]?"a":"button")(e,_=Ut(x,[(!h||64&i)&&{href:t[6]},(!h||128&i&&a!==(a=t[7]?"_blank":void 0))&&{target:a},(!h||8&i&&l!==(l=!!t[3]||void 0))&&{disabled:l},(!h||4&i)&&{title:t[2]},(!h||4&i)&&{"aria-label":t[2]},(!h||64&i&&c!==(c=t[6]?void 0:"button"))&&{role:c},(!h||64&i&&d!==(d=t[6]?void 0:0))&&{tabindex:d},(!h||33&i&&u!==(u="micrio-button "+(t[0]??"")+" "+t[5]+" micrio-button"))&&{class:u}])),H(e,"active",t[4]),H(e,"no-click",t[8])},i(t){h||(Lt(s),Lt(T,t),h=!0)},o(t){Pt(s),Pt(T,t),h=!1},d(t){t&&L(e),~n&&y[n].d(),T&&T.d(t),p=!1,r($)}}}function Ri(t){let e,i,n=t[6]?"a":"button",s=(t[6]?"a":"button")&&Oi(t);return{c(){s&&s.c(),e=O()},m(t,n){s&&s.m(t,n),I(t,e,n),i=!0},p(t,[i]){t[6]||"button"?n?a(n,t[6]?"a":"button")?(s.d(1),s=Oi(t),n=t[6]?"a":"button",s.c(),s.m(e.parentNode,e)):s.p(t,i):(s=Oi(t),n=t[6]?"a":"button",s.c(),s.m(e.parentNode,e)):n&&(s.d(1),s=null,n=t[6]?"a":"button")},i(t){i||(Lt(s,t),i=!0)},o(t){Pt(s,t),i=!1},d(t){t&&L(e),s&&s.d(t)}}}function Fi(t,e,i){let{$$slots:n={},$$scope:s}=e,{type:r}=e,{icon:o}=e,{title:a=null}=e,{disabled:l=!1}=e,{active:c=!1}=e,{className:d=""}=e,{href:u}=e,{blankTarget:h=!1}=e,{noClick:m=!1}=e;return t.$$set=t=>{"type"in t&&i(0,r=t.type),"icon"in t&&i(1,o=t.icon),"title"in t&&i(2,a=t.title),"disabled"in t&&i(3,l=t.disabled),"active"in t&&i(4,c=t.active),"className"in t&&i(5,d=t.className),"href"in t&&i(6,u=t.href),"blankTarget"in t&&i(7,h=t.blankTarget),"noClick"in t&&i(8,m=t.noClick),"$$scope"in t&&i(9,s=t.$$scope)},[r,o,a,l,c,d,u,h,m,s,n,function(e){ct.call(this,t,e)},function(e){ct.call(this,t,e)},function(e){ct.call(this,t,e)}]}class Ui extends Yt{constructor(t){super(),Gt(this,t,Fi,Ri,a,{type:0,icon:1,title:2,disabled:3,active:4,className:5,href:6,blankTarget:7,noClick:8})}}function Vi(t,e,i){const n=t.slice();return n[33]=e[i],n}function Bi(t){let e,i,n,s,r,o,a,l=t[1]&&qi(t),c=t[3]&&Xi(t),d=t[2]&&Gi(t),u=t[7]&&Yi(t);return{c(){e=N("menu"),l&&l.c(),i=D(),c&&c.c(),n=D(),d&&d.c(),r=D(),u&&u.c(),o=O(),V(e,"class","micrio-toolbar micrio-toolbar"),H(e,"shown",!t[10]&&t[5]),H(e,"indent",t[6])},m(t,s){I(t,e,s),l&&l.m(e,null),S(e,i),c&&c.m(e,null),S(e,n),d&&d.m(e,null),I(t,r,s),u&&u.m(t,s),I(t,o,s),a=!0},p(t,s){t[1]?l?(l.p(t,s),2&s[0]&&Lt(l,1)):(l=qi(t),l.c(),Lt(l,1),l.m(e,i)):l&&(At(),Pt(l,1,1,(()=>{l=null})),It()),t[3]?c?(c.p(t,s),8&s[0]&&Lt(c,1)):(c=Xi(t),c.c(),Lt(c,1),c.m(e,n)):c&&(At(),Pt(c,1,1,(()=>{c=null})),It()),t[2]?d?(d.p(t,s),4&s[0]&&Lt(d,1)):(d=Gi(t),d.c(),Lt(d,1),d.m(e,null)):d&&(At(),Pt(d,1,1,(()=>{d=null})),It()),(!a||1056&s[0])&&H(e,"shown",!t[10]&&t[5]),(!a||64&s[0])&&H(e,"indent",t[6]),t[7]?u?(u.p(t,s),128&s[0]&&Lt(u,1)):(u=Yi(t),u.c(),Lt(u,1),u.m(o.parentNode,o)):u&&(At(),Pt(u,1,1,(()=>{u=null})),It())},i(t){a||(Lt(l),Lt(c),Lt(d),t&&$t((()=>{a&&(s||(s=zt(e,_e,{duration:200},!0)),s.run(1))})),Lt(u),a=!0)},o(t){Pt(l),Pt(c),Pt(d),t&&(s||(s=zt(e,_e,{duration:200},!1)),s.run(0)),Pt(u),a=!1},d(t){t&&(L(e),L(r),L(o)),l&&l.d(),c&&c.d(),d&&d.d(),t&&s&&s.end(),u&&u.d(t)}}}function qi(t){let e,i,n=[],s=new Map,r=Dt(t[1]);const o=t=>t[33].id;for(let a=0;a<r.length;a+=1){let e=Vi(t,r,a),i=o(e);s.set(i,n[a]=Wi(i,e))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=O()},m(t,s){for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,s);I(t,e,s),i=!0},p(t,i){3145730&i[0]&&(r=Dt(t[1]),At(),n=Ft(n,i,o,0,t,r,s,e.parentNode,Rt,Wi,e,Vi),It())},i(t){if(!i){for(let t=0;t<r.length;t+=1)Lt(n[t]);i=!0}},o(t){for(let e=0;e<n.length;e+=1)Pt(n[e]);i=!1},d(t){t&&L(e);for(let e=0;e<n.length;e+=1)n[e].d(t)}}}function Wi(t,e){let i,n,s;return n=new Ci({props:{menu:e[33],originalId:e[20]}}),n.$on("close",e[21]),{key:t,first:null,c(){i=O(),qt(n.$$.fragment),this.first=i},m(t,e){I(t,i,e),Wt(n,t,e),s=!0},p(t,i){e=t;const s={};2&i[0]&&(s.menu=e[33]),n.$set(s)},i(t){s||(Lt(n.$$.fragment,t),s=!0)},o(t){Pt(n.$$.fragment,t),s=!1},d(t){t&&L(i),Xt(n,t)}}}function Xi(t){let e,i;return e=new Ci({props:{menu:{id:Jt(),i18n:{[t[12]]:{title:t[9]?"Marker tours":"Tours"}},children:t[4].map(t[26])}}}),e.$on("close",t[21]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};4624&i[0]&&(n.menu={id:Jt(),i18n:{[t[12]]:{title:t[9]?"Marker tours":"Tours"}},children:t[4].map(t[26])}),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Gi(t){let e,i;return e=new Ci({props:{menu:{id:Jt(),i18n:{[t[12]]:{title:t[9]?"Video tours":"Tours"}},children:t[0]&&t[0].tours?t[0].tours.map(t[27]):[]}}}),e.$on("close",t[21]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};6657&i[0]&&(n.menu={id:Jt(),i18n:{[t[12]]:{title:t[9]?"Video tours":"Tours"}},children:t[0]&&t[0].tours?t[0].tours.map(t[27]):[]}),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Yi(t){let e,i;return e=new Ui({props:{title:t[13].menuToggle,type:t[5]?"close":"ellipsis-vertical",className:"toggle transparent"+(t[6]?" indent":"")}}),e.$on("click",t[28]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};8192&i[0]&&(n.title=t[13].menuToggle),32&i[0]&&(n.type=t[5]?"close":"ellipsis-vertical"),64&i[0]&&(n.className="toggle transparent"+(t[6]?" indent":"")),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function ji(t){let e,i,n=!t[8]&&!t[10]&&Bi(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,i){t[8]||t[10]?n&&(At(),Pt(n,1,1,(()=>{n=null})),It()):n?(n.p(t,i),1280&i[0]&&Lt(n,1)):(n=Bi(t),n.c(),Lt(n,1),n.m(e.parentNode,e))},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}function Hi(t,e,i){let n,s,r,o,a,l,c,d,u,m,p,f,g;h(t,Oe,(t=>i(13,f=t)));const v=lt("micrio"),{state:$,current:w,_lang:y,spaceData:b}=v;h(t,w,(t=>i(11,m=t))),h(t,y,(t=>i(12,p=t)));const{tour:k,marker:T,popover:x}=$;h(t,k,(t=>i(25,u=t))),h(t,T,(t=>i(24,d=t))),h(t,x,(t=>i(23,c=t)));let _=!1,E=!1;const S=m.id;let M,A;const I=()=>i(7,A=window.innerWidth<=500);I();const L=[],P=(t,e)=>{var i,n;return("title"in t?t.title:null==(n=null==(i=t.i18n)?void 0:i[e])?void 0:n.title)??"(Untitled)"};rt((()=>{const t=v.current.subscribe((t=>{var e;if(t){for(;L.length;)null==(e=L.shift())||e();le(t.info).then((()=>i(6,E=!t.$settings.noLogo))),L.push(t.data.subscribe((t=>{i(0,g=t),vt().then((()=>{var e,n;if(!(null==t?void 0:t.pages))return;M||i(1,M=null==(e=t.pages)?void 0:e.filter((t=>{var e;return!(null==(e=t.id)?void 0:e.startsWith("_"))})));const s=null==(n=t.pages)?void 0:n.filter((t=>{var e;return null==(e=t.id)?void 0:e.startsWith("_")}));s.length&&i(1,M=[...M.filter((t=>{var e;return!(null==(e=t.id)?void 0:e.startsWith("_"))})),...s])}))})))}}));return window.addEventListener("resize",I),()=>{var e;for(window.removeEventListener("resize",I);L.length;)null==(e=L.shift())||e();t()}}));return t.$$.update=()=>{var e;58720256&t.$$.dirty[0]&&i(10,n=!!u||!!d||!!c),1&t.$$.dirty[0]&&i(4,s=((null==g?void 0:g.markerTours)??[]).concat((null==b?void 0:b.markerTours)??[])),16&t.$$.dirty[0]&&i(3,r=null==s?void 0:s.length),1&t.$$.dirty[0]&&i(2,o=null==(e=null==g?void 0:g.tours)?void 0:e.length),12&t.$$.dirty[0]&&i(9,a=r&&o),14&t.$$.dirty[0]&&i(8,l=!((null==M?void 0:M.length)||r||o))},[g,M,o,r,s,_,E,A,l,a,n,m,p,f,v,w,y,k,T,x,S,()=>{A&&i(5,_=!1)},P,c,d,u,t=>({id:Jt(),i18n:{[p]:{title:P(t,p)}},action:()=>{t.initialStep=0,k.set(t)}}),t=>({id:Jt(),i18n:{[p]:{title:P(t,p)}},action:()=>{m&&m.id!=S&&v.open(S),k.set(t)}}),()=>i(5,_=!_)]}class Zi extends Yt{constructor(t){super(),Gt(this,t,Hi,ji,a,{},null,[-1,-1])}}function Ki(e){let i,n,s;return{c(){i=N("canvas"),V(i,"width",e[11]),V(i,"height",e[12]),V(i,"style",e[6]),V(i,"class","micrio-minimap"),H(i,"hidden",!e[5]||e[7]!=e[0]||e[9]&&(e[3]||e[2])),H(i,"dragging",e[4]),H(i,"controls",!e[10])},m(t,r){I(t,i,r),e[16](i),n||(s=[R(i,"wheel",e[13]),R(i,"mousedown",e[14])],n=!0)},p(t,e){64&e[0]&&V(i,"style",t[6]),685&e[0]&&H(i,"hidden",!t[5]||t[7]!=t[0]||t[9]&&(t[3]||t[2])),16&e[0]&&H(i,"dragging",t[4])},i:t,o:t,d(t){t&&L(i),e[16](null),n=!1,r(s)}}}function Ji(t,e,i){let n,s,{image:r}=e;const o=r.$info,a=r.camera,l=r.$settings,c=lt("micrio"),d=c.current;h(t,d,(t=>i(7,s=t)));const u=c.canvas.viewport,m=l.minimapWidth??200,p=l.minimapHeight??160,f=!l.alwaysShowMinimap,g=!!l.noControls,v=o.width/o.height,$=m/v>p?Math.round(p*v):m,w=m/v<=p?Math.round(m/v):p;let y,b,k=!1,T=!o.is360&&a.isZoomedOut();function x(t){if(t&&b){if(L(),b.clearRect(0,0,$,w),r.thumbSrc?(b.globalCompositeOperation="source-over",b.fillStyle="rgba(0,0,0,.5)",b.fillRect(0,0,$,w),b.globalAlpha=1,b.globalCompositeOperation="destination-out"):(b.fillStyle="rgba(0,0,0,.5)",b.fillRect(0,0,$,w)),b.beginPath(),b.fillStyle="white",o.is360){const t=function(){const t=[],e=u.width*u.ratio,i=u.height*u.ratio,n=a.getCoo(e/2,i/2).slice(0),s=[];for(let r=0;r<8;r++)s.push(r/8*e,0);for(let r=0;r<8;r++)s.push(e,r/8*i);for(let r=0;r<8;r++)s.push((1-r/8)*e,i);for(let r=0;r<8;r++)s.push(0,(1-r/8)*i);for(let r=0;r<s.length;r+=2){const e=a.getCoo(s[r],s[r+1]);(r>40||r<8)&&e[0]>n[0]?e[0]-=1:r>8&&r<40&&e[0]<n[0]&&(e[0]+=1),t.push(e[0],e[1])}return t}();b.moveTo(t[0]*$,t[1]*w);for(let e=2;e<t.length;e+=2)b.lineTo(t[e]*$,t[e+1]*w);b.closePath()}else i(3,T=a.isZoomedOut()),b.rect(Math.floor(t[0]*$),Math.floor(t[1]*w),Math.ceil((t[2]-t[0])*$),Math.ceil((t[3]-t[1])*w));r.thumbSrc&&(b.fill(),b.globalCompositeOperation="source-over"),b.stroke()}}const _=-1!=navigator.userAgent.indexOf("Firefox");let E,S,M=!1;function A(t){E&&a.setCoo(Math.max(0,Math.min(1,(t.clientX-E.left)/E.width)),Math.max(0,Math.min(1,(t.clientY-E.top)/E.height)))}function I(){window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",I),i(4,M=!1)}function L(){i(2,k=!1),clearTimeout(S),S=setTimeout((()=>i(2,k=!0)),2500)}const P=.5-r.camera.trueNorth,N=self.crossOriginIsolated;let C=N?void 0:r.thumbSrc;const z={passive:!0};let D=!1;return rt((()=>{let t;b=y.getContext("2d"),b&&(b.lineWidth=1,b.strokeStyle="white"),N&&r.thumbSrc&&fetch(r.thumbSrc).then((t=>t.blob())).then((e=>i(15,C=t=URL.createObjectURL(e)))),c.canvas.element.addEventListener("mousemove",L,z);const e=r.state.view.subscribe(x);return setTimeout((()=>i(5,D=!0)),10),()=>{t&&URL.revokeObjectURL(t),c.canvas.element.removeEventListener("mousemove",L,z),I(),e()}})),t.$$set=t=>{"image"in t&&i(0,r=t.image)},t.$$.update=()=>{32768&t.$$.dirty[0]&&i(6,n=C?`background-image: url('${C}')`+(0!=P?`;background-position-x:${$*P}px`:""):null)},[r,y,k,T,M,D,n,s,d,f,g,$,w,function(t){a.zoom(t.deltaY*(_?50:1))},function(t){0==t.button&&(window.addEventListener("mousemove",A),window.addEventListener("mouseup",I),E=y.getClientRects()[0],A(t),i(4,M=!0))},C,function(t){ut[t?"unshift":"push"]((()=>{y=t,i(1,y)}))}]}class Qi extends Yt{constructor(t){super(),Gt(this,t,Ji,Ki,a,{image:0},null,[-1,-1])}}const tn=(null==navigator?void 0:navigator.language)??"en-EN",en="Intl"in self&&Intl.DisplayNames?new Intl.DisplayNames([tn],{type:"language"}):void 0,nn=["ar","ar-AE","ar-BH","ar-DJ","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LB","ar-LY","ar-MA","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-TN","ar-YE","dv-MV","fa-AF","fa-IR","he","he-IL","iw","iw-PS","kd","ku-IQ","ku-IR","ku-SY","ku-TR","pk-PK","ps","ps-AF","sd-PK","syr-SY","ug","ug-CN","ur","ur-IN","ur-PK","yi","yi-IL","yi-US"];function sn(t){let e,i,n;const s=t[2].default,r=m(s,t,t[1],null);return{c(){e=N("div"),r&&r.c(),V(e,"class",i=$(t[0])+" micrio-button-group")},m(t,i){I(t,e,i),r&&r.m(e,null),n=!0},p(t,[o]){r&&r.p&&(!n||2&o)&&g(r,s,t,t[1],n?f(s,t[1],o,null):v(t[1]),null),(!n||1&o&&i!==(i=$(t[0])+" micrio-button-group"))&&V(e,"class",i)},i(t){n||(Lt(r,t),n=!0)},o(t){Pt(r,t),n=!1},d(t){t&&L(e),r&&r.d(t)}}}function rn(t,e,i){let{$$slots:n={},$$scope:s}=e,{className:r=""}=e;return t.$$set=t=>{"className"in t&&i(0,r=t.className),"$$scope"in t&&i(1,s=t.$$scope)},[r,s,n]}class on extends Yt{constructor(t){super(),Gt(this,t,rn,sn,a,{className:0})}}function an(t){let e,i,n=t[2]&&function(t){let e,i;return e=new Ui({props:{type:t[0]?"minimize":"maximize",title:t[1].fullscreenToggle}}),e.$on("click",t[3]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.type=t[0]?"minimize":"maximize"),2&i&&(n.title=t[1].fullscreenToggle),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,[e]){t[2]&&n.p(t,e)},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}function ln(t,e,i){let n;h(t,Oe,(t=>i(1,n=t)));let{el:s}=e;const r="requestFullscreen"in s,o="webkitRequestFullscreen"in s,a=lt("micrio"),l=()=>r?document.fullscreenElement:document.webkitFullscreenElement;let c=l()==s;const d=r||o&&!l(),u=()=>new Promise((t=>setTimeout(t,500)));let m;const p=s==a&&!a.events.scrollHooked,f=()=>{i(0,c=l()==s),p&&(c?a.events.hookScroll():a.events.unhookScroll())};return d&&rt((()=>{const t=r?"fullscreenchange":"webkitfullscreenchange";return document.addEventListener(t,f),()=>document.removeEventListener(t,f)})),t.$$set=t=>{"el"in t&&i(4,s=t.el)},[c,n,d,function(){c?async function(){r?(await document.exitFullscreen().then(u),m&&m.requestFullscreen(),m=void 0):"webkitExitFullscreen"in document&&document.webkitExitFullscreen()}():async function(){r?(ie.safari&&(m=l())&&await document.exitFullscreen().then(u),s.requestFullscreen()):"webkitRequestFullscreen"in s&&s.webkitRequestFullscreen()}()},s]}class cn extends Yt{constructor(t){super(),Gt(this,t,ln,an,a,{el:4})}}function dn(t){let e,i,n,s;return e=new Ui({props:{type:"zoom-in",title:t[3].zoomIn,disabled:t[2]||t[0]}}),e.$on("click",t[4]),n=new Ui({props:{type:"zoom-out",title:t[3].zoomOut,disabled:t[2]||t[1]}}),n.$on("click",t[5]),{c(){qt(e.$$.fragment),i=D(),qt(n.$$.fragment)},m(t,r){Wt(e,t,r),I(t,i,r),Wt(n,t,r),s=!0},p(t,i){const s={};8&i&&(s.title=t[3].zoomIn),5&i&&(s.disabled=t[2]||t[0]),e.$set(s);const r={};8&i&&(r.title=t[3].zoomOut),6&i&&(r.disabled=t[2]||t[1]),n.$set(r)},i(t){s||(Lt(e.$$.fragment,t),Lt(n.$$.fragment,t),s=!0)},o(t){Pt(e.$$.fragment,t),Pt(n.$$.fragment,t),s=!1},d(t){t&&L(i),Xt(e,t),Xt(n,t)}}}function un(t){let e,i,n=(!t[0]||!t[1])&&dn(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,[i]){t[0]&&t[1]?n&&(At(),Pt(n,1,1,(()=>{n=null})),It()):n?(n.p(t,i),3&i&&Lt(n,1)):(n=dn(t),n.c(),Lt(n,1),n.m(e.parentNode,e))},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}function hn(t,e,i){let n;h(t,Oe,(t=>i(3,n=t)));let{image:s}=e;const r=lt("micrio");let o=!1,a=!1;const l=()=>{r.events.clicked=!0};function c(){i(0,o=(null==s?void 0:s.camera.isZoomedIn())??!0),i(1,a=(null==s?void 0:s.camera.isZoomedOut(!0))??!0)}let d,u,m=!1;return rt((()=>(s?s.state.view.subscribe(c):u=r.current.subscribe((t=>{d&&(d(),d=void 0),i(2,m=!0),i(6,s=t)&&le(t.info).then((()=>{s&&(d=s.state.view.subscribe(c)),i(2,m=!1)}))})),()=>{u&&u(),d&&d()}))),t.$$set=t=>{"image"in t&&i(6,s=t.image)},[o,a,m,n,()=>{l(),null==s||s.camera.zoomIn().then((()=>r.events.clicked=!1))},()=>{l(),null==s||s.camera.zoomOut().then((()=>r.events.clicked=!1))},s]}class mn extends Yt{constructor(t){super(),Gt(this,t,hn,un,a,{image:6})}}function pn(t,e,i){const n=t.slice();return n[38]=e[i],n}function fn(t){let e,i,n,s,r,o,a,l,c=t[3]&&gn(t),d=t[0]&&t[4].length>1&&vn(t),u=t[1]&&"share"in navigator&&yn(t);r=new on({props:{$$slots:{default:[_n]},$$scope:{ctx:t}}});let h=t[5]&&t[8]&&En(t);return{c(){e=N("aside"),c&&c.c(),i=D(),d&&d.c(),n=D(),u&&u.c(),s=D(),qt(r.$$.fragment),o=D(),h&&h.c(),a=O(),V(e,"class","micrio-controls")},m(t,m){I(t,e,m),c&&c.m(e,null),S(e,i),d&&d.m(e,null),S(e,n),u&&u.m(e,null),S(e,s),Wt(r,e,null),S(e,o),h&&h.m(t,m),I(t,a,m),l=!0},p(t,o){t[3]?c?(c.p(t,o),8&o[0]&&Lt(c,1)):(c=gn(t),c.c(),Lt(c,1),c.m(e,i)):c&&(At(),Pt(c,1,1,(()=>{c=null})),It()),t[0]&&t[4].length>1?d?(d.p(t,o),17&o[0]&&Lt(d,1)):(d=vn(t),d.c(),Lt(d,1),d.m(e,n)):d&&(At(),Pt(d,1,1,(()=>{d=null})),It()),t[1]&&"share"in navigator?u?(u.p(t,o),2&o[0]&&Lt(u,1)):(u=yn(t),u.c(),Lt(u,1),u.m(e,s)):u&&(At(),Pt(u,1,1,(()=>{u=null})),It());const l={};420&o[0]|1024&o[1]&&(l.$$scope={dirty:o,ctx:t}),r.$set(l),t[5]&&t[8]?h?(h.p(t,o),288&o[0]&&Lt(h,1)):(h=En(t),h.c(),Lt(h,1),h.m(a.parentNode,a)):h&&(At(),Pt(h,1,1,(()=>{h=null})),It())},i(t){l||(Lt(c),Lt(d),Lt(u),Lt(r.$$.fragment,t),Lt(h),l=!0)},o(t){Pt(c),Pt(d),Pt(u),Pt(r.$$.fragment,t),Pt(h),l=!1},d(t){t&&(L(e),L(a)),c&&c.d(),d&&d.d(),u&&u.d(),Xt(r),h&&h.d(t)}}}function gn(t){let e,i;return e=new Ui({props:{type:t[12]?"volume-off":"volume-up",title:t[12]?t[13].audioUnmute:t[13].audioMute}}),e.$on("click",t[32]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};4096&i[0]&&(n.type=t[12]?"volume-off":"volume-up"),12288&i[0]&&(n.title=t[12]?t[13].audioUnmute:t[13].audioMute),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function vn(t){let e,i,n;i=new Ui({props:{title:t[13].switchLanguage,type:"a11y"}});let s=Dt(t[4]),r=[];for(let a=0;a<s.length;a+=1)r[a]=wn(pn(t,s,a));const o=t=>Pt(r[t],1,1,(()=>{r[t]=null}));return{c(){e=N("menu"),qt(i.$$.fragment);for(let t=0;t<r.length;t+=1)r[t].c();V(e,"class","popout micrio-controls")},m(t,s){I(t,e,s),Wt(i,e,null);for(let i=0;i<r.length;i+=1)r[i]&&r[i].m(e,null);n=!0},p(t,n){const a={};if(8192&n[0]&&(a.title=t[13].switchLanguage),i.$set(a),208&n[0]){let i;for(s=Dt(t[4]),i=0;i<s.length;i+=1){const o=pn(t,s,i);r[i]?(r[i].p(o,n),Lt(r[i],1)):(r[i]=wn(o),r[i].c(),Lt(r[i],1),r[i].m(e,null))}for(At(),i=s.length;i<r.length;i+=1)o(i);It()}},i(t){if(!n){Lt(i.$$.fragment,t);for(let t=0;t<s.length;t+=1)Lt(r[t]);n=!0}},o(t){Pt(i.$$.fragment,t),r=r.filter(Boolean);for(let e=0;e<r.length;e+=1)Pt(r[e]);n=!1},d(t){t&&L(e),Xt(i),P(r,t)}}}function $n(t){let e,i=t[38].toUpperCase()+"";return{c(){e=z(i)},m(t,i){I(t,e,i)},p(t,n){16&n[0]&&i!==(i=t[38].toUpperCase()+"")&&Y(e,i)},d(t){t&&L(e)}}}function wn(t){let e,i;return e=new Ui({props:{title:(null==en?void 0:en.of(t[38]))??t[38],active:t[38]==t[6],$$slots:{default:[$n]},$$scope:{ctx:t}}}),e.$on("click",(function(){return t[33](t[38])})),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(i,n){t=i;const s={};16&n[0]&&(s.title=(null==en?void 0:en.of(t[38]))??t[38]),80&n[0]&&(s.active=t[38]==t[6]),16&n[0]|1024&n[1]&&(s.$$scope={dirty:n,ctx:t}),e.$set(s)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function yn(t){let e,i;return e=new Ui({props:{type:"share",title:t[13].share}}),e.$on("click",t[21]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};8192&i[0]&&(n.title=t[13].share),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function bn(t){let e,i,n,s;const r=[Tn,kn],o=[];function a(t,e){return t[8]?0:1}return e=a(t),i=o[e]=r[e](t),{c(){i.c(),n=D()},m(t,i){o[e].m(t,i),I(t,n,i),s=!0},p(t,s){let l=e;e=a(t),e===l?o[e].p(t,s):(At(),Pt(o[l],1,1,(()=>{o[l]=null})),It(),i=o[e],i?i.p(t,s):(i=o[e]=r[e](t),i.c()),Lt(i,1),i.m(n.parentNode,n))},i(t){s||(Lt(i),s=!0)},o(t){Pt(i),s=!1},d(t){t&&L(n),o[e].d(t)}}}function kn(e){let i,n;return i=new mn({}),{c(){qt(i.$$.fragment)},m(t,e){Wt(i,t,e),n=!0},p:t,i(t){n||(Lt(i.$$.fragment,t),n=!0)},o(t){Pt(i.$$.fragment,t),n=!1},d(t){Xt(i,t)}}}function Tn(t){let e,i;return e=new mn({props:{image:t[8]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};256&i[0]&&(n.image=t[8]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function xn(t){let e,i;return e=new cn({props:{el:t[7]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};128&i[0]&&(n.el=t[7]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function _n(t){let e,i,n,s=t[5]&&bn(t),r=t[2]&&xn(t);return{c(){s&&s.c(),e=O(),r&&r.c(),i=O()},m(t,o){s&&s.m(t,o),I(t,e,o),r&&r.m(t,o),I(t,i,o),n=!0},p(t,n){t[5]?s?(s.p(t,n),32&n[0]&&Lt(s,1)):(s=bn(t),s.c(),Lt(s,1),s.m(e.parentNode,e)):s&&(At(),Pt(s,1,1,(()=>{s=null})),It()),t[2]?r?(r.p(t,n),4&n[0]&&Lt(r,1)):(r=xn(t),r.c(),Lt(r,1),r.m(i.parentNode,i)):r&&(At(),Pt(r,1,1,(()=>{r=null})),It())},i(t){n||(Lt(s),Lt(r),n=!0)},o(t){Pt(s),Pt(r),n=!1},d(t){t&&(L(e),L(i)),s&&s.d(t),r&&r.d(t)}}}function En(t){let e,i,n,s;return i=new on({props:{$$slots:{default:[Sn]},$$scope:{ctx:t}}}),{c(){e=N("aside"),qt(i.$$.fragment),V(e,"class","primary micrio-controls"),H(e,"portrait",t[9])},m(t,n){I(t,e,n),Wt(i,e,null),s=!0},p(t,n){const r={};1024&n[1]&&(r.$$scope={dirty:n,ctx:t}),i.$set(r),(!s||512&n[0])&&H(e,"portrait",t[9])},i(t){s||(Lt(i.$$.fragment,t),t&&$t((()=>{s&&(n||(n=zt(e,_e,{},!0)),n.run(1))})),s=!0)},o(t){Pt(i.$$.fragment,t),t&&(n||(n=zt(e,_e,{},!1)),n.run(0)),s=!1},d(t){t&&L(e),Xt(i),t&&n&&n.end()}}}function Sn(t){let e,i;return e=new mn({}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Mn(t){let e,i,n=t[10]&&fn(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,i){t[10]?n?(n.p(t,i),1024&i[0]&&Lt(n,1)):(n=fn(t),n.c(),Lt(n,1),n.m(e.parentNode,e)):n&&(At(),Pt(n,1,1,(()=>{n=null})),It())},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}function An(e,i,n){let s,r,o,a,l,c,u,m,p,f,g,v,$,w,y,b,k,T=t;h(e,Oe,(t=>n(13,k=t))),e.$$.on_destroy.push((()=>T()));let{hasAudio:x=!1}=i;const _=lt("micrio"),{current:E,state:S,isMuted:M,_lang:A}=_;h(e,E,(t=>n(30,$=t))),h(e,M,(t=>n(12,b=t))),h(e,A,(t=>n(6,w=t)));const I=S.tour;h(e,I,(t=>n(29,v=t)));const{controls:L,zoom:P,hidden:N}=_.state.ui;let C,z;function D(t){const e=t.detail;n(9,z=_.canvas.viewport.portrait),e.opts.isPassive||n(8,C=e)}function O(){n(8,C=null)}h(e,L,(t=>n(28,g=t))),h(e,P,(t=>n(5,p=t))),h(e,N,(t=>n(27,f=t)));let R=!1,F=!1,U=!1;function V(t){var e,i;P.set(!t.noZoom),L.set(!t.noControls),n(0,R=!!(null==(i=null==(e=t.ui)?void 0:e.controls)?void 0:i.cultureSwitch)),n(1,F=!!t.social),n(2,U=!!t.fullscreen)}$&&V($.$settings),rt((()=>{let t;_.addEventListener("splitscreen-start",D),_.addEventListener("splitscreen-stop",O);const e=_.current.subscribe((e=>{e&&le(e.info).then((i=>{!i||v&&"steps"in v||(null==t||t(),t=e.settings.subscribe(V))}))}));return()=>{_.removeEventListener("splitscreen-start",D),_.removeEventListener("splitscreen-stop",O),null==t||t(),e()}}));return e.$$set=t=>{"hasAudio"in t&&n(22,x=t.hasAudio)},e.$$.update=()=>{var t;1073741824&e.$$.dirty[0]&&(n(11,s=null==$?void 0:$.info),T(),T=d(s,(t=>n(31,y=t)))),1073741888&e.$$.dirty[0]|1&e.$$.dirty[1]&&n(4,r=y&&$?$.isV5?Object.keys(y.revision??{[w]:0}):(null==(t="cultures"in y?y.cultures:"")?void 0:t.split(","))??[]:[]),536870912&e.$$.dirty[0]&&n(26,o=v&&"steps"in v&&v.isSerialTour),4194304&e.$$.dirty[0]&&n(3,a="micrioAudioContext"in window||x),17&e.$$.dirty[0]&&n(25,l=R&&r.length>1),2&e.$$.dirty[0]&&n(24,c=F&&"share"in navigator),67108868&e.$$.dirty[0]&&n(23,u=U&&!o),461373480&e.$$.dirty[0]&&n(10,m=g&&!f&&(a||l||c||p||u))},[R,F,U,a,r,p,w,_,C,z,m,s,b,k,E,M,A,I,L,P,N,function(){var t,e;if(navigator.share&&(null==$?void 0:$.$info)){const i=$.$data?(null==(t=$.$data)?void 0:t.i18n)?$.$data.i18n[w]:$.$data:void 0;navigator.share({title:null==(e=$.$info)?void 0:e.title,text:(null==i?void 0:i.description)||`${$.$info.width} x ${$.$info.height} | Micrio`,url:location.href})}},x,u,c,l,o,f,g,v,$,y,()=>M.set(!b),t=>n(7,_.lang=t,_)]}class In extends Yt{constructor(t){super(),Gt(this,t,An,Mn,a,{hasAudio:22},null,[-1,-1])}}class Ln{constructor(t,e){var i;this.image=t,this.data=e,this.timeline=[],this.playing=!1,this._paused=!0,this.wasPaused=!1,this.unhookEvents=!1,this.micrio=t.wasm.micrio,this.initialView=t.camera.getView();const n="timeline"in e?e:(null==(i=e.i18n)?void 0:i[u(this.micrio._lang)])??void 0;if(!n)throw new Error("No valid content for video tour!");this.content=n,this.unhookEvents=!e.keepInteraction&&this.micrio.events.$enabled,e.instance=this,this.read(),this.micrio.events.dispatch("videotour-start",this.data)}destroy(){this.unhookEvents&&this.micrio.events.enabled.set(!0),this.playing&&(this.image.camera.stop(),this.micrio.removeAttribute("data-videotour-playing"),this.micrio.events.dispatch("videotour-stop",this.data),this.playing=!1,delete this.startedAt,delete this.data.instance,this.startAt=void 0,clearTimeout(this._to))}read(){const t=!!this.data.i18n?1:this.content.duration,e=this.content.timeline;this.timeline.length=0;for(let i=0;i<e.length;i++){const n=e[i],s=e[i-1],r=s&&s.end*t||0;this.timeline.push({view:n.rect,start:1e3*r,duration:1e3*(n.start*t-r),pauseDuration:(n.end-n.start)*t*1e3})}this.startedAt&&!this.playing&&(this.progress=this.currentTime)}get duration(){return Number(this.content.duration)}set duration(t){this.content.duration=t}get paused(){return this._paused}get ended(){return this.currentTime>=this.duration}get currentTime(){return(this.pausedAt?this.pausedAt:this.startedAt?Date.now()-this.startedAt:0)/1e3}set currentTime(t){this.setProgress(t/this.content.duration)}get progress(){return this.currentTime/this.content.duration}set progress(t){this.setProgress(t)}play(){this.startedPlaying(),this.wasPaused=!1,this.pausedAt?(this.startedAt=Date.now()-this.pausedAt,this._paused=!1,this.gotoTime(this.pausedAt),this.pausedAt=void 0):this.playing||(this.startedAt=Date.now(),void 0===this.startAt?this.gotoStep(0,0):this.gotoTime(this.duration*this.startAt*1e3),this.startAt=void 0),this._paused=!1,this.playing=!0}pause(){this._paused||null==this.currentIndex||null==this.startedAt||(this._paused=!0,this.stoppedPlaying(),clearTimeout(this._to),this.currentIndex>=0&&this.image.camera.stop(),this.ended?this.reset():this.pausedAt=Date.now()-this.startedAt)}reset(){this.stoppedPlaying(),this.pausedAt=void 0,this.playing=!1,this.read()}gotoStep(t,e){if(null==this.startedAt)return;if(clearTimeout(this._to),!this.timeline[t])return void(this.paused&&this.wasPaused||(this._to=setTimeout((()=>this.pause()),Math.round(1e3*this.duration-(Date.now()-this.startedAt)))));const i=this.timeline[t],n=Math.round(i.start-(Date.now()-this.startedAt));this.currentIndex=t,this.image.camera.stop(),n>0?this._paused||(this._to=setTimeout((()=>this.startAni(e)),n)):this.startAni(e)}nextStep(){null!=this.currentIndex&&this.gotoStep(this.currentIndex+1)}getView(t){const e=this.timeline[t];return null==e?this.initialView??this.image.camera.getView():e.view}startAni(t=0){var e;if(null==this.currentIndex||isNaN(t))return;const i=this.timeline[this.currentIndex];if(null==i)return;const n=i.view,s=this.getView(this.currentIndex-1),r=null==(e=this.image.opts)?void 0:e.area;if(this.wasPaused&&s){const e=this.micrio.wasm.e.ease(t);this.image.camera.setView([s[0]*(1-e)+n[0]*e,s[1]*(1-e)+n[1]*e,s[2]*(1-e)+n[2]*e,s[3]*(1-e)+n[3]*e],{noLimit:!0,area:r}),this.nextStep()}else this.image.camera.flyToView(n,{duration:i.duration,progress:t,prevView:s,area:r}).then((()=>{null!=this.currentIndex&&i==this.timeline[this.currentIndex]&&this.nextStep()})).catch((()=>{}))}startedPlaying(){this.micrio.setAttribute("data-videotour-playing",""),this.micrio.events.dispatch("videotour-play"),this.unhookEvents&&this.micrio.events.enabled.set(!1)}stoppedPlaying(){this.micrio.removeAttribute("data-videotour-playing"),this.micrio.events.dispatch("videotour-pause"),this.unhookEvents&&this.micrio.events.enabled.set(!0)}setProgress(t){t=Math.max(0,Math.min(1,t)),this.wasPaused=!!this.paused||!this.playing,this.pause(),this.wasPaused||(this._paused=!1,this.startedPlaying());const e=this.duration*t*1e3;this.pausedAt=e,this.gotoTime(e),this.wasPaused?this.pause():(this.pausedAt=0,this._paused=!1)}gotoTime(t){let e=null,i=0;for(;i<this.timeline.length&&!(this.timeline[i].start>t);i++)e=this.timeline[i];if(i--,e||!(i>0))if(e){this.image.camera.stop();const n=e.duration>0?(t-e.start)/e.duration:0;this.startedAt=Date.now()-e.start-e.duration*n,isNaN(this.startedAt)&&(this.startedAt=Date.now()-t),n>1?(this.gotoStep(i+1),null!=e.view&&this.image.camera.setView(e.view,{noLimit:!0})):(i>0&&this.image.camera.setView(this.timeline[i-1].view,{noLimit:!0}),this.gotoStep(i,n))}else this.timeline.length&&this.image.camera.stop(),this.paused||this.gotoStep(0)}}function Pn(t,e,i){const n=t.slice();return n[8]=e[i],n}function Nn(t){let e,i,n=[],s=new Map,r=Dt(t[1]);const o=t=>t[8];for(let a=0;a<r.length;a+=1){let e=Pn(t,r,a),i=o(e);s.set(i,n[a]=Cn(i,e))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=O()},m(t,s){for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,s);I(t,e,s),i=!0},p(t,i){3&i&&(r=Dt(t[1]),At(),n=Ft(n,i,o,0,t,r,s,e.parentNode,Rt,Cn,e,Pn),It())},i(t){if(!i){for(let t=0;t<r.length;t+=1)Lt(n[t]);i=!0}},o(t){for(let e=0;e<n.length;e+=1)Pt(n[e]);i=!1},d(t){t&&L(e);for(let e=0;e<n.length;e+=1)n[e].d(t)}}}function Cn(t,e){let i,n,s,r,o,a=e[8].data+"";return{key:t,first:null,c(){i=N("div"),n=N("p"),s=z(a),V(n,"class","micrio-subtitles"),V(i,"class","micrio-subtitles"),H(i,"raised",e[0]),this.first=i},m(t,e){I(t,i,e),S(i,n),S(n,s),o=!0},p(t,n){e=t,(!o||2&n)&&a!==(a=e[8].data+"")&&Y(s,a),(!o||1&n)&&H(i,"raised",e[0])},i(t){o||(t&&$t((()=>{o&&(r||(r=zt(i,_e,{},!0)),r.run(1))})),o=!0)},o(t){t&&(r||(r=zt(i,_e,{},!1)),r.run(0)),o=!1},d(t){t&&L(i),t&&r&&r.end()}}}function zn(t){let e,i,n=t[2]&&Nn(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,[i]){t[2]?n?(n.p(t,i),4&i&&Lt(n,1)):(n=Nn(t),n.c(),Lt(n,1),n.m(e.parentNode,e)):n&&(At(),Pt(n,1,1,(()=>{n=null})),It())},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}window.MicrioVideoTour=Ln;const Dn="micrio-captions-disable",On=Ht("1"!=localStorage.getItem(Dn));function Rn(e,i,n){let s,r,o=t;h(e,On,(t=>n(2,r=t))),e.$$.on_destroy.push((()=>o()));let{src:a}=i,{raised:l=!1}=i;const c=[];fetch(a).then((t=>t.text())).then((t=>{const e=t.split("\n");for(let i=0;i<e.length;i++)if(/-->/.test(e[i])){let t=i+1;const n=[];for(;!e[t]&&t<e.length;)t++;for(;e[t]&&e[t].trim();)n.push(e[t++]);const[s,r]=e[i].split(" --\x3e ").map((t=>t.trim().replace(",",".").split(":").map(Number))).map((t=>3600*t[0]+60*t[1]+t[2]));c.push({start:s,end:r,data:n.join("\n")}),i+=n.length+1}}));const d=lt("micrio");let u=0;const m=t=>n(4,u=t.detail);return rt((()=>(d.addEventListener("timeupdate",m),()=>d.removeEventListener("timeupdate",m)))),e.$$set=t=>{"src"in t&&n(3,a=t.src),"raised"in t&&n(0,l=t.raised)},e.$$.update=()=>{16&e.$$.dirty&&n(1,s=c.filter((t=>t.start<=u&&t.end>=u)))},[l,s,r,a,u]}On.subscribe((t=>{t?localStorage.removeItem(Dn):localStorage.setItem(Dn,"1")}));class Fn extends Yt{constructor(t){super(),Gt(this,t,Rn,zn,a,{src:3,raised:0})}}function Un(t){let e,i,n,s,o,a,l,c,d=ae(t[2]||t[0]<=0?t[1]:(t[0]||0)-t[1])+"";const u=t[4].default,h=m(u,t,t[3],null);return{c(){e=N("div"),i=N("div"),h&&h.c(),n=N("div"),s=z(d),V(i,"class","bars micrio-progress-bar"),V(n,"class","time micrio-progress-bar"),V(e,"class","container micrio-progress-bar"),V(e,"style",o=`--progress: ${Math.round((t[0]||0)/t[1]*1e4)/100}%;--time: '${ae(t[0]||0)}';`)},m(r,o){I(r,e,o),S(e,i),h&&h.m(i,null),S(e,n),S(n,s),a=!0,l||(c=[R(e,"click",U(t[5])),R(e,"keydown",U(t[6]))],l=!0)},p(t,[i]){h&&h.p&&(!a||8&i)&&g(h,u,t,t[3],a?f(u,t[3],i,null):v(t[3]),null),(!a||7&i)&&d!==(d=ae(t[2]||t[0]<=0?t[1]:(t[0]||0)-t[1])+"")&&Y(s,d),(!a||3&i&&o!==(o=`--progress: ${Math.round((t[0]||0)/t[1]*1e4)/100}%;--time: '${ae(t[0]||0)}';`))&&V(e,"style",o)},i(t){a||(Lt(h,t),a=!0)},o(t){Pt(h,t),a=!1},d(t){t&&L(e),h&&h.d(t),l=!1,r(c)}}}function Vn(t,e,i){let{$$slots:n={},$$scope:s}=e,{currentTime:r=0}=e,{duration:o}=e,{ended:a=!1}=e;return t.$$set=t=>{"currentTime"in t&&i(0,r=t.currentTime),"duration"in t&&i(1,o=t.duration),"ended"in t&&i(2,a=t.ended),"$$scope"in t&&i(3,s=t.$$scope)},[r,o,a,s,n,function(e){ct.call(this,t,e)},function(e){ct.call(this,t,e)}]}class Bn extends Yt{constructor(t){super(),Gt(this,t,Vn,Un,a,{currentTime:0,duration:1,ended:2})}}function qn(t){let e,i,n;return{c(){e=C("svg"),i=C("circle"),V(i,"r","19"),V(i,"cx","21"),V(i,"cy","21"),V(i,"stroke-dashoffset",n=119.4*(1-t[0]/t[2])),V(i,"class","micrio-media-controls"),V(e,"height","42"),V(e,"width","42"),V(e,"class","micrio-media-controls")},m(t,n){I(t,e,n),S(e,i)},p(t,e){5&e&&n!==(n=119.4*(1-t[0]/t[2]))&&V(i,"stroke-dashoffset",n)},d(t){t&&L(e)}}}function Wn(t){let e,i=t[5]&&t[0]>0&&qn(t);return{c(){i&&i.c(),e=O()},m(t,n){i&&i.m(t,n),I(t,e,n)},p(t,n){t[5]&&t[0]>0?i?i.p(t,n):(i=qn(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(t){t&&L(e),i&&i.d(t)}}}function Xn(t){let e,i,n,s,r=t[10]&&Gn(t),o=t[8]&&Yn(t),a=!!t[7]&&jn(t);return{c(){r&&r.c(),e=D(),o&&o.c(),i=D(),a&&a.c(),n=O()},m(t,l){r&&r.m(t,l),I(t,e,l),o&&o.m(t,l),I(t,i,l),a&&a.m(t,l),I(t,n,l),s=!0},p(t,s){t[10]?r?(r.p(t,s),1024&s&&Lt(r,1)):(r=Gn(t),r.c(),Lt(r,1),r.m(e.parentNode,e)):r&&(At(),Pt(r,1,1,(()=>{r=null})),It()),t[8]?o?(o.p(t,s),256&s&&Lt(o,1)):(o=Yn(t),o.c(),Lt(o,1),o.m(i.parentNode,i)):o&&(At(),Pt(o,1,1,(()=>{o=null})),It()),t[7]?a?(a.p(t,s),128&s&&Lt(a,1)):(a=jn(t),a.c(),Lt(a,1),a.m(n.parentNode,n)):a&&(At(),Pt(a,1,1,(()=>{a=null})),It())},i(t){s||(Lt(r),Lt(o),Lt(a),s=!0)},o(t){Pt(r),Pt(o),Pt(a),s=!1},d(t){t&&(L(e),L(i),L(n)),r&&r.d(t),o&&o.d(t),a&&a.d(t)}}}function Gn(t){let e,i;return e=new Ui({props:{disabled:t[3],type:t[4]?"volume-off":"volume-up",title:t[4]?t[11].audioUnmute:t[11].audioMute}}),e.$on("click",t[19]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};8&i&&(n.disabled=t[3]),16&i&&(n.type=t[4]?"volume-off":"volume-up"),2064&i&&(n.title=t[4]?t[11].audioUnmute:t[11].audioMute),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Yn(t){let e,i;return e=new Ui({props:{type:t[12]?"subtitles":"subtitles-off",active:t[12],title:t[11].subtitlesToggle}}),e.$on("click",t[20]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};4096&i&&(n.type=t[12]?"subtitles":"subtitles-off"),4096&i&&(n.active=t[12]),2048&i&&(n.title=t[11].subtitlesToggle),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function jn(t){let e,i;return e=new cn({props:{el:t[7]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};128&i&&(n.el=t[7]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Hn(t){let e,i,n,s;function r(e){t[22](e)}function o(e){t[23](e)}let a={duration:t[2],$$slots:{default:[Zn]},$$scope:{ctx:t}};return void 0!==t[0]&&(a.currentTime=t[0]),void 0!==t[1]&&(a.ended=t[1]),e=new Bn({props:a}),ut.push((()=>Bt(e,"currentTime",r))),ut.push((()=>Bt(e,"ended",o))),{c(){qt(e.$$.fragment)},m(t,i){Wt(e,t,i),s=!0},p(t,s){const r={};4&s&&(r.duration=t[2]),134218245&s&&(r.$$scope={dirty:s,ctx:t}),!i&&1&s&&(i=!0,r.currentTime=t[0],wt((()=>i=!1))),!n&&2&s&&(n=!0,r.ended=t[1],wt((()=>n=!1))),e.$set(r)},i(t){s||(Lt(e.$$.fragment,t),s=!0)},o(t){Pt(e.$$.fragment,t),s=!1},d(t){Xt(e,t)}}}function Zn(t){let e,i,n,s;return{c(){e=N("div"),V(e,"class","bar active"),V(e,"style",i=`--perc:${t[0]/t[2]*100}%;`)},m(i,r){I(i,e,r),t[21](e),n||(s=R(e,"mousedown",t[14]),n=!0)},p(t,n){5&n&&i!==(i=`--perc:${t[0]/t[2]*100}%;`)&&V(e,"style",i)},d(i){i&&L(e),t[21](null),n=!1,s()}}}function Kn(t){let e,i,n,s,o,a,l,c;i=new Ui({props:{type:t[6]?"play":"pause",title:t[6]?t[11].play:t[11].pause,$$slots:{default:[Wn]},$$scope:{ctx:t}}}),i.$on("click",t[18]);let d=!t[5]&&Xn(t),u=!t[5]&&Hn(t);return{c(){e=N("aside"),qt(i.$$.fragment),n=D(),d&&d.c(),s=D(),u&&u.c(),o=O(),V(e,"class","micrio-media-controls")},m(r,h){I(r,e,h),Wt(i,e,null),S(e,n),d&&d.m(e,null),I(r,s,h),u&&u.m(r,h),I(r,o,h),a=!0,l||(c=[R(e,"click",U(t[16])),R(e,"keydown",U(t[17]))],l=!0)},p(t,[n]){const s={};64&n&&(s.type=t[6]?"play":"pause"),2112&n&&(s.title=t[6]?t[11].play:t[11].pause),134217765&n&&(s.$$scope={dirty:n,ctx:t}),i.$set(s),t[5]?d&&(At(),Pt(d,1,1,(()=>{d=null})),It()):d?(d.p(t,n),32&n&&Lt(d,1)):(d=Xn(t),d.c(),Lt(d,1),d.m(e,null)),t[5]?u&&(At(),Pt(u,1,1,(()=>{u=null})),It()):u?(u.p(t,n),32&n&&Lt(u,1)):(u=Hn(t),u.c(),Lt(u,1),u.m(o.parentNode,o))},i(t){a||(Lt(i.$$.fragment,t),Lt(d),Lt(u),a=!0)},o(t){Pt(i.$$.fragment,t),Pt(d),Pt(u),a=!1},d(t){t&&(L(e),L(s),L(o)),Xt(i),d&&d.d(),u&&u.d(t),l=!1,r(c)}}}function Jn(t,e,i){let n,s,r;h(t,Oe,(t=>i(11,s=t))),h(t,On,(t=>i(12,r=t)));let{currentTime:o=0}=e,{duration:a=0}=e,{seeking:l=!0}=e,{muted:c=!1}=e,{minimal:d=!1}=e,{volume:u}=e,{paused:m}=e,{ended:p}=e,{fullscreen:f}=e,{subtitles:g=!1}=e;const v=ot();let $;function w(t){const e=$.getClientRects()[0],i=Math.min(1,Math.max(0,(t.clientX-e.left)/e.width));v("seek",i*a)}function y(){window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",y)}return t.$$set=t=>{"currentTime"in t&&i(0,o=t.currentTime),"duration"in t&&i(2,a=t.duration),"seeking"in t&&i(3,l=t.seeking),"muted"in t&&i(4,c=t.muted),"minimal"in t&&i(5,d=t.minimal),"volume"in t&&i(15,u=t.volume),"paused"in t&&i(6,m=t.paused),"ended"in t&&i(1,p=t.ended),"fullscreen"in t&&i(7,f=t.fullscreen),"subtitles"in t&&i(8,g=t.subtitles)},t.$$.update=()=>{32768&t.$$.dirty&&i(10,n=!isNaN(u))},[o,p,a,l,c,d,m,f,g,$,n,s,r,v,function(t){0==t.button&&(window.addEventListener("mousemove",w),window.addEventListener("mouseup",y),w(t))},u,function(e){ct.call(this,t,e)},function(e){ct.call(this,t,e)},()=>v("playpause"),()=>v("mute"),()=>On.set(!r),function(t){ut[t?"unshift":"push"]((()=>{$=t,i(9,$)}))},function(t){o=t,i(0,o)},function(t){p=t,i(1,p)}]}class Qn extends Yt{constructor(t){super(),Gt(this,t,Jn,Kn,a,{currentTime:0,duration:2,seeking:3,muted:4,minimal:5,volume:15,paused:6,ended:1,fullscreen:7,subtitles:8})}}function ts(t,e,i){let{events:n}=e,{currentTime:s=0}=e,{duration:r}=e;const o=lt("micrio");n.forEach((t=>{t.start=Number(t.start||0),t.end=Math.min(Number(t.end||0),r)}));const a=t=>n.forEach((e=>{const i=e.start<=t&&e.end>=t;i!=!!e.active&&(e.active=i,o.events.dispatch("tour-event",{...e}))}));var l;return l=()=>a(1/0),st().$$.on_destroy.push(l),t.$$set=t=>{"events"in t&&i(0,n=t.events),"currentTime"in t&&i(1,s=t.currentTime),"duration"in t&&i(2,r=t.duration)},t.$$.update=()=>{2&t.$$.dirty&&a(s)},[n,s,r]}let es=class extends Yt{constructor(t){super(),Gt(this,t,ts,null,a,{events:0,currentTime:1,duration:2})}};function is(t){var e;let i,n,s,r,o,a,l,c,d,u,h,m;let p=(f=t)[42]==f[40].IFrame?os:f[42]==f[40].Video?rs:f[42]!=f[40].Audio||f[44]?f[42]==f[40].Micrio&&f[43]?ns:void 0:ss;var f;let g=p&&p(t),v=(null==(e=t[33])?void 0:e.length)&&t[7]>0&&!t[34]&&cs(t),w=t[4]&&ds(t),y=t[14]&&us(t),b=t[26]&&hs(t);return{c(){i=N("figure"),n=N("div"),g&&g.c(),s=D(),v&&v.c(),r=D(),w&&w.c(),a=D(),y&&y.c(),c=D(),b&&b.c(),d=O(),V(n,"style",o=1==t[22]||t[42]!=t[40].Video&&t[37].is360?"":`transform:scale(${t[22]})`),V(n,"class","micrio-media"),H(n,"videotour",!!t[21]),V(i,"class",l=$(t[17])+" micrio-media"),V(i,"style",null),H(i,"paused",t[5]),H(i,"is360",t[15]),H(i,"media-video",t[42]==t[40].IFrame||t[42]==t[40].Video),H(i,"media-micrio",t[42]==t[40].Micrio)},m(e,o){var l;I(e,i,o),S(i,n),g&&g.m(n,null),S(n,s),v&&v.m(n,null),S(n,r),w&&w.m(n,null),S(i,a),y&&y.m(i,null),t[84](i),I(e,c,o),b&&b.m(e,o),I(e,d,o),u=!0,h||(m=R(n,"pointerup",(l=t[47],function(t){t.target===this&&l.call(this,t)})),h=!0)},p(t,e){var s;g&&g.p(t,e),(null==(s=t[33])?void 0:s.length)&&t[7]>0&&!t[34]?v?(v.p(t,e),128&e[0]|12&e[1]&&Lt(v,1)):(v=cs(t),v.c(),Lt(v,1),v.m(n,r)):v&&(At(),Pt(v,1,1,(()=>{v=null})),It()),t[4]?w?(w.p(t,e),16&e[0]&&Lt(w,1)):(w=ds(t),w.c(),Lt(w,1),w.m(n,null)):w&&(At(),Pt(w,1,1,(()=>{w=null})),It()),(!u||4194304&e[0]&&o!==(o=1==t[22]||t[42]!=t[40].Video&&t[37].is360?"":`transform:scale(${t[22]})`))&&V(n,"style",o),(!u||2097152&e[0])&&H(n,"videotour",!!t[21]),t[14]?y?y.p(t,e):(y=us(t),y.c(),y.m(i,null)):y&&(y.d(1),y=null),(!u||131072&e[0]&&l!==(l=$(t[17])+" micrio-media"))&&V(i,"class",l),(!u||131104&e[0])&&H(i,"paused",t[5]),(!u||163840&e[0])&&H(i,"is360",t[15]),(!u||131072&e[0]|2560&e[1])&&H(i,"media-video",t[42]==t[40].IFrame||t[42]==t[40].Video),(!u||131072&e[0]|2560&e[1])&&H(i,"media-micrio",t[42]==t[40].Micrio),t[26]?b?(b.p(t,e),67108864&e[0]&&Lt(b,1)):(b=hs(t),b.c(),Lt(b,1),b.m(d.parentNode,d)):b&&(At(),Pt(b,1,1,(()=>{b=null})),It())},i(t){u||(Lt(v),Lt(w),Lt(b),u=!0)},o(t){Pt(v),Pt(w),Pt(b),u=!1},d(e){e&&(L(i),L(c),L(d)),g&&g.d(),v&&v.d(),w&&w.d(),y&&y.d(),t[84](null),b&&b.d(e),h=!1,m()}}}function ns(e){let i;return{c(){i=N("micr-io"),X(i,"data-logo","false"),X(i,"id",e[43][0]),X(i,"width",e[43][1]),X(i,"height",e[43][2]),X(i,"lang",e[43][3]),X(i,"data-path",e[37].path)},m(t,e){I(t,i,e)},p:t,d(t){t&&L(i)}}}function ss(t){let e,i,n,s,o,a=!1,l=!0;function d(){cancelAnimationFrame(n),e.paused||(n=k(d),a=!0),t[69].call(e)}return{c(){e=N("audio"),c(e.src,i=t[23])||V(e,"src",i),e.controls=!1,void 0===t[7]&&$t((()=>t[67].call(e))),void 0===t[6]&&$t((()=>t[70].call(e)))},m(i,n){I(i,e,n),t[66](e),e.muted=t[1],s||(o=[R(e,"durationchange",t[67]),R(e,"volumechange",t[68]),R(e,"timeupdate",d),R(e,"seeking",t[70]),R(e,"seeked",t[70]),R(e,"play",t[71]),R(e,"pause",t[71]),R(e,"canplay",t[72]),R(e,"ended",t[50])],s=!0)},p(t,n){8388608&n[0]&&!c(e.src,i=t[23])&&V(e,"src",i),2&n[0]&&(e.muted=t[1]),!a&&256&n[0]&&!isNaN(t[8])&&(e.currentTime=t[8]),a=!1,32&n[0]&&l!==(l=t[5])&&e[l?"pause":"play"]()},d(i){i&&L(e),t[66](null),s=!1,r(o)}}}function rs(t){let e,i,n,s,o,a,l,c=!1,d=!0,u=t[23]&&as(t);function h(){cancelAnimationFrame(o),e.paused||(o=k(h),c=!0),t[63].call(e)}return{c(){e=N("video"),u&&u.c(),e.controls=!1,e.loop=i=t[11]&&(null==t[12]||t[12]<=0),e.playsInline=!0,V(e,"width",t[9]),V(e,"height",t[10]),V(e,"style",n=t[29]?"opacity: 0":void 0),e.autoplay=s=!!t[3],V(e,"class","micrio-media"),void 0===t[7]&&$t((()=>t[61].call(e))),void 0===t[6]&&$t((()=>t[64].call(e)))},m(i,n){I(i,e,n),u&&u.m(e,null),t[60](e),e.muted=t[1],a||(l=[R(e,"durationchange",t[61]),R(e,"volumechange",t[62]),R(e,"timeupdate",h),R(e,"seeking",t[64]),R(e,"seeked",t[64]),R(e,"play",t[65]),R(e,"pause",t[65]),R(e,"canplay",t[46]),R(e,"ended",t[50])],a=!0)},p(t,r){t[23]?u?u.p(t,r):(u=as(t),u.c(),u.m(e,null)):u&&(u.d(1),u=null),6144&r[0]&&i!==(i=t[11]&&(null==t[12]||t[12]<=0))&&(e.loop=i),512&r[0]&&V(e,"width",t[9]),1024&r[0]&&V(e,"height",t[10]),536870912&r[0]&&n!==(n=t[29]?"opacity: 0":void 0)&&V(e,"style",n),8&r[0]&&s!==(s=!!t[3])&&(e.autoplay=s),2&r[0]&&(e.muted=t[1]),!c&&256&r[0]&&!isNaN(t[8])&&(e.currentTime=t[8]),c=!1,32&r[0]&&d!==(d=t[5])&&e[d?"pause":"play"]()},d(i){i&&L(e),u&&u.d(),t[60](null),a=!1,r(l)}}}function os(t){let e,n,s=[{credentialless:!0},{title:t[13]},{src:n=t[23]},{width:t[32]},{height:t[31]},{frameborder:"0"},{allow:"fullscreen *;autoplay *;encrypted-media *"}],r={};for(let o=0;o<s.length;o+=1)r=i(r,s[o]);return{c(){e=N("iframe"),q(e,r),H(e,"hooked",t[24]&&!t[27]),H(e,"micrio-media",!0)},m(i,n){I(i,e,n),t[59](e)},p(t,i){q(e,r=Ut(s,[{credentialless:!0},8192&i[0]&&{title:t[13]},8388608&i[0]&&!c(e.src,n=t[23])&&{src:n},2&i[1]&&{width:t[32]},1&i[1]&&{height:t[31]},{frameborder:"0"},{allow:"fullscreen *;autoplay *;encrypted-media *"}])),H(e,"hooked",t[24]&&!t[27]),H(e,"micrio-media",!0)},d(i){i&&L(e),t[59](null)}}}function as(t){let e,i,n=t[19]&&t[23].endsWith(".webm"),s=n&&ls(t);return{c(){s&&s.c(),e=N("source"),c(e.src,i=t[23])||V(e,"src",i),V(e,"type",t[41]?"application/x-mpegURL":void 0)},m(t,i){s&&s.m(t,i),I(t,e,i)},p(t,r){8912896&r[0]&&(n=t[19]&&t[23].endsWith(".webm")),n?s?s.p(t,r):(s=ls(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),8388608&r[0]&&!c(e.src,i=t[23])&&V(e,"src",i)},d(t){t&&L(e),s&&s.d(t)}}}function ls(t){let e,i;return{c(){e=N("source"),c(e.src,i=t[23].replace(".webm",".mp4"))||V(e,"src",i),V(e,"type","video/mp4;codecs=hvc1")},m(t,i){I(t,e,i)},p(t,n){8388608&n[0]&&!c(e.src,i=t[23].replace(".webm",".mp4"))&&V(e,"src",i)},d(t){t&&L(e)}}}function cs(t){let e,i,n,s;function r(e){t[73](e)}function o(e){t[74](e)}let a={events:t[33]};return void 0!==t[8]&&(a.currentTime=t[8]),void 0!==t[7]&&(a.duration=t[7]),e=new es({props:a}),ut.push((()=>Bt(e,"currentTime",r))),ut.push((()=>Bt(e,"duration",o))),{c(){qt(e.$$.fragment)},m(t,i){Wt(e,t,i),s=!0},p(t,s){const r={};4&s[1]&&(r.events=t[33]),!i&&256&s[0]&&(i=!0,r.currentTime=t[8],wt((()=>i=!1))),!n&&128&s[0]&&(n=!0,r.duration=t[7],wt((()=>n=!1))),e.$set(r)},i(t){s||(Lt(e.$$.fragment,t),s=!0)},o(t){Pt(e.$$.fragment,t),s=!1},d(t){Xt(e,t)}}}function ds(t){let e,i,n,s,r,o,a,l,c,d;function u(e){t[75](e)}function h(e){t[76](e)}function m(e){t[77](e)}function p(e){t[78](e)}function f(e){t[79](e)}function g(e){t[80](e)}function v(e){t[81](e)}let $={subtitles:!!t[45],fullscreen:t[15]||t[42]!=t[40].IFrame&&t[42]!=t[40].Video?t[16]:t[30]};return void 0!==t[5]&&($.paused=t[5]),void 0!==t[6]&&($.seeking=t[6]),void 0!==t[7]&&($.duration=t[7]),void 0!==t[8]&&($.currentTime=t[8]),void 0!==t[1]&&($.muted=t[1]),void 0!==t[0]&&($.volume=t[0]),void 0!==t[28]&&($.ended=t[28]),i=new Qn({props:$}),ut.push((()=>Bt(i,"paused",u))),ut.push((()=>Bt(i,"seeking",h))),ut.push((()=>Bt(i,"duration",m))),ut.push((()=>Bt(i,"currentTime",p))),ut.push((()=>Bt(i,"muted",f))),ut.push((()=>Bt(i,"volume",g))),ut.push((()=>Bt(i,"ended",v))),i.$on("playpause",t[47]),i.$on("mute",t[82]),i.$on("seek",t[83]),{c(){e=N("aside"),qt(i.$$.fragment),V(e,"class","micrio-media"),H(e,"inside","inside"==t[4])},m(t,n){I(t,e,n),Wt(i,e,null),d=!0},p(t,u){const h={};1073840128&u[0]&&(h.fullscreen=t[15]||t[42]!=t[40].IFrame&&t[42]!=t[40].Video?t[16]:t[30]),!n&&32&u[0]&&(n=!0,h.paused=t[5],wt((()=>n=!1))),!s&&64&u[0]&&(s=!0,h.seeking=t[6],wt((()=>s=!1))),!r&&128&u[0]&&(r=!0,h.duration=t[7],wt((()=>r=!1))),!o&&256&u[0]&&(o=!0,h.currentTime=t[8],wt((()=>o=!1))),!a&&2&u[0]&&(a=!0,h.muted=t[1],wt((()=>a=!1))),!l&&1&u[0]&&(l=!0,h.volume=t[0],wt((()=>l=!1))),!c&&268435456&u[0]&&(c=!0,h.ended=t[28],wt((()=>c=!1))),i.$set(h),(!d||16&u[0])&&H(e,"inside","inside"==t[4])},i(t){d||(Lt(i.$$.fragment,t),d=!0)},o(t){Pt(i.$$.fragment,t),d=!1},d(t){t&&L(e),Xt(i)}}}function us(t){let e;return{c(){e=N("figcaption"),V(e,"class","micrio-media")},m(i,n){I(i,e,n),e.innerHTML=t[14]},p(t,i){16384&i[0]&&(e.innerHTML=t[14])},d(t){t&&L(e)}}}function hs(t){let e,i,n,s,r;return i=new Ui({props:{title:t[35].play,type:"play"}}),{c(){e=N("div"),qt(i.$$.fragment),V(e,"class","show-play micrio-media")},m(o,a){I(o,e,a),Wt(i,e,null),n=!0,s||(r=R(e,"pointerup",t[48]),s=!0)},p(t,e){const n={};16&e[1]&&(n.title=t[35].play),i.$set(n)},i(t){n||(Lt(i.$$.fragment,t),n=!0)},o(t){Pt(i.$$.fragment,t),n=!1},d(t){t&&L(e),Xt(i),s=!1,r()}}}function ms(t){let e,i,n=!t[20].$settings.noUI&&is(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,i){t[20].$settings.noUI?n&&(At(),Pt(n,1,1,(()=>{n=null})),It()):n?(n.p(t,i),1048576&i[0]&&Lt(n,1)):(n=is(t),n.c(),Lt(n,1),n.m(e.parentNode,e))},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}const ps=new Audio,fs=/((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be|youtube-nocookie\.com))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?/,gs="https://www.youtube-nocookie.com",vs=/vimeo\.com/,$s=/^.*t=(\d+).*$/;function ws(e,i,n){var s,r,o,a;let l,c,m,p,f,g,v,$,w=t,y=()=>(w(),w=d(W,(t=>n(34,v=t))),W);h(e,Oe,(t=>n(35,$=t))),e.$$.on_destroy.push((()=>w()));let{src:b}=i,{volume:k=1}=i,{width:T=640}=i,{height:x=380}=i,{frameScale:_=1}=i,{autoplay:E=!1}=i,{loop:S=!1}=i,{loopDelay:M}=i,{controls:A=!1}=i,{title:I}=i,{figcaption:L=null}=i,{paused:P=!0}=i,{forcePause:N}=i,{seeking:C=!0}=i,{duration:z=-1}=i,{currentTime:D=0}=i,{muted:O=0==k}=i;const R=O;let{is360:F=!1}=i,{tour:U=null}=i,{secondary:V=!1}=i,{fullscreen:B}=i,{className:q=null}=i,{destroying:W}=i;y();let{hasTransparentH265:X=!1}=i,{noPlayOverlay:G=!1}=i,{uuid:Y=""}=i;Y+=b??(null==U?void 0:U.id);const j=lt("micrio");let{image:H=u(j.current)}=i;const Z=H.$info,K=ot(),{events:J,state:Q,_lang:tt}=j;h(e,tt,(t=>n(58,f=t)));const et=lt("volume");h(e,et,(t=>n(96,g=t)));const it=0==g;let nt;const st=Q.mediaState.get(Y);st&&(D=st.currentTime,E=!(P=st.paused)),Q.mediaState.set(Y,{get currentTime(){return D},set currentTime(t){Vt(t)},get paused(){return P},set paused(t){t?Ut():Ft()}}),b&&/<iframe /.test(b)&&(b=b.replace(/^.* src="([^"]+)".*$/,"$1")),(null==b?void 0:b.startsWith("video://"))&&(b=b.replace("video:","https:"));var at=(t=>(t[t.None=0]="None",t[t.IFrame=1]="IFrame",t[t.Video=2]="Video",t[t.Audio=3]="Audio",t[t.VideoTour=4]="VideoTour",t[t.Micrio=5]="Micrio",t))(at||{});let ct=b;const dt=b&&b.startsWith("cfvid://"),ht=b&&b.toLowerCase(),mt=ht?ht.endsWith("mp3")?3:ht.endsWith(".mp4")||ht.endsWith(".webm")||dt?2:ht.startsWith("micrio://")?5:ht.startsWith("http")?1:0:U?4:0,pt=5==mt?null==b?void 0:b.slice(9).split(","):null;let ft,gt,vt,$t;pt&&(P=!1);let wt=-1,yt=!1;const bt=3==mt&&ie.iOS;let kt,{_media:Tt}=i;const xt=j.hasAttribute("data-native-frame"),_t=b&&fs.exec(b);if(b&&!xt&&_t&&_t[5])if("playlist"==_t[5]){const t=/list=([^&]+)/.exec(b);(null==t?void 0:t[1])&&(ct=`${gs}/embed/videoseries?list=${t[1]}`)}else{ft=1;const t=Math.round(($s.test(b)?Number(b.replace($s,"$1")):D)??0);ct=`${gs}/embed/${_t[5]}?autoplay=0&enablejsapi=1&controls=0&start=${t}`,yt=!0}if(!xt&&b&&vs.test(b)){const t=b.match(/\/(\d+)/);if(t&&t[1]){const e=b.slice(b.indexOf(t[1])+t[1].length+1).replace(/\?.*$/,"");ft=2,ct=`https://player.vimeo.com/video/${t[1]}?${e?`h=${e}&`:""}title=0&portrait=0&sidedock=0&byline=0&controls=0#t=`+Math.round(D)+"s",yt=!0}}let Et,St;dt&&b&&(Et=`https://videodelivery.net/${b.slice(8)}/manifest/video.m3u8`,ct=void 0),U&&(St=new Ln(H,U),D>0&&(St.currentTime=D),4==mt&&(z="duration"in U?Number(U.duration):(null==(r=null==(s=U.i18n)?void 0:s[f])?void 0:r.duration)??0,k=NaN)),(5==mt||1==mt&&!ft)&&(A=!1);const Mt=U&&!("steps"in U)?"subtitle"in U?U.subtitle:null==(a=null==(o=U.i18n)?void 0:o[j.lang])?void 0:a.subtitle:void 0,At=Mt&&("fileUrl"in Mt?Mt.fileUrl:Mt.src),It=lt("srt");function Lt(){n(6,C=!1),F&&H&&!H._video&&H.video.set(Tt)}let Pt=!1;function Nt(){n(26,Pt=!1),n(5,P=!1),St&&Tt&&(n(21,St.duration=Tt.duration,St),n(21,St.currentTime=Tt.currentTime,St),St.play())}const Ct=async()=>Tt?Tt.paused:St?P:gt?[-1,0,2].indexOf(gt.getPlayerState())>=0:1==ft?P:!!vt&&await vt.getPaused();let zt=!1,Dt=!1;const Ot=lt("mediaPaused");let Rt;async function Ft(t){if(!(t&&t instanceof PointerEvent&&0!=t.button)&&(!Dt||await Ct())){switch(n(28,Wt=!1),z>0&&D>=z&&n(8,D=0),!V&&At&&It.set(At),mt){case 4:n(5,P=n(6,C=!1)),St.play(),Gt();break;case 3:case 2:null==Tt||Tt.addEventListener("play",Nt,{once:!0}),null==Tt||Tt.play().catch((t=>{G?n(5,P=!0):/pause\(\)/.test(t.toString())||(n(26,Pt=!0),K("blocked"))}));break;case 1:switch(ft){case 1:gt&>.playVideo();break;case 2:vt&&vt.play()}break;default:return}Dt=!0,J.dispatch("media-play"),Ot.set(!1),K("play"),F||it||St&&!Tt||et.set(H.$settings.mutedVolume||0)}}function Ut(){J.dispatch("media-pause"),Ot.set(!0),Tt?(Tt.pause(),bt&&n(5,P=!0)):St?(St.pause(),n(5,P=!0),Yt()):(null==gt?void 0:gt.pauseVideo)&&!Kt?gt.pauseVideo():(null==vt?void 0:vt.pause)&&vt.pause()}function Vt(t){n(6,C=!0),Tt?n(2,Tt.currentTime=t,Tt):St?(n(8,D=n(21,St.currentTime=t,St)),n(6,C=!1)):(null==gt?void 0:gt.seekTo)?gt.seekTo(t):(null==vt?void 0:vt.setCurrentTime)&&vt.setCurrentTime(t)}function Bt(){St?(n(8,D=St.currentTime),St.ended&&Xt()):(null==gt?void 0:gt.getCurrentTime)&&n(8,D=gt.getCurrentTime()),qt()}function qt(){V||J.dispatch("timeupdate",D)}let Wt=!1;function Xt(){Wt||(St?Ut():(n(5,P=!0),Yt()),n(28,Wt=!0),J.dispatch("media-ended"),K("ended"),Zt())}function Gt(){wt>=0||(wt=setInterval(Bt,250),Bt())}function Yt(){clearInterval(wt),wt=-1}async function jt(){if(dt&&!Te(Tt))return oe("https://i.micr.io/hls-1.5.17.min.js",void 0,"Hls"in window?{}:void 0).then((()=>{$t=new window.Hls,$t.loadSource(Et),Tt&&$t.attachMedia(Tt)}));if(1==mt){if(1==ft)return async function(){if(!gt){if(window.YT||await oe("https://i.micr.io/youtube.js","onYouTubeIframeAPIReady"),window.YT)return n(6,C=!0),new Promise(((t,e)=>{gt=new window.YT.Player(kt,{host:gs,width:m.toString(),height:p.toString(),playerVars:{controls:0},events:{onError:e,onReady:()=>{Kt?e():(n(1,O=gt.isMuted()),n(7,z=gt.getDuration()),n(6,C=!1),t())},onStateChange:t=>{switch(t.data){case-1:n(27,zt=n(5,P=!0)),Yt();break;case 0:Xt();break;case 1:Gt(),n(27,zt=n(5,P=n(6,C=!1)));break;case 2:n(5,P=!0),Yt();break;case 3:Bt(),n(6,C=!0),Yt()}}}})}));n(24,yt=!1)}}();if(2==ft)return async function(){if(!vt){if(window.Vimeo||await oe("https://i.micr.io/vimeo.min.js"),window.Vimeo)return n(6,C=!0),new Promise(((t,e)=>{const i=vt=new window.Vimeo.Player(kt,{width:m.toString(),height:p.toString(),title:!1,autoplay:!1});i.on("error",e),i.on("loaded",(()=>i.getVolume().then((i=>{Kt?e():(n(1,O=0==n(0,k=i)),t())})))),i.on("play",(()=>n(5,P=n(6,C=!1)))),i.on("bufferstart",(()=>n(6,C=!0))),i.on("seeked",(()=>{n(6,C=!1)})),i.on("pause",(()=>n(5,P=!0))),i.on("volumechange",(t=>{t&&n(1,O=0==n(0,k=t.volume))})),i.on("timeupdate",(t=>{t&&(n(7,z=t.duration),n(8,D=t.seconds))})),i.on("ended",Xt)}));n(24,yt=!1)}}()}else Tt&&(dt&&n(23,ct=Et),function(){if(!Tt)return;n(2,Tt.ontimeupdate=qt,Tt),St&&(n(2,Tt.onpause=()=>St.pause(),Tt),n(2,Tt.onseeked=()=>{Tt&&!Tt.ended&&(n(21,St.currentTime=Tt.currentTime,St),Ht&&(Tt.pause(),Ht=!1))},Tt));D>0&&(Tt.duration>0?n(2,Tt.currentTime=D,Tt):n(2,Tt.oncanplay=()=>{Tt&&(n(2,Tt.oncanplay=null,Tt),E||(Tt.play(),Ht=!0),n(2,Tt.currentTime=nt,Tt))},Tt));const t=S&&void 0!==M?M:-1;t>0&&n(2,Tt.onended=()=>{clearTimeout(Rt),Rt=setTimeout((()=>{N||null==Tt||Tt.play()}),1e3*t)},Tt)}())}let Ht=!1;function Zt(){it||et.set(1)}let Kt=!1;const Jt=W&&W.subscribe((t=>t&&te())),Qt=()=>n(8,D=(null==Tt?void 0:Tt.currentTime)??0);function te(){if(!Kt)if(Kt=!0,Jt&&Jt(),F&&H&&H.video.set(void 0),Q.mediaState.delete(Y),Yt(),Ut(),Zt(),At&&It.set(void 0),Tt&&(n(2,Tt.onended=null,Tt),bt&&(n(2,Tt.onloadedmetadata=n(2,Tt.onplay=n(2,Tt.onseeking=n(2,Tt.onseeked=null,Tt),Tt),Tt),Tt),Tt.removeEventListener("timeupdate",Qt)),n(2,Tt.ontimeupdate=n(2,Tt.onpause=n(2,Tt.onseeked=n(2,Tt.oncanplay=null,Tt),Tt),Tt),Tt)),St)St.destroy();else if(vt)for(let t of["error","loaded","play","bufferstart","seeked","pause","volumechange","timeupdate","ended"])vt.off(t)}const ee=2==mt;let ne,se=ee&&dt&&1!=_&&ie.iOS;rt((()=>{K("id",Y),b&&bt&&(n(2,Tt=ps),n(2,Tt.controls=!1,Tt),n(2,Tt.onloadedmetadata=()=>n(7,z=(null==Tt?void 0:Tt.duration)??0),Tt),n(2,Tt.src=b,Tt),n(2,Tt.oncanplay=Lt,Tt),n(2,Tt.onended=Xt,Tt),Tt.addEventListener("timeupdate",Qt),n(2,Tt.onseeking=()=>n(6,C=!0),Tt),n(2,Tt.onseeked=()=>n(6,C=!1),Tt)),nt=D||0,n(24,yt=1==ft||2==ft),jt().then((()=>{E&&Ft()})).catch((()=>{})),se&&(null==Tt||Tt.addEventListener("playing",(()=>n(29,se=!1)),{once:!0}));const t=j.isMuted.subscribe((t=>function(t){R||(n(1,O=t),Tt?n(2,Tt.muted=t,Tt):(null==gt?void 0:gt.mute)?(t?gt.mute():gt.unMute(),setTimeout((()=>{gt&&n(1,O=gt.isMuted())}),50)):vt&&vt.setVolume(t?0:1))}(t)));return()=>{te(),t(),bt&&n(2,Tt=void 0),$t?$t.destroy():gt?gt.destroy():vt&&vt.destroy()}}));const re=Z.is360?Math.PI/2:1;return e.$$set=t=>{"src"in t&&n(51,b=t.src),"volume"in t&&n(0,k=t.volume),"width"in t&&n(9,T=t.width),"height"in t&&n(10,x=t.height),"frameScale"in t&&n(53,_=t.frameScale),"autoplay"in t&&n(3,E=t.autoplay),"loop"in t&&n(11,S=t.loop),"loopDelay"in t&&n(12,M=t.loopDelay),"controls"in t&&n(4,A=t.controls),"title"in t&&n(13,I=t.title),"figcaption"in t&&n(14,L=t.figcaption),"paused"in t&&n(5,P=t.paused),"forcePause"in t&&n(54,N=t.forcePause),"seeking"in t&&n(6,C=t.seeking),"duration"in t&&n(7,z=t.duration),"currentTime"in t&&n(8,D=t.currentTime),"muted"in t&&n(1,O=t.muted),"is360"in t&&n(15,F=t.is360),"tour"in t&&n(55,U=t.tour),"secondary"in t&&n(56,V=t.secondary),"fullscreen"in t&&n(16,B=t.fullscreen),"className"in t&&n(17,q=t.className),"destroying"in t&&y(n(18,W=t.destroying)),"hasTransparentH265"in t&&n(19,X=t.hasTransparentH265),"noPlayOverlay"in t&&n(57,G=t.noPlayOverlay),"uuid"in t&&n(52,Y=t.uuid),"image"in t&&n(20,H=t.image),"_media"in t&&n(2,Tt=t._media)},e.$$.update=()=>{var t,i;7&e.$$.dirty[0]&&Tt&&2==mt&&!O&&n(2,Tt.muted=0==k,Tt),8388608&e.$$.dirty[1]&&void 0!==N&&n(5,P=N),6144&e.$$.dirty[0]&&S&&void 0!==M&&clearTimeout(Rt),2097152&e.$$.dirty[0]|150994944&e.$$.dirty[1]&&n(33,l=St&&U?"events"in U?U.events:(null==(i=null==(t=U.i18n)?void 0:t[f])?void 0:i.events)??void 0:void 0),1536&e.$$.dirty[0]|4194304&e.$$.dirty[1]&&n(22,c=ee?_*re:1==mt?Math.max(_,Math.min(T/512,x/512)):1),4194816&e.$$.dirty[0]&&n(32,m=ee?T:Math.round(T/c*re)),4195328&e.$$.dirty[0]&&n(31,p=ee?x:Math.round(x/c*re))},[k,O,Tt,E,A,P,C,z,D,T,x,S,M,I,L,F,B,q,W,X,H,St,c,ct,yt,kt,Pt,zt,Wt,se,ne,p,m,l,v,$,j,Z,tt,et,at,dt,mt,pt,bt,At,Lt,function(t){t&&"button"in t&&0!=t.button||(P?Ft():Ut())},Ft,Vt,Xt,b,Y,_,N,U,V,G,f,function(t){ut[t?"unshift":"push"]((()=>{kt=t,n(25,kt)}))},function(t){ut[t?"unshift":"push"]((()=>{Tt=t,n(2,Tt),n(1,O),n(0,k)}))},function(){z=this.duration,n(7,z)},function(){O=this.muted,n(1,O)},function(){D=this.currentTime,n(8,D)},function(){C=this.seeking,n(6,C)},function(){P=this.paused,n(5,P),n(54,N)},function(t){ut[t?"unshift":"push"]((()=>{Tt=t,n(2,Tt),n(1,O),n(0,k)}))},function(){z=this.duration,n(7,z)},function(){O=this.muted,n(1,O)},function(){D=this.currentTime,n(8,D)},function(){C=this.seeking,n(6,C)},function(){P=this.paused,n(5,P),n(54,N)},()=>n(6,C=!1),function(t){D=t,n(8,D)},function(t){z=t,n(7,z)},function(t){P=t,n(5,P),n(54,N)},function(t){C=t,n(6,C)},function(t){z=t,n(7,z)},function(t){D=t,n(8,D)},function(t){O=t,n(1,O)},function(t){k=t,n(0,k)},function(t){Wt=t,n(28,Wt)},()=>j.isMuted.set(!O),t=>Vt(t.detail),function(t){ut[t?"unshift":"push"]((()=>{ne=t,n(30,ne)}))}]}class ys extends Yt{constructor(t){super(),Gt(this,t,ws,ms,a,{src:51,volume:0,width:9,height:10,frameScale:53,autoplay:3,loop:11,loopDelay:12,controls:4,title:13,figcaption:14,paused:5,forcePause:54,seeking:6,duration:7,currentTime:8,muted:1,is360:15,tour:55,secondary:56,fullscreen:16,className:17,destroying:18,hasTransparentH265:19,noPlayOverlay:57,uuid:52,image:20,_media:2},null,[-1,-1,-1,-1,-1])}}function bs(t){let e,i,n,s,o;const a=t[2].default,l=m(a,t,t[1],null);return{c(){e=N("article"),l&&l.c(),V(e,"class",i=$(t[0])+" micrio-article")},m(i,r){I(i,e,r),l&&l.m(e,null),n=!0,s||(o=[R(e,"click",U(t[3])),R(e,"keydown",ks),R(e,"pointerdown",ks)],s=!0)},p(t,[s]){l&&l.p&&(!n||2&s)&&g(l,a,t,t[1],n?f(a,t[1],s,null):v(t[1]),null),(!n||1&s&&i!==(i=$(t[0])+" micrio-article"))&&V(e,"class",i)},i(t){n||(Lt(l,t),n=!0)},o(t){Pt(l,t),n=!1},d(t){t&&L(e),l&&l.d(t),s=!1,r(o)}}}function ks(t){var e;t.target&&t.target instanceof HTMLAnchorElement&&!(null==(e=t.target.getAttribute("href"))?void 0:e.startsWith("#"))&&(t.target.target="_blank")}function Ts(t,e,i){let{$$slots:n={},$$scope:s}=e,{cn:r=null}=e;return t.$$set=t=>{"cn"in t&&i(0,r=t.cn),"$$scope"in t&&i(1,s=t.$$scope)},[r,s,n,function(e){ct.call(this,t,e)}]}class xs extends Yt{constructor(t){super(),Gt(this,t,Ts,bs,a,{cn:0})}}function _s(t,e,i){const n=t.slice();return n[23]=e[i],n}function Es(t){let e,i,n,s,r,o,a,l,c=t[6].title&&Ss(t),d=t[6].body&&t[14].primaryBodyFirst&&Ms(t),u=!t[13]&&((!t[6]||!t[6].embedUrl)&&t[2].videoTour||t[6]&&t[6].audio)&&Is(t),h=!t[5]&&t[2].images&&Ls(t),m=t[6].embedUrl&&!t[4]&&Cs(t),p=t[6].body&&!t[14].primaryBodyFirst&&Ds(t),f=t[6].bodySecondary&&Rs(t);return{c(){e=N("main"),c&&c.c(),i=D(),d&&d.c(),n=D(),u&&u.c(),s=D(),h&&h.c(),r=D(),m&&m.c(),o=D(),p&&p.c(),a=D(),f&&f.c(),V(e,"class","micrio-marker-content"),H(e,"empty",t[10])},m(g,v){I(g,e,v),c&&c.m(e,null),S(e,i),d&&d.m(e,null),S(e,n),u&&u.m(e,null),S(e,s),h&&h.m(e,null),S(e,r),m&&m.m(e,null),S(e,o),p&&p.m(e,null),S(e,a),f&&f.m(e,null),t[31](e),l=!0},p(t,g){t[6].title?c?c.p(t,g):(c=Ss(t),c.c(),c.m(e,i)):c&&(c.d(1),c=null),t[6].body&&t[14].primaryBodyFirst?d?(d.p(t,g),64&g[0]&&Lt(d,1)):(d=Ms(t),d.c(),Lt(d,1),d.m(e,n)):d&&(At(),Pt(d,1,1,(()=>{d=null})),It()),!t[13]&&((!t[6]||!t[6].embedUrl)&&t[2].videoTour||t[6]&&t[6].audio)?u?(u.p(t,g),68&g[0]&&Lt(u,1)):(u=Is(t),u.c(),Lt(u,1),u.m(e,s)):u&&(At(),Pt(u,1,1,(()=>{u=null})),It()),!t[5]&&t[2].images?h?h.p(t,g):(h=Ls(t),h.c(),h.m(e,r)):h&&(h.d(1),h=null),t[6].embedUrl&&!t[4]?m?(m.p(t,g),80&g[0]&&Lt(m,1)):(m=Cs(t),m.c(),Lt(m,1),m.m(e,o)):m&&(At(),Pt(m,1,1,(()=>{m=null})),It()),t[6].body&&!t[14].primaryBodyFirst?p?(p.p(t,g),64&g[0]&&Lt(p,1)):(p=Ds(t),p.c(),Lt(p,1),p.m(e,a)):p&&(At(),Pt(p,1,1,(()=>{p=null})),It()),t[6].bodySecondary?f?(f.p(t,g),64&g[0]&&Lt(f,1)):(f=Rs(t),f.c(),Lt(f,1),f.m(e,null)):f&&(At(),Pt(f,1,1,(()=>{f=null})),It()),(!l||1024&g[0])&&H(e,"empty",t[10])},i(t){l||(Lt(d),Lt(u),Lt(m),Lt(p),Lt(f),l=!0)},o(t){Pt(d),Pt(u),Pt(m),Pt(p),Pt(f),l=!1},d(i){i&&L(e),c&&c.d(),d&&d.d(),u&&u.d(),h&&h.d(),m&&m.d(),p&&p.d(),f&&f.d(),t[31](null)}}}function Ss(t){let e,i,n=t[6].title+"";return{c(){e=N("h1"),i=z(n),V(e,"class","micrio-marker-content")},m(n,s){I(n,e,s),S(e,i),t[27](e)},p(t,e){64&e[0]&&n!==(n=t[6].title+"")&&Y(i,n)},d(i){i&&L(e),t[27](null)}}}function Ms(t){let e,i;return e=new xs({props:{$$slots:{default:[As]},$$scope:{ctx:t}}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};64&i[0]|256&i[1]&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function As(t){let e,i,n=t[6].body+"";return{c(){e=new K(!1),i=O(),e.a=i},m(t,s){e.m(n,t,s),I(t,i,s)},p(t,i){64&i[0]&&n!==(n=t[6].body+"")&&e.p(n)},d(t){t&&(L(i),e.d())}}}function Is(t){let e,i,n;function s(e){t[28](e)}let r={src:t[9],destroying:t[3],noPlayOverlay:!0,image:t[23],uuid:t[2].id,tour:t[2].videoTour,autoplay:t[2].audioAutoPlay||!t[6].audio&&!!t[2].videoTour,controls:!t[2].videoTour||!t[6]||!t[6].embedUrl};return void 0!==t[7].audio&&(r.paused=t[7].audio),e=new ys({props:r}),ut.push((()=>Bt(e,"paused",s))),e.$on("ended",t[18]),{c(){qt(e.$$.fragment)},m(t,i){Wt(e,t,i),n=!0},p(t,n){const s={};512&n[0]&&(s.src=t[9]),8&n[0]&&(s.destroying=t[3]),4&n[0]&&(s.uuid=t[2].id),4&n[0]&&(s.tour=t[2].videoTour),68&n[0]&&(s.autoplay=t[2].audioAutoPlay||!t[6].audio&&!!t[2].videoTour),68&n[0]&&(s.controls=!t[2].videoTour||!t[6]||!t[6].embedUrl),!i&&128&n[0]&&(i=!0,s.paused=t[7].audio,wt((()=>i=!1))),e.$set(s)},i(t){n||(Lt(e.$$.fragment,t),n=!0)},o(t){Pt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Ls(t){let e,i=Dt(t[2].images),n=[];for(let s=0;s<i.length;s+=1)n[s]=Ns(_s(t,i,s));return{c(){e=N("section");for(let t=0;t<n.length;t+=1)n[t].c();V(e,"class","micrio-marker-content")},m(t,i){I(t,e,i);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(t,s){if(7536900&s[0]){let r;for(i=Dt(t[2].images),r=0;r<i.length;r+=1){const o=_s(t,i,r);n[r]?n[r].p(o,s):(n[r]=Ns(o),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},d(t){t&&L(e),P(n,t)}}}function Ps(t){let e,i;return{c(){e=N("figcaption"),i=z(t[8]),V(e,"class","micrio-marker-content")},m(t,n){I(t,e,n),S(e,i)},p(t,e){256&e[0]&&Y(i,t[8])},d(t){t&&L(e)}}}function Ns(t){let e,i,n,s,r,a,l,d,u,h,m=t[8]&&Ps(t);function p(){return t[29](t[23])}return{c(){e=N("button"),i=N("figure"),n=N("img"),a=D(),m&&m.c(),d=D(),V(n,"alt",s=t[22](t[23])),c(n.src,r=t[23].micrioId?`https://iiif.${t[21]?"micrio.dev":"micr.io"}/${t[23].micrioId}/full/${t[17]?"^"+Math.min(t[23].width,640)+",":"^,320"}/0/default.webp`:t[23].src)||V(n,"src",r),V(n,"class","micrio-marker-content"),V(i,"class","micrio-marker-content"),V(e,"title",l=t[22](t[23])),V(e,"class","micrio-marker-content")},m(s,r){I(s,e,r),S(e,i),S(i,n),S(i,a),m&&m.m(i,null),I(s,d,r),u||(h=R(e,"click",(function(){o(t[16]?p:void 0)&&(t[16]?p:void 0).apply(this,arguments)})),u=!0)},p(o,a){t=o,4&a[0]&&s!==(s=t[22](t[23]))&&V(n,"alt",s),4&a[0]&&!c(n.src,r=t[23].micrioId?`https://iiif.${t[21]?"micrio.dev":"micr.io"}/${t[23].micrioId}/full/${t[17]?"^"+Math.min(t[23].width,640)+",":"^,320"}/0/default.webp`:t[23].src)&&V(n,"src",r),t[8]?m?m.p(t,a):(m=Ps(t),m.c(),m.m(i,null)):m&&(m.d(1),m=null),4&a[0]&&l!==(l=t[22](t[23]))&&V(e,"title",l)},d(t){t&&(L(e),L(d)),m&&m.d(),u=!1,h()}}}function Cs(t){let e,i,n,s,r=!t[6].audio&&t[2].videoTour&&zs(t);function o(e){t[30](e)}let a={image:t[23],src:t[6].embedUrl,uuid:t[2].id,width:400,height:240,controls:!0,title:t[6].embedTitle,figcaption:t[6].embedDescription,autoplay:t[19],destroying:t[3]};return void 0!==t[7].video&&(a.paused=t[7].video),i=new ys({props:a}),ut.push((()=>Bt(i,"paused",o))),i.$on("ended",t[18]),{c(){r&&r.c(),e=D(),qt(i.$$.fragment)},m(t,n){r&&r.m(t,n),I(t,e,n),Wt(i,t,n),s=!0},p(t,s){!t[6].audio&&t[2].videoTour?r?(r.p(t,s),68&s[0]&&Lt(r,1)):(r=zs(t),r.c(),Lt(r,1),r.m(e.parentNode,e)):r&&(At(),Pt(r,1,1,(()=>{r=null})),It());const o={};64&s[0]&&(o.src=t[6].embedUrl),4&s[0]&&(o.uuid=t[2].id),64&s[0]&&(o.title=t[6].embedTitle),64&s[0]&&(o.figcaption=t[6].embedDescription),8&s[0]&&(o.destroying=t[3]),!n&&128&s[0]&&(n=!0,o.paused=t[7].video,wt((()=>n=!1))),i.$set(o)},i(t){s||(Lt(r),Lt(i.$$.fragment,t),s=!0)},o(t){Pt(r),Pt(i.$$.fragment,t),s=!1},d(t){t&&L(e),r&&r.d(t),Xt(i,t)}}}function zs(t){let e,i;return e=new ys({props:{image:t[23],className:"hidden",uuid:t[2].id,tour:t[2].videoTour,autoplay:t[15],secondary:!0,destroying:t[3]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};4&i[0]&&(n.uuid=t[2].id),4&i[0]&&(n.tour=t[2].videoTour),8&i[0]&&(n.destroying=t[3]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Ds(t){let e,i;return e=new xs({props:{$$slots:{default:[Os]},$$scope:{ctx:t}}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};64&i[0]|256&i[1]&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Os(t){let e,i,n=t[6].body+"";return{c(){e=new K(!1),i=O(),e.a=i},m(t,s){e.m(n,t,s),I(t,i,s)},p(t,i){64&i[0]&&n!==(n=t[6].body+"")&&e.p(n)},d(t){t&&(L(i),e.d())}}}function Rs(t){let e,i;return e=new xs({props:{cn:"secondary",$$slots:{default:[Fs]},$$scope:{ctx:t}}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};64&i[0]|256&i[1]&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Fs(t){let e,i,n=t[6].bodySecondary+"";return{c(){e=new K(!1),i=O(),e.a=i},m(t,s){e.m(n,t,s),I(t,i,s)},p(t,i){64&i[0]&&n!==(n=t[6].bodySecondary+"")&&e.p(n)},d(t){t&&(L(i),e.d())}}}function Us(t){let e,i,n=t[6]&&Es(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,i){t[6]?n?(n.p(t,i),64&i[0]&&Lt(n,1)):(n=Es(t),n.c(),Lt(n,1),n.m(e.parentNode,e)):n&&(At(),Pt(n,1,1,(()=>{n=null})),It())},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}function Vs(t,e,i){var n,s,r,o;let a,l,c,d,u,m,p,{marker:f}=e,{destroying:g}=e,{noEmbed:v=!1}=e,{noImages:$=!1}=e,{noGallery:w=!1}=e,{_content:y=null}=e,{_title:b=null}=e;const k=ot(),T=lt("micrio"),x=T._lang;h(t,x,(t=>i(26,m=t)));const _=T.state.tour;h(t,_,(t=>i(32,p=t)));const E=p&&"steps"in p&&p.isSerialTour,S=lt("markerImages").get(f),M=S.$settings._markers??{},A=!M.preventAutoPlay,I=!(null==(n=f.data)?void 0:n.preventImageOpen)&&!w,L=1==(null==(s=f.images)?void 0:s.length);null==(r=f.images)||r.length;const P={audio:!A||!f.audioAutoPlay,video:!1===f.embedAutoPlay||!A||!(!(null==a?void 0:a.audio)||!f.audioAutoPlay)},N=!P.video;function C(t){I&&T.state.popover.set({gallery:f.images,galleryStart:t,image:S})}const z=null==(o=S.tileBase)?void 0:o.includes("micrio.dev");return t.$$set=t=>{"marker"in t&&i(2,f=t.marker),"destroying"in t&&i(3,g=t.destroying),"noEmbed"in t&&i(4,v=t.noEmbed),"noImages"in t&&i(5,$=t.noImages),"noGallery"in t&&i(24,w=t.noGallery),"_content"in t&&i(0,y=t._content),"_title"in t&&i(1,b=t._title)},t.$$.update=()=>{var e,n,s,r,o,h,p;67108868&t.$$.dirty[0]&&i(6,a=f.i18n?f.i18n[m]:f),68&t.$$.dirty[0]&&i(10,l=!((null==a?void 0:a.title)||(null==a?void 0:a.audio)||f.images&&f.images.length||(null==a?void 0:a.embedUrl)||f.videoTour||(null==a?void 0:a.body)||(null==a?void 0:a.bodySecondary))),67108932&t.$$.dirty[0]&&i(25,c=(null==(s=null==(n=null==(e=f.videoTour)?void 0:e.i18n)?void 0:n[m])?void 0:s.audio)??(null==a?void 0:a.audio)),33554432&t.$$.dirty[0]&&i(9,d=c?"fileUrl"in c?c.fileUrl:c.src:void 0),67108868&t.$$.dirty[0]&&i(8,u=L&&(null==(p=null==(h=null==(o=null==(r=f.images)?void 0:r[0])?void 0:o.i18n)?void 0:h[m])?void 0:p.description))},[y,b,f,g,v,$,a,P,u,d,l,x,_,E,M,A,I,L,()=>{p&&"steps"in p&&(p.isSerialTour||M.tourAutoProgress)&&k("close")},N,C,z,t=>{var e,i;return null==(i=null==(e=t.i18n)?void 0:e[m])?void 0:i.title},S,w,c,m,function(t){ut[t?"unshift":"push"]((()=>{b=t,i(1,b)}))},function(e){t.$$.not_equal(P.audio,e)&&(P.audio=e,i(7,P))},t=>C(t.micrioId),function(e){t.$$.not_equal(P.video,e)&&(P.video=e,i(7,P))},function(t){ut[t?"unshift":"push"]((()=>{y=t,i(0,y)}))}]}class Bs extends Yt{constructor(t){super(),Gt(this,t,Vs,Us,a,{marker:2,destroying:3,noEmbed:4,noImages:5,noGallery:24,_content:0,_title:1},null,[-1,-1])}}function qs(t){let e,i,n,s,r;return s=new on({props:{className:"micrio-tour-controls",$$slots:{default:[Ws]},$$scope:{ctx:t}}}),{c(){e=N("progress"),n=D(),qt(s.$$.fragment),V(e,"aria-hidden",!0),e.value=i=(t[10]+1)/t[3].steps.length,V(e,"class","progress micrio-marker-popup")},m(t,i){I(t,e,i),I(t,n,i),Wt(s,t,i),r=!0},p(t,n){(!r||1032&n[0]&&i!==(i=(t[10]+1)/t[3].steps.length))&&(e.value=i);const o={};5160&n[0]|1&n[1]&&(o.$$scope={dirty:n,ctx:t}),s.$set(o)},i(t){r||(Lt(s.$$.fragment,t),r=!0)},o(t){Pt(s.$$.fragment,t),r=!1},d(t){t&&(L(e),L(n)),Xt(s,t)}}}function Ws(t){let e,i,n,s,r;e=new Ui({props:{type:"arrow-left",disabled:t[5]||0==t[10],title:t[12].tourStepPrev}}),e.$on("click",t[19]);let o=t[15].tourControlsInPopup&&function(t){let e,i,n,s,r=t[10]+1+"",o=t[3].steps.length+"";return{c(){e=N("button"),i=z(r),n=z(" / "),s=z(o),V(e,"class","micrio-button tour-step micrio-marker-popup"),e.disabled=!0},m(t,r){I(t,e,r),S(e,i),S(e,n),S(e,s)},p(t,e){1024&e[0]&&r!==(r=t[10]+1+"")&&Y(i,r),8&e[0]&&o!==(o=t[3].steps.length+"")&&Y(s,o)},d(t){t&&L(e)}}}(t);return s=new Ui({props:{type:"arrow-right",disabled:t[5]||t[10]+1==t[3].steps.length,title:t[12].tourStepNext}}),s.$on("click",t[20]),{c(){qt(e.$$.fragment),i=D(),o&&o.c(),n=D(),qt(s.$$.fragment)},m(t,a){Wt(e,t,a),I(t,i,a),o&&o.m(t,a),I(t,n,a),Wt(s,t,a),r=!0},p(t,i){const n={};1056&i[0]&&(n.disabled=t[5]||0==t[10]),4096&i[0]&&(n.title=t[12].tourStepPrev),e.$set(n),t[15].tourControlsInPopup&&o.p(t,i);const r={};1064&i[0]&&(r.disabled=t[5]||t[10]+1==t[3].steps.length),4096&i[0]&&(r.title=t[12].tourStepNext),s.$set(r)},i(t){r||(Lt(e.$$.fragment,t),Lt(s.$$.fragment,t),r=!0)},o(t){Pt(e.$$.fragment,t),Pt(s.$$.fragment,t),r=!1},d(t){t&&(L(i),L(n)),Xt(e,t),o&&o.d(t),Xt(s,t)}}}function Xs(t){let e,i,n,s,r,o,a,l,c,d,u=!t[16].alwaysOpen&&function(t){let e,i;return e=new Ui({props:{type:!t[2]||t[9]?"close":"arrow-right",title:!t[2]||t[9]?t[12].closeMarker:t[12].tourStepNext,disabled:t[5]}}),e.$on("click",t[18]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};516&i[0]&&(n.type=!t[2]||t[9]?"close":"arrow-right"),4612&i[0]&&(n.title=!t[2]||t[9]?t[12].closeMarker:t[12].tourStepNext),32&i[0]&&(n.disabled=t[5]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}(t),h=t[17]&&function(t){let e,i;return e=new Ui({props:{type:"arrow-down",title:t[12].minimize}}),e.$on("click",t[21]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};4096&i[0]&&(n.title=t[12].minimize),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}(t),m=t[1]&&t[3]&&"steps"in t[3]&&qs(t);function p(e){t[23](e)}function f(e){t[24](e)}let g={marker:t[0],destroying:t[22]};return void 0!==t[7]&&(g._content=t[7]),void 0!==t[8]&&(g._title=t[8]),o=new Bs({props:g}),ut.push((()=>Bt(o,"_content",p))),ut.push((()=>Bt(o,"_title",f))),o.$on("close",t[18]),{c(){e=N("div"),i=N("aside"),u&&u.c(),n=D(),h&&h.c(),s=D(),m&&m.c(),r=D(),qt(o.$$.fragment),V(i,"class","micrio-marker-popup"),V(e,"class","micrio-marker-popup"),H(e,"destroying",t[11]),H(e,"minimized",t[6])},m(a,l){I(a,e,l),S(e,i),u&&u.m(i,null),S(i,n),h&&h.m(i,null),S(i,s),m&&m.m(i,null),S(e,r),Wt(o,e,null),t[25](e),d=!0},p(n,s){(t=n)[16].alwaysOpen||u.p(t,s),t[17]&&h.p(t,s),t[1]&&t[3]&&"steps"in t[3]?m?(m.p(t,s),10&s[0]&&Lt(m,1)):(m=qs(t),m.c(),Lt(m,1),m.m(i,null)):m&&(At(),Pt(m,1,1,(()=>{m=null})),It());const r={};1&s[0]&&(r.marker=t[0]),!a&&128&s[0]&&(a=!0,r._content=t[7],wt((()=>a=!1))),!l&&256&s[0]&&(l=!0,r._title=t[8],wt((()=>l=!1))),o.$set(r),(!d||2048&s[0])&&H(e,"destroying",t[11]),(!d||64&s[0])&&H(e,"minimized",t[6])},i(i){d||(Lt(u),Lt(h),Lt(m),Lt(o.$$.fragment,i),i&&$t((()=>{d&&(c||(c=zt(e,Ee,t[15].popupAnimation,!0)),c.run(1))})),d=!0)},o(i){Pt(u),Pt(h),Pt(m),Pt(o.$$.fragment,i),i&&(c||(c=zt(e,Ee,t[15].popupAnimation,!1)),c.run(0)),d=!1},d(i){i&&L(e),u&&u.d(),h&&h.d(),m&&m.d(),Xt(o),t[25](null),i&&c&&c.end()}}}function Gs(t,e,i){let n,s,r,o,a,l,c,d;h(t,Oe,(t=>i(12,d=t)));let{marker:u}=e;const m=lt("micrio"),{current:p}=m;h(t,p,(t=>i(26,l=t)));const f=m.state.tour;h(t,f,(t=>i(3,a=t)));const g=lt("markerImages").get(u),v=g.$settings._markers??{},$=u.data||{},w=v.canMinimizePopup;let y;let b=!1;let k,T,x=!1;const _=new WeakMap,E=Ht(!1);return h(t,E,(t=>i(11,c=t))),rt((()=>{var t;u.tags.forEach((t=>y.classList.add(t))),setTimeout((()=>{var t;return null==(t=y.querySelector("button"))?void 0:t.focus()}),500);const e="embedImages"in u?u.embedImages:void 0;return e&&(null==(t=m.$current)||t.data.update((t=>(t||(t={embeds:[]}),t.embeds=[...t.embeds??[],...e],t)))),()=>{var t;m.state.popup.subscribe((t=>E.set(t!=u))),e&&(null==(t=m.$current)||t.data.update((t=>(null==t?void 0:t.embeds)?(t.embeds=t.embeds.filter((t=>!e.find((e=>e.id==t.id)))),t):t)))}})),t.$$set=t=>{"marker"in t&&i(0,u=t.marker)},t.$$.update=()=>{9&t.$$.dirty[0]&&i(2,n=a&&"steps"in a&&a.steps.findIndex((t=>t.startsWith(u.id)))>=0),12&t.$$.dirty[0]&&i(1,s=a&&"steps"in a&&n&&!a.isSerialTour&&v.tourControlsInPopup),8&t.$$.dirty[0]&&i(10,r=(a&&"steps"in a?a.currentStep:void 0)??-1),10&t.$$.dirty[0]&&i(9,o=s||a&&"steps"in a&&a.currentStep==a.steps.length-1)},[u,s,n,a,y,b,x,k,T,o,r,c,d,p,f,v,$,w,function(t){var e,i;a&&n&&"steps"in a?t instanceof Event&&o?f.set(void 0):null==(e=a.next)||e.call(a):l&&!g.opts.secondaryTo&&l.id!=g.id&&(null==(i=$.micrioLink)?void 0:i.id)==l.id?(m.open(g.id),g.state.marker.set(void 0),m.state.popup.set(void 0)):g.state.marker.set(void 0)},()=>{var t;a&&"steps"in a&&(null==(t=a.prev)||t.call(a),i(5,b=!0))},()=>{var t;a&&"steps"in a&&(null==(t=a.next)||t.call(a),i(5,b=!0))},()=>{i(6,x=!x);for(let t=0;t<k.children.length;t++){const e=k.children[t];e instanceof HTMLElement&&e!=T&&(_.has(e)||(_.set(e,e.offsetHeight),e.style.height=e.offsetHeight+"px"),setTimeout((()=>{e.style.height=x?"0px":_.get(e)+"px"}),100))}},E,function(t){k=t,i(7,k)},function(t){T=t,i(8,T)},function(t){ut[t?"unshift":"push"]((()=>{y=t,i(4,y)}))}]}class Ys extends Yt{constructor(t){super(),Gt(this,t,Gs,Xs,a,{marker:0},null,[-1,-1])}}function js(t,e,i){const n=t.slice();return n[46]=e[i],n[48]=i,n}function Hs(t,e,i){const n=t.slice();return n[49]=e[i],n[48]=i,n}function Zs(t){let e,i=Dt(t[13]),n=[];for(let s=0;s<i.length;s+=1)n[s]=Ks(Hs(t,i,s));return{c(){e=N("ol");for(let t=0;t<n.length;t+=1)n[t].c();V(e,"class","micrio-serial-tour")},m(t,i){I(t,e,i);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(t,s){if(8921120&s[0]){let r;for(i=Dt(t[13]),r=0;r<i.length;r+=1){const o=Hs(t,i,r);n[r]?n[r].p(o,s):(n[r]=Ks(o),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},d(t){t&&L(e),P(n,t)}}}function Ks(t){let e,i=t[23](t[49].marker),n=i&&function(t){let e,i,n,s;function r(){return t[27](t[48])}return{c(){e=N("li"),i=N("button"),i.textContent=`${t[23](t[49].marker)}`,V(i,"class","micrio-serial-tour"),V(e,"class","micrio-serial-tour"),H(e,"active",t[5]&&t[5].chapter==t[48]),H(e,"enriched",t[49].imageHasOtherMarkers)},m(t,o){I(t,e,o),S(e,i),n||(s=R(i,"click",r),n=!0)},p(i,n){t=i,32&n[0]&&H(e,"active",t[5]&&t[5].chapter==t[48])},d(t){t&&L(e),n=!1,s()}}}(t);return{c(){n&&n.c(),e=D()},m(t,i){n&&n.m(t,i),I(t,e,i)},p(t,e){i&&n.p(t,e)},d(t){t&&L(e),n&&n.d(t)}}}function Js(t){let e,i,n,s;function r(e){t[28](e)}function o(e){t[29](e)}let a={tour:t[1],src:t[9],autoplay:!t[2]};return void 0!==t[4]&&(a.muted=t[4]),void 0!==t[5].currentTime&&(a.currentTime=t[5].currentTime),e=new ys({props:a}),ut.push((()=>Bt(e,"muted",r))),ut.push((()=>Bt(e,"currentTime",o))),e.$on("id",t[30]),e.$on("ended",t[21]),e.$on("play",t[31]),e.$on("blocked",t[32]),{c(){qt(e.$$.fragment)},m(t,i){Wt(e,t,i),s=!0},p(t,s){const r={};2&s[0]&&(r.tour=t[1]),512&s[0]&&(r.src=t[9]),4&s[0]&&(r.autoplay=!t[2]),!i&&16&s[0]&&(i=!0,r.muted=t[4],wt((()=>i=!1))),!n&&32&s[0]&&(n=!0,r.currentTime=t[5].currentTime,wt((()=>n=!1))),e.$set(r)},i(t){s||(Lt(e.$$.fragment,t),s=!0)},o(t){Pt(e.$$.fragment,t),s=!1},d(t){Xt(e,t)}}}function Qs(t){let e,i;return e=new Ui({props:{type:t[11]?"subtitles":"subtitles-off",active:t[11],title:t[10].subtitlesToggle}}),e.$on("click",t[33]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};2048&i[0]&&(n.type=t[11]?"subtitles":"subtitles-off"),2048&i[0]&&(n.active=t[11]),1024&i[0]&&(n.title=t[10].subtitlesToggle),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function tr(t){let e,i=t[46].duration>0&&function(t){let e,i,n,s;function o(...e){return t[34](t[48],...e)}function a(...e){return t[35](t[48],...e)}return{c(){e=N("div"),V(e,"class","bar"),V(e,"title",t[23](t[46].marker)),V(e,"role","progressbar"),V(e,"style",i=`width:${t[46].duration/t[16]*100}%; --perc: ${t[12][t[48]]||0}%`),H(e,"active",t[48]==t[0].currentStep)},m(t,i){I(t,e,i),n||(s=[R(e,"click",o),R(e,"keypress",a)],n=!0)},p(n,s){t=n,4096&s[0]&&i!==(i=`width:${t[46].duration/t[16]*100}%; --perc: ${t[12][t[48]]||0}%`)&&V(e,"style",i),1&s[0]&&H(e,"active",t[48]==t[0].currentStep)},d(t){t&&L(e),n=!1,r(s)}}}(t);return{c(){i&&i.c(),e=O()},m(t,n){i&&i.m(t,n),I(t,e,n)},p(t,e){t[46].duration>0&&i.p(t,e)},d(t){t&&L(e),i&&i.d(t)}}}function er(t){let e,i=Dt(t[13]),n=[];for(let s=0;s<i.length;s+=1)n[s]=tr(js(t,i,s));return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=O()},m(t,i){for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,i);I(t,e,i)},p(t,s){if(8990721&s[0]){let r;for(i=Dt(t[13]),r=0;r<i.length;r+=1){const o=js(t,i,r);n[r]?n[r].p(o,s):(n[r]=tr(o),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},d(t){t&&L(e),P(n,t)}}}function ir(t){let e,i,n,s,r,o,a=t[0].printChapters&&Zs(t),l=t[1]&&t[5]&&Js(t),c=t[17]&&function(t){let e,i,n,s,r,o,a;e=new Ui({props:{type:t[2]?"play":"pause",title:t[2]?t[10].play:t[10].pause}}),e.$on("click",t[18]),n=new Ui({props:{type:t[4]?"volume-off":"volume-up",title:t[4]?t[10].audioUnmute:t[10].audioMute}}),n.$on("click",t[20]);let l=t[8]&&Qs(t);return o=new cn({props:{el:t[14]}}),{c(){qt(e.$$.fragment),i=D(),qt(n.$$.fragment),s=D(),l&&l.c(),r=D(),qt(o.$$.fragment)},m(t,c){Wt(e,t,c),I(t,i,c),Wt(n,t,c),I(t,s,c),l&&l.m(t,c),I(t,r,c),Wt(o,t,c),a=!0},p(t,i){const s={};4&i[0]&&(s.type=t[2]?"play":"pause"),1028&i[0]&&(s.title=t[2]?t[10].play:t[10].pause),e.$set(s);const o={};16&i[0]&&(o.type=t[4]?"volume-off":"volume-up"),1040&i[0]&&(o.title=t[4]?t[10].audioUnmute:t[10].audioMute),n.$set(o),t[8]?l?(l.p(t,i),256&i[0]&&Lt(l,1)):(l=Qs(t),l.c(),Lt(l,1),l.m(r.parentNode,r)):l&&(At(),Pt(l,1,1,(()=>{l=null})),It())},i(t){a||(Lt(e.$$.fragment,t),Lt(n.$$.fragment,t),Lt(l),Lt(o.$$.fragment,t),a=!0)},o(t){Pt(e.$$.fragment,t),Pt(n.$$.fragment,t),Pt(l),Pt(o.$$.fragment,t),a=!1},d(t){t&&(L(i),L(s),L(r)),Xt(e,t),Xt(n,t),l&&l.d(t),Xt(o,t)}}}(t),d=t[17]&&function(t){let e,i,n,s;function r(e){t[36](e)}function o(e){t[37](e)}let a={duration:t[16],$$slots:{default:[er]},$$scope:{ctx:t}};return void 0!==t[6]&&(a.currentTime=t[6]),void 0!==t[3]&&(a.ended=t[3]),e=new Bn({props:a}),ut.push((()=>Bt(e,"currentTime",r))),ut.push((()=>Bt(e,"ended",o))),{c(){qt(e.$$.fragment)},m(t,i){Wt(e,t,i),s=!0},p(t,s){const r={};4097&s[0]|1048576&s[1]&&(r.$$scope={dirty:s,ctx:t}),!i&&64&s[0]&&(i=!0,r.currentTime=t[6],wt((()=>i=!1))),!n&&8&s[0]&&(n=!0,r.ended=t[3],wt((()=>n=!1))),e.$set(r)},i(t){s||(Lt(e.$$.fragment,t),s=!0)},o(t){Pt(e.$$.fragment,t),s=!1},d(t){Xt(e,t)}}}(t);return{c(){a&&a.c(),e=D(),i=N("aside"),l&&l.c(),n=D(),c&&c.c(),s=D(),d&&d.c(),r=O(),V(i,"class","micrio-media-controls micrio-serial-tour")},m(t,u){a&&a.m(t,u),I(t,e,u),I(t,i,u),l&&l.m(i,null),S(i,n),c&&c.m(i,null),I(t,s,u),d&&d.m(t,u),I(t,r,u),o=!0},p(t,s){t[0].printChapters?a?a.p(t,s):(a=Zs(t),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null),t[1]&&t[5]?l?(l.p(t,s),34&s[0]&&Lt(l,1)):(l=Js(t),l.c(),Lt(l,1),l.m(i,n)):l&&(At(),Pt(l,1,1,(()=>{l=null})),It()),t[17]&&c.p(t,s),t[17]&&d.p(t,s)},i(t){o||(Lt(l),Lt(c),Lt(d),o=!0)},o(t){Pt(l),Pt(c),Pt(d),o=!1},d(t){t&&(L(e),L(i),L(s),L(r)),a&&a.d(t),l&&l.d(),c&&c.d(),d&&d.d(t)}}}function nr(t,e,i){var n,s;let r,o,a,l,c,d,m,p;h(t,Oe,(t=>i(10,d=t))),h(t,On,(t=>i(11,m=t)));let{tour:f}=e;const g=f.stepInfo,v=ot(),$=lt("micrio"),w=$._lang;h(t,w,(t=>i(26,c=t)));const y=$.$current,b=$.state.marker,k=y.$settings,T=!!(null==(s=null==(n=null==k?void 0:k.ui)?void 0:n.controls)?void 0:s.serialTourNoTimeScrub),x=g.reduce(((t,e)=>t+e.duration),0)??0,_="controls"in f?!1!==f.controls:!f.noControls;let E,S,M,A=!1,I=!1,L=u($.isMuted),P=0;function N(t,e){if(!f.goto)return;const n=t==f.currentStep;if(T&&n)return;n||f.goto(t);const s=!T&&e?e.offsetX/e.target.offsetWidth:0;g.forEach(((i,n)=>i.ended=!e&&n<t)),C();const r=g[t];r.currentTime=s*r.duration,n&&(null==E?void 0:E.instance)&&i(1,E.instance.currentTime=r.currentTime,E),D(t)}function C(){var t;null==(t=f.stepInfo)||t.forEach((t=>t.currentTime=0))}const z=Ht([]);function D(t=f.currentStep??0){const e=g.map(((e,i)=>i<t||e.ended||I?100:i==t?Math.round((e.currentTime||0)/e.duration*1e4)/100:0));i(6,P=e.reduce(((t,e,i)=>t+e/100*g[i].duration),0)),z.set(e)}function O(t){const e=t&&!!f.steps.find((e=>e.startsWith(t.id)));i(1,E=void 0),e&&t.videoTour&&setTimeout((()=>{const e=g[f.currentStep??0];e.markerId==t.id&&(e.ended=!1,i(5,S=e),i(1,E=t.videoTour),D())}),10)}h(t,z,(t=>i(12,p=t)));rt((()=>{const t=()=>D();$.addEventListener("timeupdate",t);const e=b.subscribe(O);return()=>{e(),$.removeEventListener("timeupdate",t),C()}}));return t.$$set=t=>{"tour"in t&&i(0,f=t.tour)},t.$$.update=()=>{var e,n,s,d;67108866&t.$$.dirty[0]&&i(25,r=E?"audio"in E?E.audio:null==(n=null==(e=E.i18n)?void 0:e[c])?void 0:n.audio:void 0),33554432&t.$$.dirty[0]&&i(9,o=r?"fileUrl"in r?r.fileUrl:r.src:void 0),67108866&t.$$.dirty[0]&&i(24,a=E?"subtitle"in E?E.subtitle:null==(d=null==(s=E.i18n)?void 0:s[c])?void 0:d.subtitle:void 0),16777216&t.$$.dirty[0]&&i(8,l=a?"fileUrl"in a?a.fileUrl:a.src:void 0)},[f,E,A,I,L,S,P,M,l,o,d,m,p,g,$,w,x,_,function(){const t=$.state.mediaState.get(M);t&&i(2,A=t.paused=!t.paused),A?($.events.dispatch("serialtour-pause",f),$.events.enabled.set(!0)):($.events.dispatch("serialtour-play",f),$.events.enabled.set(!1))},N,function(){$.isMuted.set(i(4,L=!L))},function(){const t=S;t&&(t.ended=!0),null!=f.currentStep&&f.currentStep<f.steps.length-1&&f.next?f.next():(i(2,A=i(3,I=!0)),v("ended")),vt().then((()=>{C(),t&&(t.ended=!1)}))},z,t=>{var e;return t.i18n?null==(e=t.i18n[c])?void 0:e.title:t.title},a,r,c,t=>N(t),function(t){L=t,i(4,L)},function(e){t.$$.not_equal(S.currentTime,e)&&(S.currentTime=e,i(5,S))},t=>i(7,M=t.detail),()=>i(2,A=!1),()=>i(2,A=!0),()=>On.set(!m),(t,e)=>N(t,e),(t,e)=>{"Enter"===e.key&&N(t)},function(t){P=t,i(6,P)},function(t){I=t,i(3,I)}]}class sr extends Yt{constructor(t){super(),Gt(this,t,nr,ir,a,{tour:0},null,[-1,-1])}}function rr(t,e,i){const n=t.slice();return n[54]=e[i],n}function or(t){let e,i,n;function s(e){t[31](e)}let r={tour:t[2],src:t[8],autoplay:!0};return void 0!==t[6]&&(r.currentTime=t[6]),e=new ys({props:r}),ut.push((()=>Bt(e,"currentTime",s))),e.$on("ended",t[22]),{c(){qt(e.$$.fragment)},m(t,i){Wt(e,t,i),n=!0},p(t,n){const s={};4&n[0]&&(s.tour=t[2]),256&n[0]&&(s.src=t[8]),!i&&64&n[0]&&(i=!0,s.currentTime=t[6],wt((()=>i=!1))),e.$set(s)},i(t){n||(Lt(e.$$.fragment,t),n=!0)},o(t){Pt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function ar(t){let e,i,n,s;const r=[dr,cr,lr],o=[];function a(t,e){return t[16]&&"steps"in t[0]?0:t[18]?1:t[2]?2:-1}return~(e=a(t))&&(i=o[e]=r[e](t)),{c(){i&&i.c(),n=O()},m(t,i){~e&&o[e].m(t,i),I(t,n,i),s=!0},p(t,s){let l=e;e=a(t),e===l?~e&&o[e].p(t,s):(i&&(At(),Pt(o[l],1,1,(()=>{o[l]=null})),It()),~e?(i=o[e],i?i.p(t,s):(i=o[e]=r[e](t),i.c()),Lt(i,1),i.m(n.parentNode,n)):i=null)},i(t){s||(Lt(i),s=!0)},o(t){Pt(i),s=!1},d(t){t&&L(n),~e&&o[e].d(t)}}}function lr(t){let e,i,n;function s(e){t[30](e)}let r={tour:t[2],src:t[8],autoplay:!0};return void 0!==t[6]&&(r.currentTime=t[6]),e=new ys({props:r}),ut.push((()=>Bt(e,"currentTime",s))),e.$on("ended",t[22]),{c(){qt(e.$$.fragment)},m(t,i){Wt(e,t,i),n=!0},p(t,n){const s={};4&n[0]&&(s.tour=t[2]),256&n[0]&&(s.src=t[8]),!i&&64&n[0]&&(i=!0,s.currentTime=t[6],wt((()=>i=!1))),e.$set(s)},i(t){n||(Lt(e.$$.fragment,t),n=!0)},o(t){Pt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function cr(t){let e,i,n,s,r,o;const a=[hr,ur],l=[];function c(t,e){return"steps"in t[0]?0:1}i=c(t),n=l[i]=a[i](t);let d=!t[0].cannotClose&&gr(t);return{c(){e=N("div"),n.c(),s=D(),d&&d.c(),V(e,"class","micrio-tour"),H(e,"left",t[14]),H(e,"serial-tour",t[14]),H(e,"video-tour",t[15]),H(e,"no-controls",t[17]),H(e,"minimized",!t[7]&&(t[10]||t[5]))},m(t,n){I(t,e,n),l[i].m(e,null),S(e,s),d&&d.m(e,null),o=!0},p(t,r){let u=i;i=c(t),i===u?l[i].p(t,r):(At(),Pt(l[u],1,1,(()=>{l[u]=null})),It(),n=l[i],n?n.p(t,r):(n=l[i]=a[i](t),n.c()),Lt(n,1),n.m(e,s)),t[0].cannotClose?d&&(At(),Pt(d,1,1,(()=>{d=null})),It()):d?(d.p(t,r),1&r[0]&&Lt(d,1)):(d=gr(t),d.c(),Lt(d,1),d.m(e,null)),(!o||1184&r[0])&&H(e,"minimized",!t[7]&&(t[10]||t[5]))},i(t){o||(Lt(n),Lt(d),t&&(r||$t((()=>{r=Ct(e,_e,{duration:200}),r.start()}))),o=!0)},o(t){Pt(n),Pt(d),o=!1},d(t){t&&L(e),l[i].d(),d&&d.d()}}}function dr(t){let e,i,n,s,r=Dt(t[0].steps.map(t[26])),o=[];for(let c=0;c<r.length;c+=1)o[c]=$r(rr(t,r,c));const a=t=>Pt(o[t],1,1,(()=>{o[t]=null}));let l=!t[0].cannotClose&&wr(t);return{c(){e=N("article");for(let t=0;t<o.length;t+=1)o[t].c();i=D(),l&&l.c(),n=O(),V(e,"class","scroll-tour micrio-tour")},m(r,a){I(r,e,a);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);t[27](e),I(r,i,a),l&&l.m(r,a),I(r,n,a),s=!0},p(t,i){if(8193&i[0]){let n;for(r=Dt(t[0].steps.map(t[26])),n=0;n<r.length;n+=1){const s=rr(t,r,n);o[n]?(o[n].p(s,i),Lt(o[n],1)):(o[n]=$r(s),o[n].c(),Lt(o[n],1),o[n].m(e,null))}for(At(),n=r.length;n<o.length;n+=1)a(n);It()}t[0].cannotClose?l&&(At(),Pt(l,1,1,(()=>{l=null})),It()):l?(l.p(t,i),1&i[0]&&Lt(l,1)):(l=wr(t),l.c(),Lt(l,1),l.m(n.parentNode,n))},i(t){if(!s){for(let t=0;t<r.length;t+=1)Lt(o[t]);Lt(l),s=!0}},o(t){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)Pt(o[e]);Pt(l),s=!1},d(s){s&&(L(e),L(i),L(n)),P(o,s),t[27](null),l&&l.d(s)}}}function ur(t){let e,i,n,s;function r(e){t[28](e)}function o(e){t[29](e)}let a={tour:t[0],src:t[8],fullscreen:t[11],controls:!0,autoplay:!0};return void 0!==t[7]&&(a.paused=t[7]),void 0!==t[6]&&(a.currentTime=t[6]),e=new ys({props:a}),ut.push((()=>Bt(e,"paused",r))),ut.push((()=>Bt(e,"currentTime",o))),e.$on("ended",t[22]),{c(){qt(e.$$.fragment)},m(t,i){Wt(e,t,i),s=!0},p(t,s){const r={};1&s[0]&&(r.tour=t[0]),256&s[0]&&(r.src=t[8]),!i&&128&s[0]&&(i=!0,r.paused=t[7],wt((()=>i=!1))),!n&&64&s[0]&&(n=!0,r.currentTime=t[6],wt((()=>n=!1))),e.$set(r)},i(t){s||(Lt(e.$$.fragment,t),s=!0)},o(t){Pt(e.$$.fragment,t),s=!1},d(t){Xt(e,t)}}}function hr(t){let e,i,n,s;const r=[pr,mr],o=[];return e=t[14]?0:1,i=o[e]=r[e](t),{c(){i.c(),n=O()},m(t,i){o[e].m(t,i),I(t,n,i),s=!0},p(t,e){i.p(t,e)},i(t){s||(Lt(i),s=!0)},o(t){Pt(i),s=!1},d(t){t&&L(n),o[e].d(t)}}}function mr(t){let e,i,n,s,r,o;return e=new Ui({props:{type:"arrow-left",title:t[9].tourStepPrev,disabled:0==t[4]}}),e.$on("click",t[19]),n=new Ui({props:{noClick:!0,$$slots:{default:[fr]},$$scope:{ctx:t}}}),r=new Ui({props:{type:"arrow-right",title:t[9].tourStepNext,disabled:t[4]==t[0].steps.length-1}}),r.$on("click",t[20]),{c(){qt(e.$$.fragment),i=D(),qt(n.$$.fragment),s=D(),qt(r.$$.fragment)},m(t,a){Wt(e,t,a),I(t,i,a),Wt(n,t,a),I(t,s,a),Wt(r,t,a),o=!0},p(t,i){const s={};512&i[0]&&(s.title=t[9].tourStepPrev),16&i[0]&&(s.disabled=0==t[4]),e.$set(s);const o={};17&i[0]|67108864&i[1]&&(o.$$scope={dirty:i,ctx:t}),n.$set(o);const a={};512&i[0]&&(a.title=t[9].tourStepNext),17&i[0]&&(a.disabled=t[4]==t[0].steps.length-1),r.$set(a)},i(t){o||(Lt(e.$$.fragment,t),Lt(n.$$.fragment,t),Lt(r.$$.fragment,t),o=!0)},o(t){Pt(e.$$.fragment,t),Pt(n.$$.fragment,t),Pt(r.$$.fragment,t),o=!1},d(t){t&&(L(i),L(s)),Xt(e,t),Xt(n,t),Xt(r,t)}}}function pr(t){let e,i;return e=new sr({props:{tour:t[0]}}),e.$on("ended",t[22]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};1&i[0]&&(n.tour=t[0]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function fr(t){let e,i,n,s=t[4]+1+"",r=t[0].steps.length+"";return{c(){e=z(s),i=z(" / "),n=z(r)},m(t,s){I(t,e,s),I(t,i,s),I(t,n,s)},p(t,i){16&i[0]&&s!==(s=t[4]+1+"")&&Y(e,s),1&i[0]&&r!==(r=t[0].steps.length+"")&&Y(n,r)},d(t){t&&(L(e),L(i),L(n))}}}function gr(t){let e,i;return e=new Ui({props:{type:"close",title:t[9].close}}),e.$on("click",t[21]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};512&i[0]&&(n.title=t[9].close),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function vr(t){let e,i,n;return e=new Ys({props:{marker:t[54]}}),{c(){qt(e.$$.fragment),i=D()},m(t,s){Wt(e,t,s),I(t,i,s),n=!0},p(t,i){const n={};1&i[0]&&(n.marker=t[54]),e.$set(n)},i(t){n||(Lt(e.$$.fragment,t),n=!0)},o(t){Pt(e.$$.fragment,t),n=!1},d(t){t&&L(i),Xt(e,t)}}}function $r(t){let e,i,n=t[54]&&vr(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,i){t[54]?n?(n.p(t,i),1&i[0]&&Lt(n,1)):(n=vr(t),n.c(),Lt(n,1),n.m(e.parentNode,e)):n&&(At(),Pt(n,1,1,(()=>{n=null})),It())},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}function wr(t){let e,i;return e=new Ui({props:{type:"close",title:t[9].tourStop,className:"scroll-tour-end"}}),e.$on("click",t[21]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};512&i[0]&&(n.title=t[9].tourStop),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function yr(t){let e,i,n,s;const r=[ar,or],o=[];function a(t,e){return t[1]?t[2]?1:-1:0}return~(e=a(t))&&(i=o[e]=r[e](t)),{c(){i&&i.c(),n=O()},m(t,i){~e&&o[e].m(t,i),I(t,n,i),s=!0},p(t,s){let l=e;e=a(t),e===l?~e&&o[e].p(t,s):(i&&(At(),Pt(o[l],1,1,(()=>{o[l]=null})),It()),~e?(i=o[e],i?i.p(t,s):(i=o[e]=r[e](t),i.c()),Lt(i,1),i.m(n.parentNode,n)):i=null)},i(t){s||(Lt(i),s=!0)},o(t){Pt(i),s=!1},d(t){t&&L(n),~e&&o[e].d(t)}}}function br(t,e,i){var n,s;let r,o,a,l,c,d;h(t,Oe,(t=>i(9,c=t)));let{tour:u}=e,{noHTML:m=!1}=e;const p=ot(),f=lt("micrio"),{events:g,state:v,_lang:$}=f;h(t,$,(t=>i(25,l=t)));const w=f.$current,y=w.$data,b=w.$settings,k=f.canvases[0].grid,T=w.state.marker,x="steps"in u&&u.isSerialTour,_=!("steps"in u),E="scrollable"in u&&u.scrollable,S="steps"in u&&("controls"in u?!1!==u.controls:!u.noControls),M=!(!x&&"steps"in u&&(null==(n=b._markers)?void 0:n.tourControlsInPopup)),A=M&&(_||x),I=!!(null==(s=b._markers)?void 0:s.keepPopupsDuringTourTransitions),L=()=>z(X-1),P=()=>z(X+1),N=()=>g.enabled.set(!0);let C;function z(t){var e,i,n,s;if(!("steps"in u)||!u.stepInfo)return;const r=u.stepInfo[t];if(r&&r.markerId==(null==(e=f.state.$marker)?void 0:e.id))return D(r);const o=null==(n=null==(i=u.stepInfo[X])?void 0:i.micrioImage)?void 0:n.state;o&&o.marker.set(void 0),null==(s=f.$current)||s.state.marker.set(void 0),I||f.state.popup.set(void 0),f.removeEventListener("marker-opened",N),T.set(void 0),r&&(C=setTimeout(O,200,r))}async function D(t){var e,n,s,r,o,a,l;let c=w,d=!1;if(k&&!t.gridView&&k.images.find((e=>e.id==t.micrioId))){const i=!!("steps"in u&&u.stepInfo&&t)&&(null==(e=u.stepInfo)?void 0:e.indexOf(t))<X,o=(null==(n=t.marker.data)?void 0:n.gridTourTransition)??(null==(r=null==(s=t.marker.data)?void 0:s._meta)?void 0:r.gridTourTransition),a=(null==o?void 0:o.startsWith("slide"))?"slide":"swipe";await vt().then((()=>{const e=k.focus(c=k.images.find((e=>e.id==t.micrioId)),{view:t.startView,transition:o==a||o==`${a}-horiz`?i?`${a}-left`:`${a}-right`:o==`${a}-vert`?i?`${a}-up`:`${a}-down`:"behind"==o?i?"behind-left":"behind-right":o}).catch((()=>d=!0));return f.events.enabled.set(!1),e}))}else if((null==(o=f.$current)?void 0:o.id)!=t.micrioId){if(t.gridView&&(null==(l=null==(a=t.marker.data)?void 0:a._meta)?void 0:l.gridAction)&&k){t.micrioImage||(t.micrioImage=k.images.find((e=>e.id==t.micrioId))),c=t.micrioImage;const e=t.marker.data._meta.gridAction.split("|");k.action(e.shift(),e.join("|"))}else"steps"in u&&u.stepInfo&&i(4,X=u.stepInfo.indexOf(t)),c=f.open(t.micrioId,{gridView:t.gridView,startView:t.startView});await vt()}else c=f.$current;return[c,d]}async function O(t){let e=w,i=!1;t.micrioId&&([e,i]=await D(t)),i||(t.micrioImage||(t.micrioImage=e),g.enabled.set(!1),e.state.marker.set(t.markerId),f.addEventListener("marker-opened",N,{once:!0}),await vt(),g.dispatch("tour-step",u))}function R(){v.tour.set(void 0)}"steps"in u&&(u.prev=L,u.next=P,u.goto=z,Object.defineProperty(u,"currentStep",{configurable:!0,get:()=>X}));const F=Ht(!1);let U,V,B;function q(){F.set(!1),clearTimeout(U),U=setTimeout((()=>F.set(!0)),5e3)}function W(t){var e,i;if(!("steps"in u))return;const n=u.steps,s=t.filter((t=>t.isIntersecting)).map((t=>t.target))[0];if(s)for(let r=0;r<V.children.length;r++)if(V.children[r]==s){const t=null==(e=y.markers)?void 0:e.find((t=>t.id==n[r].split(",")[0]));return void(t&&(null==(i=f.$current)||i.camera.flyToView(t.view).catch((()=>{}))))}}h(t,F,(t=>i(10,d=t))),F.subscribe((t=>g.dispatch("tour-minimize",t)));let X=-1,G=!1;const Y=w.camera.getView(),j=b._markers;let H=[];rt((()=>("steps"in u&&we(w,u,l,w.$data).then((()=>function(t){var e;if(E||(null==(e=f.$current)?void 0:e.state.$marker)||void 0!==t.initialStep&&z(t.initialStep),E&&V){B=new IntersectionObserver(W,{root:V,threshold:1});for(let t=0;t<V.children.length;t++)B.observe(V.children[t])}H.push(f.state.marker.subscribe((e=>{if(!e)return void i(5,G=!1);const n="string"==typeof e?e:e.id,s=t.steps.findIndex((t=>t.startsWith(n)));if(s>=0&&t.stepInfo){const e=t.stepInfo[i(4,X=s)];e&&!e.micrioImage&&(e.micrioImage=f.canvases.find((t=>t.id==e.micrioId))??(null==k?void 0:k.images.find((t=>t.id==e.micrioId)))??f.$current)}i(5,G=s<0)})))}(u))),S||H.push(F.subscribe((t=>p("minimize",t)))),m||"steps"in u&&!x||!1===u.minimize||(f.addEventListener("pointermove",q),f.addEventListener("touchstart",q),q()),A&&f.setAttribute("data-tour-active",""),()=>{var t,e;for(clearTimeout(U),clearTimeout(C);H.length;)null==(t=H.shift())||t();f.removeEventListener("pointermove",q),f.removeEventListener("touchstart",q),f.removeEventListener("marker-opened",N),A&&f.removeAttribute("data-tour-active"),N(),B&&B.disconnect();const i=f.state.$marker;if("steps"in u&&u.stepInfo&&null!=u.currentStep){const t=u.stepInfo[u.currentStep];delete u.goto,delete u.next,delete u.prev,i&&(null==t?void 0:t.markerId)==i.id&&(null==(e=t.micrioImage)||e.state.marker.set(void 0),f.state.marker.set(void 0))}w.camera.aniDone=void 0,k||"steps"in u&&u.keepLastStep||f.$current==w||f.open(w.id),vt().then((()=>{g.dispatch("tour-stop",u),"steps"in u&&delete u.currentStep,!("steps"in u)&&(null==j?void 0:j.zoomOutAfterClose)&&!i&&Y&&w.camera.flyToView(Y,{speed:null==j?void 0:j.zoomOutAfterCloseSpeed,noTrueNorth:!0})}))}))),g.dispatch("tour-start",u);let Z=0,K=!1;return t.$$set=t=>{"tour"in t&&i(0,u=t.tour),"noHTML"in t&&i(1,m=t.noHTML)},t.$$.update=()=>{var e,n;1&t.$$.dirty[0]&&i(2,r="steps"in u?void 0:u),33554437&t.$$.dirty[0]&&i(24,o=r?"audio"in u?u.audio:null==(n=null==(e=r.i18n)?void 0:e[l])?void 0:n.audio:void 0),16777216&t.$$.dirty[0]&&i(8,a=o?"fileUrl"in o?o.fileUrl:o.src:void 0)},[u,m,r,V,X,G,Z,K,a,c,d,f,$,y,x,_,E,S,M,L,P,R,function(){g.dispatch("tour-ended",u),u.closeOnFinish&&R()},F,o,l,t=>y.markers&&y.markers.find((e=>e.id==t.split(",")[0])),function(t){ut[t?"unshift":"push"]((()=>{V=t,i(3,V)}))},function(t){K=t,i(7,K)},function(t){Z=t,i(6,Z)},function(t){Z=t,i(6,Z)},function(t){Z=t,i(6,Z)}]}class kr extends Yt{constructor(t){super(),Gt(this,t,br,yr,a,{tour:0,noHTML:1},null,[-1,-1])}}class Tr{constructor(t,e,i,n={}){this.micrio=t,this.length=e,this.goto=i,this.opts=n,this.hitTresh=!1,this.snapTo=[],this.pointers=new Map,this.isFullWidth=!1,this.startedWithShift=!1,this.isDragging=()=>2==this.pointers.size||(this.isFullWidth||this.startedWithShift)&&1==this.pointers.size,n.sensitivity||(n.sensitivity=Number(t.getAttribute("data-swipe-sensitivity")??1));const s=t.getAttribute("data-swipe-snap");s&&(this.snapTo=s.split(",").map(Number)),this.micrio.setAttribute("data-hooked",""),this.dStart=this.dStart.bind(this),this.dMove=this.dMove.bind(this),this.dStop=this.dStop.bind(this),this.mouseleave=this.mouseleave.bind(this),this.image=t.$current,this.image.state.view.subscribe((t=>this.isFullWidth=n.coverLimit?this.image.camera.isZoomedOut():!t||Math.round(1e3*(t[2]-t[0]))/1e3>=1));const r=t.wasm.getPtr();t.wasm.e.setNoPinchPan(r,!0),t.wasm.e.setIsSwipe(r,!0),this.micrio.canvas.element.addEventListener("pointerdown",this.dStart)}get currentIndex(){return this.micrio.wasm.e._getActiveImageIdx(this.image.ptr)}destroy(){this.micrio.canvas.element.removeEventListener("pointerdown",this.dStart),this.mouseleave()}dStart(t){this.startedWithShift=t.shiftKey;const e=!this.isDragging();this.pointers.set(t.pointerId,!0),this.pointers.size>2&&this.mouseleave(),e&&(this.hitTresh=!1,this.micrio.setAttribute("data-panning",""),this.startIndex=this.currentIndex,this.startX=t.clientX,this.firstTouchId=t.pointerId,this.micrio.addEventListener("pointermove",this.dMove),this.micrio.addEventListener("pointerup",this.dStop),this.micrio.setPointerCapture(t.pointerId))}dMove(t){if(!this.isDragging()||t.pointerId!=this.firstTouchId||void 0===this.startX||void 0===this.startIndex)return;if(!this.hitTresh&&void 0!==this.startX&&(this.hitTresh=2!=this.pointers.size||Math.abs(t.clientX-this.startX)>(this.micrio.events.pinchFactor&&this.micrio.events.pinchFactor>1.25?.3:.15)*this.micrio.offsetWidth)&&(this.startX=t.clientX),!this.hitTresh)return;const e=this.micrio.$current.camera,i=this.opts.continuous?Math.max(.1,(e.getXY(1,.5)[0]-e.getXY(0,.5)[0])/this.micrio.offsetWidth):1,n=Math.round((t.clientX-this.startX)/(this.micrio.offsetWidth*i)*this.length);let s=this.startIndex-n;if(this.opts.continuous){for(;s<0;)s+=this.length;for(;s>this.length-1;)s-=this.length}s=Math.max(0,Math.min(this.length-1,s)),s!=this.currentIndex&&this.goto(s)}dStop(t){this.pointers.delete(t.pointerId),t.pointerId==this.firstTouchId&&(this.micrio.releasePointerCapture(this.firstTouchId),this.firstTouchId=void 0),this.pointers.size||this.swipeEnd()}mouseleave(){this.pointers.clear(),this.swipeEnd()}swipeEnd(){if(this.micrio.removeAttribute("data-panning"),this.micrio.removeEventListener("pointermove",this.dMove),this.micrio.removeEventListener("pointerup",this.dStop),this.hitTresh=!1,this.snapTo.length){const t=this.snapTo[this.snapTo.map(((t,e)=>[e,Math.abs(t-this.currentIndex)])).sort(((t,e)=>t[1]>e[1]?1:t[1]<e[1]?-1:0))[0][0]];t!=this.currentIndex&&this.animateTo(t)}}animateTo(t){this.raf&&cancelAnimationFrame(this.raf);const e=performance.now(),i=this.currentIndex,n=i-t,s=t=>{const r=Math.min(1,(t-e)/250);r<1&&(this.raf=requestAnimationFrame(s));const o=i-Math.round(this.micrio.wasm.e.ease(r)*n);o!=this.currentIndex&&this.goto(o)};s(e)}}function xr(t){let e,i,n,s=Math.round(10*t[0])/10+"";return{c(){e=N("span"),i=z(s),n=z("º"),V(e,"class","micrio-dial")},m(t,s){I(t,e,s),S(e,i),S(e,n)},p(t,e){1&e&&s!==(s=Math.round(10*t[0])/10+"")&&Y(i,s)},d(t){t&&L(e)}}}function _r(e){let i,n,s,r=e[1]&&xr(e);return{c(){i=N("div"),r&&r.c(),j(i,"--micrio-dial-offset",e[3]+"px"),V(i,"data-scroll-through",""),V(i,"class","micrio-dial")},m(t,o){I(t,i,o),r&&r.m(i,null),e[6](i),n||(s=R(i,"pointerdown",U(F(e[4])),!0),n=!0)},p(t,[e]){t[1]?r?r.p(t,e):(r=xr(t),r.c(),r.m(i,null)):r&&(r.d(1),r=null),8&e&&j(i,"--micrio-dial-offset",t[3]+"px")},i:t,o:t,d(t){t&&L(i),r&&r.d(),e[6](null),n=!1,s()}}}function Er(t,e,i){let n,{currentRotation:s}=e,{frames:r}=e,{degrees:o}=e;const a=ot(),l=lt("micrio"),c=l.$current.camera;let d,u,h=0,m=0;function p(t){const e=Math.max(1,(c.getXY(1,.5)[0]-c.getXY(0,.5)[0])/l.offsetWidth);a("turn",(m/360+(h-t.clientX)/(d.offsetWidth*e))*r)}function f(){u&&l.releasePointerCapture(u),l.removeAttribute("data-panning"),l.removeEventListener("pointermove",p),l.removeEventListener("pointerup",f)}return t.$$set=t=>{"currentRotation"in t&&i(0,s=t.currentRotation),"frames"in t&&i(5,r=t.frames),"degrees"in t&&i(1,o=t.degrees)},t.$$.update=()=>{5&t.$$.dirty&&i(3,n=-s/360*((null==d?void 0:d.offsetWidth)??0))},[s,o,d,n,function(t){0==t.button&&(l.addEventListener("pointermove",p),l.addEventListener("pointerup",f),l.setAttribute("data-panning",""),l.setPointerCapture(u=t.pointerId),m=s,h=t.clientX)},r,function(t){ut[t?"unshift":"push"]((()=>{d=t,i(2,d)}))}]}class Sr extends Yt{constructor(t){super(),Gt(this,t,Er,_r,a,{currentRotation:0,frames:5,degrees:1})}}const{window:Mr}=E;function Ar(t,e,i){const n=t.slice();return n[90]=e[i],n[92]=i,n}function Ir(t){let e,i,n,s,o,a,l,c,d,u,h,m;i=new Ui({props:{type:"arrow-left",title:t[11].galleryPrev,className:"gallery-btn",disabled:0==t[1]}}),i.$on("pointerdown",t[32]);let p=Dt(t[21]),f=[];for(let r=0;r<p.length;r+=1)f[r]=Nr(Ar(t,p,r));return d=new Ui({props:{type:"arrow-right",title:t[11].galleryNext,className:"gallery-btn",disabled:t[1]==t[0].length-1}}),d.$on("pointerdown",t[37]),{c(){e=N("div"),qt(i.$$.fragment),n=D(),s=N("ul");for(let t=0;t<f.length;t+=1)f[t].c();o=D(),a=N("button"),c=D(),qt(d.$$.fragment),V(a,"style",l=`left: ${t[8]}px`),V(a,"class","micrio-gallery"),H(a,"dragging",t[2]),V(s,"class","micrio-gallery"),V(e,"class","micrio-gallery"),H(e,"hidden",t[5]||t[10]&&!t[2]&&!t[4])},m(r,l){I(r,e,l),Wt(i,e,null),S(e,n),S(e,s);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(s,null);S(s,o),S(s,a),t[35](s),S(e,c),Wt(d,e,null),u=!0,h||(m=[R(a,"pointerdown",U(F(t[24])),!0),R(a,"touchstart",U(F(t[24])),!0),R(s,"pointermove",t[25]),R(s,"pointerleave",t[36])],h=!0)},p(t,n){const r={};if(2048&n[0]&&(r.title=t[11].galleryPrev),2&n[0]&&(r.disabled=0==t[1]),i.$set(r),8388738&n[0]){let e;for(p=Dt(t[21]),e=0;e<p.length;e+=1){const i=Ar(t,p,e);f[e]?f[e].p(i,n):(f[e]=Nr(i),f[e].c(),f[e].m(s,o))}for(;e<f.length;e+=1)f[e].d(1);f.length=p.length}(!u||256&n[0]&&l!==(l=`left: ${t[8]}px`))&&V(a,"style",l),(!u||4&n[0])&&H(a,"dragging",t[2]);const c={};2048&n[0]&&(c.title=t[11].galleryNext),3&n[0]&&(c.disabled=t[1]==t[0].length-1),d.$set(c),(!u||1076&n[0])&&H(e,"hidden",t[5]||t[10]&&!t[2]&&!t[4])},i(t){u||(Lt(i.$$.fragment,t),Lt(d.$$.fragment,t),u=!0)},o(t){Pt(i.$$.fragment,t),Pt(d.$$.fragment,t),u=!1},d(n){n&&L(e),Xt(i),P(f,n),t[35](null),Xt(d),h=!1,r(m)}}}function Lr(t){var e;let i,n;return i=new Sr({props:{currentRotation:t[6],frames:t[22],degrees:null==(e=t[9].omni)?void 0:e.showDegrees}}),i.$on("turn",t[31]),{c(){qt(i.$$.fragment)},m(t,e){Wt(i,t,e),n=!0},p(t,e){var n;const s={};64&e[0]&&(s.currentRotation=t[6]),512&e[0]&&(s.degrees=null==(n=t[9].omni)?void 0:n.showDegrees),i.$set(s)},i(t){n||(Lt(i.$$.fragment,t),n=!0)},o(t){Pt(i.$$.fragment,t),n=!1},d(t){Xt(i,t)}}}function Pr(e){let i,n,s;return{c(){i=N("button"),i.textContent="✥",V(i,"class","angular micrio-gallery"),H(i,"dragging",e[2])},m(t,r){I(t,i,r),n||(s=R(i,"pointerdown",U(F(e[26])),!0),n=!0)},p(t,e){4&e[0]&&H(i,"dragging",t[2])},i:t,o:t,d(t){t&&L(i),n=!1,s()}}}function Nr(t){let e,i,n,s;function o(){return t[33](t[92])}function a(...e){return t[34](t[92],...e)}return{c(){e=N("li"),i=N("button"),i.textContent="•",V(i,"class","bullet micrio-gallery"),V(e,"class","micrio-gallery"),H(e,"active",t[92]==t[1]),H(e,"hover",t[92]==t[7])},m(t,r){I(t,e,r),S(e,i),n||(s=[R(i,"click",o),R(i,"keypress",a)],n=!0)},p(i,n){t=i,2&n[0]&&H(e,"active",t[92]==t[1]),128&n[0]&&H(e,"hover",t[92]==t[7])},d(t){t&&L(e),n=!1,r(s)}}}function Cr(t){let e,i,n,s,r=!t[20]&&function(t){let e,i,n,s;const r=[Pr,Lr,Ir],o=[];function a(t,e){return t[19]?0:t[18]&&!t[18].noDial&&t[16]?1:!t[17]&&t[0].length>1?2:-1}return~(e=a(t))&&(i=o[e]=r[e](t)),{c(){i&&i.c(),n=O()},m(t,i){~e&&o[e].m(t,i),I(t,n,i),s=!0},p(t,s){let l=e;e=a(t),e===l?~e&&o[e].p(t,s):(i&&(At(),Pt(o[l],1,1,(()=>{o[l]=null})),It()),~e?(i=o[e],i?i.p(t,s):(i=o[e]=r[e](t),i.c()),Lt(i,1),i.m(n.parentNode,n)):i=null)},i(t){s||(Lt(i),s=!0)},o(t){Pt(i),s=!1},d(t){t&&L(n),~e&&o[e].d(t)}}}(t);return{c(){r&&r.c(),e=O()},m(o,a){r&&r.m(o,a),I(o,e,a),i=!0,n||(s=R(Mr,"keydown",t[27]),n=!0)},p(t,e){t[20]||r.p(t,e)},i(t){i||(Lt(r),i=!0)},o(t){Pt(r),i=!1},d(t){t&&L(e),r&&r.d(t),n=!1,s()}}}function zr(t,e,i){var n,s,r,o,a;let l,c,d,u,m,p,f;h(t,Oe,(t=>i(11,f=t)));let{images:g=[]}=e,{omni:v=null}=e;const $=lt("micrio"),{wasm:w,current:y,events:b,_lang:k}=$;h(t,y,(t=>i(54,m=t))),h(t,k,(t=>i(53,u=t)));const T=m,x=T.$info,_=T.state.layer;h(t,_,(t=>i(52,c=t)));const E=T.settings;h(t,E,(t=>i(9,d=t)));const S=T.camera;if(v)for(let h=0;h<v.frames;h++)g.push({id:x.id+"/"+h,image:T,visible:Ht(!1),frame:h,opts:{area:[0,0,1,1]},ptr:-1,baseTileIdx:-1,thumbSrc:T.getTileSrc(T.levels,0,0,h)});const M=d.gallery,A="omni"==M.type,I=A||"swipe-full"==M.type,L=I||"switch"==M.type,P=A,N=!!M.isSpreads,C=M.coverPages??0,z=d.omni,D=A&&!!(null==z?void 0:z.twoAxes),O=M.startId||$.getAttribute("data-gallery-start-id"),R=M.archive,F=!!d.limitToCoverScale,U=!!d.noUI,V=(null==z?void 0:z.frontIndex)??0,B=(null==(n=null==z?void 0:z.layers)?void 0:n.length)??1,q=$.hasAttribute("data-gallery-start")?Number($.getAttribute("data-gallery-start")):null==(s=null==d?void 0:d.omni)?void 0:s.startIndex;let W=null==q||isNaN(q)?O?g.findIndex((t=>t.id==O)):0:q;W<0&&(W=0);const X=[],G=[];if(g)for(let h=0;h<g.length;h++){let t=null==(r=g[h].opts)?void 0:r.area;if(!t)continue;const e=t.slice(0);if(G.push([h]),N&&h-C>=0&&(h-C)%2==0&&g[h+1]){if(t=null==(o=g[++h].opts)?void 0:o.area,!t)continue;G[G.length-1].push(h),e[2]=t[2],e[3]=t[3]}X.push(e)}const Y=X.length/B,j=(null==(a=null==z?void 0:z.layers)?void 0:a.map((t=>({i18n:Object.fromEntries(Object.entries(t.i18n).map((([t,e],i)=>[t,{title:e??"Layer "+(i+1)}])))}))))??[];Object.keys(x.revision??{[u]:0}).forEach((t=>j.forEach(((e,i)=>{e.i18n[t]||(e.i18n[t]={title:"Layer "+(i+1)})}))));let H=-1,Z=L,K=!0,J=!1,Q=!0,tt=!1,et=0;function it(t,e=!1,n=150,s=!1){if(P){for(;t<0;)t+=Y;t%=Y}const r=t=Math.round(Math.max(0,Math.min(Y-1,t))),o=s||r!=H;if(i(1,H=r),o&&nt(),L)o&&(w.setActiveImage(T.ptr,G[H][0],G[H].length-1),A?w.render():(S.flyToView(X[H],{duration:n,speed:2}).then((()=>dt(X[H],!0))).catch((()=>{})),zt()));else{const s=S.getView(),r=X[t],a=tt&&(Z&&!J||o||s[0]<r[0]!=s[2]>r[2]);i(4,J=!1),a?S.flyToView(r,{duration:n,speed:1,progress:e?.5:0}).then((()=>dt(r,!0))).catch((()=>{})):(r&&0==n&&S.setView(r),dt(r,!0))}T.album.hooked=tt=!0}function nt(t){if(Nt&&t){if(Nt.currentIndex==H)return;i(1,H=Nt.currentIndex)}!function(t){const e=[];N&&t>=C&&(t=2*t-C);const i=Math.floor(t/st);for(let n=-ot;n<=ot;n++)if(n){let s=t+n;if(D){const t=Math.floor(s/st);t<i&&(s+=st),t>i&&(s-=st)}if(P){for(;s<0;)s+=g.length;for(;s>=g.length;)s-=g.length}e.push(s)}if(D)for(let n=-ot;n<=ot;n++)n&&e.push(t+n*st);e.filter(((t,i)=>e.indexOf(t)==i)).map((t=>g[t])).filter((t=>!!t&&!at.has(t.id))).forEach((t=>at.set(t.id,ct((()=>w.getTexture(t.baseTileIdx,t.thumbSrc,!1,{force:!!R}))))))}(H),b.dispatch("gallery-show",H),A&&i(6,et=(H-V)/Y*360)}const st=g.length,ot="requestIdleCallback"in self?A?Math.max(36,2*Math.floor(g.length/8)):100:50,at=new Map,ct=self.requestIdleCallback??self.requestAnimationFrame;function dt(t,e){Z=S.isZoomedOut(),S.setLimit(!e&&Z?[-1,t[1],2,t[3]]:t)}function ht(t){const e=null==mt?void 0:mt.childNodes[t];return e?-2+e.offsetLeft+e.offsetWidth/2:0}let mt,pt,ft=0,gt=!1;function vt(t){const e=pt??mt.getClientRects()[0],i="button"in t?t.clientX:t.touches[0].clientX,n=Math.min(1,Math.max(0,(i-e.left-14)/(e.width-32)));return[n,Math.max(0,Math.min(Y-1,Math.floor(n*Y)))]}function $t(t){const[e,n]=vt(t);i(30,ft=16+e*(pt.width-32)),n!=H&&it(n,!0)}let wt,yt,bt=-1;function kt(){window.removeEventListener(gt?"pointermove":"touchmove",$t),window.removeEventListener(gt?"pointerup":"touchend",kt),i(2,K=$.keepRendering=!1),it(H)}function Tt(){Z&&(yt=wt=H,i(4,J=Z),dt(X[H],!1))}function xt(t){const e=t.detail;"panend"!=t.type||e?it(yt!=H?yt:H+(wt==H&&J&&e?Math.round(Math.min(1,Math.max(-1,-e.movedX/e.duration))):0)):i(4,J=!1)}function _t(t){if(!t)return;const e=t[0]+(t[2]-t[0])/2,i=X.map(((i,n)=>(1-Math.min(Math.abs(e-i[0]),Math.abs(e-i[2])))*Math.max(0,(Math.min(t[2],i[2])-Math.max(t[0],i[0]))/(i[2]-i[0]))*(1-.1*Math.abs(H-n))));w.setFocus(T.ptr,X[yt=i.every((t=>!t))?H:i.indexOf(Math.max(...i))],J),Z=S.isZoomedOut()}let Et=0,St=[0,0,0,0];function Mt(t){Et=Math.max(0,Math.min(0,St[3]+Math.round((St[1]-t.clientY)/360*1)));let e=(St[2]+Math.round((St[0]-t.clientX)/360*st))%st;for(;e<0;)e+=st;it(Et*st+e)}function At(){removeEventListener("pointermove",Mt),removeEventListener("pointerup",At),i(2,K=!1)}let It=-1;const Lt=()=>{j.length&&T.data.update((t=>{t||(t={}),t.pages||(t.pages=[]);const e={id:"_omni-layers",i18n:j[c].i18n,icon:Xe,children:j.map(((t,e)=>({id:"omni-layer-"+e,i18n:t.i18n,action:()=>T.state.layer.set(e)}))).filter((t=>t.id!="omni-layer-"+c))};return It>=0?t.pages.splice(It,1,e):t.pages.push(e),It=t.pages.length-1,t}))};let Pt,Nt,Ct=$.state.ui.hidden;function zt(){Ct.set(!1),clearTimeout(Pt),Pt=setTimeout((()=>Ct.set(!0)),2e3)}h(t,Ct,(t=>i(10,p=t))),T.album={numPages:X.length,get currentIndex(){return H},info:T.$settings.album,prev:()=>it(H-1),next:()=>it(H+1),goto:it},rt((()=>{Promise.all(g.map((t=>("state"in t&&!("image"in t)&&(t.camera=T.camera),w.addEmbed(t,T,{opacity:0,asImage:"camera"in t}))))).then((()=>{w.setActiveImage(T.ptr,W),it(W,!1,0),i(2,K=!1)})),A&&B>1&&Lt(),i(5,Q=!1),$.goto=it;const t=[],e=[];return A&&T.state.layer.subscribe(Lt),I&&(Nt=T.swiper=new Tr($,Y,it,{continuous:P,coverLimit:F})),e.push((()=>{$.canvas.element.removeEventListener("pointermove",zt),$.canvas.element.removeEventListener("pointerdown",zt)})),A||D||I||($.canvas.element.addEventListener("pointermove",zt),$.canvas.element.addEventListener("pointerdown",zt),zt()),L&&t.push(T.state.view.subscribe((()=>{Z=S.isZoomedOut()}))),L||I||g.length<=1||(D||i(30,ft=ht(W)),t.push(T.state.view.subscribe(_t)),$.addEventListener("panstart",Tt),$.addEventListener("panend",xt),$.addEventListener("pinchend",xt),e.push((()=>{$.removeEventListener("panstart",Tt),$.removeEventListener("panend",xt),$.removeEventListener("pinchend",xt)}))),A&&$.addEventListener("move",nt),()=>{var i,n;for(Nt&&Nt.destroy();t.length;)null==(i=t.shift())||i();for(;e.length;)null==(n=e.shift())||n();A&&$.removeEventListener("move",nt)}}));return t.$$set=t=>{"images"in t&&i(0,g=t.images),"omni"in t&&i(29,v=t.omni)},t.$$.update=()=>{1073741838&t.$$.dirty[0]&&i(8,l=!mt||K?ft:ht(H))},[g,H,K,mt,J,Q,et,bt,l,d,p,f,y,k,_,E,A,I,z,D,U,X,Y,it,function(t){K||(gt="button"in t)&&0!=t.button||(pt=mt.getClientRects()[0],$.keepRendering=i(2,K=!0),i(7,bt=-1),window.addEventListener(gt?"pointermove":"touchmove",$t),window.addEventListener(gt?"pointerup":"touchend",kt),$t(t))},function(t){K||i(7,bt=vt(t)[1])},function(t){0==t.button&&(i(2,K=!0),St=[t.clientX,t.clientY,H,Et],window.addEventListener("pointermove",Mt),window.addEventListener("pointerup",At))},function(t){var e;if(!(null==(e=d.omni)?void 0:e.noKeys)){switch(t.key){case"PageUp":case"ArrowLeft":it(H-(A?-1:1),!0);break;case"PageDown":case"ArrowRight":it(H+(A?-1:1),!0);break;case"ArrowUp":D&&it(H+st);break;case"ArrowDown":D&&it(H-st);break;case"Home":it(0);break;case"End":it(Y);break;default:return}zt()}},Ct,v,ft,t=>it(t.detail),()=>it(H-1),t=>it(t,!0),(t,e)=>{"Enter"===e.key&&it(t,!0)},function(t){ut[t?"unshift":"push"]((()=>{mt=t,i(3,mt)}))},()=>i(7,bt=-1),()=>it(H+1)]}class Dr extends Yt{constructor(t){super(),Gt(this,t,zr,Cr,a,{images:0,omni:29},null,[-1,-1,-1])}}function Or(t,e,i){let{list:n}=e,{loop:s=!0}=e,{volume:r=1}=e;const o=new Audio;o.preload="none",o.loop=!1,o.onended=l;let a=-1;function l(){if(!s&&a+1==n.length)return;const t=n[++a%n.length];o.src="fileUrl"in t?t.fileUrl:t.src,o.play()}return rt((()=>(l(),()=>o.pause()))),t.$$set=t=>{"list"in t&&i(0,n=t.list),"loop"in t&&i(1,s=t.loop),"volume"in t&&i(2,r=t.volume)},t.$$.update=()=>{4&t.$$.dirty&&(o.volume=r)},[n,s,r]}class Rr extends Yt{constructor(t){super(),Gt(this,t,Or,null,a,{list:0,loop:1,volume:2})}}function Fr(t){let e,i;return e=new Rr({props:{list:t[1].music.items,loop:t[1].music.loop,volume:t[0]*(t[1].music.volume??1)}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};2&i&&(n.list=t[1].music.items),2&i&&(n.loop=t[1].music.loop),3&i&&(n.volume=t[0]*(t[1].music.volume??1)),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Ur(t){var e;let i,n,s=t[2]&&t[3]&&(null==(e=t[1].music)?void 0:e.items.length)&&Fr(t);return{c(){s&&s.c(),i=O()},m(t,e){s&&s.m(t,e),I(t,i,e),n=!0},p(t,[e]){var n;t[2]&&t[3]&&(null==(n=t[1].music)?void 0:n.items.length)?s?(s.p(t,e),14&e&&Lt(s,1)):(s=Fr(t),s.c(),Lt(s,1),s.m(i.parentNode,i)):s&&(At(),Pt(s,1,1,(()=>{s=null})),It())},i(t){n||(Lt(s),n=!0)},o(t){Pt(s),n=!1},d(t){t&&L(i),s&&s.d(t)}}}let Vr;const Br={},qr=Ht();let Wr,Xr;const Gr=Ht(!1);function Yr(t,e,i){Xr.setPosition?Xr.setPosition(t,e,i):"positionX"in Xr&&(Xr.positionX.value=t,Xr.positionY.value=e,Xr.positionZ.value=i)}function jr(e,i,n){let s,r,o,a=t;h(e,Gr,(t=>n(2,r=t))),h(e,qr,(t=>n(3,o=t))),e.$$.on_destroy.push((()=>a()));let{volume:l=1}=i,{data:c}=i,{is360:d}=i;const{events:u,current:m}=lt("micrio");h(e,m,(t=>n(7,s=t)));const p=s,f=p.$info,g=f.height/f.width,v="AudioContext"in window||"webkitAudioContext"in window;function $(t,e,i){if(d){t*=2*-Math.PI,e-=.5,e*=-Math.PI;const n=10*(1-i),s=Math.cos(e)*Math.sin(t)*n,r=Math.sin(e)*n,o=Math.cos(e)*Math.cos(t)*n;Yr(s,r,o);let a=s*s+r*r+o*o;a>0&&(a=1/Math.sqrt(a)),function(t,e,i){Xr.setOrientation?Xr.setOrientation(t,e,i,0,1,0):"forwardX"in Xr&&(Xr.forwardX.value=t,Xr.forwardY.value=e,Xr.forwardZ.value=i)}(s*a,r*a,o*a)}else Yr(2*(t-.5),2*(.5-e)*g,i)}const w=()=>Gr.set(!0),y=new Audio("data:audio/mpeg;base64,/+MYxAAAAANIAUAAAASEEB/jwOFM/0MM/90b/+RhST//w4NFwOjf///PZu////9lns5GFDv//l9GlUIEEIAAAgIg8Ir/JGq3/+MYxDsLIj5QMYcoAP0dv9HIjUcH//yYSg+CIbkGP//8w0bLVjUP///3Z0x5QCAv/yLjwtGKTEFNRTMuOTeqqqqqqqqqqqqq/+MYxEkNmdJkUYc4AKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq");return y.volume=ie.iOS?0:1,v&&rt((()=>{let t;return t=Gr.subscribe((e=>{var i;e&&(Wr||(!function(t){if(!Vr){if(Wr||(Wr="micrioAudioContext"in window?window.micrioAudioContext:"AudioContext"in window?new window.AudioContext:"webkitAudioContext"in window?new window.webkitAudioContext:null),!Wr)return console.warn("[Micrio] Your browser does not support the Web Audio API");Vr=Wr.createGain(),Vr.connect(Wr.destination),Vr.gain.value=t,qr.set(Wr),Xr=Wr.listener,"upX"in Xr&&(Xr.upX.value=0,Xr.upY.value=1,Xr.upZ.value=0)}}(l),u.dispatch("audio-init")),t&&(t(),t=null),(null==(i=c.markers)?void 0:i.filter((t=>!!t.positionalAudio)).length)&&(t=p.state.view.subscribe((t=>{if(!t)return;const e=t[2]-t[0],i=t[3]-t[1],n=Math.max(0,1.05-p.camera.getScale());$(t[0]+e/2,t[1]+i/2,n*(d?1:1.5))}))))})),Wr||y.play().then(w).catch((()=>{u.dispatch("autoplay-blocked"),addEventListener("pointerup",w,{once:!0})})),()=>{t&&t()}})),e.$$set=t=>{"volume"in t&&n(0,l=t.volume),"data"in t&&n(1,c=t.data),"is360"in t&&n(5,d=t.is360)},e.$$.update=()=>{1&e.$$.dirty&&Vr&&(Vr.gain.value=l)},[l,c,r,o,m,d]}class Hr extends Yt{constructor(t){super(),Gt(this,t,jr,Ur,a,{volume:0,data:1,is360:5})}}function Zr(t){let e,i,n,s,r,o,a=(t[8]||t[4])&&Kr(t),l=t[7]&&to(t),c=t[6]&&eo(t),d=t[2]&&io(t);return{c(){e=N("details"),a&&a.c(),i=D(),l&&l.c(),n=D(),c&&c.c(),s=D(),d&&d.c(),V(e,"class","micrio-details"),H(e,"opened",t[2])},m(r,u){I(r,e,u),a&&a.m(e,null),S(e,i),l&&l.m(e,null),S(e,n),c&&c.m(e,null),S(e,s),d&&d.m(e,null),t[20](e),o=!0},p(t,r){t[8]||t[4]?a?a.p(t,r):(a=Kr(t),a.c(),a.m(e,i)):a&&(a.d(1),a=null),t[7]?l?l.p(t,r):(l=to(t),l.c(),l.m(e,n)):l&&(l.d(1),l=null),t[6]?c?c.p(t,r):(c=eo(t),c.c(),c.m(e,s)):c&&(c.d(1),c=null),t[2]?d?(d.p(t,r),4&r&&Lt(d,1)):(d=io(t),d.c(),Lt(d,1),d.m(e,null)):d&&(At(),Pt(d,1,1,(()=>{d=null})),It()),(!o||4&r)&&H(e,"opened",t[2])},i(t){o||(Lt(d),t&&$t((()=>{o&&(r||(r=zt(e,_e,{duration:200},!0)),r.run(1))})),o=!0)},o(t){Pt(d),t&&(r||(r=zt(e,_e,{duration:200},!1)),r.run(0)),o=!1},d(i){i&&L(e),a&&a.d(),l&&l.d(),c&&c.d(),d&&d.d(),t[20](null),i&&r&&r.end()}}}function Kr(t){let e,i,n=t[8]&&Jr(t),s=t[4]&&Qr(t);return{c(){e=N("summary"),n&&n.c(),i=O(),s&&s.c(),V(e,"class","micrio-details")},m(t,r){I(t,e,r),n&&n.m(e,null),S(e,i),s&&s.m(e,null)},p(t,r){t[8]?n?n.p(t,r):(n=Jr(t),n.c(),n.m(e,i)):n&&(n.d(1),n=null),t[4]?s?s.p(t,r):(s=Qr(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(t){t&&L(e),n&&n.d(),s&&s.d()}}}function Jr(t){let e,i;return{c(){e=N("cite"),i=z(t[8]),V(e,"class","micrio-details")},m(t,n){I(t,e,n),S(e,i)},p(t,e){256&e&&Y(i,t[8])},d(t){t&&L(e)}}}function Qr(t){let e,i;return{c(){e=N("small"),i=z(t[4]),V(e,"class","micrio-details")},m(t,n){I(t,e,n),S(e,i)},p(t,e){16&e&&Y(i,t[4])},d(t){t&&L(e)}}}function to(t){let e,i;return{c(){e=new K(!1),i=O(),e.a=i},m(n,s){e.m(t[7],n,s),I(n,i,s)},p(t,i){128&i&&e.p(t[7])},d(t){t&&(L(i),e.d())}}}function eo(t){let e,i,n,s=(t[5]||t[6])+"";return{c(){e=N("p"),i=N("a"),n=z(s),V(i,"rel","noopener noreferrer"),V(i,"href",t[6]),V(i,"target","_blank"),V(e,"class","micrio-details")},m(t,s){I(t,e,s),S(e,i),S(i,n)},p(t,e){96&e&&s!==(s=(t[5]||t[6])+"")&&Y(n,s),64&e&&V(i,"href",t[6])},d(t){t&&L(e)}}}function io(t){let e,i;return e=new Ui({props:{type:"close",title:t[9].close}}),e.$on("click",t[19]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};512&i&&(n.title=t[9].close),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function no(t){let e,i,n=(t[8]||t[7]||t[6])&&Zr(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,[i]){t[8]||t[7]||t[6]?n?(n.p(t,i),448&i&&Lt(n,1)):(n=Zr(t),n.c(),Lt(n,1),n.m(e.parentNode,e)):n&&(At(),Pt(n,1,1,(()=>{n=null})),It())},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}function so(t){let e="cm";return t>=1e5?(e="km",t/=1e5):t>=100?(e="m",t/=100):t<1e-6?(e="nm",t*=1e7):t<.001?(e="µm",t*=1e4):t<1&&(e="mm",t*=10),t.toFixed(2)+" "+e}function ro(e,i,n){let s,r,o,a,l,c,u,m,p,f,g,v,$,w=t,y=()=>(w(),w=d(T,(t=>n(15,p=t))),T),b=t,k=()=>(b(),b=d(x,(t=>n(16,f=t))),x);h(e,Oe,(t=>n(9,$=t))),e.$$.on_destroy.push((()=>w())),e.$$.on_destroy.push((()=>b()));let{info:T}=i;y();let{data:x}=i;k();const{_lang:_,current:E}=lt("micrio");h(e,_,(t=>n(17,g=t))),h(e,E,(t=>n(18,v=t)));let S,M=!1;rt((()=>{n(3,S.ontoggle=()=>{n(2,M=S.open)},S)}));return e.$$set=t=>{"info"in t&&y(n(0,T=t.info)),"data"in t&&k(n(1,x=t.data))},e.$$.update=()=>{262144&e.$$.dirty&&n(13,s=null==v?void 0:v.$settings.cmWidth),262144&e.$$.dirty&&n(12,r=null==v?void 0:v.$settings.cmHeight),196608&e.$$.dirty&&n(14,o=f?(null==f?void 0:f.i18n)?f.i18n[g]:f:void 0),49152&e.$$.dirty&&n(8,a=(null==o?void 0:o.title)??(null==p?void 0:p.title)??""),16384&e.$$.dirty&&n(7,l=null==o?void 0:o.description),16384&e.$$.dirty&&n(6,c=null==o?void 0:o.sourceUrl),16384&e.$$.dirty&&n(5,u=null==o?void 0:o.copyright),12288&e.$$.dirty&&n(4,m=s&&r?so(s)+" x "+so(r):null)},[T,x,M,S,m,u,c,l,a,$,_,E,r,s,o,p,f,g,v,()=>n(3,S.open=!1,S),function(t){ut[t?"unshift":"push"]((()=>{S=t,n(3,S)}))}]}class oo extends Yt{constructor(t){super(),Gt(this,t,ro,no,a,{info:0,data:1})}}function ao(t){let e,i,n,s;return i=new bi({props:{name:"error"}}),{c(){e=N("div"),qt(i.$$.fragment),n=z(t[0]),V(e,"class","micrio-error")},m(t,r){I(t,e,r),Wt(i,e,null),S(e,n),s=!0},p(t,[e]){(!s||1&e)&&Y(n,t[0])},i(t){s||(Lt(i.$$.fragment,t),s=!0)},o(t){Pt(i.$$.fragment,t),s=!1},d(t){t&&L(e),Xt(i)}}}function lo(t,e,i){let{message:n}=e;return t.$$set=t=>{"message"in t&&i(0,n=t.message)},[n]}let co=class extends Yt{constructor(t){super(),Gt(this,t,lo,ao,a,{message:0})}};function uo(t){let e;return{c(){e=N("figcaption")},m(i,n){I(i,e,n),e.innerHTML=t[2]},p(t,i){4&i&&(e.innerHTML=t[2])},d(t){t&&L(e)}}}function ho(e){let i,n,s,r,o,a,l,c=e[2]&&uo(e);return{c(){i=N("figure"),n=N("micr-io"),o=D(),c&&c.c(),X(n,"data-gallery",s=e[0].map(e[10]).join(";")),X(n,"data-start",e[1]),X(n,"data-path",r=e[3]&&e[3].$info&&e[3].$info.path),X(n,"data-logo","false"),X(n,"class","micrio-micrio-gallery")},m(t,s){I(t,i,s),S(i,n),S(i,o),c&&c.m(i,null),a||(l=R(n,"gallery-show",e[6]),a=!0)},p(t,[e]){9&e&&s!==(s=t[0].map(t[10]).join(";"))&&X(n,"data-gallery",s),2&e&&X(n,"data-start",t[1]),8&e&&r!==(r=t[3]&&t[3].$info&&t[3].$info.path)&&X(n,"data-path",r),t[2]?c?c.p(t,e):(c=uo(t),c.c(),c.m(i,null)):c&&(c.d(1),c=null)},i:t,o:t,d(t){t&&L(i),c&&c.d(),a=!1,l()}}}function mo(t,e,i){let n,s,r,o,{gallery:a}=e,{startId:l}=e;const c=lt("micrio"),{_lang:d,current:u}=c;let m;h(t,d,(t=>i(9,r=t))),h(t,u,(t=>i(3,o=t)));return t.$$set=t=>{"gallery"in t&&i(0,a=t.gallery),"startId"in t&&i(1,l=t.startId)},t.$$.update=()=>{var e,o;129&t.$$.dirty&&i(8,n=a[m]),768&t.$$.dirty&&i(2,s=(null==(o=null==(e=null==n?void 0:n.i18n)?void 0:e[r])?void 0:o.description)??void 0)},[a,l,s,o,d,u,t=>{i(7,m=t.detail)},m,n,r,t=>{var e;return`${t.micrioId},${t.width},${t.height},${t.isDeepZoom?"d":""}${t.isWebP?",w":t.isPng||!(null==o?void 0:o.isV5)&&(null==(e=t.src)?void 0:e.endsWith(".png"))?",p":""}`}]}class po extends Yt{constructor(t){super(),Gt(this,t,mo,ho,a,{gallery:0,startId:1})}}function fo(t,e,i){const n=t.slice();return n[37]=e[i],n}function go(t,e,i){const n=t.slice();return n[40]=e[i],n}function vo(t){let e,i,n,s=!t[2]&&$o(t),r=t[1]&&null!=t[1].currentStep&&wo(t);return{c(){e=N("aside"),s&&s.c(),i=D(),r&&r.c(),V(e,"class","micrio-popover"),H(e,"inside",!t[14])},m(t,o){I(t,e,o),s&&s.m(e,null),S(e,i),r&&r.m(e,null),n=!0},p(t,o){t[2]?s&&(At(),Pt(s,1,1,(()=>{s=null})),It()):s?(s.p(t,o),4&o[0]&&Lt(s,1)):(s=$o(t),s.c(),Lt(s,1),s.m(e,i)),t[1]&&null!=t[1].currentStep?r?(r.p(t,o),2&o[0]&&Lt(r,1)):(r=wo(t),r.c(),Lt(r,1),r.m(e,null)):r&&(At(),Pt(r,1,1,(()=>{r=null})),It()),(!n||16384&o[0])&&H(e,"inside",!t[14])},i(t){n||(Lt(s),Lt(r),n=!0)},o(t){Pt(s),Pt(r),n=!1},d(t){t&&L(e),s&&s.d(),r&&r.d()}}}function $o(t){let e,i;return e=new Ui({props:{type:"close",title:t[17].close,className:"close-popover"}}),e.$on("click",t[21]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};131072&i[0]&&(n.title=t[17].close),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function wo(t){let e,i,n,s=t[1].currentStep>0&&yo(t),r=t[1].currentStep<t[1].steps.length-1&&bo(t);return{c(){s&&s.c(),e=D(),r&&r.c(),i=O()},m(t,o){s&&s.m(t,o),I(t,e,o),r&&r.m(t,o),I(t,i,o),n=!0},p(t,n){t[1].currentStep>0?s?(s.p(t,n),2&n[0]&&Lt(s,1)):(s=yo(t),s.c(),Lt(s,1),s.m(e.parentNode,e)):s&&(At(),Pt(s,1,1,(()=>{s=null})),It()),t[1].currentStep<t[1].steps.length-1?r?(r.p(t,n),2&n[0]&&Lt(r,1)):(r=bo(t),r.c(),Lt(r,1),r.m(i.parentNode,i)):r&&(At(),Pt(r,1,1,(()=>{r=null})),It())},i(t){n||(Lt(s),Lt(r),n=!0)},o(t){Pt(s),Pt(r),n=!1},d(t){t&&(L(e),L(i)),s&&s.d(t),r&&r.d(t)}}}function yo(t){let e,i;return e=new Ui({props:{type:"arrow-left",title:t[17].tourStepPrev,className:"prev-tour-step"}}),e.$on("click",t[26]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};131072&i[0]&&(n.title=t[17].tourStepPrev),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function bo(t){let e,i;return e=new Ui({props:{type:"arrow-right",title:t[17].tourStepNext,className:"next-tour-step"}}),e.$on("click",t[27]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};131072&i[0]&&(n.title=t[17].tourStepNext),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function ko(t){let e,i,n,s,r,o,a=t[20].length>1&&function(t){let e,i,n=Dt(t[20]),s=[];for(let o=0;o<n.length;o+=1)s[o]=Eo(go(t,n,o));const r=t=>Pt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=N("menu");for(let t=0;t<s.length;t+=1)s[t].c();V(e,"class","micrio-popover")},m(t,n){I(t,e,n);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(e,null);i=!0},p(t,i){if(1049344&i[0]){let o;for(n=Dt(t[20]),o=0;o<n.length;o+=1){const r=go(t,n,o);s[o]?(s[o].p(r,i),Lt(s[o],1)):(s[o]=Eo(r),s[o].c(),Lt(s[o],1),s[o].m(e,null))}for(At(),o=n.length;o<s.length;o+=1)r(o);It()}},i(t){if(!i){for(let t=0;t<n.length;t+=1)Lt(s[t]);i=!0}},o(t){s=s.filter(Boolean);for(let e=0;e<s.length;e+=1)Pt(s[e]);i=!1},d(t){t&&L(e),P(s,t)}}}(t);const l=[Mo,So],c=[];function d(t,e){return t[16]?0:1}i=d(t),n=c[i]=l[i](t);let u=t[5].buttons&&t[5].buttons.length&&zo(t);return{c(){a&&a.c(),e=D(),n.c(),s=D(),u&&u.c(),r=O()},m(t,n){a&&a.m(t,n),I(t,e,n),c[i].m(t,n),I(t,s,n),u&&u.m(t,n),I(t,r,n),o=!0},p(t,e){t[20].length>1&&a.p(t,e);let o=i;i=d(t),i===o?c[i].p(t,e):(At(),Pt(c[o],1,1,(()=>{c[o]=null})),It(),n=c[i],n?n.p(t,e):(n=c[i]=l[i](t),n.c()),Lt(n,1),n.m(s.parentNode,s)),t[5].buttons&&t[5].buttons.length?u?(u.p(t,e),32&e[0]&&Lt(u,1)):(u=zo(t),u.c(),Lt(u,1),u.m(r.parentNode,r)):u&&(At(),Pt(u,1,1,(()=>{u=null})),It())},i(t){o||(Lt(a),Lt(n),Lt(u),o=!0)},o(t){Pt(a),Pt(n),Pt(u),o=!1},d(t){t&&(L(e),L(s),L(r)),a&&a.d(t),c[i].d(t),u&&u.d(t)}}}function To(t){let e,i;return e=new po({props:{gallery:t[0].gallery,startId:t[0].galleryStart}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};1&i[0]&&(n.gallery=t[0].gallery),1&i[0]&&(n.startId=t[0].galleryStart),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function xo(t){let e,i,n,s,r;const o=[Fo,Ro],a=[];function l(t,e){return t[4]&&t[4].embedUrl?0:t[7].images&&t[7].images.length?1:-1}~(e=l(t))&&(i=a[e]=o[e](t));let c=t[13]&&Uo(t);return{c(){i&&i.c(),n=D(),c&&c.c(),s=O()},m(t,i){~e&&a[e].m(t,i),I(t,n,i),c&&c.m(t,i),I(t,s,i),r=!0},p(t,r){let d=e;e=l(t),e===d?~e&&a[e].p(t,r):(i&&(At(),Pt(a[d],1,1,(()=>{a[d]=null})),It()),~e?(i=a[e],i?i.p(t,r):(i=a[e]=o[e](t),i.c()),Lt(i,1),i.m(n.parentNode,n)):i=null),t[13]?c?(c.p(t,r),8192&r[0]&&Lt(c,1)):(c=Uo(t),c.c(),Lt(c,1),c.m(s.parentNode,s)):c&&(At(),Pt(c,1,1,(()=>{c=null})),It())},i(t){r||(Lt(i),Lt(c),r=!0)},o(t){Pt(i),Pt(c),r=!1},d(t){t&&(L(n),L(s)),~e&&a[e].d(t),c&&c.d(t)}}}function _o(e){let i,n=e[40].toUpperCase()+"";return{c(){i=z(n)},m(t,e){I(t,i,e)},p:t,d(t){t&&L(i)}}}function Eo(t){let e,i,n;return e=new Ui({props:{title:(null==en?void 0:en.of(t[40]))??t[40],active:t[40]==t[8],$$slots:{default:[_o]},$$scope:{ctx:t}}}),e.$on("click",(function(){return t[28](t[40])})),{c(){qt(e.$$.fragment),i=D()},m(t,s){Wt(e,t,s),I(t,i,s),n=!0},p(i,n){t=i;const s={};256&n[0]&&(s.active=t[40]==t[8]),4096&n[1]&&(s.$$scope={dirty:n,ctx:t}),e.$set(s)},i(t){n||(Lt(e.$$.fragment,t),n=!0)},o(t){Pt(e.$$.fragment,t),n=!1},d(t){t&&L(i),Xt(e,t)}}}function So(t){let e,i;return e=new xs({props:{$$slots:{default:[No]},$$scope:{ctx:t}}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};1096&i[0]|4096&i[1]&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Mo(t){let e,i,n=t[10]&&Co(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,i){t[10]?n?(n.p(t,i),1024&i[0]&&Lt(n,1)):(n=Co(t),n.c(),Lt(n,1),n.m(e.parentNode,e)):n&&(At(),Pt(n,1,1,(()=>{n=null})),It())},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}function Ao(t){let e,i,n=t[3].title+"";return{c(){e=N("h2"),i=z(n),V(e,"class","micrio-popover")},m(t,n){I(t,e,n),S(e,i)},p(t,e){8&e[0]&&n!==(n=t[3].title+"")&&Y(i,n)},d(t){t&&L(e)}}}function Io(t){let e,i;return e=new ys({props:{src:t[3].embed,controls:!0}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};8&i[0]&&(n.src=t[3].embed),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Lo(t){let e,i;return{c(){e=N("img"),c(e.src,i=t[6])||V(e,"src",i),V(e,"alt","")},m(t,i){I(t,e,i)},p(t,n){64&n[0]&&!c(e.src,i=t[6])&&V(e,"src",i)},d(t){t&&L(e)}}}function Po(t){let e,i,n=t[3].content+"";return{c(){e=new K(!1),i=O(),e.a=i},m(t,s){e.m(n,t,s),I(t,i,s)},p(t,i){8&i[0]&&n!==(n=t[3].content+"")&&e.p(n)},d(t){t&&(L(i),e.d())}}}function No(t){let e,i,n,s,r,o=t[3].title&&Ao(t),a=t[3].embed&&t[10]&&Io(t),l=t[6]&&Lo(t),c=t[3].content&&Po(t);return{c(){o&&o.c(),e=D(),a&&a.c(),i=D(),l&&l.c(),n=D(),c&&c.c(),s=O()},m(t,d){o&&o.m(t,d),I(t,e,d),a&&a.m(t,d),I(t,i,d),l&&l.m(t,d),I(t,n,d),c&&c.m(t,d),I(t,s,d),r=!0},p(t,r){t[3].title?o?o.p(t,r):(o=Ao(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),t[3].embed&&t[10]?a?(a.p(t,r),1032&r[0]&&Lt(a,1)):(a=Io(t),a.c(),Lt(a,1),a.m(i.parentNode,i)):a&&(At(),Pt(a,1,1,(()=>{a=null})),It()),t[6]?l?l.p(t,r):(l=Lo(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null),t[3].content?c?c.p(t,r):(c=Po(t),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(t){r||(Lt(a),r=!0)},o(t){Pt(a),r=!1},d(t){t&&(L(e),L(i),L(n),L(s)),o&&o.d(t),a&&a.d(t),l&&l.d(t),c&&c.d(t)}}}function Co(t){let e,i;return e=new ys({props:{src:t[3].embed,figcaption:t[3].content,controls:!0,autoplay:!0,destroying:t[24]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};8&i[0]&&(n.src=t[3].embed),8&i[0]&&(n.figcaption=t[3].content),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function zo(t){let e,i,n=Dt(t[5].buttons),s=[];for(let o=0;o<n.length;o+=1)s[o]=Oo(fo(t,n,o));const r=t=>Pt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=N("menu");for(let t=0;t<s.length;t+=1)s[t].c();V(e,"class","right micrio-popover")},m(t,n){I(t,e,n);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(e,null);i=!0},p(t,i){if(8388896&i[0]){let o;for(n=Dt(t[5].buttons),o=0;o<n.length;o+=1){const r=fo(t,n,o);s[o]?(s[o].p(r,i),Lt(s[o],1)):(s[o]=Oo(r),s[o].c(),Lt(s[o],1),s[o].m(e,null))}for(At(),o=n.length;o<s.length;o+=1)r(o);It()}},i(t){if(!i){for(let t=0;t<n.length;t+=1)Lt(s[t]);i=!0}},o(t){s=s.filter(Boolean);for(let e=0;e<s.length;e+=1)Pt(s[e]);i=!1},d(t){t&&L(e),P(s,t)}}}function Do(t){let e,i=t[37].i18nTitle[t[8]]+"";return{c(){e=z(i)},m(t,i){I(t,e,i)},p(t,n){288&n[0]&&i!==(i=t[37].i18nTitle[t[8]]+"")&&Y(e,i)},d(t){t&&L(e)}}}function Oo(t){let e,i,n;return e=new Ui({props:{href:"link"==t[37].type?t[37].action:void 0,blankTarget:t[37].blankTarget,$$slots:{default:[Do]},$$scope:{ctx:t}}}),e.$on("click",(function(){return t[29](t[37])})),{c(){qt(e.$$.fragment),i=D()},m(t,s){Wt(e,t,s),I(t,i,s),n=!0},p(i,n){t=i;const s={};32&n[0]&&(s.href="link"==t[37].type?t[37].action:void 0),32&n[0]&&(s.blankTarget=t[37].blankTarget),288&n[0]|4096&n[1]&&(s.$$scope={dirty:n,ctx:t}),e.$set(s)},i(t){n||(Lt(e.$$.fragment,t),n=!0)},o(t){Pt(e.$$.fragment,t),n=!1},d(t){t&&L(i),Xt(e,t)}}}function Ro(t){let e,i;return e=new po({props:{gallery:t[7].images}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};128&i[0]&&(n.gallery=t[7].images),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Fo(t){let e,i;return e=new ys({props:{src:t[4]?t[4].embedUrl:void 0,uuid:t[7].id,figcaption:t[4]?t[4].embedDescription:void 0,controls:!0,autoplay:t[7].embedAutoPlay,destroying:t[24]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};16&i[0]&&(n.src=t[4]?t[4].embedUrl:void 0),128&i[0]&&(n.uuid=t[7].id),16&i[0]&&(n.figcaption=t[4]?t[4].embedDescription:void 0),128&i[0]&&(n.autoplay=t[7].embedAutoPlay),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Uo(t){let e,i;return e=new Bs({props:{marker:t[7],destroying:t[24],noEmbed:!0,noGallery:!0,noImages:!t[4]||!t[4].embedUrl}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};128&i[0]&&(n.marker=t[7]),16&i[0]&&(n.noImages=!t[4]||!t[4].embedUrl),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Vo(t){let e,i,n,s,o,a,l,c=t[12]&&vo(t);const d=[xo,To,ko],u=[];function h(t,e){return t[7]?0:t[0].gallery?1:t[5]&&t[3]?2:-1}return~(n=h(t))&&(s=u[n]=d[n](t)),{c(){e=N("dialog"),c&&c.c(),i=D(),s&&s.c(),V(e,"class","micrio-popover"),H(e,"page",!!t[5]),H(e,"article",!!t[5]&&!t[16]),H(e,"has-media",t[15])},m(s,r){I(s,e,r),c&&c.m(e,null),S(e,i),~n&&u[n].m(e,null),t[30](e),o=!0,a||(l=[R(e,"close",t[22]),R(e,"outrostart",t[31])],a=!0)},p(t,r){t[12]?c?(c.p(t,r),4096&r[0]&&Lt(c,1)):(c=vo(t),c.c(),Lt(c,1),c.m(e,i)):c&&(At(),Pt(c,1,1,(()=>{c=null})),It());let a=n;n=h(t),n===a?~n&&u[n].p(t,r):(s&&(At(),Pt(u[a],1,1,(()=>{u[a]=null})),It()),~n?(s=u[n],s?s.p(t,r):(s=u[n]=d[n](t),s.c()),Lt(s,1),s.m(e,null)):s=null),(!o||32&r[0])&&H(e,"page",!!t[5]),(!o||65568&r[0])&&H(e,"article",!!t[5]&&!t[16]),(!o||32768&r[0])&&H(e,"has-media",t[15])},i(t){o||(Lt(c),Lt(s),o=!0)},o(t){Pt(c),Pt(s),o=!1},d(i){i&&L(e),c&&c.d(),~n&&u[n].d(),t[30](null),a=!1,r(l)}}}function Bo(t,e,i){let n,s,r,o,a,l,c,d,u,m,p,f,g,v,$,w;h(t,Oe,(t=>i(17,w=t)));let{popover:y}=e;const b=lt("micrio"),{events:k,state:T,current:x,_lang:_}=b;h(t,x,(t=>i(33,$=t))),h(t,_,(t=>i(8,v=t)));const E=null==$?void 0:$.$data,S=Object.keys((null==E?void 0:E.revision)??[]);function M(){L.close()}function A(t){M(),"close"!=t.type&&setTimeout((()=>{var e,i;switch(t.type){case"marker":null==$||$.state.marker.set(t.action);break;case"mtour":b.state.tour.set(null==(e=null==E?void 0:E.markerTours)?void 0:e.find((e=>e.id==t.action)));break;case"vtour":b.state.tour.set(null==(i=null==E?void 0:E.tours)?void 0:i.find((e=>e.id==t.action)))}}),200)}const I=Ht(!1);let L,P=!0,N=v;rt((()=>(L.showModal(),vt().then((()=>{const t=L.querySelector("button.active")??L.querySelector("button");null==t||t.focus()})),_.subscribe((t=>{t&&t!=N&&(i(10,P=!1),N=t,setTimeout((()=>i(10,P=!0)),200))})))));return t.$$set=t=>{"popover"in t&&i(0,y=t.popover)},t.$$.update=()=>{var e,h,$,w;1&t.$$.dirty[0]&&i(7,n=y.marker),384&t.$$.dirty[0]&&i(4,s=n?n.i18n?n.i18n[v]:n:void 0),1&t.$$.dirty[0]&&i(1,r=y.markerTour),1&t.$$.dirty[0]&&i(5,o=y.contentPage),288&t.$$.dirty[0]&&i(3,a=o?(null==(e=o.i18n)?void 0:e[v])??o:void 0),40&t.$$.dirty[0]&&i(16,l=o&&a&&!(null==(h=null==o?void 0:o.buttons)?void 0:h.length)?!(!a.embed||a.content&&!(a.content.length<250)||o.image):void 0),32&t.$$.dirty[0]&&i(6,c=(null==o?void 0:o.image)?"string"==typeof o.image?o.image:o.image.src:void 0),72&t.$$.dirty[0]&&i(15,d=!!(null==a?void 0:a.embed)||!!c),32&t.$$.dirty[0]&&i(2,u=!!(null==($=null==o?void 0:o.buttons)?void 0:$.find((t=>"close"==t.type)))),1&t.$$.dirty[0]&&i(25,m=!!(null==(w=y.marker)?void 0:w.images)&&y.marker.images.length>0),33554448&t.$$.dirty[0]&&i(14,p=s&&s.body||m),33554456&t.$$.dirty[0]&&i(13,f=s&&s.body||m&&(null==a?void 0:a.embed)),6&t.$$.dirty[0]&&i(12,g=!u||r&&null!=r.currentStep)},[y,r,u,a,s,o,c,n,v,b,P,L,g,f,p,d,l,w,x,_,S,M,function(){var t;y.contentPage?k.dispatch("page-closed"):r?T.tour.set(void 0):y.marker&&(null==(t=y.image)||t.state.marker.set(void 0)),T.popover.set(void 0)},A,I,m,()=>r&&r.prev&&r.prev(),()=>r&&r.next&&r.next(),t=>i(9,b.lang=t,b),t=>A(t),function(t){ut[t?"unshift":"push"]((()=>{L=t,i(11,L)}))},()=>I.set(!0)]}class qo extends Yt{constructor(t){super(),Gt(this,t,Bo,Vo,a,{popover:0},null,[-1,-1])}}function Wo(t,e,i){let n,{marker:s}=e,{ctx:r}=e,{is360:o}=e;const a=r.createGain();a.connect(Vr);const l=lt("micrio"),c=l.$current.$info,d=c.width,u=c.height,h=r.createPanner();function m(){if(a.gain.value=n.volume??1,o){h.refDistance=2.75*n.radius,h.maxDistance=n.radius*(11/3);const t=s.x*-Math.PI*2,e=(s.y-.5)*-Math.PI,i=h.positionX.value=Math.cos(e)*Math.sin(t)*11,r=h.positionY.value=11*Math.sin(e),o=h.positionZ.value=Math.cos(e)*Math.cos(t)*11;let a=i*i+r*r+o*o;a>0&&(a=1/Math.sqrt(a)),h.orientationX.value=i*a,h.orientationY.value=r*a,h.orientationZ.value=o*a}else h.distanceModel="linear",h.positionX.value=2*(s.x-.5),h.positionY.value=2*(.5-s.y)*(u/d),h.positionZ.value=-.2,h.rolloffFactor=2,h.refDistance=n.radius*n.radius*10,h.maxDistance=5*n.radius}let p,f;function g(){p&&p.disconnect(),p=r.createBufferSource(),n.loop&&(n.repeatAfter>0?p.onended=()=>{f=setTimeout(g,1e3*n.repeatAfter)}:p.loop=!0),a.gain.value=n.volume??1,p.buffer=Br[n.src],p.connect(h),p.start()}h.panningModel="equalpower",h.rolloffFactor=1,h.coneOuterGain=0;let v=JSON.stringify(n);return rt((()=>(m(),h.connect(a),async function(){n.src&&(Br[n.src]||(Br[n.src]=await fetch(n.src).then((t=>t.arrayBuffer())).then((t=>r.decodeAudioData(t)))),n.alwaysPlay&&n.repeatAfter>0?f=setTimeout(g,1e3*n.repeatAfter):g())}(),l.addEventListener("audio-update",m),()=>{l.removeEventListener("audio-update",m),p&&p.disconnect(),clearTimeout(f),h.disconnect(),a.disconnect()}))),t.$$set=t=>{"marker"in t&&i(0,s=t.marker),"ctx"in t&&i(1,r=t.ctx),"is360"in t&&i(2,o=t.is360)},t.$$.update=()=>{if(1&t.$$.dirty&&i(4,n=s.positionalAudio),24&t.$$.dirty){const t=JSON.stringify(n);v!=t&&i(3,v=t)&&m()}},[s,r,o,v,n]}class Xo extends Yt{constructor(t){super(),Gt(this,t,Wo,null,a,{marker:0,ctx:1,is360:2})}}function Go(t){let e,i,n,s,r,o,a=!t[0].htmlElement&&Yo(t);return{c(){e=N("div"),a&&a.c(),V(e,"id",i=`m-${t[0].id}`),V(e,"class",$(t[30])+" micrio-marker"),V(e,"style",n=t[11]?`--mat:matrix3d(${t[11]})`:t[12]?`--x:${t[12]}px;--y:${t[13]}px${t[32]?`;--scale:${t[14]}`:""}`:null),H(e,"overlapped",t[2]&&!t[3]),H(e,"cluster",t[31]),H(e,"behind",t[10]),H(e,"hovered",t[21]==t[0].id),H(e,"default",t[19]),H(e,"mat3d",!!t[11]),H(e,"opened",t[3]),H(e,"micrio-link",!!t[29].micrioLink),H(e,"has-icon",t[5]),H(e,"has-custom-icon",!!t[6])},m(i,n){I(i,e,n),a&&a.m(e,null),t[50](e),s=!0,r||(o=R(e,"change",t[40]),r=!0)},p(t,r){t[0].htmlElement?a&&(At(),Pt(a,1,1,(()=>{a=null})),It()):a?(a.p(t,r),1&r[0]&&Lt(a,1)):(a=Yo(t),a.c(),Lt(a,1),a.m(e,null)),(!s||1&r[0]&&i!==(i=`m-${t[0].id}`))&&V(e,"id",i),(!s||30720&r[0]&&n!==(n=t[11]?`--mat:matrix3d(${t[11]})`:t[12]?`--x:${t[12]}px;--y:${t[13]}px${t[32]?`;--scale:${t[14]}`:""}`:null))&&V(e,"style",n),(!s||12&r[0])&&H(e,"overlapped",t[2]&&!t[3]),(!s||1024&r[0])&&H(e,"behind",t[10]),(!s||2097153&r[0])&&H(e,"hovered",t[21]==t[0].id),(!s||524288&r[0])&&H(e,"default",t[19]),(!s||2048&r[0])&&H(e,"mat3d",!!t[11]),(!s||8&r[0])&&H(e,"opened",t[3]),(!s||32&r[0])&&H(e,"has-icon",t[5]),(!s||64&r[0])&&H(e,"has-custom-icon",!!t[6])},i(t){s||(Lt(a),s=!0)},o(t){Pt(a),s=!1},d(i){i&&L(e),a&&a.d(),t[50](null),r=!1,o()}}}function Yo(t){let e,i,n,s,o,a,l,c,d;const u=[Ho,jo],h=[];function m(t,e){return t[6]?0:t[7]?1:-1}~(i=m(t))&&(n=h[i]=u[i](t));let p=t[18]&&Zo(t);return{c(){e=N("button"),n&&n.c(),s=D(),p&&p.c(),V(e,"title",o=t[34]||t[31]?null:t[4]?t[4].label||t[4].title:null),V(e,"id",a=t[0].id),V(e,"data-scroll-through",""),V(e,"class","micrio-marker")},m(n,r){I(n,e,r),~i&&h[i].m(e,null),S(e,s),p&&p.m(e,null),t[49](e),l=!0,c||(d=[R(e,"click",t[35]),R(e,"focus",t[36]),R(e,"blur",t[37]),R(e,"mouseenter",t[38]),R(e,"mouseleave",t[39])],c=!0)},p(t,r){let c=i;i=m(t),i===c?~i&&h[i].p(t,r):(n&&(At(),Pt(h[c],1,1,(()=>{h[c]=null})),It()),~i?(n=h[i],n?n.p(t,r):(n=h[i]=u[i](t),n.c()),Lt(n,1),n.m(e,s)):n=null),t[18]?p?p.p(t,r):(p=Zo(t),p.c(),p.m(e,null)):p&&(p.d(1),p=null),(!l||16&r[0]&&o!==(o=t[34]||t[31]?null:t[4]?t[4].label||t[4].title:null))&&V(e,"title",o),(!l||1&r[0]&&a!==(a=t[0].id))&&V(e,"id",a)},i(t){l||(Lt(n),l=!0)},o(t){Pt(n),l=!1},d(n){n&&L(e),~i&&h[i].d(),p&&p.d(),t[49](null),c=!1,r(d)}}}function jo(t){let e,i;return e=new bi({props:{name:t[7]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};128&i[0]&&(n.name=t[7]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Ho(e){let i,n;return{c(){i=N("img"),c(i.src,n=e[6].src)||V(i,"src",n),V(i,"alt",""),V(i,"class","micrio-marker")},m(t,e){I(t,i,e)},p(t,e){64&e[0]&&!c(i.src,n=t[6].src)&&V(i,"src",n)},i:t,o:t,d(t){t&&L(i)}}}function Zo(t){let e,i,n,s=(t[4].label||t[4].title)+"";return{c(){e=N("label"),i=z(s),V(e,"for",n=t[0].id),V(e,"data-scroll-through",""),V(e,"class","micrio-marker"),H(e,"static",t[33])},m(n,s){I(n,e,s),S(e,i),t[48](e)},p(t,r){16&r[0]&&s!==(s=(t[4].label||t[4].title)+"")&&Y(i,s),1&r[0]&&n!==(n=t[0].id)&&V(e,"for",n)},d(i){i&&L(e),t[48](null)}}}function Ko(t){let e,i;return e=new Xo({props:{marker:t[0],ctx:t[22],is360:t[1].is360}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};1&i[0]&&(n.marker=t[0]),4194304&i[0]&&(n.ctx=t[22]),2&i[0]&&(n.is360=t[1].is360),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Jo(t){let e,i,n,s=!t[20]&&t[1]&&!t[8]&&Go(t),r=t[0].positionalAudio&&t[22]&&(!t[0].positionalAudio.noMobile||t[9])&&(t[0].positionalAudio.alwaysPlay||t[3])&&Ko(t);return{c(){s&&s.c(),e=D(),r&&r.c(),i=O()},m(t,o){s&&s.m(t,o),I(t,e,o),r&&r.m(t,o),I(t,i,o),n=!0},p(t,n){t[20]||!t[1]||t[8]?s&&(At(),Pt(s,1,1,(()=>{s=null})),It()):s?(s.p(t,n),1048834&n[0]&&Lt(s,1)):(s=Go(t),s.c(),Lt(s,1),s.m(e.parentNode,e)),t[0].positionalAudio&&t[22]&&(!t[0].positionalAudio.noMobile||t[9])&&(t[0].positionalAudio.alwaysPlay||t[3])?r?(r.p(t,n),4194825&n[0]&&Lt(r,1)):(r=Ko(t),r.c(),Lt(r,1),r.m(i.parentNode,i)):r&&(At(),Pt(r,1,1,(()=>{r=null})),It())},i(t){n||(Lt(s),Lt(r),n=!0)},o(t){Pt(s),Pt(r),n=!1},d(t){t&&(L(e),L(i)),s&&s.d(t),r&&r.d(t)}}}function Qo(t,e,i){var n,s,r,o,a,l,c,d,m,p,f;let g,v,$,w,y,b,k,T,x,_,E,S,M,A,I,L,P,N,C,z;h(t,qr,(t=>i(22,z=t)));const D=lt("micrio"),{current:O,events:R,state:F,_lang:U,spaceData:V}=D;h(t,O,(t=>i(67,N=t))),h(t,U,(t=>i(47,L=t)));const B=D.canvas.isMobile;h(t,B,(t=>i(9,M=t)));let{marker:q}=e,{image:W=N}=e,{forceHidden:X=!1}=e,{coords:G}=e,{overlapped:Y=!1}=e;q.tags||(q.tags=[]);const j=F.markerHoverId;h(t,j,(t=>i(21,C=t)));const H=lt("inView"),Z=lt("markerImages"),K=Z.has(q);!K&&W&&Z.set(q,W);const J=D.state.popup;h(t,J,(t=>i(66,P=t)));const Q=!(!W.isOmni||!(null==(n=W.$settings.omni)?void 0:n.sideLabels)||(null==(s=W.$settings._markers)?void 0:s.noTitles)),tt=F.tour;h(t,tt,(t=>i(46,I=t)));const et=t=>t.steps.findIndex((t=>t.startsWith(q.id)))>=0,it=q.data??{},nt=it._meta||{},st=W.$settings.omni;q.imageLayer&&q.imageLayer>((null==(r=null==st?void 0:st.layers)?void 0:r.length)??1)-1&&delete q.imageLayer,(null==(a=null==(o=null==N?void 0:N.$data)?void 0:o.markers)?void 0:a.find((t=>{var e,i;return(null==(i=null==(e=t.data)?void 0:e._micrioSplitLink)?void 0:i.markerId)==q.id&&"none"!=t.popupType})))&&(q.popupType="none",q.noMarker=!0),"embedUrl"in q&&q.embedUrl&&"embedInPopover"in q&&q.embedInPopover&&(q.popupType="popover");const ot=W.$settings._markers??{},at=!!W.$settings.doTourJumps,ct=q.tags.join(" "),dt="cluster"==q.type,ht=!!ot.noTitles||!!(null==st?void 0:st.sideLabels);!ht&&ot.showTitles;const mt=!!it.scales||!!W.$settings.markersScale,pt=mt&&!!ot.titlesNoScale,ft=it._micrioSplitLink,gt=!!ot.keepPopupsDuringTourTransitions,$t=/[?&]micrioNoTooltips/.test(location.search)||!!(null==st?void 0:st.sideLabels),wt=nt.gridAction,yt=(null==(c=null==(l=W.$settings)?void 0:l._markers)?void 0:c.autoStartTour)?D.wasm.images.map((t=>{var e,i;return"camera"in t?null==(i=null==(e=t.$data)?void 0:e.markerTours)?void 0:i.find(et):void 0})).filter((t=>!!t))[0]??(null==(d=null==V?void 0:V.markerTours)?void 0:d.find(et)):void 0,bt=null==yt?void 0:yt.steps.findIndex((t=>t.startsWith(q.id))),kt=!!(null==(p=null==(m=W.$settings)?void 0:m._markers)?void 0:p.autoStartTourAtBeginning);let Tt,xt,_t,Et,St,Mt,At,It=!K&&(!!it.alwaysOpen||F.$marker==q)||(null==(f=F.$tour)?void 0:f.id)==(null==yt?void 0:yt.id)&&(null==yt?void 0:yt.currentStep)==(bt??0),Lt=K&&W.state.$marker==q,Pt=!1,Nt=!1;function Ct(){clearTimeout(At)}const zt=()=>j.set(void 0);let Dt;async function Ot(){var t,e,n,s;if(dt)return;if(W.state.$marker!=q)return W.state.marker.set(q);if(ot.noMarkerActions)return;if(yt&&yt!=I){yt.initialStep=kt?0:bt;const i=null==(t=yt.stepInfo)?void 0:t[0];if(kt&&i&&i.micrioId!=W.id){const t=null==(e=D.canvases[0])?void 0:e.grid;(null==t?void 0:t.images.find((t=>t.id==i.micrioId)))?D.current.set(t.image):D.open(i.micrioId)}if(tt.set(yt),setTimeout((()=>nt.gridAction=wt),100),kt&&null!=bt&&bt>0)return W.state.marker.set(void 0),void Rt();await vt()}It=!1,R.dispatch("marker-opened",q);const r=I&&"steps"in I&&I.isSerialTour&&I.printChapters&&I.steps.findIndex((t=>t.startsWith(q.id)))>=0&&q.videoTour;var o;r||(w?"popover"==q.popupType?(await vt(),D.state.popover.set({marker:q,image:W,markerTour:I&&"steps"in I?I:void 0})):q.videoTour&&!I&&(tt.set(q.videoTour),(o=tt,new Promise((t=>{let e;e=o.subscribe((i=>{null==i&&(e?e():vt().then((()=>e())),t(i))}))}))).then((()=>W.state.marker.set(void 0)))):vt().then((()=>J.set(q))));const a=null==(n=it.micrioLink)?void 0:n.id;if(a&&vt().then((()=>{W.camera.stop();const t=ke(D,a);t&&(i(1,W.openedView=void 0,W),W.state.marker.set(void 0)),D.open(a,{vector:null==t?void 0:t.vector})})),ft&&!Nt&&!W.opts.secondaryTo){const t=null==(s=D.canvases[0])?void 0:s.grid;(null==t?void 0:t.lastPromise)&&await t.lastPromise,Dt=setTimeout((()=>{ft&&(Mt=D.open(ft.micrioId,{splitScreen:!0,splitTo:W,isPassive:!(!ft.follows||D.state.$tour),startView:ft.view}),Nt=!0)}),200)}}function Rt(){if(clearTimeout(Dt),R.dispatch("marker-closed",q),q.videoTour&&W.openedView?setTimeout((()=>W.camera.aniDoneAdd.push((()=>null==Vt?void 0:Vt.focus()))),10):null==Vt||Vt.focus(),D.state.popover.set(void 0),!w){P!=q||I&&"steps"in I&>||J.set(void 0);const t=D.canvases.find((t=>t!=W&&t.state.$marker));t&&vt().then((()=>{const e=t.state.$marker;e&&"popup"==e.popupType&&J.set(e)}))}ft&&Mt&&setTimeout((()=>{var t,e;const i=u(D.state.marker);Mt&&ft.micrioId!=(null==(e=null==(t=null==i?void 0:i.data)?void 0:t._micrioSplitLink)?void 0:e.micrioId)&&D.close(Mt)}),210)}let Ft,Ut,Vt,Bt,qt,Wt=!1;function Xt(){var t,e;if(W.is360&&mt)i(11,Tt=W.camera.getMatrix(q.x,q.y,1,1,0,0,0).join(","));else{let n=xt,s=_t;if(i(12,[xt,_t,Et,St]=W.camera.getXYDirect(q.x,q.y,{radius:q.radius,rotation:q.rotation}),xt,i(13,_t),i(14,Et)),W.is360)i(10,Pt=St>0);else if(W.isOmni&&st){if(b[0]&&b[1]&&null!=q.rotation){const n=st.frames/((null==(t=st.layers)?void 0:t.length)??1);let s=((null==(e=W.swiper)?void 0:e.currentIndex)??0)-(y??0);s>n/2&&(s-=n),s<-n/2&&(s+=n),i(10,Pt=s<=b[0]||s>=b[1])}else st.distance&&i(10,Pt=St<0);st.sideLabels&&!ot.noTitles&&(null==g?void 0:g.title)&&H&&(n!=xt||s!=_t)&&function(t,e){const i=D.canvas.element.offsetWidth,n=D.canvas.element.offsetHeight,s=!(t<0||t>i||e<0||e>n||Pt);(s||Wt)&&H.update((n=>(s?Wt?n[n.findIndex((([t])=>t==q))]=[q,t/i,e]:n.push([q,t/i,e]):Wt&&n.splice(n.findIndex((([t])=>t==q)),1),Wt=s,n)))}(xt,_t)}W.$settings.clusterMarkers&&G&&G.set(q.id,[xt,_t,Y?Ft:Ft=null==qt?void 0:qt.offsetWidth,Y?Ut:Ut=null==qt?void 0:qt.offsetHeight])}}const Gt=lt("mediaPaused");return h(t,Gt,(t=>i(45,A=t))),rt((()=>{var t,e;if(q.videoTour){const n="timeline"in q.videoTour?q.videoTour.timeline:null==(e=null==(t=q.videoTour.i18n)?void 0:t[L])?void 0:e.timeline;(null==n?void 0:n.length)&&i(0,q.view=n[0].rect,q)}const n=[W.state.marker.subscribe((t=>{"string"==typeof t&&t==q.id?W.state.marker.set(q):t==q?async function(){var t,e;if(Lt)return;if(i(3,Lt=!0),Ct(),ot.noMarkerActions)return;R.dispatch("marker-open",q),!I||"steps"in I&&(et(I)||I.cannotClose)||(tt.set(void 0),await vt()),w||I&&"steps"in I&>||(J.set(void 0),D.state.popover.set(void 0)),zt(),(null==ft?void 0:ft.markerId)&&(Mt||(Mt=D.canvases.find((t=>t.id==ft.micrioId))),Mt&&(Nt=u(Mt.visible),Nt&&(null==ft?void 0:ft.view)&&Mt.camera.flyToView(ft.view,{isJump:!0}).catch((()=>{})))),void 0!==q.imageLayer&&W.state.layer.set(q.imageLayer);const n=yt&&kt&&yt!=I&&null!=bt&&bt>0;n&&delete nt.gridAction,n||!q.view||it.noAnimate||q.videoTour||nt.gridView?Ot():It?(W.camera.setView(q.view,{area:null==(t=W.opts)?void 0:t.area}),Ot()):W.camera.flyToView(q.view,{omniIndex:y,noTrueNorth:!0,area:null==(e=W.opts)?void 0:e.area,isJump:!!it.doJump||at&&!!F.$tour}).then(Ot).catch((()=>{I||W.state.marker.set(void 0)}))}():it.alwaysOpen||(Lt&&Rt(),i(3,Lt=!1))}))];return $||(n.push(W.camera.image.state.view.subscribe(Xt)),Xt()),X||vt().then((()=>{Lt&&!q.noMarker&&P&&P!=q&&!I?W.state.marker.set(void 0):(It||it.alwaysOpen)&&Ot()})),q.htmlElement&&Bt&&Bt.appendChild(q.htmlElement),()=>{var t;for(clearTimeout(Dt);n.length;)null==(t=n.shift())||t()}})),t.$$set=t=>{"marker"in t&&i(0,q=t.marker),"image"in t&&i(1,W=t.image),"forceHidden"in t&&i(42,X=t.forceHidden),"coords"in t&&i(43,G=t.coords),"overlapped"in t&&i(2,Y=t.overlapped)},t.$$.update=()=>{var e,n,s,r,o;1&t.$$.dirty[0]|65536&t.$$.dirty[1]&&i(4,g=q.i18n?q.i18n[L]:q),17&t.$$.dirty[0]&&i(44,v=!((null==g?void 0:g.title)||(null==g?void 0:g.body)||(null==g?void 0:g.bodySecondary)||(null==g?void 0:g.embedUrl)||q.images&&q.images.length)),1&t.$$.dirty[0]|2048&t.$$.dirty[1]&&i(20,$=X||q.noMarker),1&t.$$.dirty[0]|8192&t.$$.dirty[1]&&(w="popup"!=q.popupType||v),3&t.$$.dirty[0]&&(y=W.camera.getOmniFrame((q.rotation??0)+(q.backside?Math.PI:0))),3&t.$$.dirty[0]&&(b=q.visibleArc?[W.camera.getOmniFrame(q.visibleArc[0]),W.camera.getOmniFrame(q.visibleArc[1])]:[]),8&t.$$.dirty[0]|49152&t.$$.dirty[1]&&i(8,k=I&&(!("steps"in I)&&!I.keepMarkers||ot.hideMarkersDuringTour&&!A)&&!Lt),257&t.$$.dirty[0]&&k&&H.update((t=>{const e=t.findIndex((t=>t[0]==q));return e>=0&&t.splice(e,1),t})),1&t.$$.dirty[0]&&i(7,T="default"==q.type?void 0:"link"==q.type?"link":"media"==q.type?"play":"cluster"==q.type?void 0:q.type??void 0),3&t.$$.dirty[0]&&i(6,x=(null!=(null==(e=q.data)?void 0:e.customIconIdx)?null==(r=null==(n=W.$settings._markers)?void 0:n.customIcons)?void 0:r[null==(s=q.data)?void 0:s.customIconIdx]:void 0)??(null==(o=q.data)?void 0:o.icon)??ot.markerIcon??void 0),192&t.$$.dirty[0]&&i(5,_=!!T||!!x),33&t.$$.dirty[0]&&i(19,E=!("class"in q&&""===q.class||!_&&"default"!=q.type)),528&t.$$.dirty[0]&&i(18,S=g&&(!ht||M&&Q)&&(g.label||g.title))},[q,W,Y,Lt,g,_,x,T,k,M,Pt,Tt,xt,_t,Et,Vt,Bt,qt,S,E,$,C,z,O,U,B,j,J,tt,it,ct,dt,mt,pt,$t,function(){var t;if(Ct(),q.onclick)return q.onclick(q);if(!ot.noMarkerActions)if("cluster"==q.type){if(q.view&&(null==N?void 0:N.$info)){const e=N.camera.getScale(),i=[20/N.$info.width*e,20/N.$info.height*e];W.camera.flyToView([q.view[0]-i[0],q.view[1]-i[1],q.view[2]+i[0],q.view[3]+i[1]],{area:null==(t=W.opts)?void 0:t.area,limitZoom:!0})}}else W.state.marker.set(q)},function(){ot.noMarkerActions||(Bt.parentNode.scrollTo(0,0),Ct(),At=setTimeout((()=>{const t=W.camera.getXY(q.x,q.y);!Lt&&(t[0]<0||t[0]>=D.offsetWidth||t[1]<0||t[1]>=D.offsetHeight||W.is360&&t[3]>4)&&W.camera.flyToCoo([q.x,q.y],{speed:2,limit:!0}).catch((()=>{}))}),150))},Ct,()=>j.set(q.id),zt,function(t){const e=t.detail;i(0,q.x=e.x,q),i(0,q.y=e.y,q),Xt()},Gt,X,G,v,A,I,L,function(t){ut[t?"unshift":"push"]((()=>{qt=t,i(17,qt)}))},function(t){ut[t?"unshift":"push"]((()=>{Vt=t,i(15,Vt)}))},function(t){ut[t?"unshift":"push"]((()=>{Bt=t,i(16,Bt)}))}]}class ta extends Yt{constructor(t){super(),Gt(this,t,Qo,Jo,a,{marker:0,image:1,forceHidden:42,coords:43,overlapped:2},null,[-1,-1,-1])}}function ea(t){let e,i,n,s,r;return i=new Ui({props:{type:t[5]?void 0:"arrow-up",icon:t[5],title:t[6]??t[7].waypointFollow}}),i.$on("click",t[11]),i.$on("focus",t[10]),{c(){e=N("div"),qt(i.$$.fragment),j(e,"--matrix","matrix3d("+t[2]+")"),V(e,"id",n=`w-${t[0]}`),V(e,"class","micrio-waypoint"),H(e,"clicked",t[3]),H(e,"active",t[3]),H(e,"direction-up",t[9][1]<0),H(e,"direction-down",t[9][1]>0)},m(n,s){I(n,e,s),Wt(i,e,null),t[15](e),r=!0},p(t,s){const o={};32&s[0]&&(o.type=t[5]?void 0:"arrow-up"),32&s[0]&&(o.icon=t[5]),192&s[0]&&(o.title=t[6]??t[7].waypointFollow),i.$set(o),(!r||4&s[0])&&j(e,"--matrix","matrix3d("+t[2]+")"),(!r||1&s[0]&&n!==(n=`w-${t[0]}`))&&V(e,"id",n),(!r||8&s[0])&&H(e,"clicked",t[3]),(!r||8&s[0])&&H(e,"active",t[3])},i(t){r||(Lt(i.$$.fragment,t),t&&$t((()=>{r&&(s||(s=zt(e,_e,{},!0)),s.run(1))})),r=!0)},o(t){Pt(i.$$.fragment,t),t&&(s||(s=zt(e,_e,{},!1)),s.run(0)),r=!1},d(n){n&&L(e),Xt(i),t[15](null),n&&s&&s.end()}}}function ia(t){let e,i,n=!t[4]&&ea(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,i){t[4]?n&&(At(),Pt(n,1,1,(()=>{n=null})),It()):n?(n.p(t,i),16&i[0]&&Lt(n,1)):(n=ea(t),n.c(),Lt(n,1),n.m(e.parentNode,e))},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}function na(t,e,i){var n;let s,r,o,a;h(t,Oe,(t=>i(7,a=t)));let{targetId:l}=e,{settings:c={i18n:{}}}=e,{image:d}=e;const u=lt("micrio"),m=u._lang;h(t,m,(t=>i(14,o=t)));const p=d.$info,f=u.spaceData,g=d.$settings,v=null==(n=he(l))?void 0:n[2],{directionX:$,v:w,vN:y,vector:b}=ke(u,l);let k;const T=Math.abs(y[1])<.3,x=T?.65:.5+y[1]/10,_={x:$,y:x,baseScale:p.width/1024,scale:1,rotX:(1+(T?-(1-x):y[1]))*Math.PI/2,rotY:0,rotZ:0},E=(null==c?void 0:c.coords)??(S=_,JSON.parse(JSON.stringify(S)));var S;let M,A,I=E.custom,L=I?E:_;let P=c.customIconIdx;const N=()=>{D.deleted?i(4,z=!0):(P!=D.settings.customIconIdx&&(i(12,c.customIconIdx=D.settings.customIconIdx,c),P=c.customIconIdx),E.custom!=I&&(I=E.custom,L=I?E:_),i(2,A=d.camera.getMatrix(L.x,L.y,L.baseScale*L.scale,1,L.rotX,L.rotY,L.rotZ).join(",")))};let C=!1;let z=!1;const D={coords:E,settings:c};return N(),rt((()=>(D.el=k,i(1,k._iface=D,k),u.dispatchEvent(new CustomEvent("wp-print",{detail:D})),d.state.view.subscribe(N)))),t.$$set=t=>{"targetId"in t&&i(0,l=t.targetId),"settings"in t&&i(12,c=t.settings),"image"in t&&i(13,d=t.image)},t.$$.update=()=>{var e,n,a,l,d;20480&t.$$.dirty[0]&&i(6,s=(null==(n=null==(e=c.i18n)?void 0:e[o])?void 0:n.title)||(null==(l=null==(a=null==v?void 0:v.i18n)?void 0:a[o])?void 0:l.title)),4096&t.$$.dirty[0]&&i(5,r=null==(d=f.icons)?void 0:d[c.customIconIdx??-1])},[l,k,A,C,z,r,s,a,m,w,function(){var t;(null==(t=g._markers)?void 0:t.noMarkerActions)||(k.parentNode.scrollTo(0,0),clearTimeout(M),M=setTimeout((()=>{const t=d.camera.getXY(L.x,L.y);!C&&(t[0]<0||t[0]>=u.offsetWidth||t[1]<0||t[1]>=u.offsetHeight||d.is360&&t[3]>4)&&d.camera.flyToCoo([L.x,L.y],{speed:2,limit:!0}).catch((()=>{}))}),150))},function(){var t;(null==(t=g._markers)?void 0:t.noMarkerActions)||(i(3,C=!0),i(13,d.openedView=void 0,d),d.state.marker.set(void 0),u.open(l,{vector:b}))},c,d,o,function(t){ut[t?"unshift":"push"]((()=>{k=t,i(1,k)}))}]}class sa extends Yt{constructor(t){super(),Gt(this,t,na,ia,a,{targetId:0,settings:12,image:13},null,[-1,-1])}}const{Map:ra}=E;function oa(t,e,i){const n=t.slice();return n[60]=e[i],n}function aa(t,e,i){const n=t.slice();return n[60]=e[i],n}function la(t,e,i){const n=t.slice();return n[60]=e[i],n[66]=i,n}function ca(t,e,i){const n=t.slice();return n[67]=e[i],n}function da(t,e,i){const n=t.slice();return n[70]=e[i],n}function ua(t,e,i){const n=t.slice();return n[70]=e[i],n}function ha(t,e,i){const n=t.slice();return n[75]=e[i],n}function ma(t){let e,i,n,s,r,o=[],a=new ra,l=[],c=new ra,d=Dt(t[11]),u=[];for(let g=0;g<d.length;g+=1)u[g]=pa(ha(t,d,g));let h=Dt(t[12].filter(Ea));const m=t=>t[70][0].id;for(let g=0;g<h.length;g+=1){let e=ua(t,h,g),i=m(e);a.set(i,o[g]=fa(i,e))}let p=Dt(t[12].filter(Sa));const f=t=>t[70][0].id;for(let g=0;g<p.length;g+=1){let e=da(t,p,g),i=f(e);c.set(i,l[g]=ga(i,e))}return{c(){e=C("svg");for(let t=0;t<u.length;t+=1)u[t].c();i=D(),n=N("aside"),s=N("section");for(let t=0;t<o.length;t+=1)o[t].c();r=N("section");for(let t=0;t<l.length;t+=1)l[t].c();V(e,"class","micrio-markers"),V(s,"class","micrio-markers"),V(r,"class","micrio-markers"),V(n,"class","micrio-markers")},m(a,c){I(a,e,c);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(e,null);I(a,i,c),I(a,n,c),S(n,s);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(s,null);S(n,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(r,null);t[36](n)},p(t,i){if(2048&i[0]){let n;for(d=Dt(t[11]),n=0;n<d.length;n+=1){const s=ha(t,d,n);u[n]?u[n].p(s,i):(u[n]=pa(s),u[n].c(),u[n].m(e,null))}for(;n<u.length;n+=1)u[n].d(1);u.length=d.length}285380608&i[0]&&(h=Dt(t[12].filter(Ea)),o=Ft(o,i,m,0,t,h,a,s,Ot,fa,null,ua)),285380608&i[0]&&(p=Dt(t[12].filter(Sa)),l=Ft(l,i,f,0,t,p,c,r,Ot,ga,null,da))},d(s){s&&(L(e),L(i),L(n)),P(u,s);for(let t=0;t<o.length;t+=1)o[t].d();for(let t=0;t<l.length;t+=1)l[t].d();t[36](null)}}}function pa(t){let e,i,n,s,r;return{c(){e=C("line"),V(e,"x1",i=t[75][0]),V(e,"y1",n=t[75][1]),V(e,"x2",s=t[75][2]),V(e,"y2",r=t[75][3]),V(e,"class","micrio-markers"),H(e,"hovered",t[75][4])},m(t,i){I(t,e,i)},p(t,o){2048&o[0]&&i!==(i=t[75][0])&&V(e,"x1",i),2048&o[0]&&n!==(n=t[75][1])&&V(e,"y1",n),2048&o[0]&&s!==(s=t[75][2])&&V(e,"x2",s),2048&o[0]&&r!==(r=t[75][3])&&V(e,"y2",r),2048&o[0]&&H(e,"hovered",t[75][4])},d(t){t&&L(e)}}}function fa(t,e){let i,n,s,o,a,l,c,d=e[28](e[70][0],e[17])+"";function u(){return e[32](e[70])}return{key:t,first:null,c(){i=N("article"),n=N("label"),s=z(d),a=D(),V(n,"for",o=e[70][0].id),V(n,"class","micrio-markers"),H(n,"hover",e[15]==e[70][0].id),V(i,"class","micrio-markers"),this.first=i},m(t,r){I(t,i,r),S(i,n),S(n,s),I(t,a,r),l||(c=[R(n,"mouseenter",u),R(n,"mouseleave",e[33])],l=!0)},p(t,i){e=t,135168&i[0]&&d!==(d=e[28](e[70][0],e[17])+"")&&Y(s,d),4096&i[0]&&o!==(o=e[70][0].id)&&V(n,"for",o),36864&i[0]&&H(n,"hover",e[15]==e[70][0].id)},d(t){t&&(L(i),L(a)),l=!1,r(c)}}}function ga(t,e){let i,n,s,o,a,l,c,d=e[28](e[70][0],e[17])+"";function u(){return e[34](e[70])}return{key:t,first:null,c(){i=N("article"),n=N("label"),s=z(d),a=D(),V(n,"for",o=e[70][0].id),V(n,"class","micrio-markers"),H(n,"hover",e[15]==e[70][0].id),V(i,"class","micrio-markers"),this.first=i},m(t,r){I(t,i,r),S(i,n),S(n,s),I(t,a,r),l||(c=[R(n,"mouseenter",u),R(n,"mouseleave",e[35])],l=!0)},p(t,i){e=t,135168&i[0]&&d!==(d=e[28](e[70][0],e[17])+"")&&Y(s,d),4096&i[0]&&o!==(o=e[70][0].id)&&V(n,"for",o),36864&i[0]&&H(n,"hover",e[15]==e[70][0].id)},d(t){t&&(L(i),L(a)),l=!1,r(c)}}}function va(t){let e,i,n,s,r=t[1]&&t[1].length&&$a(t),o=t[2]&&ya(t);return{c(){e=N("div"),r&&r.c(),i=O(),o&&o.c(),V(e,"style",n=t[13]?t[5]:null),V(e,"class","micrio-markers"),H(e,"show-titles",t[26]),H(e,"is360",t[6]),H(e,"inactive",t[3]||t[6]&&t[4])},m(t,n){I(t,e,n),r&&r.m(e,null),S(e,i),o&&o.m(e,null),s=!0},p(t,a){t[1]&&t[1].length?r?(r.p(t,a),2&a[0]&&Lt(r,1)):(r=$a(t),r.c(),Lt(r,1),r.m(e,i)):r&&(At(),Pt(r,1,1,(()=>{r=null})),It()),t[2]?o?(o.p(t,a),4&a[0]&&Lt(o,1)):(o=ya(t),o.c(),Lt(o,1),o.m(e,null)):o&&(At(),Pt(o,1,1,(()=>{o=null})),It()),(!s||8224&a[0]&&n!==(n=t[13]?t[5]:null))&&V(e,"style",n),(!s||64&a[0])&&H(e,"is360",t[6]),(!s||88&a[0])&&H(e,"inactive",t[3]||t[6]&&t[4])},i(t){s||(Lt(r),Lt(o),s=!0)},o(t){Pt(r),Pt(o),s=!1},d(t){t&&L(e),r&&r.d(),o&&o.d()}}}function $a(t){let e,i,n=[],s=new ra,r=Dt(t[1]);const o=t=>t[67];for(let a=0;a<r.length;a+=1){let e=ca(t,r,a),i=o(e);s.set(i,n[a]=wa(i,e))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=O()},m(t,s){for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,s);I(t,e,s),i=!0},p(t,i){3&i[0]&&(r=Dt(t[1]),At(),n=Ft(n,i,o,0,t,r,s,e.parentNode,Rt,wa,e,ca),It())},i(t){if(!i){for(let t=0;t<r.length;t+=1)Lt(n[t]);i=!0}},o(t){for(let e=0;e<n.length;e+=1)Pt(n[e]);i=!1},d(t){t&&L(e);for(let e=0;e<n.length;e+=1)n[e].d(t)}}}function wa(t,e){let n,s,r;const o=[{image:e[0]},e[67]];let a={};for(let l=0;l<o.length;l+=1)a=i(a,o[l]);return s=new sa({props:a}),{key:t,first:null,c(){n=O(),qt(s.$$.fragment),this.first=n},m(t,e){I(t,n,e),Wt(s,t,e),r=!0},p(t,i){e=t;const n=3&i[0]?Ut(o,[1&i[0]&&{image:e[0]},2&i[0]&&Vt(e[67])]):{};s.$set(n)},i(t){r||(Lt(s.$$.fragment,t),r=!0)},o(t){Pt(s.$$.fragment,t),r=!1},d(t){t&&L(n),Xt(s,t)}}}function ya(t){let e,i,n,s=[],r=new ra,o=[],a=new ra,l=Dt(t[2]);const c=t=>t[60].id;for(let h=0;h<l.length;h+=1){let e=la(t,l,h),i=c(e);r.set(i,s[h]=ba(i,e))}let d=Dt(t[9]);const u=t=>t[60].id;for(let h=0;h<d.length;h+=1){let e=aa(t,d,h),i=u(e);a.set(i,o[h]=ka(i,e))}return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=O();for(let t=0;t<o.length;t+=1)o[t].c();i=O()},m(t,r){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,r);I(t,e,r);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);I(t,i,r),n=!0},p(t,n){134217989&n[0]&&(l=Dt(t[2]),At(),s=Ft(s,n,c,0,t,l,r,e.parentNode,Rt,ba,e,la),It()),513&n[0]&&(d=Dt(t[9]),At(),o=Ft(o,n,u,0,t,d,a,i.parentNode,Rt,ka,i,aa),It())},i(t){if(!n){for(let t=0;t<l.length;t+=1)Lt(s[t]);for(let t=0;t<d.length;t+=1)Lt(o[t]);n=!0}},o(t){for(let e=0;e<s.length;e+=1)Pt(s[e]);for(let e=0;e<o.length;e+=1)Pt(o[e]);n=!1},d(t){t&&(L(e),L(i));for(let e=0;e<s.length;e+=1)s[e].d(t);for(let e=0;e<o.length;e+=1)o[e].d(t)}}}function ba(t,e){let i,n,s;return n=new ta({props:{marker:e[60],image:e[0],coords:e[27],overlapped:e[8].includes(e[66])}}),{key:t,first:null,c(){i=O(),qt(n.$$.fragment),this.first=i},m(t,e){I(t,i,e),Wt(n,t,e),s=!0},p(t,i){e=t;const s={};4&i[0]&&(s.marker=e[60]),1&i[0]&&(s.image=e[0]),260&i[0]&&(s.overlapped=e[8].includes(e[66])),n.$set(s)},i(t){s||(Lt(n.$$.fragment,t),s=!0)},o(t){Pt(n.$$.fragment,t),s=!1},d(t){t&&L(i),Xt(n,t)}}}function ka(t,e){let i,n,s;return n=new ta({props:{marker:e[60],image:e[0]}}),{key:t,first:null,c(){i=O(),qt(n.$$.fragment),this.first=i},m(t,e){I(t,i,e),Wt(n,t,e),s=!0},p(t,i){e=t;const s={};512&i[0]&&(s.marker=e[60]),1&i[0]&&(s.image=e[0]),n.$set(s)},i(t){s||(Lt(n.$$.fragment,t),s=!0)},o(t){Pt(n.$$.fragment,t),s=!1},d(t){t&&L(i),Xt(n,t)}}}function Ta(t){let e,i,n=[],s=new ra,r=Dt(t[14]);const o=t=>t[60].id;for(let a=0;a<r.length;a+=1){let e=oa(t,r,a),i=o(e);s.set(i,n[a]=xa(i,e))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=O()},m(t,s){for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,s);I(t,e,s),i=!0},p(t,i){16385&i[0]&&(r=Dt(t[14]),At(),n=Ft(n,i,o,0,t,r,s,e.parentNode,Rt,xa,e,oa),It())},i(t){if(!i){for(let t=0;t<r.length;t+=1)Lt(n[t]);i=!0}},o(t){for(let e=0;e<n.length;e+=1)Pt(n[e]);i=!1},d(t){t&&L(e);for(let e=0;e<n.length;e+=1)n[e].d(t)}}}function xa(t,e){let i,n,s;return n=new ta({props:{marker:e[60],image:e[0],forceHidden:!0}}),{key:t,first:null,c(){i=O(),qt(n.$$.fragment),this.first=i},m(t,e){I(t,i,e),Wt(n,t,e),s=!0},p(t,i){e=t;const s={};16384&i[0]&&(s.marker=e[60]),1&i[0]&&(s.image=e[0]),n.$set(s)},i(t){s||(Lt(n.$$.fragment,t),s=!0)},o(t){Pt(n.$$.fragment,t),s=!1},d(t){t&&L(i),Xt(n,t)}}}function _a(t){let e,i,n,s,r=t[7]&&t[12].length&&!t[16]&&ma(t),o=t[13]&&va(t),a=t[14]&&Ta(t);return{c(){r&&r.c(),e=D(),o&&o.c(),i=D(),a&&a.c(),n=O()},m(t,l){r&&r.m(t,l),I(t,e,l),o&&o.m(t,l),I(t,i,l),a&&a.m(t,l),I(t,n,l),s=!0},p(t,s){t[7]&&t[12].length&&!t[16]?r?r.p(t,s):(r=ma(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]?o?(o.p(t,s),8192&s[0]&&Lt(o,1)):(o=va(t),o.c(),Lt(o,1),o.m(i.parentNode,i)):o&&(At(),Pt(o,1,1,(()=>{o=null})),It()),t[14]?a?(a.p(t,s),16384&s[0]&&Lt(a,1)):(a=Ta(t),a.c(),Lt(a,1),a.m(n.parentNode,n)):a&&(At(),Pt(a,1,1,(()=>{a=null})),It())},i(t){s||(Lt(o),Lt(a),s=!0)},o(t){Pt(o),Pt(a),s=!1},d(t){t&&(L(e),L(i),L(n)),r&&r.d(t),o&&o.d(t),a&&a.d(t)}}}const Ea=([,t])=>t<.5,Sa=([,t])=>t>=.5;function Ma(t,e,i){var n;let s,r,o,a,l,c,d,m,p,f,g,v,$,w,{image:y}=e;const{data:b,info:k,settings:T}=y;h(t,b,(t=>i(30,m=t))),h(t,T,(t=>i(39,v=t)));const x=y.state.marker;h(t,x,(t=>i(16,$=t)));const _=y.wasm.micrio,{switching:E,_lang:S,state:M}=_;h(t,E,(t=>i(4,p=t))),h(t,S,(t=>i(17,w=t)));const A=_.canvas.isMobile,I=null==(n=_.canvases[0])?void 0:n.grid,L=null==I?void 0:I.focussed;h(t,L,(t=>i(31,f=t)));const P=null==I?void 0:I.markersShown,N=v.clusterMarkerRadius??16,C=M.markerHoverId;h(t,C,(t=>i(15,g=t)));const z=Ht([]);h(t,z,(t=>i(29,d=t))),at("inView",z);const D=v._markers??{},O=v.omni,R=!(!!D.noTitles||!!(null==O?void 0:O.sideLabels))&&!!D.showTitles;function F(t){var e;t?"string"==typeof t||y.openedView||t.noMarker||!t.view||i(0,y.openedView=_.state.$tour||null==(e=y.state.$view)?void 0:e.slice(0),y):y.openedView&&!_.state.$tour&&vt().then((()=>{var t,e;s||y.camera.aniDone||!y.openedView||y.camera.flyToView((e=y.openedView,[Math.max(0,e[0]),Math.max(0,e[1]),Math.min(1,e[2]),Math.min(1,e[3])]),{speed:null==(t=v._markers)?void 0:t.zoomOutAfterCloseSpeed,noTrueNorth:!0}).catch((()=>{})),i(0,y.openedView=void 0,y)}))}M.tour.subscribe((t=>{t&&"steps"in t&&t.keepLastStep&&i(0,y.openedView=void 0,y)}));const U=[];let V="",B=!1,q=!1;const W=t=>(t=null==t?void 0:t.map((t=>Math.round(100*t)/100)))&&i(5,V=[...U,t[0]?`left: ${t[0]}px`:null,t[1]?`top: ${t[1]}px`:null,`width: ${t[2]}px`,`height: ${t[3]}px`].filter((t=>!!t)).join(";")+";");let X=[],G=N,Y=[];const j=new Map,H=([t,e,i=0,n=0],[s,r,o=0,a=0])=>{const l=Math.max(n/2,G),c=Math.max(a/2,G);return!(t+i+G<s-G||t-G>s+o+G||e+l<r-c||e-l>r+c)},Z=()=>{var t,e;if(!o)return void i(8,X=i(9,Y=[]));const n=o,s=[],r=n.length;let a=0,l=0;for(i(8,X=[]);a<r;a++)for(l=a+1;l<r;l++){if(null==(t=n[l].tags)?void 0:t.includes("no-cluster"))continue;const i=j.get(n[a].id),r=j.get(n[l].id);i&&r&&H(i,r)&&(X.push(a,l),(null==(e=s.find((t=>t.findIndex((t=>t==a||t==l))>-1)))?void 0:e.push(a,l))??s.push([a,l]))}i(9,Y=s.map((t=>t.filter(((e,i)=>t.indexOf(e)==i)))).map(((t,e)=>({title:t.length+"",type:"cluster",view:e=[0,1,2,3].map((e=>(e<2?Math.min:Math.max)(...t.map((t=>{var i;return(null==(i=n[t].view)?void 0:i[e])??(e%2==0?n[t].x:n[t].y)}))))),x:e[0]+(e[2]-e[0])/2,y:e[1]+(e[3]-e[1])/2,id:""+t,data:{},popupType:"none",tags:[]}))))},K=[];rt((()=>{const t=[];return le(k).then((e=>{var n,s,r;if(!e)return;i(6,B=!!e.is360);const o=v._markers;if(!o)return;const a=Number(e.version)>=4.2;o.markerIcon&&U.push(`--micrio-marker-icon: url("${o.markerIcon}")`),o.markerColor&&o.markerColor!=(a?"#ffffff":"#ffbb00")&&U.push("--micrio-marker-color: "+o.markerColor),o.markerSize&&o.markerSize!=(a?"16":"25")&&U.push("--micrio-marker-size: "+(G=Number(o.markerSize))+"px"),t.push(y.viewport.subscribe(W)),v.clusterMarkers&&(t.push(y.state.view.subscribe(Z)),t.push(y.data.subscribe((()=>vt().then(Z))))),!y.grid&&(null==(n=v._markers)?void 0:n.zoomOutAfterClose)&&t.push(y.state.marker.subscribe(F));!(!y.isOmni||!(null==(s=v.omni)?void 0:s.sideLabels)||(null==(r=v._markers)?void 0:r.noTitles))&&t.push(A.subscribe((t=>{t&&q?function(){for(var t;K.length;)null==(t=K.shift())||t()}():t||q||(K.push(y.state.view.subscribe(et)),K.push(C.subscribe(et)),K.push(x.subscribe(et))),i(7,q=!t)})))})),()=>{for(var e;t.length;)null==(e=t.shift())||e()}}));const J=t=>!t.noMarker;let Q,tt=[];function et(){vt().then((()=>{if(!Q)return;const t=_.canvas,e=t.element.offsetWidth,n=[];d.forEach((([i,s,r])=>{var o;const a=null==(o=Q.querySelector('label[for="'+i.id+'"]'))?void 0:o.getBoundingClientRect();(null==a?void 0:a.width)&&a.width>0&&n.push([s*e,r,(s>=.5?a.left:a.right)-t.viewport.left,a.top+a.height/2-t.viewport.top,g==i.id])})),i(11,tt=n)}))}return t.$$set=t=>{"image"in t&&i(0,y=t.image)},t.$$.update=()=>{var e,n;1&t.$$.dirty[0]|1&t.$$.dirty[1]&&i(3,s=I&&f!=y&&P&&u(P).indexOf(y)<0),17&t.$$.dirty[0]&&i(1,r=!p&&_.spaceData?_.spaceData.links.filter((t=>t[0]==y.id||t[1]==y.id)).map((t=>{var e;return{targetId:t[0]==y.id?t[1]:t[0],settings:null==(e=t[2])?void 0:e[y.id]}})):void 0),1073741832&t.$$.dirty[0]&&i(2,o=s?[]:null==(e=null==m?void 0:m.markers)?void 0:e.filter(J)),1073741832&t.$$.dirty[0]&&i(14,a=s?null==m?void 0:m.markers:null==(n=null==m?void 0:m.markers)?void 0:n.filter((t=>!J(t)))),6&t.$$.dirty[0]&&i(13,l=!(!(null==o?void 0:o.length)&&!(null==r?void 0:r.length))),536870912&t.$$.dirty[0]&&i(12,c=d.sort((([,,t],[,,e])=>t>e?1:t<e?-1:0)))},[y,r,o,s,p,V,B,q,X,Y,Q,tt,c,l,a,g,$,w,b,T,x,E,S,L,C,z,R,j,(t,e)=>{var i;return t.i18n?null==(i=t.i18n[e])?void 0:i.title:t.title},d,m,f,t=>C.set(t[0].id),()=>C.set(void 0),t=>C.set(t[0].id),()=>C.set(void 0),function(t){ut[t?"unshift":"push"]((()=>{Q=t,i(10,Q)}))}]}class Aa extends Yt{constructor(t){super(),Gt(this,t,Ma,_a,a,{image:0},null,[-1,-1,-1])}}const Ia="5.2.2",La="https://b.micr.io/",Pa="https://r2.micr.io/",Na=["ttBWO","IicaE","KLTce","xjQrB","pfhXT","rNIPa","rdFIY","mvRXc"],Ca={b64:_b,ugz:_u},za="micrio-muted",Da={id:"",version:Number(Ia.replace(/(\d+)\.(\d+).*/,"$1.$2")),path:La,width:0,height:0,tileSize:1024,lang:"en",settings:{camspeed:1,view:[0,0,1,1],restrict:[0,0,1,1],focus:[.5,.5],zoomLimit:1,fullscreen:!0,crossfadeDuration:.25,hookEvents:!0,hookScroll:!0,hookPinch:!0,hookDrag:!0,minimap:!0,doTourJumps:!0,audio:!0,startVolume:1,mutedVolume:0,_markers:{showTitles:!1,popupAnimation:{duration:200,x:-50},zoomOutAfterClose:!0},ui:{controls:{cultureSwitch:!0}},_360:{},_meta:{}}},Oa={STRINGS:{id:{r:!0},lang:{r:!0},"data-thumb":{f:"thumbSrc"},"data-title":{r:!0},"data-format":{r:!0},"data-extension":{r:!0,f:"tileExtension"},"data-tiles":{r:!0,f:"tilesId"},"data-path":{r:!0},"data-sources":{r:!0},"data-inittype":{f:"initType"},"data-type":{},"data-start":{f:"gallery.startId"},"data-gallery":{f:"gallery.archive"},"data-gallery-sort":{f:"gallery.sort"},"data-iiif":{r:!0,f:"iiifManifest"},"data-grid":{r:!0},"data-gallery-type":{f:"gallery.type"}},BOOLEANS:{"data-static":{},muted:{f:"audio",n:!0},"data-png":{r:!0,f:"isPng"},"data-webp":{r:!0,f:"isWebP"},"data-dz":{r:!0,f:"isDeepZoom"},"data-is360":{r:!0},"data-no-externals":{f:"noExternals"},"data-skipmeta":{f:"skipMeta"},"data-force-data-refresh":{f:"forceDataRefresh"},"data-keeprendering":{f:"keepRendering"},"data-coverlimit":{f:"limitToCoverScale"},"data-events":{f:"hookEvents"},"data-keys":{f:"hookKeys"},"data-zooming":{f:"noZoom",n:!0},"data-scroll-zoom":{f:"hookScroll"},"data-pinch-zoom":{f:"hookPinch"},"data-dragging":{f:"hookDrag"},"data-two-finger-pan":{f:"twoFingerPan"},"data-control-zoom":{f:"controlZoom"},"data-ui":{f:"noUI",n:!0},"data-gtag":{f:"noGTag",n:!0},"data-controls":{f:"noControls",n:!0},"data-logo":{f:"noLogo",n:!0},"data-logo-org":{f:"noOrgLogo",n:!0},"data-toolbar":{f:"noToolbar",n:!0},"data-show-info":{f:"showInfo"},"data-social":{},"data-fullscreen":{},"data-minimap":{},"data-minimap-hide":{f:"alwaysShowMinimap",n:!0},"data-omni-y":{f:"OmniTwoAxes"},"data-normalize-dpr":{f:"zoomLimitDPRFix"},"data-grid-clickable":{f:"gridClickable"},"data-gallery-spreads":{f:"gallery.isSpreads"},"data-freemove":{f:"freeMove"},"data-force-path":{f:"forceInfoPath",r:!0}},NUMBERS:{"data-version":{r:!0},height:{r:!0},width:{r:!0},volume:{f:"startVolume"},"data-tilesize":{r:!0,f:"tileSize"},"data-camspeed":{},"data-zoomlimit":{f:"zoomLimit"},"data-minimap-height":{f:"minimapHeight"},"data-minimap-width":{f:"minimapWidth"},"data-mutedvolume":{f:"mutedVolume"},"data-width-cm":{f:"cmWidth"},"data-height-cm":{f:"cmHeight"},"data-gallery-cover-pages":{f:"gallery.coverPages"},lazyload:{dN:0},"data-elasticity":{f:"dragElasticity"},"data-skip-base-levels":{f:"skipBaseLevels"}},ARRAYS:{"data-focus":{},"data-view":{}}};var Ra,Fa,Ua,Va,Ba,qa,Wa;Fa=Ra||(Ra={}),Ua=Fa.Grid||(Fa.Grid={}),(Va=Ua.GridActionType||(Ua.GridActionType={}))[Va.focus=0]="focus",Va[Va.flyTo=1]="flyTo",Va[Va.focusWithTagged=2]="focusWithTagged",Va[Va.focusTagged=3]="focusTagged",Va[Va.reset=4]="reset",Va[Va.back=5]="back",Va[Va.switchToGrid=6]="switchToGrid",Va[Va.filterTourImages=7]="filterTourImages",Va[Va.nextFadeDuration=8]="nextFadeDuration",Ba=Fa.Camera||(Fa.Camera={}),(qa=Ba.TimingFunction||(Ba.TimingFunction={}))[qa.ease=0]="ease",qa[qa["ease-in"]=1]="ease-in",qa[qa["ease-out"]=2]="ease-out",qa[qa.linear=3]="linear";class Xa{constructor(t){var e;if(this.image=t,this.center=[0,0,1],this.trueNorth=.5,this.aniDoneAdd=[],this.cooToArea=(t,e,i)=>({x:i[0]+t*(i[2]-i[0]),y:i[1]+e*(i[3]-i[1])}),this.viewToArea=(t,e)=>[...Object.values(this.cooToArea(t[0],t[1],e)),...Object.values(this.cooToArea(t[2],t[3],e))],this.getView=()=>{var t;return null==(t=this._view)?void 0:t.slice(0)},this.getCoo=(t,e,i=!1,n=!1)=>this.getCooDirect(t,e,i,n).slice(0).map((t=>Math.round(1e6*t)/1e6)),this.getXY=(t,e,i=!1,n,s,r)=>this.getXYDirect(t,e,{abs:i,radius:n,rotation:s,noTrueNorth:r}).slice(0),this.getScale=()=>this.center[2]??1,this.setScale=t=>this.setCoo(this.center[0],this.center[1],t),this.getCoverScale=()=>this.e._getCoverScale(this.image.ptr),this.getMinScale=()=>this.e._getMinScale(this.image.ptr),this.isZoomedIn=()=>{var t;return 1==(null==(t=this.e)?void 0:t._isZoomedIn(this.image.ptr))},this.isZoomedOut=(t=!1)=>{var e;return 1==(null==(e=this.e)?void 0:e._isZoomedOut(this.image.ptr,t))},this.getCoverLimit=()=>!!this.e._getCoverLimit(this.image.ptr),this.flyToView=(t,e={})=>new Promise(((i,n)=>{var s,r;if(e.area&&(t=this.viewToArea(t,e.area)),e.prevView){const t=e.prevView;this.e._setStartView(this.image.ptr,t[0],t[1],t[2],t[3])}if(null==(s=this.image.$settings.omni)?void 0:s.frames){const i=(null==(r=this.image.$settings.omni.layers)?void 0:r.length)??1,n=this.image.$settings.omni.frames/i;null==e.omniIndex&&void 0!==t[5]&&(e.omniIndex=Math.round(Kt(t[5]/(2*Math.PI))*n)),e.omniIndex&&(e.omniIndex=Kt(e.omniIndex,n))}const o=this.e._flyTo(this.image.ptr,t[0],t[1],t[2],t[3],e.duration??-1,e.speed??-1,e.progress??0,!!e.isJump,!!e.limit,!!e.limitZoom,e.omniIndex??0,!!e.noTrueNorth,Ra.Camera.TimingFunction[e.timingFunction??"ease"],performance.now());this.image.wasm.render(),0==o?i():this.setAniPromises(i,n)})),this.flyToFullView=(t={})=>this.flyToCoo([.5,.5,this.getMinScale()],t),this.flyToCoverView=(t={})=>{const e=this.image.$settings.focus??[.5,.5];return e[2]=this.getCoverScale(),this.flyToCoo(e,t)},this.flyToCoo=(t,e={})=>new Promise(((i,n)=>{e.duration=this.e._setCoo(this.image.ptr,t[0],t[1],t[2]||this.center[2],e.duration??-1,e.speed??-1,e.limit??!1,Ra.Camera.TimingFunction[e.timingFunction??"ease"],performance.now()),this.image.wasm.render(),0==e.duration?i():this.setAniPromises(i,n)})),this.zoom=(t,e=0,i=void 0,n=void 0,s=1,r=!1)=>new Promise(((o,a)=>{const l=this.getXY(this.center[0],this.center[1]);null==i&&(i=l[0]),null==n&&(n=l[1]),this.image.album&&!this.image.album.hooked||(e=this.e._zoom(this.image.ptr,t,i,n,e,s,r,performance.now()),this.image.wasm.render(),0==e?o():this.setAniPromises(o,a))})),this.zoomIn=(t=1,e=250,i=1)=>this.zoom(200*-t,e,void 0,void 0,i).catch((()=>{})),this.zoomOut=(t=1,e=250,i=1)=>{const n=this.image.wasm.micrio.canvas.viewport,s=n.width/n.height,r=this.image.$info.width/this.image.$info.height;return this.zoom(t*(400/Math.max(1,s/r/2)),e,void 0,void 0,i).catch((()=>{}))},this.getDirection=()=>this.image.wasm.e._getYaw(this.image.ptr),this.getPitch=()=>this.e._getPitch(this.image.ptr),!t.is360){const i=t.state.$view;i&&(null==(e=t.$info)?void 0:e.width)&&vt().then((()=>this.setView(i)))}}assign(t,e,i,n,s,r){this.e=t,this._view=e,this._xy=i,this._coo=n,this._mat=s,this._quad=r}viewChanged(){var t;const e=this._view,i=this.center.join(","),n=this.getCoo(0,0);this.center[0]=e[0]+(e[2]-e[0])/2,this.center[1]=e[1]+(e[3]-e[1])/2,this.center[2]=n[2],this.image.is360&&(this.center[3]=n[3],this.center[4]=n[4]),this.image.isOmni&&(this.center[5]=null==(t=this.image.swiper)?void 0:t.currentIndex),(this.center.join(",")!=i||this.image.wasm.micrio.canvas.resizing||this.image.wasm.e._areaAnimating(this.image.ptr))&&this.image.state.view.set(this._view)}getXYDirect(t,e,i={}){var n;const s=i.noTrueNorth?0:.5-((null==(n=this.image.$settings._360)?void 0:n.trueNorth)??.5);return this.e._getXY(this.image.ptr,t-s,e,!0===i.abs,i.radius,i.rotation),this._xy}getCooDirect(t,e,i=!1,n=!1){if(i){const i=this.image.wasm.micrio.getBoundingClientRect();t-=i.left,e-=i.top}return this.e._getCoo(this.image.ptr,t,e,!0===i,!0===n),this._coo}setView(t,e={}){e.area&&(t=this.viewToArea(t,e.area)),this.e._setView(this.image.ptr,t[0],t[1],t[2],t[3],!!e.noLimit,!1,e.correctNorth),e.noRender||this.image.wasm.render()}setCoo(t,e,i=this.center[2]??1){this.e._setCoo(this.image.ptr,t,e,i,0,0),this.image.wasm.render()}getQuad(t,e,i,n,s=0,r=0,o=0,a=1,l=1){return this.e._getQuad(this.image.ptr,t,e,i,n,a,l,s,r,o),this._quad}getMatrix(t,e,i,n,s,r,o,a,l,c){return this.e._getMatrix(this.image.ptr,t,e,i,n,s||0,r||0,o||0,a||0,l??1,c??1),this._mat}setMinScale(t){var e;null==(e=this.e)||e._setMinScale(this.image.ptr,t)}setMinScreenSize(t){var e;this.image.album||null==(e=this.e)||e._setMinSize(this.image.ptr,Math.max(0,Math.min(1,t??1)))}setLimit(t){this.e._setLimit(this.image.ptr,t[0],t[1],t[2],t[3]),this.image.wasm.render()}setCoverLimit(t){this.e._setCoverLimit(this.image.ptr,!!t)}set360RangeLimit(t=0,e=0){this.e._set360RangeLimit(this.image.ptr,t,e),this.image.wasm.render()}setAniPromises(t,e){this.aniDone=t,this.aniAbort=e}pan(t,e,i=0,n={}){this.e._pan(this.image.ptr,t,e,i,!!n.noLimit,performance.now()),n.render&&this.image.wasm.render()}stop(){this.e._aniStop(this.image.ptr)}pause(){this.e._aniPause(this.image.ptr,performance.now())}resume(){this.e._aniResume(this.image.ptr,performance.now()),this.image.wasm.render()}aniIsKinetic(){return!!this.e._isKinetic(this.image.ptr)}setDirection(t,e){const i=this.image.wasm;i.e._setDirection(this.image.ptr,t,e),i.render()}setArea(t,e={}){const i=this.image.wasm.e;this.image.opts.isEmbed?this.image.ptr>0&&(this.image.opts.area=t,i._setImageArea(this.image.ptr,t[0],t[1],t[2],t[3])):(this.image.opts.area=t,i._setArea(this.image.ptr,t[0],t[1],t[2],t[3],!!e.direct,!!e.noDispatch)),e.noRender||this.image.wasm.render()}setRotation(t=0,e=0,i=0){!this.image.opts.isEmbed||this.image.ptr<=0||(this.image.wasm.e._setImageRotation(this.image.ptr,t,e,i),this.image.wasm.render())}getOmniRotation(){var t,e;const i=this.image.$settings.omni;return((null==(t=this.image.swiper)?void 0:t.currentIndex)??0)/(((null==i?void 0:i.frames)??1)/((null==(e=null==i?void 0:i.layers)?void 0:e.length)??1))*Math.PI*2}getOmniFrame(t){var e;const i=this.image.$settings.omni;if(!i||null==t)return;const n=i.frames/((null==(e=i.layers)?void 0:e.length)??1);return Math.floor(t/(2*Math.PI)*n)}getOmniXY(t,e,i){return this.e._getOmniXY(this.image.ptr,t,e,i),this._xy}setOmniSettings(){const t=this.image,e=t.$settings.omni;e&&(t.wasm.e._setOmniSettings(t.ptr,-e.distance||0,e.fieldOfView??0,e.verticalAngle??0,e.offsetX??0),this.image.state.view.set(this._view))}}(t=>{t.Main=class{constructor(t){this.micrio=t,this.tour=Ht(),this.marker=Ht(),this.markerHoverId=Ht(),this.popup=Ht(),this.popover=Ht(),this.ui={controls:Ht(!0),zoom:Ht(!0),hidden:Ht(!1)},this.mediaState=new Map,this.tour.subscribe((t=>{"string"!=typeof t&&(this._tour=t)})),this.marker.subscribe((t=>{"string"!=typeof t&&(this._marker=t)}))}get $tour(){return this._tour}get $marker(){return this._marker}get(){if(this.micrio.$current)return this.value={id:this.micrio.$current.id,c:this.micrio.canvases.map((t=>t.state.get()))},this._tour&&(this.value.t=[this._tour.id],"instance"in this._tour&&this._tour.instance&&this.value.t.push(this._tour.instance.currentTime,this._tour.instance.paused?"p":void 0)),this.value}async set(t){var e,i;if(this.value=t){if(t.t){const e=this.mediaState.get(t.t[0]);t.t[1]&&(e?(e.currentTime=t.t[1],e.paused="p"==t.t[2]):this.mediaState.set(t.t[0],{currentTime:t.t[1],paused:"p"==t.t[2]})),await this.setTour(t.t[0])}if(this.micrio.canvases.forEach((e=>e.state.set(t.c.find((t=>t[0]==e.id))))),(null==(e=this.micrio.$current)?void 0:e.id)!=t.id&&this.micrio.open(t.id),t.t)return this.setTour(t.t[0]);{const e=t.c.find((e=>e[0]==t.id));e&&!e[5]&&(null==(i=this.micrio.$current)||i.camera.flyToView(e.slice(1,5),{speed:2}).catch((()=>{})))}}}async setTour(t){var e,i,n;if(!this.micrio.$current||(null==(e=this._tour)?void 0:e.id)==t)return;const s=await le(this.micrio.$current.data,{allowUndefined:!0});s&&this.tour.set((null==(i=s.markerTours)?void 0:i.find((e=>e.id==t)))||(null==(n=s.tours)?void 0:n.find((e=>e.id==t))))}};t.Image=class{constructor(t){this.image=t,this.view=Ht(void 0),this.marker=Ht(void 0),this.layer=Ht(0);const e=t.wasm.micrio;let i,n,s;this.view.subscribe((r=>{const o=null==r?void 0:r.toString(),a={image:t,view:r};if(r&&o&&i!=o){i=o;const t=r[2]-r[0],l=r[3]-r[1];(!n||!s||Math.abs(t-n+(l-s))>1e-5)&&(e.events.dispatch("zoom",a),n=t,s=l),e.events.dispatch("move",a),this._view||(this._view=r)}})),this.marker.subscribe((t=>{const i=this._marker;(this._marker=t&&"string"!=typeof t?t:void 0)?e.state.marker.set(this._marker):t||e.state.$marker!=i||e.state.marker.set(void 0)}))}get $view(){return this._view}get $marker(){return this._marker}hookOmni(){const t=this.image;this.layer.subscribe((e=>{t.ptr<0||!t.wasm.e||(t.wasm.setActiveLayer(t.ptr,e),t.wasm.render())}))}get(){const t="string"!=typeof this._marker&&this._marker,e=t?Array.from(this.image.wasm.micrio.state.mediaState).reverse().find((e=>e[0].startsWith(t.id))):null;return[this.image.id,...[].slice.call(this._view),...t?[t.id,...e?[e[0],e[1].currentTime,e[1].paused?"p":void 0]:[]]:[this._marker]].filter((t=>void 0!==t))}set(t){var e;if((null==t?void 0:t.length)&&(this.view.set([t[1],t[2],t[3],t[4]]),t[5]&&((null==(e=this._marker)?void 0:e.id)!=t[5]&&this.marker.set(t[5]),t[6]))){const e=this.image.wasm.micrio.state.mediaState,i=e.get(t[6]);t[7]&&(i?(i.currentTime=t[7],i.paused="p"==t[8]):e.set(t[6],{currentTime:t[7],paused:"p"==t[8]}))}}}})(Wa||(Wa={}));const Ga=new class{constructor(){this.data=new Map,this.db=new Map,this.images=[],this.get=t=>new Promise((e=>{const i=this.db.get(t);if(!i||!this.data.has(i[0]))throw new Error("Could no get blob: "+t);const n=new FileReader;n.onload=()=>e(JSON.parse(n.result)),n.readAsText(new Blob([new Uint8Array(this.data.get(i[0]),i[1],i[2])]))})),this.getImage=async t=>new Promise((e=>{const i=this.db.get(t);if(!i||!this.data.has(i[0]))throw new Error("Could no get blob");const n=new Blob([new Uint8Array(this.data.get(i[0]),i[1],i[2])]);if(window.createImageBitmap)e(self.createImageBitmap(n));else{let t=this.images.find((t=>!t.src));t||this.images.push(t=new Image),t.onload=()=>{t&&(e(t),requestAnimationFrame((()=>{t&&(URL.revokeObjectURL(t.src),t.src=null)})))},t.src=URL.createObjectURL(n)}}))}async load(t,e,i){if(this.data.has(e))return;const n=e.replace(/^.*\//,"").split(".")[0],s=/\/base$/.test(e),r=s||be(n),o=new XMLHttpRequest,a=await new Promise(((n,s)=>{let a=0;o.responseType="arraybuffer",o.onprogress=t=>{a||(a=Number(o.getResponseHeader("Content-Length"))),null==i||i(Math.min(1,t.loaded/a))},o.onload=()=>{4===o.readyState&&200===o.status?(null==i||i(1),n(o.response)):s()},o.open("GET",t+e+(r?".bin":".mdp")),o.send()}));if(!a)return;this.data.set(e,a);const l=s?e.split("/")[0]+"/":"";let c=0;for(;c<a.byteLength;){const i=this.parseHeader(new Uint8Array(a,c,32));i.name&&i.size>0&&this.db.set(t+l+i.name.replace("./",""),[e,c+32,i.size]),c+=32+i.size}}parseHeader(t){const e=(new TextDecoder).decode(t),i=t=>e.slice(n,n+=t).replace(/\x00/g,"").trim();let n=0;return{name:i(20),size:parseInt(i(12),8)}}},Ya=[];class ja{constructor(t,e,i={}){this.wasm=t,this.attr=e,this.opts=i,this.uuid=Jt(),this.__info=JSON.parse(JSON.stringify(Da)),this.settings=Ht({}),this.data=Ht(void 0),this.video=Ht(void 0),this.visible=Ht(!1),this.ptr=-1,this.baseTileIdx=-1,this.is360=!1,this.isVideo=!1,this.isOmni=!1,this.levels=1,this.dzLevels=0,this.noImage=!1,this.opacity=1,this.viewport=Ht(),this.embeds=[],this.isV5=!1,this._loadedData=!1,this.embedElements=new Map,this.state=new Wa.Image(this),i.useParentCamera||(this.camera=new Xa(this)),this.id=(e.id??"").replace("https://i.micr.io/",""),this.isV5=be(this.id.split("/")[0]),this.infoBasePath=e.path&&e.forceInfoPath?e.path:void 0,this.dataPath=e.path||this.__info.path,this.isV5&&!e.path&&(this.dataPath=Pa),i.secondaryTo?(this.opacity=0,i.area=this.wasm.micrio.canvas.viewport.portrait?[0,1,1,1]:[1,0,1,1],void 0===i.isPassive&&(i.isPassive=!0)):i.area||(i.area=[0,0,1,1]),this.preset=he(this.id);let n=!1;this.info={subscribe:Ht(void 0,(t=>{n?t(this.__info):this.load().then(t),n=!0})).subscribe};const s=this.wasm.micrio,r=!!this.attr.revision;let o,a=u(this.visible);i.isEmbed&&!r||this.visible.subscribe((t=>{t!=a&&(a=t,t&&!this._loadedData&&(!r&&this.isV5?(this._loadedData=!0,this.data.set(void 0)):this.loadData()),i.secondaryTo&&(i.isPassive&&(o?(o(),o=null):t&&(o=i.secondaryTo.state.view.subscribe((t=>{t&&!this.camera.aniDone&&this.camera.setView(t,{noLimit:!0})})))),t?s.events.dispatch("splitscreen-start",this):s.events.dispatch("splitscreen-stop",this)),s.visible.update((e=>(t?e.push(this):e.splice(e.indexOf(this),1),e))),t&&s.$current==this&&s.switching.set(!1))})),this.video.subscribe((t=>this._video=t)),this.data.subscribe((t=>((t,e,i)=>{var n,s,r,o,a;t&&(t.revision&&(t.revision=Object.fromEntries(Object.entries(t.revision??{}).filter((t=>Number(t[1])>0)))),null==(n=t.embeds)||n.forEach((t=>{t.uuid||(t.uuid=(t.id??t.micrioId)+"-"+Math.random()),fe(t.video),fe(t)})),null==(s=t.markers)||s.forEach((t=>$e(t,e,!i))),null==(o=null==(r=t.music)?void 0:r.items)||o.forEach(fe),null==(a=t.pages)||a.forEach(ve))})(t,this.is360,this.isV5)))}get $info(){return this.__info}get $settings(){return u(this.settings)}get $data(){return u(this.data)}setError(t,e){throw this.wasm.micrio.printError(this.error=e??(null==t?void 0:t.message)??(null==t?void 0:t.toString())??"An unknown error has occurred"),this.wasm.micrio.loading.set(!1),t}async load(){var t,e,i,n,s,r,o,a,l,c,d,h,m,p,f,g,v,$,w,y;let b=this.__info;const k=this.attr,T=this.wasm.micrio;k.id&&k.width&&(k.settings&&ne(Da.settings,k.settings,{noOverwrite:!0}),this.__info=b=k);let x=b.iiifManifest||k.iiifManifest;b.isIIIF=this.id.startsWith("http")||"iiif"==b.format;const _=!!(null==(t=k.settings)?void 0:t.forceDataRefresh);if(!this.id||k.width&&k.height&&!x)(null==(o=this.preset)?void 0:o[1])&&ne(this.preset[1],b);else{const t=t=>this.setError(t,'Image with id "'+this.id+'" not found, published, or embeddable.');ne((null==(e=this.preset)?void 0:e[1])||await(b.isIIIF?ue(this.id):me(this.id,this.infoBasePath,_)).catch(t),b),!x&&b.iiifManifest&&(x=b.iiifManifest),b.isIIIF||(b.isIIIF=!!x),x&&ne(await ue(x).catch(t),b),(null==(n=null==(i=b.settings)?void 0:i._meta)?void 0:n.noLogo)&&(b.settings.noLogo=!0),(null==(r=null==(s=b.settings)?void 0:s._meta)?void 0:r.noSmoothing)&&(b.settings.noSmoothing=!0)}const E="https://iiif.micr.io/";if(b.id.startsWith(E)&&(b.id=b.id.slice(21)),7==(null==(a=this.id)?void 0:a.length)){const t=ye(this.id[1+ye(this.id)%6]);b.is360=!!(t>>4&1),b.isWebP=!(3&t),b.isPng=2==(3&t),t>>3&1&&be(b.tilesId??this.id)&&(b.format="dz"),b.path||(b.path=`https://${t>>2&1?"eu":"r2"}.micr.io/`)}const S=this.isV5&&this.id.startsWith("i")&&!this.id.includes("/");S&&!b.tilesId&&(b.tilesId=this.id.slice(1));const M=Na.indexOf(b.id)>=0||b.tilesId&&Na.indexOf(b.tilesId)>=0;ne(k,b);const A=S&&!(null==(l=b.tileBasePath)?void 0:l.includes("micr.io"));if(this.tileBase=A?b.tileBasePath??La:M||S?La:b.tileBasePath??b.path??(this.isV5?Pa:La),(null==(c=b.organisation)?void 0:c.baseUrl)&&!k.path?(this.dataPath=b.path=b.organisation.baseUrl,S&&!M||(this.tileBase=this.dataPath)):"https://eu.micr.io/"==b.path&&(this.dataPath=b.path),(null==(d=b.settings)?void 0:d.omni)&&(this.isOmni=!0,b.version>=5&&(await Ga.load(this.tileBase??this.dataPath,(b.tilesId??b.id)+"/base",(t=>{var e;return null==(e=T._ui)?void 0:e.$set({loadingProgress:t})})).catch((t=>this.setError(t,"Could not find object base package."))),b.settings.gallery||(b.settings.gallery={}),b.settings.gallery.type="omni",b.settings.gallery.archive=b.id)),!(null==(h=b.organisation)?void 0:h.branding)||b.settings&&b.settings.noUI||this.loadStyle(this.dataPath+"style/"+b.organisation.slug+".css").then((()=>{var t;const e=null==(t=getComputedStyle(this.wasm.micrio).getPropertyValue("--micrio-font-family"))?void 0:t.replace(/^'([^']+)'.*$/,"$1");e&&document.fonts.ready.then((()=>{document.fonts.check("16px "+e)||this.loadStyle(`https://fonts.googleapis.com/css2?family=${e}:ital,wght@0,300;0,400;0,500;0,600;0,800;1,300;1,400;1,500;1,600;1,800&display=swap`)}))})),b.isIIIF)if(b.sequences&&b.sequences.length)this.parseIIIFSequence(b,!!x);else{const t=(x||("@id"in b?b["@id"]:b.id)).replace("/info.json","");b.path=t.replace(/\/[^/]*$/,""),b.id=t.replace(/^.*\/([^/]*)$/,"$1")}if(b.spacesId&&!T.spaceData&&(T.spaceData="MICRIO_SPACE_DATA"in self?self.MICRIO_SPACE_DATA:await ue("https://i.micr.io/spaces/"+b.spacesId+".json")),null==(m=b.settings)?void 0:m._360){const t=(null==(f=null==(p=T.spaceData)?void 0:p.images.find((t=>t.id==this.id)))?void 0:f.rotationY)??0;b.settings._360.trueNorth=.5+t/Math.PI/2}this.noImage=this.noImage||this.isOmni||!b.id&&!b.tilesId,this.extension=b.tileExtension||b.isPng&&"png"||b.isWebP&&"webp"||"jpg","dz"==b.format&&(b.isDeepZoom=!0),this.is360=!!b.is360,this.isVideo=!!b.isVideo;let I=this.isV5?u(T._lang):("cultures"in b?void 0:k.lang)??void 0;if(this.isV5){if(b.revision){const t=Object.keys(b.revision);t.length&&t.indexOf(I)<0&&(T.lang=t[0])}}else if(!(null==(g=b.settings)?void 0:g.skipMeta)&&"cultures"in b){const t=(b.cultures||"").split(","),e=this.opts.isEmbed||!!this.opts.area,i=(null==(v=b.settings)?void 0:v.onlyPreferredLang)||e;I=b.lang&&t.indexOf(b.lang)>=0?b.lang:i?void 0:t[0],I&&!e&&(T.lang=I)}const L=b.settings;L&&!(null==L?void 0:L.noExternals)&&await Promise.all([L.css?this.loadStyle(L.css.href):null,L.js?this.loadScript(L.js.href,I):null].filter((t=>!!t)));for(let u=b.tileSize;u<Math.max(b.width,b.height);u*=2,this.levels++);let P=Math.max(b.width,b.height);do{this.dzLevels++}while((P/=2)>1);return(null==($=null==L?void 0:L.gallery)?void 0:$.archive)&&(this.levels-=1-(L.gallery.archiveLayerOffset??0)),this.noImage||(this.thumbSrc=this.getTileSrc(this.levels,0,0)),T.events.dispatch("pre-info",b),this.isV5&&null!=b.revision&&!this.opts.isEmbed?await this.loadData():(null==(w=b.settings)?void 0:w.skipMeta)||this.opts.isEmbed||this.isV5||T._lang.subscribe((t=>{var e,i;t&&this.id&&(!("cultures"in this.__info)||(this.__info.cultures||"").split(",").indexOf(t)<0)&&(t=void 0),this.data.set(void 0),!t&&(null==(e=this.preset)?void 0:e[2])&&(t="preset"),t&&this.id&&((null==(i=this.preset)?void 0:i[2])?this.enrichData(this.preset[2]).then((t=>{var e;this.data.set(t),(null==(e=this.preset)?void 0:e[2])&&(this.preset[2]=void 0)})):ue(this.dataPath+this.id+"/data."+t+".json").catch((()=>{})).then((t=>t&&this.enrichData(t).then((t=>this.data.update((e=>(ne(t,e||(e={}),{mergeArrays:!0}),e))))))))})),(null==(y=b.settings)?void 0:y.micrioSplitLink)&&!this.opts.secondaryTo&&T.open({id:b.settings.micrioSplitLink,settings:{hookEvents:!1!==b.settings.secondaryInteractive}},{splitScreen:!0,isPassive:!b.settings.noFollow}),b.settings&&this.settings.set(b.settings),delete b.settings,this.isOmni&&this.state.hookOmni(),b}async loadData(){var t,e,i,n;const s=(null==(t=this.$settings)?void 0:t.skipMeta)||(null==(e=this.__info.settings)?void 0:e.skipMeta);if(this._loadedData||s)return Promise.resolve();this._loadedData=!0;const r=(null==(i=this.preset)?void 0:i[2])??(this.isV5&&await ue(this.dataPath+this.id+"/data/pub.json",null==(n=this.__info.settings)?void 0:n.forceDataRefresh).catch((()=>{})));r&&this.enrichData(r).then((t=>this.data.set(t)))}getTileSrc(t,e,i,n){var s,r,o;const a=this.__info;if(a){if(a.isDeepZoom&&(t=this.dzLevels-t),a.isIIIF){const n=a.tileSize,s=Math.pow(2,t)*n,r=Math.min(a.width,e*s),o=Math.min(a.height,i*s);return`${a.path}/${a.id}/${[r,o,Math.min(a.width-r,s),Math.min(a.height-o,s)].join(",")}/${[Math.round(Math.min(n,(a.width-s*e)/s*n)),Math.round(Math.min(n,(a.height-s*i)/s*n))].join(",")}/0/default.jpg`}if(null==(o=null==(r=null==(s=a.settings)?void 0:s._360)?void 0:r.video)?void 0:o.src)throw"Video thumb";return`${this.tileBase}${a.tilesId||a.id}/${void 0!==n?n+"/":""}${t}/${e}${a.isDeepZoom?"_":"-"}${i}.${this.extension}`}}loadScript(t,e=""){return new Promise((i=>{if(Ya.indexOf(t)>=0||document.querySelector('script[src="'+t+'"]'))i();else{Ya.push(t);const n=document.createElement("script");n.type="text/javascript",n.async=!0,n.defer=!0,n.micrioElement=this,n.src=t.replace("$lang",e),n.onload=i,document.head.appendChild(n)}}))}loadStyle(t){return new Promise((e=>{if(Ya.indexOf(t)>=0||document.head.querySelector('link[href="'+t+'"]'))e();else{Ya.push(t);const i=document.createElement("link");i.setAttribute("type","text/css"),i.setAttribute("rel","stylesheet"),i.setAttribute("href",t),i.onload=e,document.head.appendChild(i)}}))}async enrichData(t){var e,i,n,s,r;if(!t)return t;"error"in t&&(this.__info.error="403"==t.status?"Could not load image data. Are you logged in and do you have the right credentials?":t.error);const o=this.wasm.micrio.lang,a=[];null==(e=t.markers)||e.forEach((t=>{var e;if($e(t,this.is360,!this.isV5),null==(e=t.data)?void 0:e.micrioSplitLink){const e=t.data.micrioSplitLink.split(",").map((t=>t.trim())),i=t.data._micrioSplitLink={micrioId:e[0],markerId:e[1],follows:!!e[2]&&"false"!=e[2]};i.markerId&&a.push(i.micrioId)}})),(null==(i=t.markerTours)?void 0:i.length)&&a.push(...[].concat.apply([],t.markerTours.map((t=>t.steps))).map((t=>t.split(",")[1])).filter((t=>!!t&&t!=this.id)));const l=t=>"autostart"in t&&t.autostart,c=(null==(n=t.markerTours)?void 0:n.find(l))||(null==(s=t.tours)?void 0:s.find(l));c&&(this.$settings.start={type:"steps"in c?"markerTour":"tour",id:c.id});const d=a.filter(((t,e)=>a.indexOf(t)==e));Promise.all(d.map((t=>me(t,this.infoBasePath))));const u=t=>this.dataPath+(this.isV5?t+"/data/pub.json":t+"/data."+o+".json"),h=await Promise.all(d.map((t=>ue(u(t)))));h.forEach(((t,e)=>{var i;return null==(i=null==t?void 0:t.markers)?void 0:i.forEach((t=>$e(t,this.is360,5==d[e].length)))}));const m=this.wasm.micrio.spaceData;return t.markerTours&&(await Promise.all(t.markerTours.map((e=>we(this,e,o,t)))),m&&(t.markerTours=t.markerTours.filter((t=>!t.steps.find((t=>t.includes(","))))))),(null==m?void 0:m.markerTours)&&await Promise.all(m.markerTours.filter((t=>!t.stepInfo)).map((e=>we(this,e,o,t)))),null==(r=t.markers)||r.forEach((t=>{var e,i,n,s,r;if(!(null==(e=t.data)?void 0:e._micrioSplitLink))return;const o=null==(n=null==(i=t.data)?void 0:i._micrioSplitLink)?void 0:n.markerId;if(o)for(let a=0;a<h.length;a++){const e=null==(r=null==(s=h[a])?void 0:s.markers)?void 0:r.find((t=>t.id==o));if(e)return void(t.data._micrioSplitLink.view=e.view)}})),this.wasm.micrio.events.dispatch("pre-data",{[this.id]:t,...Object.fromEntries(d.map(((t,e)=>[t,h[e]])))}),h.forEach(((t,e)=>{if(t){const n=this.wasm.images.find((t=>t.id==d[e]));n&&n instanceof ja&&!n.$data&&(i=u(n.id),!ce.has(i))&&n.data.set(t)}var i})),t}parseIIIFSequence(t,e=!1){var i;const n=null==(i=t.sequences)?void 0:i[0];if(!n)return;const s="top-to-bottom"==n.viewingDirection,r=n.canvases.map((t=>t.images[0])).map((t=>t.resource));this.noImage=!0,t.width=s?Math.max(...r.map((t=>t.width))):r.reduce(((t,e)=>t+e.width),0),t.height=s?r.reduce(((t,e)=>t+e.height),0):Math.max(...r.map((t=>t.height)));let o=0,a=this.embeds;t.settings||(t.settings={}),e&&r.length>10&&(a=t.gallery=[],t.settings.gallery||(t.settings.gallery={})),r.forEach((e=>{const i=[(1-e.width/t.width)/2,(1-e.height/t.height)/2];a.push(new ja(this.wasm,{id:e.service["@id"],width:e.width,height:e.height,isPng:"image/png"==e.format,settings:{}},{area:s?[i[0],o/t.height,1-i[0],(o+e.height)/t.height]:[o/t.width,i[1],(o+e.width)/t.width,1-i[1]]})),o+=s?e.height:e.width}))}addEmbed(t,e,i={}){const n=e.slice(0),s=new ja(this.wasm,t,{area:n,isEmbed:!0,useParentCamera:i.asImage});return s.camera||(s.camera=this.camera),this.embeds.push(s),void 0===i.opacity&&(i.opacity=1),le(s.info).then((t=>{if(t){if("cover"==i.fit||"contain"==i.fit){const e=this.is360?2:1,s="cover"==i.fit,r=n[2]-n[0],o=n[3]-n[1],a=n[0]+r/2,l=n[1]+o/2,c=r/o*e,d=t.width/t.height;if(s&&d<c||!s&&d>=c){const t=r/d*e;n[1]=l-t/2,n[3]=l+t/2}else{const t=o*d/e;n[0]=a-t/2,n[2]=a+t/2}}this.wasm.addEmbed(s,this,i),this.wasm.render()}})),s}setEmbedMediaElement(t,e){e?this.embedElements.set(t,e):this.embedElements.delete(t)}getEmbedMediaElement(t){return this.embedElements.get(t)}splitStart(){var t,e,i;const n=this.wasm.micrio.canvas.viewport.portrait;null==(t=this.opts.secondaryTo)||t.camera.setArea(n?[0,0,1,.5]:[0,0,.5,1],{noRender:!0}),this.camera.setArea(n?[0,.5,1,1]:[.5,0,1,1],{noRender:!0}),this.camera.setView((null==(i=null==(e=this.__info)?void 0:e.settings)?void 0:i.view)??[0,0,1,1]),this.wasm.render()}splitEnd(){var t,e;const i=this.opts.area;if(!i)return;const n=i[2]-i[0],s=i[3]-i[1];if(Math.round(1e3*n)/1e3==0||Math.round(1e3*s)/1e3==0)return;const r=n>s;this.camera.setArea(r?[0,1,1,1]:[1,0,1,1],{noRender:!0}),(null==(t=this.opts.secondaryTo)?void 0:t.grid)&&this.opts.secondaryTo.camera.aniDone||null==(e=this.opts.secondaryTo)||e.camera.setArea([0,0,1,1],{noRender:!0}),this.wasm.render()}fadeIn(t=!1){this.wasm.fadeImage(this.ptr,1,t),this.wasm.render()}fadeOut(t=!1){this.wasm.fadeImage(this.ptr,0,t),this.wasm.render()}}class Ha{constructor(t,e,i,n,s){var r,o,a;this.wasm=t,this.image=e,this.embed=i,this.paused=n,this.moved=s,this.ism3u=!1,this.hlsPlayer=void 0,this.usVid=void 0,this.vidRepeatTo=void 0,this.placeTo=void 0,this.autoplay=!0,this._vid=void 0,this.isMounted=!0,this.events={play:()=>this.setPlaying(!0),pause:()=>this.setPlaying(!1),playing:()=>{this.image._video||this.image.video.set(this._vid)},canplayEvt:ie.iOS?"loadedmetadata":"canplay",canplay:()=>{this._vid&&this.isMounted&&(this.autoplay&&!this.paused?(this._vid.play(),this.moved()):this.embed.hideWhenPaused||(this.setPlaying(!0),vt().then((()=>{this.setPlaying(!1),setTimeout((()=>{var t;return null==(t=this._vid)?void 0:t.remove()}),50)}))))}},this.ism3u=!!(null==(r=i.video)?void 0:r.streamId)&&!(null==(o=i.video)?void 0:o.transparent),this._vid=e._video,this.autoplay=(null==(a=i.video)?void 0:a.autoplay)??!0;let l=!0;this.usVid=this.image.visible.subscribe((t=>{clearTimeout(this.placeTo),this.placeTo=t?setTimeout((()=>{this.isMounted&&(this._vid?(this.hook(),this.autoplay&&this._vid.play()):this.load())}),l?0:100):setTimeout((()=>{var t;return null==(t=this._vid)?void 0:t.pause()}),0),l=!1}))}unmount(){var t,e;this.isMounted=!1,clearTimeout(this.placeTo),clearTimeout(this.vidRepeatTo),null==(t=this._vid)||t.pause(),this.unhook(),null==(e=this.usVid)||e.call(this)}setPlaying(t){this._vid&&(this.paused=!t,this._vid.dataset.playing=t?"1":void 0,this.wasm.e._setImageVideoPlaying(this.image.ptr,t),this.embed.hideWhenPaused&&this.wasm.fadeImage(this.image.ptr,t?1:0),t&&this.wasm.render())}load(){if(!this.embed.video||this._vid)return;const t=this.ism3u?`https://videodelivery.net/${this.embed.video.streamId}/manifest/video.m3u8`:this.embed.video.src;this._vid=document.createElement("video"),this._vid.crossOrigin="true",this._vid.playsInline=!0,this._vid.width=.5*this.embed.width,this._vid.height=.5*this.embed.height,this._vid.muted=this.embed.video.muted,this.hook(),!this.ism3u||Te(this._vid)?this._vid.src=t:oe("https://i.micr.io/hls-1.5.17.min.js",void 0,"Hls"in window?{}:void 0).then((()=>{this.hlsPlayer=new window.Hls,this.hlsPlayer.loadSource(t),this._vid&&this.hlsPlayer.attachMedia(this._vid)}))}hook(){if(!this.embed.video||!this._vid)return;const t=this.embed.video.loopAfter;this.embed.video.loop&&t?(this._vid.onended=()=>{this.setPlaying(!1),this.vidRepeatTo=setTimeout((()=>{var t;return null==(t=this._vid)?void 0:t.play()}),1e3*t)},this._vid.onplay=()=>this.setPlaying(!0)):this._vid.loop=this.embed.video.loop,this._vid.parentNode||this.autoplay||this.ism3u||(this._vid.setAttribute("style","opacity:0;position:absolute;top:0;left:0;transform-origin:left top;transform:scale(0.1);pointer-events:none;"),document.body.appendChild(this._vid)),this._vid.addEventListener("play",this.events.play),this._vid.addEventListener("pause",this.events.pause),this._vid.addEventListener("playing",this.events.playing,{once:!0}),this._vid.addEventListener(this.events.canplayEvt,this.events.canplay,{once:!0})}unhook(){this._vid&&(this._vid.removeEventListener("play",this.events.play),this._vid.removeEventListener("pause",this.events.pause),this._vid.removeEventListener("playing",this.events.playing),this._vid.removeEventListener(this.events.canplayEvt,this.events.canplay))}}function Za(e){let n=(e[18]?"a":"div")&&function(t){let e,n,s,o,a,l,c,d,u;const h=[tl,Qa,Ja,Ka],m=[];function p(t,e){return t[0].video&&!t[16]?0:t[0].frameSrc?1:!t[16]&&t[0].src?2:3}n=p(t),s=m[n]=h[n](t);let f=[{id:o=t[0].id?"e-"+t[0].id:void 0},{style:t[10]},{role:a=t[18]?void 0:"figure"},{href:t[18]},{target:l=t[18]&&t[19]?"_blank":null},{class:"micrio-embed"}],g={};for(let r=0;r<f.length;r+=1)g=i(g,f[r]);return{c(){e=N(t[18]?"a":"div"),s.c(),G(t[18]?"a":"div")(e,g),H(e,"embed-container",!0),H(e,"embed3d",t[14]),H(e,"no-events",t[17])},m(i,s){I(i,e,s),m[n].m(e,null),c=!0,d||(u=[R(e,"click",t[20]),R(e,"keypress",t[20]),R(e,"change",t[21])],d=!0)},p(t,i){let r=n;n=p(t),n===r?m[n].p(t,i):(At(),Pt(m[r],1,1,(()=>{m[r]=null})),It(),s=m[n],s?s.p(t,i):(s=m[n]=h[n](t),s.c()),Lt(s,1),s.m(e,null)),G(t[18]?"a":"div")(e,g=Ut(f,[(!c||1&i[0]&&o!==(o=t[0].id?"e-"+t[0].id:void 0))&&{id:o},(!c||1024&i[0])&&{style:t[10]},{role:a},{href:t[18]},{target:l},{class:"micrio-embed"}])),H(e,"embed-container",!0),H(e,"embed3d",t[14]),H(e,"no-events",t[17])},i(t){c||(Lt(s),c=!0)},o(t){Pt(s),c=!1},d(t){t&&L(e),m[n].d(),d=!1,r(u)}}}(e);return{c(){n&&n.c()},m(t,e){n&&n.m(t,e)},p(t,e){(t[18]||"div")&&n.p(t,e)},i:t,o(t){Pt(n,t)},d(t){n&&n.d(t)}}}function Ka(e){let i,n;return{c(){i=N("button"),V(i,"style",e[5]),V(i,"title",n=e[0].title),V(i,"data-scroll-through",""),V(i,"class","micrio-embed")},m(t,e){I(t,i,e)},p(t,e){32&e[0]&&V(i,"style",t[5]),1&e[0]&&n!==(n=t[0].title)&&V(i,"title",n)},i:t,o:t,d(t){t&&L(i)}}}function Ja(e){let i,n,s,r;return{c(){i=N("img"),c(i.src,n=e[0].src)||V(i,"src",n),V(i,"style",e[5]),V(i,"width",s=e[15]?e[0].width:void 0),V(i,"height",r=e[15]?e[0].height:void 0),V(i,"alt","Embed"),V(i,"data-scroll-through",""),V(i,"class","micrio-embed")},m(t,e){I(t,i,e)},p(t,e){1&e[0]&&!c(i.src,n=t[0].src)&&V(i,"src",n),32&e[0]&&V(i,"style",t[5]),1&e[0]&&s!==(s=t[15]?t[0].width:void 0)&&V(i,"width",s),1&e[0]&&r!==(r=t[15]?t[0].height:void 0)&&V(i,"height",r)},i:t,o:t,d(t){t&&L(i)}}}function Qa(t){let e,i;return e=new ys({props:{src:t[0].frameSrc,width:t[3],height:t[4],frameScale:t[0].scale,autoplay:t[0].autoplayFrame,destroying:t[22]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};1&i[0]&&(n.src=t[0].frameSrc),8&i[0]&&(n.width=t[3]),16&i[0]&&(n.height=t[4]),1&i[0]&&(n.frameScale=t[0].scale),1&i[0]&&(n.autoplay=t[0].autoplayFrame),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function tl(t){let e,i,n;function s(e){t[28](e)}let r={forcePause:t[6],src:t[0].video.streamId&&!t[0].video.transparent?"cfvid://"+t[0].video.streamId:t[0].video.src,width:t[2],height:t[12],frameScale:t[11],controls:t[0].video.controls,destroying:t[22],loop:t[0].video.loop,loopDelay:t[0].video.loopAfter,muted:t[0].video.muted,autoplay:!t[6]&&t[0].video.autoplay,hasTransparentH265:t[0].video.transparent&&t[0].video.hasH265};return void 0!==t[1]&&(r._media=t[1]),e=new ys({props:r}),ut.push((()=>Bt(e,"_media",s))),{c(){qt(e.$$.fragment)},m(t,i){Wt(e,t,i),n=!0},p(t,n){const s={};64&n[0]&&(s.forcePause=t[6]),1&n[0]&&(s.src=t[0].video.streamId&&!t[0].video.transparent?"cfvid://"+t[0].video.streamId:t[0].video.src),4&n[0]&&(s.width=t[2]),4096&n[0]&&(s.height=t[12]),2048&n[0]&&(s.frameScale=t[11]),1&n[0]&&(s.controls=t[0].video.controls),1&n[0]&&(s.loop=t[0].video.loop),1&n[0]&&(s.loopDelay=t[0].video.loopAfter),1&n[0]&&(s.muted=t[0].video.muted),65&n[0]&&(s.autoplay=!t[6]&&t[0].video.autoplay),1&n[0]&&(s.hasTransparentH265=t[0].video.transparent&&t[0].video.hasH265),!i&&2&n[0]&&(i=!0,s._media=t[1],wt((()=>i=!1))),e.$set(s)},i(t){n||(Lt(e.$$.fragment,t),n=!0)},o(t){Pt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function el(t){let e,i,n=t[23]&&(t[9]||t[7]||t[8])&&Za(t);return{c(){n&&n.c(),e=O()},m(t,s){n&&n.m(t,s),I(t,e,s),i=!0},p(t,i){t[23]&&(t[9]||t[7]||t[8])?n?(n.p(t,i),896&i[0]&&Lt(n,1)):(n=Za(t),n.c(),Lt(n,1),n.m(e.parentNode,e)):n&&(At(),Pt(n,1,1,(()=>{n=null})),It())},i(t){i||(Lt(n),i=!0)},o(t){Pt(n),i=!1},d(t){t&&L(e),n&&n.d(t)}}}const il="data-embeds-inside-gl";function nl(t,e,i){var n,s;let r,o,a,l,c,d;const u=lt("micrio"),{current:m,wasm:p,canvas:f}=u;h(t,m,(t=>i(27,d=t)));let{embed:g}=e;const v=d,$=v.$info;g.uuid||(g.uuid=Jt());const w=g.uuid,y=v.is360,b=(null==(n=g.video)?void 0:n.autoplay)??!0;let k=v.embeds.find((t=>{var e;return t.uuid==w||(null==(e=t.$info)?void 0:e.title)==w}));const T=window.matchMedia("(dynamic-range: high)").matches||ie.OSX,x=g.area,_=null==(s=g.src)?void 0:s.toLowerCase().endsWith(".svg"),E=!(!g.width||!g.height)&&g.width*g.height<Math.pow(1024,2),S=/iPhone OS 14_/i.test(navigator.userAgent),M=u.getAttribute(il),A=!(_||S||!T&&!u.hasAttribute(il)||"false"==M||(!g.micrioId||E&&g.src)&&(!g.video||g.video.controls||g.video.transparent)),I=!g.clickAction&&!g.frameSrc,L="href"==g.clickAction?g.clickTarget:void 0,P=L&&g.clickTargetBlank;let N,C=x[2]-x[0],z=x[3]-x[1],D=x[0]+C/2,O=x[1]+z/2,R=g.scale||1,F=g.rotX??0,U=g.rotY??0,V=g.rotZ??0,B=g.scaleX??1,q=g.scaleY??1;function W(){const t=g.area;y&&t[0]>t[2]&&t[0]--,i(24,C=t[2]-t[0]),i(25,z=t[3]-t[1]),D=t[0]+C/2,O=t[1]+z/2,R=g.scale||1,F=g.rotX??0,U=g.rotY??0,V=g.rotZ??0,B=g.scaleX??1,q=g.scaleY??1,i(5,N=`--ratio:${C/z*$.width/$.height};--scale:${C*$.width/(g.width??100)/(A?1:R)*(y?Math.PI/2:1)};`),_&&i(5,N+=`height:${g.height}px`),A&&g.micrioId&&g.width&&i(5,N+=`width:${g.width}px`)}W();let X,G,Y=!1,j=0,H=0,Z="";function K(){var t,e,n;if(v.camera.e&&(i(7,[j,H,X]=v.camera.getXYDirect(D,O),j,i(8,H)),y&&i(9,G=v.camera.getMatrix(D,O,R,1,F,U,V,void 0,B,q).join(",")),i(10,Z=(y?`transform:matrix3d(${G});`:`--x:${j}px;--y:${H}px;--s:${X};`)+(void 0!==g.opacity&&1!==g.opacity?`--opacity:${g.opacity};`:"")),((null==(t=g.video)?void 0:t.pauseWhenSmallerThan)||(null==(e=g.video)?void 0:e.pauseWhenLargerThan))&&r)){const t=Y;i(6,Y=function(){var t,e;if(!(null==(t=g.video)?void 0:t.pauseWhenSmallerThan)&&!(null==(e=g.video)?void 0:e.pauseWhenLargerThan))return!b;const i=X?Math.max(r*X/f.viewport.width,o*X/f.viewport.height):0;return!!(g.video.pauseWhenSmallerThan&&i<g.video.pauseWhenSmallerThan||g.video.pauseWhenLargerThan&&i>g.video.pauseWhenLargerThan)}()),(null==tt?void 0:tt._vid)&&Y!=t&&(Y?tt._vid.pause():((null==(n=null==v?void 0:v.$settings)?void 0:n.embedRestartWhenShown)&&i(26,tt._vid.currentTime=0,tt),tt._vid.play()))}}const J=Ht(!1);g.video&&(g.video.controls||(g.video.muted=!0));const Q=A&&!!g.video;let tt;const et=!A||!!g.clickAction;let it;return rt((()=>{var t,e;const n=[];return A&&function(){const t=g.hideWhenPaused?.01:g.opacity||1;k&&k.ptr>=0?(k.camera.setArea(g.area),k.camera.setRotation(g.rotX,g.rotY,g.rotZ),p.fadeImage(k.ptr,t)):k=v.addEmbed({id:g.video?g.id:g.micrioId,title:w,width:g.width,height:g.height,isPng:g.isPng,isWebP:g.isWebP,isDeepZoom:g.isDeepZoom,path:$.tileBasePath??$.path,isSingle:!!g.video,isVideo:!!g.video,settings:{_360:{rotX:F,rotY:U,rotZ:V}}},g.area,{opacity:t,asImage:!1}),Q&&le(k.visible,{targetValue:!0}).then((()=>{i(26,tt=new Ha(p,k,g,Y,K))})),p.render()}(),(et||(null==(t=g.video)?void 0:t.pauseWhenSmallerThan)||(null==(e=g.video)?void 0:e.pauseWhenLargerThan))&&n.push(v.state.view.subscribe(K)),()=>{var t;for(null==tt||tt.unmount(),k&&(p.fadeImage(k.ptr,0),p.render()),g.video&&g.id&&d&&d.setEmbedMediaElement(g.id);n.length;)null==(t=n.shift())||t()}})),t.$$set=t=>{"embed"in t&&i(0,g=t.embed)},t.$$.update=()=>{16777216&t.$$.dirty[0]&&i(3,r=Math.round(C*$.width)),33554432&t.$$.dirty[0]&&i(4,o=Math.round(z*$.height)),201326595&t.$$.dirty[0]&&g.video&&g.id&&d&&d.setEmbedMediaElement(g.id,it??(null==tt?void 0:tt._vid)),9&t.$$.dirty[0]&&i(2,a=g.video?Math.min(g.video.width,r):r),17&t.$$.dirty[0]&&i(12,l=g.video?Math.min(g.video.height,o):o),12&t.$$.dirty[0]&&i(11,c=r/a)},[g,it,a,r,o,N,Y,j,H,G,Z,c,l,m,y,_,A,I,L,P,function(){d&&"markerId"==g.clickAction&&g.clickTarget&&d.state.marker.set(g.clickTarget)},function(t){if(t&&"detail"in t){const e=t.detail;for(const t in e)i(0,g[t]=e[t],g)}W(),K()},J,et,C,z,tt,d,function(t){it=t,i(1,it)}]}class sl extends Yt{constructor(t){super(),Gt(this,t,nl,el,a,{embed:0},null,[-1,-1])}}function rl(i){let n,s,a,l,c,d,u;return{c(){n=C("svg"),s=C("circle"),a=C("circle"),V(s,"r",al),V(s,"cx",ol/2),V(s,"cy",ol/2),V(s,"fill","transparent"),V(s,"stroke","#e0e0e0"),V(s,"stroke-width","8px"),V(s,"class","micrio-progress-circle"),V(a,"r",al),V(a,"cx",ol/2),V(a,"cy",ol/2),V(a,"fill","transparent"),V(a,"stroke","#00d4ee"),V(a,"stroke-width","8px"),V(a,"stroke-dasharray",i[1]+"px"),V(a,"stroke-dashoffset",l=i[0]+"px"),V(a,"class","micrio-progress-circle"),V(n,"width","100"),V(n,"height","100"),V(n,"viewBox","0 0 "+ol+" "+ol),V(n,"class","micrio-progress-circle")},m(t,e){I(t,n,e),S(n,s),S(n,a),u=!0},p(t,[e]){(!u||1&e&&l!==(l=t[0]+"px"))&&V(a,"stroke-dashoffset",l)},i(t){u||(t&&$t((()=>{u&&(d&&d.end(1),c=Ct(n,_e,{delay:500}),c.start())})),u=!0)},o(i){c&&c.invalidate(),i&&(d=function(i,n,s){const a={direction:"out"};let l,c=n(i,s,a),d=!0;const u=Mt;let h;function m(){const{delay:n=0,duration:s=300,easing:o=e,tick:a=t,css:m}=c||Nt;m&&(l=et(i,1,0,s,n,o,m));const p=b()+n,f=p+s;$t((()=>Et(i,!1,"start"))),"inert"in i&&(h=i.inert,i.inert=!0),_((t=>{if(d){if(t>=f)return a(0,1),Et(i,!1,"end"),--u.r||r(u.c),!1;if(t>=p){const e=o((t-p)/s);a(1-e,e)}}return d}))}return u.r+=1,o(c)?_t().then((()=>{c=c(a),m()})):m(),{end(t){t&&"inert"in i&&(i.inert=h),t&&c.tick&&c.tick(1,0),d&&(l&&it(i,l),d=!1)}}}(n,_e,{})),u=!1},d(t){t&&L(n),t&&d&&d.end()}}}const ol=100,al=40;function ll(t,e,i){let n,{progress:s}=e;const r=2*Math.PI*al;return t.$$set=t=>{"progress"in t&&i(2,s=t.progress)},t.$$.update=()=>{4&t.$$.dirty&&i(0,n=r*(1-s))},[n,r,s]}class cl extends Yt{constructor(t){super(),Gt(this,t,ll,rl,a,{progress:2})}}function dl(t,e,i){const n=t.slice();return n[51]=e[i],n}function ul(t,e,i){const n=t.slice();return n[34]=e[i],n}function hl(t,e,i){const n=t.slice();return n[56]=e[i],n}function ml(t,e,i){const n=t.slice();return n[56]=e[i],n}function pl(t,e,i){const n=t.slice();return n[61]=e[i],n}function fl(t){let e,i;return e=new Hr({props:{volume:t[25],data:t[9],is360:!!t[7].is360}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};33554432&i[0]&&(n.volume=t[25]),512&i[0]&&(n.data=t[9]),128&i[0]&&(n.is360=!!t[7].is360),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function gl(t){let e,n;const s=[{src:t[24]},{volume:t[25]},{is360:!0},{width:t[7].width},{height:t[7].height},t[6]];let r={};for(let o=0;o<s.length;o+=1)r=i(r,s[o]);return e=new ys({props:r}),{c(){qt(e.$$.fragment)},m(t,i){Wt(e,t,i),n=!0},p(t,i){const n=50331840&i[0]?Ut(s,[16777216&i[0]&&{src:t[24]},33554432&i[0]&&{volume:t[25]},s[2],128&i[0]&&{width:t[7].width},128&i[0]&&{height:t[7].height},64&i[0]&&Vt(t[6])]):{};e.$set(n)},i(t){n||(Lt(e.$$.fragment,t),n=!0)},o(t){Pt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function vl(t){let e,i,n=[],s=new Map,r=Dt(t[9].embeds);const o=t=>t[61].uuid;for(let a=0;a<r.length;a+=1){let e=pl(t,r,a),i=o(e);s.set(i,n[a]=$l(i,e))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=O()},m(t,s){for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,s);I(t,e,s),i=!0},p(t,i){512&i[0]&&(r=Dt(t[9].embeds),At(),n=Ft(n,i,o,0,t,r,s,e.parentNode,Rt,$l,e,pl),It())},i(t){if(!i){for(let t=0;t<r.length;t+=1)Lt(n[t]);i=!0}},o(t){for(let e=0;e<n.length;e+=1)Pt(n[e]);i=!1},d(t){t&&L(e);for(let e=0;e<n.length;e+=1)n[e].d(t)}}}function $l(t,e){let i,n,s;return n=new sl({props:{embed:e[61]}}),{key:t,first:null,c(){i=O(),qt(n.$$.fragment),this.first=i},m(t,e){I(t,i,e),Wt(n,t,e),s=!0},p(t,i){e=t;const s={};512&i[0]&&(s.embed=e[61]),n.$set(s)},i(t){s||(Lt(n.$$.fragment,t),s=!0)},o(t){Pt(n.$$.fragment,t),s=!1},d(t){t&&L(i),Xt(n,t)}}}function wl(t){let e,i;return e=new Ie({}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function yl(t){let e,i;return e=new Zi({}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function bl(t){let e,i,n=[],s=new Map,r=Dt(t[26]);const o=t=>t[56].uuid;for(let a=0;a<r.length;a+=1){let e=ml(t,r,a),i=o(e);s.set(i,n[a]=kl(i,e))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=O()},m(t,s){for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,s);I(t,e,s),i=!0},p(t,i){67108864&i[0]&&(r=Dt(t[26]),At(),n=Ft(n,i,o,0,t,r,s,e.parentNode,Rt,kl,e,ml),It())},i(t){if(!i){for(let t=0;t<r.length;t+=1)Lt(n[t]);i=!0}},o(t){for(let e=0;e<n.length;e+=1)Pt(n[e]);i=!1},d(t){t&&L(e);for(let e=0;e<n.length;e+=1)n[e].d(t)}}}function kl(t,e){let i,n,s;return n=new Aa({props:{image:e[56]}}),{key:t,first:null,c(){i=O(),qt(n.$$.fragment),this.first=i},m(t,e){I(t,i,e),Wt(n,t,e),s=!0},p(t,i){e=t;const s={};67108864&i[0]&&(s.image=e[56]),n.$set(s)},i(t){s||(Lt(n.$$.fragment,t),s=!0)},o(t){Pt(n.$$.fragment,t),s=!1},d(t){t&&L(i),Xt(n,t)}}}function Tl(t){let e,i,n=[],s=new Map,r=Dt(t[26].filter(Ol));const o=t=>t[56].uuid;for(let a=0;a<r.length;a+=1){let e=hl(t,r,a),i=o(e);s.set(i,n[a]=xl(i,e))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=O()},m(t,s){for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,s);I(t,e,s),i=!0},p(t,i){67108864&i[0]&&(r=Dt(t[26].filter(Ol)),At(),n=Ft(n,i,o,0,t,r,s,e.parentNode,Rt,xl,e,hl),It())},i(t){if(!i){for(let t=0;t<r.length;t+=1)Lt(n[t]);i=!0}},o(t){for(let e=0;e<n.length;e+=1)Pt(n[e]);i=!1},d(t){t&&L(e);for(let e=0;e<n.length;e+=1)n[e].d(t)}}}function xl(t,e){let i,n,s;return n=new Qi({props:{image:e[56]}}),{key:t,first:null,c(){i=O(),qt(n.$$.fragment),this.first=i},m(t,e){I(t,i,e),Wt(n,t,e),s=!0},p(t,i){e=t;const s={};67108864&i[0]&&(s.image=e[56]),n.$set(s)},i(t){s||(Lt(n.$$.fragment,t),s=!0)},o(t){Pt(n.$$.fragment,t),s=!1},d(t){t&&L(i),Xt(n,t)}}}function _l(t){let e,i;return e=new In({props:{hasAudio:t[23]||!(!t[24]||!t[6]||t[6].muted)}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};25165888&i[0]&&(n.hasAudio=t[23]||!(!t[24]||!t[6]||t[6].muted)),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function El(t){let e,i;return e=new Dr({props:{images:t[4],omni:t[3]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};16&i[0]&&(n.images=t[4]),8&i[0]&&(n.omni=t[3]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Sl(t){let e,i;return e=new ze({props:{organisation:t[21]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};2097152&i[0]&&(n.organisation=t[21]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Ml(t){let e,i;return e=new oo({props:{info:t[11],data:t[12]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};2048&i[0]&&(n.info=t[11]),4096&i[0]&&(n.data=t[12]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Al(t,e){let i,n,s;return n=new Ys({props:{marker:e[34]}}),{key:t,first:null,c(){i=O(),qt(n.$$.fragment),this.first=i},m(t,e){I(t,i,e),Wt(n,t,e),s=!0},p(t,i){e=t;const s={};1024&i[0]&&(s.marker=e[34]),n.$set(s)},i(t){s||(Lt(n.$$.fragment,t),s=!0)},o(t){Pt(n.$$.fragment,t),s=!1},d(t){t&&L(i),Xt(n,t)}}}function Il(t){let e,i;return e=new kr({props:{tour:t[8],noHTML:t[0]}}),e.$on("minimize",t[43]),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};256&i[0]&&(n.tour=t[8]),1&i[0]&&(n.noHTML=t[0]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Ll(t){let e,i;return e=new qo({props:{popover:t[27]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};134217728&i[0]&&(n.popover=t[27]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Pl(t,e){let i,n,s;return n=new Fn({props:{src:e[51],raised:e[14]}}),{key:t,first:null,c(){i=O(),qt(n.$$.fragment),this.first=i},m(t,e){I(t,i,e),Wt(n,t,e),s=!0},p(t,i){e=t;const s={};32768&i[0]&&(s.src=e[51]),16384&i[0]&&(s.raised=e[14]),n.$set(s)},i(t){s||(Lt(n.$$.fragment,t),s=!0)},o(t){Pt(n.$$.fragment,t),s=!1},d(t){t&&L(i),Xt(n,t)}}}function Nl(t){let e,i;return e=new co({props:{message:t[2]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};4&i[0]&&(n.message=t[2]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function Cl(t){let e,i;return e=new cl({props:{progress:t[1]}}),{c(){qt(e.$$.fragment)},m(t,n){Wt(e,t,n),i=!0},p(t,i){const n={};2&i[0]&&(n.progress=t[1]),e.$set(n)},i(t){i||(Lt(e.$$.fragment,t),i=!0)},o(t){Pt(e.$$.fragment,t),i=!1},d(t){Xt(e,t)}}}function zl(t){let e,i,n,s,r,o,a,l,c,d,u,h,m,p,f,g,v,$,w=[],y=new Map,b=[],k=new Map,T=t[23]&&t[9]&&t[7]&&fl(t),x=t[24]&&t[7]&&gl(t),_=t[28]&&t[9]&&t[9].embeds&&vl(t),E=t[5]&&wl(),S=t[16]&&yl(),M=t[22]&&bl(t),A=t[20]&&Tl(t),P=t[18]&&_l(t),N=t[19]&&El(t),C=t[21]&&Sl(t),z=t[17]&&Ml(t),R=Dt(t[10]);const F=t=>t[34].id;for(let I=0;I<R.length;I+=1){let e=ul(t,R,I),i=F(e);y.set(i,w[I]=Al(i,e))}let U=t[8]&&Il(t),V=t[27]&&Ll(t),B=Dt(t[15]);const q=t=>t[51];for(let I=0;I<B.length;I+=1){let e=dl(t,B,I),i=q(e);k.set(i,b[I]=Pl(i,e))}let W=t[2]&&Nl(t),X=t[1]<1&&Cl(t);return{c(){T&&T.c(),e=D(),x&&x.c(),i=D(),_&&_.c(),n=D(),E&&E.c(),s=D(),S&&S.c(),r=D(),M&&M.c(),o=D(),A&&A.c(),a=D(),P&&P.c(),l=D(),N&&N.c(),c=D(),C&&C.c(),d=D(),z&&z.c(),u=D();for(let t=0;t<w.length;t+=1)w[t].c();h=D(),U&&U.c(),m=D(),V&&V.c(),p=D();for(let t=0;t<b.length;t+=1)b[t].c();f=D(),W&&W.c(),g=D(),X&&X.c(),v=O()},m(t,y){T&&T.m(t,y),I(t,e,y),x&&x.m(t,y),I(t,i,y),_&&_.m(t,y),I(t,n,y),E&&E.m(t,y),I(t,s,y),S&&S.m(t,y),I(t,r,y),M&&M.m(t,y),I(t,o,y),A&&A.m(t,y),I(t,a,y),P&&P.m(t,y),I(t,l,y),N&&N.m(t,y),I(t,c,y),C&&C.m(t,y),I(t,d,y),z&&z.m(t,y),I(t,u,y);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(t,y);I(t,h,y),U&&U.m(t,y),I(t,m,y),V&&V.m(t,y),I(t,p,y);for(let e=0;e<b.length;e+=1)b[e]&&b[e].m(t,y);I(t,f,y),W&&W.m(t,y),I(t,g,y),X&&X.m(t,y),I(t,v,y),$=!0},p(t,$){t[23]&&t[9]&&t[7]?T?(T.p(t,$),8389248&$[0]&&Lt(T,1)):(T=fl(t),T.c(),Lt(T,1),T.m(e.parentNode,e)):T&&(At(),Pt(T,1,1,(()=>{T=null})),It()),t[24]&&t[7]?x?(x.p(t,$),16777344&$[0]&&Lt(x,1)):(x=gl(t),x.c(),Lt(x,1),x.m(i.parentNode,i)):x&&(At(),Pt(x,1,1,(()=>{x=null})),It()),t[28]&&t[9]&&t[9].embeds?_?(_.p(t,$),512&$[0]&&Lt(_,1)):(_=vl(t),_.c(),Lt(_,1),_.m(n.parentNode,n)):_&&(At(),Pt(_,1,1,(()=>{_=null})),It()),t[5]?E?32&$[0]&&Lt(E,1):(E=wl(),E.c(),Lt(E,1),E.m(s.parentNode,s)):E&&(At(),Pt(E,1,1,(()=>{E=null})),It()),t[16]?S?65536&$[0]&&Lt(S,1):(S=yl(),S.c(),Lt(S,1),S.m(r.parentNode,r)):S&&(At(),Pt(S,1,1,(()=>{S=null})),It()),t[22]?M?(M.p(t,$),4194304&$[0]&&Lt(M,1)):(M=bl(t),M.c(),Lt(M,1),M.m(o.parentNode,o)):M&&(At(),Pt(M,1,1,(()=>{M=null})),It()),t[20]?A?(A.p(t,$),1048576&$[0]&&Lt(A,1)):(A=Tl(t),A.c(),Lt(A,1),A.m(a.parentNode,a)):A&&(At(),Pt(A,1,1,(()=>{A=null})),It()),t[18]?P?(P.p(t,$),262144&$[0]&&Lt(P,1)):(P=_l(t),P.c(),Lt(P,1),P.m(l.parentNode,l)):P&&(At(),Pt(P,1,1,(()=>{P=null})),It()),t[19]?N?(N.p(t,$),524288&$[0]&&Lt(N,1)):(N=El(t),N.c(),Lt(N,1),N.m(c.parentNode,c)):N&&(At(),Pt(N,1,1,(()=>{N=null})),It()),t[21]?C?(C.p(t,$),2097152&$[0]&&Lt(C,1)):(C=Sl(t),C.c(),Lt(C,1),C.m(d.parentNode,d)):C&&(At(),Pt(C,1,1,(()=>{C=null})),It()),t[17]?z?(z.p(t,$),131072&$[0]&&Lt(z,1)):(z=Ml(t),z.c(),Lt(z,1),z.m(u.parentNode,u)):z&&(At(),Pt(z,1,1,(()=>{z=null})),It()),1024&$[0]&&(R=Dt(t[10]),At(),w=Ft(w,$,F,0,t,R,y,h.parentNode,Rt,Al,h,ul),It()),t[8]?U?(U.p(t,$),256&$[0]&&Lt(U,1)):(U=Il(t),U.c(),Lt(U,1),U.m(m.parentNode,m)):U&&(At(),Pt(U,1,1,(()=>{U=null})),It()),t[27]?V?(V.p(t,$),134217728&$[0]&&Lt(V,1)):(V=Ll(t),V.c(),Lt(V,1),V.m(p.parentNode,p)):V&&(At(),Pt(V,1,1,(()=>{V=null})),It()),49152&$[0]&&(B=Dt(t[15]),At(),b=Ft(b,$,q,0,t,B,k,f.parentNode,Rt,Pl,f,dl),It()),t[2]?W?(W.p(t,$),4&$[0]&&Lt(W,1)):(W=Nl(t),W.c(),Lt(W,1),W.m(g.parentNode,g)):W&&(At(),Pt(W,1,1,(()=>{W=null})),It()),t[1]<1?X?(X.p(t,$),2&$[0]&&Lt(X,1)):(X=Cl(t),X.c(),Lt(X,1),X.m(v.parentNode,v)):X&&(At(),Pt(X,1,1,(()=>{X=null})),It())},i(t){if(!$){Lt(T),Lt(x),Lt(_),Lt(E),Lt(S),Lt(M),Lt(A),Lt(P),Lt(N),Lt(C),Lt(z);for(let t=0;t<R.length;t+=1)Lt(w[t]);Lt(U),Lt(V);for(let t=0;t<B.length;t+=1)Lt(b[t]);Lt(W),Lt(X),$=!0}},o(t){Pt(T),Pt(x),Pt(_),Pt(E),Pt(S),Pt(M),Pt(A),Pt(P),Pt(N),Pt(C),Pt(z);for(let e=0;e<w.length;e+=1)Pt(w[e]);Pt(U),Pt(V);for(let e=0;e<b.length;e+=1)Pt(b[e]);Pt(W),Pt(X),$=!1},d(t){t&&(L(e),L(i),L(n),L(s),L(r),L(o),L(a),L(l),L(c),L(d),L(u),L(h),L(m),L(p),L(f),L(g),L(v)),T&&T.d(t),x&&x.d(t),_&&_.d(t),E&&E.d(t),S&&S.d(t),M&&M.d(t),A&&A.d(t),P&&P.d(t),N&&N.d(t),C&&C.d(t),z&&z.d(t);for(let e=0;e<w.length;e+=1)w[e].d(t);U&&U.d(t),V&&V.d(t);for(let e=0;e<b.length;e+=1)b[e].d(t);W&&W.d(t),X&&X.d(t)}}}function Dl(t,e){if(e)for(let i,n=0;n<e.length;n++)if(e[n].id==t||(i=Dl(t,e[n].children)))return i??e[n]}const Ol=t=>t.$settings.minimap;function Rl(e,i,n){let s,r,o,a,l,c,m,p,f,g,v,$,w,y,b,k,T,x,_,E,S,M,A,I,L=t,P=()=>(L(),L=d(Y,(t=>n(41,k=t))),Y),N=t,C=t;e.$$.on_destroy.push((()=>L())),e.$$.on_destroy.push((()=>N())),e.$$.on_destroy.push((()=>C()));let{micrio:z}=i;at("micrio",z);at("markerImages",new WeakMap);let{noHTML:D}=i;const O="markers"==z.getAttribute("data-ui");O&&(D=!0);let{noLogo:R=D}=i,{loadingProgress:F=1}=i,{error:U}=i;const V="false"!=z.getAttribute("data-embeds"),B=z.visible;h(e,B,(t=>n(26,A=t)));const q=z.state.popup,W=z.state.popover;h(e,W,(t=>n(27,I=t)));let X,G,Y,j=[];q.subscribe((t=>setTimeout((()=>n(10,j=t?[t]:[])),20)));const{tour:H,marker:Z}=z.state;h(e,H,(t=>n(8,x=t))),h(e,Z,(t=>n(42,_=t)));let K,J=!1;const Q=[];z.current.subscribe((t=>{t&&(n(11,X=t.info),N(),N=d(X,(t=>n(7,T=t))),P(n(13,Y=void 0)),X&&le(X).then((e=>{var i;e&&(n(37,J=!0),P(n(13,Y=t.settings)),!K&&(null==(i=e.organisation)?void 0:i.logo)&&n(38,K=e.organisation))})),n(12,G=t.data),C(),C=d(G,(t=>n(9,E=t))),G&&Q.indexOf(t.id)<0&&le(G).then((async e=>{var i,n;if(!e)return;if(Q.push(t.id),await vt().then(vt),u(z.state.popover)||u(z.state.marker)||u(z.state.tour))return;const s=t.$settings.start;if(s)switch(s.type){case"marker":t.state.marker.set(s.id);break;case"markerTour":const r=null==(i=e.markerTours)?void 0:i.find((t=>t.id==s.id));r&&z.state.tour.set(r);break;case"tour":const o=null==(n=e.tours)?void 0:n.find((t=>t.id==s.id));o&&z.state.tour.set(o);break;case"page":const a=Dl(s.id,e.pages);a&&z.state.popover.set({contentPage:a,showLangSelect:!0})}})))}));const tt=z.isMuted;h(e,tt,(t=>n(44,S=t)));const et=Ht(S?0:1);h(e,et,(t=>n(25,M=t))),at("volume",et),z.isMuted.subscribe((t=>et.set(t?0:1))),at("mediaPaused",Ht(!1));let it=!1,nt=[];at("srt",Ht()).subscribe((t=>setTimeout((()=>{n(15,nt=t?[t]:[])}),20)));return e.$$set=t=>{"micrio"in t&&n(35,z=t.micrio),"noHTML"in t&&n(0,D=t.noHTML),"noLogo"in t&&n(36,R=t.noLogo),"loadingProgress"in t&&n(1,F=t.loadingProgress),"error"in t&&n(2,U=t.error)},e.$$.update=()=>{var t,i,d;1024&e.$$.dirty[1]&&n(6,s=null==(t=null==k?void 0:k._360)?void 0:t.video),64&e.$$.dirty[0]&&n(24,r=null==s?void 0:s.src),1024&e.$$.dirty[1]&&n(3,o=null==k?void 0:k.omni),128&e.$$.dirty[0]&&n(4,a=null==T?void 0:T.gallery),512&e.$$.dirty[0]&&n(40,l=null==(i=null==E?void 0:E.markers)?void 0:i.filter((t=>!!t.positionalAudio))),512&e.$$.dirty[0]|512&e.$$.dirty[1]&&n(23,c=!!(null==(d=null==E?void 0:E.music)?void 0:d.items.length)||!!(null==l?void 0:l.length)),256&e.$$.dirty[0]|2048&e.$$.dirty[1]&&n(39,m=x||_),1&e.$$.dirty[0]&&n(22,p=!D||O),129&e.$$.dirty[0]|1056&e.$$.dirty[1]&&n(5,f=!(R||T&&D||(null==k?void 0:k.noLogo))),33&e.$$.dirty[0]|1152&e.$$.dirty[1]&&n(21,g=D||!f||(null==k?void 0:k.noOrgLogo)?void 0:K),393&e.$$.dirty[0]|16&e.$$.dirty[1]&&n(20,v=!(D||o||z.spaceData||x||(null==T?void 0:T.gallery))),24&e.$$.dirty[0]&&n(19,$=!!a||!!o),129&e.$$.dirty[0]&&n(18,w=!D&&!!T),1&e.$$.dirty[0]|1280&e.$$.dirty[1]&&n(17,y=!D&&!m&&(null==k?void 0:k.showInfo)),1&e.$$.dirty[0]|1088&e.$$.dirty[1]&&n(16,b=!D&&J&&!(null==k?void 0:k.noToolbar))},[D,F,U,o,a,f,s,T,x,E,j,X,G,Y,it,nt,b,y,w,$,v,g,p,c,r,M,A,I,V,B,W,H,tt,et,Z,z,R,J,K,m,l,k,_,t=>n(14,it=!t.detail)]}const Fl=!self.createImageBitmap,Ul=URL.createObjectURL(new Blob(["let controller = null, prevUri = null;\nself.addEventListener('message', e => {\n\tif(e.data == 'abort') return controller && controller.abort();\n\tcontroller = new AbortController();\n\tfetch(e.data.src, { signal: controller.signal })\n\t\t.then(r => r.blob())"+(Fl?"\n\t\t.then(blob => {\n\t\t\tURL.revokeObjectURL(prevUri);\n\t\t\tself.postMessage({src: (prevUri = URL.createObjectURL(blob, {type: e.data.type}))})\n\t\t})":"\n\t\t.then(blob => self.createImageBitmap(blob))\n\t\t.then(data => self.postMessage({data:data, src:e.data.src}, [data]))")+"\n\t\t.catch(err => self.postMessage({error: e.data.src+': '+err.message, type: err.name}))\n})"],{type:"text/javascript"})),Vl=Math.max(2,Math.min(6,(navigator.hardwareConcurrency||2)-1)),Bl=[],ql=new Map,Wl=new Map,Xl=[],Gl=new Map;for(let bc=0;bc<Vl;bc++){const t=new Worker(Ul);t.onmessage=t=>jl(bc,t.data.src,t.data.data,t.data.error,t.data.type),ql.set(bc,t),Wl.set(bc,new Image)}const Yl=t=>new Promise(((e,i)=>{Xl.push([t,e,i]),function(){if(!Xl.length)return;let t=0;for(;t<Vl&&!(Bl.indexOf(t)<0);t++);if(t>=Vl&&!Fl)return void console.warn("All download threads taken!");Bl.push(t);const e=Xl.shift();if(!e)return;Gl.set(t,e);const i=ql.get(t);if(!i)return;i.postMessage({src:e[0],type:"image/"+e[0].split(".").reverse()[0]})}()}));function jl(t,e,i,n,s){const r=Gl.get(t);if(null!=r)if(Gl.delete(t),setTimeout((()=>{Bl.splice(Bl.indexOf(t),1)}),50),n)r[2](n),"AbortError"!=s&&console.error(s,n);else if(i)r[1](i);else if(e){const i=Wl.get(t);if(!i)return;i.onload=()=>{r[1](i)},i.src=e}}function Hl(){return Bl.length}function Zl(t){const e=[...Gl.entries()].find((e=>e[1][0]==t));if(null==e)return;const i=ql.get(e[0]);i&&i.postMessage("abort")}const Kl=Ca.ugz?Ca.ugz(Ca.b64,!0):fetch("http://localhost:2000/build/optimized.wasm").then((t=>t.arrayBuffer())),Jl=class t{constructor(t){this.micrio=t,this.ready=!1,this.memory=new self.WebAssembly.Memory({initial:100,maximum:100}),this.b=this.memory.buffer,this.i=-1,this.c=-1,this.now=-1,this.raf=-1,this.drawing=!1,this.images=[],this.bareBone=!1,this.baseTiles=[],this.drawn=[],this.prevDrawn=[],this.toDelete={},this.textures={},this.requests=new Map,this.timeouts={},this.tileLoaded={},this.tileOpacity={},this.loadStates={},this.unsubscribe=[],this.cameras=new Map,this.preventDirectionSet=!1,this._pMatrices={},this.isGallery=!1,this.imports={env:{memory:this.memory,abort:console.error},main:{"console.log":console.log,"console.log2":console.log,"console.log3":console.log,"console.log4":console.log,drawTile:this.drawTile.bind(this),drawQuad:t=>this.micrio.webgl.drawTile(void 0,t),aniAbort:t=>{const e=this.cameras.get(t);e&&(e.aniAbort&&e.aniAbort(),e.aniDoneAdd.length=0,e.aniAbort=e.aniDone=void 0)},aniDone:t=>{var e;const i=this.cameras.get(t);if(i){for(i.aniDone&&i.aniDone();i.aniDoneAdd.length;)null==(e=i.aniDoneAdd.shift())||e();i.aniAbort=i.aniDone=void 0}},getTileOpacity:t=>this.tileOpacity[t],setTileOpacity:(t,e=!1,i=1)=>{const n=this.tileOpacity,s=this.tileLoaded;return(!n[t]||n[t]<1)&&(n[t]=e?1:s[t]>0?Math.min(1,(this.now-s[t])/250)*i:0),n[t]||0},setMatrix:t=>this.micrio.webgl.gl.uniformMatrix4fv(this.micrio.webgl.pmLoc,!1,this._pMatrices[t]),setViewport:(t,e,i,n)=>this.micrio.webgl.gl.viewport(Math.floor(t),Math.floor(e),Math.ceil(i),Math.ceil(n)),viewSet:t=>{var e;return null==(e=this.cameras.get(t))?void 0:e.viewChanged()},viewportSet:(t,e,i,n,s)=>{const r=this.images.find((e=>e.ptr==t));r&&"camera"in r&&r.viewport.set([e,i,n,s])},setVisible:(t,e)=>{var i;return null==(i=this.images.find((e=>e.ptr==t)))?void 0:i.visible.set(1===e)},setVisible2:(t,e)=>{var i;return null==(i=this.images.find((e=>e.ptr==t)))?void 0:i.visible.set(1===e)}}},this.addImage=async(t,e,i=!1,n=1)=>le(t.info).then((s=>{if(!s)return;this.images.push(t);const r=t.opts.area??[0,0,1,1],o=t.$settings._360??{};if(t.ptr=i?this.e._addImage(e.ptr,r[0],r[1],r[2],r[3],s.width,s.height,s.tileSize||1024,s.isSingle??!1,s.isVideo??!1,n,o.rotX??0,o.rotY??0,o.rotZ??0,o.scale??1,0):this.e._addChild(e.ptr,r[0],r[1],r[2],r[3],s.width,s.height),!i){this.bindCamera(t),t.$settings.focus&&this.e._setCoo(t.ptr,t.$settings.focus[0],t.$settings.focus[1],0,0,performance.now());const e=this.e._getPMatrix(t.ptr);this._pMatrices[e]=new Float32Array(this.b,e+32,16);const i=t.$info.view;i&&"0,0,1,1"!=i.toString()&&this.e._setView(t.ptr,i[0],i[1],i[2],i[3]),this.e._sendViewport(t.ptr)}this.tileOpacity[t.baseTileIdx=this.e.getNumTiles(this.i)-1]=1,this.baseTiles.push(t.baseTileIdx)})),this.addEmbed=(t,e,i={})=>{if("camera"in t&&i.asImage)return this.addImage(t,e,!0,i.opacity??1);{const n="$info"in t?t.$info:e.$info;if(!n)return;this.images.push(t);const s=t.opts.area??[0,0,1,1],r=t instanceof ja?t.$settings._360??{}:{};t.ptr=this.e._addImage(e.ptr,s[0],s[1],s[2],s[3],n.width,n.height,n.tileSize||1024,n.isSingle??!1,n.isVideo??!1,i.opacity??1,r.rotX??0,r.rotY??0,r.rotZ??0,r.scale??1,i.fromScale??0),this.tileOpacity[t.baseTileIdx=this.e.getNumTiles(this.i)-1]=1,this.baseTiles.push(t.baseTileIdx)}},this.addChild=(t,e)=>this.addImage(t,e),this.render=this.render.bind(this),this.draw=this.draw.bind(this),this.unsubscribe.push(t.current.subscribe(this.setCanvas.bind(this)))}static getTextureBuffer(t,e){const i=new Float32Array(12*t*e),n=1/t,s=1/e;for(let r=0,o=0;o<e;o++)for(let e=0;e<t;e++,r+=12)i[r+3]=i[r+7]=i[r+9]=(i[r+1]=i[r+5]=i[r+11]=o*s)+s,i[r+4]=i[r+8]=i[r+10]=(i[r+0]=i[r+2]=i[r+6]=e*n)+n;return i}async load(){if(this.i>=0)return;this.i=0;const e=await Kl;if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw"Wasm binary is no array buffer!";const i=this.e=(await self.WebAssembly.instantiate(e,this.imports)).instance.exports;this.i=i.constructor(),t.segsX=this.e.segsX.value,t.segsY=this.e.segsY.value,t._textureBuffer360=t.getTextureBuffer(t.segsX,t.segsY),this._vertexBuffer=new Float32Array(this.b,i.getVertexBuffer(this.i)+32,18),this._vertexBuffer360=new Float32Array(this.b,i.getVertexBuffer360(this.i)+32,18*t.segsX*t.segsY),this.unsubscribe.push(this.micrio.barebone.subscribe((t=>i.setBareBone(this.i,this.bareBone=t))))}unbind(){var t;for(this.stop();this.unsubscribe.length;)null==(t=this.unsubscribe.shift())||t();this.requests.forEach((t=>Zl(t))),this.requests.clear();for(let e in this.timeouts)clearTimeout(this.timeouts[e]);this.timeouts={},this.loadStates={},this.tileLoaded={},this.tileOpacity={};for(let e in this.tileLoaded)this.deleteTile(Number(e));this.i>0&&this.e.reset(this.i)}getPtr(){return this.i}addCanvas(t){var e,i,n,s,r,o,a,l,c,d,h;const m=t.$info;if(!m)return;if(t.error)return void this.micrio.loading.set(!1);if(!(t.noImage||m.width&&m.height))throw"Invalid Micrio image size";const p=t.$settings;this.isGallery=!!m.gallery||t.isOmni,(null==(e=p.gallery)?void 0:e.archive)&&this.e.setHasArchive(this.i,!0,p.gallery.archiveLayerOffset??0),m.version&&Number(m.version)<=3.1&&this.e.setNoUnderzoom(this.i,!0);const f=!!p.limitToCoverScale,g=f||"cover"==p.initType;t.noImage&&this.micrio.loading.set(!1);const v=[.5,.5],$=p.focus,w=!!m.spacesId;$&&(isNaN($[0])||null===$[0]||(v[0]=$[0]),isNaN($[1])||null===$[1]||(v[1]=$[1])),m.is360&&(t.camera.trueNorth=(null==(i=p._360)?void 0:i.trueNorth)??.5);const y=null==(n=p._360)?void 0:n.video,b=m.is360&&y&&(y.src||"video"in y&&y.video),k=!!this.isGallery&&("switch"==(null==(s=p.gallery)?void 0:s.type)||"omni"==(null==(r=p.gallery)?void 0:r.type)||"swipe-full"==(null==(o=p.gallery)?void 0:o.type)),T=(null==(l=null==(a=p.omni)?void 0:a.layers)?void 0:l.length)??1;p.omni&&(p.omni.layerStartIndex=Math.min(T-1,(null==(c=p.omni)?void 0:c.layerStartIndex)??0)),t.ptr=this.e._constructor(this.i,m.width,m.height,m.tileSize??1024,m.is360??!1,t.noImage,!(!m.isSingle&&!b),t.opacity,p.freeMove??!1,f,g,(p.zoomLimit||1)*(!1!==p.zoomLimitDPRFix?this.micrio.canvas.getRatio(t.$settings):1),p.camspeed??1,t.camera.trueNorth,k,!!(null==(d=p.gallery)?void 0:d.isSpreads)&&"swipe"==p.gallery.type,t.isOmni,p.pinchZoomOutLimit??!1,T,(null==(h=p.omni)?void 0:h.layerStartIndex)??0),this.bindCamera(t),t.opts.area&&t.camera.setArea(t.opts.area,{direct:!0,noDispatch:!0,noRender:!0}),(null==p?void 0:p.crossfadeDuration)&&this.e.setCrossfadeDuration(this.i,p.crossfadeDuration),(null==p?void 0:p.embedFadeDuration)&&this.e.setEmbedFadeDuration(this.i,p.embedFadeDuration),void 0!==(null==p?void 0:p.dragElasticity)&&this.e.setDragElasticity(this.i,p.dragElasticity),(null==p?void 0:p.skipBaseLevels)&&this.e.setSkipBaseLevels(this.i,p.skipBaseLevels),(null==p?void 0:p.omni)&&t.camera.setOmniSettings(),this.micrio.hasAttribute("data-limited")&&this.e._setLimited(t.ptr,!0),this.images.push(t),this.e._sendViewport(t.ptr);const x=this.e.getNumTiles(this.i);x>0&&(this.tileOpacity[x-1]=1,this.baseTiles.push(x-1));const _=this.e._getPMatrix(t.ptr);this._pMatrices[_]=new Float32Array(this.b,_+32,16);const E=u(t.state.view)||p.view;E&&"0,0,1,1"!=E.toString()?this.e._setView(t.ptr,E[0],E[1],E[2],E[3],!1,!1,!1):!w&&m.is360||!v||"0.5,0.5"==v.toString()||(this.e._setCoo(t.ptr,v[0],v[1],0,0,performance.now()),p.focus=void 0),t.video.subscribe((t=>t&&t.addEventListener("play",this.render))),t.noImage&&t.visible.set(!0),this.setCanvas(t)}bindCamera(t){this.cameras.set(t.ptr,t.camera),t.camera.assign(this.e,new Float64Array(this.b,this.e._getView(t.ptr)+32,4),new Float64Array(this.b,this.e._getXY(t.ptr,0,0)+32,5),new Float64Array(this.b,this.e._getCoo(t.ptr,0,0)+32,5),new Float32Array(this.b,this.e._getMatrix(t.ptr)+32,16),new Float32Array(this.b,this.e._getQuad(t.ptr,0,0,0,0,0,0)+32,16))}setCanvas(t){var e;if(t&&!(t.ptr>0&&t.ptr==this.c))if(t.ptr<0)le(t.info).then((e=>{e&&this.micrio.$current&&(e.isIIIF||t.opts.secondaryTo||e.id==this.micrio.$current.id)&&(this.addCanvas(t),t.embeds.length&&t.embeds.forEach((e=>this.addEmbed(e,t))))}));else if(this.c!=t.ptr){const i=t.is360&&this.c>=0?this.e._getYaw(this.c):0,n=t.is360&&this.c>=0?this.e._getPitch(this.c):0;this.c=t.ptr,t.is360&&!this.preventDirectionSet&&i&&n&&this.e._setDirection(this.c,i,n,!0),0==this.e._getTargetOpacity(t.ptr)&&this.e._fadeIn(t.ptr),(null==(e=t.$settings.omni)?void 0:e.layerStartIndex)&&t.state.layer.set(t.$settings.omni.layerStartIndex),this.preventDirectionSet=!1,this.ready=!0,this.render()}}removeCanvas(t){if(t.ptr<0)throw"Canvas is not placed yet";this.e._remove(t.ptr),this.render()}render(){this.raf<0&&(this.raf=this.micrio.webgl.display.requestAnimationFrame(this.draw))}draw(t=performance.now()){var e,i;this.micrio.isConnected&&(this.raf=-1,this.drawing=!1,this.now=t,(1==this.e.shouldDraw(this.i,t)||this.micrio.keepRendering||this.micrio.events.isNavigating||!1===(null==(i=null==(e=this.micrio._current)?void 0:e._video)?void 0:i.paused))&&this.render(),this.isGallery&&this.drawStart(),this.drawn.length=0,this.e.draw(this.i),this.micrio.events.dispatch("draw"),this.cleanup(),this.micrio.webgl.drawEnd())}stop(){this.raf<0||(this.micrio.webgl.display.cancelAnimationFrame(this.raf),this.raf=-1)}drawTile(t,e,i,n,s,r,o,a){this.drawn.push(e),e in this.toDelete&&delete this.toDelete[e];const l=Hl(),c=this.images[t],d="camera"in c&&c.isVideo,u="camera"in c&&c.is360,h="camera"in c?c:c.image,m="frame"in c?c.frame:void 0;if(!this.loadStates[e]&&l<Vl){if(this.bareBone?l>2&&o:a&&o&&l>0)return!1;if(d&&!u)this.loadStates[e]=2,this.textures[e]=this.micrio.webgl.getTexture();else{this.loadStates[e]=1;const t=h.getTileSrc(i,n,s,m);t&&this.getTexture(e,t,o,{noSmoothing:"$info"in c&&c.$settings.noSmoothing})}}else if(this.loadStates[e]>=2){this.drawing||this.drawStart();const t=this.textures[e];if(null!=t){if(d){if(!h._video||!h._video.dataset.playing)return!1;this.micrio.webgl.updateTexture(t,h._video)}this.micrio.webgl.drawTile(t,r,u)}if(2==this.loadStates[e])return this.loadStates[e]=3,this.tileLoaded[e]=this.now,!0}return!1}drawStart(){this.drawing||(this.micrio.webgl.drawStart(),this.drawing=!0)}getTexture(t,e,i,n={}){if(this.textures[t]||this.requests.has(t)||!n.force&&Hl()>=Vl)return;const s=Ga.db.has(e);s||this.micrio.loading.set(!0),this.requests.set(t,e),(s?Ga.getImage(e):Yl(e)).then((e=>this.gotTexture(t,e,i,n.noSmoothing))).catch((()=>this.deleteRequest(t)))}gotTexture(t,e,i,n){this.textures[t]=this.micrio.webgl.getTexture(e,n),null!=self.ImageBitmap&&e instanceof ImageBitmap&&e.close instanceof Function&&e.close(),this.loadStates[t]=2,this.timeouts[t]=setTimeout((()=>{this.deleteRequest(t)}),i?150:50)}deleteRequest(t){this.requests.delete(t),clearTimeout(this.timeouts[t]),delete this.timeouts[t],this.requests.size||this.micrio.loading.set(!1)}deleteTile(t){const e=this.textures[t];e&&(this.micrio.webgl.gl.deleteTexture(e),delete this.textures[t],delete this.toDelete[t],delete this.loadStates[t],delete this.tileOpacity[t],delete this.tileLoaded[t])}cleanup(){const t=this.prevDrawn.filter((t=>this.drawn.indexOf(t)<0&&this.loadStates[t]>0&&this.baseTiles.indexOf(t)<0)),e=performance.now();for(let n=0;n<t.length;n++){const i=t[n];switch(this.tileOpacity[n]=0,this.loadStates[i]){case 1:const t=this.requests.get(i);t&&Zl(t),delete this.loadStates[i];break;case 2:this.requests.has(i)&&this.deleteRequest(i),delete this.loadStates[i],this.deleteTile(i);break;case 3:i in this.toDelete||(this.toDelete[i]=e)}}this.prevDrawn=this.drawn.slice(0);const i=ie.iOS?5:30;for(let n in this.toDelete)(e-this.toDelete[n])/1e3>i&&this.deleteTile(Number(n))}resize(t){this.e.resize(this.i,t.width,t.height,t.left,t.top,t.ratio,t.scale,t.portrait),this.ready&&(this.stop(),this.draw())}setActiveImage(t,e,i){this.e._setActiveImage(t,e,i??0)}setActiveLayer(t,e){this.e._setActiveLayer(t,e)}fadeImage(t,e,i=!1){this.cameras.has(t)?this.e._fadeTo(t,e,i):this.e._fadeImage(t,e,i),this.render()}setFocus(t,e,i=!1){this.e._setFocus(t,e[0],e[1],e[2],e[3],i)}};Jl._textureBuffer=Jl.getTextureBuffer(1,1);let Ql=Jl;const tc=new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);class ec{constructor(t,e,i){if(this.gl=t,this.program=t.createProgram(),e.webgl.getShader(this.program,t.VERTEX_SHADER,"\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nvarying vec2 v_texCoord;\n\nvoid main() {\n\tv_texCoord = a_texCoord;\n\tgl_Position = vec4(a_position, 0.0, 1.0);\n}"),e.webgl.getShader(this.program,t.FRAGMENT_SHADER,i),t.linkProgram(this.program),t.useProgram(this.program),this.ppPositionLoc=t.getAttribLocation(this.program,"a_position"),this.ppTexCoordLoc=t.getAttribLocation(this.program,"a_texCoord"),this.ppTimeLoc=t.getUniformLocation(this.program,"u_time"),this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight,0,t.RGBA,t.UNSIGNED_BYTE,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),this.frameBuffer=t.createFramebuffer(),t.bindFramebuffer(t.FRAMEBUFFER,this.frameBuffer),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture,0),!this.frameBuffer||t.checkFramebufferStatus(t.FRAMEBUFFER)!==t.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer not complete");t.bindFramebuffer(t.FRAMEBUFFER,null),this.quad=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,this.quad),t.bufferData(t.ARRAY_BUFFER,tc,t.STATIC_DRAW)}render(){const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,null),t.useProgram(this.program),t.bindBuffer(t.ARRAY_BUFFER,this.quad),t.enableVertexAttribArray(this.ppPositionLoc),t.vertexAttribPointer(this.ppPositionLoc,2,t.FLOAT,!1,4*Float32Array.BYTES_PER_ELEMENT,0),t.enableVertexAttribArray(this.ppTexCoordLoc),t.vertexAttribPointer(this.ppTexCoordLoc,2,t.FLOAT,!1,4*Float32Array.BYTES_PER_ELEMENT,2*Float32Array.BYTES_PER_ELEMENT),t.bindTexture(t.TEXTURE_2D,this.texture),t.uniform1f(this.ppTimeLoc,performance.now()/1e3),t.drawArrays(t.TRIANGLE_STRIP,0,4)}resize(){const t=this.gl;t.bindTexture(t.TEXTURE_2D,this.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight,0,t.RGBA,t.UNSIGNED_BYTE,null)}}const ic=/firefox/i.test(navigator.userAgent),nc=`\nprecision mediump float;\n\nvarying highp vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float opacity;\nuniform int noTexture;\n\nvoid main() {\n\tif(noTexture==1) {\n\t\tgl_FragColor = vec4(.1,.1,.1,.1);\n\t} else {\n\t${ic?"\n\t\tvec4 textureColor = texture2D(uSampler, vTextureCoord);\n\t\tfloat newAlpha = min(1., textureColor.a * opacity);\n\t\tgl_FragColor = vec4(textureColor.rgb * newAlpha, newAlpha);":"\n\t\tgl_FragColor = texture2D(uSampler, vTextureCoord) * opacity;"}\n\t\t//gl_FragColor = vec4(1.,0.,0.,1.);\n\t}\n}`;class sc{constructor(t){this.micrio=t,this.display=self,this.txtAttr=-1,this.posAttr=-1,this.was360=!1}init(){var t;const e="WebGL2RenderingContext"in window,i=this.micrio.canvas.element.getContext(e?"webgl2":"webgl",{alpha:!0,preserveDrawingBuffer:this.micrio.hasAttribute("data-preserve-drawing-buffer"),stencil:!1,antialias:!1,depth:!1,desynchronized:!1,powerPreference:"high-performance"});if(e?!(i instanceof window.WebGL2RenderingContext):!(i instanceof window.WebGLRenderingContext))throw"Error creating WebGL context. Does your browser support WebGL?";this.gl=i;const n=null==(t=this.micrio.$current)?void 0:t.$settings.postProcessingFragmentShader;n&&(this.postpocessor=new ec(i,this.micrio,n),this.micrio.keepRendering=!0);const s=i.createProgram();if(!(s instanceof WebGLProgram))throw"Could not compile shaders";this.program=s,this.getShader(this.program,i.VERTEX_SHADER,"\nuniform mat4 GLMatrix;\n\nattribute vec3 pos;\nattribute vec2 aTextureCoord;\n\nvarying highp vec2 vTextureCoord;\n\nvoid main()\n{\n\tgl_Position = GLMatrix * vec4(pos, 1.0);\n\tvTextureCoord = aTextureCoord;\n}"),this.getShader(this.program,i.FRAGMENT_SHADER,nc),i.linkProgram(this.program),i.useProgram(this.program),i.blendFunc(i.ONE,i.ONE_MINUS_SRC_ALPHA),i.enable(i.BLEND),i.disable(i.DEPTH_TEST),this.gl.clearColor(0,0,0,0);const r=i.getUniformLocation(this.program,"opacity");if(!r)throw"Could not create opacity WebGL binding!";this.opaLoc=r,i.useProgram(this.program);const o=i.getUniformLocation(this.program,"GLMatrix");if(!o)throw"Could not create matrix WebGL binding!";this.pmLoc=o;const a=i.getUniformLocation(this.program,"noTexture");if(!a)throw"Could not bind noTexture uniform";this.noTxtLoc=a,this.txtAttr=i.getAttribLocation(this.program,"aTextureCoord");const l=i.createBuffer();if(!l)throw"Could not connect texture buffer";this.txtBuffer=l,i.bindBuffer(i.ARRAY_BUFFER,this.txtBuffer),i.bufferData(i.ARRAY_BUFFER,Ql._textureBuffer,i.STATIC_DRAW);const c=i.createBuffer();if(!c)throw"Could not bind geometry buffer";this.geomBuffer=c,this.posAttr=i.getAttribLocation(this.program,"pos"),this.linkBuffers(),i.viewport(0,0,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight)}linkBuffers(){const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,this.geomBuffer),t.bufferData(t.ARRAY_BUFFER,this.micrio.wasm._vertexBuffer,t.STATIC_DRAW),t.enableVertexAttribArray(this.txtAttr),t.bindBuffer(t.ARRAY_BUFFER,this.txtBuffer),t.vertexAttribPointer(this.txtAttr,2,t.FLOAT,!1,0,0),t.enableVertexAttribArray(this.posAttr),t.bindBuffer(t.ARRAY_BUFFER,this.geomBuffer),t.vertexAttribPointer(this.posAttr,3,t.FLOAT,!1,0,0)}dispose(t=!1){const e=this.gl;if(e.bindBuffer(e.ARRAY_BUFFER,null),e.bindTexture(e.TEXTURE_2D,null),e.deleteBuffer(this.txtBuffer),e.deleteBuffer(this.geomBuffer),t){const t=e.getExtension("WEBGL_lose_context");t instanceof Object&&t.loseContext instanceof Function&&t.loseContext()}}getShader(t,e,i){const n=this.gl.createShader(e);if(!n)throw"Could not create shader!";if(this.gl.shaderSource(n,i),this.gl.compileShader(n),!this.gl.getShaderParameter(n,this.gl.COMPILE_STATUS))return console.error("Error compiling shader",this.gl.getShaderInfoLog(n)),void this.gl.deleteProgram(t);this.gl.attachShader(t,n),this.gl.deleteShader(n)}getTexture(t,e){const i=this.gl,n=i.createTexture();if(!n)throw"Could not create texture!";return i.bindTexture(i.TEXTURE_2D,n),t&&i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),e&&i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.NEAREST),n}updateTexture(t,e){const i=this.gl;i.bindTexture(i.TEXTURE_2D,t),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,e)}drawStart(){const t=this.gl;this.postpocessor&&t.bindFramebuffer(t.FRAMEBUFFER,this.postpocessor.frameBuffer),this.gl.clear(this.gl.COLOR_BUFFER_BIT)}drawEnd(){this.postpocessor&&(this.postpocessor.render(),this.gl.useProgram(this.program),this.linkBuffers())}drawTile(t,e=1,i=!1){this.gl.uniform1i(this.noTxtLoc,t?0:1),this.gl.uniform1f(this.opaLoc,e),t&&this.gl.bindTexture(this.gl.TEXTURE_2D,t);const n=i?6*Ql.segsX*Ql.segsY:6;i!=this.was360&&(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.txtBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,i?Ql._textureBuffer360:Ql._textureBuffer,this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.geomBuffer),this.was360=i),this.gl.bufferData(this.gl.ARRAY_BUFFER,i?this.micrio.wasm._vertexBuffer360:this.micrio.wasm._vertexBuffer,this.gl.STATIC_DRAW),this.gl.drawArrays(this.gl.TRIANGLES,0,n)}}const rc={passive:!0},oc={passive:!0,capture:!0},ac={passive:!1};function lc(t){t.stopPropagation(),t.preventDefault()}const cc=["move","marker-open","marker-opened","marker-closed","tour-start","tour-step","tour-stop","tour-event","media-play","media-pause","splitscreen-start","splitscreen-stop"];class dc{constructor(t){this.micrio=t,this.enabled=Ht(!1),this.hooked=!1,this.hookedDrag=!1,this.panning=!1,this.pinching=!1,this.clicked=!1,this.wheeling=!1,this.controlZoom=!1,this.twoFingerPan=!1,this.pScale=1,this.wheelEndTo=-1,this.hasTouch=ie.hasTouch&&"ontouchstart"in self,this.hasUsedCtrl=!1,this.vars={drag:{prev:void 0,start:[0,0,0]},dbltap:{lastTapped:0},pinch:{image:void 0,sDst:0,wasPanning:!1},updates:{to:-1,stack:[]}},this.scrollHooked=!1,this.el=t.canvas.element,this.dStart=this.dStart.bind(this),this.dMove=this.dMove.bind(this),this.dStop=this.dStop.bind(this),this.pStart=this.pStart.bind(this),this.pMove=this.pMove.bind(this),this.pStop=this.pStop.bind(this),this.gesture=this.gesture.bind(this),this.keydown=this.keydown.bind(this),this.wheel=this.wheel.bind(this),this.wheelEnd=this.wheelEnd.bind(this),this.dbltap=this.dbltap.bind(this),this.dblclick=this.dblclick.bind(this),this.updateEvent=this.updateEvent.bind(this),this.dispatchUpdate=this.dispatchUpdate.bind(this),this.enabled.subscribe((t=>{t?this.hook():this.unhook()})),t.visible.subscribe((t=>this.visible=t)),t.current.subscribe((t=>{t&&!this.settings&&le(t.info).then((e=>{e&&(this.settings=t.$settings,!t.error&&this.settings.hookEvents&&this.enabled.set(!0))}))}))}get $enabled(){return u(this.enabled)}get isNavigating(){return this.panning||this.pinching||this.wheeling||this.clicked}dispatch(t,e){this.micrio.dispatchEvent(new CustomEvent(t,void 0!==e?{detail:e}:void 0))}getImage(t){var e;if(!this.visible)return;const i=this.micrio.offsetWidth,n=this.micrio.offsetHeight,s=Math.max(0,Math.min(1,t.x/i)),r=Math.max(0,Math.min(1,t.y/n)),o=null==(e=this.visible)?void 0:e.find((t=>!!t.opts.secondaryTo)),a=1==this.visible.length?this.visible[0]:this.visible.find((({grid:t,opts:{area:e}})=>(!o||!t)&&(!!e&&(s>=e[0]&&s<=e[2]&&r>=e[1]&&r<=e[3]))));return a&&a.opts.secondaryTo&&a.opts.isPassive&&a.opts.area&&(t.x-=a.opts.area[0]*i,t.y-=a.opts.area[1]*n),!a||a.grid||a.opts.secondaryTo&&a.opts.isPassive?this.micrio.$current:a}hook(){if(this.hooked)return;this.hooked=!0;const t=this.settings;t&&(this.twoFingerPan=!!t.twoFingerPan,this.twoFingerPan?this.micrio.setAttribute("data-can-pan",""):this.micrio.removeAttribute("data-can-pan"),(null==t?void 0:t.hookKeys)&&this.hookKeys(),t.hookDrag&&this.hookDrag(),t.noZoom||this.hookZoom(),this.hookUpdate())}unhook(){this.hooked&&(this.hooked=!1,this.unhookDrag(),this.unhookZoom(),this.unhookKeys(),this.unhookUpdate())}hookKeys(){document.addEventListener("keydown",this.keydown)}unhookKeys(){document.removeEventListener("keydown",this.keydown)}hookZoom(){const t=this.settings;this.controlZoom=!!(null==t?void 0:t.controlZoom),t&&!t.hookPinch||this.hookPinch(),(!t||t.hookScroll||this.controlZoom)&&this.hookScroll(),this.micrio.canvas.$isMobile?this.el.addEventListener("touchstart",this.dbltap):this.el.addEventListener("dblclick",this.dblclick)}unhookZoom(){this.unhookPinch(),this.unhookScroll(),this.micrio.canvas.$isMobile?this.el.removeEventListener("touchstart",this.dbltap):this.el.removeEventListener("dblclick",this.dblclick)}hookScroll(){this.scrollHooked||(this.micrio.addEventListener("wheel",this.wheel,ac),this.scrollHooked=!0)}unhookScroll(){this.micrio.removeEventListener("wheel",this.wheel,ac),this.scrollHooked=!1}hookPinch(){this.hasTouch&&this.el.addEventListener("touchstart",this.pStart,rc),ie.OSX&&(this.micrio.addEventListener("gesturestart",this.gesture,ac),this.micrio.addEventListener("gesturechange",this.gesture,ac),this.micrio.addEventListener("gestureend",this.gesture,ac))}unhookPinch(){this.el.removeEventListener("touchstart",this.pStart,rc),ie.OSX&&(this.micrio.removeEventListener("gesturestart",this.gesture,ac),this.micrio.removeEventListener("gesturechange",this.gesture,ac),this.micrio.removeEventListener("gestureend",this.gesture,ac))}hookDrag(){this.hookedDrag||(this.hookedDrag=!0,this.micrio.addEventListener("dragstart",lc),this.micrio.addEventListener("pointerdown",this.dStart,rc),this.micrio.setAttribute("data-hooked",""))}unhookDrag(){this.hookedDrag&&(this.hookedDrag=!1,this.micrio.removeEventListener("pointerdown",this.dStart,rc),this.micrio.removeEventListener("dragstart",lc),this.micrio.removeAttribute("data-hooked"))}dStart(t,e=!1){var i;if(0!=t.button||"touch"==t.pointerType&&this.twoFingerPan)return;if(!e&&t.target!=this.el)return;if((null==(i=this.micrio.$current)?void 0:i.isOmni)&&t.shiftKey)return;if(this.panning)return void(t instanceof TouchEvent&&t.touches.length>1&&this.dStop());const n=this.getImage({x:t.clientX,y:t.clientY});n&&(this.panning=!0,this.vars.drag.start=[t.clientX,t.clientY,performance.now()],this.micrio.addEventListener("pointermove",this.dMove,rc),this.micrio.addEventListener("pointerup",this.dStop,rc),this.micrio.setAttribute("data-panning",""),this.micrio.wasm.e._panStart(n.ptr),this.micrio.wasm.render(),this.dispatch("panstart"))}dMove(t){var e;const i=t.clientX,n=t.clientY,s=Zt(this.vars.drag.start[0]-t.clientX,this.vars.drag.start[1]-t.clientY);!this.capturedPointerId&&s>10&&this.micrio.setPointerCapture(this.capturedPointerId=t.pointerId),this.vars.drag.prev&&(null==(e=this.getImage({x:i,y:n}))||e.camera.pan(this.vars.drag.prev[0]-i,this.vars.drag.prev[1]-n)),this.vars.drag.prev=[i,n]}dStop(t,e=!1,i=!1){if(this.panning){if(this.panning=!1,this.vars.drag.prev=void 0,this.micrio.removeEventListener("pointermove",this.dMove,rc),this.micrio.removeEventListener("pointerup",this.dStop,rc),this.capturedPointerId&&this.micrio.releasePointerCapture(this.capturedPointerId),this.capturedPointerId=void 0,this.micrio.removeAttribute("data-panning"),t&&0==e){const e=this.getImage({x:t.clientX,y:t.clientY});e&&(this.micrio.wasm.e._panStop(e.ptr),this.micrio.wasm.render())}i||this.dispatch("panend",t?{duration:performance.now()-this.vars.drag.start[2],movedX:t.clientX-this.vars.drag.start[0],movedY:t.clientY-this.vars.drag.start[1]}:void 0)}}pStart(t){if(!(ie.hasTouch&&t instanceof TouchEvent))return;if(this.twoFingerPan&&t.touches.length<2)return;if(this.pinching||2!=t.touches.length)return void this.pStop(t);t.stopPropagation(),this.vars.pinch.wasPanning=this.panning,this.dStop(void 0,!1,!0);const e=t.touches;this.pinching=!0,self.addEventListener("touchmove",this.pMove,oc),self.addEventListener("touchend",this.pStop,oc),this.micrio.setAttribute("data-pinching",""),this.vars.pinch.image=this.getImage({x:e[0].clientX,y:e[0].clientY}),this.vars.pinch.sDst=Zt(e[0].clientX-e[1].clientX,e[0].clientY-e[1].clientY),this.pinchFactor=void 0,this.vars.pinch.image&&this.micrio.wasm.e._pinchStart(this.vars.pinch.image.ptr),this.micrio.wasm.render(),this.dispatch("pinchstart"),this.twoFingerPan&&this.dispatch("panstart")}pMove(t){if(!(ie.hasTouch&&t instanceof TouchEvent))return;const e=t.touches;if((null==e?void 0:e.length)<2)return;const i={x:e[0].clientX,y:e[0].clientY},n={x:e[1].clientX,y:e[1].clientY},s=this.vars.pinch,r=s.image;if(r){if((null==r?void 0:r.opts.secondaryTo)&&r.opts.isPassive&&r.opts.area){const t=r.opts.area[0]*this.micrio.offsetWidth,e=r.opts.area[1]*this.micrio.offsetHeight;i.x-=t,n.x-=t,i.y-=e,n.y-=e}this.pinchFactor=Zt(e[0].clientX-e[1].clientX,e[0].clientY-e[1].clientY)/s.sDst,this.micrio.wasm.e._pinch(r.ptr,i.x,i.y,n.x,n.y)}}pStop(t){this.pinching&&this.vars.pinch.image&&(this.pinching=!1,t.stopPropagation(),self.removeEventListener("touchmove",this.pMove,oc),self.removeEventListener("touchend",this.pStop,oc),this.micrio.removeAttribute("data-pinching"),this.micrio.wasm.e._pinchStop(this.vars.pinch.image.ptr,performance.now()),this.micrio.wasm.render(),this.vars.pinch.image=void 0,this.pinchFactor=void 0,this.dispatch("pinchend"),(this.twoFingerPan||this.vars.pinch.wasPanning)&&this.dispatch("panend"))}gesture(t){var e;const i=t.scale;if(1==i)return;const n=this.pScale-i;if(this.pScale=i,t.stopPropagation(),t.preventDefault(),"gesturechange"==t.type){const i=t;null==(e=this.getImage({x:i.clientX,y:i.clientY}))||e.camera.zoom(n*this.micrio.canvas.viewport.height,0,i.clientX,i.clientY)}}wheel(t,e=!1,i=0){var n;if(!(t instanceof WheelEvent))return;if(this.controlZoom&&!t.ctrlKey)return;if(!e&&t.target instanceof Element&&t.target!=this.el&&!t.target.classList.contains("marker")&&!t.target.hasAttribute("data-scroll-through"))return;let s=t.deltaY;t.ctrlKey&&(this.hasUsedCtrl=!0);const r=this.controlZoom&&10*s%1==0,o=this.hasUsedCtrl&&!r,a=ie.firefox||t.ctrlKey||!o;if(this.twoFingerPan&&(null==(n=this.micrio.$current)?void 0:n.camera.isZoomedOut()))return;t.stopPropagation(),t.preventDefault(),(ie.OSX||o)&&t.ctrlKey&&(s*=10);const l={x:t.clientX,y:t.clientY},c=this.getImage(l);if(c){if(a){const t=this.micrio.canvas.viewport;let e=0;const n=this.micrio.getBoundingClientRect();c.camera.zoom(1*s/Math.sqrt(t.scale),0,l.x-i-n.left,l.y-n.top-e)}else c.camera.pan(t.deltaX,t.deltaY);this.wheeling=!0,clearTimeout(this.wheelEndTo),this.wheelEndTo=setTimeout(this.wheelEnd,50)}}wheelEnd(){this.wheeling=!1}dbltap(t){ie.hasTouch&&t instanceof TouchEvent&&(1==t.touches.length&&Date.now()-this.vars.dbltap.lastTapped<250&&(t.stopPropagation(),t.preventDefault(),this.dblclick(t)),this.vars.dbltap.lastTapped=Date.now())}dblclick(t){var e,i;const n=t instanceof MouseEvent?t:t.touches[0];null==(i=this.getImage({x:n.clientX,y:n.clientY}))||i.camera.zoom(-300,500,n.clientX,n.clientY,1,!(null==(e=this.micrio.$current)?void 0:e.album)).catch((()=>{}))}keydown(t){var e;if(this.panning||this.pinching)return;const i=this.micrio.offsetWidth/2,n=this.micrio.offsetHeight/2;let s=0,r=0,o=!1;const a=null==(e=this.micrio.$current)?void 0:e.camera;if(a){switch(t.keyCode){case 37:s=-i,o=!0;break;case 39:s=i,o=!0;break;case 38:r=-n,o=!0;break;case 40:r=n,o=!0;break;case 32:a.zoom(t.shiftKey?200:-200,150);break;case 187:case 61:t.shiftKey&&a.zoom(-200,150);break;case 189:case 173:a.zoom(200,150);break;default:return}o&&a.pan(s,r,150)}}hookUpdate(){cc.forEach((t=>this.micrio.addEventListener(t,this.updateEvent)))}unhookUpdate(){cc.forEach((t=>this.micrio.removeEventListener(t,this.updateEvent)))}updateEvent(t){if("move"==t.type&&!this.isNavigating)return;const e=this.vars.updates.stack;e[e.length-1]!=t.type&&e.push(t.type),this.vars.updates.to<0&&(this.vars.updates.to=setTimeout(this.dispatchUpdate))}dispatchUpdate(){const t=this.vars.updates;clearTimeout(t.to),t.to=-1,t.stack.length&&(this.dispatch("update",t.stack),t.stack.length=0,t.to=setTimeout(this.dispatchUpdate,500))}}const uc=class t{constructor(t){this.micrio=t,this.isStatic=!1,this.loaded=!1,this.inited=!1,this.setting=!1,this.writeTitle=!1}hook(){this.isStatic="static"==this.micrio.getAttribute("data-router"),this.read=this.read.bind(this),this.write=this.write.bind(this),this.writeDeferred=this.writeDeferred.bind(this),le(this.micrio.current).then((()=>{this.loaded=!0,this.read()})),t.events.forEach((t=>this.micrio.addEventListener(t,this.write))),"i.micr.io"==location.hostname&&(this.writeTitle=!0),window.addEventListener(this.isStatic?"popstate":"hashchange",this.read)}unhook(){t.events.forEach((t=>this.micrio.removeEventListener(t,this.write))),window.removeEventListener(this.isStatic?"popstate":"hashchange",this.read)}findPage(t,e,i){var n,s;if(e)for(let r=0;r<e.length;r++){const o=(null==(s=null==(n=e[r])?void 0:n.i18n)?void 0:s[i])??e[r];let a=se(o.title)==t?e[r]:this.findPage(t,e[r].children,i);if(a)return a}}read(){if(!this.loaded||this.setting)return;this.route=(this.isStatic?location.pathname:location.hash).slice(1);const[t,e,i,n,s]=this.route.split("/"),r=this.micrio.$current,o=t&&(null==r?void 0:r.id)!=t?this.micrio.open(t):void 0;r&&Promise.all([le(r.data,{allowUndefined:!0}),o?le(o.data,{allowUndefined:!0}):void 0]).then((t=>{var i,a;if(!t[0])return this.inited=!0;if(void 0===this.prevLang&&(this.prevLang=this.micrio.lang),!1===(null==o?void 0:o.$settings.routerMarkerTours))return;if((null==(i=t[0].pages)?void 0:i.length)&&n){const i=this.findPage(n.toLowerCase(),t[0].pages,e);if(i)return this.micrio.state.popover.set({contentPage:i})}const l=n?s?t.map((t=>{var i;return null==(i=null==t?void 0:t.markerTours)?void 0:i.find((t=>{var i,s;return se(null==(s=null==(i=t.i18n)?void 0:i[e])?void 0:s.slug)==n}))}))[0]:t.map((t=>{var i;return null==(i=null==t?void 0:t.tours)?void 0:i.find((t=>{var i,s;return se(null==(s=null==(i=t.i18n)?void 0:i[e])?void 0:s.slug)==n}))}))[0]:void 0,c=s||!l&&n,d=c?null==(a=(t[1]??t[0]).markers)?void 0:a.find((t=>{var i,n,s;return((null==(n=null==(i=t.i18n)?void 0:i[e])?void 0:n.slug)??t.title)==c||l&&"steps"in l&&(null==(s=l.stepInfo)?void 0:s.map((t=>t.marker)).find((t=>{var i,n;return(null==(n=null==(i=t.i18n)?void 0:i[e])?void 0:n.slug)==c})))})):void 0;d&&l&&"steps"in l?l.initialStep=l.steps.findIndex((t=>t.startsWith(d.id))):(d||this.micrio.state.popup.set(void 0),(o??r).state.marker.set(d)),this.micrio.state.tour.set(l),this.writeTitle&&this.setTitle(),this.inited=!0}))}setTitle(){var t,e,i,n,s,r,o,a,l,c;const d=u(this.micrio._lang),h=this.micrio.$current;if(!h)return;const m=[(null==(i=null==(e=null==(t=h.$data)?void 0:t.i18n)?void 0:e[d])?void 0:i.title)??(null==(n=null==h?void 0:h.$info)?void 0:n.title),null==(o=null==(r=null==(s=this.micrio.state.$tour)?void 0:s.i18n)?void 0:r[d])?void 0:o.title,null==(c=null==(l=null==(a=this.micrio.state.$marker)?void 0:a.i18n)?void 0:l[d])?void 0:c.title].filter((t=>!!t)).reverse();document.title=m.join(" - ")+" | Micrio"}write(t){if(this.micrio.$current&&this.loaded&&this.inited){if("marker-open"===t.type){const t=this.micrio.state.$marker;if(t&&t.data&&t.data.micrioLink)return}clearTimeout(this._to),this._to=setTimeout((()=>this.writeDeferred("load"==t.type)),50)}}writeDeferred(t){var e,i,n,s,r,o,a,l,c;const d=this.micrio.state.$tour;let h=this.micrio.$current,m=null==h?void 0:h.state.$marker;const p=this.micrio.lang;p!=this.prevLang&&(t=!0,this.prevLang=p);const f=(null==(n=null==(i=null==(e=null==h?void 0:h.$data)?void 0:e.i18n)?void 0:i[p])?void 0:n.title)??(null==(s=null==h?void 0:h.$info)?void 0:s.title)??"",g=!1===(null==h?void 0:h.$settings.routerMarkerTours),v=m&&"string"!=typeof m?(null==(r=m.i18n)?void 0:r[p])??m:void 0,$=null==(o=u(this.micrio.state.popover))?void 0:o.contentPage,w=$?(null==(a=$.i18n)?void 0:a[p])??$:void 0;let y=null==h?void 0:h.id;if(d&&"steps"in d&&d.steps.length&&d.stepInfo){const t=d.stepInfo.find((t=>t.markerId==d.steps.find((t=>!t.includes(",")))));t&&(y=t.micrioId,h=this.micrio.wasm.images.find((t=>t.id==y)),!m&&d.initialStep&&(m=d.stepInfo[d.initialStep].marker))}const b=[y,p,se(f)??"",...g?[]:w?[se(w.title)]:[(null==(c=null==(l=null==d?void 0:d.i18n)?void 0:l[p])?void 0:c.slug)??null,(null==v?void 0:v.slug)??null]].filter((t=>!!t)).join("/");b!=this.route&&(this.setting=!0,this.isStatic?t?history.replaceState(null,"","/"+b+location.search):history.pushState(null,"","/"+b+location.search):location.hash=b,this.route=b,this.writeTitle&&this.setTitle(),setTimeout((()=>this.setting=!1),250))}};uc.events=["load","tour-start","tour-stop","marker-open","marker-closed","page-open","page-closed","lang-switch"];let hc=uc;const mc=class t{constructor(t){this.micrio=t,this.gtag=window.gtag,this.hooked=!1,this.tag=this.tag.bind(this)}hook(){!this.hooked&&this.gtag&&(this.hooked=!0,this.tag(new CustomEvent("init")),t.events.forEach((t=>this.micrio.addEventListener(t,this.tag))))}unhook(){this.hooked&&(this.hooked=!1,this.tag(new CustomEvent("hide")),t.events.forEach((t=>this.micrio.removeEventListener(t,this.tag))))}tag(t){const e=t.detail,i=this.micrio.$current,n={event_category:"Micrio",event_action:t.type};this.micrio.lang&&(n.culture=this.micrio.lang),"init"==t.type&&(n.micrio_version=Number(Ia)),"load"==t.type&&(null==i?void 0:i.$info)&&(n.image_version=i.$info.version);const s=null!==e&&"object"==typeof e&&"currentStep"in e?e.currentStep:null;null!=s&&(n.event_value=s);const r=e&&e.title?e.title:i&&i.$info&&i.$info.title;n.event_label=this.micrio.id+(r?" - "+r:""),this.gtag("event",t.type,n)}};mc.events=["load","show","hide","marker-open","marker-opened","marker-closed","tour-start","tour-stop","tour-step","tour-ended"];let pc=mc;const fc=t=>Math.round(1e5*t)/1e5,gc=class t{constructor(e,i){var n;this.micrio=e,this.image=i,this.images=[],this.current=[],this._grid=document.createElement("div"),this._buttons=new Map,this.clickable=!1,this.focussed=Ht(),this.markersShown=Ht([]),this.history=[],this.depth=Ht(0),this.aniDurationIn=1.5,this.aniDurationOut=.5,this.transitionDelay=.5,this.isHorizontal=!1,this.cellSizes=new Map,this.nextSize=new Map,this.timingFunction="ease",this.getString=(e,i={})=>{var n;return t.getString(e,{view:i.view,area:i.area,size:i.size??this.nextSize.get(e.id),cultures:null==(n="cultures"in e&&e.cultures?e.cultures:"")?void 0:n.replace(/,/g,"-")})},this.tourEvent=this.tourEvent.bind(this),this.updateGrid=this.updateGrid.bind(this);const s=i.$settings;this.clickable=!!s.gridClickable,void 0!==s.gridTransitionDuration&&(this.aniDurationIn=this.aniDurationOut=s.gridTransitionDuration),void 0!==s.gridTransitionDurationOut&&(this.aniDurationOut=s.gridTransitionDurationOut),this._grid.className="micrio-grid",this.set(null==(n=i.$info)?void 0:n.grid);const r=()=>vt().then((()=>{this.hook(),e.events.dispatch("grid-load")}));i.isV5||e._lang.subscribe((t=>{t?Promise.all(this.images.filter((e=>{var i;return(e.$info&&"cultures"in e.$info&&(null==(i=e.$info)?void 0:i.cultures)||"").indexOf(t)>=0})).map((t=>le(t.data)))).then(r):r()})),e.events.dispatch("grid-init",this)}get $focussed(){return u(this.focussed)}hook(){if(this.micrio.state.marker.subscribe((t=>{var e,i;if(t&&"string"!=typeof t){const n=null==(e=t.data)?void 0:e._meta;if(null==n?void 0:n.gridSize){const e="number"==typeof n.gridSize?[n.gridSize,n.gridSize]:n.gridSize.split(",").map(Number),s=null==(i=this.images.find((e=>{var i,n;return null==(n=null==(i=e.$data)?void 0:i.markers)?void 0:n.find((e=>e==t))})))?void 0:i.id;s&&this.nextSize.set(s,e)}vt().then((()=>{var t;const e=null==(t=null==n?void 0:n.gridAction)?void 0:t.split("|");(null==e?void 0:e.length)&&"string"==typeof e[0]&&this.action(e.shift(),e.join("|"))}))}})),this.clickable){this._grid.addEventListener("click",(t=>{const e=t.target.dataset.id;e&&this.focus(this.images.find((t=>t.id==e)))}));const t=t=>{t?this.removeGrid():this.placeGrid()};this.micrio.state.tour.subscribe(t),this.micrio.state.marker.subscribe(t),this.focussed.subscribe(t)}this.micrio.addEventListener("tour-event",this.tourEvent),this.micrio.addEventListener("serialtour-pause",(()=>this.images.forEach((t=>t.camera.pause())))),this.micrio.addEventListener("serialtour-play",(()=>this.images.forEach((t=>t.camera.resume()))))}clearTimeouts(){clearTimeout(this._to),clearTimeout(this._fadeTo)}set(t="",e={}){return this.lastPromise=new Promise(((i,n)=>{var s,r,o;null==(r=null==(s=this.image.$info)?void 0:s.settings)||delete r.focus,this.lastAction=void 0,!1===e.cover&&e.coverLimit&&(e.coverLimit=!1),e.coverLimit&&null==e.cover&&(e.cover=e.coverLimit),"string"!=typeof t&&(t=t.map((t=>t instanceof ja?{image:t}:t)).filter((t=>!!t.image.$info)).map((t=>this.getString(t.image.$info,t))).join(";"));const a=t.split(";").filter((t=>!!t)).map((t=>this.getImage(t))),l=this.$focussed,c=null==(o=e.transition)?void 0:o.endsWith("-delayed"),d="behind-delayed"==e.transition;switch(e.transition){case"crossfade":e.duration=0;break;case"behind":case"behind-delayed":const t=!0===e.coverLimit;e.forceAni=!0,e.coverLimit=t,e.forceAreaAni=!0;const i=c?1/a.length:1;let n=0;this.images.forEach((e=>{e.camera.setCoverLimit(t),a.find((t=>t.id==e.id))&&(e.camera.setArea([0,0,(null==l?void 0:l.id)==e.id?1:i,1],{noDispatch:!0,direct:!0}),e!=l&&e.camera.setView([0,0,1,1]),c&&this.micrio.wasm.e._setZIndex(e.ptr,a.length-n++))})),a.forEach((t=>t.view=[0,0,1,1]))}const u=this.image.ptr>=0,h=e.duration??(e.noHistory?this.aniDurationOut:this.aniDurationIn),m=this.nextCrossFadeDuration??this.image.$settings.crossfadeDuration??1,p=(h||this.aniDurationIn)/(d?2:1);if(this.nextCrossFadeDuration=void 0,u){const t=this.micrio.wasm.getPtr();this.micrio.wasm.e.setGridTransitionDuration(t,h),this.micrio.wasm.e.setCrossfadeDuration(t,p)}const f=!e.noBlur&&l;let g,v;f&&this.blur(),!e.noHistory&&this.current.length&&this.depth.set(this.history.push({layout:this.current.map((t=>this.getString(t.$info,{view:t.state.$view,size:this.cellSizes.get(t.id)}))).join(";"),horizontal:this.isHorizontal,view:this.image.camera.getView()})),this.isHorizontal=!!e.horizontal,this.removeImages(this.images.filter((t=>!a.find((e=>e.id==t.id))))),this.printGrid(a,{horizontal:e.horizontal,keepGrid:e.keepGrid,scale:e.scale,columns:e.columns}),this.clearTimeouts();let $=!1;const w=()=>{clearTimeout(g),clearTimeout(v),$||n()};u&&!e.noCamAni&&(e.view?this.image.camera.flyToView(e.view,{duration:1e3*h}).catch(w):this.image.camera.flyToFullView({duration:1e3*h}).catch(w)),this.nextSize.clear(),null==e.coverLimit&&(e.coverLimit=!0),e.coverLimit||a.forEach((t=>{var i;return null==(i=this.images.find((e=>e.id==t.id)))?void 0:i.camera.setCoverLimit(!!e.coverLimit)}));const y="appear-delayed"==e.transition,b=t=>t*this.transitionDelay+(t>0&&y?h:0);this.current=a.map(((t,i)=>this.placeImage(t,{duration:!e.forceAni&&f&&t.id!=l.id?0:h,delay:c?b(i):0,noCamAni:!!(y&&i>0)||!!e.noCamAni,forceAreaAni:!(y&&i>0)&&e.forceAreaAni,cover:e.cover}))),y&&this.current.slice(1).forEach((t=>this.micrio.wasm.e._fadeTo(t.ptr,.9999,!0)));const k=()=>this.current.forEach(((t,e)=>te(c?1e3*(b(e)+(d?h/2:0)):0).then((()=>this.micrio.wasm.e._fadeIn(t.ptr))))),T=()=>{this.clearTimeouts(),requestAnimationFrame((()=>this.micrio.wasm.e.setCrossfadeDuration(this.micrio.wasm.getPtr(),m))),c&&this.images.forEach((t=>this.micrio.wasm.e._setZIndex(t.ptr,0))),e.coverLimit&&a.forEach((t=>{var i;return null==(i=this.images.find((e=>e.id==t.id)))?void 0:i.camera.setCoverLimit(!!e.coverLimit)})),this.clickable&&this.placeGrid(),this.lastAction=void 0,$=!0,i(this.current)};h||p?(e.noFade||(this._fadeTo=v=setTimeout(k,Math.max(0,h/2))),this._to=g=setTimeout(T,1e3*(Math.max(p,h)+(c?(a.length-1)*this.transitionDelay:0)))):(e.noFade||k(),T())}))}hasChanged(){return this.current.map((t=>t.id)).join(",")!=this.images.map((t=>t.id)).join(",")}getImage(t){var e,i;const n=t.split("|"),s=n[0].split(","),r=n[1]?n[1].split(",").map(Number):[1];let o=0,a=0;return{path:null==(e=this.image.$info)?void 0:e.path,id:s[0],width:o=Number(s[1])||o,height:a=Number(s[2])||a,isDeepZoom:"d"==s[3],isPng:"p"==s[4],isWebP:"w"==s[4],size:r,view:s[5]?s[5].split("/").map(Number):void 0,area:s[6]?s[6].split("/").map(Number):void 0,settings:ne(this.image.$settings||{},{focus:s[7]?s[7].split("-").map(Number):null}),cultures:(null==(i=s[8])?void 0:i.replace(/\-/g,","))||void 0}}getCols(t,e){let i=Math.ceil(e/Math.ceil(Math.sqrt(e)));if(t==e){const e=Math.floor(Math.sqrt(t)),n=[];for(let s=e;s<i+e;s++)t%s||n.push(s);n.length&&(i=n[Math.floor(n.length/2)])}return i}printGrid(t,e){var i;e.keepGrid||this.removeGrid();const n=t.reduce(((t,e)=>t+e.size.reduce(((t,e)=>e*t),1)),0),s=e.columns??(e.horizontal?t.length:this.getCols(t.length,n));this._grid.style.gridTemplateColumns=`repeat(${s}, auto)`,this._grid.textContent="",this._grid.style.removeProperty("--translate"),this._grid.style.removeProperty("--scale"),t.forEach((t=>{if(!t.id)return;this._buttons.has(t.id)||this._buttons.set(t.id,document.createElement("button"));const e=this._buttons.get(t.id);"1"!=t.size.toString()?(e.style.gridArea=`auto / auto / span ${t.size[1]} / span ${t.size[0]||t.size[1]}`,this.cellSizes.set(t.id,t.size)):(e.style.removeProperty("grid-area"),this.cellSizes.delete(t.id)),e.dataset.id=t.id,this._grid.appendChild(e)})),e.keepGrid&&this._grid.parentNode||this.micrio.insertBefore(this._grid,(null==(i=this.micrio.firstChild)?void 0:i.nextSibling)??null),this.micrio.events.dispatch("grid-layout-set",this);const r=this.micrio.offsetWidth,o=this.micrio.offsetHeight,a=Math.max(0,Math.min(1,1-(e.scale??1)));this._grid.style.transform="",this._grid.childNodes.forEach((e=>{if(!e)return;const i=e,n=i.dataset.id,s=i.getBoundingClientRect(),l=t.find((t=>t.id==n)),c=[a/2*s.width,a/2*s.height];l&&!l.area&&(l.area=[(s.x+c[0])/r,(s.y+c[1])/o,(s.x+s.width-c[0])/r,(s.y+s.height-c[1])/o])})),e.keepGrid||this._grid.remove()}placeGrid(){var t;!this.clickable||this.micrio.state.$tour||this.micrio.state.$marker||this._grid.parentNode||(this.micrio.insertBefore(this._grid,(null==(t=this.micrio.firstChild)?void 0:t.nextSibling)??null),this.viewUnsub=this.image.state.view.subscribe(this.updateGrid))}removeGrid(){this._grid.parentNode&&(this.viewUnsub&&this.viewUnsub(),this._grid.remove())}updateGrid(){const t=this.image.camera.getXY(0,0,!0);this._grid.style.setProperty("--translate",`translate3d(${t[0]}px, ${t[1]}px, 0)`),this._grid.style.setProperty("--scale",this.image.camera.getScale().toString()),this._grid.dispatchEvent(new CustomEvent("update"))}placeImage(t,e){let i=this.images.find((e=>e.id==t.id));i&&t.area?te(1e3*e.delay).then((()=>{i.camera.setArea(t.area,{direct:0==e.duration||!e.forceAreaAni&&!u(i.visible)}),e.delay&&this.micrio.wasm.render()})):(t.lang=this.micrio.lang,this.micrio.wasm.addChild(i=new ja(this.micrio.wasm,t,{area:t.area}),this.image),this.images.push(i));const n={duration:1e3*e.duration,timingFunction:this.timingFunction,limit:!1};if(!e.noCamAni&&!i.camera.aniDone&&i.ptr>0){const s=!!e.cover||i.camera.getCoverLimit();if(t.view||!s)i.camera.flyToView(t.view??[0,0,1,1],n).catch((()=>{}));else if(t.area&&t.width&&t.height){const e=(t.area[2]-t.area[0])*this.micrio.offsetWidth/((t.area[3]-t.area[1])*this.micrio.offsetHeight);i.camera.flyToView(e<t.width/t.height?[.5,0,.5,1]:[0,.5,1,.5],n).catch((()=>{}))}else i.camera.flyToCoverView(n).catch((()=>{}))}return i}removeImages(t){t.forEach((t=>{t.ptr>=0&&this.micrio.wasm.e._fadeOut(t.ptr)})),this.micrio.wasm.render()}insideGrid(){const t=this.micrio.$current;return t==this.image||!!this.images.find((e=>e==t))}async reset(t,e,i){var n,s;const r=this.history[0];return this.images.forEach((t=>t.camera.stop())),this.image.camera.stop(),this.markersShown.set([]),await vt(),i||e||!(null==(n=this.micrio.camera)?void 0:n.isZoomedOut())||this.micrio.state.$tour||this.$focussed||this.hasChanged()||(t=0),this.set((null==r?void 0:r.layout)||(null==(s=this.image.$info)?void 0:s.grid),{noHistory:!0,duration:t,noCamAni:e,forceAni:i,horizontal:!!r&&r.horizontal}).then((t=>(this.depth.set(this.history.length=0),this.micrio.current.set(this.image),t)))}switchToGrid(){const t=this.$focussed;if(!t)return;const e=t.camera.getView();e&&this.reset(0,!0).then((()=>{t.opts.area&&this.image.camera.setView(t.opts.area,{noLimit:!0}),t.camera.setView(e,{noLimit:!0}),this.micrio.current.set(this.image)}))}async flyToMarkers(t,e,i){const n=null==t?void 0:t.split("|").map((t=>t.trim())),s=(null==n?void 0:n[0])??"",r=s?this.images.filter((t=>{var e,i;return!!(null==(i=null==(e=t.$data)?void 0:e.markers)?void 0:i.find((t=>t.tags.includes(s))))})):this.images;return this.set(r.map((t=>{var e,n;const r=null==(n=null==(e=t.$data)?void 0:e.markers)?void 0:n.find((t=>t.tags.indexOf(s)>=0));return this.getString(t.$info,{view:i||null==r?void 0:r.view})})).join(";"),{duration:e,horizontal:"h"==(null==n?void 0:n[1])})}async back(t){const e=this.history.pop();if(!e)return;this.depth.set(this.history.length),this.micrio.current.set(this.image);this.$focussed&&this.blur(),await this.set(e.layout,{duration:t,noHistory:!0,horizontal:e.horizontal,view:e.view})}setTimingFunction(t){const e=this.micrio.wasm.getPtr();this.micrio.wasm.e.setGridTransitionTimingFunction(e,Ra.Camera.TimingFunction[this.timingFunction=t])}async focus(t,e={}){var i;if(!t)return this.back();e.coverLimit&&(e.cover=!0);const n=!e.view&&!e.cover,s=this.micrio;u(s.visible).find((t=>t==this.image))||s.current.set(this.image);const r=this.$focussed;if(r==t)return;!(null==(i=e.transition)?void 0:i.startsWith("slide-"))&&(0==e.duration||r&&!s.wasm.e._areaAnimating(r.ptr)&&!this.current.find((e=>e==t)))&&t.camera.setArea([0,0,1,1],{noDispatch:!0,direct:!0}),r&&this.blur(),t.camera.setCoverLimit(!!e.cover),this.setTimingFunction("ease");const o=await this.transition(t,r,this.getString(t.$info,{view:e.view}),e);return s.wasm.e._setZIndex(t.ptr,3),this.focussed.set(t),u(t.visible)||"crossfade"!=e.transition&&e.transition||(e.duration=0),this.set(o,{noBlur:!0,duration:e.duration,forceAreaAni:"crossfade"!=e.transition,cover:!!e.cover,coverLimit:!!e.coverLimit}).then((()=>{s.events.dispatch("grid-focus",t);const e=t.$info;this.removeGrid(),s.$current!=t&&s.current.set(t);const i=s.offsetWidth/s.offsetHeight,r=(1-e.width/e.height/i)/2;!t.camera.aniDone&&n&&t.camera.flyToFullView({duration:1e3*this.aniDurationIn}).catch((()=>{})),this.image.camera.setLimit([r,0,1-r,1])})).catch((()=>{}))}async transition(t,e,i,{duration:n,view:s,transition:r,noViewAni:o,exitView:a,blur:l,cover:c}){if(!r)return i;if("crossfade"==r&&(t.camera.setArea([0,0,1,1]),o=!0),s&&o&&t.camera.setView(s,{noRender:!0,noLimit:!0}),!e||"crossfade"==r)return i;const d=r.startsWith("slide")||r.startsWith("swipe"),u=r.startsWith("behind"),h=d?r.endsWith("-up")?0:r.endsWith("-down")?180:r.endsWith("-left")?270:90:void 0;if((d||u)&&this.micrio.wasm.e._fadeTo(t.ptr,.9999,!0),r.startsWith("slide"))t.camera.setArea(0==h?[0,-.5,1,0]:180==h?[0,1,1,1.5]:270==h?[-.5,0,0,1]:[1,0,1.5,1],{noDispatch:!0,direct:!0});else if(r.startsWith("swipe"))t.camera.setArea(0==h?[0,-1,1,0]:180==h?[0,1,1,2]:270==h?[-1,0,0,1]:[1,0,2,1],{noDispatch:!0,direct:!0}),i=[this.getString(e.$info,{view:a??e.camera.getView(),area:0==h?[0,1,1,2]:180==h?[0,-1,1,0]:270==h?[1,0,2,1]:[-1,0,0,1]}),this.getString(t.$info,{view:s,area:[0,0,1,1]})].join(";");else if(u){t.camera.setArea([0,0,1,1]),t.camera.setView([0,0,1,1]);const i=[this.getString(e.$info,{view:[0,0,1,1]}),this.getString(t.$info,{view:[0,0,1,1]})];"behind-left"==r&&i.reverse(),await this.set(i.join(";"),{noBlur:!0,horizontal:!0,coverLimit:c}).then((()=>te(200)))}if(l&&!isNaN(l)&&l>0){const t=(n=n??this.nextCrossFadeDuration??this.aniDurationIn)/2,e=this.micrio.canvas.element.style;e.transition=`filter ${t}s ease`,e.filter=`blur(${l}px)`,setTimeout((()=>{e.filter="",setTimeout((()=>e.transform=""),1e3*t)}),1e3*t)}return i}blur(){const t=this.$focussed;t&&(this.micrio.wasm.e._setZIndex(t.ptr,2),this.micrio.events.dispatch("grid-blur"),this.focussed.set(void 0),this.image.camera.setLimit([0,0,1,1]),this.micrio.current.set(this.image))}tourEvent(t){var e;const i=t.detail;i&&(null==(e=i.action)?void 0:e.startsWith("grid:"))&&i.active&&this.action(i.action.slice(5),i.data,i.end-i.start)}action(t,e,i){"string"==typeof t&&(t=Ra.Grid.GridActionType[t]);const n=t+(e??"");if(this.lastAction!=n){switch(t){case Ra.Grid.GridActionType.focus:const t=null==e?void 0:e.split("|").map((t=>t.trim())),n=(null==t?void 0:t[0])??"",s=null==n?void 0:n.split(",").map((t=>this.images.find((e=>e.id==(null==t?void 0:t.trim()))))).filter((t=>void 0!==t));1==s.length?this.focus(s[0],{duration:i}):s.length>0&&this.set(s.map((t=>this.getString(t.$info))).join(";"),{duration:i,horizontal:"h"==(null==t?void 0:t[1])});break;case Ra.Grid.GridActionType.flyTo:const r=null==e?void 0:e.split(",").map((t=>this.current.find((e=>e.id==(null==t?void 0:t.trim())))));(null==r?void 0:r.length)?this.image.camera.flyToView([Math.min(...r.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[0])??0}))),Math.min(...r.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[1])??0}))),Math.max(...r.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[2])??1}))),Math.max(...r.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[3])??1})))],{duration:i?1e3*i:void 0}).catch((()=>{})):console.warn("Given image IDs gave no current displayed images",event);break;case Ra.Grid.GridActionType.focusTagged:this.flyToMarkers(e,i);break;case Ra.Grid.GridActionType.focusWithTagged:this.flyToMarkers(e,i,!0);break;case Ra.Grid.GridActionType.reset:this.reset(i);break;case Ra.Grid.GridActionType.back:this.back(i);break;case Ra.Grid.GridActionType.switchToGrid:this.switchToGrid();break;case Ra.Grid.GridActionType.nextFadeDuration:this.nextCrossFadeDuration=Number(e);break;case Ra.Grid.GridActionType.filterTourImages:le(this.micrio.state.tour).then((t=>{if(!t)return;if(!("steps"in t)||!t.stepInfo)return;const n=t.stepInfo.map((t=>t.micrioId)),s=n.filter(((t,e)=>n.indexOf(t)==e)).map((t=>this.images.find((e=>e.id==t)))).filter((t=>!!t)).map((t=>this.getString(t.$info))).join(";");s&&this.set(s,{duration:i,horizontal:"h"==e})}));break;default:console.warn("Warning: unknown grid tour event",event)}this.lastAction=n}}async enlarge(t,e,i=e){var n;return this.set(((null==(n=this.history[this.history.length-1])?void 0:n.layout)||this.image.$info.grid).split(";").map(((n,s)=>`${n}|${s==t?`${e},${i}`:1}`)).join(";"),{noHistory:!0,keepGrid:!0,duration:500})}getRelativeView(t,e){const i=t.opts.area??[0,0,1,1],n=i[2]-i[0],s=i[3]-i[1];return[i[0]+n*e[0],i[1]+s*e[1],i[0]+n*e[2],i[1]+s*e[3]]}};gc.getString=(t,e)=>{var i,n,s,r;return[t.id,t.width,t.height,t.isDeepZoom?"d":"",t.isPng?"p":t.isWebP?"w":"",null==(i=e.view)?void 0:i.map(fc).join("/"),null==(n=e.area)?void 0:n.map(fc).join("/"),null==(r=null==(s=t.settings)?void 0:s.focus)?void 0:r.map(fc).join("-"),e.cultures].join(",").replace(/,+$/,"")+(e.size?`|${e.size.join(",")}`:"")};let vc=gc;class $c{constructor(t){this.micrio=t,this.element=document.createElement("canvas"),this.resizing=!1,this.hasPerspective=!1,this.viewport={width:0,height:0,left:0,top:0,ratio:0,scale:0,portrait:!1},this.isMobile=Ht(!1),this.getRatio=(t=(t=>null==(t=this.micrio.$current)?void 0:t.$settings)()??{})=>!ie.iOS&&!(null==t?void 0:t.noRetina)&&self.devicePixelRatio&&Math.max(1,Math.min(2,self.devicePixelRatio))||1,this.onresize=this.onresize.bind(this),self.ResizeObserver&&(this.resizeObserver=new self.ResizeObserver(this.onresize)),this.element.className="micrio"}get $isMobile(){return u(this.isMobile)}place(){if(this.element.parentNode)return;const t=this.micrio.querySelector("img.preview");this.micrio.insertBefore(this.element,t?t.nextSibling:this.micrio.firstChild)}hook(){this.onresize(),this.resizeObserver?this.resizeObserver.observe(this.element):window.addEventListener("resize",this.onresize)}unhook(){this.resizeObserver?this.resizeObserver.unobserve(this.element):window.removeEventListener("resize",this.onresize)}onresize(){var t,e,i;const n=this.element.getBoundingClientRect();(null==(t=this.micrio.$current)?void 0:t.is360)&&(this.hasPerspective=!0);let s=n.width,r=n.height;if(!s||!r)return;const o=self.getComputedStyle(this.element),a=parseFloat(o.width);isNaN(a)||(r=parseFloat(o.height)*s/Math.max(1,a));const l=this.micrio.hasAttribute("data-static")?1:Math.floor(s)/this.micrio.offsetWidth;s/=l,r/=l;const c=1!=l?1:this.getRatio(),d=this.viewport;d.width==s&&d.height==r&&d.ratio==c&&d.scale==l||(this.hasPerspective&&(this.micrio.style.perspective=r/2+"px"),d.width=s,d.height=r,d.ratio=c,d.scale=l,d.top=n.top,d.left=n.left,d.portrait=null==(e=window.matchMedia("(orientation: portrait)"))?void 0:e.matches,this.resizing=!0,this.element.width=s*c,this.element.height=r*c,this.micrio.webgl.gl.viewport(0,0,d.width*d.ratio,d.height*d.ratio),null==(i=this.micrio.webgl.postpocessor)||i.resize(),this.micrio.wasm.resize(d),this.resizing=!1,this.micrio.events.dispatch("resize",n),setTimeout((()=>this.isMobile.set(/mobile/i.test(navigator.userAgent))),10))}setMargins(t,e){this.micrio.wasm.e.setArea(this.micrio.wasm.getPtr(),t,e)}}const wc=class t extends HTMLElement{constructor(){super(),this.printed=!1,this.canvases=[],this.current=Ht(),this.visible=Ht([]),this.canvas=new $c(this),this.events=new dc(this),this.state=new Wa.Main(this),this.analytics=new pc(this),this._router=new hc(this),this.barebone=Ht(!1),this.webgl=new sc(this),this.wasm=new Ql(this),this.defaultSettings=this.defaultSettings,this.loading=Ht(!0),this.switching=Ht(!1),this.isMuted=Ht("1"==localStorage.getItem(za)),this._lang=Ht(),this.keepRendering=!1,this.loadV5Album=(t,e)=>(t=>"MICRIO_ALBUM"in self?Promise.resolve(self.MICRIO_ALBUM):ue(`https://i.micr.io/album/${t}.json`))(t).then((t=>{var i;if(!t)return;const n=t.id+"."+t.revision,s=e.path=(null==(i=t.organisation)?void 0:i.baseUrl)??Pa;return e.organisation=t.organisation,e.settings.album=t,e.settings.gallery={archive:n,sort:t.sort,type:t.type,startId:e.id,isSpreads:t.isSpreads,coverPages:t.coverPages,revisions:t.published},delete e.id,this.loadArchiveBin(s,n).then((()=>this.loadGallery(e,s,!0)))}),(t=>this.printError((null==t?void 0:t.message)||t))),this.getArchiveIndex=async(t,e=La)=>Ga.get(`${e}${t}.json`).then((t=>(t.images.forEach((t=>ce.set(`${e}${t.id}/info.json`,t))),t))),this.current.subscribe((t=>this._current=t)),le(this.loading,{targetValue:!1}).then((()=>{this.setAttribute("data-loaded",""),this.switching.subscribe((t=>{t?this.setAttribute("data-switching",""):(vt().then((()=>this.events.dispatch("show",this))),this.removeAttribute("data-switching"))}));const t=this.querySelector("img.preview");t&&setTimeout((()=>t.remove()),500)}))}static get observedAttributes(){return["id","muted","data-grid","data-limited","lang"]}get $current(){return this._current}get camera(){var t;return null==(t=this._current)?void 0:t.camera}attributeChangedCallback(t,e,i){var n,s,r,o;switch(t){case"id":if(!this.isConnected||!i)return;this.printed?this.open(i):this.print();break;case"muted":this.isMuted.set(null!==i);break;case"data-grid":this.printed?null==(s=null==(n=this.$current)?void 0:n.grid)||s.set(i):this.print();break;case"data-limited":(null==(r=this.wasm)?void 0:r._vertexBuffer)&&(null==(o=this.$current)?void 0:o.ptr)&&this.wasm.e._setLimited(this.$current.ptr,!!i);break;case"lang":let t=u(this._lang);t!=i&&(this._lang.set(i),Oe.set(De[i]??De.en),i&&(nn.indexOf(i)>=0?this.setAttribute("dir","rtl"):this.removeAttribute("dir")),t&&this.events.dispatch("lang-switch",i))}}connectedCallback(){this.canvas.place(),(this.hasAttribute("data-router")||this.hasAttribute("data-space"))&&"false"!=this.getAttribute("data-router")&&this._router.hook(),!this.id&&!this.hasAttribute("data-gallery")||this.printed||this.print(),"muted"in this||(Object.defineProperty(this,"muted",{get(){return u(this.isMuted)},set(t){t?this.setAttribute("muted",""):this.removeAttribute("muted")}}),this.isMuted.subscribe((t=>{this.muted=t,t?(localStorage.setItem(za,"1"),this.events.dispatch("audio-mute")):(localStorage.removeItem(za),this.events.dispatch("audio-unmute"))})))}destroy(){var t;this.current.set(void 0),this._router.unhook(),this.events.enabled.set(!1),this.canvas.unhook(),this.analytics.unhook(),this.wasm.unbind(),this._ui&&(null==(t=this._ui)||t.$destroy()),delete this._ui,this.printed=!1}loadArchiveBin(t,e){return this.printUI(!0,!0),Ga.load(t,"g/"+e,(t=>{var e;return null==(e=this._ui)?void 0:e.$set({loadingProgress:t})}))}async print(){var t,e,i,n;if(this.printed)return;this.printed=!0,await vt();const s=this.getOptions();if(s.settings||(s.settings={}),s.settings.noControls&&this.state.ui.controls.set(!1),null==(t=s.settings.gallery)?void 0:t.archive){const t=null==(e=s.settings.gallery)?void 0:e.archive,i=/\.\d+$/.test(t),n=s.path||(be(t.replace(/\.\d+$/,""))?Pa:La);i&&await this.loadArchiveBin(n,t),s.settings.gallery.startId=s.id,s.grid?await this.setGrid(s,n):await this.loadGallery(s,n,i),i||delete s.settings.gallery.archive,s.path||(s.path=n),delete s.id}else(null==(i=s.id)?void 0:i.startsWith("album/"))?await this.loadV5Album(s.id.replace("album/",""),s):s.id&&be(s.id)&&!this.hasAttribute("width")&&!this.hasAttribute("height")&&await me(s.id,s.forceInfoPath?s.path:void 0,null==(n=s.settings)?void 0:n.forceDataRefresh).then((t=>(null==t?void 0:t.albumId)?this.loadV5Album(t.albumId,s):void 0));this.keepRendering=!!s.settings.keepRendering;const r=s.id||s.gallery||s.grid;if(this.events.dispatch("print",s),void 0!==s.settings.lazyload&&"IntersectionObserver"in window){const t=new IntersectionObserver((e=>{e[0]&&e[0].isIntersecting&&(t.unobserve(this),r&&this.open(s))}),{rootMargin:100*s.settings.lazyload+"% 0px"});t.observe(this)}else r&&requestAnimationFrame((()=>this.open(s)))}printUI(e,i){this._ui?this._ui.$set({noLogo:i,noHTML:e}):this._ui=new t.Svelte({target:this,props:{micrio:this,noHTML:e,noLogo:i}})}printError(t){var e;null==(e=this._ui)||e.$set({error:t??"An unknown error has occurred"})}open(t,e={}){var i,n,s,r;this.printed||this.print();const o="string"==typeof t,a=this.getOptions();let l=o?{...a,id:t}:t;if(this.$current&&l.id==(null==(i=this.$current)?void 0:i.id))return this.$current;l.settings||(l.settings={}),(null==(s=null==(n=a.settings)?void 0:n.gallery)?void 0:s.archive)&&(/\.\d+$/.test(a.settings.gallery.archive)||delete a.settings.gallery.archive),o||ne(a.settings,l.settings),this.defaultSettings&&ne(this.defaultSettings,l.settings),e.splitScreen||e.gridView||!this.$current||this.switching.set(!0),l.settings.noGTag||this.analytics.hook(),this.printed=!0,this.printUI(!!l.settings.noUI,!!l.settings.noLogo);let c=this.canvases.find((t=>l.id&&t.id==l.id)),d=!1;const u=null==(r=this.canvases[0])?void 0:r.grid;if(!c&&u){const t=l.id?u.images.find((t=>t.id==l.id)):void 0;d=!!t,c=l.id?t:this.canvases[0],d&&!u.insideGrid()&&this.current.set(this.canvases[0])}if(!c){if(this.canvases.length){const t=this.canvases[0];l.path=t.dataPath,l.lang=this.lang}this.canvases.push(c=new ja(this.wasm,l,e.splitScreen?{secondaryTo:e.splitTo??this._current,isPassive:e.isPassive}:void 0));const t=this.state.value&&this.state.value.c.find((t=>t[0]==l.id));t&&c.state.set(t)}e.startView&&(c.state.view.set(l.settings.view=e.startView),c.ptr&&c.camera.e&&c.camera.setView(l.settings.view,{noRender:!0})),this.lang||(this.lang="en");const h=()=>{var t,i,n,s;c&&(le(c.info).then((t=>{var i;if(t&&c){if(!this.webgl.gl)switch(this.webgl.init(),this.canvas.hook(),null==(i=t.settings)?void 0:i.theme){case"light":this.setAttribute("data-light-mode","");break;case"os":this.setAttribute("data-auto-scheme","")}t.grid&&!c.grid&&(c.grid=new vc(this,c)),vt().then((()=>this.dispatchEvent(new CustomEvent("load",{detail:c})))),e.splitScreen&&vt().then((()=>{c&&((null==u?void 0:u.image.camera.aniDone)?u.image.camera.aniDoneAdd.push((()=>null==c?void 0:c.splitStart())):c.splitStart())}))}})),this.wasm.e.set360Orientation(this.wasm.getPtr(),(null==(t=e.vector)?void 0:t.direction)??0,(null==(i=e.vector)?void 0:i.distanceX)??0,(null==(n=e.vector)?void 0:n.distanceY)??0),this.wasm.preventDirectionSet=!e.vector,!d||e.gridView&&(null==u?void 0:u.current.find((t=>t.id==l.id)))?e.splitScreen?this.wasm.setCanvas(c):this.current.set(c):null==u||u.focus(c,{view:null==(s=l.settings)?void 0:s.view}).then((()=>this.current.set(c))))};return this.wasm.ready?h():this.wasm.load().then(h),c.noImage&&this.loading.set(!1),c}close(t){t.opts.secondaryTo?t.splitEnd():this.wasm.removeCanvas(t)}getOptions(){const t={gallery:{}},e={settings:t,id:this.id},i=(t,e,i)=>{const n=e.split(".");for(let s=0;s<n.length-1;s++)t=t[n[s]];t[n[n.length-1]]=i};for(const n in Oa.STRINGS){const s=Oa.STRINGS[n],r=this.getAttribute(n),o=s.f||n.replace("data-","");r&&i(s.r?e:t,o,r)}for(const n in Oa.BOOLEANS){const s=Oa.BOOLEANS[n],r=this.getAttribute(n),o=s.f||n.replace("data-",""),a=null!=r&&""==r||"true"==r;(a||"false"==r)&&i(s.r?e:t,o,s.n?!a:!!a)}for(const n in Oa.NUMBERS){const s=Oa.NUMBERS[n],r=s.f||n.replace("data-","");let o=this.getAttribute(n);void 0!==s.dN&&null==o&&(o=s.dN),null==o||isNaN(Number(o))||i(s.r?e:t,r,Number(o))}for(const n in Oa.ARRAYS){const s=Oa.ARRAYS[n],r=this.getAttribute(n),o=s.f||n.replace("data-","");null!=r&&i(s.r?e:t,o,r.split(",").map((t=>Number(t))))}return t.static&&(t.noUI=t.skipMeta=!0,t.hookEvents=!1),e.settings&&e.grid&&e.grid.indexOf(".")>0&&(e.settings.gallery.archive=e.grid),e}async loadGallery(t,e,i){var n;let s=null==(n=t.settings)?void 0:n.gallery,r=null==s?void 0:s.archive;if(!s||!r)return;const o=t.settings;if(i){const t=await this.getArchiveIndex(r.split(".")[0],e);s.archiveLayerOffset=t.delta,r=t.images.sort("name"==s.sort?(t,e)=>t.title&&e.title?t.title<e.title?-1:t.title>e.title?1:0:0:"-name"==s.sort?(t,e)=>t.title&&e.title?t.title<e.title?1:t.title>e.title?-1:0:0:"-created"==s.sort?(t,e)=>t.created&&e.created?t.created<e.created?1:t.created>e.created?-1:0:0:(t,e)=>t.created&&e.created?t.created<e.created?-1:t.created>e.created?1:0:0).map((t=>`${t.id},${t.width},${t.height},${t.isDeepZoom?"d":""},${t.isPng?"p":t.isWebP?"w":""},${t.tileSize||""}`.replace(/\,+$/,""))).join(";")}const a=r.split(";").map((t=>t.trim()));if(!i){const t=a.filter((t=>t.startsWith("http"))).map((t=>ue(t)));t.length&&await Promise.all(t).then((t=>t.forEach(((t,e)=>{t&&(a[e]=`${t["@id"]},${t.width},${t.height}`)}))))}const l=a.map((t=>t.split(",").map((t=>isNaN(t)?t:Number(t)))));l.forEach(((t,e)=>{e>0&&!t[2]&&t.push(...l[e-1].slice(1))}));const c=t.height=Math.max(...l.map((t=>t[2])));s.type||(s.type="swipe");const d="switch"==s.type||"swipe-full"==s.type||"omni"==s.type,u=s.isSpreads,h=u&&!d?Math.round(l[0][1]/20):0,m=u?s.coverPages??0:0,p=t.width=d?Math.max(...l.map((t=>t[1]*(u?2:1)))):l.reduce(((t,e)=>t+e[1]+h),0);let f=0;t.gallery=l.map(((t,i)=>{var n;return new ja(this.wasm,{id:t[0],path:e,width:t[1],height:t[2],isDeepZoom:"d"==t[3],isPng:"p"==t[4],isWebP:"w"==t[4],tileSize:t[5]||1024,revision:null==(n=null==s?void 0:s.revisions)?void 0:n[t[0]],settings:{skipMeta:!0,gallery:s}},{isEmbed:d,useParentCamera:d,area:d?u?i-m<0||i==l.length-1&&(i-m)%2==0?[.25,0,.75,1]:(i-m)%2==0?[0,0,.5,1]:[.5,0,1,1]:[0,0,1,1]:[(f+=i>0&&(i<m||(i-m)%2==0)?h:0)/p,(c-t[2])/2/c,(f+=t[1])/p,((c-t[2])/2+t[2])/c]})})),o.pinchZoomOutLimit=!0,t.gallery.length&&(o.view=t.gallery[Math.max(0,t.gallery.findIndex((t=>t.id==s.startId)))].opts.area)}async setGrid(t,e){var i;t.settings&&t.grid&&((null==(i=t.settings.gallery)?void 0:i.archive)==t.grid&&(t.grid=(this.gridInfoData=await this.getArchiveIndex(t.grid.split(".")[0],e)).images.map((t=>vc.getString(t,{cultures:"cultures"in t?t.cultures.join("-"):void 0}))).join(";")),t.width=this.offsetWidth*this.canvas.getRatio(),t.height=this.offsetHeight*this.canvas.getRatio(),t.settings.zoomLimit=15,t.settings.minimap=!1,t.settings.initType="cover",this.removeAttribute("data-grid"))}};wc.jsonCache=ce;let yc=wc;yc.Svelte=class extends Yt{constructor(t){super(),Gt(this,t,Rl,zl,a,{micrio:35,noHTML:0,noLogo:36,loadingProgress:1,error:2},null,[-1,-1,-1])}},yc.VERSION=Ia,customElements.define("micr-io",yc),console.log("%c◈%c Micrio %cv5.2.2 - https://micr.io/","color: #00d4ee","color: #c5ff5b","color: inherit")}();
|
|
25
|
-
})(`html{--micrio-color: #fff;--micrio-color-hover: #45A4E4;--micrio-border-radius: 4px;--micrio-background: rgba(41,41,41,.75);--micrio-background-filter: blur(8px);--micrio-popover-background: rgba(41,41,41,.75);--micrio-icon-size: 18px;--micrio-text-align: left;--micrio-line-height: 1.5em;--micrio-border-margin: 16px;--micrio-button-size: 48px;--micrio-button-shadow: 0 4px 8px rgba(0,0,0,.33);--micrio-marker-size: 16px;--micrio-marker-text-color: #fff;--micrio-marker-text-shadow: 0px 2px 4px rgba(0,0,0,.6);--micrio-marker-highlight: #00d4ee;--micrio-marker-color: #fff;--micrio-marker-border-radius: 100%;--micrio-marker-border-color: rgba(255,255,255,.2);--micrio-marker-border-size: 8px;--micrio-marker-icon: none;--micrio-marker-transition: background-color .25s ease, opacity .15s ease, border-width .15s ease, width .15s ease, height .15s ease;--micrio-popup-shadow: 0 8px 16px rgba(0,0,0,.33);--micrio-popup-padding: 16px;--micrio-progress-bar-background: rgba(255,255,255,.25);--micrio-progress-bar-height: 4px;--micrio-waypoint-size: 120px}micr-io[data-light-mode]{--micrio-color: #000;--micrio-color-hover: #196DA6;--micrio-background: rgba(255,255,255,.66);--micrio-progress-bar-background: rgba(0,0,0,.25);--micrio-popover-background: rgba(41,41,41,.75)}@media (prefers-color-scheme: light){micr-io[data-auto-scheme]{--micrio-color: #000;--micrio-color-hover: #196DA6;--micrio-background: rgba(255,255,255,.66);--micrio-progress-bar-background: rgba(0,0,0,.25)}}@media (max-width: 500px){html{--micrio-border-margin: 5px;--micrio-button-size: 48px}}micr-io{display:block;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overflow:hidden;position:relative;width:100%;height:100%;min-height:200px;backface-visibility:hidden;-webkit-backface-visibility:hidden;background-repeat:no-repeat;background-position:center center;background-size:contain;container-type:size}micr-io,micr-io button{font-family:var(--micrio-font-family, inherit);font-size:var(--micrio-font-size, inherit);background-color:var(--micrio-background-color, transparent)}micr-io h3{font-weight:600}micr-io[dir=rtl]{--micrio-text-align: right}canvas.micrio{display:block;position:absolute;top:0;left:0;width:100%!important;height:100%!important;backface-visibility:hidden;user-select:none;-webkit-touch-callout:none;-webkit-user-select:none}micr-io:not([static]){overscroll-behavior:none}micr-io[data-hooked]:not([data-panning])>canvas.micrio{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:-ms-grab;cursor:grab;-ms-content-zooming:none;-ms-touch-action:none;touch-action:none}micr-io[data-panning]{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:-ms-grabbing;cursor:grabbing}micr-io[data-hooked][data-can-pan]>canvas.micrio{-ms-touch-action:pan-y;touch-action:pan-y;overscroll-behavior:initial}micr-io>.micrio-grid{position:absolute;top:0;left:0;width:100%;height:100%;display:grid;grid-auto-flow:row dense;grid-gap:0;will-change:transform;transform-origin:left top;--translate: none;--scale: 1;transform:var(--translate) scale3d(var(--scale),var(--scale),1)}micr-io>.micrio-grid>button{background:transparent;border:none;padding:0;margin:0;cursor:pointer;grid-area:auto / auto / span 1 / span 1}a.micrio-logo{position:absolute;top:calc(var(--micrio-border-margin) * 2);left:calc(var(--micrio-border-margin) * 2);width:22px;height:22px;transition:transform .25s ease;z-index:2;display:block}a.micrio-logo:hover{transform:rotate3d(0,0,1,-90deg)}a.micrio-logo:before,a.micrio-logo:after{display:block;content:"";position:absolute;transform:rotate3d(0,0,1,45deg);will-change:transform;box-sizing:unset}a.micrio-logo:before{border:3px solid #00d4ee;width:16px;height:16px}a.loading.micrio-logo:before{animation:micrio-logo-spin 1s infinite ease-out}a.micrio-logo:after{top:8px;left:8px;width:6px;height:6px;background:#c5ff5b;outline:1px solid #c5ff5b}a.loading.micrio-logo:after{animation:micrio-logo-spin .5s infinite ease-out}@keyframes micrio-logo-spin{0%{transform:rotate3d(0,0,1,45deg)}to{transform:rotate3d(0,0,1,135deg)}}a.micrio-logo-org{position:absolute;top:calc(var(--micrio-border-margin) * 2);right:calc(var(--micrio-border-margin) * 2);z-index:1}img.micrio-logo-org{max-height:64px}.svelte-fa-base{height:1em;overflow:visible;transform-origin:center;vertical-align:-.125em}.svelte-fa-fw{text-align:center;width:1.25em}.svelte-fa-pull-left.micrio-fa{float:left}.svelte-fa-pull-right.micrio-fa{float:right}.svelte-fa-size-lg.micrio-fa{font-size:1.33333em;line-height:.75em;vertical-align:-.225em}.svelte-fa-size-sm.micrio-fa{font-size:.875em}.svelte-fa-size-xs.micrio-fa{font-size:.75em}.spin.micrio-fa{animation:micrio-fa-spin 2s 0s infinite linear}.pulse.micrio-fa{animation:micrio-fa-spin 1s infinite steps(8)}@keyframes micrio-fa-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.svelte-fa-layers.micrio-fa-_layers{display:inline-block;position:relative}.svelte-fa-layers.micrio-fa-_layers .svelte-fa{position:absolute;bottom:0;left:0;right:0;top:0;margin:auto;text-align:center}.svelte-fa-layers.micrio-fa-_layers .svelte-fa-layers-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.svelte-fa-layers.micrio-fa-_layers .svelte-fa-layers-text span{display:inline-block}.svelte-fa-pull-left.micrio-fa-_layers{float:left}.svelte-fa-pull-right.micrio-fa-_layers{float:right}.svelte-fa-size-lg.micrio-fa-_layers{font-size:1.33333em;line-height:.75em;vertical-align:-.225em}.svelte-fa-size-sm.micrio-fa-_layers{font-size:.875em}.svelte-fa-size-xs.micrio-fa-_layers{font-size:.75em}.container.micrio-fa-_layers-_text{display:inline-block;height:auto}.svelte-fa-size-lg.micrio-fa-_layers-_text{font-size:1.33333em;line-height:.75em;vertical-align:-.225em}.svelte-fa-size-sm.micrio-fa-_layers-_text{font-size:.875em}.svelte-fa-size-xs.micrio-fa-_layers-_text{font-size:.75em}menu.micrio-menu{padding:0;margin:0;transition:background .2s ease,box-shadow .2s ease}.micrio-menu-action.micrio-menu{font-family:inherit;background:transparent;display:block;border:none;padding:0 24px;font-size:.9em;cursor:pointer;text-decoration:none;border-radius:0;color:inherit;text-shadow:inherit;box-sizing:border-box;text-align:center}@media (max-width: 500px){menu.micrio-menu{font-size:1em}.micrio-menu-action.micrio-menu{width:100%;margin-bottom:10px;padding:6px 0}strong.micrio-menu>svg{display:none}.items>menu.micrio-menu>.micrio-menu-action.micrio-menu{font-size:1em}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action.micrio-menu{font-size:1.5em;border-bottom:1px solid rgba(255,255,255,.5);margin-top:24px}}@media (min-width: 501px){div.items.micrio-menu{max-height:calc(100vh - 160px);overflow-y:auto;overflow-x:hidden}menu.micrio-toolbar>menu.micrio-menu{color:#fff;margin-right:var(--micrio-border-margin);border-radius:var(--micrio-border-radius);overflow:hidden}menu.micrio-toolbar>menu.micrio-menu:hover,menu.micrio-toolbar>menu.micrio-menu:focus-within{-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background:var(--micrio-background);box-shadow:var(--micrio-button-shadow)}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action.micrio-menu{position:relative}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action.micrio-menu>strong.micrio-menu{padding:5px;margin:0 -5px}menu.micrio-toolbar>menu.micrio-menu:hover .micrio-menu-action.micrio-menu,menu.micrio-toolbar>menu.micrio-menu:focus-within .micrio-menu-action.micrio-menu{text-shadow:none;color:var(--micrio-color)}strong.micrio-menu>svg{margin-left:10px;line-height:2px}menu.micrio-menu{float:left}menu.micrio-menu:not(:focus-within):not(:hover) .items.micrio-menu{display:none}.micrio-menu-action.micrio-menu{height:var(--micrio-button-size);line-height:var(--micrio-button-size);width:100%;text-align:var(--micrio-text-align);white-space:pre;font-weight:600}.items menu.micrio-menu{float:none}.items .micrio-menu-action.micrio-menu{width:100%}.micrio-menu-action.micrio-menu:hover{text-shadow:none!important}.micrio-menu-action.micrio-menu:hover{color:var(--micrio-color-hover)!important}}.micrio-button{margin:0;padding:0 8px;cursor:pointer;box-sizing:border-box;display:inline-block;vertical-align:bottom;transition:opacity .25s ease;font:inherit;font-size:90%;position:relative;touch-action:none;color:var(--micrio-color);background:var(--micrio-button-background, var(--micrio-background, none)) var(--background, none) center center no-repeat;background-size:24px;min-width:var(--micrio-button-size);height:var(--micrio-button-size);line-height:var(--micrio-button-size);border:none;border-radius:var(--micrio-border-radius);box-shadow:var(--micrio-button-shadow);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);text-decoration:none}.micrio-button:hover{outline:none}.micrio-button.transparent.micrio-button,.micrio-button.transparent.micrio-button:hover{background-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}.micrio-button>*{transition:opacity .25s ease}.micrio-button:disabled{pointer-events:none}.micrio-button:disabled>*{opacity:.4}.micrio-button.no-click.micrio-button{pointer-events:none}img.micrio-button{display:block;margin:0 auto;pointer-events:none}.micrio-button>*{height:var(--micrio-icon-size)!important;width:var(--micrio-icon-size);font-size:var(--micrio-icon-size);fill:var(--micrio-color);display:block;margin:0 auto}.micrio-button.active.micrio-button{color:var(--micrio-color-hover)}.micrio-button.active.micrio-button svg{fill:var(--micrio-color-hover)}@media (hover: hover){.micrio-button:hover{background-color:var(--micrio-button-background-hover, var(--micrio-button-background, var(--micrio-background)));color:var(--micrio-color-hover)}.micrio-button:hover svg{fill:var(--micrio-color-hover);stroke:var(--micrio-color-hover)}.micrio-button:focus{outline:1px solid var(--micrio-color-hover)}}menu.micrio-toolbar{position:absolute;top:calc(var(--micrio-border-margin) - (var(--micrio-button-size) / 2 - 27px));left:var(--micrio-border-margin);margin:0;padding:0;color:#fff;text-shadow:1px 1px 2px #000;transition:transform .25s ease;z-index:1}@media (max-width: 500px){.micrio-button.toggle{position:absolute;top:var(--micrio-border-margin);left:0;height:34px;width:34px;box-shadow:none;z-index:2}.micrio-button.toggle.indent{left:35px}menu.micrio-toolbar{transform:translateZ(0);width:100%;height:100%;background:#000000bf;top:0;left:0;padding:32px 0;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);z-index:1}menu.micrio-toolbar:not(.shown){transform:translate3d(calc(-100% - var(--micrio-border-margin) * 2),0,0)}}@media (min-width: 501px){menu.indent.micrio-toolbar{margin-left:calc(var(--micrio-border-margin) * 2 + 25px)}menu.micrio-toolbar>.micrio-menu:not(:hover)>button.micrio-menu{margin-bottom:-15px}}canvas.micrio-minimap{position:absolute;bottom:var(--micrio-border-margin);right:5px;transform-origin:right bottom;display:block;background-size:100%;transition:opacity .2s ease;cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:-ms-grab;cursor:grab;-ms-content-zooming:none;-ms-touch-action:none;touch-action:none;border-radius:var(--micrio-border-radius)}canvas:not(:hover).hidden.micrio-minimap{opacity:0;pointer-events:none}canvas.dragging.micrio-minimap{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:-ms-grabbing;cursor:grabbing}canvas.controls.micrio-minimap{right:calc(var(--micrio-border-margin) + var(--micrio-button-size) + 8px)}@media (max-width: 800px){canvas.micrio-minimap{transform:scale3d(.5,.5,1);pointer-events:none;right:65px}}div.micrio-button-group{box-shadow:var(--micrio-button-shadow);border-radius:var(--micrio-border-radius);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background:var(--micrio-button-background, var(--micrio-background, none))}div.micrio-button-group:empty{display:none}div.micrio-button-group>.micrio-button{display:block;box-shadow:none;--micrio-background-filter:none;--micrio-button-background:none}div.micrio-button-group .micrio-button{border-radius:0}div.micrio-button-group .micrio-button:first-child{border-radius:var(--micrio-border-radius) var(--micrio-border-radius) 0 0}div.micrio-button-group .micrio-button:last-child{border-radius:0 0 var(--micrio-border-radius) var(--micrio-border-radius)}@media (max-width: 500px){div.micrio-button-group>*{height:calc(var(--micrio-button-size) - 4px)}div.micrio-button-group .micrio-button:first-child{padding-top:0}div.micrio-button-group .micrio-button:last-child{padding-bottom:0}}aside.micrio-controls{position:absolute;right:var(--micrio-border-margin);bottom:var(--micrio-border-margin);padding:0;margin:0;transition:transform .5s ease,opacity .5s ease;direction:rtl}aside.primary.micrio-controls:not(.portrait){right:calc(50% + var(--micrio-border-margin))}aside.primary.portrait.micrio-controls{bottom:calc(50% + var(--micrio-border-margin))}micr-io[data-switching]>aside.micrio-controls,micr-io[data-tour-active]>aside.micrio-controls{opacity:0;pointer-events:none}aside.micrio-controls>menu,aside.micrio-controls>button{padding:0;margin:8px 0;display:block;width:var(--micrio-button-size)}menu.popout.micrio-controls{padding:0;width:var(--micrio-button-size);height:var(--micrio-button-size);white-space:pre;direction:rtl;pointer-events:none;box-shadow:var(--micrio-button-shadow);border-radius:var(--micrio-border-radius);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter)}menu.popout.micrio-controls:focus-within{pointer-events:all}menu.popout.micrio-controls button{pointer-events:all;transition:border-radius .2s ease,opacity .2s ease;--micrio-button-shadow:none;--micrio-background-filter:none}menu.popout.micrio-controls:hover>button:first-child{border-radius:0 var(--micrio-border-radius) var(--micrio-border-radius) 0}menu.popout.micrio-controls>*:not(:nth-child(1)){display:inline-block;padding:0;transition:opacity .2s ease;border-radius:0}menu.popout.micrio-controls>button:last-child{border-radius:var(--micrio-border-radius) 0 0 var(--micrio-border-radius)}menu.popout.micrio-controls:not(:focus-within)>*:not(:nth-child(1)){pointer-events:none;opacity:0}menu.popout.micrio-controls>*:nth-child(4){background-size:24px}div.micrio-subtitles{position:absolute;bottom:50px;left:50vw;left:50cqw;transform:translate3d(-50%,0,0);text-align:center;color:#fff;width:100vw;width:100cqw;pointer-events:none;transition:transform .2s ease}div.raised.micrio-subtitles{transform:translate3d(-50%,calc(-1 * var(--micrio-button-size)),0)}div.micrio-subtitles p.micrio-subtitles{margin:.5em 0;background-color:#0009;padding:0 14px;-webkit-box-decoration-break:clone;box-decoration-break:clone;white-space:pre-wrap;display:inline;text-shadow:2px 2px 1px #0005;font-size:2.5em;line-height:inherit}@media (max-width: 640px){div.micrio-subtitles{width:95vw;width:95cqw;font-size:.7em}}div.container.micrio-progress-bar{display:flex;width:auto;color:var(--micrio-color);background:var(--micrio-background);line-height:8px;flex:1;align-items:center;cursor:default}div.bars.micrio-progress-bar{flex:1;display:flex;height:var(--micrio-progress-bar-height);background:var(--micrio-progress-bar-background);position:relative}div.bars.micrio-progress-bar>*{height:100%;width:100%;display:block;box-sizing:border-box;position:relative;overflow:hidden;cursor:pointer}div.bars.micrio-progress-bar>*:before{display:block;position:absolute;content:" ";background:var(--micrio-color);height:100%;pointer-events:none;width:var(--perc, 0);will-change:width}div.bars.micrio-progress-bar:after{content:"";position:absolute;display:block;width:16px;height:16px;left:var(--progress);top:50%;transform:translate3d(-50%,-50%,0);background-color:var(--micrio-color);pointer-events:none;border-radius:8px}div.time.micrio-progress-bar{display:block;font-size:90%;min-width:50px;text-align:center;padding:0 10px}aside.micrio-media-controls{cursor:default;position:relative;display:flex;align-items:center;margin:0;background:var(--micrio-background)}aside.micrio-media-controls>button{border-radius:0;margin:0;border:none}aside.micrio-media-controls>button:last-child{margin-right:16px}aside.micrio-media-controls>*{--micrio-button-background:none;--micrio-background-filter:none;--micrio-button-shadow:none}:fullscreen>aside.micrio-media-controls{position:absolute;bottom:5px;left:50%;transform:translate(-50%);width:430px;max-width:90vw;max-width:90cqw}svg.micrio-media-controls{pointer-events:none;position:absolute;left:-1px;top:-1px;width:42px;height:42px;transform:rotate(-90deg)}circle.micrio-media-controls{stroke-width:2;stroke:#fff;fill:transparent;stroke-dasharray:119.4 119.4;transition:stroke-dashoffset .25s linear;transform-origin:center center}figure.micrio-media{display:block;margin:0;width:100%}figure.micrio-media div.micrio-media{cursor:pointer}figure.micrio-media div.videotour.micrio-media{display:flex}figure.micrio-media:fullscreen div.micrio-media{width:100vw;height:100vh;display:flex;flex-direction:column}figure.micrio-media:fullscreen div.micrio-media>:first-child{flex:1}.marker-popup>figure.micrio-media>div.micrio-media{width:100%}iframe.micrio-media,video.micrio-media{display:block;max-width:unset}figure.is360.micrio-media{position:absolute;bottom:5px;width:360px;left:50%;transform:translate(-50%)}figure.is360.micrio-media video.micrio-media{display:none;width:200px;height:200px}iframe.hooked.micrio-media{pointer-events:none}figcaption.micrio-media{font-style:italic;margin:.5em 1em;text-align:center;font-size:90%;color:var(--micrio-color)}:not(.micrio-popover)>figure.micrio-media>figcaption.micrio-media>*{margin:0}.micrio-popover figure.micrio-media{margin:0}aside.micrio-media{width:100%;display:flex}aside.inside.micrio-media{position:absolute;transform:translateY(-100%)}figure.paused>aside.inside.micrio-media{display:none}div.show-play.micrio-media{position:fixed;top:0;left:0;width:100%;height:100%;cursor:pointer;background:#0008;display:flex;align-items:center;justify-content:center}div.show-play.micrio-media>button.micrio-button{transform:scale(2)}figure.micrio-media:not(.media-micrio) button.micrio-button{margin:0;border:none;border-radius:0;white-space:pre;--micrio-background-filter:none;--micrio-button-shadow:none}figure.media-micrio.micrio-media{text-align:var(--micrio-text-align)}article.micrio-article{text-align:var(--micrio-text-align);line-height:var(--micrio-line-height, 1.5em)}article.micrio-article>*:first-child{margin-top:0}article.micrio-article>*:last-child{margin-bottom:0}article.micrio-article p a{color:var(--micrio-color-hover, inherit);word-wrap:break-word}main.micrio-marker-content{position:relative;padding:var(--micrio-popup-padding);padding-bottom:0;overflow-y:auto;-webkit-user-select:text;user-select:text;color:var(--micrio-color);background:var(--micrio-background);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);box-shadow:var(--micrio-popup-shadow);border-radius:var(--micrio-border-radius);box-sizing:border-box;text-align:var(--micrio-text-align)}main.micrio-marker-content>*{--micrio-button-background:none;--micrio-background-filter:none;--micrio-button-shadow:none}main.micrio-marker-content .micrio-progress-bar.container{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}main.micrio-marker-content::-webkit-scrollbar{background-color:transparent;width:10px}main.micrio-marker-content::-webkit-scrollbar-thumb{background:var(--micrio-color);border-radius:var(--micrio-border-radius);margin-top:10px}main.empty.micrio-marker-content{width:auto}main.micrio-marker-content h1.micrio-marker-content{font-size:1.5em;font-weight:600;margin:0 0 1.25em}main.micrio-marker-content>figure.micrio-media{margin:calc(-1 * var(--micrio-popup-padding));margin-bottom:0;width:auto}main.micrio-marker-content>figure.micrio-media:not(.media-video):not(:last-child)>*:last-child:not(figcaption){margin-bottom:var(--micrio-popup-padding);background:var(--micrio-background);padding:0 var(--micrio-popup-padding)}main.micrio-marker-content>figure.micrio-media.media-video{margin-bottom:var(--micrio-popup-padding)}main.micrio-marker-content>figure.micrio-media>div>aside.micrio-media{--micrio-background:transparent}main.micrio-marker-content>article:last-child{margin-bottom:var(--micrio-popup-padding)}main.micrio-marker-content p{white-space:pre-line}main.micrio-marker-content figure.hidden{display:none}main.micrio-marker-content figure>div.micrio-media>*:first-child{width:100%}button.micrio-marker-content{padding:0;margin:0 calc(-1 * var(--micrio-popup-padding)) var(--micrio-popup-padding) calc(-1 * var(--micrio-popup-padding))}figcaption.micrio-marker-content{padding:10px;font-style:italic;font-size:.9em;margin-bottom:var(--micrio-popup-padding);text-align:center}section.micrio-marker-content{display:grid;grid-template-columns:repeat(3,auto);column-gap:5px;row-gap:5px;justify-items:center}section.micrio-marker-content button.micrio-marker-content{color:inherit;border:none;display:block;width:100%;cursor:pointer}section.micrio-marker-content figure.micrio-marker-content{padding:0;margin:0}section.micrio-marker-content img.micrio-marker-content{width:100%;display:block;object-fit:cover}div.micrio-marker-popup{display:block;cursor:auto;pointer-events:all;position:absolute;top:var(--micrio-border-margin);left:var(--micrio-border-margin)}div.destroying.micrio-marker-popup{pointer-events:none}div.micrio-marker-popup>main{max-height:80cqh}aside.micrio-marker-popup{padding:var(--micrio-border-margin)}aside.micrio-marker-popup progress.micrio-marker-popup{display:none}@media (min-width: 501px){div.micrio-marker-popup{width:440px;min-width:20%}aside.micrio-marker-popup{position:absolute;left:100%;top:0;padding-top:0}aside.micrio-marker-popup>.micrio-button{padding:0;margin:0 0 8px;display:block}}@media (max-width: 500px){aside.micrio-marker-popup{position:relative;padding:0;display:flex;flex-direction:row-reverse;margin-bottom:var(--micrio-border-margin)}aside.micrio-marker-popup progress.micrio-marker-popup{display:block;flex:1;opacity:0;pointer-events:none}aside.micrio-marker-popup .micrio-tour-controls{margin-bottom:0!important;display:flex}aside.micrio-marker-popup .micrio-button{display:block!important;height:var(--micrio-button-size);padding:0!important}div.micrio-marker-popup{top:var(--micrio-border-margin);right:var(--micrio-border-margin);left:var(--micrio-border-margin)}div.micrio-marker-popup>main{max-height:calc(100cqh - var(--micrio-button-size) - 3 * var(--micrio-border-margin));box-sizing:border-box}}div.micrio-marker-popup>main>*:not(h3){transition-property:margin-top,margin-bottom,height,opacity;transition-duration:.5s;transition-timing-function:ease;overflow:hidden}div.minimized.micrio-marker-popup>main>*:not(h3){margin-top:0;margin-bottom:0;opacity:0}button.tour-step.micrio-marker-popup{height:auto;line-height:normal;vertical-align:middle}ol.micrio-serial-tour{position:absolute;left:0;bottom:75px;color:var(--micrio-color);text-shadow:var(--micrio-marker-text-shadow);list-style-type:decimal-leading-zero;margin:0}ol.micrio-serial-tour>li.micrio-serial-tour{height:1.5em;white-space:pre;transition:height .25s ease,opacity .25s .25s ease}ol.micrio-serial-tour li.active.micrio-serial-tour{font-weight:700}.minimized>ol.micrio-serial-tour>li.micrio-serial-tour:not(.active){height:0em;opacity:0;transition:height .25s .25s ease,opacity .25s ease}ol.micrio-serial-tour li button.micrio-serial-tour{font:inherit;background:none;border:none;display:inline;color:inherit;text-shadow:inherit;cursor:pointer}ol.micrio-serial-tour li button.micrio-serial-tour:hover{text-decoration:underline}aside.micrio-media-controls.micrio-serial-tour>figure.micrio-media{display:none}div.micrio-tour{position:absolute;bottom:var(--micrio-border-margin);left:50%;max-width:calc(100% - var(--micrio-border-margin) * 2);transform:translate(-50%);box-sizing:border-box;display:flex;border-radius:var(--micrio-border-radius);box-shadow:var(--micrio-button-shadow);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background-color:var(--micrio-button-background, var(--micrio-background, none));padding:0;transition:transform .2s ease}div:not(:hover).minimized.micrio-tour{transform:translate3d(-50%,calc(100% + var(--micrio-border-margin)),0);pointer-events:none}.serial-tour.micrio-tour>*{--micrio-background:none}.serial-tour.minimized.micrio-tour{transform:translate3d(0,calc(100% + var(--micrio-border-margin)),0)}.serial-tour.micrio-tour,.video-tour.micrio-tour{width:500px}div.micrio-tour>*{--micrio-button-background:none}div.micrio-tour button{margin:0;border:none;border-radius:0;white-space:pre;--micrio-background-filter:none;--micrio-button-shadow:none}article.scroll-tour.micrio-tour{position:absolute;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:scroll}button.micrio-button.scroll-tour-end{position:absolute;top:5px;right:5px}article.micrio-tour>div.micrio-marker-popup{margin:20vh 50px 50vh;margin:20cqh 50px 50cqh;display:flex}article.micrio-tour>div.micrio-marker-popup:nth-child(odd){justify-content:right}div.micrio-dial{position:absolute;bottom:var(--micrio-border-margin);width:320px;max-width:calc(100vw - calc(2 * (var(--micrio-button-size) + 4 * var(--micrio-border-margin))));left:50%;transform:translate(-50%);height:calc(var(--micrio-button-size) * .6);touch-action:none;background-color:transparent;cursor:w-resize}div.micrio-dial:before,div.micrio-dial:after{content:"";display:block;width:100%;position:absolute;background-position:var(--micrio-dial-offset, 0px)}div.micrio-dial:before{height:50%;top:25%;background-image:repeating-linear-gradient(to right,#8888 0%,#8888 .5%,transparent 1%,transparent 2.5%)}div.micrio-dial:after{height:100%;background-image:repeating-linear-gradient(to right,#fff8 0%,#fff8 .5%,transparent 1%,transparent 20%)}span.micrio-dial{position:absolute;display:block;bottom:0;line-height:calc(var(--micrio-button-size) * .6);left:50%;transform:translate(calc(-50% + 5px));color:var(--micrio-color);opacity:.85;pointer-events:none;text-shadow:1px 1px 3px #000,-1px -1px 3px #000}ul.micrio-gallery{position:absolute;bottom:var(--micrio-border-margin);left:50%;transform:translate(-50%);display:flex;list-style-type:none;background:var(--micrio-background);border-radius:var(--micrio-border-radius);padding:0 16px;margin:0;color:var(--micrio-color);transition:opacity .25s ease;max-width:calc(100vw - 50px);max-width:calc(100cqw - 50px);width:520px;touch-action:none}@media (max-width: 500px){ul.micrio-gallery{left:5px;right:52px;width:auto;transform:none}div.hidden.micrio-gallery>ul.micrio-gallery{transition-delay:.25s}}li.micrio-gallery{flex:1;transition:none;padding:0;line-height:var(--micrio-button-size);font-size:32px;text-align:center;width:0;transition:opacity .25s ease;opacity:.25;display:block;height:48px;position:relative}li.active.micrio-gallery{transition-duration:0s;opacity:1}li.micrio-gallery>button.micrio-gallery{border:none;color:inherit;cursor:pointer;position:absolute;left:50%;transform:translate3d(-50%,0,0);height:48px;width:100%;min-width:48px;pointer-events:none}li.hover.micrio-gallery>button.micrio-gallery{pointer-events:all}@media (hover: hover){li.hover.micrio-gallery{transition-duration:0s;opacity:1}}button.micrio-gallery:not(.bullet){position:absolute;width:var(--micrio-button-size);height:var(--micrio-button-size);box-sizing:border-box;background:#eee3;border:none;border-radius:var(--micrio-border-radius);touch-action:none;transition:left .15s ease,background-color .2s ease;transform:translate(-50%)}ul.micrio-gallery>button.micrio-gallery{top:0;left:0;cursor:ew-resize}button.angular.micrio-gallery{bottom:42px;left:50%;color:#444;font-size:32px;line-height:42px;padding:0;cursor:move}button.micrio-gallery:not(.bullet):hover{background:#eee8}button:not(.bullet).dragging.micrio-gallery{transition:none}div.micrio-gallery{display:contents;transition:opacity .5s ease}div.hidden.micrio-gallery:not(:hover)>*,div.micrio-gallery>button.gallery-btn:disabled{opacity:0;pointer-events:none}div.micrio-gallery>button.gallery-btn{position:absolute;top:50%;transform:translateY(-50%)}div.micrio-gallery>button.gallery-btn.arrow-left{left:var(--micrio-border-margin)}div.micrio-gallery>button.gallery-btn.arrow-right{right:var(--micrio-border-margin)}details.micrio-details{position:absolute;bottom:var(--micrio-border-margin);left:var(--micrio-border-margin);padding:var(--micrio-popup-padding);font-size:.9em;max-width:410px;-webkit-user-select:text;user-select:text;white-space:normal;transition:all .5s ease;box-sizing:border-box;transition:transform .5s ease;color:var(--micrio-color);background:var(--micrio-background);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);box-shadow:var(--micrio-popup-shadow);border-radius:var(--micrio-border-radius)}details.micrio-details summary.micrio-details{cursor:pointer}details.micrio-details small.micrio-details{display:block;font-style:italic;font-weight:400}details.micrio-details>.micrio-details{margin:0;overflow:hidden;text-overflow:ellipsis}details.micrio-details a{color:#23b9f5}details.micrio-details button{position:absolute;top:0;left:calc(100% + 8px)}@media (max-width: 600px){details.micrio-details{max-width:calc(100% - 10px)}details.micrio-details:not([open]) cite.micrio-details{display:none}details.micrio-details:not([open]) summary.micrio-details::marker{content:"?";font-size:20px;font-weight:700;line-height:20px}details.micrio-details button{position:absolute;top:auto;left:auto;right:0;bottom:calc(100% + 8px)}}div.micrio-error{position:absolute;background:#000000bf none 10px center no-repeat;text-align:center;border-radius:5px;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;border:1px solid white;padding:10px;white-space:pre-wrap;-webkit-user-select:text;user-select:text;line-height:24px}div.micrio-error *{vertical-align:middle;height:24px;width:24px;fill:var(--micrio-color);margin-right:10px}@media screen and (max-width: 520px){div.micrio-error{box-sizing:border-box;width:90%}}micr-io.micrio-micrio-gallery{background:#1118}micr-io.micrio-micrio-gallery ul.micrio-gallery{--micrio-border-margin:16px}@media (min-width: 501px){micr-io.micrio-micrio-gallery:not(:fullscreen)>aside{position:fixed}}dialog.micrio-popover::backdrop{color:#fff;animation:micrio-popover-fadeInBg .2s forwards;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}@keyframes micrio-popover-fadeInBg{0%{background:#0000}to{background:var(--micrio-popover-background)}}@keyframes micrio-popover-fadeIn{0%{opacity:0}to{opacity:1}}dialog.micrio-popover{animation:micrio-popover-fadeIn .5s forwards;background:transparent;border:none;overflow:visible;padding:0;pointer-events:all}dialog.micrio-popover div.micrio-media>*:first-child{border-radius:var(--micrio-border-radius);overflow:hidden}dialog.micrio-popover div.micrio-media>aside{--micrio-background:none;--micrio-button-background:none}dialog.page.article.micrio-popover figure.media-video iframe{width:100%}aside.micrio-popover{--micrio-background-filter:none;position:absolute;z-index:1}dialog.micrio-popover:not(.article){display:flex}dialog.micrio-popover:not(.article) figure>div.micrio-media{height:100%}@media (min-width: 640px){aside.micrio-popover{display:block;left:100%;margin-left:var(--micrio-border-margin);top:0}aside.inside.micrio-popover{right:0;left:auto}aside.micrio-popover:not(.inside){position:absolute;top:0;left:100%;z-index:2}aside.micrio-popover>.micrio-button{padding:0;margin:0 0 8px;display:block}dialog.micrio-popover:not(.article){width:calc(85vw - 56px);height:47.8125vw;width:calc(85cqw - 56px);height:47.8125cqw}dialog.micrio-popover>main{width:25vw;width:25cqw;min-width:unset;max-width:320px}dialog.micrio-popover>main>h3{margin-right:55px}}@media (max-width: 640px){aside.micrio-popover{position:fixed;top:var(--micrio-border-margin);right:var(--micrio-border-margin)}aside.micrio-popover .micrio-button{display:inline-block!important;border-radius:var(--micrio-border-radius)!important;height:var(--micrio-button-size);box-shadow:var(--micrio-button-shadow);padding:0!important;margin-bottom:8px}dialog.micrio-popover:not(.article){width:100%;height:100%;flex-direction:column}dialog.micrio-popover:not(.article) figure.micrio-media{flex:1}}dialog.micrio-popover>figure{flex:1;position:relative;margin:0}dialog.micrio-popover>figure>figcaption{position:absolute;width:100%;bottom:100%;font-style:italic;text-align:center;font-size:90%;padding:0;margin:var(--micrio-border-margin);color:var(--micrio-color)}dialog.micrio-popover>figure>div.micrio-media>*:first-child{width:100%;height:calc(100% - var(--micrio-button-size))}dialog.micrio-popover>figure>div.micrio-media>micr-io{height:100%!important}@media (min-aspect-ratio: 16/9){dialog.micrio-popover:not(.article){height:75vh;width:calc(16 / 9 * 75vh);height:75cqh;width:calc(16 / 9 * 75cqh)}}@media (max-width: 640px){dialog.micrio-popover div.micrio-media>*:first-child{border-radius:none}dialog.micrio-popover:not(.article)>*:first-child{height:50vh;height:50cqh;flex-direction:column;justify-content:center}dialog.micrio-popover:not(.article)>figure:first-child{flex:none;display:flex;flex-direction:column}}dialog.article.micrio-popover>article{text-shadow:none;color:var(--micrio-color);background:var(--micrio-background);padding:20px;box-sizing:border-box;max-height:calc(90cqh - 48px);max-height:calc(90vh - 48px);overflow-x:hidden;overflow-y:auto}@media (min-width: 640px){dialog.article.micrio-popover{width:540px}}dialog.article.micrio-popover h2.micrio-popover{text-align:center}dialog.article.micrio-popover article img{width:100%}menu.micrio-popover{margin:10px 0;padding:0}menu.micrio-popover>.micrio-button{margin-right:10px}menu.right.micrio-popover{text-align:right}menu.right.micrio-popover>.micrio-button{margin:0 0 0 10px}div.micrio-marker{position:absolute;display:block;transform:translate3d(calc(var(--x, 0) - 50%),calc(var(--y, 0) - 50%),0) scale3d(var(--scale, 1),var(--scale, 1),1);top:0;left:0}div.micrio-marker:not(.cluster):not(.no-fade){animation:micrio-marker-fadeIn .25s;animation-fill-mode:forwards}div.overlapped.micrio-marker{display:none}@keyframes micrio-marker-fadeIn{0%{opacity:0}to{opacity:1}}div.behind.micrio-marker{pointer-events:none;visibility:hidden}div.mat3d.micrio-marker{transform:var(--mat);top:50%;left:50%;transform-style:preserve-3d}div.mat3d.micrio-marker>button.micrio-marker{position:absolute;transform:translate3d(-50%,-50%,0)}button.micrio-marker{display:block;width:var(--micrio-marker-size);height:var(--micrio-marker-size);color:var(--micrio-marker-text-color);position:relative;cursor:pointer;font:inherit;padding:0;margin:0;background:transparent none center center no-repeat;background-image:var(--micrio-marker-icon);background-size:contain;border:none}div.micrio-marker:not(.cluster) label.micrio-marker{position:absolute;top:50%;left:100%;text-align:var(--micrio-text-align);cursor:pointer;transform:translateY(-50%);padding-left:10px;max-width:170px;width:max-content;white-space:pre-wrap;font-size:90%;font-weight:600;line-height:1em;text-shadow:var(--micrio-marker-text-shadow);opacity:0;pointer-events:none;transition:opacity .1s ease}div.micrio-marker:hover{z-index:2}.show-titles>div.micrio-marker label.micrio-marker,div.micrio-marker:hover label.micrio-marker{opacity:1}@media (max-width: 640px){div.micrio-marker:not(.cluster) label.micrio-marker{font-size:12px}}.show-titles>div.micrio-marker label.micrio-marker{pointer-events:all}label.static.micrio-marker{transform:translate(-50%,4px) scale3d(calc(1 / var(--scale, 1)),calc(1 / var(--scale, 1)),1)}div.default.micrio-marker button.micrio-marker{box-sizing:content-box;background-clip:content-box;border-radius:var(--micrio-marker-border-radius);border:var(--micrio-marker-border-size) solid var(--micrio-marker-border-color);transition:var(--micrio-marker-transition);background-color:var(--micrio-marker-color)}div.default.micrio-marker:hover,div.default.hovered.micrio-marker,div.default.opened.micrio-marker{z-index:1}div.default.micrio-marker:hover button.micrio-marker,div.default.hovered.micrio-marker button.micrio-marker,div.default.opened.micrio-marker button.micrio-marker{background-color:var(--micrio-marker-highlight);border-width:0;width:calc(var(--micrio-marker-size) + var(--micrio-marker-border-size) * 2);height:calc(var(--micrio-marker-size) + var(--micrio-marker-border-size) * 2)}div.has-icon.micrio-marker button.micrio-marker{--micrio-marker-icon:none}div.default.has-icon.micrio-marker button.micrio-marker{color:#fff;width:calc(var(--micrio-marker-size) + 24px);height:calc(var(--micrio-marker-size) + 24px);background-color:var(--micrio-marker-border-color);border:none}div.default.has-icon.micrio-marker button.micrio-marker>svg{margin:0 auto}div.default.has-icon.opened.micrio-marker button.micrio-marker>svg,div.default.has-icon.hovered.micrio-marker button.micrio-marker>svg,div.default.has-icon.micrio-marker:hover button.micrio-marker>svg{color:var(--micrio-marker-highlight)}div.default.has-custom-icon.micrio-marker button.micrio-marker{background-color:var(--micrio-marker-color)}div.default.has-custom-icon.opened.micrio-marker button.micrio-marker,div.default.has-custom-icon.hovered.micrio-marker button.micrio-marker,div.default.has-custom-icon.micrio-marker:hover button.micrio-marker{background-color:var(--micrio-marker-highlight, var(--micrio-marker-color))}div.cluster.micrio-marker button.micrio-marker{border:2px solid var(--micrio-marker-color);background:var(--micrio-cluster-marker-background, #fff);color:var(--micrio-cluster-marker-color, #000);width:calc(var(--micrio-marker-size) + 12px);height:calc(var(--micrio-marker-size) + 12px);border-radius:100%;box-sizing:content-box}div.cluster.micrio-marker:hover button.micrio-marker{background:var(--micrio-marker-highlight, #fff);border-color:var(--micrio-marker-highlight, #fff)}div.cluster.micrio-marker label.micrio-marker{pointer-events:none}div.micrio-marker img.micrio-marker{max-width:100%;max-height:100%}div.micrio-waypoint{display:block;position:absolute;transform-style:preserve-3d;transform:var(--matrix);width:0;height:0;top:50%;left:50%;--micrio-bb:var(--micrio-button-background);--micrio-bbh:var(--micrio-button-background-hover)}div.micrio-waypoint>button{--micrio-button-background:var(--micrio-waypoint-background, var(--micrio-bb));--micrio-button-background-hover:var(--micrio-waypoint-background-hover, var(--micrio-bbh));--micrio-button-size:var(--micrio-waypoint-size);--micrio-border-radius:var(--micrio-waypoint-border-radius, 100%);--micrio-icon-size:var(--micrio-waypoint-icon-size, calc(var(--micrio-button-size) - 50px));transform:translate3d(-50%,-50%,0) scale3d(.5,.5,1);pointer-events:all;transition:background-color .25s ease,opacity .25s ease,border-color .25s ease;border:var(--micrio-waypoint-border-size, var(--micrio-marker-border-size)) solid var(--micrio-waypoint-border-color, var(--micrio-marker-border-color));margin:0}div.micrio-waypoint>button>svg{pointer-events:none;margin:0 auto}div.micrio-waypoint:hover>button,div.active.micrio-waypoint>button{transition:background-color .25s ease,opacity .25s ease}div.clicked.micrio-waypoint>button{animation:micrio-waypoint-pulse .75s ease infinite alternate}@keyframes micrio-waypoint-pulse{0%{transform:translate3d(-50%,-50%,0) scale3d(.5,.5,1)}to{transform:translate3d(-50%,-50%,0) scale3d(.75,.75,1)}}div.micrio-markers{pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:width,height,top,left,opacity;perspective:inherit}div.micrio-markers:empty{display:none}div.micrio-markers>*{pointer-events:all}div.inactive.micrio-markers>*{pointer-events:none}div.is360.micrio-markers{transition:opacity .25s}div.is360.inactive.micrio-markers{opacity:0}aside.micrio-markers{pointer-events:none}aside.micrio-markers section.micrio-markers{position:absolute;top:0;bottom:0;width:10vw;width:10cqw;min-width:200px;font-size:1em;font-weight:500;line-height:1em;color:var(--micrio-marker-color);display:flex;flex-direction:column}aside.micrio-markers section.micrio-markers:nth-child(1){left:10px}aside.micrio-markers section.micrio-markers:nth-child(2){right:10px}aside.micrio-markers section article.micrio-markers{flex:1;padding:10px;max-height:30vh;max-height:30cqh;display:flex;align-items:center}aside.micrio-markers section label.micrio-markers{pointer-events:all;cursor:pointer;padding:10px;max-width:160px;opacity:.75;transition:opacity .25s ease,color .25s ease}label.hover.micrio-markers{color:var(--micrio-marker-highlight);opacity:1}aside.micrio-markers section:nth-child(1) article.micrio-markers{justify-content:right}aside.micrio-markers section:nth-child(1) label.micrio-markers{text-align:right}svg.micrio-markers{width:100%;height:100%;pointer-events:none;position:absolute}svg.micrio-markers line.micrio-markers{stroke:var(--micrio-marker-highlight);stroke-width:2}svg.micrio-markers line.micrio-markers:not(.hovered){stroke:var(--micrio-marker-color);stroke-dasharray:10px;stroke-width:1;opacity:.75}.embed-container.micrio-embed{position:absolute;display:block;top:0;left:0;transform:translate3d(calc(var(--x, 0) - 50%),calc(var(--y, 0) - 50%),0) scale3d(var(--s),var(--s),1);opacity:var(--opacity, 1);direction:ltr}.embed3d.micrio-embed{top:50%;left:50%}.embed-container.no-events.micrio-embed{pointer-events:none}.embed-container.micrio-embed>.micrio-embed{cursor:pointer}.embed-container.micrio-embed>*{position:absolute;transform:translate3d(-50%,-50%,0) scale3d(var(--scale, 1),var(--scale, 1),1)}.embed-container.micrio-embed>*:not(button){width:auto!important}.embed-container.micrio-embed:not(.no-events)>*{pointer-events:all}.embed-container.micrio-embed>img.micrio-embed{max-width:none}.embed-container.micrio-embed>button{--scale:1;--ratio:1;padding:0;margin:0;background:transparent;border:none;width:100px;aspect-ratio:var(--ratio)}svg.micrio-progress-circle{position:absolute;top:50%;left:50%;pointer-events:none;transform:translate(-50%,-50%) rotate(-90deg)}circle.micrio-progress-circle{transition:stroke-dashoffset .25s ease}
|
|
24
|
+
!function(){"use strict";var t;"undefined"!=typeof window&&((t=window.__svelte??(window.__svelte={})).v??(t.v=new Set)).add("5");const e=Symbol(),i=!1,r=32,n=64,s=128,o=256,a=512,l=1024,c=2048,u=4096,d=8192,h=16384,m=65536,v=1<<20,p=1<<21,f=Symbol("$state"),g=Symbol("legacy props"),w=Symbol("");var b=Array.isArray,y=Array.prototype.indexOf,k=Array.from,T=Object.defineProperty,_=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyDescriptors,E=Object.prototype,$=Array.prototype,A=Object.getPrototypeOf,S=Object.isExtensible;function I(t){return"function"==typeof t}const M=()=>{};function L(t){return t()}function P(t){for(var e=0;e<t.length;e++)t[e]()}let C=[],D=[];function R(){var t=C;C=[],P(t)}function z(t){0===C.length&&queueMicrotask(R),C.push(t)}function O(){var t;C.length>0&&R(),D.length>0&&(t=D,D=[],P(t))}function N(t){return t===this.v}function F(t,e){return t!=t?e==e:t!==e||null!==t&&"object"==typeof t||"function"==typeof t}function V(t){return!F(t,this.v)}let U=!1;function B(t,i){if("object"!=typeof t||null===t||f in t)return t;const r=A(t);if(r!==E&&r!==$)return t;var n=new Map,s=b(t),o=j(0),a=bt,l=t=>{var e,i=bt;return kt(a),e=t(),kt(i),e};return s&&n.set("length",j(t.length)),new Proxy(t,{defineProperty(t,e,i){"value"in i&&!1!==i.configurable&&!1!==i.enumerable&&!1!==i.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var r=n.get(e);return void 0===r?(r=l((()=>j(i.value))),n.set(e,r)):Y(r,l((()=>B(i.value)))),!0},deleteProperty(t,i){var r=n.get(i);if(void 0===r)i in t&&n.set(i,l((()=>j(e))));else{if(s&&"string"==typeof i){var a=n.get("length"),c=Number(i);Number.isInteger(c)&&c<a.v&&Y(a,c)}Y(r,e),q(o)}return!0},get(i,r,s){var o;if(r===f)return t;var a=n.get(r),c=r in i;if(void 0!==a||c&&!(null==(o=_(i,r))?void 0:o.writable)||(a=l((()=>j(B(c?i[r]:e)))),n.set(r,a)),void 0!==a){var u=jt(a);return u===e?void 0:u}return Reflect.get(i,r,s)},getOwnPropertyDescriptor(t,i){var r=Reflect.getOwnPropertyDescriptor(t,i);if(r&&"value"in r){var s=n.get(i);s&&(r.value=jt(s))}else if(void 0===r){var o=n.get(i),a=null==o?void 0:o.v;if(void 0!==o&&a!==e)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return r},has(t,i){var r;if(i===f)return!0;var s=n.get(i),o=void 0!==s&&s.v!==e||Reflect.has(t,i);if((void 0!==s||null!==Tt&&(!o||(null==(r=_(t,i))?void 0:r.writable)))&&(void 0===s&&(s=l((()=>j(o?B(t[i]):e))),n.set(i,s)),jt(s)===e))return!1;return o},set(t,i,r,a){var c,u=n.get(i),d=i in t;if(s&&"length"===i)for(var h=r;h<u.v;h+=1){var m=n.get(h+"");void 0!==m?Y(m,e):h in t&&(m=l((()=>j(e))),n.set(h+"",m))}void 0===u?d&&!(null==(c=_(t,i))?void 0:c.writable)||(Y(u=l((()=>j(void 0))),l((()=>B(r)))),n.set(i,u)):(d=u.v!==e,Y(u,l((()=>B(r)))));var v=Reflect.getOwnPropertyDescriptor(t,i);if((null==v?void 0:v.set)&&v.set.call(a,r),!d){if(s&&"string"==typeof i){var p=n.get("length"),f=Number(i);Number.isInteger(f)&&f>=p.v&&Y(p,f+1)}q(o)}return!0},ownKeys(t){jt(o);var i=Reflect.ownKeys(t).filter((t=>{var i=n.get(t);return void 0===i||i.v!==e}));for(var[r,s]of n)s.v===e||r in t||i.push(r);return i},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function q(t,e=1){Y(t,t.v+e)}const W=new Map;function X(t,e){return{f:0,v:t,reactions:null,equals:N,rv:0,wv:0}}function j(t,e){const i=X(t);return Et(i),i}function G(t,e=!1){var i;const r=X(t);return e||(r.equals=V),U&&null!==we&&null!==we.l&&((i=we.l).s??(i.s=[])).push(r),r}function Y(t,e,i=!1){return null!==bt&&!yt&&xe()&&18&bt.f&&!(null==xt?void 0:xt.includes(t))&&function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),H(t,i?B(e):e)}function H(t,e){if(!t.equals(e)){var i=t.v;ft?W.set(t,e):W.set(t,i),t.v=e,t.wv=Pt(),Z(t,c),xe()&&null!==Tt&&Tt.f&l&&!(96&Tt.f)&&(null===St?function(t){St=t}([t]):St.push(t))}return e}function Z(t,e){var i=t.reactions;if(null!==i)for(var r=xe(),n=i.length,s=0;s<n;s++){var o=i[s],a=o.f;a&c||(r||o!==Tt)&&(Ht(o,e),1280&a&&(2&a?Z(o,u):qt(o)))}}function K(t){var e=2050,i=null!==bt&&2&bt.f?bt:null;null===Tt||null!==i&&i.f&o?e|=o:Tt.f|=v;return{ctx:we,deps:null,effects:null,equals:N,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??Tt}}function J(t){const e=K(t);return Et(e),e}function Q(t){const e=K(t);return e.equals=V,e}function tt(t){var e=t.effects;if(null!==e){t.effects=null;for(var i=0;i<e.length;i+=1)ue(e[i])}}function et(t){var e=function(t){var e,i=Tt;_t(function(t){for(var e=t.parent;null!==e;){if(!(2&e.f))return e;e=e.parent}return null}(t));try{tt(t),e=zt(t)}finally{_t(i)}return e}(t);Ht(t,(Lt||t.f&o)&&null!==t.deps?u:l),t.equals(e)||(t.v=e,t.wv=Pt())}var it,rt,nt,st;function ot(t=""){return document.createTextNode(t)}function at(t){return nt.call(t)}function lt(t){return st.call(t)}function ct(t,e){return at(t)}function ut(t,e){var i=at(t);return i instanceof Comment&&""===i.data?lt(i):i}function dt(t,e=1,i=!1){let r=t;for(;e--;)r=lt(r);return r}let ht=!1,mt=!1,vt=null,pt=!1,ft=!1;function gt(t){ft=t}let wt=[],bt=null,yt=!1;function kt(t){bt=t}let Tt=null;function _t(t){Tt=t}let xt=null;function Et(t){null!==bt&&bt.f&p&&(null===xt?xt=[t]:xt.push(t))}let $t=null,At=0,St=null;let It=1,Mt=0,Lt=!1;function Pt(){return++It}function Ct(t){var e,i=t.f;if(i&c)return!0;if(i&u){var r=t.deps,n=!!(i&o);if(null!==r){var s,d,h=!!(i&a),m=n&&null!==Tt&&!Lt,v=r.length;if(h||m){var p=t,f=p.parent;for(s=0;s<v;s++)d=r[s],!h&&(null==(e=null==d?void 0:d.reactions)?void 0:e.includes(p))||(d.reactions??(d.reactions=[])).push(p);h&&(p.f^=a),!m||null===f||f.f&o||(p.f^=o)}for(s=0;s<v;s++)if(Ct(d=r[s])&&et(d),d.wv>t.wv)return!0}n&&(null===Tt||Lt)||Ht(t,l)}return!1}function Dt(t,e,i,r){if(ht){if(null===i&&(ht=!1),function(t){return!(t.f&h||null!==t.parent&&t.parent.f&s)}(e))throw t}else null!==i&&(ht=!0),function(t,e){for(var i=e;null!==i;){if(i.f&s)try{return void i.fn(t)}catch{i.f^=s}i=i.parent}throw ht=!1,t}(t,e)}function Rt(t,e,i=!0){var r=t.reactions;if(null!==r)for(var n=0;n<r.length;n++){var s=r[n];(null==xt?void 0:xt.includes(t))||(2&s.f?Rt(s,e,!1):e===s&&(i?Ht(s,c):s.f&l&&Ht(s,u),qt(s)))}}function zt(t){var e,i=$t,r=At,n=St,s=bt,a=Lt,l=xt,c=we,u=yt,d=t.f;$t=null,At=0,St=null,Lt=!!(d&o)&&(yt||!pt||null===bt),bt=96&d?null:t,xt=null,be(t.ctx),yt=!1,Mt++,t.f|=p;try{var h=(0,t.fn)(),m=t.deps;if(null!==$t){var v;if(Nt(t,At),null!==m&&At>0)for(m.length=At+$t.length,v=0;v<$t.length;v++)m[At+v]=$t[v];else t.deps=m=$t;if(!Lt)for(v=At;v<m.length;v++)((e=m[v]).reactions??(e.reactions=[])).push(t)}else null!==m&&At<m.length&&(Nt(t,At),m.length=At);if(xe()&&null!==St&&!yt&&null!==m&&!(6146&t.f))for(v=0;v<St.length;v++)Rt(St[v],t);return null!==s&&(Mt++,null!==St&&(null===n?n=St:n.push(...St))),h}finally{$t=i,At=r,St=n,bt=s,Lt=a,xt=l,be(c),yt=u,t.f^=p}}function Ot(t,e){let i=e.reactions;if(null!==i){var r=y.call(i,t);if(-1!==r){var n=i.length-1;0===n?i=e.reactions=null:(i[r]=i[n],i.pop())}}null===i&&2&e.f&&(null===$t||!$t.includes(e))&&(Ht(e,u),768&e.f||(e.f^=a),tt(e),Nt(e,0))}function Nt(t,e){var i=t.deps;if(null!==i)for(var r=e;r<i.length;r++)Ot(t,i[r])}function Ft(t){var e=t.f;if(!(e&h)){Ht(t,l);var n=Tt,s=we,o=pt;Tt=t,pt=!0;try{16&e?function(t){var e=t.first;for(;null!==e;){var i=e.next;e.f&r||ue(e),e=i}}(t):ce(t),le(t);var a=zt(t);t.teardown="function"==typeof a?a:null,t.wv=It;t.deps;i}catch(c){Dt(c,t,n,s||t.ctx)}finally{pt=o,Tt=n}}}function Vt(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(t){if(null===vt)throw t;Dt(t,vt,null)}}function Ut(){var t=pt;try{var e=0;for(pt=!0;wt.length>0;){e++>1e3&&Vt();var i=wt,r=i.length;wt=[];for(var n=0;n<r;n++){Bt(Wt(i[n]))}}}finally{mt=!1,pt=t,vt=null,W.clear()}}function Bt(t){var e=t.length;if(0!==e)for(var i=0;i<e;i++){var r=t[i];if(!(24576&r.f))try{Ct(r)&&(Ft(r),null===r.deps&&null===r.first&&null===r.nodes_start&&(null===r.teardown?de(r):r.fn=null))}catch(n){Dt(n,r,null,r.ctx)}}}function qt(t){mt||(mt=!0,queueMicrotask(Ut));for(var e=vt=t;null!==e.parent;){var i=(e=e.parent).f;if(96&i){if(!(i&l))return;e.f^=l}}wt.push(e)}function Wt(t){for(var e=[],i=t;null!==i;){var r=i.f,n=!!(96&r);if(!(n&&!!(r&l)||r&d)){if(4&r)e.push(i);else if(n)i.f^=l;else{var s=bt;try{bt=i,Ct(i)&&Ft(i)}catch(c){Dt(c,i,null,i.ctx)}finally{bt=s}}var o=i.first;if(null!==o){i=o;continue}}var a=i.parent;for(i=i.next;null===i&&null!==a;)i=a.next,a=a.parent}return e}async function Xt(){await Promise.resolve(),function(){for(O();wt.length>0;)mt=!0,Ut(),O()}()}function jt(t){var e=!!(2&t.f);if(null===bt||yt){if(e&&null===t.deps&&null===t.effects){var i=t,r=i.parent;null===r||r.f&o||(i.f^=o)}}else if(!(null==xt?void 0:xt.includes(t))){var n=bt.deps;t.rv<Mt&&(t.rv=Mt,null===$t&&null!==n&&n[At]===t?At++:null===$t?$t=[t]:Lt&&$t.includes(t)||$t.push(t))}return e&&Ct(i=t)&&et(i),ft&&W.has(t)?W.get(t):t.v}function Gt(t){var e=yt;try{return yt=!0,t()}finally{yt=e}}const Yt=-7169;function Ht(t,e){t.f=t.f&Yt|e}function Zt(t){if("object"==typeof t&&t&&!(t instanceof EventTarget))if(f in t)Kt(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];"object"==typeof i&&i&&f in i&&Kt(i)}}function Kt(t,e=new Set){if(!("object"!=typeof t||null===t||t instanceof EventTarget||e.has(t))){e.add(t),t instanceof Date&&t.getTime();for(let n in t)try{Kt(t[n],e)}catch(i){}const r=A(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const e=x(r);for(let r in e){const n=e[r].get;if(n)try{n.call(t)}catch(i){}}}}}function Jt(t){null===Tt&&null===bt&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),null!==bt&&bt.f&o&&null===Tt&&function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}(),ft&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function Qt(t,e,i,r=!0){var n=Tt,s={ctx:we,deps:null,nodes_start:null,nodes_end:null,f:t|c,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(i)try{Ft(s),s.f|=32768}catch(a){throw ue(s),a}else null!==e&&qt(s);if(!(i&&null===s.deps&&null===s.first&&null===s.nodes_start&&null===s.teardown&&!(1048704&s.f))&&r&&(null!==n&&function(t,e){var i=e.last;null===i?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}(s,n),null!==bt&&2&bt.f)){var o=bt;(o.effects??(o.effects=[])).push(s)}return s}function te(t){const e=Qt(8,null,!1);return Ht(e,l),e.teardown=t,e}function ee(t){if(Jt(),!(null!==Tt&&!!(Tt.f&r)&&null!==we&&!we.m))return ie(t);var e=we;(e.e??(e.e=[])).push({fn:t,effect:Tt,reaction:bt})}function ie(t){return Qt(4,t,!1)}function re(t,e){var i=we,r={effect:null,ran:!1};i.l.r1.push(r),r.effect=ne((()=>{t(),r.ran||(r.ran=!0,Y(i.l.r2,!0),Gt(e))}))}function ne(t){return Qt(8,t,!0)}function se(t,e=[],i=K){const r=e.map(i);return oe((()=>t(...r.map(jt))))}function oe(t,e=0){return Qt(24|e,t,!0)}function ae(t,e=!0){return Qt(40,t,!0,e)}function le(t){var e=t.teardown;if(null!==e){const t=ft,i=bt;gt(!0),kt(null);try{e.call(null)}finally{gt(t),kt(i)}}}function ce(t,e=!1){var i=t.first;for(t.first=t.last=null;null!==i;){var r=i.next;i.f&n?i.parent=null:ue(i,e),i=r}}function ue(t,e=!0){var i=!1;if((e||524288&t.f)&&null!==t.nodes_start){for(var r=t.nodes_start,n=t.nodes_end;null!==r;){var s=r===n?null:lt(r);r.remove(),r=s}i=!0}ce(t,e&&!i),Nt(t,0),Ht(t,h);var o=t.transitions;if(null!==o)for(const l of o)l.stop();le(t);var a=t.parent;null!==a&&null!==a.first&&de(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function de(t){var e=t.parent,i=t.prev,r=t.next;null!==i&&(i.next=r),null!==r&&(r.prev=i),null!==e&&(e.first===t&&(e.first=r),e.last===t&&(e.last=i))}function he(t,e){var i=[];ve(t,i,!0),me(i,(()=>{ue(t),e&&e()}))}function me(t,e){var i=t.length;if(i>0){var r=()=>--i||e();for(var n of t)n.out(r)}else e()}function ve(t,e,i){if(!(t.f&d)){if(t.f^=d,null!==t.transitions)for(const r of t.transitions)(r.is_global||i)&&e.push(r);for(var n=t.first;null!==n;){var s=n.next;ve(n,e,!!(!!(n.f&m)||!!(n.f&r))&&i),n=s}}}function pe(t){fe(t,!0)}function fe(t,e){if(t.f&d){t.f^=d,t.f&l||(t.f^=l),Ct(t)&&(Ht(t,c),qt(t));for(var i=t.first;null!==i;){var n=i.next;fe(i,!!(!!(i.f&m)||!!(i.f&r))&&e),i=n}if(null!==t.transitions)for(const i of t.transitions)(i.is_global||e)&&i.in()}}function ge(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let we=null;function be(t){we=t}function ye(t){return Ee().get(t)}function ke(t,e){return Ee().set(t,e),e}function Te(t,e=!1,i){var r=we={p:we,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};U&&!e&&(we.l={s:null,u:null,r1:[],r2:X(!1)}),te((()=>{r.d=!0}))}function _e(t){const e=we;if(null!==e){void 0!==t&&(e.x=t);const o=e.e;if(null!==o){var i=Tt,r=bt;e.e=null;try{for(var n=0;n<o.length;n++){var s=o[n];_t(s.effect),kt(s.reaction),ie(s.fn)}}finally{_t(i),kt(r)}}we=e.p,e.m=!0}return t||{}}function xe(){return!U||null!==we&&null===we.l}function Ee(t){return null===we&&ge(),we.c??(we.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}(we)||void 0))}function $e(t){return t.endsWith("capture")&&"gotpointercapture"!==t&&"lostpointercapture"!==t}const Ae=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Se(t){return Ae.includes(t)}const Ie={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Me(t){return t=t.toLowerCase(),Ie[t]??t}const Le=["touchstart","touchmove"];function Pe(t){return Le.includes(t)}function Ce(t,e){if(e){const e=document.body;t.autofocus=!0,z((()=>{document.activeElement===e&&t.focus()}))}}function De(t,e,i,r=!0){for(var n of(r&&i(),e))t.addEventListener(n,i);te((()=>{for(var r of e)t.removeEventListener(r,i)}))}function Re(t){var e=bt,i=Tt;kt(null),_t(null);try{return t()}finally{kt(e),_t(i)}}const ze=new Set,Oe=new Set;function Ne(t,e,i,r={}){function n(t){if(r.capture||Ue.call(e,t),!t.cancelBubble)return Re((()=>null==i?void 0:i.call(this,t)))}return t.startsWith("pointer")||t.startsWith("touch")||"wheel"===t?z((()=>{e.addEventListener(t,n,r)})):e.addEventListener(t,n,r),n}function Fe(t,e,i,r,n){var s={capture:r,passive:n},o=Ne(t,e,i,s);e!==document.body&&e!==window&&e!==document||te((()=>{e.removeEventListener(t,o,s)}))}function Ve(t){for(var e=0;e<t.length;e++)ze.add(t[e]);for(var i of Oe)i(t)}function Ue(t){var e,i=this,r=i.ownerDocument,n=t.type,s=(null==(e=t.composedPath)?void 0:e.call(t))||[],o=s[0]||t.target,a=0,l=t.__root;if(l){var c=s.indexOf(l);if(-1!==c&&(i===document||i===window))return void(t.__root=i);var u=s.indexOf(i);if(-1===u)return;c<=u&&(a=c)}if((o=s[a]||t.target)!==i){T(t,"currentTarget",{configurable:!0,get:()=>o||r});var d=bt,h=Tt;kt(null),_t(null);try{for(var m,v=[];null!==o;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var f=o["__"+n];if(null!=f&&(!o.disabled||t.target===o))if(b(f)){var[g,...w]=f;g.apply(o,[t,...w])}else f.call(o,t)}catch(y){m?v.push(y):m=y}if(t.cancelBubble||p===i||null===p)break;o=p}if(m){for(let t of v)queueMicrotask((()=>{throw t}));throw m}}finally{t.__root=i,delete t.currentTarget,kt(d),_t(h)}}}function Be(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function qe(t,e){var i=Tt;null===i.nodes_start&&(i.nodes_start=t,i.nodes_end=e)}function We(t,e){var i,r=!!(1&e),n=!!(2&e),s=!t.startsWith("<!>");return()=>{void 0===i&&(i=Be(s?t:"<!>"+t),r||(i=at(i)));var e=n||rt?document.importNode(i,!0):i.cloneNode(!0);r?qe(at(e),e.lastChild):qe(e,e);return e}}function Xe(t,e,i="svg"){var r,n=!t.startsWith("<!>"),s=!!(1&e),o=`<${i}>${n?t:"<!>"+t}</${i}>`;return()=>{if(!r){var t=at(Be(o));if(s)for(r=document.createDocumentFragment();at(t);)r.appendChild(at(t));else r=at(t)}var e=r.cloneNode(!0);s?qe(at(e),e.lastChild):qe(e,e);return e}}function je(t=""){var e=ot(t+"");return qe(e,e),e}function Ge(){var t=document.createDocumentFragment(),e=document.createComment(""),i=ot();return t.append(e,i),qe(e,i),t}function Ye(t,e){null!==t&&t.before(e)}let He=!0;function Ze(t){He=t}function Ke(t,e){var i=null==e?"":"object"==typeof e?e+"":e;i!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=i,t.nodeValue=i+"")}function Je(t,e){return function(t,{target:e,anchor:i,props:r={},events:s,context:o,intro:a=!0}){!function(){if(void 0===it){it=window,rt=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;nt=_(e,"firstChild").get,st=_(e,"nextSibling").get,S(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),S(i)&&(i.__t=void 0)}}();var l=new Set,c=t=>{for(var i=0;i<t.length;i++){var r=t[i];if(!l.has(r)){l.add(r);var n=Pe(r);e.addEventListener(r,Ue,{passive:n});var s=Qe.get(r);void 0===s?(document.addEventListener(r,Ue,{passive:n}),Qe.set(r,1)):Qe.set(r,s+1)}}};c(k(ze)),Oe.add(c);var u=void 0,d=function(t){const e=Qt(n,t,!0);return(t={})=>new Promise((i=>{t.outro?he(e,(()=>{ue(e),i(void 0)})):(ue(e),i(void 0))}))}((()=>{var n=i??e.appendChild(ot());return ae((()=>{o&&(Te({}),we.c=o);s&&(r.$$events=s),He=a,u=t(n,r)||{},He=!0,o&&_e()})),()=>{var t;for(var r of l){e.removeEventListener(r,Ue);var s=Qe.get(r);0==--s?(document.removeEventListener(r,Ue),Qe.delete(r)):Qe.set(r,s)}Oe.delete(c),n!==i&&(null==(t=n.parentNode)||t.removeChild(n))}}));return ti.set(u,d),u}(t,e)}const Qe=new Map;let ti=new WeakMap;function ei(t,i,[r,n]=[0,0]){var s=t,o=null,a=null,l=e,c=!1;const u=(t,e=!0)=>{c=!0,d(e,t)},d=(t,e)=>{l!==(l=t)&&(l?(o?pe(o):e&&(o=ae((()=>e(s)))),a&&he(a,(()=>{a=null}))):(a?pe(a):e&&(a=ae((()=>e(s,[r+1,n])))),o&&he(o,(()=>{o=null}))))};oe((()=>{c=!1,i(u),c||d(null,null)}),r>0?m:0)}function ii(t,e){return e}function ri(t,e,i,r,n,s=null){var o=t,a={flags:e,items:new Map,first:null};!(4&e)||(o=t.appendChild(ot()));var l=null,c=!1,u=Q((()=>{var t=i();return b(t)?t:null==t?[]:k(t)}));oe((()=>{var t=jt(u),h=t.length;c&&0===h||(c=0===h,function(t,e,i,r,n,s,o){var a,l,c,u,h,m,v,p,f,g,w=!!(8&n),b=!!(3&n),y=t.length,T=e.items,_=e.first,x=_,E=null,$=[],A=[];if(w)for(g=0;g<y;g+=1)p=s(v=t[g],g),void 0!==(f=T.get(p))&&(null==(a=f.a)||a.measure(),(m??(m=new Set)).add(f));for(g=0;g<y;g+=1)if(p=s(v=t[g],g),void 0!==(f=T.get(p))){if(b&&ni(f,v,g,n),f.e.f&d&&(pe(f.e),w&&(null==(l=f.a)||l.unfix(),(m??(m=new Set)).delete(f))),f!==x){if(void 0!==h&&h.has(f)){if($.length<A.length){var S,I=A[0];E=I.prev;var M=$[0],L=$[$.length-1];for(S=0;S<$.length;S+=1)oi($[S],I,i);for(S=0;S<A.length;S+=1)h.delete(A[S]);ai(e,M.prev,L.next),ai(e,E,M),ai(e,L,I),x=I,E=L,g-=1,$=[],A=[]}else h.delete(f),oi(f,x,i),ai(e,f.prev,f.next),ai(e,f,null===E?e.first:E.next),ai(e,E,f),E=f;continue}for($=[],A=[];null!==x&&x.k!==p;)x.e.f&d||(h??(h=new Set)).add(x),A.push(x),x=x.next;if(null===x)continue;f=x}$.push(f),E=f,x=f.next}else{E=si(x?x.e.nodes_start:i,e,E,null===E?e.first:E.next,v,p,g,r,n,o),T.set(p,E),$=[],A=[],x=E.next}if(null!==x||void 0!==h){for(var P=void 0===h?[]:k(h);null!==x;)x.e.f&d||P.push(x),x=x.next;var C=P.length;if(C>0){var D=4&n&&0===y?i:null;if(w){for(g=0;g<C;g+=1)null==(c=P[g].a)||c.measure();for(g=0;g<C;g+=1)null==(u=P[g].a)||u.fix()}!function(t,e,i,r){for(var n=[],s=e.length,o=0;o<s;o++)ve(e[o].e,n,!0);var a=s>0&&0===n.length&&null!==i;if(a){var l=i.parentNode;l.textContent="",l.append(i),r.clear(),ai(t,e[0].prev,e[s-1].next)}me(n,(()=>{for(var i=0;i<s;i++){var n=e[i];a||(r.delete(n.k),ai(t,n.prev,n.next)),ue(n.e,!a)}}))}(e,P,D,T)}}w&&z((()=>{var t;if(void 0!==m)for(f of m)null==(t=f.a)||t.apply()}));Tt.first=e.first&&e.first.e,Tt.last=E&&E.e}(t,a,o,n,e,r,i),null!==s&&(0===h?l?pe(l):l=ae((()=>s(o))):null!==l&&he(l,(()=>{l=null}))),jt(u))}))}function ni(t,e,i,r){1&r&&H(t.v,e),2&r?H(t.i,i):t.i=i}function si(t,e,i,r,n,s,o,a,l,c){var u=!!(1&l)?!(16&l)?G(n):X(n):n,d=2&l?X(o):o,h={i:d,v:u,k:s,a:null,e:null,prev:i,next:r};try{return h.e=ae((()=>a(t,u,d,c)),false),h.e.prev=i&&i.e,h.e.next=r&&r.e,null===i?e.first=h:(i.next=h,i.e.next=h.e),null!==r&&(r.prev=h,r.e.prev=h.e),h}finally{}}function oi(t,e,i){for(var r=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==r;){var o=lt(s);n.before(s),s=o}}function ai(t,e,i){null===e?t.first=i:(e.next=i,e.e.next=i&&i.e),null!==i&&(i.prev=e,i.e.prev=e&&e.e)}function li(t,e,i,r,n){var s,o=t,a="";oe((()=>{a!==(a=e()??"")&&(void 0!==s&&(ue(s),s=void 0),""!==a&&(s=ae((()=>{var t=Be(a+"");qe(at(t),t.lastChild),o.before(t)}))))}))}function ci(t,e,...i){var r,n=t,s=M;oe((()=>{s!==(s=e())&&(r&&(ue(r),r=null),r=ae((()=>s(n,...i))))}),m)}function ui(t,e,i,r,n,s){var o,a,l,c=null,u=t;oe((()=>{const t=e()||null;var i="svg"===t?"http://www.w3.org/2000/svg":null;t!==o&&(l&&(null===t?he(l,(()=>{l=null,a=null})):t===a?pe(l):(ue(l),Ze(!1))),t&&t!==a&&(l=ae((()=>{if(qe(c=i?document.createElementNS(i,t):document.createElement(t),c),r){var e=c.appendChild(ot());r(c,e)}Tt.nodes_end=c,u.before(c)}))),(o=t)&&(a=o),Ze(!0))}),m)}function di(t){var e,i,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=di(t[e]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function hi(t){return"object"==typeof t?function(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=di(t))&&(r&&(r+=" "),r+=e);return r}(t):t??""}const mi=[..." \t\n\r\f \v\ufeff"];function vi(t,e=!1){var i=e?" !important;":";",r="";for(var n in t){var s=t[n];null!=s&&""!==s&&(r+=" "+n+": "+s+i)}return r}function pi(t){return"-"!==t[0]||"-"!==t[1]?t.toLowerCase():t}function fi(t,e,i,r,n,s){var o=t.__className;if(o!==i||void 0===o){var a=function(t,e,i){var r=null==t?"":""+t;if(e&&(r=r?r+" "+e:e),i)for(var n in i)if(i[n])r=r?r+" "+n:n;else if(r.length)for(var s=n.length,o=0;(o=r.indexOf(n,o))>=0;){var a=o+s;0!==o&&!mi.includes(r[o-1])||a!==r.length&&!mi.includes(r[a])?o=a:r=(0===o?"":r.substring(0,o))+r.substring(a+1)}return""===r?null:r}(i,r,s);null==a?t.removeAttribute("class"):e?t.className=a:t.setAttribute("class",a),t.__className=i}else if(s&&n!==s)for(var l in s){var c=!!s[l];null!=n&&c===!!n[l]||t.classList.toggle(l,c)}return s}function gi(t,e={},i,r){for(var n in i){var s=i[n];e[n]!==s&&(null==i[n]?t.style.removeProperty(n):t.style.setProperty(n,s,r))}}function wi(t,e,i,r){if(t.__style!==e){var n=function(t,e){if(e){var i,r,n="";if(Array.isArray(e)?(i=e[0],r=e[1]):i=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,o=0,a=!1,l=[];i&&l.push(...Object.keys(i).map(pi)),r&&l.push(...Object.keys(r).map(pi));var c=0,u=-1;const e=t.length;for(var d=0;d<e;d++){var h=t[d];if(a?"/"===h&&"*"===t[d-1]&&(a=!1):s?s===h&&(s=!1):"/"===h&&"*"===t[d+1]?a=!0:'"'===h||"'"===h?s=h:"("===h?o++:")"===h&&o--,!a&&!1===s&&0===o)if(":"===h&&-1===u)u=d;else if(";"===h||d===e-1){if(-1!==u){var m=pi(t.substring(c,u).trim());l.includes(m)||(";"!==h&&d++,n+=" "+t.substring(c,d).trim()+";")}c=d+1,u=-1}}}return i&&(n+=vi(i)),r&&(n+=vi(r,!0)),""===(n=n.trim())?null:n}return null==t?null:String(t)}(e,r);null==n?t.removeAttribute("style"):t.style.cssText=n,t.__style=e}else r&&(Array.isArray(r)?(gi(t,null==i?void 0:i[0],r[0]),gi(t,null==i?void 0:i[1],r[1],"important")):gi(t,i,r));return r}const bi=Symbol("class"),yi=Symbol("style"),ki=Symbol("is custom element"),Ti=Symbol("is html");function _i(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function xi(t,e,i,r){var n=Ai(t);n[e]!==(n[e]=i)&&("loading"===e&&(t[w]=i),null==i?t.removeAttribute(e):"string"!=typeof i&&Ii(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ei(t,e,i){var r=bt,n=Tt;kt(null),_t(null);try{"style"!==e&&(Si.has(t.nodeName)||!customElements||customElements.get(t.tagName.toLowerCase())?Ii(t).includes(e):i&&"object"==typeof i)?t[e]=i:xi(t,e,null==i?i:String(i))}finally{kt(r),_t(n)}}function $i(t,e,i,r,n=!1){var s=Ai(t),o=s[ki],a=!s[Ti],l=e||{},c="OPTION"===t.tagName;for(var u in e)u in i||(i[u]=null);i.class?i.class=hi(i.class):(r||i[bi])&&(i.class=null),i[yi]&&(i.style??(i.style=null));var d=Ii(t);for(const g in i){let n=i[g];if(c&&"value"===g&&null==n)t.value=t.__value="",l[g]=n;else if("class"!==g)if("style"!==g){var h=l[g];if(n!==h){l[g]=n;var m=g[0]+g[1];if("$$"!==m)if("on"===m){const e={},i="$$"+g;let r=g.slice(2);var v=Se(r);if($e(r)&&(r=r.slice(0,-7),e.capture=!0),!v&&h){if(null!=n)continue;t.removeEventListener(r,l[i],e),l[i]=null}if(null!=n)if(v)t[`__${r}`]=n,Ve([r]);else{let n=function(t){l[g].call(this,t)};l[i]=Ne(r,t,n,e)}else v&&(t[`__${r}`]=void 0)}else if("style"===g)xi(t,g,n);else if("autofocus"===g)Ce(t,Boolean(n));else if(o||"__value"!==g&&("value"!==g||null==n))if("selected"===g&&c)_i(t,n);else{var p=g;a||(p=Me(p));var f="defaultValue"===p||"defaultChecked"===p;if(null!=n||o||f)f||d.includes(p)&&(o||"string"!=typeof n)?t[p]=n:"function"!=typeof n&&xi(t,p,n);else if(s[g]=null,"value"===p||"checked"===p){let i=t;const r=void 0===e;if("value"===p){let t=i.defaultValue;i.removeAttribute(p),i.defaultValue=t,i.value=i.__value=r?t:null}else{let t=i.defaultChecked;i.removeAttribute(p),i.defaultChecked=t,i.checked=!!r&&t}}else t.removeAttribute(g)}else t.value=t.__value=n}}else wi(t,n,null==e?void 0:e[yi],i[yi]),l[g]=n,l[yi]=i[yi];else fi(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,n,r,null==e?void 0:e[bi],i[bi]),l[g]=n,l[bi]=i[bi]}return l}function Ai(t){return t.__attributes??(t.__attributes={[ki]:t.nodeName.includes("-"),[Ti]:"http://www.w3.org/1999/xhtml"===t.namespaceURI})}var Si=new Map;function Ii(t){var e,i=Si.get(t.nodeName);if(i)return i;Si.set(t.nodeName,i=[]);for(var r=t,n=Element.prototype;n!==r;){for(var s in e=x(r))e[s].set&&i.push(s);r=A(r)}return i}const Mi={tick:t=>requestAnimationFrame(t),now:()=>performance.now(),tasks:new Set};function Li(){const t=Mi.now();Mi.tasks.forEach((e=>{e.c(t)||(Mi.tasks.delete(e),e.f())})),0!==Mi.tasks.size&&Mi.tick(Li)}function Pi(t,e){Re((()=>{t.dispatchEvent(new CustomEvent(e))}))}function Ci(t){if("float"===t)return"cssFloat";if("offset"===t)return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return 1===e.length?e[0]:e[0]+e.slice(1).map((t=>t[0].toUpperCase()+t.slice(1))).join("")}function Di(t){const e={},i=t.split(";");for(const r of i){const[t,i]=r.split(":");if(!t||void 0===i)break;e[Ci(t.trim())]=i.trim()}return e}const Ri=t=>t;function zi(t,e,i,r){var n,s,o,a=!!(1&t),l=!!(2&t),c=!!(4&t),u=a&&l?"both":a?"in":"out",d=e.inert,h=e.style.overflow;function v(){var t=bt,s=Tt;kt(null),_t(null);try{return n??(n=i()(e,(null==r?void 0:r())??{},{direction:u}))}finally{kt(t),_t(s)}}var p={is_global:c,in(){var t;if(e.inert=d,!a)return null==o||o.abort(),void(null==(t=null==o?void 0:o.reset)||t.call(o));l||null==s||s.abort(),Pi(e,"introstart"),s=Oi(e,v(),o,1,(()=>{Pi(e,"introend"),null==s||s.abort(),s=n=void 0,e.style.overflow=h}))},out(t){if(!l)return null==t||t(),void(n=void 0);e.inert=!0,Pi(e,"outrostart"),o=Oi(e,v(),s,0,(()=>{Pi(e,"outroend"),null==t||t()}))},stop:()=>{null==s||s.abort(),null==o||o.abort()}},f=Tt;if((f.transitions??(f.transitions=[])).push(p),a&&He){var g=c;if(!g){for(var w=f.parent;w&&w.f&m;)for(;(w=w.parent)&&!(16&w.f););g=!w||!!(32768&w.f)}g&&ie((()=>{Gt((()=>p.in()))}))}}function Oi(t,e,i,r,n){var s=1===r;if(I(e)){var o,a=!1;return z((()=>{if(!a){var l=e({direction:s?"in":"out"});o=Oi(t,l,i,r,n)}})),{abort:()=>{a=!0,null==o||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(null==i||i.deactivate(),!(null==e?void 0:e.duration))return n(),{abort:M,deactivate:M,reset:M,t:()=>r};const{delay:l=0,css:c,tick:u,easing:d=Ri}=e;var h=[];if(s&&void 0===i&&(u&&u(0,1),c)){var m=Di(c(0,1));h.push(m,m)}var v=()=>1-r,p=t.animate(h,{duration:l});return p.onfinish=()=>{var s=(null==i?void 0:i.t())??1-r;null==i||i.abort();var o=r-s,a=e.duration*Math.abs(o),l=[];if(a>0){var h=!1;if(c)for(var m=Math.ceil(a/(1e3/60)),f=0;f<=m;f+=1){var g=s+o*d(f/m),w=Di(c(g,1-g));l.push(w),h||(h="hidden"===w.overflow)}h&&(t.style.overflow="hidden"),v=()=>{var t=p.currentTime;return s+o*d(t/a)},u&&function(t){let e;0===Mi.tasks.size&&Mi.tick(Li),new Promise((i=>{Mi.tasks.add(e={c:t,f:i})}))}((()=>{if("running"!==p.playState)return!1;var t=v();return u(t,1-t),!0}))}(p=t.animate(l,{duration:a,fill:"forwards"})).onfinish=()=>{v=()=>r,null==u||u(r,1-r),n()}},{abort:()=>{p&&(p.cancel(),p.effect=null,p.onfinish=M)},deactivate:()=>{n=M},reset:()=>{0===r&&(null==u||u(1,0))},t:()=>v()}}function Ni(t,e,i=e){var r,n,s=()=>{cancelAnimationFrame(r),t.paused||(r=requestAnimationFrame(s));var e=t.currentTime;n!==e&&i(n=e)};r=requestAnimationFrame(s),t.addEventListener("timeupdate",s),ne((()=>{var i=Number(e());n===i||isNaN(i)||(t.currentTime=n=i)})),te((()=>{cancelAnimationFrame(r),t.removeEventListener("timeupdate",s)}))}function Fi(t,e){De(t,["seeking","seeked"],(()=>e(t.seeking)))}function Vi(t,e,i=e){var r=e();De(t,["play","pause","canplay"],(()=>{r!==t.paused&&i(r=t.paused)}),null==r),ie((()=>{(r=!!e())!==t.paused&&(r?t.pause():t.play().catch((()=>{i(r=!0)})))}))}function Ui(t,e,i=e){var r=()=>{i(t.muted)};null==e()&&r(),De(t,["volumechange"],r,!1),ne((()=>{var i=!!e();t.muted!==i&&(t.muted=i)}))}function Bi(t,e){return t===e||(null==t?void 0:t[f])===e}function qi(t={},e,i,r){return ie((()=>{var r,n;return ne((()=>{r=n,n=[],Gt((()=>{t!==i(...n)&&(e(t,...n),r&&Bi(i(...r),t)&&e(null,...r))}))})),()=>{z((()=>{n&&Bi(i(...n),t)&&e(null,...n)}))}})),t}function Wi(t,e,i,r,n){var s=()=>{r(i[t])};i.addEventListener(e,s),s(),i!==document.body&&i!==window&&i!==document||te((()=>{i.removeEventListener(e,s)}))}function Xi(t=!1){const e=we,i=e.l.u;if(!i)return;let r=()=>Zt(e.s);if(t){let t=0,i={};const n=K((()=>{let r=!1;const n=e.s;for(const t in n)n[t]!==i[t]&&(i[t]=n[t],r=!0);return r&&t++,t}));r=()=>jt(n)}var n;i.b.length&&(n=()=>{ji(e,r),P(i.b)},Jt(),ne(n)),ee((()=>{const t=Gt((()=>i.m.map(L)));return()=>{for(const e of t)"function"==typeof e&&e()}})),i.a.length&&ee((()=>{ji(e,r),P(i.a)}))}function ji(t,e){if(t.l.s)for(const i of t.l.s)jt(i);e()}function Gi(t){var e,i;null===we&&ge(),U&&null!==we.l?(e=we,i=e.l,i.u??(i.u={a:[],b:[],m:[]})).m.push(t):ee((()=>{const e=Gt(t);if("function"==typeof e)return e}))}function Yi(t,e,i){if(null==t)return e(void 0),M;const r=Gt((()=>t.subscribe(e,i)));return r.unsubscribe?()=>r.unsubscribe():r}const Hi=[];function Zi(t,e=M){let i=null;const r=new Set;function n(e){if(F(t,e)&&(t=e,i)){const e=!Hi.length;for(const i of r)i[1](),Hi.push(i,t);if(e){for(let t=0;t<Hi.length;t+=2)Hi[t][0](Hi[t+1]);Hi.length=0}}}function s(e){n(e(t))}return{set:n,update:s,subscribe:function(o,a=M){const l=[o,a];return r.add(l),1===r.size&&(i=e(n,s)||M),o(t),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function Ki(t){let e;return Yi(t,(t=>e=t))(),e}let Ji=!1,Qi=Symbol();function tr(t,e,i){const r=i[e]??(i[e]={store:null,source:G(void 0),unsubscribe:M});if(r.store!==t&&!(Qi in i))if(r.unsubscribe(),r.store=t??null,null==t)r.source.v=void 0,r.unsubscribe=M;else{var n=!0;r.unsubscribe=Yi(t,(t=>{n?r.source.v=t:Y(r.source,t)})),n=!1}return t&&Qi in i?Ki(t):jt(r.source)}function er(t,e,i){let r=i[e];return r&&r.store!==t&&(r.unsubscribe(),r.unsubscribe=M),t}function ir(){const t={};return[t,function(){te((()=>{for(var e in t){t[e].unsubscribe()}T(t,Qi,{enumerable:!1,value:!0})}))}]}const rr={get(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if(I(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r)return r[e]}},set(t,e,i){let r=t.props.length;for(;r--;){let n=t.props[r];I(n)&&(n=n());const s=_(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if(I(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r){const t=_(r,e);return t&&!t.configurable&&(t.configurable=!0),t}}},has(t,e){if(e===f||e===g)return!1;for(let i of t.props)if(I(i)&&(i=i()),null!=i&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props){I(i)&&(i=i());for(const t in i)e.includes(t)||e.push(t)}return e}};function nr(...t){return new Proxy({props:t},rr)}function sr(t){var e;return(null==(e=t.ctx)?void 0:e.d)??!1}function or(t,e,i,r){var n,s,o=!!(1&i),a=!U||!!(2&i),l=!!(8&i),c=!!(16&i),u=!1;l?[s,u]=function(t){var e=Ji;try{return Ji=!1,[t(),Ji]}finally{Ji=e}}((()=>t[e])):s=t[e];var d,h=f in t||g in t,m=l&&((null==(n=_(t,e))?void 0:n.set)??(h&&e in t&&(i=>t[e]=i)))||void 0,v=r,p=!0,w=!1,b=()=>(w=!0,p&&(p=!1,v=c?Gt(r):r),v);if(void 0===s&&void 0!==r&&(m&&a&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),s=b(),m&&m(s)),a)d=()=>{var i=t[e];return void 0===i?b():(p=!0,w=!1,i)};else{var y=(o?K:Q)((()=>t[e]));y.f|=131072,d=()=>{var t=jt(y);return void 0!==t&&(v=void 0),void 0===t?v:t}}if(!(4&i))return d;if(m){var k=t.$$legacy;return function(t,e){return arguments.length>0?(a&&e&&!k&&!u||m(e?d():t),t):d()}}var T=!1,x=G(s),E=K((()=>{var t=d(),e=jt(x);return T?(T=!1,e):x.v=t}));return l&&jt(E),o||(E.equals=V),function(t,e){if(arguments.length>0){const i=e?jt(E):a&&l?B(t):t;if(!E.equals(i)){if(T=!0,Y(x,i),w&&void 0!==v&&(v=i),sr(E))return t;Gt((()=>jt(E)))}return t}return sr(E)?E.v:jt(E)}}const ar=(t,e)=>Math.sqrt(t*t+e*e),lr=(t,e=1)=>(t%e+e)%e,cr=()=>ur()+ur()+"-"+ur()+"-"+ur()+"-"+ur()+"-"+ur()+ur()+ur(),ur=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),dr=t=>new Promise((e=>t?setTimeout(e,t):e())),hr=navigator.userAgent,mr={iOS:/ipad|iphone|ipod/i.test(hr),firefox:/firefox/i.test(hr),OSX:/macintosh/i.test(hr)&&/os\ x/i.test(hr),hasTouch:"TouchEvent"in self,safari:!1};function vr(t,e,i={}){for(let r in t)t[r]&&null!=t[r].constructor&&"Object"==t[r].constructor.name?(e[r]&&"object"==typeof e[r]||(e[r]={}),vr(t[r],e[r],i)):i.mergeArrays&&e[r]instanceof Array&&t[r]instanceof Array?e[r].push(...t[r]):i.noOverwrite&&r in e||(e[r]=t[r]);return e}mr.safari=(mr.OSX||mr.iOS)&&(/safari/i.test(hr)||/instagram/i.test(hr))&&!/chrome/i.test(hr),mr.OSX&&mr.safari&&"TouchEvent"in self&&(mr.iOS=!0,mr.OSX=!1);const pr=t=>{if(void 0===t)return t;t=(t=t.replace(/^\s+|\s+$/g,"")).toLowerCase();const e="àáäâèéëêìíïîòóöôùúüûñç·/_,:;";for(var i=0;i<28;i++)t=t.replace(new RegExp(e.charAt(i),"g"),"aaaaeeeeiiiioooouuuunc------".charAt(i));return t=t.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")},fr=[],gr=(t,e,i)=>new Promise(((r,n)=>{if(i||fr.indexOf(t)>=0)return r();const s=document.createElement("script"),o=()=>{fr.push(t),r()};e?self[e]=o:s.onload=o,s.onerror=()=>n&&n(),s.async=!0,s.defer=!0,self.crossOriginIsolated&&(s.crossOrigin="anonymous"),s.src=t,document.head.appendChild(s)}));function wr(t){const e=t<0;e&&(t*=-1);let i=[0,0,Math.ceil(t)];for(let r of[0,1])for(;i[2-r]>=60&&(i[2-r]-=60,++i[1-r]););return(e?"-":"")+i.filter(((t,e)=>e>0||t)).map(((t,e)=>(t<10&&e?"0":"")+t)).join(":")}const br=(t,e={})=>new Promise((i=>{let r,n=!0;r=t.subscribe((t=>{n&&e.allowUndefined&&void 0===t||(n=!1,(void 0!==e.targetValue?t===e.targetValue:e.allowUndefined||void 0!==t)&&(r?r():Xt().then((()=>r())),i(t)))}))})),yr=new Map,kr=new Map,Tr=async(t,e)=>{if(!e&&yr.has(t))return yr.get(t);if(kr.has(t))return kr.get(t);const i=fetch(t+(e?"?"+Math.random():"")).then((async t=>{if(200==t.status)return t.json();throw await t.text()})).then((i=>(e||yr.set(t,i),kr.delete(t),i))).catch((e=>{kr.delete(t)}));return kr.set(t,i),i},_r=t=>"MICRIO_DATA"in self?(null==self?void 0:self.MICRIO_DATA).find((e=>e[0]==t)):void 0,xr=(t,e,i)=>{var r;const n=null==(r=_r(t))?void 0:r[1];return n?Promise.resolve(n):Tr(`${e??"https://i.micr.io/"}${t}/info.json`,i).then((t=>(t&&("Height"in t&&(t.height=t.Height,t.version=1,t.tileSize=512),"Width"in t&&(t.width=t.Width)),Ar(t),t)))},Er={"micrio-cdn.azureedge.net":"micrio.vangoghmuseum.nl/micrio","micrio-cdn.vangoghmuseum.nl":"micrio.vangoghmuseum.nl/micrio","rijks-micrio.azureedge.net":"micrio.rijksmuseum.nl"},$r=t=>{if(t instanceof Object&&"fileUrl"in t&&!t.src&&(t.src=t.fileUrl),null==t?void 0:t.src)for(let e in Er)t.src.includes(e)&&(t.src=t.src.replace(e,Er[e]))},Ar=t=>{var e,i,r,n,s,o,a,l;t&&($r(null==(e=t.organisation)?void 0:e.logo),$r(null==(r=null==(i=t.settings)?void 0:i._markers)?void 0:r.markerIcon),null==(o=null==(s=null==(n=t.settings)?void 0:n._markers)?void 0:s.customIcons)||o.forEach($r),$r(null==(l=null==(a=t.settings)?void 0:a._360)?void 0:l.video))},Sr=t=>{var e;$r(t.image),null==(e=t.children)||e.forEach(Sr)},Ir=(t,e,i)=>{var r,n,s,o;t.data||(t.data={}),t.id||(t.id=cr()),t.tags||(t.tags=[]),"type"in t||(t.type="default"),t.popupType||(t.popupType="popup"),"string"==typeof t.data.icon&&(t.data.icon={title:"",size:0,uploaded:0,width:-1,height:-1,src:t.data.icon}),null==(r=t.images)||r.forEach($r),$r(t.positionalAudio),$r(null==(n=t.data)?void 0:n.icon),Object.values(t.i18n??{}).forEach((t=>$r(t.audio)));const a="embedImages"in t?t.embedImages:void 0;a&&a.forEach((t=>$r(t)));const l=null==(o=null==(s=t.data)?void 0:s._meta)?void 0:o.secondary;l&&(t.data.micrioSplitLink=l),i&&"class"in t&&t.tags.push(...t.class.split(" ").map((t=>t.trim())).filter((e=>!!e&&!t.tags.includes(e)))),t.tags.includes("default")&&(t.type="default"),e&&t.view&&t.view[2]<t.view[0]&&t.view[2]++};async function Mr(t,e,i,r){if(!("steps"in e)||e.stepInfo)return;let n=e.steps.map((t=>t.split(",")[1])).filter((e=>!!e&&e!=t.id));n=n.filter(((t,e)=>n.indexOf(t)==e));const s=await Promise.all(n.map((e=>Tr((e=>t.dataPath+(t.isV5?e+"/data/pub.json":e+"/data."+i+".json"))(e)))));s.forEach((e=>{var i;return null==(i=null==e?void 0:e.markers)?void 0:i.forEach((e=>Ir(e,t.is360,!t.isV5)))})),$r(e.image);let o=-1;const a=[];e.stepInfo=e.steps.map(((e,l)=>{var c,u,d,h,m,v,p,f,g,w;const[b,y]=e.split(","),k=s[n.indexOf(y)]??r,T=null==(c=null==k?void 0:k.markers)?void 0:c.find((t=>t.id==b)),_=(null==(u=null==T?void 0:T.i18n)?void 0:u[i])??T;(null==_?void 0:_.title)&&(o=l);const x=(null==T?void 0:T.videoTour)?"timeline"in T.videoTour?T:(null==(d=T.videoTour.i18n)?void 0:d[i])??void 0:void 0;return $r(null==x?void 0:x.audio),$r(null==x?void 0:x.subtitle),T?($r(null==_?void 0:_.audio),{markerId:b,marker:T,micrioId:y||t.id,duration:Number((null==x?void 0:x.duration)||(null==(h=null==_?void 0:_.audio)?void 0:h.duration)||0),startView:(null==(m=null==x?void 0:x.timeline)?void 0:m.length)?x.timeline[0].rect:null==T?void 0:T.view,imageHasOtherMarkers:!!y&&!!(null==(v=null==k?void 0:k.markers)?void 0:v.find((t=>t.id!=b&&!t.noMarker))),gridView:!(!(null==(f=null==(p=T.data)?void 0:p._meta)?void 0:f.gridView)&&!(null==(w=null==(g=T.data)?void 0:g._meta)?void 0:w.gridAction)),chapter:o,hasSubtitle:!!(null==x?void 0:x.subtitle)}):(console.warn(`[Micrio] Warning: tour step ${l+1} with id [${b}] not found! Removing it from the tour`),void a.push(l))})).filter((t=>"object"==typeof t)),a.reverse().forEach((t=>e.steps.splice(t,1))),e.initialStep=0,e.duration=e.stepInfo.reduce(((t,e)=>t+(e.duration||0)),0)}const Lr=t=>{let e=t.charCodeAt(0),i=e<91;return(e-=i?65:97)-(e>7?1:0)+(i?24:e>10?-1:0)},Pr=t=>6==t.length||7==t.length;function Cr(t,e){var i,r,n,s;const o=t.$current;if(!o)return;const a=null==(i=t.spaceData)?void 0:i.images.find((t=>t.id==o.id)),l=null==(r=t.spaceData)?void 0:r.images.find((t=>t.id==e));if(!a||!l)return;const c=[(l.x??.5)-(a.x??.5),(a.y??.5)-(l.y??.5),(l.z??.5)-(a.z??.5)];let u=c[0]*c[0]+c[1]*c[1]+c[2]*c[2];u>0&&(u=1/Math.sqrt(u));const d=[c[0]*u,c[1]*u,c[2]*u],h=.5-((null==(s=null==(n=o.$settings)?void 0:n._360)?void 0:s.trueNorth)??.5),m=lr(Math.atan2(-d[0],d[2])/Math.PI/2);return{v:c,vN:d,directionX:m,vector:{direction:m%1-h,distanceX:Math.max(0,Math.min(.4,Math.sqrt(d[0]*d[0]+d[2]*d[2]))),distanceY:-c[1]}}}const Dr=t=>{const e=t??document.createElement("video");return!(!e.canPlayType("application/vnd.apple.mpegurl")&&!e.canPlayType("application/x-mpegURL"))},Rr=t=>t;function zr(t){const e=t-1;return e*e*e+1}function Or(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Nr(t,{delay:e=0,duration:i=400,easing:r=Rr}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:r,css:t=>"opacity: "+t*n}}function Fr(t,{delay:e=0,duration:i=400,easing:r=zr,x:n=0,y:s=0,opacity:o=0}={}){const a=getComputedStyle(t),l=+a.opacity,c="none"===a.transform?"":a.transform,u=l*(1-o),[d,h]=Or(n),[m,v]=Or(s);return{delay:e,duration:i,easing:r,css:(t,e)=>`\n\t\t\ttransform: ${c} translate(${(1-t)*d}${h}, ${(1-t)*m}${v});\n\t\t\topacity: ${l-u*e}`}}var Vr=We('<a rel="noopener" href="https://micr.io/" title="Powered by Micrio" aria-label="Micrio homepage"></a>');function Ur(t,e){Te(e,!0);const[i,r]=ir(),n=ye("micrio"),{tour:s,marker:o}=n.state,a=/micr\.io/.test(location.origin)&&self.parent==self?void 0:"_blank";let l,c=j(!1);Gi((()=>n.loading.subscribe((t=>{clearTimeout(l),t?jt(c)||(l=setTimeout((()=>Y(c,!0)),750)):Y(c,!1)}))));let u=J((()=>!!tr(s,"$tour",i)||!!tr(o,"$marker",i)));var d=Ge(),h=ut(d),m=t=>{var e=Vr();let i;xi(e,"target",a),se((t=>i=fi(e,1,"micrio-logo",null,i,t)),[()=>({loading:jt(c)})]),zi(3,e,(()=>Nr),(()=>({duration:200}))),Ye(t,e)};ei(h,(t=>{jt(u)||t(m)})),Ye(t,d),_e(),r()}var Br=We('<a rel="noopener" target="_blank" class="micrio-logo-org"><img alt="Logo" class="micrio-logo-org"></a>');function qr(t,e){Te(e,!0);const[i,r]=ir(),n=ye("micrio"),{tour:s,marker:o,popover:a}=n.state;let l=J((()=>!!tr(s,"$tour",i)||!!tr(o,"$marker",i)||!!tr(a,"$popover",i)));var c=Ge(),u=ut(c),d=t=>{var i=Br(),r=ct(i);se((t=>{xi(i,"href",e.organisation.href??"#"),xi(i,"title",e.organisation.name),xi(i,"aria-label",`${e.organisation.name??""} homepage`),xi(r,"src",t)}),[()=>function(t){if("string"==typeof t)return t;let e=0,i=Math.max(t.width,t.height);for(;i>1024;)e++,i/=2;return t.micrioId&&t.width>1024?"https://r2.micr.io/"+t.micrioId+"/"+e+"/0-0."+(t.isPng?"png":t.isWebP?"webp":"jpg"):t.src}(e.organisation.logo)]),zi(3,i,(()=>Nr),(()=>({duration:200}))),Ye(t,i)};ei(u,(t=>{!jt(l)&&e.organisation.logo&&t(d)})),Ye(t,c),_e(),r()}const Wr={en:{close:"Close",zoomIn:"Zoom in",zoomOut:"Zoom out",fullscreenToggle:"Toggle fullscreen",switchLanguage:"Switch language",share:"Share",audioMute:"Mute audio",audioUnmute:"Unmute audio",closeMarker:"Close this marker",tourStepNext:"Next step",tourStepPrev:"Previous step",tourStop:"Stop this tour",minimize:"Minimize",play:"Play",pause:"Pause",stop:"Stop",subtitlesToggle:"Toggle subtitles",galleryPrev:"Previous image",galleryNext:"Next image",menuToggle:"Toggle menu",waypointFollow:"Go this way"},nl:{close:"Sluit",zoomIn:"Zoom in",zoomOut:"Zoom uit",fullscreenToggle:"Volledig scherm aan / uit",switchLanguage:"Kies taal",share:"Deel",audioMute:"Geluid uit",audioUnmute:"Geluid aan",closeMarker:"Sluit deze marker",tourStepNext:"Volgende stap",tourStepPrev:"Vorige stap",tourStop:"Stop deze tour",minimize:"Minimaliseer",play:"Start",pause:"Pauzeer",stop:"Stop",subtitlesToggle:"Ondertitels aan / uit",galleryPrev:"Vorige afbeelding",galleryNext:"Volgende afbeelding",menuToggle:"Menu openen / sluiten",waypointFollow:"Ga deze richting"}},Xr=Zi(Wr.en),jr={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},Gr={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},Yr={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},Hr={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},Zr={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l96 0 32 0 208 0c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},Kr={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},Jr={prefix:"fas",iconName:"pause",icon:[320,512,[9208],"f04c","M48 64C21.5 64 0 85.5 0 112L0 400c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48L48 64zm192 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48l-32 0z"]},Qr={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},tn={prefix:"fas",iconName:"arrow-up-right-from-square",icon:[512,512,["external-link"],"f08e","M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},en={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},rn={prefix:"fas",iconName:"volume-high",icon:[640,512,[128266,"volume-up"],"f028","M533.6 32.5C598.5 85.2 640 165.8 640 256s-41.5 170.7-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64l0 384c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352 64 352c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l67.8 0L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"]},nn={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},sn={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},on={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},an={prefix:"fas",iconName:"closed-captioning",icon:[576,512,[],"f20a","M0 96C0 60.7 28.7 32 64 32l448 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM200 208c14.2 0 27 6.1 35.8 16c8.8 9.9 24 10.7 33.9 1.9s10.7-24 1.9-33.9c-17.5-19.6-43.1-32-71.5-32c-53 0-96 43-96 96s43 96 96 96c28.4 0 54-12.4 71.5-32c8.8-9.9 8-25-1.9-33.9s-25-8-33.9 1.9c-8.8 9.9-21.6 16-35.8 16c-26.5 0-48-21.5-48-48s21.5-48 48-48zm144 48c0-26.5 21.5-48 48-48c14.2 0 27 6.1 35.8 16c8.8 9.9 24 10.7 33.9 1.9s10.7-24 1.9-33.9c-17.5-19.6-43.1-32-71.5-32c-53 0-96 43-96 96s43 96 96 96c28.4 0 54-12.4 71.5-32c8.8-9.9 8-25-1.9-33.9s-25-8-33.9 1.9c-8.8 9.9-21.6 16-35.8 16c-26.5 0-48-21.5-48-48z"]},ln={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},cn={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},un={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},dn={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},hn={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},mn={prefix:"fas",iconName:"volume-xmark",icon:[576,512,["volume-mute","volume-times"],"f6a9","M301.1 34.8C312.6 40 320 51.4 320 64l0 384c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352 64 352c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l67.8 0L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3zM425 167l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},vn={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},pn={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},fn={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},gn={prefix:"fas",iconName:"share",icon:[512,512,["mail-forward"],"f064","M307 34.8c-11.5 5.1-19 16.6-19 29.2l0 64-112 0C78.8 128 0 206.8 0 304C0 417.3 81.5 467.9 100.2 478.1c2.5 1.4 5.3 1.9 8.1 1.9c10.9 0 19.7-8.9 19.7-19.7c0-7.5-4.3-14.4-9.8-19.5C108.8 431.9 96 414.4 96 384c0-53 43-96 96-96l96 0 0 64c0 12.6 7.4 24.1 19 29.2s25 3 34.4-5.4l160-144c6.7-6.1 10.6-14.7 10.6-23.8s-3.8-17.7-10.6-23.8l-160-144c-9.4-8.5-22.9-10.6-34.4-5.4z"]},wn={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M0 128C0 92.7 28.7 64 64 64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2l0 256c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1l0-17.1 0-128 0-17.1 14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z"]};function bn(t,e){t.style.fontSize=e&&"lg"!==e&&"sm"!==e&&"xs"!==e?e.replace("x","em"):""}U=!0;var yn=Xe('<title class="micrio-fa"> </title>'),kn=Xe('<path class="micrio-fa"></path>'),Tn=Xe('<path class="micrio-fa"></path><path class="micrio-fa"></path>',1),_n=Xe('<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg"><!><g class="micrio-fa"><g class="micrio-fa"><!></g></g></svg>');function xn(t,e){Te(e,!1);const i=G(),r=G();let n=or(e,"class",24,(()=>{})),s=or(e,"id",24,(()=>{})),o=or(e,"style",24,(()=>{})),a=or(e,"icon",8),c=or(e,"title",24,(()=>{})),d=or(e,"size",24,(()=>{})),h=or(e,"color",24,(()=>{})),m=or(e,"fw",8,!1),v=or(e,"pull",24,(()=>{})),p=or(e,"scale",8,1),f=or(e,"translateX",8,0),g=or(e,"translateY",8,0),w=or(e,"rotate",24,(()=>{})),b=or(e,"flip",24,(()=>{})),y=or(e,"spin",8,!1),k=or(e,"pulse",8,!1),T=or(e,"primaryColor",8,""),_=or(e,"secondaryColor",8,""),x=or(e,"primaryOpacity",8,1),E=or(e,"secondaryOpacity",8,.4),$=or(e,"swapOpacity",8,!1),A=G();var S;re((()=>(jt(A),Zt(d()),bn)),(()=>{jt(A)&&d()&&bn(jt(A),d())})),re((()=>Zt(a())),(()=>{Y(i,a()&&a().icon||[0,0,"",[],""])})),re((()=>(Zt(p()),Zt(f()),Zt(g()),Zt(w()),Zt(b()))),(()=>{Y(r,function(t,e,i,r,n,s=1,o="",a=""){let l=1,c=1;n&&("horizontal"==n?l=-1:"vertical"==n?c=-1:l=c=-1),"string"==typeof t&&(t=parseFloat(t)),"string"==typeof e&&(e=parseFloat(e)),"string"==typeof i&&(i=parseFloat(i));let u=`translate(${e*s}${o},${i*s}${o}) scale(${l*t},${c*t})`;return r&&(u+=` rotate(${r}${a})`),u}(p(),f(),g(),w(),b(),512))})),S=we,ne((()=>{if(jt(S.l.r2)){for(var t of S.l.r1){var e=t.effect;e.f&l&&Ht(e,u),Ct(e)&&Ft(e),t.ran=!1}S.l.r2.v=!1}})),Xi();var I=Ge(),M=ut(I),L=t=>{var e=_n();let a;var l=ct(e),u=t=>{var e=yn(),i=ct(e);se((()=>Ke(i,c()))),Ye(t,e)};ei(l,(t=>{c()&&t(u)}));var p=dt(l),f=ct(p),g=ct(f),w=t=>{var e=kn();se((()=>{xi(e,"d",jt(i)[4]),xi(e,"fill",h()||T()||"currentColor"),xi(e,"transform",`translate(${jt(i)[0]/-2} ${jt(i)[1]/-2})`)})),Ye(t,e)},b=t=>{var e=Tn(),r=ut(e),n=dt(r);se((()=>{xi(r,"d",jt(i)[4][0]),xi(r,"fill",_()||h()||"currentColor"),xi(r,"fill-opacity",0!=$()?x():E()),xi(r,"transform",`translate(${jt(i)[0]/-2} ${jt(i)[1]/-2})`),xi(n,"d",jt(i)[4][1]),xi(n,"fill",T()||h()||"currentColor"),xi(n,"fill-opacity",0!=$()?E():x()),xi(n,"transform",`translate(${jt(i)[0]/-2} ${jt(i)[1]/-2})`)})),Ye(t,e)};ei(g,(t=>{"string"==typeof jt(i)[4]?t(w):t(b,!1)})),qi(e,(t=>Y(A,t)),(()=>jt(A))),se((t=>{xi(e,"id",s()),a=fi(e,0,`svelte-fa svelte-fa-base ${n()??""}`,"micrio-fa",a,t),wi(e,o()),xi(e,"viewBox",`0 0 ${jt(i)[0]??""} ${jt(i)[1]??""}`),xi(p,"transform",`translate(${jt(i)[0]/2} ${jt(i)[1]/2})`),xi(p,"transform-origin",jt(i)[0]/4+" 0"),xi(f,"transform",jt(r))}),[()=>({pulse:k(),"svelte-fa-size-lg":"lg"===d(),"svelte-fa-size-sm":"sm"===d(),"svelte-fa-size-xs":"xs"===d(),"svelte-fa-fw":m(),"svelte-fa-pull-left":"left"===v(),"svelte-fa-pull-right":"right"===v(),spin:y()})],Q),Ye(t,e)};ei(M,(t=>{jt(i)[4]&&t(L)})),Ye(t,I),_e()}function En(t,e){var i,r;Te(e,!0);let n=or(e,"style",3,void 0);const s=ye("micrio"),o="chevron-down"==e.name||"link-ext"==e.name,a=null==(r=null==(i=s.defaultSettings)?void 0:i.ui)?void 0:r.icons;let l=J((()=>a&&("zoom-in"==e.name?a.zoomIn:"zoom-out"==e.name?a.zoomOut:"maximize"==e.name?a.fullscreenEnter:"minimize"==e.name?a.fullscreenLeave:"close"==e.name?a.close:"arrow-right"==e.name?a.next:"arrow-left"==e.name?a.prev:"arrow-up"==e.name?a.up:"arrow-down"==e.name?a.down:"play"==e.name?a.play:"pause"==e.name?a.pause:"subtitles"==e.name?a.subtitles:"subtitles-off"==e.name?a.subtitlesOff:"volume-off"==e.name?a.muted:"volume-up"==e.name?a.unmuted:null)));const c=new Map([["play",un],["pause",Jr],["close",fn],["play-filled",Kr],["a11y",Hr],["menu",jr],["zoom-in",vn],["zoom-out",sn],["maximize",pn],["minimize",Yr],["volume-off",mn],["volume-up",rn],["subtitles",an],["subtitles-off",an],["arrow-left",nn],["arrow-up",hn],["arrow-right",en],["arrow-down",ln],["video",wn],["audio",rn],["image",Zr],["share",gn],["error",Gr],["chevron-down",dn],["link",cn],["link-ext",tn],["ellipsis-vertical",on]]);let u=J((()=>c.get(e.name)));var d=Ge(),h=ut(d),m=t=>{var e=Ge();li(ut(e),(()=>jt(l))),Ye(t,e)},v=(t,e)=>{var i=t=>{xn(t,{get icon(){return jt(u)},size:o?"xs":"sm",get style(){return n()}})};ei(t,(t=>{jt(u)&&t(i)}),e)};ei(h,(t=>{jt(l)?t(m):t(v,!1)})),Ye(t,d),_e()}const $n=Zi(void 0),An=()=>$n.set(void 0);let Sn=!1;$n.subscribe((t=>{t?Sn||window.addEventListener("click",An):Sn&&window.removeEventListener("click",An),Sn=!!t}));var In=We('<a class="micrio-menu-action micrio-menu"><strong class="micrio-menu"> <!></strong></a>'),Mn=We('<button class="micrio-menu-action micrio-menu" type="button"><!> <strong class="micrio-menu"> <!></strong></button>'),Ln=We('<div class="items micrio-menu"></div>'),Pn=We("<menu><!> <!></menu>");function Cn(t,e){Te(e,!0);const[i,r]=ir(),n=()=>tr($n,"$opened",i);let s=or(e,"menu",15),o=or(e,"originalId",3,null);const a=ye("micrio"),{events:l,state:c,_lang:u}=a;let d=j(void 0);let h=J((()=>{return t=s(),e=tr(u,"$_lang",i),(null==(r=t.i18n)?void 0:r[e])??t;var t,e,r}));function m(t){var i;s().link||t.preventDefault(),s().action&&s().action();const r=!!(jt(p)||s().action||s().link);$n.set(r?void 0:s()),r&&(null==(i=e.onclose)||i.call(e))}Gi((()=>{var t,e,i,r;(null==(t=jt(h))?void 0:t.title)||1!=(null==(e=s().children)?void 0:e.length)||s(s().children[0]),s().action||(s().markerId?s(s().action=()=>{var t,e;o()&&(null==(t=a.$current)?void 0:t.id)!=o()&&a.open(o()),null==(e=a.$current)||e.state.marker.set(s().markerId)},!0):((null==(i=jt(h))?void 0:i.content)||(null==(r=jt(h))?void 0:r.embed)||s().image)&&s(s().action=()=>{l.dispatch("page-open",s()),c.popover.set({contentPage:s()})},!0)),s(s()._button=jt(d),!0)}));const v=t=>{var e;return t==n()||!!(null==(e=t.children)?void 0:e.some(v))};let p=J((()=>n()&&v(s())));var f=Pn();let g;var w=ct(f),b=t=>{var e=In();e.__click=m;var i=ct(e),r=ct(i),n=dt(r);const o=J((()=>s().linkTargetBlank?"link-ext":"link"));En(n,{style:"opacity:.75",get name(){return jt(o)}}),se((()=>{var t;xi(e,"href",s().link),xi(e,"target",s().linkTargetBlank?"_blank":void 0),Ke(r,`${(null==(t=jt(h))?void 0:t.title)??"(Unknown)"} `)})),Ye(t,e)},y=t=>{var e=Mn();e.__click=m;var i=ct(e),r=t=>{xn(t,{get icon(){return s().icon},style:"margin-right:10px;"})};ei(i,(t=>{s().icon&&t(r)}));var n=ct(dt(i,2)),o=dt(n),a=t=>{En(t,{name:"chevron-down"})};ei(o,(t=>{s().children&&s().children.length&&t(a)})),qi(e,(t=>Y(d,t)),(()=>jt(d))),se((()=>{var t;return Ke(n,`${(null==(t=jt(h))?void 0:t.title)??"(Unknown)"} `)})),Ye(t,e)};ei(w,(t=>{s().link?t(b):t(y,!1)}));var k=dt(w,2),T=t=>{var e=Ln();ri(e,23,(()=>s().children),((t,e)=>e+t.id),((t,e)=>{Cn(t,{get menu(){return jt(e)},get originalId(){return o()},onclose:An})})),Ye(t,e)};ei(k,(t=>{s().children&&s().children.length&&t(T)})),se(((t,e)=>{xi(f,"data-title",t),g=fi(f,1,"micrio-menu",null,g,e)}),[()=>{var t,e;return null==(e=null==(t=jt(h))?void 0:t.title)?void 0:e.toLowerCase()},()=>({opened:jt(p)})]),Ye(t,f),_e(),r()}Ve(["click"]);var Dn=We('<img alt="Icon" class="micrio-button">'),Rn=We("<!><!>",1);function zn(t,e){Te(e,!0);let i=or(e,"type",3,void 0),r=or(e,"icon",3,void 0),n=or(e,"title",3,null),s=or(e,"disabled",3,!1),o=or(e,"active",3,!1),a=or(e,"className",3,""),l=or(e,"href",3,void 0),c=or(e,"blankTarget",3,!1),u=or(e,"noClick",3,!1);var d=Ge();ui(ut(d),(()=>l()?"a":"button"),0,((t,d)=>{var h=t=>{var i;return null==(i=e.onclick)?void 0:i.call(e,t)},m=t=>{var i;return null==(i=e.onfocus)?void 0:i.call(e,t)},v=t=>{var i;return null==(i=e.onpointerdown)?void 0:i.call(e,t)};let p;se((e=>p=$i(t,p,{href:l(),target:c()?"_blank":void 0,disabled:!!s()||void 0,title:n(),"aria-label":n(),role:l()?void 0:"button",tabindex:l()?void 0:0,class:`micrio-button ${i()??""} ${a()??""}`,onclick:h,onfocus:m,onpointerdown:v,[bi]:e},"micrio-button")),[()=>({active:o(),"no-click":u()})]);var f=Rn(),g=ut(f),w=t=>{En(t,{get name(){return i()}})},b=(t,e)=>{var i=t=>{var e=Dn();se((()=>xi(e,"src",r().src))),Ye(t,e)};ei(t,(t=>{r()&&t(i)}),e)};ei(g,(t=>{i()?t(w):t(b,!1)})),ci(dt(g),(()=>e.children??M)),Ye(d,f)})),Ye(t,d),_e()}var On=We("<menu><!> <!> <!></menu> <!>",1);function Nn(t,e){Te(e,!0);const[i,r]=ir(),n=()=>tr(c,"$current",i),s=()=>tr(u,"$_lang",i);let o=j(void 0);const a=ye("micrio"),{state:l,current:c,_lang:u,spaceData:d}=a,{tour:h,marker:m,popover:v}=l;let p=j(!1),f=j(!1);const g=n().id;let w=j(void 0),b=j(window.innerWidth<=500);const y=()=>Y(b,window.innerWidth<=500),k=()=>{jt(b)&&Y(p,!1)};let T=J((()=>!!tr(h,"$tour",i)||!!tr(m,"$marker",i)||!!tr(v,"$popover",i))),_=J((()=>{var t;return((null==(t=jt(o))?void 0:t.markerTours)??[]).concat((null==d?void 0:d.markerTours)??[])})),x=J((()=>{var t;return(null==(t=jt(_))?void 0:t.length)>0})),E=J((()=>{var t,e,i;return(null==(t=jt(o))?void 0:t.tours)&&(null==(i=null==(e=jt(o))?void 0:e.tours)?void 0:i.length)>0})),$=J((()=>jt(x)&&jt(E))),A=J((()=>{var t;return!((null==(t=jt(w))?void 0:t.length)||jt(x)||jt(E))}));const S=[],I=(t,e)=>{var i,r;return("title"in t?t.title:null==(r=null==(i=t.i18n)?void 0:i[e])?void 0:r.title)??"(Untitled)"};Gi((()=>{const t=a.current.subscribe((t=>{var e;if(t){for(;S.length;)null==(e=S.shift())||e();br(t.info).then((()=>Y(f,!t.$settings.noLogo))),S.push(t.data.subscribe((t=>{Y(o,t,!0),Xt().then((()=>{var e,i,r;if(!(null==t?void 0:t.pages))return;jt(w)||Y(w,null==(e=t.pages)?void 0:e.filter((t=>{var e;return!(null==(e=t.id)?void 0:e.startsWith("_"))})),!0);const n=null==(i=t.pages)?void 0:i.filter((t=>{var e;return null==(e=t.id)?void 0:e.startsWith("_")}));n.length&&Y(w,[...(null==(r=jt(w))?void 0:r.filter((t=>{var e;return!(null==(e=t.id)?void 0:e.startsWith("_"))})))??[],...n],!0)}))})))}}));return window.addEventListener("resize",y),()=>{var e;for(window.removeEventListener("resize",y);S.length;)null==(e=S.shift())||e();t()}}));var M=Ge(),L=ut(M),P=t=>{var e=On(),r=ut(e);let l;var c=ct(r),u=t=>{var e=Ge();ri(ut(e),17,(()=>jt(w)),(t=>t.id),((t,e)=>{Cn(t,{get menu(){return jt(e)},originalId:g,onclose:k})})),Ye(t,e)};ei(c,(t=>{jt(w)&&t(u)}));var d=dt(c,2),m=t=>{const e=J((()=>({id:cr(),i18n:{[s()]:{title:jt($)?"Marker tours":"Tours"}},children:jt(_).map((t=>({id:cr(),i18n:{[s()]:{title:I(t,s())}},action:()=>{t.initialStep=0,h.set(t)}})))})));Cn(t,{onclose:k,get menu(){return jt(e)}})};ei(d,(t=>{jt(x)&&t(m)}));var v=dt(d,2),y=t=>{const e=J((()=>({id:cr(),i18n:{[s()]:{title:jt($)?"Video tours":"Tours"}},children:jt(o)&&jt(o).tours?jt(o).tours.map((t=>({id:cr(),i18n:{[s()]:{title:I(t,s())}},action:()=>{n()&&n().id!=g&&a.open(g),h.set(t)}}))):[]})));Cn(t,{onclose:k,get menu(){return jt(e)}})};ei(v,(t=>{jt(E)&&t(y)}));var A=dt(r,2),S=t=>{const e=J((()=>jt(p)?"close":"ellipsis-vertical")),r=J((()=>"toggle transparent"+(jt(f)?" indent":"")));zn(t,{get title(){return tr(Xr,"$i18n",i).menuToggle},get type(){return jt(e)},get className(){return jt(r)},onclick:()=>Y(p,!jt(p))})};ei(A,(t=>{jt(b)&&t(S)})),se((t=>l=fi(r,1,"micrio-toolbar micrio-toolbar",null,l,t)),[()=>({shown:!jt(T)&&jt(p),indent:jt(f)})]),zi(3,r,(()=>Nr),(()=>({duration:200}))),Ye(t,e)};ei(L,(t=>{jt(A)||jt(T)||t(P)})),Ye(t,M),_e(),r()}var Fn=We("<canvas></canvas>");function Vn(t,e){Te(e,!0);const[i,r]=ir(),n=ye("micrio"),{current:s}=n,o=n.canvas.viewport,a=e.image.$info,l=e.image.camera,c=e.image.$settings,u=c.minimapWidth??200,d=c.minimapHeight??160,h=!c.alwaysShowMinimap,m=!!c.noControls,v=a.width/a.height,p=u/v>d?Math.round(d*v):u,f=u/v<=d?Math.round(u/v):d;let g,w=j(void 0),b=j(!1),y=j(B(!a.is360&&l.isZoomedOut()));function k(t){if(t&&g){if(S(),g.clearRect(0,0,p,f),e.image.thumbSrc?(g.globalCompositeOperation="source-over",g.fillStyle="rgba(0,0,0,.5)",g.fillRect(0,0,p,f),g.globalAlpha=1,g.globalCompositeOperation="destination-out"):(g.fillStyle="rgba(0,0,0,.5)",g.fillRect(0,0,p,f)),g.beginPath(),g.fillStyle="white",a.is360){const t=function(){const t=[],e=o.width*o.ratio,i=o.height*o.ratio,r=l.getCoo(e/2,i/2).slice(0),n=[];for(let s=0;s<8;s++)n.push(s/8*e,0);for(let s=0;s<8;s++)n.push(e,s/8*i);for(let s=0;s<8;s++)n.push((1-s/8)*e,i);for(let s=0;s<8;s++)n.push(0,(1-s/8)*i);for(let s=0;s<n.length;s+=2){const e=l.getCoo(n[s],n[s+1]);(s>40||s<8)&&e[0]>r[0]?e[0]-=1:s>8&&s<40&&e[0]<r[0]&&(e[0]+=1),t.push(e[0],e[1])}return t}();g.moveTo(t[0]*p,t[1]*f);for(let e=2;e<t.length;e+=2)g.lineTo(t[e]*p,t[e+1]*f);g.closePath()}else Y(y,l.isZoomedOut(),!0),g.rect(Math.floor(t[0]*p),Math.floor(t[1]*f),Math.ceil((t[2]-t[0])*p),Math.ceil((t[3]-t[1])*f));e.image.thumbSrc&&(g.fill(),g.globalCompositeOperation="source-over"),g.stroke()}}const T=-1!=navigator.userAgent.indexOf("Firefox");let _,x,E=j(!1);function $(t){if(_){const e=Math.max(0,Math.min(1,(t.clientX-_.left)/_.width)),i=Math.max(0,Math.min(1,(t.clientY-_.top)/_.height));l.setCoo(e,i)}}function A(){window.removeEventListener("mousemove",$),window.removeEventListener("mouseup",A),Y(E,!1)}function S(){Y(b,!1),clearTimeout(x),x=setTimeout((()=>Y(b,!0)),2500)}const I=.5-e.image.camera.trueNorth,M=self.crossOriginIsolated;let L=j(B(M?void 0:e.image.thumbSrc));const P={passive:!0};let C=j(!1);Gi((()=>{let t;g=jt(w).getContext("2d"),g&&(g.lineWidth=1,g.strokeStyle="white"),M&&e.image.thumbSrc&&fetch(e.image.thumbSrc).then((t=>t.blob())).then((e=>Y(L,t=URL.createObjectURL(e),!0))),n.canvas.element.addEventListener("mousemove",S,P);const i=e.image.state.view.subscribe(k);return setTimeout((()=>Y(C,!0)),10),()=>{t&&URL.revokeObjectURL(t),n.canvas.element.removeEventListener("mousemove",S,P),A(),i()}}));let D=J((()=>jt(L)?`background-image: url('${jt(L)}')`+(0!=I?`;background-position-x:${p*I}px`:""):null));var R=Fn();let z;xi(R,"width",p),xi(R,"height",f),R.__mousedown=function(t){0==t.button&&(window.addEventListener("mousemove",$),window.addEventListener("mouseup",A),_=jt(w).getClientRects()[0],$(t),Y(E,!0))},qi(R,(t=>Y(w,t)),(()=>jt(w))),se((t=>{wi(R,jt(D)),z=fi(R,1,"micrio-minimap",null,z,t)}),[()=>({hidden:!jt(C)||tr(s,"$current",i)!=e.image||h&&(jt(y)||jt(b)),dragging:jt(E),controls:!m})]),Fe("wheel",R,(function(t){l.zoom(t.deltaY*(T?50:1))})),Ye(t,R),_e(),r()}Ve(["mousedown"]);const Un=(null==navigator?void 0:navigator.language)??"en-EN",Bn="Intl"in self&&Intl.DisplayNames?new Intl.DisplayNames([Un],{type:"language"}):void 0,qn=["ar","ar-AE","ar-BH","ar-DJ","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LB","ar-LY","ar-MA","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-TN","ar-YE","dv","dv-MV","fa","fa-AF","fa-IR","he","he-IL","iw","iw-PS","kd","ku","ku-IQ","ku-IR","ku-SY","ku-TR","pk-PK","ps","ps-AF","sd","sd-PK","syr-SY","ug","ug-CN","ur","ur-IN","ur-PK","yi","yi-IL","yi-US"];var Wn=We("<div><!></div>");function Xn(t,e){let i=or(e,"className",3,"");var r=Wn();ci(ct(r),(()=>e.children??M)),se((()=>fi(r,1,hi(i()),"micrio-button-group"))),Ye(t,r)}function jn(t,e){Te(e,!0);const[i,r]=ir(),n="requestFullscreen"in e.el,s="webkitRequestFullscreen"in e.el,o=ye("micrio"),a=()=>n?document.fullscreenElement:document.webkitFullscreenElement??null;let l=j(a()===e.el);const c=n||s&&!a(),u=()=>new Promise((t=>setTimeout(t,500)));let d;function h(){jt(l)?async function(){n?(await document.exitFullscreen().then(u),d&&d instanceof HTMLElement&&d.requestFullscreen(),d=void 0):"webkitExitFullscreen"in document&&document.webkitExitFullscreen()}():async function(){n?(d=a(),mr.safari&&d&&await document.exitFullscreen().then(u),e.el.requestFullscreen()):"webkitRequestFullscreen"in e.el&&e.el.webkitRequestFullscreen()}()}const m=e.el==o&&!o.events.scrollHooked,v=()=>{Y(l,a()===e.el),m&&(jt(l)?o.events.hookScroll():o.events.unhookScroll())};c&&Gi((()=>{const t=n?"fullscreenchange":"webkitfullscreenchange";return document.addEventListener(t,v),()=>document.removeEventListener(t,v)}));var p=Ge(),f=ut(p),g=t=>{const e=J((()=>jt(l)?"minimize":"maximize"));zn(t,{get type(){return jt(e)},get title(){return tr(Xr,"$i18n",i).fullscreenToggle},onclick:h})};ei(f,(t=>{c&&t(g)})),Ye(t,p),_e(),r()}var Gn=We("<!> <!>",1);function Yn(t,e){Te(e,!0);const[i,r]=ir(),n=()=>tr(Xr,"$i18n",i);let s=or(e,"image",15,void 0);const o=ye("micrio");let a=j(!1),l=j(!1),c=j(!1);const u=()=>{o.events.clicked=!0},d=()=>{var t;u(),null==(t=s())||t.camera.zoomIn().then((()=>o.events.clicked=!1))},h=()=>{var t;u(),null==(t=s())||t.camera.zoomOut().then((()=>o.events.clicked=!1))};function m(){var t,e;Y(a,(null==(t=s())?void 0:t.camera.isZoomedIn())??!0,!0),Y(l,(null==(e=s())?void 0:e.camera.isZoomedOut(!0))??!0,!0)}let v,p;Gi((()=>(s()?v=s().state.view.subscribe(m):p=o.current.subscribe((t=>{v&&(v(),v=void 0),Y(c,!0),s(t)?br(t.info).then((()=>{s()&&(v=s().state.view.subscribe(m)),Y(c,!1)})):Y(c,!1)})),()=>{p&&p(),v&&v()})));var f=Ge(),g=ut(f),w=t=>{var e=Gn(),i=ut(e);const r=J((()=>jt(c)||jt(a)));zn(i,{type:"zoom-in",get title(){return n().zoomIn},get disabled(){return jt(r)},onclick:d});var s=dt(i,2);const o=J((()=>jt(c)||jt(l)));zn(s,{type:"zoom-out",get title(){return n().zoomOut},get disabled(){return jt(o)},onclick:h}),Ye(t,e)};ei(g,(t=>{jt(a)&&jt(l)||t(w)})),Ye(t,f),_e(),r()}var Hn=We('<menu class="popout micrio-controls"><!> <!></menu>'),Zn=We("<!> <!>",1),Kn=We("<aside><!></aside>"),Jn=We('<aside class="micrio-controls"><!> <!> <!> <!></aside> <!>',1);function Qn(t,e){Te(e,!0);const[i,r]=ir(),n=()=>tr(m,"$current",i),s=()=>tr(jt(k),"$info",i),o=()=>tr(f,"$_lang",i),a=()=>tr(g,"$tour",i),l=()=>tr(b,"$zoom",i),c=()=>tr(p,"$isMuted",i),u=()=>tr(Xr,"$i18n",i);let d=or(e,"hasAudio",3,!1);const h=B(ye("micrio")),{current:m,state:v,isMuted:p,_lang:f}=h,g=v.tour,{controls:w,zoom:b,hidden:y}=h.state.ui;let k=J((()=>{var t;return null==(t=n())?void 0:t.info})),T=J((()=>{var t;return s()&&n()?n().isV5?Object.keys(s().revision??{[o()]:0}):(null==(t="cultures"in s()?s().cultures:"")?void 0:t.split(","))??[]:[]})),_=J((()=>a()&&"steps"in a()&&a().isSerialTour));function x(){var t,e,i;if(navigator.share&&(null==(t=n())?void 0:t.$info)){const t=n().$data?(null==(e=n().$data)?void 0:e.i18n)?n().$data.i18n[o()]:n().$data:void 0;navigator.share({title:null==(i=n().$info)?void 0:i.title,text:(null==t?void 0:t.description)||`${n().$info.width} x ${n().$info.height} | Micrio`,url:location.href})}}let E=j(null),$=j(!1);function A(t){const e=t.detail;Y($,h.canvas.viewport.portrait,!0),e.opts.isPassive||Y(E,e,!0)}function S(){Y(E,null)}let I=j(!1),M=j(!1),L=j(!1);function P(t){var e,i;b.set(!t.noZoom),w.set(!t.noControls),Y(I,!!(null==(i=null==(e=t.ui)?void 0:e.controls)?void 0:i.cultureSwitch)),Y(M,!!t.social),Y(L,!!t.fullscreen)}n()&&P(n().$settings),Gi((()=>{let t;h.addEventListener("splitscreen-start",A),h.addEventListener("splitscreen-stop",S);const e=h.current.subscribe((e=>{e&&br(e.info).then((i=>{!i||a()&&"steps"in a()||(null==t||t(),t=e.settings.subscribe(P))}))}));return()=>{h.removeEventListener("splitscreen-start",A),h.removeEventListener("splitscreen-stop",S),null==t||t(),e()}}));let C=J((()=>"micrioAudioContext"in window||d())),D=J((()=>jt(I)&&jt(T).length>1)),R=J((()=>jt(M)&&"share"in navigator)),z=J((()=>jt(L)&&!jt(_))),O=J((()=>tr(w,"$controls",i)&&!tr(y,"$hidden",i)&&(jt(C)||jt(D)||jt(R)||l()||jt(z))));var N=Ge(),F=ut(N),V=t=>{var e=Jn(),i=ut(e),r=ct(i),n=t=>{const e=J((()=>c()?"volume-off":"volume-up")),i=J((()=>c()?u().audioUnmute:u().audioMute));zn(t,{get type(){return jt(e)},get title(){return jt(i)},onclick:()=>p.set(!c())})};ei(r,(t=>{jt(C)&&t(n)}));var s=dt(r,2),a=t=>{var e=Hn(),i=ct(e);zn(i,{get title(){return u().switchLanguage},type:"a11y"}),ri(dt(i,2),17,(()=>jt(T)),ii,((t,e)=>{const i=J((()=>(null==Bn?void 0:Bn.of(jt(e)))??jt(e))),r=J((()=>jt(e)==o()));zn(t,{onclick:()=>h.lang=jt(e),get title(){return jt(i)},get active(){return jt(r)},children:(t,i)=>{var r=je();se((t=>Ke(r,t)),[()=>jt(e).toUpperCase()]),Ye(t,r)},$$slots:{default:!0}})})),Ye(t,e)};ei(s,(t=>{jt(D)&&t(a)}));var d=dt(s,2),m=t=>{zn(t,{type:"share",get title(){return u().share},onclick:x})};ei(d,(t=>{jt(R)&&t(m)})),Xn(dt(d,2),{children:(t,e)=>{var i=Zn(),r=ut(i),n=t=>{var e=Ge(),i=ut(e),r=t=>{Yn(t,{get image(){return jt(E)}})},n=t=>{Yn(t,{})};ei(i,(t=>{jt(E)?t(r):t(n,!1)})),Ye(t,e)};ei(r,(t=>{l()&&t(n)}));var s=dt(r,2),o=t=>{jn(t,{get el(){return h}})};ei(s,(t=>{jt(z)&&t(o)})),Ye(t,i)},$$slots:{default:!0}});var v=dt(i,2),f=t=>{var e=Kn();let i;Xn(ct(e),{children:(t,e)=>{Yn(t,{})},$$slots:{default:!0}}),se((t=>i=fi(e,1,"primary micrio-controls",null,i,t)),[()=>({portrait:jt($)})]),zi(3,e,(()=>Nr)),Ye(t,e)};ei(v,(t=>{l()&&jt(E)&&t(f)})),Ye(t,e)};ei(F,(t=>{jt(O)&&t(V)})),Ye(t,N),_e(),r()}class ts{constructor(t,e){var i;this.image=t,this.data=e,this.timeline=[],this._paused=!0,this.playing=!1,this.wasPaused=!1,this.unhookEvents=!1,this.micrio=t.wasm.micrio,this.initialView=t.camera.getView();const r="timeline"in e?e:(null==(i=e.i18n)?void 0:i[Ki(this.micrio._lang)])??void 0;if(!r)throw new Error("No valid content for video tour!");this.content=r,this.unhookEvents=!e.keepInteraction&&this.micrio.events.$enabled,e.instance=this,this.read(),this.micrio.events.dispatch("videotour-start",this.data)}destroy(){this.unhookEvents&&this.micrio.events.enabled.set(!0),this.playing&&(this.image.camera.stop(),this.micrio.removeAttribute("data-videotour-playing"),this.micrio.events.dispatch("videotour-stop",this.data),this.playing=!1,delete this.startedAt,delete this.data.instance,this.startAt=void 0,clearTimeout(this._to))}read(){const t=!!this.data.i18n?1:this.content.duration,e=this.content.timeline;this.timeline.length=0;for(let i=0;i<e.length;i++){const r=e[i],n=e[i-1],s=n?n.end*t:0;this.timeline.push({view:r.rect,start:1e3*s,duration:1e3*(r.start*t-s),pauseDuration:(r.end-r.start)*t*1e3})}this.startedAt&&!this.playing&&(this.progress=this.currentTime)}get duration(){return Number(this.content.duration)}set duration(t){this.content.duration=t}get paused(){return this._paused}get ended(){return this.currentTime>=this.duration}get currentTime(){return(this.pausedAt?this.pausedAt:this.startedAt?Date.now()-this.startedAt:0)/1e3}set currentTime(t){this.setProgress(t/this.content.duration)}get progress(){return this.currentTime/this.content.duration}set progress(t){this.setProgress(t)}play(){this.startedPlaying(),this.wasPaused=!1,this.pausedAt?(this.startedAt=Date.now()-this.pausedAt,this._paused=!1,this.gotoTime(this.pausedAt),this.pausedAt=void 0):this.playing||(this.startedAt=Date.now(),void 0===this.startAt?this.gotoStep(0,0):this.gotoTime(this.duration*this.startAt*1e3),this.startAt=void 0),this._paused=!1,this.playing=!0}pause(){this._paused||null==this.currentIndex||null==this.startedAt||(this._paused=!0,this.stoppedPlaying(),clearTimeout(this._to),this.currentIndex>=0&&this.image.camera.stop(),this.ended?this.reset():this.pausedAt=Date.now()-this.startedAt)}reset(){this.stoppedPlaying(),this.pausedAt=void 0,this.playing=!1,this.read()}gotoStep(t,e){if(null==this.startedAt)return;if(clearTimeout(this._to),!this.timeline[t]){if(!this.paused||!this.wasPaused){const t=Math.max(0,Math.round(1e3*this.duration-(Date.now()-this.startedAt)));this._to=setTimeout((()=>this.pause()),t)}return}const i=this.timeline[t],r=Math.round(i.start-(Date.now()-this.startedAt));this.currentIndex=t,this.image.camera.stop(),r>0?this._paused||(this._to=setTimeout((()=>this.startAni(e)),r)):this.startAni(e)}nextStep(){null!=this.currentIndex&&this.gotoStep(this.currentIndex+1)}getView(t){const e=this.timeline[t];return null==e?this.initialView??this.image.camera.getView():e.view}startAni(t=0){var e;if(null==this.currentIndex||isNaN(t))return;const i=this.timeline[this.currentIndex];if(null==i)return;const r=i.view,n=this.getView(this.currentIndex-1),s=null==(e=this.image.opts)?void 0:e.area;if(this.wasPaused&&n){const e=this.micrio.wasm.e.ease(t);this.image.camera.setView([n[0]*(1-e)+r[0]*e,n[1]*(1-e)+r[1]*e,n[2]*(1-e)+r[2]*e,n[3]*(1-e)+r[3]*e],{noLimit:!0,area:s}),this.nextStep()}else this.image.camera.flyToView(r,{duration:i.duration,progress:t,prevView:n,area:s}).then((()=>{null!=this.currentIndex&&i==this.timeline[this.currentIndex]&&this.nextStep()})).catch((()=>{}))}startedPlaying(){this.micrio.setAttribute("data-videotour-playing",""),this.micrio.events.dispatch("videotour-play"),this.unhookEvents&&this.micrio.events.enabled.set(!1)}stoppedPlaying(){this.micrio.removeAttribute("data-videotour-playing"),this.micrio.events.dispatch("videotour-pause"),this.unhookEvents&&this.micrio.events.enabled.set(!0)}setProgress(t){t=Math.max(0,Math.min(1,t)),this.wasPaused=!!this.paused||!this.playing,this.pause(),this.wasPaused||(this._paused=!1,this.startedPlaying());const e=this.duration*t*1e3;this.pausedAt=e,this.gotoTime(e),this.wasPaused?this.pause():(this.pausedAt=void 0,this._paused=!1)}gotoTime(t){let e=null,i=0;for(;i<this.timeline.length&&!(this.timeline[i].start>t);i++)e=this.timeline[i];if(i--,e||!(i>0))if(e){this.image.camera.stop();const r=e.duration>0?(t-e.start)/e.duration:0;this.startedAt=Date.now()-e.start-e.duration*r,isNaN(this.startedAt)&&(this.startedAt=Date.now()-t),r>1?(this.gotoStep(i+1),null!=e.view&&this.image.camera.setView(e.view,{noLimit:!0})):(i>0&&this.image.camera.setView(this.timeline[i-1].view,{noLimit:!0}),this.gotoStep(i,r))}else this.timeline.length&&this.image.camera.stop(),this.paused||this.gotoStep(0)}}window.MicrioVideoTour=ts;var es=(t=>(t[t.None=0]="None",t[t.IFrame=1]="IFrame",t[t.Video=2]="Video",t[t.Audio=3]="Audio",t[t.VideoTour=4]="VideoTour",t[t.Micrio=5]="Micrio",t))(es||{}),is=(t=>(t[t.YouTube=1]="YouTube",t[t.Vimeo=2]="Vimeo",t))(is||{});const rs="micrio-captions-disable",ns=Zi("1"!=localStorage.getItem(rs));ns.subscribe((t=>{t?localStorage.removeItem(rs):localStorage.setItem(rs,"1")}));var ss=We('<div><p class="micrio-subtitles"> </p></div>');function os(t,e){Te(e,!0);const[i,r]=ir();let n=or(e,"raised",3,!1);const s=[];fetch(e.src).then((t=>t.text())).then((t=>{const e=t.split("\n");for(let i=0;i<e.length;i++)if(/-->/.test(e[i])){let t=i+1;const r=[];for(;!e[t]&&t<e.length;)t++;for(;e[t]&&e[t].trim();)r.push(e[t++]);const[n,o]=e[i].split(" --\x3e ").map((t=>t.trim().replace(",",".").split(":").map(Number))).map((t=>3600*t[0]+60*t[1]+t[2]));s.push({start:n,end:o,data:r.join("\n")}),i+=r.length+1}}));const o=ye("micrio");let a=j(0);const l=t=>Y(a,t.detail,!0);Gi((()=>(o.addEventListener("timeupdate",l),()=>o.removeEventListener("timeupdate",l))));let c=J((()=>s.filter((t=>t.start<=jt(a)&&t.end>=jt(a)))));var u=Ge(),d=ut(u),h=t=>{var e=Ge();ri(ut(e),16,(()=>jt(c)),(t=>t),((t,e)=>{var i=ss();let r;var s=ct(i),o=ct(s);se((t=>{r=fi(i,1,"micrio-subtitles",null,r,t),Ke(o,e.data)}),[()=>({raised:n()})]),zi(3,i,(()=>Nr)),Ye(t,i)})),Ye(t,e)};ei(d,(t=>{tr(ns,"$captionsEnabled",i)&&t(h)})),Ye(t,u),_e(),r()}var as=t=>t.stopPropagation(),ls=t=>t.stopPropagation(),cs=We('<div class="container micrio-progress-bar"><div class="bars micrio-progress-bar"><!></div> <div class="time micrio-progress-bar"> </div></div>');function us(t,e){Te(e,!0);let i=or(e,"currentTime",11,0),r=or(e,"ended",11,!1);var n=cs();n.__click=[as],n.__keydown=[ls];var s=ct(n);ci(ct(s),(()=>e.children??M));var o=ct(dt(s,2));se(((t,e)=>{wi(n,t),Ke(o,e)}),[()=>`--progress: ${Math.round((i()||0)/e.duration*1e4)/100}%;--time: '${wr(i()||0)}';`,()=>wr(r()||i()<=0?e.duration:(i()||0)-e.duration)]),Ye(t,n),_e()}Ve(["click","keydown"]);var ds=t=>t.stopPropagation(),hs=t=>t.stopPropagation(),ms=Xe('<svg height="42" width="42" class="micrio-media-controls"><circle r="19" cx="21" cy="21" class="micrio-media-controls"></circle></svg>'),vs=We("<!> <!> <!>",1),ps=We('<div class="bar active"></div>'),fs=We('<aside class="micrio-media-controls"><!> <!></aside> <!>',1);function gs(t,e){Te(e,!0);let i=or(e,"currentTime",11,0);const r=ye("micrio");e.events.forEach((t=>{t.start=Number(t.start||0),t.end=Math.min(Number(t.end||0),e.duration)}));const n=t=>e.events.forEach((e=>{const i=e.start<=t&&e.end>=t;i!=!!e.active&&(e.active=i,r.events.dispatch("tour-event",{...e}))}));var s;ee((()=>{n(i())})),s=()=>n(1/0),null===we&&ge(),Gi((()=>()=>Gt(s))),_e()}Ve(["click","keydown","mousedown"]);const ws=new Audio;var bs=(t,e,i)=>{t.target==jt(e)&&i(t)},ys=We("<iframe></iframe>"),ks=We('<source type="video/mp4;codecs=hvc1">'),Ts=We("<!> <source>",1),_s=We('<video playsinline="" class="micrio-media"><!></video>',2),xs=We("<audio></audio>"),Es=We("<micr-io></micr-io>",2),$s=We("<aside><!></aside>"),As=We('<figcaption class="micrio-media"><!></figcaption>'),Ss=We('<div class="show-play micrio-media"><!></div>'),Is=We("<figure><div><!> <!> <!></div> <!></figure> <!>",1);function Ms(t,e){var i,r,n,s,o,a,l;Te(e,!0);const[c,u]=ir(),d=()=>tr(X,"$_lang",c),h=ye("micrio");let m=or(e,"src",15,void 0),v=or(e,"volume",15,1),p=or(e,"width",3,640),f=or(e,"height",3,380),g=or(e,"frameScale",3,1),w=or(e,"autoplay",15,!1),b=or(e,"loop",3,!1),y=or(e,"loopDelay",3,void 0),k=or(e,"controls",15,!1),T=or(e,"title",3,void 0),_=or(e,"figcaption",3,null),x=or(e,"paused",15,!0),E=or(e,"forcePause",3,void 0),$=or(e,"seeking",15,!0),A=or(e,"duration",31,(()=>-1)),S=or(e,"currentTime",15),I=or(e,"muted",31,(()=>0==v())),M=or(e,"is360",3,!1),L=or(e,"tour",3,null),P=or(e,"secondary",3,!1),C=or(e,"fullscreen",3,void 0),D=or(e,"className",3,null),R=or(e,"hasTransparentH265",3,!1),z=or(e,"noPlayOverlay",3,!1),O=or(e,"uuid",15,""),N=or(e,"image",19,(()=>Ki(h.current))),F=or(e,"_media",15,void 0);const V=I();O(O()+(m()??(null==(i=L())?void 0:i.id)));const U=N().$info,{events:q,state:W,_lang:X}=h,G=ye("volume"),H=0==tr(G,"$mainVolume",c),Z=ye("srt");let K;const Q=W.mediaState.get(O());Q&&(S(Q.currentTime),w(!x(Q.paused))),W.mediaState.set(O(),{get currentTime(){return S()??0},set currentTime(t){Rt(t)},get paused(){return x()},set paused(t){t?Dt():Ct()}}),m()&&/<iframe /.test(m())&&m(m().replace(/^.* src="([^"]+)".*$/,"$1")),(null==(r=m())?void 0:r.startsWith("video://"))&&m(m().replace("video:","https:"));const tt="https://www.youtube-nocookie.com";let et=j(B(m()));const it=m()&&m().startsWith("cfvid://"),rt=m()&&m().toLowerCase(),nt=rt?rt.endsWith("mp3")?es.Audio:rt.endsWith(".mp4")||rt.endsWith(".webm")||it?es.Video:rt.startsWith("micrio://")?es.Micrio:rt.startsWith("http")?es.IFrame:es.None:L()?es.VideoTour:es.None,st=nt==es.Micrio?null==(n=m())?void 0:n.slice(9).split(","):null;let ot,at,lt,ht;st&&x(!1);let mt=-1,vt=j(!1);const pt=nt==es.Audio&&mr.iOS;let ft=j(void 0);const gt=h.hasAttribute("data-native-frame"),wt=m()&&/((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be|youtube-nocookie\.com))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?/.exec(m()),bt=/^.*t=(\d+).*$/;if(m()&&!gt&&wt&&wt[5])if("playlist"==wt[5]){const t=/list=([^&]+)/.exec(m());(null==t?void 0:t[1])&&Y(et,`${tt}/embed/videoseries?list=${t[1]}`)}else{ot=is.YouTube;const t=Math.round((bt.test(m())?Number(m().replace(bt,"$1")):S())??0);Y(et,`${tt}/embed/${wt[5]}?autoplay=0&enablejsapi=1&controls=0&start=${t}`),Y(vt,!0)}if(!gt&&m()&&/vimeo\.com/.test(m())){const t=m().match(/\/(\d+)/);if(t&&t[1]){const e=m().slice(m().indexOf(t[1])+t[1].length+1).replace(/\?.*$/,"");ot=is.Vimeo,Y(et,`https://player.vimeo.com/video/${t[1]}?${e?`h=${e}&`:""}title=0&portrait=0&sidedock=0&byline=0&controls=0#t=`+Math.round(S()??0)+"s"),Y(vt,!0)}}let yt;it&&m()&&(yt=`https://videodelivery.net/${m().slice(8)}/manifest/video.m3u8`,Y(et,void 0));let kt=j(void 0);if(L()){const t=new ts(N(),L());null!=S()&&S()>0&&(t.currentTime=S()),nt==es.VideoTour&&(A("duration"in L()?Number(L().duration):(null==(o=null==(s=L().i18n)?void 0:s[d()])?void 0:o.duration)??0),v(NaN)),Y(kt,t,!0)}(nt==es.Micrio||nt==es.IFrame&&!ot)&&k(!1);const Tt=L()&&!("steps"in L())?"subtitle"in L()?L().subtitle:null==(l=null==(a=L().i18n)?void 0:a[h.lang])?void 0:l.subtitle:void 0,_t=Tt&&("fileUrl"in Tt?Tt.fileUrl:Tt.src);function xt(){$(!1),M()&&N()&&!N()._video&&N().video.set(F())}let Et=j(!1);function $t(){Y(Et,!1),x(!1),jt(kt)&&F()&&(jt(kt).duration=F().duration,jt(kt).currentTime=F().currentTime,jt(kt).play())}function At(t){t&&"button"in t&&0!=t.button||(x()?Ct():Dt())}const St=async()=>F()?F().paused:jt(kt)?x():at?[-1,0,2].indexOf(at.getPlayerState())>=0:ot==is.YouTube?x():!!lt&&await lt.getPaused();let It=j(!1),Mt=!1;const Lt=ye("mediaPaused");let Pt;async function Ct(t){var i,r,n,s;if(!(t&&t instanceof PointerEvent&&0!=t.button)&&(!Mt||await St())){switch(Y(Nt,!1),A()>0&&null!=S()&&S()>=A()&&S(0),!P()&&_t&&Z.set(_t),nt){case es.VideoTour:x($(!1)),null==(i=jt(kt))||i.play(),Vt();break;case es.Audio:case es.Video:null==(r=F())||r.addEventListener("play",$t,{once:!0}),null==(n=F())||n.play().catch((t=>{var i;z()?x(!0):/pause\(\)/.test(t.toString())||(Y(Et,!0),h.events.dispatch("media-blocked"),null==(i=e.onblocked)||i.call(e))}));break;case es.IFrame:switch(ot){case is.YouTube:at&&at.playVideo();break;case is.Vimeo:lt&<.play()}break;default:return}Mt=!0,q.dispatch("media-play"),Lt.set(!1),null==(s=e.onplay)||s.call(e),M()||H||jt(kt)&&!F()||G.set(N().$settings.mutedVolume||0)}}function Dt(){q.dispatch("media-pause"),Lt.set(!0),F()?(F().pause(),pt&&x(!0)):jt(kt)?(jt(kt).pause(),x(!0),Ut()):(null==at?void 0:at.pauseVideo)&&!jt(Xt)?at.pauseVideo():(null==lt?void 0:lt.pause)&<.pause()}function Rt(t){$(!0),F()?F(F().currentTime=t,!0):jt(kt)?(S(jt(kt).currentTime=t),$(!1)):(null==at?void 0:at.seekTo)?at.seekTo(t):(null==lt?void 0:lt.setCurrentTime)&<.setCurrentTime(t)}function zt(){jt(kt)?(S(jt(kt).currentTime),jt(kt).ended&&Ft()):(null==at?void 0:at.getCurrentTime)&&S(at.getCurrentTime()),Ot()}function Ot(){P()||q.dispatch("timeupdate",S())}let Nt=j(!1);function Ft(){var t;jt(Nt)||(jt(kt)?Dt():(x(!0),Ut()),Y(Nt,!0),q.dispatch("media-ended"),null==(t=e.onended)||t.call(e),Wt())}function Vt(){mt>=0||(mt=setInterval(zt,250),zt())}function Ut(){clearInterval(mt),mt=-1}async function Bt(){if(it&&!Dr(F()))return gr("https://i.micr.io/hls-1.5.17.min.js",void 0,"Hls"in window?{}:void 0).then((()=>{ht=new window.Hls,ht.loadSource(yt),F()&&ht.attachMedia(F())}));if(nt==es.IFrame){if(ot==is.YouTube)return async function(){if(!at){if(window.YT||await gr("https://i.micr.io/youtube.js","onYouTubeIframeAPIReady"),window.YT)return $(!0),new Promise(((t,e)=>{at=new window.YT.Player(jt(ft),{host:tt,width:jt(ie).toString(),height:jt(re).toString(),playerVars:{controls:0},events:{onError:e,onReady:()=>{jt(Xt)?e():(I(at.isMuted()),A(at.getDuration()),$(!1),t())},onStateChange:t=>{switch(t.data){case-1:Y(It,x(!0),!0),Ut();break;case 0:Ft();break;case 1:Vt(),Y(It,x($(!1)),!0);break;case 2:x(!0),Ut();break;case 3:zt(),$(!0),Ut()}}}})}));Y(vt,!1)}}();if(ot==is.Vimeo)return async function(){if(!lt){if(window.Vimeo||await gr("https://i.micr.io/vimeo.min.js"),window.Vimeo)return $(!0),new Promise(((t,e)=>{const i=lt=new window.Vimeo.Player(jt(ft),{width:jt(ie).toString(),height:jt(re).toString(),title:!1,autoplay:!1});i.on("error",e),i.on("loaded",(()=>i.getVolume().then((i=>{jt(Xt)?e():(I(0==v(i)),t())})))),i.on("play",(()=>x($(!1)))),i.on("bufferstart",(()=>$(!0))),i.on("seeked",(()=>{$(!1)})),i.on("pause",(()=>x(!0))),i.on("volumechange",(t=>{t&&I(0==v(t.volume))})),i.on("timeupdate",(t=>{t&&(A(t.duration),S(t.seconds))})),i.on("ended",Ft)}));Y(vt,!1)}}()}else F()&&(it&&Y(et,yt,!0),function(){if(!F())return;F(F().ontimeupdate=Ot,!0),jt(kt)&&(F(F().onpause=()=>jt(kt).pause(),!0),F(F().onseeked=()=>{F()&&!F().ended&&(jt(kt).currentTime=F().currentTime,qt&&(F().pause(),qt=!1))},!0));null!=S()&&S()>0&&(F().duration>0?F(F().currentTime=S(),!0):F(F().oncanplay=()=>{F()&&(F(F().oncanplay=null,!0),w()||(F().play(),qt=!0),F(F().currentTime=K,!0))},!0));const t=b()&&void 0!==y()?y():-1;F(F().onended=t>=0?()=>{clearTimeout(Pt),Pt=setTimeout((()=>{var t;E()||null==(t=F())||t.play()}),1e3*t)}:Ft,!0)}())}let qt=!1;function Wt(){H||G.set(1)}let Xt=j(!1);const Gt=()=>{var t;return S((null==(t=F())?void 0:t.currentTime)??0)};const Yt=nt==es.Video;let Ht=j(B(Yt&&it&&1!=g()&&mr.iOS));Gi((()=>{var t,i;null==(t=e.onid)||t.call(e,O()),m()&&pt&&(F(ws),F(F().controls=!1,!0),F(F().onloadedmetadata=()=>{var t;return A((null==(t=F())?void 0:t.duration)??0)},!0),F(F().src=m(),!0),F(F().oncanplay=xt,!0),F(F().onended=Ft,!0),F().addEventListener("timeupdate",Gt),F(F().onseeking=()=>$(!0),!0),F(F().onseeked=()=>$(!1),!0)),K=S()||0,Y(vt,ot==is.YouTube||ot==is.Vimeo,!0),Bt().then((()=>{w()&&Ct()})).catch((()=>{})),jt(Ht)&&(null==(i=F())||i.addEventListener("playing",(()=>Y(Ht,!1)),{once:!0}));const r=h.isMuted.subscribe((t=>function(t){V||(I(t),F()?F(F().muted=t,!0):(null==at?void 0:at.mute)?(t?at.mute():at.unMute(),setTimeout((()=>{at&&I(at.isMuted())}),50)):lt&<.setVolume(t?0:1))}(t)));return()=>{!function(){if(!jt(Xt)){if(Y(Xt,!0),M()&&N()&&N().video.set(void 0),W.mediaState.delete(O()),Ut(),Dt(),Wt(),_t&&Z.set(void 0),F()&&(F(F().onended=null,!0),pt&&(F(F().onloadedmetadata=F(F().onplay=F(F().onseeking=F(F().onseeked=null,!0),!0),!0),!0),F().removeEventListener("timeupdate",Gt)),F(F().ontimeupdate=F(F().onpause=F(F().onseeked=F(F().oncanplay=null,!0),!0),!0),!0)),jt(kt))jt(kt).destroy();else if(lt)for(let t of["error","loaded","play","bufferstart","seeked","pause","volumechange","timeupdate","ended"])lt.off(t);ht?ht.destroy():at?at.destroy():lt&<.destroy()}}(),r(),pt&&F(void 0),ht?ht.destroy():at?at.destroy():lt&<.destroy()}})),ee((()=>{F()&&nt==es.Video&&!I()&&F(F().muted=0==v(),!0)})),ee((()=>{void 0!==E()&&x(E())})),ee((()=>{b()&&void 0!==y()&&clearTimeout(Pt)}));let Zt=J((()=>{var t,e;return jt(kt)&&L()?"events"in L()?L().events:(null==(e=null==(t=L().i18n)?void 0:t[d()])?void 0:e.events)??void 0:void 0})),Kt=j(void 0),Jt=j(void 0);const Qt=U.is360?Math.PI/2:1;let te=J((()=>Yt?g()*Qt:nt==es.IFrame?Math.max(g(),Math.min(p()/512,f()/512)):1)),ie=J((()=>Yt?p():Math.round(p()/jt(te)*Qt))),re=J((()=>Yt?f():Math.round(f()/jt(te)*Qt)));var ne=Ge(),oe=ut(ne),ae=t=>{var e=Is(),i=ut(e);let r;wi(i,null);var n=ct(i);let s;n.__pointerup=[bs,Jt,At];var o=ct(n),a=t=>{var e=ys();let i;qi(e,(t=>Y(ft,t)),(()=>jt(ft))),se(((t,r)=>i=$i(e,i,{...t,title:T(),src:jt(et),width:jt(ie),height:jt(re),frameborder:"0",allow:"fullscreen *;autoplay *;encrypted-media *",[bi]:r},"micrio-media")),[()=>({credentialless:!0}),()=>({hooked:jt(vt)&&!jt(It)})]),Ye(t,e)},l=(t,e)=>{var i=t=>{var e=_s();e.controls=!1;var i=ct(e),r=t=>{var e=Ts(),i=ut(e),r=t=>{var e=ks();se((t=>xi(e,"src",t)),[()=>jt(et).replace(".webm",".mp4")]),Ye(t,e)};ei(i,(t=>{R()&&jt(et).endsWith(".webm")&&t(r)}));var n=dt(i,2);xi(n,"type",it?"application/x-mpegURL":void 0),se((()=>xi(n,"src",jt(et)))),Ye(t,e)};ei(i,(t=>{jt(et)&&t(r)})),qi(e,(t=>F(t)),(()=>F())),se((()=>{e.loop=b()&&(null==y()||y()<=0),xi(e,"width",p()),xi(e,"height",f()),wi(e,jt(Ht)?"opacity: 0":void 0),e.autoplay=!!w()})),Fe("canplay",e,xt),Fe("ended",e,Ft),Wi("duration","durationchange",e,A),Ui(e,I),Ni(e,S),Fi(e,$),Vi(e,x),Ye(t,e)},r=(t,e)=>{var i=t=>{var e=xs();e.controls=!1,qi(e,(t=>F(t)),(()=>F())),se((()=>xi(e,"src",jt(et)))),Fe("canplay",e,(()=>$(!1))),Fe("ended",e,Ft),Wi("duration","durationchange",e,A),Ui(e,I),Ni(e,S),Fi(e,$),Vi(e,x),Ye(t,e)},r=(t,e)=>{var i=t=>{var e=Es();Ei(e,"data-logo","false"),se((()=>Ei(e,"id",st[0]))),se((()=>Ei(e,"width",st[1]))),se((()=>Ei(e,"height",st[2]))),se((()=>Ei(e,"lang",st[3]))),se((()=>Ei(e,"data-path",U.path))),Ye(t,e)};ei(t,(t=>{nt==es.Micrio&&st&&t(i)}),e)};ei(t,(t=>{nt!=es.Audio||pt?t(r,!1):t(i)}),e)};ei(t,(t=>{nt==es.Video?t(i):t(r,!1)}),e)};ei(o,(t=>{nt==es.IFrame?t(a):t(l,!1)}));var u=dt(o,2),d=t=>{gs(0,{get events(){return jt(Zt)},get currentTime(){return S()},set currentTime(t){S(t)},get duration(){return A()},set duration(t){A(t)}})};ei(u,(t=>{var e;(null==(e=jt(Zt))?void 0:e.length)&&A()>0&&!jt(Xt)&&t(d)}));var m=dt(u,2),g=t=>{var e=$s();let i;var r=ct(e);const n=J((()=>M()||nt!=es.IFrame&&nt!=es.Video?C():jt(Kt)));!function(t,e){Te(e,!0);const[i,r]=ir(),n=()=>tr(Xr,"$i18n",i),s=()=>tr(ns,"$captionsEnabled",i);let o=or(e,"currentTime",15,0),a=or(e,"duration",11,0),l=or(e,"seeking",11,!0),c=or(e,"muted",11,!1),u=or(e,"minimal",3,!1),d=or(e,"ended",15),h=or(e,"fullscreen",3,void 0),m=or(e,"subtitles",3,!1),v=J((()=>!isNaN(e.volume))),p=j(void 0);function f(t){0==t.button&&(window.addEventListener("mousemove",g),window.addEventListener("mouseup",w),g(t))}function g(t){var i;const r=jt(p).getClientRects()[0],n=Math.min(1,Math.max(0,(t.clientX-r.left)/r.width));null==(i=e.onseek)||i.call(e,n*a())}function w(){window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",w)}var b=fs(),y=ut(b);y.__click=[ds],y.__keydown=[hs];var k=ct(y);const T=J((()=>e.paused?"play":"pause")),_=J((()=>e.paused?n().play:n().pause));zn(k,{get type(){return jt(T)},get title(){return jt(_)},get onclick(){return e.onplaypause},children:(t,e)=>{var i=Ge(),r=ut(i),n=t=>{var e=ms(),i=ct(e);se((()=>xi(i,"stroke-dashoffset",119.4*(1-o()/a())))),Ye(t,e)};ei(r,(t=>{u()&&o()>0&&t(n)})),Ye(t,i)},$$slots:{default:!0}});var x=dt(k,2),E=t=>{var i=vs(),r=ut(i),o=t=>{const i=J((()=>c()?"volume-off":"volume-up")),r=J((()=>c()?n().audioUnmute:n().audioMute));zn(t,{get disabled(){return l()},get type(){return jt(i)},get title(){return jt(r)},get onclick(){return e.onmute}})};ei(r,(t=>{jt(v)&&t(o)}));var a=dt(r,2),u=t=>{const e=J((()=>s()?"subtitles":"subtitles-off"));zn(t,{get type(){return jt(e)},get active(){return s()},get title(){return n().subtitlesToggle},onclick:()=>ns.set(!s())})};ei(a,(t=>{m()&&t(u)}));var d=dt(a,2),p=t=>{jn(t,{get el(){return h()}})};ei(d,(t=>{h()&&t(p)})),Ye(t,i)};ei(x,(t=>{u()||t(E)}));var $=dt(y,2),A=t=>{us(t,{get duration(){return a()},get currentTime(){return o()},set currentTime(t){o(t)},get ended(){return d()},set ended(t){d(t)},children:(t,e)=>{var i=ps();i.__mousedown=f,qi(i,(t=>Y(p,t)),(()=>jt(p))),se((()=>wi(i,`--progress:${o()/a()*100}%;`))),Ye(t,i)},$$slots:{default:!0}})};ei($,(t=>{u()||t(A)})),Ye(t,b),_e(),r()}(r,{subtitles:!!_t,get fullscreen(){return jt(n)},onplaypause:At,onmute:()=>h.isMuted.set(!I()),onseek:t=>Rt(t),get paused(){return x()},set paused(t){x(t)},get seeking(){return $()},set seeking(t){$(t)},get duration(){return A()},set duration(t){A(t)},get currentTime(){return S()},set currentTime(t){S(t)},get muted(){return I()},set muted(t){I(t)},get volume(){return v()},set volume(t){v(t)},get ended(){return jt(Nt)},set ended(t){Y(Nt,t,!0)}}),se((t=>i=fi(e,1,"micrio-media",null,i,t)),[()=>({inside:"inside"==k()})]),Ye(t,e)};ei(m,(t=>{k()&&t(g)})),qi(n,(t=>Y(Jt,t)),(()=>jt(Jt)));var E=dt(n,2),L=t=>{var e=As();li(ct(e),_),Ye(t,e)};ei(E,(t=>{_()&&t(L)})),qi(i,(t=>Y(Kt,t)),(()=>jt(Kt)));var P=dt(i,2),z=t=>{var e=Ss();e.__pointerup=Ct,zn(ct(e),{get title(){return tr(Xr,"$i18n",c).play},type:"play"}),Ye(t,e)};ei(P,(t=>{jt(Et)&&t(z)})),se(((t,e)=>{r=fi(i,1,hi(D()),"micrio-media",r,t),wi(n,1==jt(te)||nt!=es.Video&&U.is360?"":`transform:scale(${jt(te)})`),s=fi(n,1,"micrio-media",null,s,e)}),[()=>({paused:x(),is360:M(),"media-video":nt==es.IFrame||nt==es.Video,"media-micrio":nt==es.Micrio}),()=>({videotour:!!jt(kt)})]),Ye(t,e)};ei(oe,(t=>{N().$settings.noUI||t(ae)})),Ye(t,ne),_e(),u()}Ve(["pointerup"]);var Ls=t=>t.stopPropagation(),Ps=We("<article><!></article>");function Cs(t,e){Te(e,!0);let i=or(e,"cn",3,null);function r(t){var e;t.target&&t.target instanceof HTMLAnchorElement&&!(null==(e=t.target.getAttribute("href"))?void 0:e.startsWith("#"))&&(t.target.target="_blank")}var n=Ps();n.__click=[Ls],n.__keydown=r,n.__pointerdown=r,ci(ct(n),(()=>e.children??M)),se((()=>fi(n,1,hi(i()),"micrio-article"))),Ye(t,n),_e()}Ve(["click","keydown","pointerdown"]);var Ds=We('<h1 class="micrio-marker-content"> </h1>'),Rs=We('<figcaption class="micrio-marker-content"> </figcaption>'),zs=We('<button class="micrio-marker-content"><figure class="micrio-marker-content"><img class="micrio-marker-content"> <!></figure></button>'),Os=We('<section class="micrio-marker-content"></section>'),Ns=We("<!> <!>",1),Fs=We("<main><!> <!> <!> <!> <!> <!> <!></main>");function Vs(t,e){var i,r,n;Te(e,!0);const[s,o]=ir(),a=()=>tr(f,"$tour",s),l=()=>tr(p,"$lang",s);let c=or(e,"noEmbed",3,!1),u=or(e,"noImages",3,!1),d=or(e,"noGallery",3,!1),h=or(e,"_content",15),m=or(e,"_title",15);const v=ye("micrio"),p=v._lang,f=v.state.tour,g=a()&&"steps"in a()&&a().isSerialTour,w=ye("markerImages").get(e.marker.id),b=w.$settings._markers??{},y=!b.preventAutoPlay,k=!(null==(i=e.marker.data)?void 0:i.preventImageOpen)&&!d(),T=1==(null==(r=e.marker.images)?void 0:r.length);let _=J((()=>e.marker.i18n?e.marker.i18n[l()]:e.marker)),x=J((()=>{var t,i,r,n,s;return!((null==(t=jt(_))?void 0:t.title)||(null==(i=jt(_))?void 0:i.audio)||e.marker.images&&e.marker.images.length||(null==(r=jt(_))?void 0:r.embedUrl)||e.marker.videoTour||(null==(n=jt(_))?void 0:n.body)||(null==(s=jt(_))?void 0:s.bodySecondary))}));const E=()=>{var t;a()&&"steps"in a()&&(a().isSerialTour||b.tourAutoProgress)&&(null==(t=e.onclose)||t.call(e))};const $=J((()=>{var t;return!y||!(null==(t=e.marker)?void 0:t.audioAutoPlay)})),A=J((()=>{var t,i,r;return!1===(null==(t=e.marker)?void 0:t.embedAutoPlay)||!y||!(!(null==(i=jt(_))?void 0:i.audio)||!(null==(r=e.marker)?void 0:r.audioAutoPlay))})),S=null==(n=w.tileBase)?void 0:n.includes("micrio.dev"),I=t=>{var e,i;return null==(i=null==(e=t.i18n)?void 0:e[l()])?void 0:i.title};let M=J((()=>{var t,i,r,n;return(null==(r=null==(i=null==(t=e.marker.videoTour)?void 0:t.i18n)?void 0:i[l()])?void 0:r.audio)??(null==(n=jt(_))?void 0:n.audio)})),L=J((()=>jt(M)?"fileUrl"in jt(M)?jt(M).fileUrl:jt(M).src:void 0)),P=J((()=>{var t,i,r,n;return T&&(null==(n=null==(r=null==(i=null==(t=e.marker.images)?void 0:t[0])?void 0:i.i18n)?void 0:r[l()])?void 0:n.description)}));var C=Ge(),D=ut(C),R=t=>{var i=Fs();let r;var n=ct(i),s=t=>{var e=Ds(),i=ct(e);qi(e,(t=>m(t)),(()=>m())),se((()=>Ke(i,jt(_).title))),Ye(t,e)};ei(n,(t=>{jt(_).title&&t(s)}));var o=dt(n,2),a=t=>{Cs(t,{children:(t,e)=>{var i=Ge();li(ut(i),(()=>jt(_).body)),Ye(t,i)},$$slots:{default:!0}})};ei(o,(t=>{jt(_).body&&b.primaryBodyFirst&&t(a)}));var l=dt(o,2),d=t=>{const i=J((()=>e.marker.audioAutoPlay||!jt(_).audio&&!!e.marker.videoTour)),r=J((()=>!e.marker.videoTour||!jt(_)||!jt(_).embedUrl));Ms(t,{get src(){return jt(L)},noPlayOverlay:!0,image:w,get uuid(){return e.marker.id},get tour(){return e.marker.videoTour},get autoplay(){return jt(i)},get controls(){return jt(r)},onended:E,get paused(){return jt($)}})};ei(l,(t=>{!g&&((!jt(_)||!jt(_).embedUrl)&&e.marker.videoTour||jt(_)&&jt(_).audio)&&t(d)}));var p=dt(l,2),f=t=>{var i=Os();ri(i,21,(()=>e.marker.images),(t=>t.id??t.src),((t,i)=>{var r=zs();r.__click=function(...t){var r;null==(r=k?()=>{return t=jt(i).micrioId,void(k&&v.state.popover.set({gallery:e.marker.images,galleryStart:t,image:w}));var t}:void 0)||r.apply(this,t)},r.disabled=!k;var n=ct(r),s=ct(n),o=dt(s,2),a=t=>{var e=Rs(),i=ct(e);se((()=>Ke(i,jt(P)))),Ye(t,e)};ei(o,(t=>{jt(P)&&t(a)})),se(((t,e,i)=>{xi(r,"title",t),xi(s,"alt",e),xi(s,"src",i)}),[()=>I(jt(i)),()=>I(jt(i)),()=>jt(i).micrioId?`https://iiif.${S?"micrio.dev":"micr.io"}/${jt(i).micrioId}/full/${T?"^"+Math.min(jt(i).width,640)+",":"^,320"}/0/default.webp`:jt(i).src]),Ye(t,r)})),Ye(t,i)};ei(p,(t=>{var i;!u()&&(null==(i=e.marker.images)?void 0:i.length)&&t(f)}));var M=dt(p,2),C=t=>{var i=Ns(),r=ut(i),n=t=>{Ms(t,{image:w,className:"hidden",get uuid(){return e.marker.id},get tour(){return e.marker.videoTour},autoplay:y,secondary:!0})};ei(r,(t=>{!jt(_).audio&&e.marker.videoTour&&t(n)}));var s=dt(r,2);const o=J((()=>!jt(A)));Ms(s,{image:w,get src(){return jt(_).embedUrl},get uuid(){return e.marker.id},width:400,height:240,controls:!0,get title(){return jt(_).embedTitle},get figcaption(){return jt(_).embedDescription},get autoplay(){return jt(o)},onended:E,get paused(){return jt(A)}}),Ye(t,i)};ei(M,(t=>{jt(_).embedUrl&&!c()&&t(C)}));var D=dt(M,2),R=t=>{Cs(t,{children:(t,e)=>{var i=Ge();li(ut(i),(()=>jt(_).body)),Ye(t,i)},$$slots:{default:!0}})};ei(D,(t=>{jt(_).body&&!b.primaryBodyFirst&&t(R)}));var z=dt(D,2),O=t=>{Cs(t,{cn:"secondary",children:(t,e)=>{var i=Ge();li(ut(i),(()=>jt(_).bodySecondary)),Ye(t,i)},$$slots:{default:!0}})};ei(z,(t=>{jt(_).bodySecondary&&t(O)})),qi(i,(t=>h(t)),(()=>h())),se((t=>r=fi(i,1,"micrio-marker-content",null,r,t)),[()=>({empty:jt(x)})]),Ye(t,i)};ei(D,(t=>{jt(_)&&t(R)})),Ye(t,C),_e(),o()}Ve(["click"]);var Us=We('<button class="micrio-button tour-step micrio-marker-popup" disabled> </button>'),Bs=We("<!> <!> <!>",1),qs=We('<progress class="progress micrio-marker-popup"></progress> <!>',1),Ws=We('<div><aside class="micrio-marker-popup"><!> <!> <!></aside> <!></div>');function Xs(t,e){Te(e,!0);const[i,r]=ir(),n=()=>tr(c,"$tour",i),s=()=>tr(l,"$current",i),o=()=>tr(Xr,"$i18n",i),a=ye("micrio"),{current:l}=a,c=a.state.tour,u=ye("markerImages").get(e.marker.id),d=u.$settings._markers??{},h=e.marker.data||{},m=d.canMinimizePopup;let v=j(void 0);function p(t){var e,i,r;n()&&jt(f)&&"steps"in n()?t instanceof Event&&jt(b)?c.set(void 0):null==(i=(e=n()).next)||i.call(e):s()&&!u.opts.secondaryTo&&s().id!=u.id&&(null==(r=h.micrioLink)?void 0:r.id)==s().id?(a.open(u.id),u.state.marker.set(void 0),a.state.popup.set(void 0)):u.state.marker.set(void 0)}let f=J((()=>n()&&"steps"in n()&&n().steps.findIndex((t=>t.startsWith(e.marker.id)))>=0)),g=J((()=>n()&&"steps"in n()&&jt(f)&&!n().isSerialTour&&d.tourControlsInPopup)),w=J((()=>(n()&&"steps"in n()?n().currentStep:void 0)??-1)),b=J((()=>jt(g)||n()&&"steps"in n()&&n().currentStep==n().steps.length-1)),y=j(!1);const k=()=>{var t,e;n()&&"steps"in n()&&(null==(e=(t=n()).prev)||e.call(t),Y(y,!0),setTimeout((()=>Y(y,!1)),200))},T=()=>{var t,e;n()&&"steps"in n()&&(null==(e=(t=n()).next)||e.call(t),Y(y,!0),setTimeout((()=>Y(y,!1)),200))};let _=j(!1),x=j(void 0),E=j(void 0);const $=new WeakMap,A=()=>{if(Y(_,!jt(_)),jt(x))for(let t=0;t<jt(x).children.length;t++){const e=jt(x).children[t];e instanceof HTMLElement&&e!=jt(E)&&($.has(e)||($.set(e,e.offsetHeight),e.style.height=e.offsetHeight+"px"),setTimeout((()=>{e.style.height=jt(_)?"0px":$.get(e)+"px"}),100))}};let S=j(!1);Gi((()=>{var t;e.marker.tags.forEach((t=>{var e;return null==(e=jt(v))?void 0:e.classList.add(t)})),setTimeout((()=>{var t,e;return null==(e=null==(t=jt(v))?void 0:t.querySelector("button"))?void 0:e.focus()}),500);const i="embedImages"in e.marker?e.marker.embedImages:void 0;i&&(null==(t=a.$current)||t.data.update((t=>(t||(t={embeds:[]}),t.embeds=[...t.embeds??[],...i],t))));const r=a.state.popup.subscribe((t=>Y(S,!t||t!=e.marker,!0)));return()=>{var t;r(),i&&(null==(t=a.$current)||t.data.update((t=>(null==t?void 0:t.embeds)?(t.embeds=t.embeds.filter((t=>!i.find((e=>e.id==t.id)))),t):t)))}}));var I=Ws();let M;var L=ct(I),P=ct(L),C=t=>{const e=J((()=>!jt(f)||jt(b)?"close":"arrow-right")),i=J((()=>!jt(f)||jt(b)?o().closeMarker:o().tourStepNext));zn(t,{get type(){return jt(e)},get title(){return jt(i)},get disabled(){return jt(y)},onclick:p})};ei(P,(t=>{h.alwaysOpen||t(C)}));var D=dt(P,2),R=t=>{const e=J((()=>jt(_)?"arrow-up":"arrow-down"));zn(t,{get type(){return jt(e)},get title(){return o().minimize},onclick:A})};ei(D,(t=>{m&&t(R)}));var z=dt(D,2),O=t=>{var e=qs(),i=ut(e);xi(i,"aria-hidden",!0),Xn(dt(i,2),{className:"micrio-tour-controls",children:(t,e)=>{var i=Bs(),r=ut(i);const s=J((()=>jt(y)||0==jt(w)));zn(r,{type:"arrow-left",get disabled(){return jt(s)},get title(){return o().tourStepPrev},onclick:k});var a=dt(r,2),l=t=>{var e=Us(),i=ct(e);se((()=>Ke(i,`${jt(w)+1} / ${n().steps.length??""}`))),Ye(t,e)};ei(a,(t=>{d.tourStepCounterInPopup&&t(l)}));var c=dt(a,2);const u=J((()=>jt(y)||jt(w)+1==n().steps.length));zn(c,{type:"arrow-right",get disabled(){return jt(u)},get title(){return o().tourStepNext},onclick:T}),Ye(t,i)},$$slots:{default:!0}}),se((()=>{return t=i,e=(jt(w)+1)/n().steps.length,void((r=Ai(t)).value!==(r.value=e??void 0)&&(t.value!==e||0===e&&"PROGRESS"===t.nodeName)&&(t.value=e??""));var t,e,r})),Ye(t,e)};ei(z,(t=>{jt(g)&&n()&&"steps"in n()&&t(O)})),Vs(dt(L,2),{get marker(){return e.marker},onclose:p,get _content(){return jt(x)},set _content(t){Y(x,t,!0)},get _title(){return jt(E)},set _title(t){Y(E,t,!0)}}),qi(I,(t=>Y(v,t)),(()=>jt(v))),se((t=>M=fi(I,1,"micrio-marker-popup",null,M,t)),[()=>({destroying:jt(S),minimized:jt(_)})]),zi(3,I,(()=>Fr),(()=>d.popupAnimation)),Ye(t,I),_e(),r()}var js=We('<li><button class="micrio-serial-tour"> </button></li>'),Gs=We('<ol class="micrio-serial-tour"></ol>'),Ys=We("<!> <!> <!> <!>",1),Hs=We('<div role="progressbar"></div>'),Zs=We('<!> <aside class="micrio-media-controls micrio-serial-tour"><!> <!></aside> <!>',1);function Ks(t,e){var i,r;Te(e,!0);const[n,s]=ir(),o=()=>tr(d,"$lang",n),a=()=>tr(Xr,"$i18n",n),l=()=>tr(ns,"$captionsEnabled",n),c=e.tour.stepInfo,u=ye("micrio"),d=u._lang,h=u.$current,m=u.state.marker,v=h.$settings,p=!!(null==(r=null==(i=null==v?void 0:v.ui)?void 0:i.controls)?void 0:r.serialTourNoTimeScrub),f=c.reduce(((t,e)=>t+e.duration),0)??0,g="controls"in e.tour?!1!==e.tour.controls:!e.tour.noControls;let w=j(!1),b=j(!1),y=j(B(Ki(u.isMuted))),k=j(void 0),T=j(void 0),_=j(0),x=j("");function E(){const t=u.state.mediaState.get(jt(x));t&&(t.paused=Y(w,!t.paused)),jt(w)?(u.events.dispatch("serialtour-pause",e.tour),u.events.enabled.set(!0)):(u.events.dispatch("serialtour-play",e.tour),u.events.enabled.set(!1))}function $(t,i){var r;if(!e.tour.goto)return;const n=t==e.tour.currentStep;if(p&&n)return;n||e.tour.goto(t);const s=!p&&i?i.offsetX/i.target.offsetWidth:0;c.forEach(((e,r)=>e.ended=!i&&r<t)),I();const o=c[t];o.currentTime=s*o.duration,n&&(null==(r=jt(k))?void 0:r.instance)&&(jt(k).instance.currentTime=o.currentTime),L(t)}function A(){u.isMuted.set(Y(y,!jt(y)))}function S(){var t;const i=jt(T);i&&(i.ended=!0),null!=e.tour.currentStep&&e.tour.currentStep<e.tour.steps.length-1&&e.tour.next?e.tour.next():(Y(w,Y(b,!0),!0),null==(t=e.onended)||t.call(e)),Xt().then((()=>{I(),i&&(i.ended=!1)}))}function I(){var t;null==(t=e.tour.stepInfo)||t.forEach((t=>t.currentTime=0))}const M=Zi([]);function L(t=e.tour.currentStep??0){const i=c.map(((e,i)=>i<t||e.ended||jt(b)?100:i==t?Math.round((e.currentTime||0)/e.duration*1e4)/100:0));Y(_,i.reduce(((t,e,i)=>t+e/100*c[i].duration),0),!0),M.set(i)}function P(t){const i=t&&!!e.tour.steps.find((e=>e.startsWith(t.id)));Y(k,void 0),i&&t.videoTour&&setTimeout((()=>{const i=c[e.tour.currentStep??0];i.markerId==t.id&&(i.ended=!1,Y(T,i,!0),Y(k,t.videoTour,!0),L())}),10)}const C=t=>{var e;return t.i18n?null==(e=t.i18n[o()])?void 0:e.title:t.title};Gi((()=>{const t=()=>L();u.addEventListener("timeupdate",t);const e=m.subscribe(P);return()=>{e(),u.removeEventListener("timeupdate",t),I()}}));let D=J((()=>{var t,e;return jt(k)?"audio"in jt(k)?jt(k).audio:null==(e=null==(t=jt(k).i18n)?void 0:t[o()])?void 0:e.audio:void 0})),R=J((()=>jt(D)?"fileUrl"in jt(D)?jt(D).fileUrl:jt(D).src:void 0)),z=J((()=>{var t;return!!(null==(t=jt(T))?void 0:t.hasSubtitle)})),O=J((()=>c.some((t=>t.hasSubtitle))));var N=Zs(),F=ut(N),V=t=>{var e=Gs();ri(e,21,(()=>c),ii,((t,e,i)=>{var r=Ge(),n=ut(r),s=t=>{var r=js();let n;var s=ct(r);s.__click=()=>$(i);var o=ct(s);se(((t,e)=>{n=fi(r,1,"micrio-serial-tour",null,n,t),Ke(o,e)}),[()=>({active:jt(T)&&jt(T).chapter==i,enriched:jt(e).imageHasOtherMarkers}),()=>C(jt(e).marker)]),Ye(t,r)};ei(n,(t=>{C(jt(e).marker)&&t(s)})),Ye(t,r)})),Ye(t,e)};ei(F,(t=>{e.tour.printChapters&&t(V)}));var U=dt(F,2),q=ct(U),W=t=>{const e=J((()=>!jt(w)));Ms(t,{get tour(){return jt(k)},get src(){return jt(R)},get autoplay(){return jt(e)},onid:t=>Y(x,t,!0),onended:S,onplay:()=>Y(w,!1),onblocked:()=>Y(w,!0),get muted(){return jt(y)},set muted(t){Y(y,t,!0)},get currentTime(){return jt(T).currentTime},set currentTime(t){jt(T).currentTime=t}})};ei(q,(t=>{jt(k)&&jt(T)&&t(W)}));var X=dt(q,2),G=t=>{var e=Ys(),i=ut(e);const r=J((()=>jt(w)?"play":"pause")),n=J((()=>jt(w)?a().play:a().pause));zn(i,{get type(){return jt(r)},get title(){return jt(n)},onclick:E});var s=dt(i,2);const o=J((()=>jt(y)?"volume-off":"volume-up")),c=J((()=>jt(y)?a().audioUnmute:a().audioMute));zn(s,{get type(){return jt(o)},get title(){return jt(c)},onclick:A});var d=dt(s,2),h=t=>{const e=J((()=>!jt(z))),i=J((()=>l()?"subtitles":"subtitles-off"));zn(t,{get disabled(){return jt(e)},get type(){return jt(i)},get active(){return l()},get title(){return a().subtitlesToggle},onclick:()=>ns.set(!l())})};ei(d,(t=>{jt(O)&&t(h)})),jn(dt(d,2),{el:u}),Ye(t,e)};ei(X,(t=>{g&&t(G)}));var H=dt(U,2),Z=t=>{us(t,{duration:f,get currentTime(){return jt(_)},set currentTime(t){Y(_,t,!0)},get ended(){return jt(b)},set ended(t){Y(b,t,!0)},children:(t,i)=>{var r=Ge();ri(ut(r),17,(()=>c),ii,((t,i,r)=>{var s=Ge(),o=ut(s),a=t=>{var s=Hs();let o;s.__click=t=>$(r,t),se(((t,e)=>{o=fi(s,1,"bar",null,o,t),xi(s,"title",e),wi(s,`width:${jt(i).duration/f*100}%; --progress: ${tr(M,"$times",n)[r]||0}%`)}),[()=>({active:r==e.tour.currentStep}),()=>C(jt(i).marker)]),Fe("keypress",s,(t=>{"Enter"===t.key&&$(r)})),Ye(t,s)};ei(o,(t=>{jt(i).duration>0&&t(a)})),Ye(t,s)})),Ye(t,r)},$$slots:{default:!0}})};ei(H,(t=>{g&&t(Z)})),Ye(t,N),_e(),s()}Ve(["click"]);var Js=We('<article class="scroll-tour micrio-tour"></article> <!>',1),Qs=We("<!> <!> <!>",1),to=We("<div><!> <!></div>");function eo(t,e){var i,r;Te(e,!0);const[n,s]=ir(),o=()=>tr(m,"$_lang",n),a=()=>tr(Xr,"$i18n",n);let l=or(e,"tour",15),c=or(e,"noHTML",3,!1);const u=ye("micrio"),{events:d,state:h,_lang:m}=u,v=u.$current,p=v.$data,f=v.$settings,g=u.canvases[0].grid,w=v.state.marker,b="steps"in l()&&l().isSerialTour,y=!("steps"in l()),k="scrollable"in l()&&l().scrollable,T="steps"in l()&&("controls"in l()?!1!==l().controls:!l().noControls),_=!(!b&&"steps"in l()&&(null==(i=f._markers)?void 0:i.tourControlsInPopup)),x=_&&(y||b),E=!!(null==(r=f._markers)?void 0:r.keepPopupsDuringTourTransitions),$=()=>M(jt(R)-1),A=()=>M(jt(R)+1),S=()=>d.enabled.set(!0);let I;function M(t){var e,i,r,n;if(!("steps"in l())||!l().stepInfo)return;const s=l().stepInfo[t];if(s&&s.markerId==(null==(e=u.state.$marker)?void 0:e.id))return L(s);const o=null==(r=null==(i=l().stepInfo[jt(R)])?void 0:i.micrioImage)?void 0:r.state;o&&o.marker.set(void 0),null==(n=u.$current)||n.state.marker.set(void 0),E||u.state.popup.set(void 0),u.removeEventListener("marker-opened",S),w.set(void 0),s&&(I=setTimeout(P,200,s))}async function L(t){var e,i,r,n,s,o,a;let c=v,d=!1;if(g&&!t.gridView&&g.images.find((e=>e.id==t.micrioId))){const s=!!("steps"in l()&&l().stepInfo&&t)&&(null==(e=l().stepInfo)?void 0:e.indexOf(t))<jt(R),o=(null==(i=t.marker.data)?void 0:i.gridTourTransition)??(null==(n=null==(r=t.marker.data)?void 0:r._meta)?void 0:n.gridTourTransition),a=(null==o?void 0:o.startsWith("slide"))?"slide":"swipe";await Xt().then((()=>{const e=g.focus(c=g.images.find((e=>e.id==t.micrioId)),{view:t.startView,transition:o==a||o==`${a}-horiz`?s?`${a}-left`:`${a}-right`:o==`${a}-vert`?s?`${a}-up`:`${a}-down`:"behind"==o?s?"behind-left":"behind-right":o}).catch((()=>d=!0));return u.events.enabled.set(!1),e}))}else if((null==(s=u.$current)?void 0:s.id)!=t.micrioId){if(t.gridView&&(null==(a=null==(o=t.marker.data)?void 0:o._meta)?void 0:a.gridAction)&&g){t.micrioImage||(t.micrioImage=g.images.find((e=>e.id==t.micrioId))),c=t.micrioImage;const e=t.marker.data._meta.gridAction.split("|");g.action(e.shift(),e.join("|"))}else"steps"in l()&&l().stepInfo&&Y(R,l().stepInfo.indexOf(t),!0),c=u.open(t.micrioId,{gridView:t.gridView,startView:t.startView});await Xt()}else c=u.$current;return[c,d]}async function P(t){let e=v,i=!1;t.micrioId&&([e,i]=await L(t)),i||(t.micrioImage||(t.micrioImage=e),d.enabled.set(!1),e.state.marker.set(t.markerId),u.addEventListener("marker-opened",S,{once:!0}),await Xt(),d.dispatch("tour-step",l()))}function C(){h.tour.set(void 0)}function D(){d.dispatch("tour-ended",l()),l().closeOnFinish&&C()}let R=j(-1),z=j(!1);const O=v.camera.getView(),N=f._markers;"steps"in l()&&(l(l().prev=$,!0),l(l().next=A,!0),l(l().goto=M,!0),ee((()=>{l(l().currentStep=jt(R),!0)})));const F=Zi(!1);let V;function U(){F.set(!1),clearTimeout(V),V=setTimeout((()=>F.set(!0)),5e3)}F.subscribe((t=>d.dispatch("tour-minimize",t)));let B,q=j(void 0);function W(t){var e,i;if(!("steps"in l())||!jt(q))return;const r=l().steps,n=t.filter((t=>t.isIntersecting)).map((t=>t.target))[0];if(n)for(let s=0;s<jt(q).children.length;s++)if(jt(q).children[s]==n){const t=null==(e=p.markers)?void 0:e.find((t=>t.id==r[s].split(",")[0]));return void(t&&(null==(i=u.$current)||i.camera.flyToView(t.view).catch((()=>{}))))}}let X=[];Gi((()=>("steps"in l()&&Mr(v,l(),o(),v.$data).then((()=>function(t){var e;if(k||(null==(e=u.$current)?void 0:e.state.$marker)||void 0!==t.initialStep&&M(t.initialStep),k&&jt(q)){B=new IntersectionObserver(W,{root:jt(q),threshold:1});for(let t=0;t<jt(q).children.length;t++)B.observe(jt(q).children[t])}X.push(u.state.marker.subscribe((e=>{if(!e)return void Y(z,!1);const i="string"==typeof e?e:e.id,r=t.steps.findIndex((t=>t.startsWith(i)));if(r>=0&&t.stepInfo){const e=t.stepInfo[Y(R,r,!0)];e&&!e.micrioImage&&(e.micrioImage=u.canvases.find((t=>t.id==e.micrioId))??(null==g?void 0:g.images.find((t=>t.id==e.micrioId)))??u.$current)}Y(z,r<0)})))}(l()))),T||X.push(F.subscribe((t=>{var i;return null==(i=e.onminimize)?void 0:i.call(e,t)}))),c()||"steps"in l()&&!b||!1===l().minimize||(u.addEventListener("pointermove",U),u.addEventListener("touchstart",U),U()),x&&u.setAttribute("data-tour-active",""),()=>{var t,e;for(clearTimeout(V),clearTimeout(I);X.length;)null==(t=X.shift())||t();u.removeEventListener("pointermove",U),u.removeEventListener("touchstart",U),u.removeEventListener("marker-opened",S),x&&u.removeAttribute("data-tour-active"),S(),B&&B.disconnect();const i=u.state.$marker;if("steps"in l()&&l().stepInfo&&null!=l().currentStep){const t=l().stepInfo[l().currentStep];delete l().goto,delete l().next,delete l().prev,i&&(null==t?void 0:t.markerId)==i.id&&(null==(e=t.micrioImage)||e.state.marker.set(void 0),u.state.marker.set(void 0))}v.camera.aniDone=void 0,g||"steps"in l()&&l().keepLastStep||u.$current==v||u.open(v.id),Xt().then((()=>{d.dispatch("tour-stop",l()),"steps"in l()&&delete l().currentStep,!("steps"in l())&&(null==N?void 0:N.zoomOutAfterClose)&&!i&&O&&v.camera.flyToView(O,{speed:null==N?void 0:N.zoomOutAfterCloseSpeed,noTrueNorth:!0})}))}))),d.dispatch("tour-start",l());let G=j(0),H=j(!1),Z=J((()=>"steps"in l()?void 0:l())),K=J((()=>{var t,e;return jt(Z)?"audio"in l()?l().audio:null==(e=null==(t=jt(Z).i18n)?void 0:t[o()])?void 0:e.audio:void 0})),Q=J((()=>jt(K)?"fileUrl"in jt(K)?jt(K).fileUrl:jt(K).src:void 0));var tt=Ge(),et=ut(tt),it=t=>{var e=Ge(),i=ut(e),r=t=>{var e=Js(),i=ut(e);ri(i,21,(()=>l().steps.map((t=>p.markers&&p.markers.find((e=>e.id==t.split(",")[0]))))),ii,((t,e)=>{var i=Ge(),r=ut(i),n=t=>{Xs(t,{get marker(){return jt(e)}})};ei(r,(t=>{jt(e)&&t(n)})),Ye(t,i)})),qi(i,(t=>Y(q,t)),(()=>jt(q)));var r=dt(i,2),n=t=>{zn(t,{type:"close",get title(){return a().tourStop},className:"scroll-tour-end",onclick:C})};ei(r,(t=>{l().cannotClose||t(n)})),Ye(t,e)},s=(t,e)=>{var i=t=>{var e=to();let i;var r=ct(e),s=t=>{var e=Ge(),i=ut(e),r=t=>{Ks(t,{get tour(){return l()},onended:D})},n=t=>{var e=Qs(),i=ut(e);const r=J((()=>0==jt(R)));zn(i,{type:"arrow-left",get title(){return a().tourStepPrev},get disabled(){return jt(r)},onclick:$});var n=dt(i,2);zn(n,{noClick:!0,children:(t,e)=>{var i=je();se((()=>Ke(i,`${jt(R)+1} / ${l().steps.length??""}`))),Ye(t,i)},$$slots:{default:!0}});var s=dt(n,2);const o=J((()=>jt(R)==l().steps.length-1));zn(s,{type:"arrow-right",get title(){return a().tourStepNext},get disabled(){return jt(o)},onclick:A}),Ye(t,e)};ei(i,(t=>{b?t(r):t(n,!1)})),Ye(t,e)},o=t=>{Ms(t,{get tour(){return l()},get src(){return jt(Q)},fullscreen:u,controls:!0,autoplay:!0,onended:D,get paused(){return jt(H)},set paused(t){Y(H,t,!0)},get currentTime(){return jt(G)},set currentTime(t){Y(G,t,!0)}})};ei(r,(t=>{"steps"in l()?t(s):t(o,!1)}));var c=dt(r,2),d=t=>{zn(t,{type:"close",get title(){return a().close},onclick:C})};ei(c,(t=>{l().cannotClose||t(d)})),se((t=>i=fi(e,1,"micrio-tour",null,i,t)),[()=>({left:b,"serial-tour":b,"video-tour":y,"no-controls":T,minimized:!jt(H)&&(tr(F,"$minimized",n)||jt(z))})]),zi(1,e,(()=>Nr),(()=>({duration:200}))),Ye(t,e)},r=(t,e)=>{var i=t=>{Ms(t,{get tour(){return jt(Z)},get src(){return jt(Q)},autoplay:!0,onended:D,get currentTime(){return jt(G)},set currentTime(t){Y(G,t,!0)}})};ei(t,(t=>{jt(Z)&&t(i)}),e)};ei(t,(t=>{_?t(i):t(r,!1)}),e)};ei(i,(t=>{k&&"steps"in l()?t(r):t(s,!1)})),Ye(t,e)},rt=(t,e)=>{var i=t=>{Ms(t,{get tour(){return jt(Z)},get src(){return jt(Q)},autoplay:!0,onended:D,get currentTime(){return jt(G)},set currentTime(t){Y(G,t,!0)}})};ei(t,(t=>{jt(Z)&&t(i)}),e)};ei(et,(t=>{c()?t(rt,!1):t(it)})),Ye(t,tt),_e(),s()}class io{constructor(t,e,i,r={}){this.micrio=t,this.length=e,this.goto=i,this.opts=r,this.hitTresh=!1,this.snapTo=[],this.pointers=new Map,this.isFullWidth=!1,this.startedWithShift=!1,this.isDragging=()=>2==this.pointers.size||(this.isFullWidth||this.startedWithShift)&&1==this.pointers.size,r.sensitivity||(r.sensitivity=Number(t.getAttribute("data-swipe-sensitivity")??1));const n=t.getAttribute("data-swipe-snap");n&&(this.snapTo=n.split(",").map(Number)),this.micrio.setAttribute("data-hooked",""),this.dStart=this.dStart.bind(this),this.dMove=this.dMove.bind(this),this.dStop=this.dStop.bind(this),this.mouseleave=this.mouseleave.bind(this),this.image=t.$current,this.image.state.view.subscribe((t=>this.isFullWidth=r.coverLimit?this.image.camera.isZoomedOut():!t||Math.round(1e3*(t[2]-t[0]))/1e3>=1));const s=t.wasm.getPtr();t.wasm.e.setNoPinchPan(s,!0),t.wasm.e.setIsSwipe(s,!0),this.micrio.canvas.element.addEventListener("pointerdown",this.dStart)}get currentIndex(){return this.micrio.wasm.e._getActiveImageIdx(this.image.ptr)}destroy(){this.micrio.canvas.element.removeEventListener("pointerdown",this.dStart),this.mouseleave()}dStart(t){this.startedWithShift=t.shiftKey;const e=!this.isDragging();this.pointers.set(t.pointerId,!0),this.pointers.size>2&&this.mouseleave(),e&&(this.hitTresh=!1,this.micrio.setAttribute("data-panning",""),this.startIndex=this.currentIndex,this.startX=t.clientX,this.firstTouchId=t.pointerId,this.micrio.addEventListener("pointermove",this.dMove),this.micrio.addEventListener("pointerup",this.dStop),this.micrio.setPointerCapture(t.pointerId))}dMove(t){if(!this.isDragging()||t.pointerId!=this.firstTouchId||void 0===this.startX||void 0===this.startIndex)return;if(!this.hitTresh&&void 0!==this.startX&&(this.hitTresh=2!=this.pointers.size||Math.abs(t.clientX-this.startX)>(this.micrio.events.pinchFactor&&this.micrio.events.pinchFactor>1.25?.3:.15)*this.micrio.offsetWidth)&&(this.startX=t.clientX),!this.hitTresh)return;const e=this.micrio.$current.camera,i=this.opts.continuous?Math.max(.1,(e.getXY(1,.5)[0]-e.getXY(0,.5)[0])/this.micrio.offsetWidth):1,r=Math.round((t.clientX-this.startX)/(this.micrio.offsetWidth*i)*this.length*(this.opts.sensitivity??1));let n=this.startIndex-r;if(this.opts.continuous){for(;n<0;)n+=this.length;for(;n>this.length-1;)n-=this.length}n=Math.max(0,Math.min(this.length-1,n)),n!=this.currentIndex&&this.goto(n)}dStop(t){this.pointers.delete(t.pointerId),t.pointerId==this.firstTouchId&&(this.micrio.releasePointerCapture(this.firstTouchId),this.firstTouchId=void 0),this.pointers.size||this.swipeEnd()}mouseleave(){this.pointers.clear(),this.swipeEnd()}swipeEnd(){if(this.micrio.removeAttribute("data-panning"),this.micrio.removeEventListener("pointermove",this.dMove),this.micrio.removeEventListener("pointerup",this.dStop),this.hitTresh=!1,this.snapTo.length){const t=this.snapTo[this.snapTo.map(((t,e)=>[e,Math.abs(t-this.currentIndex)])).sort(((t,e)=>t[1]>e[1]?1:t[1]<e[1]?-1:0))[0][0]];t!=this.currentIndex&&this.animateTo(t)}}animateTo(t){this.raf&&cancelAnimationFrame(this.raf);const e=performance.now(),i=this.currentIndex,r=i-t,n=t=>{const s=Math.min(1,(t-e)/250);s<1&&(this.raf=requestAnimationFrame(n));const o=i-Math.round(this.micrio.wasm.e.ease(s)*r);o!=this.currentIndex&&this.goto(o)};this.raf=requestAnimationFrame(n)}}var ro=We('<span class="micrio-dial"> </span>'),no=We('<div data-scroll-through="" class="micrio-dial"><!></div>');function so(t,e,i,r){jt(e)||Y(i,r(t)[1],!0)}var oo=We("<button>✥</button>"),ao=We('<li><button class="bullet micrio-gallery">•</button></li>'),lo=We('<div><!> <ul class="micrio-gallery"><!> <button aria-label="drag handle"></button></ul> <!></div>');function co(t,e){var i,r,n,s,o,a;Te(e,!0);const[l,c]=ir(),u=()=>tr(_,"$settings",l),d=()=>tr(T,"$layer",l),h=()=>tr(Xr,"$i18n",l);let m=or(e,"images",19,(()=>[])),v=or(e,"omni",3,null);const p=ye("micrio"),{wasm:f,current:g,events:w,_lang:b}=p,y=tr(g,"$current",l),k=y.$info,T=y.state.layer,_=y.settings,x=y.camera;if(v())for(let j=0;j<v().frames;j++)m().push({id:k.id+"/"+j,image:y,visible:Zi(!1),frame:j,opts:{area:[0,0,1,1]},ptr:-1,baseTileIdx:-1,thumbSrc:y.getTileSrc(y.levels,0,0,j)});const E=u().gallery,$="omni"==E.type,A=$||"swipe-full"==E.type,S=A||"switch"==E.type,I=$,M=!!E.isSpreads,L=E.coverPages??0,P=u().omni,C=$&&!!(null==P?void 0:P.twoAxes),D=E.startId||p.getAttribute("data-gallery-start-id"),R=E.archive,z=!!u().limitToCoverScale,O=!!u().noUI,N=(null==P?void 0:P.frontIndex)??0,F=(null==(i=null==P?void 0:P.layers)?void 0:i.length)??1,V=p.hasAttribute("data-gallery-start")?Number(p.getAttribute("data-gallery-start")):null==(n=null==(r=u())?void 0:r.omni)?void 0:n.startIndex;let U=null==V||isNaN(V)?D?m().findIndex((t=>t.id==D)):0:V;U<0&&(U=0);const B=[],q=[];if(m())for(let j=0;j<m().length;j++){let t=null==(s=m()[j].opts)?void 0:s.area;if(!t)continue;const e=t.slice(0);if(q.push([j]),M&&j-L>=0&&(j-L)%2==0&&m()[j+1]){if(t=null==(o=m()[++j].opts)?void 0:o.area,!t)continue;q[q.length-1].push(j),e[2]=t[2],e[3]=t[3]}B.push(e)}const W=B.length/F,X=(null==(a=null==P?void 0:P.layers)?void 0:a.map((t=>({i18n:Object.fromEntries(Object.entries(t.i18n).map((([t,e],i)=>[t,{title:e??"Layer "+(i+1)}])))}))))??[];Object.keys(k.revision??{[(()=>tr(b,"$_lang",l))()]:0}).forEach((t=>X.forEach(((e,i)=>{e.i18n[t]||(e.i18n[t]={title:"Layer "+(i+1)})}))));let G=j(-1),H=S,Z=j(!0),K=j(!1),Q=j(!0),tt=!1,et=j(0);function rt(t,e=!1,i=150,r=!1){if(I){for(;t<0;)t+=W;t%=W}const n=t=Math.round(Math.max(0,Math.min(W-1,t))),s=r||n!=jt(G);if(Y(G,n,!0),s&&nt(),S)s&&(f.setActiveImage(y.ptr,q[jt(G)][0],q[jt(G)].length-1),$?f.render():(x.flyToView(B[jt(G)],{duration:i,speed:2}).then((()=>ht(B[jt(G)],!0))).catch((()=>{})),Ut()));else{const r=x.getView(),n=B[t],o=tt&&(H&&!jt(K)||s||r[0]<n[0]!=r[2]>n[2]);Y(K,!1),o?x.flyToView(n,{duration:i,speed:1,progress:e?.5:0}).then((()=>ht(n,!0))).catch((()=>{})):(n&&0==i&&x.setView(n),ht(n,!0))}y.album.hooked=tt=!0}function nt(t){if(Ft&&t){if(Ft.currentIndex==jt(G))return;Y(G,Ft.currentIndex,!0)}lt(jt(G)),w.dispatch("gallery-show",jt(G)),$&&Y(et,(jt(G)-N)/W*360)}const st="requestIdleCallback"in self?$?Math.max(36,2*Math.floor(m().length/8)):100:50,ot=new Map,at=self.requestIdleCallback??self.requestAnimationFrame;function lt(t){const e=[];X.length&&(t+=d()*Math.floor(m().length/X.length)),M&&t>=L&&(t=2*t-L);const i=Math.floor(t/Pt);for(let r=-st;r<=st;r++)if(r){let n=t+r;if(C){const t=Math.floor(n/Pt);t<i&&(n+=Pt),t>i&&(n-=Pt)}if(I){for(;n<0;)n+=m().length;for(;n>=m().length;)n-=m().length}e.push(n)}if(C)for(let r=-st;r<=st;r++)r&&e.push(t+r*Pt);e.filter(((t,i)=>t>=0&&t<m().length&&e.indexOf(t)==i)).map((t=>m()[t])).filter((t=>!!t&&!ot.has(t.id))).forEach((t=>ot.set(t.id,at((()=>f.getTexture(t.baseTileIdx,t.thumbSrc,!1,{force:!!R}))))))}function ht(t,e){H=x.isZoomedOut(),x.setLimit(!e&&H?[-1,t[1],2,t[3]]:t)}function mt(t){var e;const i=null==(e=jt(pt))?void 0:e.childNodes[t];return i?-2+i.offsetLeft+i.offsetWidth/2:0}let vt,pt=j(void 0),ft=j(0),gt=J((()=>!jt(pt)||jt(Z)?jt(ft):mt(jt(G)))),wt=!1;function bt(t){t.preventDefault(),t.stopPropagation(),jt(Z)||(wt="button"in t)&&0!=t.button||!jt(pt)||(vt=jt(pt).getClientRects()[0],p.keepRendering=Y(Z,!0),Y(xt,-1),window.addEventListener(wt?"pointermove":"touchmove",kt),window.addEventListener(wt?"pointerup":"touchend",Et),kt(t))}function yt(t){const e=vt??jt(pt).getClientRects()[0],i="button"in t?t.clientX:t.touches[0].clientX,r=Math.min(1,Math.max(0,(i-e.left-14)/(e.width-32)));return[r,Math.max(0,Math.min(W-1,Math.floor(r*W)))]}function kt(t){const[e,i]=yt(t);Y(ft,16+e*(vt.width-32)),i!=jt(G)&&rt(i,!0)}let Tt,_t,xt=j(-1);function Et(){window.removeEventListener(wt?"pointermove":"touchmove",kt),window.removeEventListener(wt?"pointerup":"touchend",Et),Y(Z,p.keepRendering=!1,!0),rt(jt(G))}function $t(){H&&(_t=Tt=jt(G),Y(K,H,!0),ht(B[jt(G)],!1))}function At(t){const e=t.detail;"panend"!=t.type||e?rt(_t!=jt(G)?_t:jt(G)+(Tt==jt(G)&&jt(K)&&e?Math.round(Math.min(1,Math.max(-1,-e.movedX/e.duration))):0)):Y(K,!1)}function St(t){if(!t)return;const e=t[0]+(t[2]-t[0])/2,i=B.map(((i,r)=>(1-Math.min(Math.abs(e-i[0]),Math.abs(e-i[2])))*Math.max(0,(Math.min(t[2],i[2])-Math.max(t[0],i[0]))/(i[2]-i[0]))*(1-.1*Math.abs(jt(G)-r))));f.setFocus(y.ptr,B[_t=i.every((t=>!t))?jt(G):i.indexOf(Math.max(...i))],jt(K)),H=x.isZoomedOut()}let It=0,Mt=[0,0,0,0];function Lt(t){t.stopPropagation(),t.preventDefault(),0==t.button&&(Y(Z,!0),Mt=[t.clientX,t.clientY,jt(G),It],window.addEventListener("pointermove",Dt),window.addEventListener("pointerup",Rt))}const Pt=m().length,Ct=1;function Dt(t){It=Math.max(0,Math.min(Ct-1,Mt[3]+Math.round((Mt[1]-t.clientY)/360*Ct)));let e=(Mt[2]+Math.round((Mt[0]-t.clientX)/360*Pt))%Pt;for(;e<0;)e+=Pt;rt(It*Pt+e)}function Rt(){removeEventListener("pointermove",Dt),removeEventListener("pointerup",Rt),Y(Z,!1)}let zt=-1;const Ot=()=>{X.length&&y.data.update((t=>{t||(t={}),t.pages||(t.pages=[]);const e={id:"_omni-layers",i18n:X[d()].i18n,icon:Qr,children:X.map(((t,e)=>({id:"omni-layer-"+e,i18n:t.i18n,action:()=>{T.set(e),lt(jt(G))}}))).filter((t=>t.id!="omni-layer-"+d()))};return zt>=0&&zt<t.pages.length?t.pages.splice(zt,1,e):t.pages.push(e),zt=t.pages.length-1,t}))};let Nt,Ft,Vt=p.state.ui.hidden;function Ut(){Vt.set(!1),clearTimeout(Nt),Nt=setTimeout((()=>Vt.set(!0)),2e3)}y.album={numPages:B.length,get currentIndex(){return jt(G)},info:y.$settings.album,prev:()=>rt(jt(G)-1),next:()=>rt(jt(G)+1),goto:rt},Gi((()=>{Promise.all(m().map((t=>("state"in t&&!("image"in t)&&(t.camera=y.camera),f.addEmbed(t,y,{opacity:0,asImage:"camera"in t}))))).then((()=>{f.setActiveImage(y.ptr,U),rt(U,!1,0),Y(Z,!1)})),$&&F>1&&Ot(),Y(Q,!1),p.goto=rt;const t=[],e=[];return $&&t.push(y.state.layer.subscribe(Ot)),A&&(Ft=y.swiper=new io(p,W,rt,{continuous:I,coverLimit:z})),e.push((()=>{p.canvas.element.removeEventListener("pointermove",Ut),p.canvas.element.removeEventListener("pointerdown",Ut)})),$||C||A||(p.canvas.element.addEventListener("pointermove",Ut),p.canvas.element.addEventListener("pointerdown",Ut),Ut()),S&&t.push(y.state.view.subscribe((()=>{H=x.isZoomedOut()}))),S||A||m().length<=1||(C||Y(ft,mt(U),!0),t.push(y.state.view.subscribe(St)),p.addEventListener("panstart",$t),p.addEventListener("panend",At),p.addEventListener("pinchend",At),e.push((()=>{p.removeEventListener("panstart",$t),p.removeEventListener("panend",At),p.removeEventListener("pinchend",At)}))),$&&p.addEventListener("move",nt),()=>{var i,r;for(Ft&&Ft.destroy();t.length;)null==(i=t.shift())||i();for(;e.length;)null==(r=e.shift())||r();$&&p.removeEventListener("move",nt)}}));var Bt=Ge();Fe("keydown",it,(function(t){var e;if(!(null==(e=u().omni)?void 0:e.noKeys)){switch(t.key){case"PageUp":case"ArrowLeft":rt(jt(G)-($?-1:1),!0);break;case"PageDown":case"ArrowRight":rt(jt(G)+($?-1:1),!0);break;case"ArrowUp":C&&rt(jt(G)+Pt);break;case"ArrowDown":C&&rt(jt(G)-Pt);break;case"Home":rt(0);break;case"End":rt(W);break;default:return}Ut()}}));var qt=ut(Bt),Wt=t=>{var e=Ge(),i=ut(e),r=t=>{var e=oo();let i;se((t=>i=fi(e,1,"angular micrio-gallery",null,i,t)),[()=>({dragging:jt(Z)})]),Fe("pointerdown",e,Lt,!0),Ye(t,e)},n=(t,e)=>{var i=t=>{const e=J((()=>{var t;return null==(t=u().omni)?void 0:t.showDegrees}));!function(t,e){Te(e,!0);const i=ye("micrio"),r=i.$current.camera;let n,s=j(void 0),o=0,a=0;function l(t){var n;const l=Math.max(1,(r.getXY(1,.5)[0]-r.getXY(0,.5)[0])/i.offsetWidth),c=(a/360+(o-t.clientX)/(jt(s).offsetWidth*l))*e.frames;null==(n=e.onturn)||n.call(e,c)}function c(){n&&i.releasePointerCapture(n),i.removeAttribute("data-panning"),i.removeEventListener("pointermove",l),i.removeEventListener("pointerup",c)}let u=J((()=>{var t;return-e.currentRotation/360*((null==(t=jt(s))?void 0:t.offsetWidth)??0)}));var d=no(),h=ct(d),m=t=>{var i=ro(),r=ct(i);se((t=>Ke(r,`${t??""}º`)),[()=>Math.round(10*e.currentRotation)/10]),Ye(t,i)};ei(h,(t=>{e.degrees&&t(m)})),qi(d,(t=>Y(s,t)),(()=>jt(s))),se((()=>wi(d,`--micrio-dial-offset:${jt(u)??""}px;`))),Fe("pointerdown",d,(function(t){t.stopPropagation(),t.preventDefault(),0==t.button&&(i.addEventListener("pointermove",l),i.addEventListener("pointerup",c),i.setAttribute("data-panning",""),i.setPointerCapture(n=t.pointerId),a=e.currentRotation,o=t.clientX)}),!0),Ye(t,d),_e()}(t,{get currentRotation(){return jt(et)},frames:W,get degrees(){return jt(e)},onturn:t=>rt(t)})},r=(t,e)=>{var i=t=>{var e=lo();let i;var r=ct(e);const n=J((()=>0==jt(G)));zn(r,{type:"arrow-left",get title(){return h().galleryPrev},className:"gallery-btn",onpointerdown:()=>rt(jt(G)-1),get disabled(){return jt(n)}});var s=dt(r,2);s.__pointermove=[so,Z,xt,yt];var o=ct(s);ri(o,17,(()=>B),ii,((t,e,i)=>{var r=ao();let n;var s=ct(r);s.__click=()=>rt(i,!0),se((t=>n=fi(r,1,"micrio-gallery",null,n,t)),[()=>({active:i==jt(G),hover:i==jt(xt)})]),Fe("keypress",s,(t=>{"Enter"===t.key&&rt(i,!0)})),Ye(t,r)}));var a=dt(o,2);let c;qi(s,(t=>Y(pt,t)),(()=>jt(pt)));var u=dt(s,2);const d=J((()=>jt(G)==m().length-1));zn(u,{type:"arrow-right",get title(){return h().galleryNext},className:"gallery-btn",onpointerdown:()=>rt(jt(G)+1),get disabled(){return jt(d)}}),se(((t,r)=>{i=fi(e,1,"micrio-gallery",null,i,t),wi(a,`left: ${jt(gt)}px`),c=fi(a,1,"micrio-gallery",null,c,r)}),[()=>({hidden:jt(Q)||tr(Vt,"$hidden",l)&&!jt(Z)&&!jt(K)}),()=>({dragging:jt(Z)})]),Fe("pointerleave",s,(()=>Y(xt,-1))),Fe("pointerdown",a,bt,!0),Fe("touchstart",a,bt,!0,!0),Ye(t,e)};ei(t,(t=>{!A&&m().length>1&&t(i)}),e)};ei(t,(t=>{P&&!P.noDial&&$?t(i):t(r,!1)}),e)};ei(i,(t=>{C?t(r):t(n,!1)})),Ye(t,e)};ei(qt,(t=>{O||t(Wt)})),Ye(t,Bt),_e(),c()}let uo;Ve(["pointermove","click"]);const ho={},mo=Zi();let vo,po;const fo=Zi(!1);function go(t,e,i){po&&(po.setPosition?po.setPosition(t,e,i):"positionX"in po&&(po.positionX.value=t,po.positionY.value=e,po.positionZ.value=i))}function wo(t,e,i){po&&(po.setOrientation?po.setOrientation(t,e,i,0,1,0):"forwardX"in po&&(po.forwardX.value=t,po.forwardY.value=e,po.forwardZ.value=i))}function bo(t,e){Te(e,!0);const[i,r]=ir();let n=or(e,"volume",3,1);const{events:s,current:o}=ye("micrio"),a=tr(o,"$current",i),l=a.$info,c=l.height/l.width,u="AudioContext"in window||"webkitAudioContext"in window;const d=()=>fo.set(!0),h=new Audio("data:audio/mpeg;base64,/+MYxAAAAANIAUAAAASEEB/jwOFM/0MM/90b/+RhST//w4NFwOjf///PZu////9lns5GFDv//l9GlUIEEIAAAgIg8Ir/JGq3/+MYxDsLIj5QMYcoAP0dv9HIjUcH//yYSg+CIbkGP//8w0bLVjUP///3Z0x5QCAv/yLjwtGKTEFNRTMuOTeqqqqqqqqqqqqq/+MYxEkNmdJkUYc4AKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq");h.volume=mr.iOS?0:1e-4,u&&Gi((()=>{let t,i;return i=fo.subscribe((r=>{var o;r&&(vo||(!function(t){if(!uo){if(vo||(vo="micrioAudioContext"in window?window.micrioAudioContext:"AudioContext"in window?new window.AudioContext:"webkitAudioContext"in window?new window.webkitAudioContext:null),!vo)return console.warn("[Micrio] Your browser does not support the Web Audio API");uo=vo.createGain(),uo.connect(vo.destination),uo.gain.value=t,mo.set(vo),po=vo.listener,"upX"in po&&(po.upX.value=0,po.upY.value=1,po.upZ.value=0)}}(n()),s.dispatch("audio-init")),vo&&(null==(o=e.data.markers)?void 0:o.filter((t=>!!t.positionalAudio)).length)&&(t=a.state.view.subscribe((t=>{if(!t)return;const i=t[2]-t[0],r=t[3]-t[1],n=Math.max(0,1.05-a.camera.getScale());!function(t,i,r){if(e.is360){t*=2*-Math.PI,i-=.5,i*=-Math.PI;const e=10*(1-r),n=Math.cos(i)*Math.sin(t)*e,s=Math.sin(i)*e,o=Math.cos(i)*Math.cos(t)*e;go(n,s,o);let a=n*n+s*s+o*o;a>0&&(a=1/Math.sqrt(a)),wo(n*a,s*a,o*a)}else go(2*(t-.5),2*(.5-i)*c,r),wo(0,0,-1)}(t[0]+i/2,t[1]+r/2,n*(e.is360?1:1.5))}))),i&&(i(),i=null))})),vo||h.play().then(d).catch((()=>{s.dispatch("autoplay-blocked"),addEventListener("pointerup",d,{once:!0})})),()=>{t&&t(),i&&i(),removeEventListener("pointerup",d)}})),ee((()=>{uo&&(uo.gain.value=n())}));var m=Ge(),v=ut(m),p=t=>{const i=J((()=>n()*(e.data.music.volume??1)));!function(t,e){Te(e,!0);let i=or(e,"loop",3,!0),r=or(e,"volume",3,1);const n=B(new Audio);n.preload="none",n.loop=!1,n.onended=o;let s=-1;function o(){if(!i()&&s+1==e.list.length)return;const t=e.list[++s%e.list.length];n.src="fileUrl"in t?t.fileUrl:t.src,n.play()}Gi((()=>(o(),()=>n.pause()))),ee((()=>{n.volume=r()})),_e()}(0,{get list(){return e.data.music.items},get loop(){return e.data.music.loop},get volume(){return jt(i)}})};ei(v,(t=>{var r;tr(fo,"$interacted",i)&&tr(mo,"$ctx",i)&&(null==(r=e.data.music)?void 0:r.items.length)&&t(p)})),Ye(t,m),_e(),r()}var yo=We('<cite class="micrio-details"> </cite>'),ko=We('<small class="micrio-details"> </small>'),To=We('<summary class="micrio-details"><!> <!></summary>'),_o=We('<p class="micrio-details"><a rel="noopener noreferrer" target="_blank"> </a></p>'),xo=We("<details><!> <!> <!> <!></details>");function Eo(t,e){Te(e,!0);const[i,r]=ir(),n=()=>tr(a,"$current",i),s=()=>tr(e.data,"$data",i),{_lang:o,current:a}=ye("micrio");let l=j(!1);function c(t){let e="cm";return t>=1e5?(e="km",t/=1e5):t>=100?(e="m",t/=100):t<1e-6?(e="nm",t*=1e7):t<.001?(e="µm",t*=1e4):t<1&&(e="mm",t*=10),t.toFixed(2)+" "+e}let u=J((()=>{var t;return null==(t=n())?void 0:t.$settings.cmWidth})),d=J((()=>{var t;return null==(t=n())?void 0:t.$settings.cmHeight})),h=J((()=>{var t;return s()?(null==(t=s())?void 0:t.i18n)?s().i18n[tr(o,"$_lang",i)]:s():void 0})),m=J((()=>{var t,r;return(null==(t=jt(h))?void 0:t.title)??(null==(r=tr(e.info,"$info",i))?void 0:r.title)??""})),v=J((()=>{var t;return null==(t=jt(h))?void 0:t.description})),p=J((()=>{var t;return null==(t=jt(h))?void 0:t.sourceUrl})),f=J((()=>{var t;return null==(t=jt(h))?void 0:t.copyright})),g=J((()=>jt(u)&&jt(d)?c(jt(u))+" x "+c(jt(d)):null)),w=j(void 0);Gi((()=>{jt(w).ontoggle=()=>{Y(l,jt(w).open,!0)}}));var b=Ge(),y=ut(b),k=t=>{var e=xo();let r;var n=ct(e),s=t=>{var e=To(),i=ct(e),r=t=>{var e=yo(),i=ct(e);se((()=>Ke(i,jt(m)))),Ye(t,e)};ei(i,(t=>{jt(m)&&t(r)}));var n=dt(i,2),s=t=>{var e=ko(),i=ct(e);se((()=>Ke(i,jt(g)))),Ye(t,e)};ei(n,(t=>{jt(g)&&t(s)})),Ye(t,e)};ei(n,(t=>{(jt(m)||jt(g))&&t(s)}));var o=dt(n,2),a=t=>{var e=Ge();li(ut(e),(()=>jt(v))),Ye(t,e)};ei(o,(t=>{jt(v)&&t(a)}));var c=dt(o,2),u=t=>{var e=_o(),i=ct(e),r=ct(i);se((()=>{xi(i,"href",jt(p)),Ke(r,jt(f)||jt(p))})),Ye(t,e)};ei(c,(t=>{jt(p)&&t(u)}));var d=dt(c,2),h=t=>{zn(t,{type:"close",get title(){return tr(Xr,"$i18n",i).close},onclick:()=>jt(w).open=!1})};ei(d,(t=>{jt(l)&&t(h)})),qi(e,(t=>Y(w,t)),(()=>jt(w))),se((t=>r=fi(e,1,"micrio-details",null,r,t)),[()=>({opened:jt(l)})]),zi(3,e,(()=>Nr),(()=>({duration:200}))),Ye(t,e)};ei(y,(t=>{(jt(m)||jt(v)||jt(p))&&t(k)})),Ye(t,b),_e(),r()}var $o=We('<div class="micrio-error"><!> </div>');var Ao=We("<figcaption><!></figcaption>"),So=We("<figure><micr-io></micr-io> <!></figure>",2);function Io(t,e){Te(e,!0);const[i,r]=ir(),n=()=>tr(l,"$current",i);let s=or(e,"startId",3,void 0);const o=ye("micrio"),{_lang:a,current:l}=o;let c=j(0);let u=J((()=>e.gallery[jt(c)])),d=J((()=>{var t,e,r;return(null==(r=null==(e=null==(t=jt(u))?void 0:t.i18n)?void 0:e[tr(a,"$_lang",i)])?void 0:r.description)??void 0}));var h=So(),m=ct(h);se((()=>Ei(m,"data-gallery",e.gallery.map((t=>{var e,i;return`${t.micrioId},${t.width},${t.height},${t.isDeepZoom?"d":""}${t.isWebP?",w":t.isPng||!(null==(e=n())?void 0:e.isV5)&&(null==(i=t.src)?void 0:i.endsWith(".png"))?",p":""}`})).join(";")))),se((()=>Ei(m,"data-start",s()))),se((()=>Ei(m,"data-path",n()&&n().$info&&n().$info.path))),Ei(m,"data-logo","false"),fi(m,1,"micrio-micrio-gallery");var v=dt(m,2),p=t=>{var e=Ao();li(ct(e),(()=>jt(d))),Ye(t,e)};ei(v,(t=>{jt(d)&&t(p)})),Fe("gallery-show",m,(t=>{Y(c,t.detail,!0)})),Ye(t,h),_e(),r()}var Mo=We("<!> <!>",1),Lo=We("<aside><!> <!></aside>"),Po=We("<!> <!>",1),Co=We('<menu class="micrio-popover"></menu>'),Do=We('<h2 class="micrio-popover"> </h2>'),Ro=We('<img alt="">'),zo=We("<!> <!> <!> <!>",1),Oo=We('<menu class="right micrio-popover"></menu>'),No=We("<!> <!> <!>",1),Fo=We("<dialog><!> <!></dialog>");function Vo(t,e){var i;Te(e,!0);const[r,n]=ir(),s=()=>tr(d,"$current",r),o=()=>tr(h,"$_lang",r),a=()=>tr(Xr,"$i18n",r),l=B(ye("micrio")),{events:c,state:u,current:d,_lang:h}=l,m=null==(i=s())?void 0:i.$data,v=Object.keys((null==m?void 0:m.revision)??{[o()]:0});function p(){var t;null==(t=jt(b))||t.close()}const f=Zi(!1);let g=j(!0),w=o(),b=j(void 0);Gi((()=>{jt(b).showModal(),Xt().then((()=>{const t=jt(b).querySelector("button.active")??jt(b).querySelector("button");null==t||t.focus()}));const t=h.subscribe((t=>{t&&t!=w&&(Y(g,!1),w=t,setTimeout((()=>Y(g,!0)),200))}));return()=>{t()}}));let y=J((()=>e.popover.marker)),k=J((()=>jt(y)?jt(y).i18n?jt(y).i18n[o()]:jt(y):void 0)),T=J((()=>e.popover.markerTour)),_=J((()=>e.popover.contentPage)),x=J((()=>{var t;return jt(_)?(null==(t=jt(_).i18n)?void 0:t[o()])??jt(_):void 0})),E=J((()=>{var t,e;return jt(_)&&jt(x)&&!(null==(e=null==(t=jt(_))?void 0:t.buttons)?void 0:e.length)?!(!jt(x).embed||jt(x).content&&!(jt(x).content.length<250)||jt(_).image):void 0})),$=J((()=>{var t;return(null==(t=jt(_))?void 0:t.image)?"string"==typeof jt(_).image?jt(_).image:jt(_).image.src:void 0})),A=J((()=>{var t;return!!(null==(t=jt(x))?void 0:t.embed)||!!jt($)})),S=J((()=>{var t,e;return!!(null==(e=null==(t=jt(_))?void 0:t.buttons)?void 0:e.find((t=>"close"==t.type)))})),I=J((()=>{var t;return!!(null==(t=e.popover.marker)?void 0:t.images)&&e.popover.marker.images.length>0})),M=J((()=>!(!jt(k)||!jt(k).body)||jt(I))),L=J((()=>{var t;return jt(k)&&jt(k).body||jt(I)&&(null==(t=jt(x))?void 0:t.embed)})),P=J((()=>!jt(S)||jt(T)&&null!=jt(T).currentStep));var C=Fo();let D;var R=ct(C),z=t=>{var e=Lo();let i;var r=ct(e),n=t=>{zn(t,{type:"close",get title(){return a().close},className:"close-popover",onclick:p})};ei(r,(t=>{jt(S)||t(n)}));var s=dt(r,2),o=t=>{var e=Mo(),i=ut(e),r=t=>{zn(t,{type:"arrow-left",get title(){return a().tourStepPrev},className:"prev-tour-step",onclick:()=>jt(T)&&jt(T).prev&&jt(T).prev()})};ei(i,(t=>{jt(T).currentStep>0&&t(r)}));var n=dt(i,2),s=t=>{zn(t,{type:"arrow-right",get title(){return a().tourStepNext},className:"next-tour-step",onclick:()=>jt(T)&&jt(T).next&&jt(T).next()})};ei(n,(t=>{jt(T).currentStep<jt(T).steps.length-1&&t(s)})),Ye(t,e)};ei(s,(t=>{jt(T)&&null!=jt(T).currentStep&&t(o)})),se((t=>i=fi(e,1,"micrio-popover",null,i,t)),[()=>{var t;return{inside:jt(_)?!jt(E):!jt(M)&&!(null==(t=jt(k))?void 0:t.embedUrl)}}]),Ye(t,e)};ei(R,(t=>{jt(P)&&t(z)}));var O=dt(R,2),N=t=>{var e=Po(),i=ut(e),r=t=>{Ms(t,{get src(){return jt(k).embedUrl},get uuid(){return jt(y).id},get figcaption(){return jt(k).embedDescription},controls:!0,get autoplay(){return jt(y).embedAutoPlay}})},n=(t,e)=>{var i=t=>{Io(t,{get gallery(){return jt(y).images}})};ei(t,(t=>{jt(y).images&&jt(y).images.length&&t(i)}),e)};ei(i,(t=>{jt(k)&&jt(k).embedUrl?t(r):t(n,!1)}));var s=dt(i,2),o=t=>{const e=J((()=>!jt(k)||!jt(k).embedUrl));Vs(t,{get marker(){return jt(y)},noEmbed:!0,noGallery:!0,get noImages(){return jt(e)},onclose:p})};ei(s,(t=>{jt(L)&&t(o)})),Ye(t,e)},F=(t,i)=>{var r=t=>{Io(t,{get gallery(){return e.popover.gallery},get startId(){return e.popover.galleryStart}})},n=(t,e)=>{var i=t=>{var e=No(),i=ut(e),r=t=>{var e=Co();ri(e,21,(()=>v),ii,((t,e)=>{const i=J((()=>(null==Bn?void 0:Bn.of(jt(e)))??jt(e))),r=J((()=>jt(e)==o()));zn(t,{onclick:()=>l.lang=jt(e),get title(){return jt(i)},get active(){return jt(r)},children:(t,i)=>{var r=je();se((t=>Ke(r,t)),[()=>jt(e).toUpperCase()]),Ye(t,r)},$$slots:{default:!0}})})),Ye(t,e)};ei(i,(t=>{v.length>1&&t(r)}));var n=dt(i,2),a=t=>{var e=Ge(),i=ut(e),r=t=>{Ms(t,{get src(){return jt(x).embed},get figcaption(){return jt(x).content},controls:!0,autoplay:!0})};ei(i,(t=>{jt(g)&&t(r)})),Ye(t,e)},c=t=>{Cs(t,{children:(t,e)=>{var i=zo(),r=ut(i),n=t=>{var e=Do(),i=ct(e);se((()=>Ke(i,jt(x).title))),Ye(t,e)};ei(r,(t=>{jt(x).title&&t(n)}));var s=dt(r,2),o=t=>{Ms(t,{get src(){return jt(x).embed},controls:!0})};ei(s,(t=>{jt(x).embed&&jt(g)&&t(o)}));var a=dt(s,2),l=t=>{var e=Ro();se((()=>xi(e,"src",jt($)))),Ye(t,e)};ei(a,(t=>{jt($)&&t(l)}));var c=dt(a,2),u=t=>{var e=Ge();li(ut(e),(()=>jt(x).content)),Ye(t,e)};ei(c,(t=>{jt(x).content&&t(u)})),Ye(t,i)},$$slots:{default:!0}})};ei(n,(t=>{jt(E)?t(a):t(c,!1)}));var u=dt(n,2),d=t=>{var e=Oo();ri(e,21,(()=>jt(_).buttons),ii,((t,e)=>{const i=J((()=>"link"==jt(e).type?jt(e).action:void 0));zn(t,{get href(){return jt(i)},get blankTarget(){return jt(e).blankTarget},onclick:()=>function(t){p(),"close"!=t.type&&setTimeout((()=>{var e,i,r;switch(t.type){case"marker":null==(e=s())||e.state.marker.set(t.action);break;case"mtour":l.state.tour.set(null==(i=null==m?void 0:m.markerTours)?void 0:i.find((e=>e.id==t.action)));break;case"vtour":l.state.tour.set(null==(r=null==m?void 0:m.tours)?void 0:r.find((e=>e.id==t.action)))}}),200)}(jt(e)),children:(t,i)=>{var r=je();se((()=>Ke(r,jt(e).i18nTitle[o()]))),Ye(t,r)},$$slots:{default:!0}})})),Ye(t,e)};ei(u,(t=>{jt(_).buttons&&jt(_).buttons.length&&t(d)})),Ye(t,e)};ei(t,(t=>{jt(_)&&jt(x)&&t(i)}),e)};ei(t,(t=>{e.popover.gallery?t(r):t(n,!1)}),i)};ei(O,(t=>{jt(y)?t(N):t(F,!1)})),qi(C,(t=>Y(b,t)),(()=>jt(b))),se((t=>D=fi(C,1,"micrio-popover",null,D,t)),[()=>({page:!!jt(_),article:!!jt(_)&&!jt(E),"has-media":jt(A)})]),Fe("close",C,(function(){var t;e.popover.contentPage?c.dispatch("page-closed"):jt(T)?u.tour.set(void 0):e.popover.marker&&(null==(t=e.popover.image)||t.state.marker.set(void 0)),u.popover.set(void 0)})),Fe("outrostart",C,(()=>f.set(!0))),Ye(t,C),_e(),n()}function Uo(t,e){Te(e,!0);let i=J((()=>e.marker.positionalAudio));const r=e.ctx.createGain();r.connect(uo);const n=ye("micrio"),s=n.$current.$info,o=s.width,a=s.height,l=e.ctx.createPanner();l.panningModel="equalpower",l.rolloffFactor=1,l.coneOuterGain=0;function c(){if(r.gain.value=jt(i).volume??1,e.is360){l.refDistance=2.75*jt(i).radius,l.maxDistance=jt(i).radius*(11/3);const t=e.marker.x*-Math.PI*2,r=(e.marker.y-.5)*-Math.PI,n=l.positionX.value=Math.cos(r)*Math.sin(t)*11,s=l.positionY.value=11*Math.sin(r),o=l.positionZ.value=Math.cos(r)*Math.cos(t)*11;let a=n*n+s*s+o*o;a>0&&(a=1/Math.sqrt(a)),l.orientationX.value=n*a,l.orientationY.value=s*a,l.orientationZ.value=o*a}else l.distanceModel="linear",l.positionX.value=2*(e.marker.x-.5),l.positionY.value=2*(.5-e.marker.y)*(a/o),l.positionZ.value=-.2,l.rolloffFactor=2,l.refDistance=jt(i).radius*jt(i).radius*10,l.maxDistance=5*jt(i).radius}let u,d;function h(){u&&u.disconnect(),u=e.ctx.createBufferSource(),jt(i).loop&&(jt(i).repeatAfter>0?u.onended=()=>{d=setTimeout(h,1e3*jt(i).repeatAfter)}:u.loop=!0),r.gain.value=jt(i).volume??1,u.buffer=ho[jt(i).src],u.connect(l),u.start()}let m=j(B(JSON.stringify(e.marker.positionalAudio)));ee((()=>{const t=JSON.stringify(jt(i));jt(m)!=t&&Y(m,t,!0)&&c()})),Gi((()=>(c(),l.connect(r),async function(){jt(i).src&&(ho[jt(i).src]||(ho[jt(i).src]=await fetch(jt(i).src).then((t=>t.arrayBuffer())).then((t=>e.ctx.decodeAudioData(t)))),jt(i).alwaysPlay&&jt(i).repeatAfter>0?d=setTimeout(h,1e3*jt(i).repeatAfter):h())}(),n.addEventListener("audio-update",c),()=>{n.removeEventListener("audio-update",c),u&&u.disconnect(),clearTimeout(d),l.disconnect(),r.disconnect()}))),_e()}function Bo(t,e,i,r,n,s,o){var a,l;if(e(),i().onclick)return i().onclick(i());if(!r.noMarkerActions)if("cluster"==i().type){if(i().view&&(null==(a=n())?void 0:a.$info)){const t=n().camera.getScale(),e=[20/n().$info.width*t,20/n().$info.height*t];o().camera.flyToView([i().view[0]-e[0],i().view[1]-e[1],i().view[2]+e[0],i().view[3]+e[1]],{area:null==(l=o().opts)?void 0:l.area,limitZoom:!0})}}else o().state.marker.set(i())}function qo(t,e,i){const r=t.detail;e(e().x=r.x,!0),e(e().y=r.y,!0),i()}var Wo=We('<img alt="" class="micrio-marker">'),Xo=We('<label data-scroll-through=""> </label>'),jo=We('<button data-scroll-through="" class="micrio-marker"><!> <!></button>'),Go=We("<div><!></div>"),Yo=We("<!> <!>",1);function Ho(t,e){var i,r,n,s,o,a,l,c,u,d,h,m;Te(e,!0);const[v,p]=ir(),f=()=>tr(_,"$current",v),g=()=>tr(C,"$tour",v),w=()=>tr(P,"$currentPopup",v),b=()=>tr($,"$_lang",v),y=()=>tr(S,"$isMobile",v),k=()=>tr(mo,"$ctx",v),T=ye("micrio"),{current:_,events:x,state:E,_lang:$,spaceData:A}=T,S=T.canvas.isMobile,I=E.markerHoverId,M=ye("inView"),L=ye("markerImages"),P=T.state.popup,C=E.tour;let D=or(e,"marker",15),R=or(e,"image",31,(()=>B(f()))),z=or(e,"forceHidden",3,!1),O=or(e,"coords",3,void 0),N=or(e,"overlapped",3,!1);D().tags||D(D().tags=[],!0);const F=L.has(D().id);!F&&R()&&L.set(D().id,R());const V=!(!R().isOmni||!(null==(i=R().$settings.omni)?void 0:i.sideLabels)||(null==(r=R().$settings._markers)?void 0:r.noTitles)),U=t=>t.steps.findIndex((t=>t.startsWith(D().id)))>=0,q=D().data??{},W=q._meta||{},X=R().$settings.omni;D().imageLayer&&D().imageLayer>((null==(n=null==X?void 0:X.layers)?void 0:n.length)??1)-1&&delete D().imageLayer,(null==(a=null==(o=null==(s=f())?void 0:s.$data)?void 0:o.markers)?void 0:a.find((t=>{var e,i;return(null==(i=null==(e=t.data)?void 0:e._micrioSplitLink)?void 0:i.markerId)==D().id&&"none"!=t.popupType})))&&(D(D().popupType="none",!0),D(D().noMarker=!0,!0)),"embedUrl"in D()&&D().embedUrl&&"embedInPopover"in D()&&D().embedInPopover&&D(D().popupType="popover",!0);const G=R().$settings._markers??{},H=!!R().$settings.doTourJumps,Z=D().tags.join(" "),K="cluster"==D().type,Q=!!G.noTitles||!!(null==X?void 0:X.sideLabels),tt=!!q.scales||!!R().$settings.markersScale,et=tt&&!!G.titlesNoScale,it=q._micrioSplitLink,rt=!!G.keepPopupsDuringTourTransitions,nt=/[?&]micrioNoTooltips/.test(location.search)||!!(null==X?void 0:X.sideLabels),st=W.gridAction,ot=(null==(c=null==(l=R().$settings)?void 0:l._markers)?void 0:c.autoStartTour)?T.wasm.images.map((t=>{var e,i;return"camera"in t?null==(i=null==(e=t.$data)?void 0:e.markerTours)?void 0:i.find(U):void 0})).filter((t=>!!t))[0]??(null==(u=null==A?void 0:A.markerTours)?void 0:u.find(U)):void 0,at=null==ot?void 0:ot.steps.findIndex((t=>t.startsWith(D().id))),lt=!!(null==(h=null==(d=R().$settings)?void 0:d._markers)?void 0:h.autoStartTourAtBeginning);let ht=!F&&(!!q.alwaysOpen||E.$marker==D())||(null==(m=E.$tour)?void 0:m.id)==(null==ot?void 0:ot.id)&&(null==ot?void 0:ot.currentStep)==(at??0);const mt=F&&R().state.$marker==D();let vt,pt,ft,gt=j(B(mt)),wt=j(B(mt)),bt=j(!1),yt=j(""),kt=j(0),Tt=j(0),_t=j(1),xt=!1;function Et(){var t,e;G.noMarkerActions||(null==(e=null==(t=jt(zt))?void 0:t.parentNode)||e.scrollTo(0,0),$t(),ft=setTimeout((()=>{const t=R().camera.getXY(D().x,D().y);!jt(gt)&&(t[0]<0||t[0]>=T.offsetWidth||t[1]<0||t[1]>=T.offsetHeight||R().is360&&t[3]>4)&&R().camera.flyToCoo([D().x,D().y],{speed:2,limit:!0}).catch((()=>{}))}),150))}function $t(){clearTimeout(ft)}const At=()=>I.set(D().id),St=()=>I.set(void 0);let It;async function Mt(){var t,e,i,r,n;if(K)return;if(R().state.$marker!=D())return R().state.marker.set(D());if(G.noMarkerActions)return;if(ot&&ot.id!=(null==(t=g())?void 0:t.id)){ot.initialStep=lt?0:at;const t=null==(e=ot.stepInfo)?void 0:e[0];if(lt&&t&&t.micrioId!=R().id){const e=null==(i=T.canvases[0])?void 0:i.grid;(null==e?void 0:e.images.find((e=>e.id==t.micrioId)))?T.current.set(e.image):T.open(t.micrioId)}if(C.set(ot),setTimeout((()=>W.gridAction=st),100),lt&&null!=at&&at>0)return void R().state.marker.set(void 0);await Xt()}ht=!1,Y(wt,!0),x.dispatch("marker-opened",D());const s=g()&&"steps"in g()&&g().isSerialTour&&g().printChapters&&g().steps.findIndex((t=>t.startsWith(D().id)))>=0&&D().videoTour;var o;s||(jt(Bt)?"popover"==D().popupType?(await Xt(),T.state.popover.set({marker:D(),image:R(),markerTour:g()&&"steps"in g()?g():void 0})):D().videoTour&&!g()&&(C.set(D().videoTour),(o=C,new Promise((t=>{let e;e=o.subscribe((i=>{null==i&&(e?e():Xt().then((()=>e())),t(i))}))}))).then((()=>R().state.marker.set(void 0)))):Xt().then((()=>P.set(D()))));const a=null==(r=q.micrioLink)?void 0:r.id;if(a&&Xt().then((()=>{R().camera.stop();const t=Cr(T,a);t&&(R(R().openedView=void 0,!0),R().state.marker.set(void 0)),T.open(a,{vector:null==t?void 0:t.vector})})),it&&!xt&&!R().opts.secondaryTo){const t=null==(n=T.canvases[0])?void 0:n.grid;(null==t?void 0:t.lastPromise)&&await t.lastPromise,It=setTimeout((()=>{it&&(pt=T.open(it.micrioId,{splitScreen:!0,splitTo:R(),isPassive:!(!it.follows||T.state.$tour),startView:it.view}),xt=!0)}),200)}}let Lt,Pt,Ct=j(!1);function Dt(){var t,e,i,r,n,s;if(R().is360&&tt)Y(yt,R().camera.getMatrix(D().x,D().y,1,1,0,0,0).join(","),!0);else{let o=jt(kt),a=jt(Tt);if(s=R().camera.getXYDirect(D().x,D().y,{radius:D().radius,rotation:D().rotation}),Y(kt,s[0],!0),Y(Tt,s[1],!0),Y(_t,s[2],!0),vt=s[3],R().is360)Y(bt,vt>0);else if(R().isOmni&&X){if(null!=jt(Wt)[0]&&null!=jt(Wt)[1]&&null!=D().rotation){const i=X.frames/((null==(t=X.layers)?void 0:t.length)??1);let r=((null==(e=R().swiper)?void 0:e.currentIndex)??0)-(jt(qt)??0);r>i/2&&(r-=i),r<-i/2&&(r+=i),Y(bt,r<=jt(Wt)[0]||r>=jt(Wt)[1],!0)}else X.distance&&Y(bt,vt<0);X.sideLabels&&!G.noTitles&&(null==(i=jt(Ft))?void 0:i.title)&&M&&(o!=jt(kt)||a!=jt(Tt))&&function(t,e){const i=T.canvas.element.offsetWidth,r=T.canvas.element.offsetHeight,n=!(t<0||t>i||e<0||e>r||jt(bt));(n||jt(Ct))&&M.update((r=>{const s=r.findIndex((([t])=>t==D()));return n?s>=0?r[s]=[D(),t/i,e]:r.push([D(),t/i,e]):s>=0&&r.splice(s,1),Y(Ct,n,!0),r}))}(jt(kt),jt(Tt))}R().$settings.clusterMarkers&&O()&&O().set(D().id,[jt(kt),jt(Tt),N()?Lt:Lt=null==(r=jt(Ot))?void 0:r.offsetWidth,N()?Pt:Pt=null==(n=jt(Ot))?void 0:n.offsetHeight])}}let Rt=j(void 0),zt=j(void 0),Ot=j(void 0);const Nt=ye("mediaPaused");Gi((()=>{var t,e;if(D().videoTour){const i="timeline"in D().videoTour?D().videoTour.timeline:null==(e=null==(t=D().videoTour.i18n)?void 0:t[b()])?void 0:e.timeline;(null==i?void 0:i.length)&&D(D().view=i[0].rect,!0)}const i=[R().state.marker.subscribe((t=>{"string"==typeof t&&t==D().id?R().state.marker.set(D()):t==D()?async function(){var t,e;if(jt(gt))return;if(Y(gt,!0),$t(),G.noMarkerActions)return;x.dispatch("marker-open",D()),!g()||"steps"in g()&&(U(g())||g().cannotClose)||(C.set(void 0),await Xt());const i=g()&&"steps"in g();jt(Bt)||i&&rt||(P.set(void 0),T.state.popover.set(void 0)),St(),(null==it?void 0:it.markerId)&&(pt||(pt=T.canvases.find((t=>t.id==it.micrioId))),pt&&(xt=Ki(pt.visible),xt&&(null==it?void 0:it.view)&&pt.camera.flyToView(it.view,{isJump:!0}).catch((()=>{})))),void 0!==D().imageLayer&&R().state.layer.set(D().imageLayer);const r=ot&<&&ot!=g()&&null!=at&&at>0;r&&delete W.gridAction,r||!D().view||q.noAnimate||D().videoTour||W.gridView?Mt():ht?(R().camera.setView(D().view,{area:null==(t=R().opts)?void 0:t.area}),Mt()):R().camera.flyToView(D().view,{omniIndex:jt(qt),noTrueNorth:!0,area:null==(e=R().opts)?void 0:e.area,isJump:!!q.doJump||H&&!!E.$tour}).then(Mt).catch((()=>{g()||R().state.marker.set(void 0)}))}():q.alwaysOpen||(jt(gt)&&function(){var t;if(clearTimeout(It),x.dispatch("marker-closed",D()),D().videoTour&&R().openedView?setTimeout((()=>R().camera.aniDoneAdd.push((()=>{var t;return null==(t=jt(Rt))?void 0:t.focus()}))),10):null==(t=jt(Rt))||t.focus(),T.state.popover.set(void 0),!jt(Bt)){const t=g()&&"steps"in g();w()!=D()||t&&rt||P.set(void 0);const e=T.canvases.find((t=>t!=R()&&t.state.$marker));e&&Xt().then((()=>{const t=e.state.$marker;t&&"popup"==t.popupType&&P.set(t)}))}it&&pt&&setTimeout((()=>{var t,e;const i=Ki(T.state.marker);pt&&it.micrioId!=(null==(e=null==(t=null==i?void 0:i.data)?void 0:t._micrioSplitLink)?void 0:e.micrioId)&&T.close(pt)}),210)}(),Y(gt,Y(wt,!1),!0))}))];return jt(Ut)||(i.push(R().camera.image.state.view.subscribe(Dt)),Dt()),z()||Xt().then((()=>{jt(gt)&&!D().noMarker&&w()&&w()!=D()&&!g()?R().state.marker.set(void 0):(ht||q.alwaysOpen)&&Mt()})),D().htmlElement&&jt(zt)&&jt(zt).appendChild(D().htmlElement),()=>{var t;for(clearTimeout(It);i.length;)null==(t=i.shift())||t()}}));let Ft=J((()=>D().i18n?D().i18n[b()]:D())),Vt=J((()=>{var t,e,i,r;return!((null==(t=jt(Ft))?void 0:t.title)||(null==(e=jt(Ft))?void 0:e.body)||(null==(i=jt(Ft))?void 0:i.bodySecondary)||(null==(r=jt(Ft))?void 0:r.embedUrl)||D().images&&D().images.length)})),Ut=J((()=>z()||D().noMarker)),Bt=J((()=>"popup"!=D().popupType||jt(Vt))),qt=J((()=>R().camera.getOmniFrame((D().rotation??0)+(D().backside?Math.PI:0)))),Wt=J((()=>D().visibleArc?[R().camera.getOmniFrame(D().visibleArc[0]),R().camera.getOmniFrame(D().visibleArc[1])]:[])),Gt=J((()=>g()&&(!("steps"in g())&&!g().keepMarkers||G.hideMarkersDuringTour&&!tr(Nt,"$tourPaused",v))&&!jt(gt)));ee((()=>{jt(Gt)&&jt(Ct)&&M.update((t=>{const e=t.findIndex((t=>t[0]==D()));return e>=0&&t.splice(e,1),t}))}));let Yt=J((()=>"default"==D().type?void 0:"link"==D().type?"link":"media"==D().type?"play":"cluster"==D().type?void 0:D().type??void 0)),Ht=J((()=>{var t,e,i,r,n;return(null!=(null==(t=D().data)?void 0:t.customIconIdx)?null==(r=null==(e=R().$settings._markers)?void 0:e.customIcons)?void 0:r[null==(i=D().data)?void 0:i.customIconIdx]:void 0)??(null==(n=D().data)?void 0:n.icon)??G.markerIcon??void 0})),Zt=J((()=>!!jt(Yt)||!!jt(Ht))),Kt=J((()=>!("class"in D()&&""===D().class||!jt(Zt)&&"default"!=D().type))),Jt=J((()=>jt(Ft)&&(!Q||y()&&V)&&(jt(Ft).label||jt(Ft).title)));var Qt=Yo(),te=ut(Qt),ie=t=>{var e=Go();let i;e.__change=[qo,D,Dt];var r=ct(e),n=t=>{var e=jo();e.__click=[Bo,$t,D,G,f,_,R];var i=ct(e),r=t=>{var e=Wo();se((()=>xi(e,"src",jt(Ht).src))),Ye(t,e)},n=(t,e)=>{var i=t=>{En(t,{get name(){return jt(Yt)}})};ei(t,(t=>{jt(Yt)&&t(i)}),e)};ei(i,(t=>{jt(Ht)?t(r):t(n,!1)}));var s=dt(i,2),o=t=>{var e=Xo();fi(e,1,"micrio-marker",null,{},{static:et});var i=ct(e);qi(e,(t=>Y(Ot,t)),(()=>jt(Ot))),se((()=>{xi(e,"for",D().id),Ke(i,jt(Ft).label||jt(Ft).title)})),Ye(t,e)};ei(s,(t=>{jt(Jt)&&t(o)})),qi(e,(t=>Y(Rt,t)),(()=>jt(Rt))),se((()=>{xi(e,"title",nt||K?null:jt(Ft)?jt(Ft).label||jt(Ft).title:null),xi(e,"id",D().id)})),Fe("focus",e,Et),Fe("blur",e,$t),Fe("mouseenter",e,At),Fe("mouseleave",e,St),Ye(t,e)};ei(r,(t=>{D().htmlElement||t(n)})),qi(e,(t=>Y(zt,t)),(()=>jt(zt))),se((t=>{xi(e,"id",`m-${D().id}`),i=fi(e,1,hi(Z),"micrio-marker",i,t),wi(e,jt(yt)?`--mat:matrix3d(${jt(yt)})`:jt(kt)?`--x:${jt(kt)}px;--y:${jt(Tt)}px${tt?`;--scale:${jt(_t)}`:""}`:null)}),[()=>({overlapped:N()&&!jt(gt),cluster:K,behind:jt(bt),hovered:tr(I,"$hovered",v)==D().id,default:jt(Kt),mat3d:!!jt(yt),opened:jt(gt),"micrio-link":!!q.micrioLink,"has-icon":jt(Zt),"has-custom-icon":!!jt(Ht)})]),Ye(t,e)};ei(te,(t=>{jt(Ut)||!R()||jt(Gt)||t(ie)}));var re=dt(te,2),ne=t=>{Uo(0,{get marker(){return D()},get ctx(){return k()},get is360(){return R().is360}})};ei(re,(t=>{D().positionalAudio&&k()&&(!D().positionalAudio.noMobile||y())&&(D().positionalAudio.alwaysPlay||jt(gt))&&t(ne)})),Ye(t,Qt),_e(),p()}Ve(["change","click"]);var Zo=We("<div><!></div>");function Ko(t,e){var i,r;Te(e,!0);const[n,s]=ir(),o=()=>tr(u,"$_lang",n);let a=or(e,"settings",31,(()=>B({i18n:{}}))),l=or(e,"image",15);const c=ye("micrio"),{_lang:u,spaceData:d}=c,h=l().$info,m=l().$settings,v=null==(i=_r(e.targetId))?void 0:i[2],p=Cr(c,e.targetId);p||console.error(`[Micrio Waypoint] Could not calculate vector for target ${e.targetId}`);const{directionX:f,v:g,vN:w,vector:b}=p;let y=j(void 0);const k=Math.abs(w[1])<.3,T=k?.65:.5+w[1]/10,_={x:f,y:T,baseScale:h.width/1024,scale:1,rotX:(1+(k?-(1-T):w[1]))*Math.PI/2,rotY:0,rotZ:0},x=(null==(r=a())?void 0:r.coords)??(E=_,JSON.parse(JSON.stringify(E)));var E;let $,A=x.custom,S=A?x:_;function I(){var t;(null==(t=m._markers)?void 0:t.noMarkerActions)||(jt(y).parentNode.scrollTo(0,0),clearTimeout($),$=setTimeout((()=>{const t=l().camera.getXY(S.x,S.y);!jt(C)&&(t[0]<0||t[0]>=c.offsetWidth||t[1]<0||t[1]>=c.offsetHeight||l().is360&&t[3]>4)&&l().camera.flyToCoo([S.x,S.y],{speed:2,limit:!0}).catch((()=>{}))}),150))}let M=j(""),L=a().customIconIdx;const P=()=>{z.deleted?Y(R,!0):(L!=z.settings.customIconIdx&&(a(a().customIconIdx=z.settings.customIconIdx,!0),L=a().customIconIdx),x.custom!=A&&(A=x.custom,S=A?x:_),Y(M,l().camera.getMatrix(S.x,S.y,S.baseScale*S.scale,1,S.rotX,S.rotY,S.rotZ).join(","),!0))};let C=j(!1);function D(){var t;(null==(t=m._markers)?void 0:t.noMarkerActions)||(Y(C,!0),l(l().openedView=void 0,!0),l().state.marker.set(void 0),c.open(e.targetId,{vector:b}))}let R=j(!1);const z={coords:x,settings:a()};P(),Gi((()=>{z.el=jt(y),jt(y)._iface=z,c.dispatchEvent(new CustomEvent("wp-print",{detail:z}));const t=l().state.view.subscribe(P);return()=>t()}));let O=J((()=>{var t,e,i,r;return(null==(e=null==(t=a().i18n)?void 0:t[o()])?void 0:e.title)||(null==(r=null==(i=null==v?void 0:v.i18n)?void 0:i[o()])?void 0:r.title)})),N=J((()=>{var t;return null==(t=null==d?void 0:d.icons)?void 0:t[a().customIconIdx??-1]}));var F=Ge(),V=ut(F),U=t=>{var i=Zo();let r;var s=ct(i);const o=J((()=>jt(N)?void 0:"arrow-up")),a=J((()=>jt(O)??tr(Xr,"$i18n",n).waypointFollow));zn(s,{get type(){return jt(o)},get icon(){return jt(N)},onclick:D,onfocus:I,get title(){return jt(a)}}),qi(i,(t=>Y(y,t)),(()=>jt(y))),se((t=>{wi(i,`--matrix: matrix3d(${jt(M)??""})`),xi(i,"id",`w-${e.targetId}`),r=fi(i,1,"micrio-waypoint",null,r,t)}),[()=>({clicked:jt(C),active:jt(C),"direction-up":g[1]<0,"direction-down":g[1]>0})]),zi(3,i,(()=>Nr)),Ye(t,i)};ei(V,(t=>{jt(R)||t(U)})),Ye(t,F),_e(),s()}var Jo=Xe("<line></line>"),Qo=We('<article class="micrio-markers"><label> </label></article>'),ta=We('<article class="micrio-markers"><label> </label></article>'),ea=We('<svg class="micrio-markers"></svg> <aside class="micrio-markers"><section class="micrio-markers"></section> <section class="micrio-markers"></section></aside>',1),ia=We("<!> <!>",1),ra=We("<div><!> <!></div>"),na=We("<!> <!> <!>",1);function sa(t,e){var i;Te(e,!0);const[r,n]=ir(),s=()=>tr(v,"$settings",r),o=()=>tr($,"$inView",r),a=()=>tr(E,"$hoveredId",r),l=()=>tr(g,"$switching",r),c=()=>tr(h,"$data",r),u=()=>tr(w,"$_lang",r);let d=or(e,"image",15);const{data:h,info:m,settings:v}=d(),p=d().state.marker,f=d().wasm.micrio,{switching:g,_lang:w,state:b}=f,y=f.canvas.isMobile,k=null==(i=f.canvases[0])?void 0:i.grid,T=null==k?void 0:k.focussed,_=null==k?void 0:k.markersShown,x=s().clusterMarkerRadius??16,E=b.markerHoverId,$=Zi([]);ke("inView",$);const A=s()._markers??{},S=s().omni,I=!(!!A.noTitles||!!(null==S?void 0:S.sideLabels))&&!!A.showTitles;function M(t){var e;t?"string"==typeof t||d().openedView||t.noMarker||!t.view||d(d().openedView=f.state.$tour||null==(e=d().state.$view)?void 0:e.slice(0),!0):d().openedView&&!f.state.$tour&&Xt().then((()=>{var t,e;jt(K)||d().camera.aniDone||!d().openedView||d().camera.flyToView((e=d().openedView,[Math.max(0,e[0]),Math.max(0,e[1]),Math.min(1,e[2]),Math.min(1,e[3])]),{speed:null==(t=s()._markers)?void 0:t.zoomOutAfterCloseSpeed,noTrueNorth:!0}).catch((()=>{})),d(d().openedView=void 0,!0)}))}b.tour.subscribe((t=>{t&&"steps"in t&&t.keepLastStep&&d(d().openedView=void 0,!0)}));const L=[];let P=j(""),C=j(!1),D=j(!1);const R=t=>(t=null==t?void 0:t.map((t=>Math.round(100*t)/100)))&&Y(P,[...L,t[0]?`left: ${t[0]}px`:null,t[1]?`top: ${t[1]}px`:null,`width: ${t[2]}px`,`height: ${t[3]}px`].filter((t=>!!t)).join(";")+";");let z=j(B([])),O=x,N=j(B([]));const F=new Map,V=([t,e,i=0,r=0],[n,s,o=0,a=0])=>{const l=Math.max(r/2,O),c=Math.max(a/2,O);return!(t+i+O<n-O||t-O>n+o+O||e+l<s-c||e-l>s+c)},U=()=>{var t;if(!jt(tt))return Y(z,[],!0),void Y(N,[],!0);const e=jt(tt),i=[],r=e.length;let n=0,s=0;for(Y(z,[],!0),n=0;n<r;n++)for(s=n+1;s<r;s++){if(null==(t=e[s].tags)?void 0:t.includes("no-cluster"))continue;const r=F.get(e[n].id),o=F.get(e[s].id);if(r&&o&&V(r,o)){jt(z).push(n,s);const t=i.find((t=>t.findIndex((t=>t==n||t==s))>-1));t?t.push(n,s):i.push([n,s])}}Y(N,i.map((t=>t.filter(((e,i)=>t.indexOf(e)==i)))).map(((t,i)=>({title:t.length+"",type:"cluster",view:i=[0,1,2,3].map((i=>(i<2?Math.min:Math.max)(...t.map((t=>{var r;return(null==(r=e[t].view)?void 0:r[i])??(i%2==0?e[t].x:e[t].y)}))))),x:i[0]+(i[2]-i[0])/2,y:i[1]+(i[3]-i[1])/2,id:""+t,data:{},popupType:"none",tags:[]}))),!0)},q=[];Gi((()=>{const t=[];return br(m).then((e=>{var i,r,n;if(!e)return;Y(C,!!e.is360);const o=s()._markers;if(!o)return;const a=Number(e.version)>=4.2;o.markerIcon&&L.push(`--micrio-marker-icon: url("${o.markerIcon}")`),o.markerColor&&o.markerColor!=(a?"#ffffff":"#ffbb00")&&L.push("--micrio-marker-color: "+o.markerColor),o.markerSize&&o.markerSize!=(a?"16":"25")&&L.push("--micrio-marker-size: "+(O=Number(o.markerSize))+"px"),t.push(d().viewport.subscribe(R)),s().clusterMarkers&&(t.push(d().state.view.subscribe(U)),t.push(d().data.subscribe((()=>Xt().then(U))))),!d().grid&&(null==(i=s()._markers)?void 0:i.zoomOutAfterClose)&&t.push(d().state.marker.subscribe(M));!(!d().isOmni||!(null==(r=s().omni)?void 0:r.sideLabels)||(null==(n=s()._markers)?void 0:n.noTitles))&&t.push(y.subscribe((t=>{t&&jt(D)?function(){for(var t;q.length;)null==(t=q.shift())||t()}():t||jt(D)||(q.push(d().state.view.subscribe(H)),q.push(E.subscribe(H)),q.push(p.subscribe(H))),Y(D,!t)})))})),()=>{for(var e;t.length;)null==(e=t.shift())||e()}}));const W=t=>!t.noMarker;let X=j(void 0),G=j(B([]));function H(){Xt().then((()=>{if(!jt(X))return;const t=f.canvas,e=t.element.offsetWidth,i=[];o().forEach((([r,n,s])=>{var o;const l=null==(o=jt(X).querySelector('label[for="'+r.id+'"]'))?void 0:o.getBoundingClientRect();(null==l?void 0:l.width)&&l.width>0&&i.push([n*e,s,(n>=.5?l.left:l.right)-t.viewport.left,l.top+l.height/2-t.viewport.top,a()==r.id])})),Y(G,i,!0)}))}const Z=(t,e)=>{var i;return t.i18n?null==(i=t.i18n[e])?void 0:i.title:t.title};let K=J((()=>k&&tr(T,"$focussed",r)!=d()&&_&&Ki(_).indexOf(d())<0)),Q=J((()=>!l()&&f.spaceData?f.spaceData.links.filter((t=>t[0]==d().id||t[1]==d().id)).map((t=>{var e;return{targetId:t[0]==d().id?t[1]:t[0],settings:null==(e=t[2])?void 0:e[d().id]}})):void 0)),tt=J((()=>{var t,e;return jt(K)?[]:null==(e=null==(t=c())?void 0:t.markers)?void 0:e.filter(W)})),et=J((()=>{var t,e,i;return jt(K)?null==(t=c())?void 0:t.markers:null==(i=null==(e=c())?void 0:e.markers)?void 0:i.filter((t=>!W(t)))})),it=J((()=>{var t,e;return!(!(null==(t=jt(tt))?void 0:t.length)&&!(null==(e=jt(Q))?void 0:e.length))})),rt=J((()=>o().sort((([,,t],[,,e])=>t>e?1:t<e?-1:0))));var nt=na(),st=ut(nt),ot=t=>{var e=ea(),i=ut(e);ri(i,21,(()=>jt(G)),ii,((t,e)=>{var i=Jo();let r;se((t=>{xi(i,"x1",jt(e)[0]),xi(i,"y1",jt(e)[1]),xi(i,"x2",jt(e)[2]),xi(i,"y2",jt(e)[3]),r=fi(i,0,"micrio-markers",null,r,t)}),[()=>({hovered:jt(e)[4]})]),Ye(t,i)}));var r=dt(i,2),n=ct(r);ri(n,21,(()=>jt(rt).filter((([,t])=>t<.5))),(t=>t[0].id),((t,e)=>{var i=Qo(),r=ct(i);let n;var s=ct(r);se(((t,i)=>{xi(r,"for",jt(e)[0].id),n=fi(r,1,"micrio-markers",null,n,t),Ke(s,i)}),[()=>({hover:a()==jt(e)[0].id}),()=>Z(jt(e)[0],u())]),Fe("mouseenter",r,(()=>E.set(jt(e)[0].id))),Fe("mouseleave",r,(()=>E.set(void 0))),Ye(t,i)})),ri(dt(n,2),21,(()=>jt(rt).filter((([,t])=>t>=.5))),(t=>t[0].id),((t,e)=>{var i=ta(),r=ct(i);let n;var s=ct(r);se(((t,i)=>{xi(r,"for",jt(e)[0].id),n=fi(r,1,"micrio-markers",null,n,t),Ke(s,i)}),[()=>({hover:a()==jt(e)[0].id}),()=>Z(jt(e)[0],u())]),Fe("mouseenter",r,(()=>E.set(jt(e)[0].id))),Fe("mouseleave",r,(()=>E.set(void 0))),Ye(t,i)})),qi(r,(t=>Y(X,t)),(()=>jt(X))),Ye(t,e)};ei(st,(t=>{jt(D)&&jt(rt).length&&!tr(p,"$currentMarker",r)&&t(ot)}));var at=dt(st,2),lt=t=>{var e=ra();let i;var r=ct(e),n=t=>{var e=Ge();ri(ut(e),17,(()=>jt(Q)),(t=>t.targetId),((t,e)=>{Ko(t,nr({get image(){return d()}},(()=>jt(e))))})),Ye(t,e)};ei(r,(t=>{jt(Q)&&jt(Q).length&&t(n)}));var s=dt(r,2),o=t=>{var e=ia(),i=ut(e);ri(i,19,(()=>jt(tt)),(t=>t.id),((t,e,i)=>{const r=J((()=>jt(z).includes(jt(i))));Ho(t,{get marker(){return jt(e)},get image(){return d()},coords:F,get overlapped(){return jt(r)}})})),ri(dt(i,2),17,(()=>jt(N)),(t=>t.id),((t,e)=>{Ho(t,{get marker(){return jt(e)},get image(){return d()}})})),Ye(t,e)};ei(s,(t=>{jt(tt)&&t(o)})),se((t=>{wi(e,jt(it)?jt(P):null),i=fi(e,1,"micrio-markers",null,i,t)}),[()=>({"show-titles":I,is360:jt(C),inactive:jt(K)||jt(C)&&l()})]),Ye(t,e)};ei(at,(t=>{jt(it)&&t(lt)}));var ht=dt(at,2),mt=t=>{var e=Ge();ri(ut(e),17,(()=>jt(et)),(t=>t.id),((t,e)=>{Ho(t,{get marker(){return jt(e)},get image(){return d()},forceHidden:!0})})),Ye(t,e)};ei(ht,(t=>{jt(et)&&t(mt)})),Ye(t,nt),_e(),n()}const oa="5.3.0",aa="https://b.micr.io/",la="https://r2.micr.io/",ca=["ttBWO","IicaE","KLTce","xjQrB","pfhXT","rNIPa","rdFIY","mvRXc"],ua={b64:_b,ugz:_u},da="micrio-muted",ha={id:"",version:Number(oa.replace(/(\d+)\.(\d+).*/,"$1.$2")),path:aa,width:0,height:0,tileSize:1024,lang:"en",settings:{camspeed:1,view:[0,0,1,1],restrict:[0,0,1,1],focus:[.5,.5],zoomLimit:1,fullscreen:!0,crossfadeDuration:.25,hookEvents:!0,hookScroll:!0,hookPinch:!0,hookDrag:!0,minimap:!0,doTourJumps:!0,audio:!0,startVolume:1,mutedVolume:0,_markers:{showTitles:!1,popupAnimation:{duration:200,x:-50},zoomOutAfterClose:!0},ui:{controls:{cultureSwitch:!0}},_360:{},_meta:{}}},ma={STRINGS:{id:{r:!0},lang:{r:!0},"data-thumb":{f:"thumbSrc"},"data-title":{r:!0},"data-format":{r:!0},"data-extension":{r:!0,f:"tileExtension"},"data-tiles":{r:!0,f:"tilesId"},"data-path":{r:!0},"data-sources":{r:!0},"data-inittype":{f:"initType"},"data-type":{},"data-start":{f:"gallery.startId"},"data-gallery":{f:"gallery.archive"},"data-gallery-sort":{f:"gallery.sort"},"data-iiif":{r:!0,f:"iiifManifest"},"data-grid":{r:!0},"data-gallery-type":{f:"gallery.type"}},BOOLEANS:{"data-static":{},muted:{f:"audio",n:!0},"data-png":{r:!0,f:"isPng"},"data-webp":{r:!0,f:"isWebP"},"data-dz":{r:!0,f:"isDeepZoom"},"data-is360":{r:!0},"data-no-externals":{f:"noExternals"},"data-skipmeta":{f:"skipMeta"},"data-force-data-refresh":{f:"forceDataRefresh"},"data-keeprendering":{f:"keepRendering"},"data-coverlimit":{f:"limitToCoverScale"},"data-events":{f:"hookEvents"},"data-keys":{f:"hookKeys"},"data-zooming":{f:"noZoom",n:!0},"data-scroll-zoom":{f:"hookScroll"},"data-pinch-zoom":{f:"hookPinch"},"data-dragging":{f:"hookDrag"},"data-two-finger-pan":{f:"twoFingerPan"},"data-control-zoom":{f:"controlZoom"},"data-ui":{f:"noUI",n:!0},"data-gtag":{f:"noGTag",n:!0},"data-controls":{f:"noControls",n:!0},"data-logo":{f:"noLogo",n:!0},"data-logo-org":{f:"noOrgLogo",n:!0},"data-toolbar":{f:"noToolbar",n:!0},"data-show-info":{f:"showInfo"},"data-social":{},"data-fullscreen":{},"data-minimap":{},"data-minimap-hide":{f:"alwaysShowMinimap",n:!0},"data-omni-y":{f:"OmniTwoAxes"},"data-normalize-dpr":{f:"zoomLimitDPRFix"},"data-grid-clickable":{f:"gridClickable"},"data-gallery-spreads":{f:"gallery.isSpreads"},"data-freemove":{f:"freeMove"},"data-force-path":{f:"forceInfoPath",r:!0}},NUMBERS:{"data-version":{r:!0},height:{r:!0},width:{r:!0},volume:{f:"startVolume"},"data-tilesize":{r:!0,f:"tileSize"},"data-camspeed":{},"data-zoomlimit":{f:"zoomLimit"},"data-minimap-height":{f:"minimapHeight"},"data-minimap-width":{f:"minimapWidth"},"data-mutedvolume":{f:"mutedVolume"},"data-width-cm":{f:"cmWidth"},"data-height-cm":{f:"cmHeight"},"data-gallery-cover-pages":{f:"gallery.coverPages"},lazyload:{dN:0},"data-elasticity":{f:"dragElasticity"},"data-skip-base-levels":{f:"skipBaseLevels"}},ARRAYS:{"data-focus":{},"data-view":{}}};var va,pa,fa,ga,wa,ba,ya;pa=va||(va={}),fa=pa.Grid||(pa.Grid={}),(ga=fa.GridActionType||(fa.GridActionType={}))[ga.focus=0]="focus",ga[ga.flyTo=1]="flyTo",ga[ga.focusWithTagged=2]="focusWithTagged",ga[ga.focusTagged=3]="focusTagged",ga[ga.reset=4]="reset",ga[ga.back=5]="back",ga[ga.switchToGrid=6]="switchToGrid",ga[ga.filterTourImages=7]="filterTourImages",ga[ga.nextFadeDuration=8]="nextFadeDuration",wa=pa.Camera||(pa.Camera={}),(ba=wa.TimingFunction||(wa.TimingFunction={}))[ba.ease=0]="ease",ba[ba["ease-in"]=1]="ease-in",ba[ba["ease-out"]=2]="ease-out",ba[ba.linear=3]="linear";class ka{constructor(t){var e;if(this.image=t,this.center=[0,0,1],this.trueNorth=.5,this.aniDoneAdd=[],this.cooToArea=(t,e,i)=>({x:i[0]+t*(i[2]-i[0]),y:i[1]+e*(i[3]-i[1])}),this.viewToArea=(t,e)=>[...Object.values(this.cooToArea(t[0],t[1],e)),...Object.values(this.cooToArea(t[2],t[3],e))],this.getView=()=>{var t;return null==(t=this._view)?void 0:t.slice(0)},this.getCoo=(t,e,i=!1,r=!1)=>this.getCooDirect(t,e,i,r).slice(0).map((t=>Math.round(1e6*t)/1e6)),this.getXY=(t,e,i=!1,r,n,s)=>this.getXYDirect(t,e,{abs:i,radius:r,rotation:n,noTrueNorth:s}).slice(0),this.getScale=()=>this.center[2]??1,this.setScale=t=>this.setCoo(this.center[0],this.center[1],t),this.getCoverScale=()=>{var t;return(null==(t=this.e)?void 0:t._getCoverScale(this.image.ptr))??1},this.getMinScale=()=>{var t;return(null==(t=this.e)?void 0:t._getMinScale(this.image.ptr))??.1},this.isZoomedIn=()=>{var t;return 1==(null==(t=this.e)?void 0:t._isZoomedIn(this.image.ptr))},this.isZoomedOut=(t=!1)=>{var e;return 1==(null==(e=this.e)?void 0:e._isZoomedOut(this.image.ptr,t))},this.getCoverLimit=()=>{var t;return!!(null==(t=this.e)?void 0:t._getCoverLimit(this.image.ptr))},this.flyToView=(t,e={})=>new Promise(((i,r)=>{var n,s;if(!this.e)return r(new Error("Wasm not ready"));if(e.area&&(t=this.viewToArea(t,e.area)),e.prevView){const t=e.prevView;this.e._setStartView(this.image.ptr,t[0],t[1],t[2],t[3])}if(null==(n=this.image.$settings.omni)?void 0:n.frames){const i=(null==(s=this.image.$settings.omni.layers)?void 0:s.length)??1,r=this.image.$settings.omni.frames/i;null==e.omniIndex&&void 0!==t[5]&&(e.omniIndex=Math.round(lr(t[5]/(2*Math.PI))*r)),null!=e.omniIndex&&(e.omniIndex=lr(e.omniIndex,r))}const o=this.e._flyTo(this.image.ptr,t[0],t[1],t[2],t[3],e.duration??-1,e.speed??-1,e.progress??0,!!e.isJump,!!e.limit,!!e.limitZoom,e.omniIndex??0,!!e.noTrueNorth,va.Camera.TimingFunction[e.timingFunction??"ease"],performance.now());this.image.wasm.render(),0==o?i():this.setAniPromises(i,r)})),this.flyToFullView=(t={})=>this.flyToCoo([.5,.5,this.getMinScale()],t),this.flyToCoverView=(t={})=>{const e=this.image.$settings.focus??[.5,.5];return e[2]=this.getCoverScale(),this.flyToCoo(e,t)},this.flyToCoo=(t,e={})=>new Promise(((i,r)=>{if(!this.e)return r(new Error("Wasm not ready"));e.duration=this.e._setCoo(this.image.ptr,t[0],t[1],t[2]||this.center[2],e.duration??-1,e.speed??-1,e.limit??!1,va.Camera.TimingFunction[e.timingFunction??"ease"],performance.now()),this.image.wasm.render(),0==e.duration?i():this.setAniPromises(i,r)})),this.zoom=(t,e=0,i=void 0,r=void 0,n=1,s=!1)=>new Promise(((o,a)=>{if(!this.e)return a(new Error("Wasm not ready"));const l=this.getXY(this.center[0],this.center[1]);if(null==i&&(i=l[0]),null==r&&(r=l[1]),this.image.album&&!this.image.album.hooked)return o();e=this.e._zoom(this.image.ptr,t,i,r,e,n,s,performance.now()),this.image.wasm.render(),0==e?o():this.setAniPromises(o,a)})),this.zoomIn=(t=1,e=250,i=1)=>this.zoom(200*-t,e,void 0,void 0,i).catch((()=>{})),this.zoomOut=(t=1,e=250,i=1)=>{const r=this.image.wasm.micrio.canvas.viewport,n=r.width/r.height,s=this.image.$info.width/this.image.$info.height;return this.zoom(t*(400/Math.max(1,n/s/2)),e,void 0,void 0,i).catch((()=>{}))},this.getDirection=()=>{var t;return(null==(t=this.e)?void 0:t._getYaw(this.image.ptr))??0},this.getPitch=()=>{var t;return(null==(t=this.e)?void 0:t._getPitch(this.image.ptr))??0},!t.is360){const i=t.state.$view;i&&(null==(e=t.$info)?void 0:e.width)&&Xt().then((()=>this.setView(i)))}}assign(t,e,i,r,n,s){this.e=t,this._view=e,this._xy=i,this._coo=r,this._mat=n,this._quad=s}viewChanged(){var t;const e=this._view,i=this.center.join(","),r=this.getCoo(0,0);this.center[0]=e[0]+(e[2]-e[0])/2,this.center[1]=e[1]+(e[3]-e[1])/2,this.center[2]=r[2],this.image.is360&&(this.center[3]=r[3],this.center[4]=r[4]),this.image.isOmni&&(this.center[5]=null==(t=this.image.swiper)?void 0:t.currentIndex),(this.center.join(",")!=i||this.image.wasm.micrio.canvas.resizing||this.image.wasm.e._areaAnimating(this.image.ptr))&&this.image.state.view.set(this._view)}getXYDirect(t,e,i={}){var r;const n=this.image.is360&&!i.noTrueNorth?.5-((null==(r=this.image.$settings._360)?void 0:r.trueNorth)??.5):0;return this.e._getXY(this.image.ptr,t-n,e,!0===i.abs,i.radius,i.rotation),this._xy}getCooDirect(t,e,i=!1,r=!1){if(i){const i=this.image.wasm.micrio.getBoundingClientRect();t-=i.left,e-=i.top}return this.e._getCoo(this.image.ptr,t,e,!0===i,!0===r),this._coo}setView(t,e={}){this.e&&(e.area&&(t=this.viewToArea(t,e.area)),this.e._setView(this.image.ptr,t[0],t[1],t[2],t[3],!!e.noLimit,!1,e.correctNorth),e.noRender||this.image.wasm.render())}setCoo(t,e,i=this.center[2]??1){this.e&&(this.e._setCoo(this.image.ptr,t,e,i,0,0),this.image.wasm.render())}getQuad(t,e,i,r,n=0,s=0,o=0,a=1,l=1){return this.e?(this.e._getQuad(this.image.ptr,t,e,i,r,a,l,n,s,o),this._quad):new Float32Array(16)}getMatrix(t,e,i,r,n,s,o,a,l,c){return this.e?(this.e._getMatrix(this.image.ptr,t,e,i,r,n||0,s||0,o||0,a||0,l??1,c??1),this._mat):new Float32Array(16)}setMinScale(t){var e;null==(e=this.e)||e._setMinScale(this.image.ptr,t)}setMinScreenSize(t){var e;this.image.album||null==(e=this.e)||e._setMinSize(this.image.ptr,Math.max(0,Math.min(1,t??1)))}setLimit(t){this.e&&(this.e._setLimit(this.image.ptr,t[0],t[1],t[2],t[3]),this.image.wasm.render())}setCoverLimit(t){this.e&&this.e._setCoverLimit(this.image.ptr,!!t)}set360RangeLimit(t=0,e=0){this.e&&(this.e._set360RangeLimit(this.image.ptr,t,e),this.image.wasm.render())}setAniPromises(t,e){this.aniDone=t,this.aniAbort=e}pan(t,e,i=0,r={}){this.e&&(this.e._pan(this.image.ptr,t,e,i,!!r.noLimit,performance.now()),r.render&&this.image.wasm.render())}stop(){this.e&&this.e._aniStop(this.image.ptr)}pause(){this.e&&this.e._aniPause(this.image.ptr,performance.now())}resume(){this.e&&(this.e._aniResume(this.image.ptr,performance.now()),this.image.wasm.render())}aniIsKinetic(){var t;return!!(null==(t=this.e)?void 0:t._isKinetic(this.image.ptr))}setDirection(t,e){if(!this.e)return;const i=this.image.wasm;i.e._setDirection(this.image.ptr,t,e),i.render()}setArea(t,e={}){if(!this.e)return;const i=this.image.wasm.e;this.image.opts.isEmbed?this.image.ptr>0&&(this.image.opts.area=t,i._setImageArea(this.image.ptr,t[0],t[1],t[2],t[3])):(this.image.opts.area=t,i._setArea(this.image.ptr,t[0],t[1],t[2],t[3],!!e.direct,!!e.noDispatch)),e.noRender||this.image.wasm.render()}setRotation(t=0,e=0,i=0){!this.image.opts.isEmbed||this.image.ptr<=0||!this.e||(this.image.wasm.e._setImageRotation(this.image.ptr,t,e,i),this.image.wasm.render())}getOmniRotation(){var t,e;const i=this.image.$settings.omni;return i&&this.e?((null==(t=this.image.swiper)?void 0:t.currentIndex)??0)/(((null==i?void 0:i.frames)??1)/((null==(e=null==i?void 0:i.layers)?void 0:e.length)??1))*Math.PI*2:0}getOmniFrame(t){var e;const i=this.image.$settings.omni;if(!i||null==t)return;const r=i.frames/((null==(e=i.layers)?void 0:e.length)??1);return Math.floor(t/(2*Math.PI)*r)}getOmniXY(t,e,i){return this.e?(this.e._getOmniXY(this.image.ptr,t,e,i),this._xy):new Float64Array(5)}setOmniSettings(){const t=this.image,e=t.$settings.omni;e&&this.e&&(t.wasm.e._setOmniSettings(t.ptr,-e.distance||0,e.fieldOfView??0,e.verticalAngle??0,e.offsetX??0),this.image.state.view.set(this._view))}}(t=>{t.Main=class{constructor(t){this.micrio=t,this.tour=Zi(),this.marker=Zi(),this.markerHoverId=Zi(),this.popup=Zi(),this.popover=Zi(),this.ui={controls:Zi(!0),zoom:Zi(!0),hidden:Zi(!1)},this.mediaState=new Map,this.tour.subscribe((t=>{"string"!=typeof t&&(this._tour=t)})),this.marker.subscribe((t=>{"string"!=typeof t&&(this._marker=t)}))}get $tour(){return this._tour}get $marker(){return this._marker}get(){if(this.micrio.$current)return this.value={id:this.micrio.$current.id,c:this.micrio.canvases.map((t=>t.state.get()))},this._tour&&(this.value.t=[this._tour.id],"instance"in this._tour&&this._tour.instance&&this.value.t.push(this._tour.instance.currentTime,this._tour.instance.paused?"p":void 0)),this.value}async set(t){var e,i,r;if(this.value=t){if(void 0!==(null==(e=t.t)?void 0:e[1])){const e=t.t[0],i=this.mediaState.get(e);i?(i.currentTime=t.t[1],i.paused="p"==t.t[2]):this.mediaState.set(e,{currentTime:t.t[1],paused:"p"==t.t[2]})}if(null==(i=t.c)||i.forEach((t=>{if(void 0!==t[6]&&void 0!==t[7]){const e=t[6],i=this.mediaState.get(e);i?(i.currentTime=t[7],i.paused="p"==t[8]):this.mediaState.set(e,{currentTime:t[7],paused:"p"==t[8]})}})),t.t&&await this.setTour(t.t[0]),(null==(r=this.micrio.$current)?void 0:r.id)!=t.id&&(this.micrio.open(t.id),this.micrio.$current&&await br(this.micrio.$current.data,{allowUndefined:!0})),this.micrio.canvases.forEach((e=>{e.state.set(t.c.find((t=>t[0]==e.id)))})),t.t)return this.setTour(t.t[0]);{const e=t.c.find((e=>e[0]==t.id));e&&!e[5]&&this.micrio.$current&&this.micrio.$current.camera.flyToView(e.slice(1,5),{speed:2}).catch((()=>{}))}}}async setTour(t){var e,i,r;if(!this.micrio.$current||(null==(e=this._tour)?void 0:e.id)==t)return;const n=await br(this.micrio.$current.data,{allowUndefined:!0});n&&this.tour.set((null==(i=n.markerTours)?void 0:i.find((e=>e.id==t)))||(null==(r=n.tours)?void 0:r.find((e=>e.id==t))))}};t.Image=class{constructor(t){this.image=t,this.view=Zi(void 0),this.marker=Zi(void 0),this.layer=Zi(0);const e=t.wasm.micrio;let i,r,n;this.view.subscribe((s=>{this._view=s;const o=null==s?void 0:s.toString(),a={image:t,view:s};if(s&&o&&i!=o){i=o;const t=s[2]-s[0],l=s[3]-s[1];(!r||!n||Math.abs(t-r+(l-n))>1e-5)&&(e.events.dispatch("zoom",a),r=t,n=l),e.events.dispatch("move",a)}})),this.marker.subscribe((t=>{const i=this._marker;this._marker=t&&"string"!=typeof t?t:void 0,this._marker?e.state.marker.set(this._marker):t||e.state.$marker!=i||e.state.marker.set(void 0)}))}get $view(){return this._view}get $marker(){return this._marker}hookOmni(){const t=this.image;this.layer.subscribe((e=>{t.ptr<0||!t.wasm.e||(t.wasm.setActiveLayer(t.ptr,e),t.wasm.render())}))}get(){const t=this._marker,e=t?Array.from(this.image.wasm.micrio.state.mediaState).reverse().find((e=>e[0].startsWith(t.id))):null;return[this.image.id,...this._view?[].slice.call(this._view):[0,0,1,1],...t?[t.id,...e?[e[0],e[1].currentTime,e[1].paused?"p":void 0]:[]]:[void 0]].filter((t=>void 0!==t))}set(t){var e;(null==t?void 0:t.length)&&(this.view.set([t[1],t[2],t[3],t[4]]),t[5]?(null==(e=this._marker)?void 0:e.id)!=t[5]&&this.marker.set(t[5]):this._marker&&this.marker.set(void 0))}}})(ya||(ya={}));const Ta=new class{constructor(){this.data=new Map,this.db=new Map,this.images=[],this.get=t=>new Promise(((e,i)=>{const r=this.db.get(t);if(!r||!this.data.has(r[0]))return i(new Error("Could not get blob: "+t));const n=new FileReader;n.onload=()=>e(JSON.parse(n.result)),n.readAsText(new Blob([new Uint8Array(this.data.get(r[0]),r[1],r[2])]))})),this.getImage=async t=>new Promise(((e,i)=>{const r=this.db.get(t);if(!r||!this.data.has(r[0]))return i(new Error("Could not get blob: "+t));const n=new Blob([new Uint8Array(this.data.get(r[0]),r[1],r[2])]);if("createImageBitmap"in self)e(self.createImageBitmap(n));else{let t=this.images.find((t=>!t.src));t||this.images.push(t=new Image),t.onload=()=>{t&&(e(t),requestAnimationFrame((()=>{t&&(URL.revokeObjectURL(t.src),t.src=null)})))},t.src=URL.createObjectURL(n)}}))}async load(t,e,i){if(this.data.has(e))return;const r=e.replace(/^.*\//,"").split(".")[0],n=/\/base$/.test(e),s=n||Pr(r),o=new XMLHttpRequest,a=await new Promise(((r,n)=>{let a=0;o.responseType="arraybuffer",o.onprogress=t=>{a||(a=Number(o.getResponseHeader("Content-Length"))),null==i||i(Math.min(1,t.loaded/a))},o.onload=()=>{4===o.readyState&&200===o.status?(null==i||i(1),r(o.response)):n()},o.onerror=n,o.open("GET",t+e+(s?".bin":".mdp")),o.send()}));if(!a)return;this.data.set(e,a);const l=n?e.split("/")[0]+"/":"";let c=0;for(;c<a.byteLength&&!(c+32>a.byteLength);){const i=this.parseHeader(new Uint8Array(a,c,32));if(i.name&&i.size>0)this.db.set(t+l+i.name.replace("./",""),[e,c+32,i.size]);else if(0===i.size&&!i.name)break;c+=32+i.size}}parseHeader(t){const e=(new TextDecoder).decode(t),i=t=>e.slice(r,r+=t).replace(/\x00/g,"").trim();let r=0;return{name:i(20),size:parseInt(i(12),8)}}},_a=[];class xa{constructor(t,e,i={}){this.wasm=t,this.attr=e,this.opts=i,this.uuid=cr(),this.__info=JSON.parse(JSON.stringify(ha)),this.settings=Zi({}),this.data=Zi(void 0),this.video=Zi(void 0),this.visible=Zi(!1),this.ptr=-1,this.baseTileIdx=-1,this.is360=!1,this.isVideo=!1,this.isOmni=!1,this.levels=1,this.dzLevels=0,this.noImage=!1,this.opacity=1,this.viewport=Zi(),this.embeds=[],this.isV5=!1,this._loadedData=!1,this.embedElements=new Map,this.state=new ya.Image(this),i.useParentCamera||(this.camera=new ka(this)),this.id=(e.id??"").replace("https://i.micr.io/",""),this.isV5=Pr(this.id.split("/")[0]),this.infoBasePath=e.path&&e.forceInfoPath?e.path:void 0,this.dataPath=e.path||this.__info.path,this.isV5&&!e.path&&(this.dataPath=la),i.secondaryTo?(this.opacity=0,i.area=this.wasm.micrio.canvas.viewport.portrait?[0,1,1,1]:[1,0,1,1],void 0===i.isPassive&&(i.isPassive=!0)):i.area||(i.area=[0,0,1,1]),this.preset=_r(this.id);let r=!1;this.info={subscribe:Zi(void 0,(t=>{r?t(this.__info):this.load().then(t),r=!0})).subscribe};const n=this.wasm.micrio,s=!!this.attr.revision;let o,a=Ki(this.visible);i.isEmbed&&!s||this.visible.subscribe((t=>{t!=a&&(a=t,t&&!this._loadedData&&(!s&&this.isV5?(this._loadedData=!0,this.data.set(void 0)):this.loadData()),i.secondaryTo&&(i.isPassive&&(o?(o(),o=null):t&&(o=i.secondaryTo.state.view.subscribe((t=>{t&&!this.camera.aniDone&&this.camera.setView(t,{noLimit:!0})})))),t?n.events.dispatch("splitscreen-start",this):n.events.dispatch("splitscreen-stop",this)),n.visible.update((e=>(t?e.push(this):e.splice(e.indexOf(this),1),e))),t&&n.$current==this&&n.switching.set(!1))})),this.video.subscribe((t=>this._video=t)),this.data.subscribe((t=>((t,e,i)=>{var r,n,s,o,a;t&&(t.revision&&(t.revision=Object.fromEntries(Object.entries(t.revision??{}).filter((t=>Number(t[1])>0)))),null==(r=t.embeds)||r.forEach((t=>{t.uuid||(t.uuid=(t.id??t.micrioId)+"-"+Math.random()),$r(t.video),$r(t)})),null==(n=t.markers)||n.forEach((t=>Ir(t,e,!i))),null==(o=null==(s=t.music)?void 0:s.items)||o.forEach($r),null==(a=t.pages)||a.forEach(Sr))})(t,this.is360,this.isV5)))}get $info(){return this.__info}get $settings(){return Ki(this.settings)}get $data(){return Ki(this.data)}setError(t,e){throw this.wasm.micrio.printError(this.error=e??(null==t?void 0:t.message)??(null==t?void 0:t.toString())??"An unknown error has occurred"),this.wasm.micrio.loading.set(!1),t}async load(){var t,e,i,r,n,s,o,a,l,c,u,d,h,m,v,p,f,g,w,b;let y=this.__info;const k=this.attr,T=this.wasm.micrio;k.id&&k.width&&(k.settings&&vr(ha.settings,k.settings,{noOverwrite:!0}),this.__info=y=k);let _=y.iiifManifest||k.iiifManifest;y.isIIIF=this.id.startsWith("http")||"iiif"==y.format;const x=!!(null==(t=k.settings)?void 0:t.forceDataRefresh);if(!this.id||k.width&&k.height&&!_)(null==(o=this.preset)?void 0:o[1])&&vr(this.preset[1],y);else{const t=t=>this.setError(t,'Image with id "'+this.id+'" not found, published, or embeddable.');vr((null==(e=this.preset)?void 0:e[1])||await(y.isIIIF?Tr(this.id):xr(this.id,this.infoBasePath,x)).catch(t),y),!_&&y.iiifManifest&&(_=y.iiifManifest),y.isIIIF||(y.isIIIF=!!_),_&&vr(await Tr(_).catch(t),y),(null==(r=null==(i=y.settings)?void 0:i._meta)?void 0:r.noLogo)&&(y.settings.noLogo=!0),(null==(s=null==(n=y.settings)?void 0:n._meta)?void 0:s.noSmoothing)&&(y.settings.noSmoothing=!0)}const E="https://iiif.micr.io/";if(y.id.startsWith(E)&&(y.id=y.id.slice(21)),7==(null==(a=this.id)?void 0:a.length)){const t=Lr(this.id[1+Lr(this.id)%6]);y.is360=!!(t>>4&1),y.isWebP=!(3&t),y.isPng=2==(3&t),t>>3&1&&Pr(y.tilesId??this.id)&&(y.format="dz"),y.path||(y.path=`https://${t>>2&1?"eu":"r2"}.micr.io/`)}const $=this.isV5&&this.id.startsWith("i")&&!this.id.includes("/");$&&!y.tilesId&&(y.tilesId=this.id.slice(1));const A=ca.indexOf(y.id)>=0||y.tilesId&&ca.indexOf(y.tilesId)>=0;vr(k,y);const S=$&&!(null==(l=y.tileBasePath)?void 0:l.includes("micr.io"));if(this.tileBase=S?y.tileBasePath??aa:A||$?aa:y.tileBasePath??y.path??(this.isV5?la:aa),(null==(c=y.organisation)?void 0:c.baseUrl)&&!k.path?(this.dataPath=y.path=y.organisation.baseUrl,$&&!A||(this.tileBase=this.dataPath)):"https://eu.micr.io/"==y.path&&(this.dataPath=y.path),(null==(u=y.settings)?void 0:u.omni)&&(this.isOmni=!0,y.version>=5&&(await Ta.load(this.tileBase??this.dataPath,(y.tilesId??y.id)+"/base",(t=>{var e,i;return null==(i=null==(e=T._ui)?void 0:e.setProps)?void 0:i.call(e,{loadingProgress:t})})).catch((t=>this.setError(t,"Could not find object base package."))),y.settings.gallery||(y.settings.gallery={}),y.settings.gallery.type="omni",y.settings.gallery.archive=y.id)),!(null==(d=y.organisation)?void 0:d.branding)||y.settings&&y.settings.noUI||this.loadStyle(this.dataPath+"style/"+y.organisation.slug+".css").then((()=>{var t;const e=null==(t=getComputedStyle(this.wasm.micrio).getPropertyValue("--micrio-font-family"))?void 0:t.replace(/^'([^']+)'.*$/,"$1");e&&document.fonts.ready.then((()=>{document.fonts.check("16px "+e)||this.loadStyle(`https://fonts.googleapis.com/css2?family=${e}:ital,wght@0,300;0,400;0,500;0,600;0,800;1,300;1,400;1,500;1,600;1,800&display=swap`)}))})),y.isIIIF)if(y.sequences&&y.sequences.length)this.parseIIIFSequence(y,!!_);else{const t=(_||("@id"in y?y["@id"]:y.id)).replace("/info.json","");y.path=t.replace(/\/[^/]*$/,""),y.id=t.replace(/^.*\/([^/]*)$/,"$1")}if(y.spacesId&&!T.spaceData&&(T.spaceData="MICRIO_SPACE_DATA"in self?self.MICRIO_SPACE_DATA:await Tr("https://i.micr.io/spaces/"+y.spacesId+".json")),null==(h=y.settings)?void 0:h._360){const t=(null==(v=null==(m=T.spaceData)?void 0:m.images.find((t=>t.id==this.id)))?void 0:v.rotationY)??0;y.settings._360.trueNorth=.5+t/Math.PI/2}this.noImage=this.noImage||this.isOmni||!y.id&&!y.tilesId,this.extension=y.tileExtension||y.isPng&&"png"||y.isWebP&&"webp"||"jpg","dz"==y.format&&(y.isDeepZoom=!0),this.is360=!!y.is360,this.isVideo=!!y.isVideo;let I=this.isV5?Ki(T._lang):("cultures"in y?void 0:k.lang)??void 0;if(this.isV5){if(y.revision){const t=Object.keys(y.revision);t.length&&t.indexOf(I)<0&&(T.lang=t[0])}}else if(!(null==(p=y.settings)?void 0:p.skipMeta)&&"cultures"in y){const t=(y.cultures||"").split(","),e=this.opts.isEmbed||!!this.opts.area,i=(null==(f=y.settings)?void 0:f.onlyPreferredLang)||e;I=y.lang&&t.indexOf(y.lang)>=0?y.lang:i?void 0:t[0],I&&!e&&(T.lang=I)}const M=y.settings;M&&!(null==M?void 0:M.noExternals)&&await Promise.all([M.css?this.loadStyle(M.css.href):null,M.js?this.loadScript(M.js.href,I):null].filter((t=>!!t)));for(let P=y.tileSize;P<Math.max(y.width,y.height);P*=2,this.levels++);let L=Math.max(y.width,y.height);do{this.dzLevels++}while((L/=2)>1);return(null==(g=null==M?void 0:M.gallery)?void 0:g.archive)&&(this.levels-=1-(M.gallery.archiveLayerOffset??0)),this.noImage||(this.thumbSrc=this.getTileSrc(this.levels,0,0)),T.events.dispatch("pre-info",y),this.isV5&&null!=y.revision&&!this.opts.isEmbed?await this.loadData():(null==(w=y.settings)?void 0:w.skipMeta)||this.opts.isEmbed||this.isV5||T._lang.subscribe((t=>{var e,i;t&&this.id&&(!("cultures"in this.__info)||(this.__info.cultures||"").split(",").indexOf(t)<0)&&(t=void 0),this.data.set(void 0),!t&&(null==(e=this.preset)?void 0:e[2])&&(t="preset"),t&&this.id&&((null==(i=this.preset)?void 0:i[2])?this.enrichData(this.preset[2]).then((t=>{var e;this.data.set(t),(null==(e=this.preset)?void 0:e[2])&&(this.preset[2]=void 0)})):Tr(this.dataPath+this.id+"/data."+t+".json").catch((()=>{})).then((t=>t&&this.enrichData(t).then((t=>this.data.update((e=>(vr(t,e||(e={}),{mergeArrays:!0}),e))))))))})),(null==(b=y.settings)?void 0:b.micrioSplitLink)&&!this.opts.secondaryTo&&T.open({id:y.settings.micrioSplitLink,settings:{hookEvents:!1!==y.settings.secondaryInteractive}},{splitScreen:!0,isPassive:!y.settings.noFollow}),y.settings&&this.settings.set(y.settings),delete y.settings,this.isOmni&&this.state.hookOmni(),y}async loadData(){var t,e,i,r;const n=(null==(t=this.$settings)?void 0:t.skipMeta)||(null==(e=this.__info.settings)?void 0:e.skipMeta);if(this._loadedData||n)return Promise.resolve();this._loadedData=!0;const s=(null==(i=this.preset)?void 0:i[2])??(this.isV5&&await Tr(this.dataPath+this.id+"/data/pub.json",null==(r=this.__info.settings)?void 0:r.forceDataRefresh).catch((()=>{})));s&&this.enrichData(s).then((t=>this.data.set(t)))}getTileSrc(t,e,i,r){var n,s,o;const a=this.__info;if(a){if(a.isDeepZoom&&(t=this.dzLevels-t),a.isIIIF){const r=a.tileSize,n=Math.pow(2,t)*r,s=Math.min(a.width,e*n),o=Math.min(a.height,i*n),l=Math.min(a.width-s,n),c=Math.min(a.height-o,n),u=Math.round(Math.min(r,l/n*r)),d=Math.round(Math.min(r,c/n*r));return`${a.path}/${a.id}/${[s,o,l,c].join(",")}/${[u,d].join(",")}/0/default.jpg`}if(null==(o=null==(s=null==(n=a.settings)?void 0:n._360)?void 0:s.video)?void 0:o.src)throw"Video thumb";return`${this.tileBase}${a.tilesId||a.id}/${void 0!==r?r+"/":""}${t}/${e}${a.isDeepZoom?"_":"-"}${i}.${this.extension}`}}loadScript(t,e=""){return new Promise((i=>{if(_a.indexOf(t)>=0||document.querySelector('script[src="'+t+'"]'))i();else{_a.push(t);const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.defer=!0,r.micrioElement=this.wasm.micrio,r.src=t.replace("$lang",e),r.onload=i,document.head.appendChild(r)}}))}loadStyle(t){return new Promise((e=>{if(_a.indexOf(t)>=0||document.head.querySelector('link[href="'+t+'"]'))e();else{_a.push(t);const i=document.createElement("link");i.setAttribute("type","text/css"),i.setAttribute("rel","stylesheet"),i.setAttribute("href",t),i.onload=e,document.head.appendChild(i)}}))}async enrichData(t){var e,i,r,n,s;if(!t)return t;"error"in t&&(this.__info.error="403"==t.status?"Could not load image data. Are you logged in and do you have the right credentials?":t.error);const o=this.wasm.micrio.lang,a=[];null==(e=t.markers)||e.forEach((t=>{var e;if(Ir(t,this.is360,!this.isV5),null==(e=t.data)?void 0:e.micrioSplitLink){const e=t.data.micrioSplitLink.split(",").map((t=>t.trim())),i=t.data._micrioSplitLink={micrioId:e[0],markerId:e[1],follows:!!e[2]&&"false"!=e[2]};i.markerId&&a.push(i.micrioId)}})),(null==(i=t.markerTours)?void 0:i.length)&&a.push(...[].concat.apply([],t.markerTours.map((t=>t.steps))).map((t=>t.split(",")[1])).filter((t=>!!t&&t!=this.id)));const l=t=>"autostart"in t&&t.autostart,c=(null==(r=t.markerTours)?void 0:r.find(l))||(null==(n=t.tours)?void 0:n.find(l));c&&(this.$settings.start={type:"steps"in c?"markerTour":"tour",id:c.id});const u=a.filter(((t,e)=>a.indexOf(t)==e));Promise.all(u.map((t=>xr(t,this.infoBasePath))));const d=t=>this.dataPath+(this.isV5?t+"/data/pub.json":t+"/data."+o+".json"),h=await Promise.all(u.map((t=>Tr(d(t)))));h.forEach(((t,e)=>{var i;return null==(i=null==t?void 0:t.markers)?void 0:i.forEach((t=>Ir(t,this.is360,5==u[e].length)))}));const m=this.wasm.micrio.spaceData;return t.markerTours&&(await Promise.all(t.markerTours.map((e=>Mr(this,e,o,t)))),m&&(t.markerTours=t.markerTours.filter((t=>!t.steps.find((t=>t.includes(","))))))),(null==m?void 0:m.markerTours)&&await Promise.all(m.markerTours.filter((t=>!t.stepInfo)).map((e=>Mr(this,e,o,t)))),null==(s=t.markers)||s.forEach((t=>{var e,i,r,n,s;if(!(null==(e=t.data)?void 0:e._micrioSplitLink))return;const o=null==(r=null==(i=t.data)?void 0:i._micrioSplitLink)?void 0:r.markerId;if(o)for(let a=0;a<h.length;a++){const e=null==(s=null==(n=h[a])?void 0:n.markers)?void 0:s.find((t=>t.id==o));if(e)return void(t.data._micrioSplitLink.view=e.view)}})),this.wasm.micrio.events.dispatch("pre-data",{[this.id]:t,...Object.fromEntries(u.map(((t,e)=>[t,h[e]])))}),h.forEach(((t,e)=>{if(t){const r=this.wasm.images.find((t=>t.id==u[e]));r&&r instanceof xa&&!r.$data&&(i=d(r.id),!yr.has(i))&&r.data.set(t)}var i})),t}parseIIIFSequence(t,e=!1){var i;const r=null==(i=t.sequences)?void 0:i[0];if(!r)return;const n="top-to-bottom"==r.viewingDirection,s=r.canvases.map((t=>t.images[0])).map((t=>t.resource));this.noImage=!0,t.width=n?Math.max(...s.map((t=>t.width))):s.reduce(((t,e)=>t+e.width),0),t.height=n?s.reduce(((t,e)=>t+e.height),0):Math.max(...s.map((t=>t.height)));let o=0,a=this.embeds;t.settings||(t.settings={}),e&&s.length>10&&(a=t.gallery=[],t.settings.gallery||(t.settings.gallery={})),s.forEach((e=>{const i=[(1-e.width/t.width)/2,(1-e.height/t.height)/2];a.push(new xa(this.wasm,{id:e.service["@id"],width:e.width,height:e.height,isPng:"image/png"==e.format,settings:{}},{area:n?[i[0],o/t.height,1-i[0],(o+e.height)/t.height]:[o/t.width,i[1],(o+e.width)/t.width,1-i[1]]})),o+=n?e.height:e.width}))}addEmbed(t,e,i={}){const r=e.slice(0),n=new xa(this.wasm,t,{area:r,isEmbed:!0,useParentCamera:i.asImage});return n.camera||(n.camera=this.camera),this.embeds.push(n),void 0===i.opacity&&(i.opacity=1),br(n.info).then((t=>{if(t){if("cover"==i.fit||"contain"==i.fit){const e=this.is360?2:1,n="cover"==i.fit,s=r[2]-r[0],o=r[3]-r[1],a=r[0]+s/2,l=r[1]+o/2,c=s/o*e,u=t.width/t.height;if(n&&u<c||!n&&u>=c){const t=s/u*e;r[1]=l-t/2,r[3]=l+t/2}else{const t=o*u/e;r[0]=a-t/2,r[2]=a+t/2}}this.wasm.addEmbed(n,this,i),this.wasm.render()}})),n}setEmbedMediaElement(t,e){e?this.embedElements.set(t,e):this.embedElements.delete(t)}getEmbedMediaElement(t){return this.embedElements.get(t)}splitStart(){var t,e,i;const r=this.wasm.micrio.canvas.viewport.portrait;null==(t=this.opts.secondaryTo)||t.camera.setArea(r?[0,0,1,.5]:[0,0,.5,1],{noRender:!0}),this.camera.setArea(r?[0,.5,1,1]:[.5,0,1,1],{noRender:!0}),this.camera.setView((null==(i=null==(e=this.__info)?void 0:e.settings)?void 0:i.view)??[0,0,1,1]),this.wasm.render()}splitEnd(){var t,e;const i=this.opts.area;if(!i)return;const r=i[2]-i[0],n=i[3]-i[1];if(Math.round(1e3*r)/1e3==0||Math.round(1e3*n)/1e3==0)return;const s=r>n;this.camera.setArea(s?[0,1,1,1]:[1,0,1,1],{noRender:!0}),(null==(t=this.opts.secondaryTo)?void 0:t.grid)&&this.opts.secondaryTo.camera.aniDone||null==(e=this.opts.secondaryTo)||e.camera.setArea([0,0,1,1],{noRender:!0}),this.wasm.render()}fadeIn(t=!1){this.wasm.fadeImage(this.ptr,1,t),this.wasm.render()}fadeOut(t=!1){this.wasm.fadeImage(this.ptr,0,t),this.wasm.render()}}class Ea{constructor(t,e,i,r,n){var s,o,a;this.wasm=t,this.image=e,this.embed=i,this.paused=r,this.moved=n,this.ism3u=!1,this.hlsPlayer=void 0,this.usVid=void 0,this.vidRepeatTo=void 0,this.placeTo=void 0,this.autoplay=!0,this._vid=void 0,this.isMounted=!0,this.events={play:()=>this.setPlaying(!0),pause:()=>this.setPlaying(!1),playing:()=>{this.image._video||this.image.video.set(this._vid)},canplayEvt:mr.iOS?"loadedmetadata":"canplay",canplay:()=>{this._vid&&this.isMounted&&(this.autoplay&&!this.paused?(this._vid.play().catch((t=>console.warn("WebGL Embed video play() failed on canplay:",t))),this.moved()):this.embed.hideWhenPaused||(this.setPlaying(!0),Xt().then((()=>{this.setPlaying(!1),setTimeout((()=>{var t;return null==(t=this._vid)?void 0:t.remove()}),50)}))))}},this.ism3u=!!(null==(s=i.video)?void 0:s.streamId)&&!(null==(o=i.video)?void 0:o.transparent),this._vid=e._video,this.autoplay=(null==(a=i.video)?void 0:a.autoplay)??!0;let l=!0;this.usVid=this.image.visible.subscribe((t=>{clearTimeout(this.placeTo),this.placeTo=t?setTimeout((()=>{this.isMounted&&(this._vid?(this.hook(),this.autoplay&&!this.paused&&this._vid.play().catch((t=>console.warn("WebGL Embed video play() failed",t)))):this.load())}),l?0:100):setTimeout((()=>{var t;return null==(t=this._vid)?void 0:t.pause()}),0),l=!1}))}unmount(){var t,e;this.isMounted=!1,clearTimeout(this.placeTo),clearTimeout(this.vidRepeatTo),null==(t=this._vid)||t.pause(),this.unhook(),null==(e=this.usVid)||e.call(this)}setPlaying(t){this._vid&&(this.paused=!t,t?this._vid.dataset.playing="1":delete this._vid.dataset.playing,this.wasm.e._setImageVideoPlaying(this.image.ptr,t),this.embed.hideWhenPaused&&this.wasm.fadeImage(this.image.ptr,t?1:0),t&&this.wasm.render())}load(){if(!this.embed.video||this._vid)return;const t=this.ism3u?`https://videodelivery.net/${this.embed.video.streamId}/manifest/video.m3u8`:this.embed.video.src;t?(this._vid=document.createElement("video"),this._vid.crossOrigin="anonymous",this._vid.playsInline=!0,this._vid.width=.5*this.embed.width,this._vid.height=.5*this.embed.height,this._vid.muted=this.embed.video.muted,this.hook(),!this.ism3u||Dr(this._vid)?this._vid.src=t:gr("https://i.micr.io/hls-1.5.17.min.js",void 0,"Hls"in window?{}:void 0).then((()=>{this.hlsPlayer=new window.Hls,this.hlsPlayer.loadSource(t),this._vid&&this.hlsPlayer.attachMedia(this._vid)})).catch((t=>console.error("[Micrio GL Embed] Failed to load HLS.js:",t)))):console.error("[Micrio GL Embed] No video source found for embed:",this.embed.id)}hook(){if(!this.embed.video||!this._vid)return;const t=this.embed.video.loopAfter;this.embed.video.loop&&t?(this._vid.loop=!1,this._vid.onended=()=>{this.setPlaying(!1),this.vidRepeatTo=setTimeout((()=>{var t;return null==(t=this._vid)?void 0:t.play().catch((t=>console.warn("WebGL Embed video loop play() failed:",t)))}),1e3*t)},this._vid.onplay=()=>this.setPlaying(!0)):(this._vid.loop=this.embed.video.loop,this._vid.onended=null,this._vid.onplay=null),this._vid.parentNode||this.autoplay||this.ism3u||(this._vid.setAttribute("style","opacity:0;position:absolute;top:0;left:0;transform-origin:left top;transform:scale(0.1);pointer-events:none;"),document.body.appendChild(this._vid)),this._vid.addEventListener("play",this.events.play),this._vid.addEventListener("pause",this.events.pause),this._vid.addEventListener("playing",this.events.playing,{once:!0}),this._vid.addEventListener(this.events.canplayEvt,this.events.canplay,{once:!0})}unhook(){this._vid&&(this._vid.removeEventListener("play",this.events.play),this._vid.removeEventListener("pause",this.events.pause),this._vid.removeEventListener("playing",this.events.playing),this._vid.removeEventListener(this.events.canplayEvt,this.events.canplay),this._vid.onended=null,this._vid.onplay=null)}}var $a=We('<img alt="Embed" data-scroll-through="" class="micrio-embed">'),Aa=We('<button data-scroll-through="" aria-label="embed-button" class="micrio-embed"></button>');function Sa(t,e){var i,r;Te(e,!0);const[n,s]=ir(),o=()=>tr(l,"$current",n),a=ye("micrio"),{current:l,wasm:c,canvas:u}=a;let d=or(e,"embed",15);const h=o(),m=h.$info;d().uuid||d(d().uuid=cr(),!0);const v=d().uuid,p=h.is360,f=(null==(i=d().video)?void 0:i.autoplay)??!0;let g=h.embeds.find((t=>{var e;return t.uuid==v||(null==(e=t.$info)?void 0:e.title)==v}));const w=window.matchMedia("(dynamic-range: high)").matches||mr.OSX,b=d().area,y=null==(r=d().src)?void 0:r.toLowerCase().endsWith(".svg"),k=!(!d().width||!d().height)&&d().width*d().height<Math.pow(1024,2),T=/iPhone OS 14_/i.test(navigator.userAgent),_="data-embeds-inside-gl",x=a.getAttribute(_),E=!(y||T||!w&&!a.hasAttribute(_)||"false"==x||(!d().micrioId||k&&d().src)&&(!d().video||d().video.controls||d().video.transparent)),$=!d().clickAction&&!d().frameSrc,A="href"==d().clickAction?d().clickTarget:void 0,S=A&&d().clickTargetBlank;let I=b[2]-b[0],M=b[3]-b[1],L=b[0]+I/2,P=b[1]+M/2,C=d().scale||1,D=d().rotX??0,R=d().rotY??0,z=d().rotZ??0,O=d().scaleX??1,N=d().scaleY??1,F=j("");function V(){const t=d().area;p&&t[0]>t[2]&&t[0]--,I=t[2]-t[0],M=t[3]-t[1],L=t[0]+I/2,P=t[1]+M/2,C=d().scale||1,D=d().rotX??0,R=d().rotY??0,z=d().rotZ??0,O=d().scaleX??1,N=d().scaleY??1,Y(F,`--ratio:${I/M*m.width/m.height};--scale:${I*m.width/(d().width??100)/(E?1:C)*(p?Math.PI/2:1)};`),y&&Y(F,jt(F)+`height:${d().height}px`),E&&d().micrioId&&d().width&&Y(F,jt(F)+`width:${d().width}px`)}V();let U,B=J((()=>Math.round(I*m.width))),q=J((()=>Math.round(M*m.height))),W=j(!1),X=j(0),G=j(0),H=j(""),Z=j("");function K(){var t,e,i,r,n;if(h.camera.e&&(n=h.camera.getXYDirect(L,P),Y(X,n[0],!0),Y(G,n[1],!0),U=n[2],p&&Y(H,h.camera.getMatrix(L,P,C,1,D,R,z,void 0,O,N).join(","),!0),Y(Z,(p?`transform:matrix3d(${jt(H)});`:`--x:${jt(X)}px;--y:${jt(G)}px;--s:${U};`)+(void 0!==d().opacity&&1!==d().opacity?`--opacity:${d().opacity};`:"")),((null==(t=d().video)?void 0:t.pauseWhenSmallerThan)||(null==(e=d().video)?void 0:e.pauseWhenLargerThan))&&jt(B))){const t=jt(W);Y(W,function(){var t,e;if(!(null==(t=d().video)?void 0:t.pauseWhenSmallerThan)&&!(null==(e=d().video)?void 0:e.pauseWhenLargerThan))return!f;const i=U?Math.max(jt(B)*U/u.viewport.width,jt(q)*U/u.viewport.height):0;return!!(d().video.pauseWhenSmallerThan&&i<d().video.pauseWhenSmallerThan||d().video.pauseWhenLargerThan&&i>d().video.pauseWhenLargerThan)}(),!0),(null==(i=jt(rt))?void 0:i._vid)&&jt(W)!=t&&(jt(W)?jt(rt)._vid.pause():((null==(r=null==h?void 0:h.$settings)?void 0:r.embedRestartWhenShown)&&(jt(rt)._vid.currentTime=0),jt(rt)._vid.play()))}}function Q(){o()&&"markerId"==d().clickAction&&d().clickTarget&&o().state.marker.set(d().clickTarget)}function tt(t){if(t&&"detail"in t){const e=t.detail;for(const t in e)d(d()[t]=e[t],!0)}V(),K()}const et=Zi(!1);d().video&&(d().video.controls||d(d().video.muted=!0,!0));const it=E&&!!d().video;let rt=j(void 0);const nt=!E||!!d().clickAction;let st=j(void 0);ee((()=>{var t;d().video&&d().id&&o()&&o().setEmbedMediaElement(d().id,jt(st)??(null==(t=jt(rt))?void 0:t._vid))}));let ot=J((()=>d().video?Math.min(d().video.width,jt(B)):jt(B))),at=J((()=>d().video?Math.min(d().video.height,jt(q)):jt(q))),lt=J((()=>jt(B)/jt(ot)));Gi((()=>{var t,e;const i=[];return E&&function(){const t=d().hideWhenPaused?.01:d().opacity??1;g&&g.ptr>=0?(g.camera.setArea(d().area),g.camera.setRotation(d().rotX,d().rotY,d().rotZ),c.fadeImage(g.ptr,t)):g=h.addEmbed({id:d().video?d().id:d().micrioId,title:v,width:d().width,height:d().height,isPng:d().isPng,isWebP:d().isWebP,isDeepZoom:d().isDeepZoom,path:m.tileBasePath??m.path,isSingle:!!d().video,isVideo:!!d().video,settings:{_360:{rotX:D,rotY:R,rotZ:z}}},d().area,{opacity:t,asImage:!1}),it&&br(g.visible,{targetValue:!0}).then((()=>{Y(rt,new Ea(c,g,d(),jt(W),K),!0)})),c.render()}(),(nt||(null==(t=d().video)?void 0:t.pauseWhenSmallerThan)||(null==(e=d().video)?void 0:e.pauseWhenLargerThan))&&i.push(h.state.view.subscribe(K)),()=>{var t,e;for(null==(t=jt(rt))||t.unmount(),g&&g.ptr>=0&&(c.fadeImage(g.ptr,0),c.render()),d().video&&d().id&&o()&&o().setEmbedMediaElement(d().id);i.length;)null==(e=i.shift())||e()}}));var ct=Ge(),dt=ut(ct),ht=t=>{var e=Ge();ui(ut(e),(()=>A?"a":"div"),0,((t,e)=>{let i;se((()=>i=$i(t,i,{id:d().id?"e-"+d().id:void 0,style:jt(Z),role:A?void 0:"figure",onclick:Q,onkeypress:Q,onchange:tt,href:A,target:A&&S?"_blank":null,class:"",[bi]:{"embed-container":!0,embed3d:p,"no-events":$}},"micrio-embed")));var r=Ge(),n=ut(r),s=t=>{const e=J((()=>d().video.streamId&&!d().video.transparent?"cfvid://"+d().video.streamId:d().video.src)),i=J((()=>!jt(W)&&d().video.autoplay)),r=J((()=>d().video.transparent&&d().video.hasH265));Ms(t,{get forcePause(){return jt(W)},get src(){return jt(e)},get width(){return jt(ot)},get height(){return jt(at)},get frameScale(){return jt(lt)},get controls(){return d().video.controls},destroying:et,get loop(){return d().video.loop},get loopDelay(){return d().video.loopAfter},get muted(){return d().video.muted},get autoplay(){return jt(i)},get hasTransparentH265(){return jt(r)},get _media(){return jt(st)},set _media(t){Y(st,t,!0)}})},o=(t,e)=>{var i=t=>{Ms(t,{get src(){return d().frameSrc},get width(){return jt(B)},get height(){return jt(q)},get frameScale(){return d().scale},get autoplay(){return d().autoplayFrame},destroying:et})},r=(t,e)=>{var i=t=>{var e=$a();se((()=>{xi(e,"src",d().src),wi(e,jt(F)),xi(e,"width",y?d().width:void 0),xi(e,"height",y?d().height:void 0)})),Ye(t,e)},r=t=>{var e=Aa();se((()=>{wi(e,jt(F)),xi(e,"title",d().title)})),Ye(t,e)};ei(t,(t=>{!E&&d().src?t(i):t(r,!1)}),e)};ei(t,(t=>{d().frameSrc?t(i):t(r,!1)}),e)};ei(n,(t=>{d().video&&!E?t(s):t(o,!1)})),Ye(e,r)})),Ye(t,e)};ei(dt,(t=>{nt&&(jt(H)||jt(X)||jt(G))&&t(ht)})),Ye(t,ct),_e(),s()}var Ia=Xe('<svg width="100" height="100" class="micrio-progress-circle"><circle fill="transparent" stroke="#e0e0e0" stroke-width="8px" class="micrio-progress-circle"></circle><circle fill="transparent" stroke="#00d4ee" stroke-width="8px" class="micrio-progress-circle"></circle></svg>');var Ma=We("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1);const La=!self.createImageBitmap,Pa=URL.createObjectURL(new Blob(["let controller = null, prevUri = null;\nself.addEventListener('message', e => {\n\t// Handle abort message\n\tif(e.data == 'abort') return controller && controller.abort();\n\t// Create new AbortController for this fetch\n\tcontroller = new AbortController();\n\t// Fetch the image blob\n\tfetch(e.data.src, { signal: controller.signal })\n\t\t.then(r => r.blob())"+(La?"\n\t\t// Fallback for older Safari: create Object URL\n\t\t.then(blob => {\n\t\t\t// Revoke previous Object URL to free memory\n\t\t\tURL.revokeObjectURL(prevUri);\n\t\t\t// Post Object URL back\n\t\t\tself.postMessage({src: (prevUri = URL.createObjectURL(blob, {type: e.data.type}))})\n\t\t})":"\n\t\t// If createImageBitmap is supported, use it (preferred)\n\t\t.then(blob => self.createImageBitmap(blob))\n\t\t// Post ImageBitmap back, transferring ownership\n\t\t.then(data => self.postMessage({data:data, src:e.data.src}, [data]))")+"\n\t\t// Handle fetch errors (including abort)\n\t\t.catch(err => self.postMessage({error: e.data.src+': '+err.message, type: err.name}))\n})"],{type:"text/javascript"})),Ca=Math.max(2,Math.min(6,(navigator.hardwareConcurrency||2)-1)),Da=[],Ra=new Map,za=new Map,Oa=[],Na=new Map;for(let ml=0;ml<Ca;ml++){const t=new Worker(Pa);t.onmessage=t=>Va(ml,t.data.src,t.data.data,t.data.error,t.data.type),Ra.set(ml,t),La&&za.set(ml,new Image)}const Fa=t=>new Promise(((e,i)=>{Oa.push([t,e,i]),function(){if(!Oa.length)return;let t=0;for(;t<Ca&&!(Da.indexOf(t)<0);t++);if(t>=Ca)return;Da.push(t);const e=Oa.shift();if(!e)return void Da.splice(Da.indexOf(t),1);Na.set(t,e);const i=Ra.get(t);if(!i)return console.error(`[Micrio Texture] Worker ${t} not found!`),e[2]("Internal error: Worker not found"),void Da.splice(Da.indexOf(t),1);i.postMessage({src:e[0],type:"image/"+e[0].split(".").pop()})}()}));function Va(t,e,i,r,n){const s=Na.get(t);if(null!=s)if(Na.delete(t),setTimeout((()=>{Da.splice(Da.indexOf(t),1)}),50),r)s[2](r),"AbortError"!=n&&console.error(`[Micrio Texture] Error loading ${s[0]}: ${n} - ${r}`);else if(i)s[1](i);else if(e&&La){const i=za.get(t);if(!i)return void s[2]("Internal error: Image element fallback not found");i.onload=()=>{s[1](i)},i.onerror=()=>{s[2](`Failed to load image from Object URL: ${e}`)},i.src=e}else s[2](`Worker ${t} sent invalid message.`),console.error(`[Micrio Texture] Worker ${t} sent invalid message for ${s[0]}`);else console.warn(`[Micrio Texture] Received message from worker ${t} but no matching promise found.`)}function Ua(){return Da.length}function Ba(t){const e=[...Na.entries()].find((e=>e[1][0]==t));if(null==e)return;const i=Ra.get(e[0]);i&&i.postMessage("abort")}const qa=ua.ugz?ua.ugz(ua.b64,!0):fetch("http://localhost:2000/build/optimized.wasm").then((t=>t.arrayBuffer())),Wa=class t{constructor(t){this.micrio=t,this.ready=!1,this.memory=new self.WebAssembly.Memory({initial:100,maximum:100}),this.b=this.memory.buffer,this.i=-1,this.c=-1,this.now=-1,this.raf=-1,this.drawing=!1,this.images=[],this.bareBone=!1,this.baseTiles=[],this.drawn=[],this.prevDrawn=[],this.toDelete={},this.textures={},this.requests=new Map,this.timeouts={},this.tileLoaded={},this.tileOpacity={},this.loadStates={},this.unsubscribe=[],this.cameras=new Map,this.preventDirectionSet=!1,this._pMatrices={},this.isGallery=!1,this.imports={env:{memory:this.memory,abort:console.error},main:{"console.log":console.log,"console.log2":console.log,"console.log3":console.log,"console.log4":console.log,drawTile:this.drawTile.bind(this),drawQuad:t=>this.micrio.webgl.drawTile(void 0,t),aniAbort:t=>{const e=this.cameras.get(t);e&&(e.aniAbort&&e.aniAbort(),e.aniDoneAdd.length=0,e.aniAbort=e.aniDone=void 0)},aniDone:t=>{var e;const i=this.cameras.get(t);if(i){for(i.aniDone&&i.aniDone();i.aniDoneAdd.length;)null==(e=i.aniDoneAdd.shift())||e();i.aniAbort=i.aniDone=void 0}},getTileOpacity:t=>this.tileOpacity[t],setTileOpacity:(t,e=!1,i=1)=>{const r=this.tileOpacity,n=this.tileLoaded;return(!r[t]||r[t]<1)&&(r[t]=e?1:n[t]>0?Math.min(1,(this.now-n[t])/250)*i:0),r[t]||0},setMatrix:t=>this.micrio.webgl.gl.uniformMatrix4fv(this.micrio.webgl.pmLoc,!1,this._pMatrices[t]),setViewport:(t,e,i,r)=>this.micrio.webgl.gl.viewport(Math.floor(t),Math.floor(e),Math.ceil(i),Math.ceil(r)),viewSet:t=>{var e;return null==(e=this.cameras.get(t))?void 0:e.viewChanged()},viewportSet:(t,e,i,r,n)=>{const s=this.images.find((e=>e.ptr==t));s&&"camera"in s&&s.viewport.set([e,i,r,n])},setVisible:(t,e)=>{var i;return null==(i=this.images.find((e=>e.ptr==t)))?void 0:i.visible.set(1===e)},setVisible2:(t,e)=>{var i;return null==(i=this.images.find((e=>e.ptr==t)))?void 0:i.visible.set(1===e)}}},this.addImage=async(t,e,i=!1,r=1)=>br(t.info).then((n=>{if(!n)return;this.images.push(t);const s=t.opts.area??[0,0,1,1],o=t.$settings._360??{};if(t.ptr=i?this.e._addImage(e.ptr,s[0],s[1],s[2],s[3],n.width,n.height,n.tileSize||1024,n.isSingle??!1,n.isVideo??!1,r,o.rotX??0,o.rotY??0,o.rotZ??0,o.scale??1,0):this.e._addChild(e.ptr,s[0],s[1],s[2],s[3],n.width,n.height),!i){this.bindCamera(t),t.$settings.focus&&this.e._setCoo(t.ptr,t.$settings.focus[0],t.$settings.focus[1],0,0,performance.now());const e=this.e._getPMatrix(t.ptr);this._pMatrices[e]=new Float32Array(this.b,e+32,16);const i=t.$info.view;i&&"0,0,1,1"!=i.toString()&&this.e._setView(t.ptr,i[0],i[1],i[2],i[3]),this.e._sendViewport(t.ptr)}this.tileOpacity[t.baseTileIdx=this.e.getNumTiles(this.i)-1]=1,this.baseTiles.push(t.baseTileIdx)})),this.addChild=(t,e)=>this.addImage(t,e),this.render=this.render.bind(this),this.draw=this.draw.bind(this),this.unsubscribe.push(t.current.subscribe(this.setCanvas.bind(this)))}static getTextureBuffer(t,e){const i=new Float32Array(12*t*e),r=1/t,n=1/e;for(let s=0,o=0;o<e;o++)for(let e=0;e<t;e++,s+=12)i[s+3]=i[s+7]=i[s+9]=(i[s+1]=i[s+5]=i[s+11]=o*n)+n,i[s+4]=i[s+8]=i[s+10]=(i[s+0]=i[s+2]=i[s+6]=e*r)+r;return i}async load(){if(this.i>=0)return;this.i=0;const e=await qa;if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw"Wasm binary is no array buffer!";const i=await self.WebAssembly.instantiate(e,this.imports);this.e=i.instance.exports,this.i=this.e.constructor(),t.segsX=this.e.segsX.value,t.segsY=this.e.segsY.value,t._textureBuffer360=t.getTextureBuffer(t.segsX,t.segsY),this._vertexBuffer=new Float32Array(this.b,this.e.getVertexBuffer(this.i)+32,18),this._vertexBuffer360=new Float32Array(this.b,this.e.getVertexBuffer360(this.i)+32,18*t.segsX*t.segsY),this.unsubscribe.push(this.micrio.barebone.subscribe((t=>this.e.setBareBone(this.i,this.bareBone=t))))}unbind(){var t;for(this.stop();this.unsubscribe.length;)null==(t=this.unsubscribe.shift())||t();this.requests.forEach((t=>Ba(t))),this.requests.clear();for(let e in this.timeouts)clearTimeout(this.timeouts[e]);this.timeouts={},this.loadStates={},this.tileLoaded={},this.tileOpacity={};for(let e in this.tileLoaded)this.deleteTile(Number(e));this.i>0&&this.e.reset(this.i)}getPtr(){return this.i}addCanvas(t){var e,i,r,n,s,o,a,l,c,u,d;const h=t.$info;if(!h)return;if(t.error)return void this.micrio.loading.set(!1);if(!(t.noImage||h.width&&h.height))throw"Invalid Micrio image size";const m=t.$settings;this.isGallery=!!h.gallery||t.isOmni,(null==(e=m.gallery)?void 0:e.archive)&&this.e.setHasArchive(this.i,!0,m.gallery.archiveLayerOffset??0),h.version&&Number(h.version)<=3.1&&this.e.setNoUnderzoom(this.i,!0);const v=!!m.limitToCoverScale,p=v||"cover"==m.initType;t.noImage&&this.micrio.loading.set(!1);const f=[.5,.5],g=m.focus,w=!!h.spacesId;g&&(isNaN(g[0])||null===g[0]||(f[0]=g[0]),isNaN(g[1])||null===g[1]||(f[1]=g[1])),h.is360&&(t.camera.trueNorth=(null==(i=m._360)?void 0:i.trueNorth)??.5);const b=null==(r=m._360)?void 0:r.video,y=h.is360&&b&&(b.src||"video"in b&&b.video),k=!!this.isGallery&&("switch"==(null==(n=m.gallery)?void 0:n.type)||"omni"==(null==(s=m.gallery)?void 0:s.type)||"swipe-full"==(null==(o=m.gallery)?void 0:o.type)),T=(null==(l=null==(a=m.omni)?void 0:a.layers)?void 0:l.length)??1;m.omni&&(m.omni.layerStartIndex=Math.min(T-1,(null==(c=m.omni)?void 0:c.layerStartIndex)??0)),t.ptr=this.e._constructor(this.i,h.width,h.height,h.tileSize??1024,h.is360??!1,t.noImage,!(!h.isSingle&&!y),t.opacity,m.freeMove??!1,v,p,(m.zoomLimit||1)*(!1!==m.zoomLimitDPRFix?this.micrio.canvas.getRatio(t.$settings):1),m.camspeed??1,t.camera.trueNorth,k,!!(null==(u=m.gallery)?void 0:u.isSpreads)&&"swipe"==m.gallery.type,t.isOmni,m.pinchZoomOutLimit??!1,T,(null==(d=m.omni)?void 0:d.layerStartIndex)??0),this.bindCamera(t),t.opts.area&&t.camera.setArea(t.opts.area,{direct:!0,noDispatch:!0,noRender:!0}),(null==m?void 0:m.crossfadeDuration)&&this.e.setCrossfadeDuration(this.i,m.crossfadeDuration),(null==m?void 0:m.embedFadeDuration)&&this.e.setEmbedFadeDuration(this.i,m.embedFadeDuration),void 0!==(null==m?void 0:m.dragElasticity)&&this.e.setDragElasticity(this.i,m.dragElasticity),(null==m?void 0:m.skipBaseLevels)&&this.e.setSkipBaseLevels(this.i,m.skipBaseLevels),(null==m?void 0:m.omni)&&t.camera.setOmniSettings(),this.micrio.hasAttribute("data-limited")&&this.e._setLimited(t.ptr,!0),this.images.push(t),this.e._sendViewport(t.ptr);const _=this.e.getNumTiles(this.i);_>0&&(this.tileOpacity[_-1]=1,this.baseTiles.push(_-1));const x=this.e._getPMatrix(t.ptr);this._pMatrices[x]=new Float32Array(this.b,x+32,16);const E=Ki(t.state.view)||m.view;E&&"0,0,1,1"!=E.toString()?this.e._setView(t.ptr,E[0],E[1],E[2],E[3],!1,!1,!1):!w&&h.is360||!f||"0.5,0.5"==f.toString()||(this.e._setCoo(t.ptr,f[0],f[1],0,0,performance.now()),m.focus=void 0),t.video.subscribe((t=>t&&t.addEventListener("play",this.render))),t.noImage&&t.visible.set(!0),this.setCanvas(t)}bindCamera(t){this.cameras.set(t.ptr,t.camera),t.camera.assign(this.e,new Float64Array(this.b,this.e._getView(t.ptr)+32,4),new Float64Array(this.b,this.e._getXY(t.ptr,0,0)+32,5),new Float64Array(this.b,this.e._getCoo(t.ptr,0,0)+32,5),new Float32Array(this.b,this.e._getMatrix(t.ptr)+32,16),new Float32Array(this.b,this.e._getQuad(t.ptr,0,0,0,0,0,0)+32,16))}setCanvas(t){var e;if(t&&!(t.ptr>0&&t.ptr==this.c))if(t.ptr<0)br(t.info).then((e=>{e&&this.micrio.$current&&(e.isIIIF||t.opts.secondaryTo||e.id==this.micrio.$current.id)&&(this.addCanvas(t),t.embeds.length&&t.embeds.forEach((e=>this.addEmbed(e,t))))}));else if(this.c!=t.ptr){const i=t.is360&&this.c>=0?this.e._getYaw(this.c):0,r=t.is360&&this.c>=0?this.e._getPitch(this.c):0;this.c=t.ptr,t.is360&&!this.preventDirectionSet&&i&&r&&this.e._setDirection(this.c,i,r,!0),0==this.e._getTargetOpacity(t.ptr)&&this.e._fadeIn(t.ptr),(null==(e=t.$settings.omni)?void 0:e.layerStartIndex)&&t.state.layer.set(t.$settings.omni.layerStartIndex),this.preventDirectionSet=!1,this.ready=!0,this.render()}}removeCanvas(t){if(t.ptr<0)throw"Canvas is not placed yet";this.e._remove(t.ptr),this.render()}render(){this.raf<0&&(this.raf=this.micrio.webgl.display.requestAnimationFrame(this.draw))}draw(t=performance.now()){var e,i;this.micrio.isConnected&&(this.raf=-1,this.drawing=!1,this.now=t,(1==this.e.shouldDraw(this.i,t)||this.micrio.keepRendering||this.micrio.events.isNavigating||!1===(null==(i=null==(e=this.micrio._current)?void 0:e._video)?void 0:i.paused))&&this.render(),this.isGallery&&this.drawStart(),this.drawn.length=0,this.e.draw(this.i),this.micrio.events.dispatch("draw"),this.cleanup(),this.micrio.webgl.drawEnd())}stop(){this.raf<0||(this.micrio.webgl.display.cancelAnimationFrame(this.raf),this.raf=-1)}drawTile(t,e,i,r,n,s,o,a){this.drawn.push(e),e in this.toDelete&&delete this.toDelete[e];const l=Ua(),c=this.images[t],u="camera"in c&&c.isVideo,d="camera"in c&&c.is360,h="camera"in c?c:c.image,m="frame"in c?c.frame:void 0;if(!this.loadStates[e]&&l<Ca){if(this.bareBone?l>2&&o:a&&o&&l>0)return!1;if(u&&!d)this.loadStates[e]=2,this.textures[e]=this.micrio.webgl.getTexture();else{this.loadStates[e]=1;const t=h.getTileSrc(i,r,n,m);if(!t)return this.loadStates[e]=0,!1;this.getTexture(e,t,o,{noSmoothing:"$info"in c&&c.$settings.noSmoothing})}}else if(this.loadStates[e]>=2){this.drawing||this.drawStart();const t=this.textures[e];if(null!=t){if(u){if(!h._video||!h._video.dataset.playing)return!1;this.micrio.webgl.updateTexture(t,h._video)}this.micrio.webgl.drawTile(t,s,d)}return 2==this.loadStates[e]&&(this.loadStates[e]=3,this.tileLoaded[e]=this.now),!0}return!1}drawStart(){this.drawing||(this.micrio.webgl.drawStart(),this.drawing=!0)}getTexture(t,e,i,r={}){if(this.textures[t]||this.requests.has(t)||!r.force&&Ua()>=Ca)return;const n=Ta.db.has(e);n||this.micrio.loading.set(!0),this.requests.set(t,e),(n?Ta.getImage(e):Fa(e)).then((e=>this.gotTexture(t,e,i,r.noSmoothing))).catch((()=>this.deleteRequest(t)))}gotTexture(t,e,i,r){this.textures[t]=this.micrio.webgl.getTexture(e,this.textures[t],r),null!=self.ImageBitmap&&e instanceof ImageBitmap&&e.close instanceof Function&&e.close(),this.loadStates[t]=2,this.timeouts[t]=setTimeout((()=>{this.deleteRequest(t)}),i?150:50)}deleteRequest(t){this.requests.delete(t),clearTimeout(this.timeouts[t]),delete this.timeouts[t],this.requests.size||this.micrio.loading.set(!1)}deleteTile(t){this.micrio.webgl.gl.deleteTexture(this.textures[t]),delete this.textures[t],delete this.toDelete[t],delete this.loadStates[t],delete this.tileOpacity[t],delete this.tileLoaded[t],clearTimeout(this.timeouts[t]),delete this.timeouts[t]}cleanup(){const t=this.prevDrawn.filter((t=>this.drawn.indexOf(t)<0&&this.loadStates[t]>0&&this.baseTiles.indexOf(t)<0)),e=performance.now();for(let r=0;r<t.length;r++){const i=t[r];switch(this.tileOpacity[r]=0,this.loadStates[i]){case 1:const t=this.requests.get(i);t&&Ba(t),delete this.loadStates[i];break;case 2:this.requests.has(i)&&this.deleteRequest(i),delete this.loadStates[i],this.deleteTile(i);break;case 3:i in this.toDelete||(this.toDelete[i]=e)}}this.prevDrawn=this.drawn.slice(0);const i=mr.iOS?5:30;for(let r in this.toDelete)(e-this.toDelete[r])/1e3>i&&this.deleteTile(Number(r))}resize(t){this.e.resize(this.i,t.width,t.height,t.left,t.top,t.ratio,t.scale,t.portrait),this.ready&&(this.stop(),this.draw())}addEmbed(t,e,i={}){if("camera"in t&&i.asImage)return this.addImage(t,e,!0,i.opacity??1);{const r="$info"in t?t.$info:e.$info;if(!r)return;this.images.push(t);const n=t.opts.area??[0,0,1,1],s=t instanceof xa?t.$settings._360??{}:{};t.ptr=this.e._addImage(e.ptr,n[0],n[1],n[2],n[3],r.width,r.height,r.tileSize||1024,r.isSingle??!1,r.isVideo??!1,i.opacity??1,s.rotX??0,s.rotY??0,s.rotZ??0,s.scale??1,i.fromScale??0),this.tileOpacity[t.baseTileIdx=this.e.getNumTiles(this.i)-1]=1,this.baseTiles.push(t.baseTileIdx)}}setActiveImage(t,e,i){this.e._setActiveImage(t,e,i??0)}setActiveLayer(t,e){this.e._setActiveLayer(t,e)}fadeImage(t,e,i=!1){this.cameras.has(t)?this.e._fadeTo(t,e,i):this.e._fadeImage(t,e,i),this.render()}setFocus(t,e,i=!1){this.e._setFocus(t,e[0],e[1],e[2],e[3],i)}};Wa._textureBuffer=Wa.getTextureBuffer(1,1);let Xa=Wa;const ja=new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);class Ga{constructor(t,e,i){if(this.gl=t,this.program=t.createProgram(),e.webgl.getShader(this.program,t.VERTEX_SHADER,"\nattribute vec2 a_position; // Vertex position (-1 to 1)\nattribute vec2 a_texCoord; // Texture coordinate (0 to 1)\n\nvarying vec2 v_texCoord; // Pass texCoord to fragment shader\n\nvoid main() {\n\tv_texCoord = a_texCoord; // Pass through texture coordinate\n\tgl_Position = vec4(a_position, 0.0, 1.0); // Set clip space position\n}"),e.webgl.getShader(this.program,t.FRAGMENT_SHADER,i),t.linkProgram(this.program),t.getProgramParameter(this.program,t.LINK_STATUS)||console.error("Postprocess shader link error:",t.getProgramInfoLog(this.program)),t.useProgram(this.program),this.ppPositionLoc=t.getAttribLocation(this.program,"a_position"),this.ppTexCoordLoc=t.getAttribLocation(this.program,"a_texCoord"),this.ppTimeLoc=t.getUniformLocation(this.program,"u_time"),this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight,0,t.RGBA,t.UNSIGNED_BYTE,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),this.frameBuffer=t.createFramebuffer(),t.bindFramebuffer(t.FRAMEBUFFER,this.frameBuffer),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture,0),t.checkFramebufferStatus(t.FRAMEBUFFER)!==t.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer not complete");t.bindFramebuffer(t.FRAMEBUFFER,null),this.quad=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,this.quad),t.bufferData(t.ARRAY_BUFFER,ja,t.STATIC_DRAW)}render(){const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,null),t.useProgram(this.program),t.bindBuffer(t.ARRAY_BUFFER,this.quad),t.enableVertexAttribArray(this.ppPositionLoc),t.vertexAttribPointer(this.ppPositionLoc,2,t.FLOAT,!1,4*Float32Array.BYTES_PER_ELEMENT,0),t.enableVertexAttribArray(this.ppTexCoordLoc),t.vertexAttribPointer(this.ppTexCoordLoc,2,t.FLOAT,!1,4*Float32Array.BYTES_PER_ELEMENT,2*Float32Array.BYTES_PER_ELEMENT),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,this.texture),t.uniform1f(this.ppTimeLoc,performance.now()/1e3),t.drawArrays(t.TRIANGLE_STRIP,0,4)}resize(){const t=this.gl;t.bindTexture(t.TEXTURE_2D,this.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight,0,t.RGBA,t.UNSIGNED_BYTE,null),t.bindTexture(t.TEXTURE_2D,null)}}const Ya=/firefox/i.test(navigator.userAgent),Ha=`\nprecision mediump float; // Use medium precision for fragment calculations\n\nvarying highp vec2 vTextureCoord; // Received texture coordinate from vertex shader\n\nuniform sampler2D uSampler; // The tile texture\nuniform float opacity; // Tile opacity (for fading)\nuniform int noTexture; // Flag indicating if texture is missing/not loaded\n\nvoid main() {\n\tif(noTexture==1) { // If texture is missing\n\t\tgl_FragColor = vec4(.1,.1,.1,.1); // Draw a placeholder color (dark semi-transparent gray)\n\t} else {\n\t${Ya?"\n\t\t// Firefox premultiplied alpha workaround\n\t\tvec4 textureColor = texture2D(uSampler, vTextureCoord);\n\t\t// Manually apply opacity to RGB based on new alpha\n\t\tfloat newAlpha = min(1., textureColor.a * opacity);\n\t\tgl_FragColor = vec4(textureColor.rgb * newAlpha, newAlpha);":"\n\t\t// Standard alpha blending (premultiplied alpha assumed in blendFunc)\n\t\tgl_FragColor = texture2D(uSampler, vTextureCoord) * opacity;"}\n\t\t// Debug: Draw red instead of texture\n\t\t//gl_FragColor = vec4(1.,0.,0.,1.);\n\t}\n}`;class Za{constructor(t){this.micrio=t,this.display=self,this.txtAttr=-1,this.posAttr=-1,this.was360=!1}init(){var t;const e="WebGL2RenderingContext"in window,i=this.micrio.canvas.element.getContext(e?"webgl2":"webgl",{alpha:!0,preserveDrawingBuffer:this.micrio.hasAttribute("data-preserve-drawing-buffer"),stencil:!1,antialias:!1,depth:!1,desynchronized:!1,powerPreference:"high-performance"});if(e?!(i instanceof window.WebGL2RenderingContext):!(i instanceof window.WebGLRenderingContext))throw"Error creating WebGL context. Does your browser support WebGL?";this.gl=i;const r=null==(t=this.micrio.$current)?void 0:t.$settings.postProcessingFragmentShader;r&&(this.postpocessor=new Ga(i,this.micrio,r),this.micrio.keepRendering=!0);const n=i.createProgram();if(!(n instanceof WebGLProgram))throw"Could not create shader program";this.program=n,this.getShader(this.program,i.VERTEX_SHADER,"\nuniform mat4 GLMatrix; // Combined ModelViewProjection matrix from Wasm\n\nattribute vec3 pos; // Vertex position (from Wasm buffer)\nattribute vec2 aTextureCoord; // Texture coordinate (from static buffer)\n\nvarying highp vec2 vTextureCoord; // Pass texture coordinate to fragment shader\n\nvoid main()\n{\n\tgl_Position = GLMatrix * vec4(pos, 1.0); // Calculate clip space position\n\tvTextureCoord = aTextureCoord; // Pass through texture coordinate\n}"),this.getShader(this.program,i.FRAGMENT_SHADER,Ha),i.linkProgram(this.program),i.getProgramParameter(this.program,i.LINK_STATUS)||console.error("Main shader link error:",i.getProgramInfoLog(this.program)),i.useProgram(this.program),i.blendFunc(i.ONE,i.ONE_MINUS_SRC_ALPHA),i.enable(i.BLEND),i.disable(i.DEPTH_TEST),i.clearColor(0,0,0,0);const s=i.getUniformLocation(this.program,"opacity");if(!s)throw"Could not create opacity WebGL binding!";this.opaLoc=s;const o=i.getUniformLocation(this.program,"GLMatrix");if(!o)throw"Could not create matrix WebGL binding!";this.pmLoc=o;const a=i.getUniformLocation(this.program,"noTexture");if(!a)throw"Could not bind noTexture uniform";this.noTxtLoc=a,this.txtAttr=i.getAttribLocation(this.program,"aTextureCoord");const l=i.createBuffer();if(!l)throw"Could not connect texture buffer";this.txtBuffer=l,i.bindBuffer(i.ARRAY_BUFFER,this.txtBuffer),i.bufferData(i.ARRAY_BUFFER,Xa._textureBuffer,i.STATIC_DRAW);const c=i.createBuffer();if(!c)throw"Could not bind geometry buffer";this.geomBuffer=c,this.posAttr=i.getAttribLocation(this.program,"pos"),this.linkBuffers(),i.viewport(0,0,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight)}linkBuffers(){const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,this.geomBuffer),t.bufferData(t.ARRAY_BUFFER,this.micrio.wasm._vertexBuffer,t.STATIC_DRAW),t.enableVertexAttribArray(this.txtAttr),t.bindBuffer(t.ARRAY_BUFFER,this.txtBuffer),t.vertexAttribPointer(this.txtAttr,2,t.FLOAT,!1,0,0),t.enableVertexAttribArray(this.posAttr),t.bindBuffer(t.ARRAY_BUFFER,this.geomBuffer),t.vertexAttribPointer(this.posAttr,3,t.FLOAT,!1,0,0)}dispose(t=!1){const e=this.gl;if(e){if(e.bindBuffer(e.ARRAY_BUFFER,null),e.bindTexture(e.TEXTURE_2D,null),e.deleteBuffer(this.txtBuffer),e.deleteBuffer(this.geomBuffer),t){const t=e.getExtension("WEBGL_lose_context");t instanceof Object&&t.loseContext instanceof Function&&t.loseContext()}this.gl=null}}getShader(t,e,i){const r=this.gl.createShader(e);if(!r)throw"Could not create shader!";if(this.gl.shaderSource(r,i),this.gl.compileShader(r),!this.gl.getShaderParameter(r,this.gl.COMPILE_STATUS))throw console.error("Error compiling shader",this.gl.getShaderInfoLog(r)),this.gl.deleteProgram(t),new Error(`Shader compilation failed: ${this.gl.getShaderInfoLog(r)}`);this.gl.attachShader(t,r),this.gl.deleteShader(r)}getTexture(t,e,i){const r=this.gl,n=e??r.createTexture();if(!n)throw"Could not create texture!";return r.bindTexture(r.TEXTURE_2D,n),t&&r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,i?r.NEAREST:r.LINEAR),n}updateTexture(t,e){const i=this.gl;i.bindTexture(i.TEXTURE_2D,t),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,e),i.bindTexture(i.TEXTURE_2D,null)}drawStart(){const t=this.gl;this.postpocessor&&t.bindFramebuffer(t.FRAMEBUFFER,this.postpocessor.frameBuffer),this.gl.clear(this.gl.COLOR_BUFFER_BIT)}drawEnd(){this.postpocessor&&(this.postpocessor.render(),this.gl.useProgram(this.program),this.linkBuffers())}drawTile(t,e=1,i=!1){this.gl.uniform1i(this.noTxtLoc,t?0:1),this.gl.uniform1f(this.opaLoc,e),t&&(this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,t));const r=i?6*Xa.segsX*Xa.segsY:6;i!=this.was360&&(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.txtBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,i?Xa._textureBuffer360:Xa._textureBuffer,this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.geomBuffer),this.was360=i),this.gl.bufferData(this.gl.ARRAY_BUFFER,i?this.micrio.wasm._vertexBuffer360:this.micrio.wasm._vertexBuffer,this.gl.STATIC_DRAW),this.gl.drawArrays(this.gl.TRIANGLES,0,r)}}const Ka={passive:!0},Ja={passive:!0,capture:!0},Qa={passive:!1};function tl(t){t.stopPropagation(),t.preventDefault()}const el=["move","marker-open","marker-opened","marker-closed","tour-start","tour-step","tour-stop","tour-event","media-play","media-pause","splitscreen-start","splitscreen-stop"];class il{constructor(t){this.micrio=t,this.enabled=Zi(!1),this.hooked=!1,this.hookedDrag=!1,this.panning=!1,this.pinching=!1,this.clicked=!1,this.wheeling=!1,this.controlZoom=!1,this.twoFingerPan=!1,this.pScale=1,this.wheelEndTo=-1,this.hasTouch=mr.hasTouch&&"ontouchstart"in self,this.hasUsedCtrl=!1,this.vars={drag:{prev:void 0,start:[0,0,0]},dbltap:{lastTapped:0},pinch:{image:void 0,sDst:0,wasPanning:!1},updates:{to:-1,stack:[]}},this.scrollHooked=!1,this.el=t.canvas.element,this.dStart=this.dStart.bind(this),this.dMove=this.dMove.bind(this),this.dStop=this.dStop.bind(this),this.pStart=this.pStart.bind(this),this.pMove=this.pMove.bind(this),this.pStop=this.pStop.bind(this),this.gesture=this.gesture.bind(this),this.keydown=this.keydown.bind(this),this.wheel=this.wheel.bind(this),this.wheelEnd=this.wheelEnd.bind(this),this.dbltap=this.dbltap.bind(this),this.dblclick=this.dblclick.bind(this),this.updateEvent=this.updateEvent.bind(this),this.dispatchUpdate=this.dispatchUpdate.bind(this),this.enabled.subscribe((t=>{t?this.hook():this.unhook()})),t.visible.subscribe((t=>this.visible=t)),t.current.subscribe((t=>{t&&!this.settings&&br(t.info).then((e=>{e&&(this.settings=t.$settings,!t.error&&this.settings.hookEvents&&this.enabled.set(!0))}))}))}get $enabled(){return Ki(this.enabled)}get isNavigating(){return this.panning||this.pinching||this.wheeling||this.clicked}dispatch(t,e){this.micrio.dispatchEvent(new CustomEvent(t,void 0!==e?{detail:e}:void 0))}getImage(t){var e;if(!this.visible)return;const i=this.micrio.offsetWidth,r=this.micrio.offsetHeight,n=Math.max(0,Math.min(1,t.x/i)),s=Math.max(0,Math.min(1,t.y/r)),o=null==(e=this.visible)?void 0:e.find((t=>!!t.opts.secondaryTo)),a=1==this.visible.length?this.visible[0]:this.visible.find((({grid:t,opts:{area:e}})=>(!o||!t)&&(!!e&&(n>=e[0]&&n<=e[2]&&s>=e[1]&&s<=e[3]))));return a&&a.opts.secondaryTo&&a.opts.isPassive&&a.opts.area&&(t.x-=a.opts.area[0]*i,t.y-=a.opts.area[1]*r),!a||a.grid||a.opts.secondaryTo&&a.opts.isPassive?this.micrio.$current:a}hook(){if(this.hooked)return;this.hooked=!0;const t=this.settings;t&&(this.twoFingerPan=!!t.twoFingerPan,this.twoFingerPan?this.micrio.setAttribute("data-can-pan",""):this.micrio.removeAttribute("data-can-pan"),(null==t?void 0:t.hookKeys)&&this.hookKeys(),t.hookDrag&&this.hookDrag(),t.noZoom||this.hookZoom(),this.hookUpdate())}unhook(){this.hooked&&(this.hooked=!1,this.unhookDrag(),this.unhookZoom(),this.unhookKeys(),this.unhookUpdate())}hookKeys(){document.addEventListener("keydown",this.keydown)}unhookKeys(){document.removeEventListener("keydown",this.keydown)}hookZoom(){const t=this.settings;this.controlZoom=!!(null==t?void 0:t.controlZoom),t&&!t.hookPinch||this.hookPinch(),(!t||t.hookScroll||this.controlZoom)&&this.hookScroll(),this.micrio.canvas.$isMobile?this.el.addEventListener("touchstart",this.dbltap):this.el.addEventListener("dblclick",this.dblclick)}unhookZoom(){this.unhookPinch(),this.unhookScroll(),this.micrio.canvas.$isMobile?this.el.removeEventListener("touchstart",this.dbltap):this.el.removeEventListener("dblclick",this.dblclick)}hookScroll(){this.scrollHooked||(this.micrio.addEventListener("wheel",this.wheel,Qa),this.scrollHooked=!0)}unhookScroll(){this.micrio.removeEventListener("wheel",this.wheel,Qa),this.scrollHooked=!1}hookPinch(){this.hasTouch&&this.el.addEventListener("touchstart",this.pStart,Ka),mr.OSX&&(this.micrio.addEventListener("gesturestart",this.gesture,Qa),this.micrio.addEventListener("gesturechange",this.gesture,Qa),this.micrio.addEventListener("gestureend",this.gesture,Qa))}unhookPinch(){this.el.removeEventListener("touchstart",this.pStart,Ka),mr.OSX&&(this.micrio.removeEventListener("gesturestart",this.gesture,Qa),this.micrio.removeEventListener("gesturechange",this.gesture,Qa),this.micrio.removeEventListener("gestureend",this.gesture,Qa))}hookDrag(){this.hookedDrag||(this.hookedDrag=!0,this.micrio.addEventListener("dragstart",tl),this.micrio.addEventListener("pointerdown",this.dStart,Ka),this.micrio.setAttribute("data-hooked",""))}unhookDrag(){this.hookedDrag&&(this.hookedDrag=!1,this.micrio.removeEventListener("pointerdown",this.dStart,Ka),this.micrio.removeEventListener("dragstart",tl),this.micrio.removeAttribute("data-hooked"))}dStart(t,e=!1){var i;if(0!=t.button||"touch"==t.pointerType&&this.twoFingerPan)return;if(!e&&t.target!=this.el)return;if((null==(i=this.micrio.$current)?void 0:i.isOmni)&&t.shiftKey)return;if(this.panning)return void(t instanceof TouchEvent&&t.touches.length>1&&this.dStop());const r=this.getImage({x:t.clientX,y:t.clientY});r&&(this.panning=!0,this.vars.drag.start=[t.clientX,t.clientY,performance.now()],this.micrio.addEventListener("pointermove",this.dMove,Ka),this.micrio.addEventListener("pointerup",this.dStop,Ka),this.micrio.setAttribute("data-panning",""),this.micrio.wasm.e._panStart(r.ptr),this.micrio.wasm.render(),this.dispatch("panstart"))}dMove(t){var e;const i=t.clientX,r=t.clientY,n=ar(this.vars.drag.start[0]-t.clientX,this.vars.drag.start[1]-t.clientY);!this.capturedPointerId&&n>10&&this.micrio.setPointerCapture(this.capturedPointerId=t.pointerId),this.vars.drag.prev&&(null==(e=this.getImage({x:i,y:r}))||e.camera.pan(this.vars.drag.prev[0]-i,this.vars.drag.prev[1]-r)),this.vars.drag.prev=[i,r]}dStop(t,e=!1,i=!1){if(this.panning){if(this.panning=!1,this.vars.drag.prev=void 0,this.micrio.removeEventListener("pointermove",this.dMove,Ka),this.micrio.removeEventListener("pointerup",this.dStop,Ka),this.capturedPointerId&&this.micrio.releasePointerCapture(this.capturedPointerId),this.capturedPointerId=void 0,this.micrio.removeAttribute("data-panning"),t&&0==e){const e=this.getImage({x:t.clientX,y:t.clientY});e&&(this.micrio.wasm.e._panStop(e.ptr),this.micrio.wasm.render())}i||this.dispatch("panend",t?{duration:performance.now()-this.vars.drag.start[2],movedX:t.clientX-this.vars.drag.start[0],movedY:t.clientY-this.vars.drag.start[1]}:void 0)}}pStart(t){if(!(mr.hasTouch&&t instanceof TouchEvent))return;if(this.twoFingerPan&&t.touches.length<2)return;if(this.pinching||2!=t.touches.length)return void this.pStop(t);t.stopPropagation(),this.vars.pinch.wasPanning=this.panning,this.dStop(void 0,!1,!0);const e=t.touches;this.pinching=!0,self.addEventListener("touchmove",this.pMove,Ja),self.addEventListener("touchend",this.pStop,Ja),this.micrio.setAttribute("data-pinching",""),this.vars.pinch.image=this.getImage({x:e[0].clientX,y:e[0].clientY}),this.vars.pinch.sDst=ar(e[0].clientX-e[1].clientX,e[0].clientY-e[1].clientY),this.pinchFactor=void 0,this.vars.pinch.image&&this.micrio.wasm.e._pinchStart(this.vars.pinch.image.ptr),this.micrio.wasm.render(),this.dispatch("pinchstart"),this.twoFingerPan&&this.dispatch("panstart")}pMove(t){if(!(mr.hasTouch&&t instanceof TouchEvent))return;const e=t.touches;if((null==e?void 0:e.length)<2)return;const i={x:e[0].clientX,y:e[0].clientY},r={x:e[1].clientX,y:e[1].clientY},n=this.vars.pinch,s=n.image;if(s){if((null==s?void 0:s.opts.secondaryTo)&&s.opts.isPassive&&s.opts.area){const t=s.opts.area[0]*this.micrio.offsetWidth,e=s.opts.area[1]*this.micrio.offsetHeight;i.x-=t,r.x-=t,i.y-=e,r.y-=e}this.pinchFactor=ar(e[0].clientX-e[1].clientX,e[0].clientY-e[1].clientY)/n.sDst,this.micrio.wasm.e._pinch(s.ptr,i.x,i.y,r.x,r.y)}}pStop(t){if(!this.pinching)return;this.pinching=!1,self.removeEventListener("touchmove",this.pMove,Ja),self.removeEventListener("touchend",this.pStop,Ja),this.micrio.removeAttribute("data-pinching");const e=this.vars.pinch.image;e&&(this.micrio.wasm.e._pinchStop(e.ptr,performance.now()),this.micrio.wasm.render()),this.vars.pinch.image=void 0,this.pinchFactor=void 0,this.dispatch("pinchend"),this.twoFingerPan&&!this.vars.pinch.wasPanning&&this.dispatch("panend"),t instanceof TouchEvent&&1==t.touches.length&&this.dStart(t,!0)}gesture(t){var e;const i=t.scale;if(1==i)return;const r=this.pScale-i;if(this.pScale=i,t.stopPropagation(),t.preventDefault(),"gesturechange"==t.type){const i=t;null==(e=this.getImage({x:i.clientX,y:i.clientY}))||e.camera.zoom(r*this.micrio.canvas.viewport.height,0,i.clientX,i.clientY)}}wheel(t,e=!1,i=0){var r;if(!(t instanceof WheelEvent))return;if(this.controlZoom&&!t.ctrlKey)return;if(!e&&t.target instanceof Element&&t.target!=this.el&&!t.target.classList.contains("marker")&&!t.target.hasAttribute("data-scroll-through"))return;let n=t.deltaY;t.ctrlKey&&(this.hasUsedCtrl=!0);const s=this.controlZoom&&10*n%1==0,o=this.hasUsedCtrl&&!s,a=mr.firefox||t.ctrlKey||!o;if(this.twoFingerPan&&(null==(r=this.micrio.$current)?void 0:r.camera.isZoomedOut()))return;t.stopPropagation(),t.preventDefault(),(mr.OSX||o)&&t.ctrlKey&&(n*=10);const l={x:t.clientX,y:t.clientY},c=this.getImage(l);if(c){if(a){const t=this.micrio.canvas.viewport;let e=0;const r=this.micrio.getBoundingClientRect();c.camera.zoom(1*n/Math.sqrt(t.scale),0,l.x-i-r.left,l.y-r.top-e)}else c.camera.pan(t.deltaX,t.deltaY);this.wheeling=!0,clearTimeout(this.wheelEndTo),this.wheelEndTo=setTimeout(this.wheelEnd,50)}}wheelEnd(){this.wheeling=!1}dbltap(t){if(!(mr.hasTouch&&t instanceof TouchEvent))return;const e=performance.now();1==t.touches.length&&e-this.vars.dbltap.lastTapped<250&&(t.stopPropagation(),t.preventDefault(),this.dblclick(t)),this.vars.dbltap.lastTapped=e}dblclick(t){var e;const i=t instanceof TouchEvent?t.touches[0]:t,r=this.getImage({x:i.clientX,y:i.clientY});null==r||r.camera.zoom(-300,500,i.clientX,i.clientY,1,!(null==(e=this.micrio.$current)?void 0:e.album)).catch((()=>{}))}keydown(t){var e;if(this.panning||this.pinching||!(null==(e=this.micrio.$current)?void 0:e.camera))return;const i=this.micrio.$current.camera,r=this.micrio.offsetWidth/2,n=this.micrio.offsetHeight/2;let s=0,o=0;switch(t.key){case"ArrowUp":o-=n;break;case"ArrowDown":o+=n;break;case"ArrowLeft":s-=r;break;case"ArrowRight":s+=r;break;case"+":case"=":i.zoom(-200,150);break;case"-":case"_":i.zoom(200,150);break;default:return}t.preventDefault(),t.stopPropagation(),0==s&&0==o||i.pan(s,o,150)}hookUpdate(){el.forEach((t=>this.micrio.addEventListener(t,this.updateEvent)))}unhookUpdate(){el.forEach((t=>this.micrio.removeEventListener(t,this.updateEvent)))}updateEvent(t){if("move"==t.type&&!this.isNavigating)return;const e=this.vars.updates.stack;e[e.length-1]!=t.type&&e.push(t.type),clearTimeout(this.vars.updates.to),this.vars.updates.to<0&&(this.vars.updates.to=setTimeout(this.dispatchUpdate))}dispatchUpdate(){const t=this.vars.updates;clearTimeout(t.to),t.to=-1,t.stack.length&&(this.dispatch("update",t.stack),t.stack.length=0,t.to=setTimeout(this.dispatchUpdate,500))}}const rl=class t{constructor(t){this.micrio=t,this.isStatic=!1,this.loaded=!1,this.inited=!1,this.setting=!1,this.writeTitle=!1}hook(){this.isStatic="static"==this.micrio.getAttribute("data-router"),this.read=this.read.bind(this),this.write=this.write.bind(this),this.writeDeferred=this.writeDeferred.bind(this),br(this.micrio.current).then((()=>{this.loaded=!0,this.read()})),t.events.forEach((t=>this.micrio.addEventListener(t,this.write))),"i.micr.io"==location.hostname&&(this.writeTitle=!0),window.addEventListener(this.isStatic?"popstate":"hashchange",this.read)}unhook(){t.events.forEach((t=>this.micrio.removeEventListener(t,this.write))),window.removeEventListener(this.isStatic?"popstate":"hashchange",this.read)}findPage(t,e,i){var r,n;if(e)for(let s=0;s<e.length;s++){const o=(null==(n=null==(r=e[s])?void 0:r.i18n)?void 0:n[i])??e[s];let a=pr(o.title)==t?e[s]:this.findPage(t,e[s].children,i);if(a)return a}}read(){if(!this.loaded||this.setting)return;this.route=(this.isStatic?location.pathname:location.hash).slice(1);const[t,e,i,r,n]=this.route.split("/"),s=this.micrio.$current,o=t&&(null==s?void 0:s.id)!=t?this.micrio.open(t):void 0;s&&Promise.all([br(s.data,{allowUndefined:!0}),o?br(o.data,{allowUndefined:!0}):void 0]).then((t=>{var i,a;if(!t[0])return this.inited=!0;if(void 0===this.prevLang&&(this.prevLang=this.micrio.lang),!1===(null==o?void 0:o.$settings.routerMarkerTours))return;if((null==(i=t[0].pages)?void 0:i.length)&&r){const i=this.findPage(r.toLowerCase(),t[0].pages,e);if(i)return void this.micrio.state.popover.set({contentPage:i})}const l=r?n?t.map((t=>{var i;return null==(i=null==t?void 0:t.markerTours)?void 0:i.find((t=>{var i,n;return pr(null==(n=null==(i=t.i18n)?void 0:i[e])?void 0:n.slug)==r}))}))[0]:t.map((t=>{var i;return null==(i=null==t?void 0:t.tours)?void 0:i.find((t=>{var i,n;return pr(null==(n=null==(i=t.i18n)?void 0:i[e])?void 0:n.slug)==r}))}))[0]:void 0,c=n||!l&&r,u=c?null==(a=(t[1]??t[0]).markers)?void 0:a.find((t=>{var i,r,n;return((null==(r=null==(i=t.i18n)?void 0:i[e])?void 0:r.slug)??pr(t.title))==c||l&&"steps"in l&&(null==(n=l.stepInfo)?void 0:n.map((t=>t.marker)).find((t=>{var i,r;return(null==(r=null==(i=t.i18n)?void 0:i[e])?void 0:r.slug)==c})))})):void 0;u&&l&&"steps"in l?l.initialStep=l.steps.findIndex((t=>t.startsWith(u.id))):(u||this.micrio.state.popup.set(void 0),(o??s).state.marker.set(u)),this.micrio.state.tour.set(l),this.writeTitle&&this.setTitle(),this.inited=!0}))}setTitle(){var t,e,i,r,n,s,o,a,l,c;const u=Ki(this.micrio._lang),d=this.micrio.$current;if(!d)return;const h=[(null==(i=null==(e=null==(t=d.$data)?void 0:t.i18n)?void 0:e[u])?void 0:i.title)??(null==(r=null==d?void 0:d.$info)?void 0:r.title),null==(o=null==(s=null==(n=this.micrio.state.$tour)?void 0:n.i18n)?void 0:s[u])?void 0:o.title,null==(c=null==(l=null==(a=this.micrio.state.$marker)?void 0:a.i18n)?void 0:l[u])?void 0:c.title].filter((t=>!!t)).reverse();document.title=h.join(" - ")+" | Micrio"}write(t){if(this.micrio.$current&&this.loaded&&this.inited){if("marker-open"===t.type){const t=this.micrio.state.$marker;if(t&&t.data&&t.data.micrioLink)return}clearTimeout(this._to),this._to=setTimeout((()=>this.writeDeferred("load"==t.type)),50)}}writeDeferred(t){var e,i,r,n,s,o,a,l,c;const u=this.micrio.state.$tour;let d=this.micrio.$current,h=null==d?void 0:d.state.$marker;const m=this.micrio.lang;m!=this.prevLang&&(t=!0,this.prevLang=m);const v=(null==(r=null==(i=null==(e=null==d?void 0:d.$data)?void 0:e.i18n)?void 0:i[m])?void 0:r.title)??(null==(n=null==d?void 0:d.$info)?void 0:n.title)??"",p=!1===(null==d?void 0:d.$settings.routerMarkerTours),f=h&&"string"!=typeof h?(null==(s=h.i18n)?void 0:s[m])??h:void 0,g=null==(o=Ki(this.micrio.state.popover))?void 0:o.contentPage,w=g?(null==(a=g.i18n)?void 0:a[m])??g:void 0;let b=null==d?void 0:d.id;if(u&&"steps"in u&&u.steps.length&&u.stepInfo){const t=u.stepInfo.find((t=>t.markerId==u.steps.find((t=>!t.includes(",")))));t&&(b=t.micrioId,d=this.micrio.wasm.images.find((t=>t.id==b)),h||void 0===u.initialStep||(h=u.stepInfo[u.initialStep].marker))}const y=[b,m,pr(v)??"",...p?[]:w?[pr(w.title)]:[(null==(c=null==(l=null==u?void 0:u.i18n)?void 0:l[m])?void 0:c.slug)??null,(null==f?void 0:f.slug)??pr(null==f?void 0:f.title)??null]].filter((t=>!!t)).join("/");y!=this.route&&(this.setting=!0,this.isStatic?t?history.replaceState(null,"","/"+y+location.search):history.pushState(null,"","/"+y+location.search):location.hash=y,this.route=y,this.writeTitle&&this.setTitle(),setTimeout((()=>this.setting=!1),250))}};rl.events=["load","tour-start","tour-stop","marker-open","marker-closed","page-open","page-closed","lang-switch"];let nl=rl;const sl=class t{constructor(t){this.micrio=t,this.gtag="gtag"in window?window.gtag:void 0,this.hooked=!1,this.tag=this.tag.bind(this)}hook(){!this.hooked&&this.gtag&&(this.hooked=!0,this.tag(new CustomEvent("init")),t.events.forEach((t=>this.micrio.addEventListener(t,this.tag))))}unhook(){this.hooked&&(this.hooked=!1,this.tag(new CustomEvent("hide")),t.events.forEach((t=>this.micrio.removeEventListener(t,this.tag))))}tag(t){if(!this.gtag)return;const e=t.detail,i=this.micrio.$current,r={event_category:"Micrio",event_action:t.type};this.micrio.lang&&(r.culture=this.micrio.lang),"init"==t.type&&(r.micrio_version=oa),"load"==t.type&&(null==i?void 0:i.$info)&&(r.image_version=i.$info.version);const n=null!==e&&"object"==typeof e&&"currentStep"in e?e.currentStep:null;null!=n&&(r.event_value=n);const s=e&&e.title?e.title:i&&i.$info&&i.$info.title;r.event_label=this.micrio.id+(s?" - "+s:""),this.gtag("event",t.type,r)}};sl.events=["load","show","hide","marker-open","marker-opened","marker-closed","tour-start","tour-stop","tour-step","tour-ended"];let ol=sl;const al=t=>Math.round(1e5*t)/1e5,ll=class t{constructor(e,i){var r;this.micrio=e,this.image=i,this.images=[],this.current=[],this._grid=document.createElement("div"),this._buttons=new Map,this.clickable=!1,this.focussed=Zi(),this.markersShown=Zi([]),this.history=[],this.depth=Zi(0),this.aniDurationIn=1.5,this.aniDurationOut=.5,this.transitionDelay=.5,this.isHorizontal=!1,this.cellSizes=new Map,this.nextSize=new Map,this.timingFunction="ease",this.getString=(e,i={})=>{var r;return t.getString(e,{view:i.view,area:i.area,size:i.size??this.nextSize.get(e.id),cultures:null==(r="cultures"in e&&e.cultures?e.cultures:"")?void 0:r.replace(/,/g,"-")})},this.tourEvent=this.tourEvent.bind(this),this.updateGrid=this.updateGrid.bind(this);const n=i.$settings;this.clickable=!!n.gridClickable,void 0!==n.gridTransitionDuration&&(this.aniDurationIn=this.aniDurationOut=n.gridTransitionDuration),void 0!==n.gridTransitionDurationOut&&(this.aniDurationOut=n.gridTransitionDurationOut),this._grid.className="micrio-grid",this.set(null==(r=i.$info)?void 0:r.grid);const s=()=>Xt().then((()=>{this.hook(),e.events.dispatch("grid-load")}));i.isV5?s():e._lang.subscribe((t=>{t?Promise.all(this.images.filter((e=>{var i;return(e.$info&&"cultures"in e.$info&&(null==(i=e.$info)?void 0:i.cultures)||"").indexOf(t)>=0})).map((t=>br(t.data)))).then(s):s()})),e.events.dispatch("grid-init",this)}get $focussed(){return Ki(this.focussed)}hook(){if(this.micrio.state.marker.subscribe((t=>{var e,i;if(t&&"string"!=typeof t){const r=null==(e=t.data)?void 0:e._meta;if(null==r?void 0:r.gridSize){const e="number"==typeof r.gridSize?[r.gridSize,r.gridSize]:r.gridSize.split(",").map(Number),n=null==(i=this.images.find((e=>{var i,r;return null==(r=null==(i=e.$data)?void 0:i.markers)?void 0:r.find((e=>e==t))})))?void 0:i.id;n&&this.nextSize.set(n,e)}Xt().then((()=>{var t;const e=null==(t=null==r?void 0:r.gridAction)?void 0:t.split("|");(null==e?void 0:e.length)&&"string"==typeof e[0]&&this.action(e.shift(),e.join("|"))}))}})),this.clickable){this._grid.addEventListener("click",(t=>{const e=t.target.dataset.id;e&&this.focus(this.images.find((t=>t.id==e)))}));const t=t=>{t?this.removeGrid():this.placeGrid()};this.micrio.state.tour.subscribe(t),this.micrio.state.marker.subscribe(t),this.focussed.subscribe(t)}this.micrio.addEventListener("tour-event",this.tourEvent),this.micrio.addEventListener("serialtour-pause",(()=>this.images.forEach((t=>t.camera.pause())))),this.micrio.addEventListener("serialtour-play",(()=>this.images.forEach((t=>t.camera.resume()))))}clearTimeouts(){clearTimeout(this._to),clearTimeout(this._fadeTo)}set(t="",e={}){return this.lastPromise=new Promise(((i,r)=>{var n,s,o;null==(s=null==(n=this.image.$info)?void 0:n.settings)||delete s.focus,this.lastAction=void 0,!1===e.cover&&e.coverLimit&&(e.coverLimit=!1),e.coverLimit&&null==e.cover&&(e.cover=e.coverLimit),"string"!=typeof t&&(t=t.map((t=>t instanceof xa?{image:t}:t)).filter((t=>!!t.image.$info)).map((t=>this.getString(t.image.$info,t))).join(";"));const a=t.split(";").filter((t=>!!t)).map((t=>this.getImage(t))),l=this.$focussed,c=null==(o=e.transition)?void 0:o.endsWith("-delayed"),u="behind-delayed"==e.transition;switch(e.transition){case"crossfade":e.duration=0;break;case"behind":case"behind-delayed":const t=!0===e.coverLimit;e.forceAni=!0,e.coverLimit=t,e.forceAreaAni=!0;const i=c?1/a.length:1;let r=0;this.images.forEach((e=>{e.camera.setCoverLimit(t),a.find((t=>t.id==e.id))&&(e.camera.setArea([0,0,(null==l?void 0:l.id)==e.id?1:i,1],{noDispatch:!0,direct:!0}),e!=l&&e.camera.setView([0,0,1,1]),c&&this.micrio.wasm.e._setZIndex(e.ptr,a.length-r++))})),a.forEach((t=>t.view=[0,0,1,1]))}const d=this.image.ptr>=0,h=e.duration??(e.noHistory?this.aniDurationOut:this.aniDurationIn),m=this.nextCrossFadeDuration??this.image.$settings.crossfadeDuration??1,v=(h||this.aniDurationIn)/(u?2:1);if(this.nextCrossFadeDuration=void 0,d){const t=this.micrio.wasm.getPtr();this.micrio.wasm.e.setGridTransitionDuration(t,h),this.micrio.wasm.e.setCrossfadeDuration(t,v)}const p=!e.noBlur&&l;p&&this.blur(),!e.noHistory&&this.current.length&&this.depth.set(this.history.push({layout:this.current.map((t=>this.getString(t.$info,{view:t.state.$view,size:this.cellSizes.get(t.id)}))).join(";"),horizontal:this.isHorizontal,view:this.image.camera.getView()})),this.isHorizontal=!!e.horizontal,this.removeImages(this.images.filter((t=>!a.find((e=>e.id==t.id))))),this.printGrid(a,{horizontal:e.horizontal,keepGrid:e.keepGrid,scale:e.scale,columns:e.columns}),this.clearTimeouts();let f=!1;const g=()=>{this.clearTimeouts(),f||r()};d&&!e.noCamAni&&(e.view?this.image.camera.flyToView(e.view,{duration:1e3*h}).catch(g):this.image.camera.flyToFullView({duration:1e3*h}).catch(g)),this.nextSize.clear(),null==e.coverLimit&&(e.coverLimit=!0),e.coverLimit||a.forEach((t=>{var i;return null==(i=this.images.find((e=>e.id==t.id)))?void 0:i.camera.setCoverLimit(!!e.coverLimit)}));const w="appear-delayed"==e.transition,b=t=>t*this.transitionDelay+(t>0&&w?h:0);this.current=a.map(((t,i)=>this.placeImage(t,{duration:!e.forceAni&&p&&t.id!=(null==l?void 0:l.id)?0:h,delay:c?b(i):0,noCamAni:!!(w&&i>0)||!!e.noCamAni,forceAreaAni:!(w&&i>0)&&e.forceAreaAni,cover:e.cover}))),w&&this.current.slice(1).forEach((t=>this.micrio.wasm.e._fadeTo(t.ptr,.9999,!0)));const y=()=>this.current.forEach(((t,e)=>dr(c?1e3*(b(e)+(u?h/2:0)):0).then((()=>this.micrio.wasm.e._fadeIn(t.ptr))))),k=()=>{this.clearTimeouts(),requestAnimationFrame((()=>this.micrio.wasm.e.setCrossfadeDuration(this.micrio.wasm.getPtr(),m))),c&&this.images.forEach((t=>this.micrio.wasm.e._setZIndex(t.ptr,0))),e.coverLimit&&a.forEach((t=>{var i;return null==(i=this.images.find((e=>e.id==t.id)))?void 0:i.camera.setCoverLimit(!!e.coverLimit)})),this.clickable&&this.placeGrid(),this.lastAction=void 0,f=!0,i(this.current)};h||v?(e.noFade||(this._fadeTo=setTimeout(y,Math.max(0,h/2*1e3))),this._to=setTimeout(k,1e3*(Math.max(v,h)+(c?(a.length-1)*this.transitionDelay:0)))):(e.noFade||y(),k())}))}hasChanged(){return this.current.map((t=>t.id)).join(",")!=this.images.map((t=>t.id)).join(",")}getImage(t){var e,i;const r=t.split("|"),n=r[0].split(","),s=r[1]?r[1].split(",").map(Number):[1];let o=0,a=0;return{path:null==(e=this.image.$info)?void 0:e.path,id:n[0],width:o=Number(n[1])||o,height:a=Number(n[2])||a,isDeepZoom:"d"==n[3],isPng:"p"==n[4],isWebP:"w"==n[4],size:s,view:n[5]?n[5].split("/").map(Number):void 0,area:n[6]?n[6].split("/").map(Number):void 0,settings:vr(this.image.$settings||{},{focus:n[7]?n[7].split("-").map(Number):null}),cultures:(null==(i=n[8])?void 0:i.replace(/\-/g,","))||void 0}}getCols(t,e){let i=Math.ceil(e/Math.ceil(Math.sqrt(e)));if(t==e){const e=Math.floor(Math.sqrt(t)),r=[];for(let n=e;n<i+e;n++)t%n||r.push(n);r.length&&(i=r[Math.floor(r.length/2)])}return i}printGrid(t,e){var i;e.keepGrid||this.removeGrid();const r=t.reduce(((t,e)=>t+e.size.reduce(((t,e)=>e*t),1)),0),n=e.columns??(e.horizontal?t.length:this.getCols(t.length,r));this._grid.style.gridTemplateColumns=`repeat(${n}, auto)`,this._grid.textContent="",this._grid.style.removeProperty("--translate"),this._grid.style.removeProperty("--scale"),t.forEach((t=>{if(!t.id)return;this._buttons.has(t.id)||this._buttons.set(t.id,document.createElement("button"));const e=this._buttons.get(t.id);"1"!=t.size.toString()?(e.style.gridArea=`auto / auto / span ${t.size[1]} / span ${t.size[0]||t.size[1]}`,this.cellSizes.set(t.id,t.size)):(e.style.removeProperty("grid-area"),this.cellSizes.delete(t.id)),e.dataset.id=t.id,this._grid.appendChild(e)})),e.keepGrid&&this._grid.parentNode||this.micrio.insertBefore(this._grid,(null==(i=this.micrio.firstChild)?void 0:i.nextSibling)??null),this.micrio.events.dispatch("grid-layout-set",this);const s=this.micrio.offsetWidth,o=this.micrio.offsetHeight,a=Math.max(0,Math.min(1,1-(e.scale??1)));this._grid.style.transform="",this._grid.childNodes.forEach((e=>{if(!e)return;const i=e,r=i.dataset.id,n=i.getBoundingClientRect(),l=t.find((t=>t.id==r)),c=[a/2*n.width,a/2*n.height];l&&!l.area&&(l.area=[(n.x+c[0])/s,(n.y+c[1])/o,(n.x+n.width-c[0])/s,(n.y+n.height-c[1])/o])})),e.keepGrid||this._grid.remove()}placeGrid(){var t;!this.clickable||this.micrio.state.$tour||this.micrio.state.$marker||this._grid.parentNode||(this.micrio.insertBefore(this._grid,(null==(t=this.micrio.firstChild)?void 0:t.nextSibling)??null),this.viewUnsub=this.image.state.view.subscribe(this.updateGrid))}removeGrid(){this._grid.parentNode&&(this.viewUnsub&&this.viewUnsub(),this._grid.remove())}updateGrid(){const t=this.image.camera.getXY(0,0,!0);this._grid.style.setProperty("--translate",`translate3d(${t[0]}px, ${t[1]}px, 0)`),this._grid.style.setProperty("--scale",this.image.camera.getScale().toString()),this._grid.dispatchEvent(new CustomEvent("update"))}placeImage(t,e){let i=this.images.find((e=>e.id==t.id));i&&t.area?dr(1e3*e.delay).then((()=>{i.camera.setArea(t.area,{direct:0==e.duration||!e.forceAreaAni&&!Ki(i.visible)}),e.delay&&this.micrio.wasm.render()})):(t.lang=this.micrio.lang,this.micrio.wasm.addChild(i=new xa(this.micrio.wasm,t,{area:t.area}),this.image),this.images.push(i));const r={duration:1e3*e.duration,timingFunction:this.timingFunction,limit:!1};if(!e.noCamAni&&!i.camera.aniDone&&i.ptr>0){const n=!!e.cover||i.camera.getCoverLimit();if(t.view||!n)i.camera.flyToView(t.view??[0,0,1,1],r).catch((()=>{}));else if(t.area&&t.width&&t.height){const e=(t.area[2]-t.area[0])*this.micrio.offsetWidth/((t.area[3]-t.area[1])*this.micrio.offsetHeight);i.camera.flyToView(e<t.width/t.height?[.5,0,.5,1]:[0,.5,1,.5],r).catch((()=>{}))}else i.camera.flyToCoverView(r).catch((()=>{}))}return i}removeImages(t){t.forEach((t=>{t.ptr>=0&&this.micrio.wasm.e._fadeOut(t.ptr)})),this.micrio.wasm.render()}insideGrid(){const t=this.micrio.$current;return t==this.image||!!this.images.find((e=>e==t))}async reset(t,e,i){var r,n;const s=this.history[0];return this.images.forEach((t=>t.camera.stop())),this.image.camera.stop(),this.markersShown.set([]),await Xt(),i||e||!(null==(r=this.micrio.camera)?void 0:r.isZoomedOut())||this.micrio.state.$tour||this.$focussed||this.hasChanged()||(t=0),this.set((null==s?void 0:s.layout)||(null==(n=this.image.$info)?void 0:n.grid),{noHistory:!0,duration:t,noCamAni:e,forceAni:i,horizontal:!!s&&s.horizontal}).then((t=>(this.depth.set(this.history.length=0),this.micrio.current.set(this.image),t)))}switchToGrid(){const t=this.$focussed;if(!t)return;const e=t.camera.getView();e&&this.reset(0,!0).then((()=>{t.opts.area&&this.image.camera.setView(t.opts.area,{noLimit:!0}),t.camera.setView(e,{noLimit:!0}),this.micrio.current.set(this.image)}))}async flyToMarkers(t,e,i){const r=null==t?void 0:t.split("|").map((t=>t.trim())),n=(null==r?void 0:r[0])??"",s=n?this.images.filter((t=>{var e,i;return!!(null==(i=null==(e=t.$data)?void 0:e.markers)?void 0:i.find((t=>t.tags.includes(n))))})):this.images;return this.set(s.map((t=>{var e,r;const s=null==(r=null==(e=t.$data)?void 0:e.markers)?void 0:r.find((t=>t.tags.indexOf(n)>=0));return this.getString(t.$info,{view:i||null==s?void 0:s.view})})).join(";"),{duration:e,horizontal:"h"==(null==r?void 0:r[1])})}async back(t){const e=this.history.pop();if(!e)return;this.depth.set(this.history.length),this.micrio.current.set(this.image);this.$focussed&&this.blur(),await this.set(e.layout,{duration:t,noHistory:!0,horizontal:e.horizontal,view:e.view})}setTimingFunction(t){const e=this.micrio.wasm.getPtr();this.micrio.wasm.e.setGridTransitionTimingFunction(e,va.Camera.TimingFunction[this.timingFunction=t])}async focus(t,e={}){var i;if(!t)return this.back();e.coverLimit&&(e.cover=!0);const r=!e.view&&!e.cover,n=this.micrio;Ki(n.visible).find((t=>t==this.image))||n.current.set(this.image);const s=this.$focussed;if(s==t)return;!(null==(i=e.transition)?void 0:i.startsWith("slide-"))&&(0==e.duration||s&&!n.wasm.e._areaAnimating(s.ptr)&&!this.current.find((e=>e==t)))&&t.camera.setArea([0,0,1,1],{noDispatch:!0,direct:!0}),s&&this.blur(),t.camera.setCoverLimit(!!e.cover),this.setTimingFunction("ease");const o=await this.transition(t,s,this.getString(t.$info,{view:e.view}),e);return n.wasm.e._setZIndex(t.ptr,3),this.focussed.set(t),Ki(t.visible)||"crossfade"!=e.transition&&e.transition||(e.duration=0),this.set(o,{noBlur:!0,duration:e.duration,forceAreaAni:"crossfade"!=e.transition,cover:!!e.cover,coverLimit:!!e.coverLimit}).then((()=>{n.events.dispatch("grid-focus",t);const e=t.$info;this.removeGrid(),n.$current!=t&&n.current.set(t);const i=n.offsetWidth/n.offsetHeight,s=(1-e.width/e.height/i)/2;!t.camera.aniDone&&r&&t.camera.flyToFullView({duration:1e3*this.aniDurationIn}).catch((()=>{})),this.image.camera.setLimit([s,0,1-s,1])})).catch((()=>{}))}async transition(t,e,i,{duration:r,view:n,transition:s,noViewAni:o,exitView:a,blur:l,cover:c}){if(!s)return i;if("crossfade"==s&&(t.camera.setArea([0,0,1,1]),o=!0),n&&o&&t.camera.setView(n,{noRender:!0,noLimit:!0}),!e||"crossfade"==s)return i;const u=s.startsWith("slide")||s.startsWith("swipe"),d=s.startsWith("behind"),h=u?s.endsWith("-up")?0:s.endsWith("-down")?180:s.endsWith("-left")?270:90:void 0;if((u||d)&&this.micrio.wasm.e._fadeTo(t.ptr,.9999,!0),s.startsWith("slide"))t.camera.setArea(0==h?[0,-.5,1,0]:180==h?[0,1,1,1.5]:270==h?[-.5,0,0,1]:[1,0,1.5,1],{noDispatch:!0,direct:!0});else if(s.startsWith("swipe"))t.camera.setArea(0==h?[0,-1,1,0]:180==h?[0,1,1,2]:270==h?[-1,0,0,1]:[1,0,2,1],{noDispatch:!0,direct:!0}),i=[this.getString(e.$info,{view:a??e.camera.getView(),area:0==h?[0,1,1,2]:180==h?[0,-1,1,0]:270==h?[1,0,2,1]:[-1,0,0,1]}),this.getString(t.$info,{view:n,area:[0,0,1,1]})].join(";");else if(d){t.camera.setArea([0,0,1,1]),t.camera.setView([0,0,1,1]);const i=[this.getString(e.$info,{view:[0,0,1,1]}),this.getString(t.$info,{view:[0,0,1,1]})];"behind-left"==s&&i.reverse(),await this.set(i.join(";"),{noBlur:!0,horizontal:!0,coverLimit:c}).then((()=>dr(200)))}if(l&&!isNaN(l)&&l>0){const t=(r=r??this.nextCrossFadeDuration??this.aniDurationIn)/2,e=this.micrio.canvas.element.style;e.transition=`filter ${t}s ease`,e.filter=`blur(${l}px)`,setTimeout((()=>{e.filter="",setTimeout((()=>e.transform=""),1e3*t)}),1e3*t)}return i}blur(){const t=this.$focussed;t&&(this.micrio.wasm.e._setZIndex(t.ptr,2),this.micrio.events.dispatch("grid-blur"),this.focussed.set(void 0),this.image.camera.setLimit([0,0,1,1]),this.micrio.current.set(this.image))}tourEvent(t){var e;const i=t.detail;i&&(null==(e=i.action)?void 0:e.startsWith("grid:"))&&i.active&&this.action(i.action.slice(5),i.data,i.end-i.start)}action(t,e,i){"string"==typeof t&&(t=va.Grid.GridActionType[t]);const r=t+(e??"");if(this.lastAction!=r){switch(t){case va.Grid.GridActionType.focus:const t=null==e?void 0:e.split("|").map((t=>t.trim())),r=(null==t?void 0:t[0])??"",n=null==r?void 0:r.split(",").map((t=>this.images.find((e=>e.id==(null==t?void 0:t.trim()))))).filter((t=>void 0!==t));1==n.length?this.focus(n[0],{duration:i}):n.length>0&&this.set(n.map((t=>this.getString(t.$info))).join(";"),{duration:i,horizontal:"h"==(null==t?void 0:t[1])});break;case va.Grid.GridActionType.flyTo:const s=null==e?void 0:e.split(",").map((t=>this.current.find((e=>e.id==(null==t?void 0:t.trim())))));(null==s?void 0:s.length)?this.image.camera.flyToView([Math.min(...s.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[0])??0}))),Math.min(...s.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[1])??0}))),Math.max(...s.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[2])??1}))),Math.max(...s.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[3])??1})))],{duration:i?1e3*i:void 0}).catch((()=>{})):console.warn("Given image IDs gave no current displayed images",event);break;case va.Grid.GridActionType.focusTagged:this.flyToMarkers(e,i);break;case va.Grid.GridActionType.focusWithTagged:this.flyToMarkers(e,i,!0);break;case va.Grid.GridActionType.reset:this.reset(i);break;case va.Grid.GridActionType.back:this.back(i);break;case va.Grid.GridActionType.switchToGrid:this.switchToGrid();break;case va.Grid.GridActionType.nextFadeDuration:this.nextCrossFadeDuration=Number(e);break;case va.Grid.GridActionType.filterTourImages:br(this.micrio.state.tour).then((t=>{if(!t)return;if(!("steps"in t)||!t.stepInfo)return;const r=t.stepInfo.map((t=>t.micrioId)),n=r.filter(((t,e)=>r.indexOf(t)==e)).map((t=>this.images.find((e=>e.id==t)))).filter((t=>!!t)).map((t=>this.getString(t.$info))).join(";");n&&this.set(n,{duration:i,horizontal:"h"==e})}));break;default:console.warn("Warning: unknown grid tour event",event)}this.lastAction=r}}async enlarge(t,e,i=e){var r;return this.set(((null==(r=this.history[this.history.length-1])?void 0:r.layout)||this.image.$info.grid).split(";").map(((r,n)=>`${r}|${n==t?`${e},${i}`:1}`)).join(";"),{noHistory:!0,keepGrid:!0,duration:500})}getRelativeView(t,e){const i=t.opts.area??[0,0,1,1],r=i[2]-i[0],n=i[3]-i[1];return[i[0]+r*e[0],i[1]+n*e[1],i[0]+r*e[2],i[1]+n*e[3]]}};ll.getString=(t,e)=>{var i,r,n,s;return[t.id,t.width,t.height,t.isDeepZoom?"d":"",t.isPng?"p":t.isWebP?"w":"",null==(i=e.view)?void 0:i.map(al).join("/"),null==(r=e.area)?void 0:r.map(al).join("/"),null==(s=null==(n=t.settings)?void 0:n.focus)?void 0:s.map(al).join("-"),e.cultures].join(",").replace(/,+$/,"")+(e.size?`|${e.size.join(",")}`:"")};let cl=ll;class ul{constructor(t){this.micrio=t,this.element=document.createElement("canvas"),this.resizing=!1,this.hasPerspective=!1,this.viewport={width:0,height:0,left:0,top:0,ratio:0,scale:0,portrait:!1},this.isMobile=Zi(!1),this.getRatio=(t=(t=>null==(t=this.micrio.$current)?void 0:t.$settings)()??{})=>!mr.iOS&&!(null==t?void 0:t.noRetina)&&self.devicePixelRatio&&Math.max(1,Math.min(2,self.devicePixelRatio))||1,this.onresize=this.onresize.bind(this),self.ResizeObserver&&(this.resizeObserver=new self.ResizeObserver(this.onresize)),this.element.className="micrio"}get $isMobile(){return Ki(this.isMobile)}place(){if(this.element.parentNode)return;const t=this.micrio.querySelector("img.preview");this.micrio.insertBefore(this.element,t?t.nextSibling:this.micrio.firstChild)}hook(){this.onresize(),this.resizeObserver?this.resizeObserver.observe(this.element):window.addEventListener("resize",this.onresize)}unhook(){this.resizeObserver?this.resizeObserver.unobserve(this.element):window.removeEventListener("resize",this.onresize)}onresize(){var t,e,i;const r=this.element.getBoundingClientRect();(null==(t=this.micrio.$current)?void 0:t.is360)&&(this.hasPerspective=!0);let n=r.width,s=r.height;if(!n||!s)return;const o=self.getComputedStyle(this.element),a=parseFloat(o.width);isNaN(a)||(s=parseFloat(o.height)*n/Math.max(1,a));const l=this.micrio.hasAttribute("data-static")?1:Math.floor(n)/this.micrio.offsetWidth;n/=l,s/=l;const c=1!=l?1:this.getRatio(),u=this.viewport;u.width==n&&u.height==s&&u.ratio==c&&u.scale==l||(this.hasPerspective&&(this.micrio.style.perspective=s/2+"px"),u.width=n,u.height=s,u.ratio=c,u.scale=l,u.top=r.top,u.left=r.left,u.portrait=(null==(e=window.matchMedia("(orientation: portrait)"))?void 0:e.matches)??s>n,this.resizing=!0,this.element.width=n*c,this.element.height=s*c,this.micrio.webgl.gl.viewport(0,0,u.width*u.ratio,u.height*u.ratio),null==(i=this.micrio.webgl.postpocessor)||i.resize(),this.micrio.wasm.resize(u),this.resizing=!1,this.micrio.events.dispatch("resize",r),setTimeout((()=>this.isMobile.set(/mobile/i.test(navigator.userAgent))),10))}setMargins(t,e){this.micrio.wasm.e&&this.micrio.wasm.e.setArea(this.micrio.wasm.getPtr(),t,e)}}const dl=class t extends HTMLElement{constructor(){super(),this.printed=!1,this.canvases=[],this.current=Zi(),this.visible=Zi([]),this.canvas=new ul(this),this.events=new il(this),this.state=new ya.Main(this),this.analytics=new ol(this),this._router=new nl(this),this.barebone=Zi(!1),this.webgl=new Za(this),this.wasm=new Xa(this),this.defaultSettings=this.defaultSettings,this.loading=Zi(!0),this.switching=Zi(!1),this.isMuted=Zi("1"==localStorage.getItem(da)),this._lang=Zi(),this.keepRendering=!1,this.loadV5Album=(t,e)=>(t=>"MICRIO_ALBUM"in self?Promise.resolve(self.MICRIO_ALBUM):Tr(`https://i.micr.io/album/${t}.json`))(t).then((t=>{var i;if(!t)return;const r=t.id+"."+t.revision,n=e.path=(null==(i=t.organisation)?void 0:i.baseUrl)??la;return e.organisation=t.organisation,e.settings.album=t,e.settings.gallery={archive:r,sort:t.sort,type:t.type,startId:e.id,isSpreads:t.isSpreads,coverPages:t.coverPages,revisions:t.published},delete e.id,this.loadArchiveBin(n,r).then((()=>this.loadGallery(e,n,!0)))}),(t=>this.printError((null==t?void 0:t.message)||t))),this.getArchiveIndex=async(t,e=aa)=>Ta.get(`${e}${t}.json`).then((t=>(t.images.forEach((t=>yr.set(`${e}${t.id}/info.json`,t))),t))),this.current.subscribe((t=>this._current=t));let t=!1;br(this.loading,{targetValue:!1}).then((()=>{this.setAttribute("data-loaded",""),this.switching.subscribe((e=>{e?this.setAttribute("data-switching",""):(t||Xt().then((()=>this.events.dispatch("show",this))),t=!0,this.removeAttribute("data-switching"))}));const e=this.querySelector("img.preview");e&&setTimeout((()=>e.remove()),500)}))}static get observedAttributes(){return["id","muted","data-grid","data-limited","lang"]}get $current(){return this._current}get camera(){var t;return null==(t=this._current)?void 0:t.camera}attributeChangedCallback(t,e,i){var r,n,s,o;switch(t){case"id":if(!this.isConnected||!i)return;this.printed?this.open(i):this.print();break;case"muted":this.isMuted.set(null!==i);break;case"data-grid":this.printed?null==(n=null==(r=this.$current)?void 0:r.grid)||n.set(i):this.print();break;case"data-limited":(null==(s=this.wasm)?void 0:s._vertexBuffer)&&(null==(o=this.$current)?void 0:o.ptr)&&this.wasm.e._setLimited(this.$current.ptr,!!i);break;case"lang":{let t=Ki(this._lang);t!=i&&(this._lang.set(i),Xr.set(Wr[i]??Wr.en),i&&(qn.indexOf(i)>=0?this.setAttribute("dir","rtl"):this.removeAttribute("dir")),t&&this.events.dispatch("lang-switch",i));break}}}connectedCallback(){this.canvas.place(),(this.hasAttribute("data-router")||this.hasAttribute("data-space"))&&"false"!=this.getAttribute("data-router")&&this._router.hook(),!this.id&&!this.hasAttribute("data-gallery")||this.printed||this.print(),"muted"in this||(Object.defineProperty(this,"muted",{get(){return Ki(this.isMuted)},set(t){t?this.setAttribute("muted",""):this.removeAttribute("muted")}}),this.isMuted.subscribe((t=>{this.muted=t,t?(localStorage.setItem(da,"1"),this.events.dispatch("audio-mute")):(localStorage.removeItem(da),this.events.dispatch("audio-unmute"))})))}destroy(){this.current.set(void 0),this._router.unhook(),this.events.enabled.set(!1),this.canvas.unhook(),this.analytics.unhook(),this.wasm.unbind(),this._ui&&function(t,e){const i=ti.get(t);i?(ti.delete(t),i(e)):Promise.resolve()}(this._ui),delete this._ui,this.printed=!1}loadArchiveBin(t,e){return this.printUI(!0,!0),Ta.load(t,"g/"+e,(t=>{var e,i;return null==(i=null==(e=this._ui)?void 0:e.setProps)?void 0:i.call(e,{loadingProgress:t})}))}async print(){var t,e,i,r;if(this.printed)return;this.printed=!0,await Xt();const n=this.getOptions();if(n.settings||(n.settings={}),n.settings.noControls&&this.state.ui.controls.set(!1),null==(t=n.settings.gallery)?void 0:t.archive){const t=null==(e=n.settings.gallery)?void 0:e.archive,i=/\.\d+$/.test(t),r=n.path||(Pr(t.replace(/\.\d+$/,""))?la:aa);i&&await this.loadArchiveBin(r,t),n.settings.gallery.startId=n.id,n.grid?await this.setGrid(n,r):await this.loadGallery(n,r,i),i||delete n.settings.gallery.archive,n.path||(n.path=r),delete n.id}else(null==(i=n.id)?void 0:i.startsWith("album/"))?await this.loadV5Album(n.id.replace("album/",""),n):n.id&&Pr(n.id)&&!this.hasAttribute("width")&&!this.hasAttribute("height")&&await xr(n.id,n.forceInfoPath?n.path:void 0,null==(r=n.settings)?void 0:r.forceDataRefresh).then((t=>(null==t?void 0:t.albumId)?this.loadV5Album(t.albumId,n):void 0));this.keepRendering=!!n.settings.keepRendering;const s=n.id||n.gallery||n.grid;if(this.events.dispatch("print",n),void 0!==n.settings.lazyload&&"IntersectionObserver"in window){const t=new IntersectionObserver((e=>{e[0]&&e[0].isIntersecting&&(t.unobserve(this),s&&this.open(n))}),{rootMargin:100*n.settings.lazyload+"% 0px"});t.observe(this)}else s&&requestAnimationFrame((()=>this.open(n)))}printUI(e,i){var r,n;this._ui?null==(n=(r=this._ui).setProps)||n.call(r,{noHTML:e,noLogo:i}):this._ui=Je(t.Svelte,{target:this,props:{micrio:this,noHTML:e,noLogo:i}})}printError(t){var e,i;null==(i=null==(e=this._ui)?void 0:e.setProps)||i.call(e,{error:t??"An unknown error has occurred"})}open(t,e={}){var i,r,n,s;this.printed||this.print();const o="string"==typeof t,a=this.getOptions();let l=o?{...a,id:t}:t;if(l.settings||(l.settings={}),(null==(r=null==(i=a.settings)?void 0:i.gallery)?void 0:r.archive)&&(/\.\d+$/.test(a.settings.gallery.archive)||delete a.settings.gallery.archive),o||vr(a.settings,l.settings),this.defaultSettings&&vr(this.defaultSettings,l.settings),this.$current&&l.id==(null==(n=this.$current)?void 0:n.id))return this.$current;e.splitScreen||e.gridView||!this.$current||this.switching.set(!0),l.settings.noGTag||this.analytics.hook(),this.printed=!0,this.printUI(!!l.settings.noUI,!!l.settings.noLogo);let c=this.canvases.find((t=>l.id&&t.id==l.id)),u=!1;const d=null==(s=this.canvases[0])?void 0:s.grid;if(!c&&d){const t=l.id?d.images.find((t=>t.id==l.id)):void 0;u=!!t,c=l.id?t:this.canvases[0],u&&!d.insideGrid()&&this.current.set(this.canvases[0])}if(!c){if(this.canvases.length){const t=this.canvases[0];l.path=t.dataPath,l.lang=this.lang}this.canvases.push(c=new xa(this.wasm,l,e.splitScreen?{secondaryTo:e.splitTo??this._current,isPassive:e.isPassive}:void 0));const t=this.state.value&&this.state.value.c.find((t=>t[0]==l.id));t&&c.state.set(t)}e.startView&&(c.state.view.set(l.settings.view=e.startView),c.ptr&&c.camera.e&&c.camera.setView(l.settings.view,{noRender:!0})),this.lang||(this.lang="en");const h=()=>{var t,i,r,n;c&&(br(c.info).then((t=>{var i;if(t&&c){if(!this.webgl.gl)switch(this.webgl.init(),this.canvas.hook(),null==(i=t.settings)?void 0:i.theme){case"light":this.setAttribute("data-light-mode","");break;case"os":this.setAttribute("data-auto-scheme","")}t.grid&&!c.grid&&(c.grid=new cl(this,c)),Xt().then((()=>this.dispatchEvent(new CustomEvent("load",{detail:c})))),e.splitScreen&&Xt().then((()=>{c&&((null==d?void 0:d.image.camera.aniDoneAdd)&&d.image.camera.aniDoneAdd.length>0?d.image.camera.aniDoneAdd.push((()=>null==c?void 0:c.splitStart())):c.splitStart())}))}})),this.wasm.e.set360Orientation(this.wasm.getPtr(),(null==(t=e.vector)?void 0:t.direction)??0,(null==(i=e.vector)?void 0:i.distanceX)??0,(null==(r=e.vector)?void 0:r.distanceY)??0),this.wasm.preventDirectionSet=!e.vector,!u||e.gridView&&(null==d?void 0:d.current.find((t=>t.id==l.id)))?e.splitScreen?this.wasm.setCanvas(c):this.current.set(c):null==d||d.focus(c,{view:null==(n=l.settings)?void 0:n.view}).then((()=>this.current.set(c))))};return this.wasm.ready?h():this.wasm.load().then(h),c.noImage&&this.loading.set(!1),c}close(t){t.opts.secondaryTo?t.splitEnd():this.wasm.removeCanvas(t)}getOptions(){const t={gallery:{}},e={settings:t,id:this.id},i=(t,e,i)=>{const r=e.split(".");for(let n=0;n<r.length-1;n++)t=t[r[n]];t[r[r.length-1]]=i};for(const r in ma.STRINGS){const n=ma.STRINGS[r],s=this.getAttribute(r),o=n.f||r.replace("data-","");s&&i(n.r?e:t,o,s)}for(const r in ma.BOOLEANS){const n=ma.BOOLEANS[r],s=this.getAttribute(r),o=n.f||r.replace("data-",""),a=null!=s&&""==s||"true"==s;(a||"false"==s)&&i(n.r?e:t,o,n.n?!a:!!a)}for(const r in ma.NUMBERS){const n=ma.NUMBERS[r],s=n.f||r.replace("data-","");let o=this.getAttribute(r);void 0!==n.dN&&null==o&&(o=n.dN),null==o||isNaN(Number(o))||i(n.r?e:t,s,Number(o))}for(const r in ma.ARRAYS){const n=ma.ARRAYS[r],s=this.getAttribute(r),o=n.f||r.replace("data-","");null!=s&&i(n.r?e:t,o,s.split(",").map((t=>Number(t))))}return t.static&&(t.noUI=t.skipMeta=!0,t.hookEvents=!1),e.settings&&e.grid&&e.grid.indexOf(".")>0&&(e.settings.gallery.archive=e.grid),e}async loadGallery(t,e,i){var r;let n=null==(r=t.settings)?void 0:r.gallery,s=null==n?void 0:n.archive;if(!n||!s)return;const o=t.settings;if(i){const t=await this.getArchiveIndex(s.split(".")[0],e);n.archiveLayerOffset=t.delta,s=t.images.sort("name"==n.sort?(t,e)=>t.title&&e.title?t.title<e.title?-1:t.title>e.title?1:0:0:"-name"==n.sort?(t,e)=>t.title&&e.title?t.title<e.title?1:t.title>e.title?-1:0:0:"-created"==n.sort?(t,e)=>t.created&&e.created?t.created<e.created?1:t.created>e.created?-1:0:0:(t,e)=>t.created&&e.created?t.created<e.created?-1:t.created>e.created?1:0:0).map((t=>`${t.id},${t.width},${t.height},${t.isDeepZoom?"d":""},${t.isPng?"p":t.isWebP?"w":""},${t.tileSize||""}`.replace(/\,+$/,""))).join(";")}const a=s.split(";").map((t=>t.trim()));if(!i){const t=a.filter((t=>t.startsWith("http"))).map((t=>Tr(t)));t.length&&await Promise.all(t).then((t=>t.forEach(((t,e)=>{t&&(a[e]=`${t["@id"]},${t.width},${t.height}`)}))))}const l=a.map((t=>t.split(",").map((t=>isNaN(t)?t:Number(t)))));l.forEach(((t,e)=>{e>0&&!t[2]&&t.push(...l[e-1].slice(1))}));const c=t.height=Math.max(...l.map((t=>t[2])));n.type||(n.type="swipe");const u="switch"==n.type||"swipe-full"==n.type||"omni"==n.type,d=n.isSpreads,h=d&&!u?Math.round(l[0][1]/20):0,m=d?n.coverPages??0:0,v=t.width=u?Math.max(...l.map((t=>t[1]*(d?2:1)))):l.reduce(((t,e)=>t+e[1]+h),0);let p=0;t.gallery=l.map(((t,i)=>{var r;return new xa(this.wasm,{id:t[0],path:e,width:t[1],height:t[2],isDeepZoom:"d"==t[3],isPng:"p"==t[4],isWebP:"w"==t[4],tileSize:t[5]||1024,revision:null==(r=null==n?void 0:n.revisions)?void 0:r[t[0]],settings:{skipMeta:!0,gallery:n}},{isEmbed:u,useParentCamera:u,area:u?d?i-m<0||i==l.length-1&&(i-m)%2==0?[.25,0,.75,1]:(i-m)%2==0?[0,0,.5,1]:[.5,0,1,1]:[0,0,1,1]:[(p+=i>0&&(i<m||(i-m)%2==0)?h:0)/v,(c-t[2])/2/c,(p+=t[1])/v,((c-t[2])/2+t[2])/c]})})),o.pinchZoomOutLimit=!0,t.gallery.length&&(o.view=t.gallery[Math.max(0,t.gallery.findIndex((t=>t.id==n.startId)))].opts.area)}async setGrid(t,e){var i;t.settings&&t.grid&&((null==(i=t.settings.gallery)?void 0:i.archive)==t.grid&&(this.gridInfoData=await this.getArchiveIndex(t.grid.split(".")[0],e),t.grid=this.gridInfoData.images.map((t=>cl.getString(t,{cultures:"cultures"in t?t.cultures.join("-"):void 0}))).join(";")),t.width=this.offsetWidth*this.canvas.getRatio(),t.height=this.offsetHeight*this.canvas.getRatio(),t.settings.zoomLimit=15,t.settings.minimap=!1,t.settings.initType="cover",this.removeAttribute("data-grid"))}get lang(){return Ki(this._lang)}set lang(t){this.setAttribute("lang",t)}};dl.jsonCache=yr;let hl=dl;hl.Svelte=function(t,e){Te(e,!0);const[i,r]=ir(),n=()=>tr(jt(A),"$settings",i),s=()=>tr(jt(E),"$info",i),o=()=>tr(jt($),"$data",i),a=()=>tr(k,"$tour",i),l=()=>tr(P,"$volume",i),c=()=>tr(w,"$visible",i),u=()=>tr(_,"$markerPopup",i),d=()=>tr(x,"$popover",i);let h=or(e,"noHTML",15),m=or(e,"noLogo",23,h),v=or(e,"loadingProgress",7,1),p=or(e,"error",7,void 0);ke("micrio",e.micrio),ke("markerImages",new Map);const f="markers"==e.micrio.getAttribute("data-ui");f&&h(!0);const g="false"!=e.micrio.getAttribute("data-embeds"),{visible:w,state:b,isMuted:y}=e.micrio,{tour:k,marker:T,popup:_,popover:x}=b;let E=j(void 0),$=j(void 0),A=j(void 0);function S(t,e){if(e)for(let i,r=0;r<e.length;r++)if(e[r].id==t||(i=S(t,e[r].children)))return i??e[r]}let I=j(!1),M=j(void 0);const L=[];e.micrio.current.subscribe((t=>{t&&(er(Y(E,t.info,!0),"$info",i),er(Y(A,void 0),"$settings",i),jt(E)&&br(jt(E)).then((e=>{var r;e&&(Y(I,!0),er(Y(A,t.settings,!0),"$settings",i),!jt(M)&&(null==(r=e.organisation)?void 0:r.logo)&&Y(M,e.organisation,!0))})),er(Y($,t.data,!0),"$data",i)&&L.indexOf(t.id)<0&&br(jt($)).then((async i=>{var r,n;if(!i)return;if(L.push(t.id),await Xt().then(Xt),Ki(e.micrio.state.popover)||Ki(e.micrio.state.marker)||Ki(e.micrio.state.tour))return;const s=t.$settings.start;if(s)switch(s.type){case"marker":t.state.marker.set(s.id);break;case"markerTour":const o=null==(r=i.markerTours)?void 0:r.find((t=>t.id==s.id));o&&e.micrio.state.tour.set(o);break;case"tour":const a=null==(n=i.tours)?void 0:n.find((t=>t.id==s.id));a&&e.micrio.state.tour.set(a);break;case"page":const l=S(s.id,i.pages);l&&e.micrio.state.popover.set({contentPage:l,showLangSelect:!0})}})))}));const P=Zi(tr(y,"$isMuted",i)?0:1);ke("volume",P),y.subscribe((t=>P.set(t?0:1))),ke("mediaPaused",Zi(!1));let C=j(!1),D=j(B([]));ke("srt",Zi()).subscribe((t=>setTimeout((()=>{Y(D,t?[t]:[],!0)}),20)));let R=J((()=>{var t,e;return null==(e=null==(t=n())?void 0:t._360)?void 0:e.video})),z=J((()=>{var t;return null==(t=jt(R))?void 0:t.src})),O=J((()=>{var t;return null==(t=n())?void 0:t.omni})),N=J((()=>{var t;return null==(t=s())?void 0:t.gallery})),F=J((()=>{var t,e;return null==(e=null==(t=o())?void 0:t.markers)?void 0:e.filter((t=>!!t.positionalAudio))})),V=J((()=>{var t,e,i;return!!(null==(e=null==(t=o())?void 0:t.music)?void 0:e.items.length)||!!(null==(i=jt(F))?void 0:i.length)})),U=J((()=>a()||tr(T,"$marker",i))),q=J((()=>!h()||f)),W=J((()=>{var t;return!(m()||s()&&h()||(null==(t=n())?void 0:t.noLogo))})),X=J((()=>{var t;return h()||!jt(W)||(null==(t=n())?void 0:t.noOrgLogo)?void 0:jt(M)})),G=J((()=>{var t;return!(h()||jt(O)||e.micrio.spaceData||a()||(null==(t=s())?void 0:t.gallery))})),H=J((()=>!!jt(N)||!!jt(O))),Z=J((()=>!h()&&!!s())),K=J((()=>{var t;return!h()&&!jt(U)&&(null==(t=n())?void 0:t.showInfo)})),Q=J((()=>{var t;return!h()&&jt(I)&&!(null==(t=n())?void 0:t.noToolbar)}));var tt=Ma(),et=ut(tt),it=t=>{const e=J((()=>!!s().is360));bo(t,{get volume(){return l()},get data(){return o()},get is360(){return jt(e)}})};ei(et,(t=>{jt(V)&&o()&&s()&&t(it)}));var rt=dt(et,2),nt=t=>{Ms(t,nr({get src(){return jt(z)},get volume(){return l()},is360:!0,get width(){return s().width},get height(){return s().height}},(()=>jt(R))))};ei(rt,(t=>{jt(z)&&s()&&t(nt)}));var st=dt(rt,2),ot=t=>{var e=Ge();ri(ut(e),1,(()=>o().embeds),(t=>t.uuid),((t,e)=>{Sa(t,{get embed(){return jt(e)}})})),Ye(t,e)};ei(st,(t=>{g&&o()&&o().embeds&&t(ot)}));var at=dt(st,2),lt=t=>{Ur(t,{})};ei(at,(t=>{jt(W)&&t(lt)}));var ht=dt(at,2),mt=t=>{Nn(t,{})};ei(ht,(t=>{jt(Q)&&t(mt)}));var vt=dt(ht,2),pt=t=>{var e=Ge();ri(ut(e),1,c,(t=>t.uuid),((t,e)=>{sa(t,{get image(){return jt(e)}})})),Ye(t,e)};ei(vt,(t=>{jt(q)&&t(pt)}));var ft=dt(vt,2),gt=t=>{var e=Ge();ri(ut(e),1,(()=>c().filter((t=>t.$settings.minimap))),(t=>t.uuid),((t,e)=>{Vn(t,{get image(){return jt(e)}})})),Ye(t,e)};ei(ft,(t=>{jt(G)&&t(gt)}));var wt=dt(ft,2),bt=t=>{const e=J((()=>jt(V)||!(!jt(z)||!jt(R)||jt(R).muted)));Qn(t,{get hasAudio(){return jt(e)}})};ei(wt,(t=>{jt(Z)&&t(bt)}));var yt=dt(wt,2),kt=t=>{co(t,{get images(){return jt(N)},get omni(){return jt(O)}})};ei(yt,(t=>{jt(H)&&t(kt)}));var Tt=dt(yt,2),_t=t=>{qr(t,{get organisation(){return jt(X)}})};ei(Tt,(t=>{jt(X)&&t(_t)}));var xt=dt(Tt,2),Et=t=>{Eo(t,{get info(){return jt(E)},get data(){return jt($)}})};ei(xt,(t=>{jt(K)&&jt(E)&&jt($)&&t(Et)}));var $t=dt(xt,2),At=t=>{Xs(t,{get marker(){return u()}})};ei($t,(t=>{u()&&t(At)}));var St=dt($t,2),It=t=>{eo(t,{get tour(){return a()},get noHTML(){return h()},onminimize:t=>Y(C,!t)})};ei(St,(t=>{a()&&t(It)}));var Mt=dt(St,2),Lt=t=>{Vo(t,{get popover(){return d()}})};ei(Mt,(t=>{d()&&t(Lt)}));var Pt=dt(Mt,2);ri(Pt,16,(()=>jt(D)),(t=>t),((t,e)=>{os(t,{get src(){return e},get raised(){return jt(C)}})}));var Ct=dt(Pt,2),Dt=t=>{!function(t,e){var i=$o(),r=ct(i);En(r,{name:"error"});var n=dt(r);se((()=>Ke(n,` ${e.message??""}`))),Ye(t,i)}(t,{get message(){return p()}})};ei(Ct,(t=>{p()&&t(Dt)}));var Rt=dt(Ct,2),zt=t=>{!function(t,e){const i=2*Math.PI*40;let r=J((()=>i*(1-e.progress)));var n=Ia();xi(n,"viewBox","0 0 100 100");var s=ct(n);xi(s,"r",40),xi(s,"cx",50),xi(s,"cy",50);var o=dt(s);xi(o,"r",40),xi(o,"cx",50),xi(o,"cy",50),xi(o,"stroke-dasharray",`${i??""}px`),se((()=>xi(o,"stroke-dashoffset",`${jt(r)??""}px`))),zi(1,n,(()=>Nr),(()=>({delay:500}))),zi(2,n,(()=>Nr)),Ye(t,n)}(t,{get progress(){return v()}})};ei(Rt,(t=>{v()<1&&t(zt)})),Ye(t,tt);var Ot=_e({setProps:function(t){"error"in t&&p(t.error),void 0!==t.noHTML&&h(t.noHTML),void 0!==t.noLogo&&m(t.noLogo),void 0!==t.loadingProgress&&v(t.loadingProgress)}});return r(),Ot},hl.VERSION=oa,customElements.define("micr-io",hl),console.log("%c◈%c Micrio %cv5.3.0 - https://micr.io/","color: #00d4ee","color: #c5ff5b","color: inherit")}();
|
|
25
|
+
})(`html{--micrio-color: #fff;--micrio-color-hover: #45A4E4;--micrio-border-radius: 4px;--micrio-background: rgba(41,41,41,.75);--micrio-background-filter: blur(8px);--micrio-popover-background: rgba(41,41,41,.75);--micrio-icon-size: 18px;--micrio-text-align: left;--micrio-line-height: 1.5em;--micrio-border-margin: 16px;--micrio-button-size: 48px;--micrio-button-shadow: 0 4px 8px rgba(0,0,0,.33);--micrio-marker-size: 16px;--micrio-marker-text-color: #fff;--micrio-marker-text-shadow: 0px 2px 4px rgba(0,0,0,.6);--micrio-marker-highlight: #00d4ee;--micrio-marker-color: #fff;--micrio-marker-border-radius: 100%;--micrio-marker-border-color: rgba(255,255,255,.2);--micrio-marker-border-size: 8px;--micrio-marker-icon: none;--micrio-marker-transition: background-color .25s ease, opacity .15s ease, border-width .15s ease, width .15s ease, height .15s ease;--micrio-popup-shadow: 0 8px 16px rgba(0,0,0,.33);--micrio-popup-padding: 16px;--micrio-progress-bar-background: rgba(255,255,255,.25);--micrio-progress-bar-height: 4px;--micrio-waypoint-size: 120px}micr-io[data-light-mode]{--micrio-color: #000;--micrio-color-hover: #196DA6;--micrio-background: rgba(255,255,255,.66);--micrio-progress-bar-background: rgba(0,0,0,.25);--micrio-popover-background: rgba(41,41,41,.75)}@media (prefers-color-scheme: light){micr-io[data-auto-scheme]{--micrio-color: #000;--micrio-color-hover: #196DA6;--micrio-background: rgba(255,255,255,.66);--micrio-progress-bar-background: rgba(0,0,0,.25)}}@media (max-width: 500px){html{--micrio-border-margin: 5px;--micrio-button-size: 48px}}micr-io{display:block;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overflow:hidden;position:relative;width:100%;height:100%;min-height:200px;backface-visibility:hidden;-webkit-backface-visibility:hidden;background-repeat:no-repeat;background-position:center center;background-size:contain;container-type:size}micr-io,micr-io button{font-family:var(--micrio-font-family, inherit);font-size:var(--micrio-font-size, inherit);background-color:var(--micrio-background-color, transparent)}micr-io h3{font-weight:600}micr-io[dir=rtl]{--micrio-text-align: right}canvas.micrio{display:block;position:absolute;top:0;left:0;width:100%!important;height:100%!important;backface-visibility:hidden;user-select:none;-webkit-touch-callout:none;-webkit-user-select:none}micr-io:not([static]){overscroll-behavior:none}micr-io[data-hooked]:not([data-panning])>canvas.micrio{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:-ms-grab;cursor:grab;-ms-content-zooming:none;-ms-touch-action:none;touch-action:none}micr-io[data-panning]{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:-ms-grabbing;cursor:grabbing}micr-io[data-hooked][data-can-pan]>canvas.micrio{-ms-touch-action:pan-y;touch-action:pan-y;overscroll-behavior:initial}micr-io>.micrio-grid{position:absolute;top:0;left:0;width:100%;height:100%;display:grid;grid-auto-flow:row dense;grid-gap:0;will-change:transform;transform-origin:left top;--translate: none;--scale: 1;transform:var(--translate) scale3d(var(--scale),var(--scale),1)}micr-io>.micrio-grid>button{background:transparent;border:none;padding:0;margin:0;cursor:pointer;grid-area:auto / auto / span 1 / span 1}a.micrio-logo{position:absolute;top:calc(var(--micrio-border-margin) * 2);left:calc(var(--micrio-border-margin) * 2);z-index:2;width:22px;height:22px;transition:transform .25s ease;display:block;cursor:pointer}a.micrio-logo:hover{transform:rotate3d(0,0,1,-90deg)}a.micrio-logo:before,a.micrio-logo:after{display:block;content:"";position:absolute;transform:rotate3d(0,0,1,45deg);will-change:transform;box-sizing:unset}a.micrio-logo:before{border:3px solid #00d4ee;width:16px;height:16px}a.loading.micrio-logo:before{animation:micrio-logo-spin 1s infinite ease-out}a.micrio-logo:after{top:8px;left:8px;width:6px;height:6px;background:#c5ff5b;outline:1px solid #c5ff5b}a.loading.micrio-logo:after{animation:micrio-logo-spin .5s infinite ease-out}@keyframes micrio-logo-spin{0%{transform:rotate3d(0,0,1,45deg)}to{transform:rotate3d(0,0,1,135deg)}}a.micrio-logo-org{position:absolute;top:calc(var(--micrio-border-margin) * 2);right:calc(var(--micrio-border-margin) * 2);z-index:1;display:block}img.micrio-logo-org{max-height:64px;display:block}.svelte-fa-base{height:1em;overflow:visible;transform-origin:center;vertical-align:-.125em}.svelte-fa-fw{text-align:center;width:1.25em}.svelte-fa-pull-left.micrio-fa{float:left}.svelte-fa-pull-right.micrio-fa{float:right}.svelte-fa-size-lg.micrio-fa{font-size:1.33333em;line-height:.75em;vertical-align:-.225em}.svelte-fa-size-sm.micrio-fa{font-size:.875em}.svelte-fa-size-xs.micrio-fa{font-size:.75em}.spin.micrio-fa{animation:micrio-fa-spin 2s 0s infinite linear}.pulse.micrio-fa{animation:micrio-fa-spin 1s infinite steps(8)}@keyframes micrio-fa-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.svelte-fa-layers.micrio-fa--layers{display:inline-block;position:relative}.svelte-fa-layers.micrio-fa--layers .svelte-fa{position:absolute;bottom:0;left:0;right:0;top:0;margin:auto;text-align:center}.svelte-fa-layers.micrio-fa--layers .svelte-fa-layers-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.svelte-fa-layers.micrio-fa--layers .svelte-fa-layers-text span{display:inline-block}.svelte-fa-pull-left.micrio-fa--layers{float:left}.svelte-fa-pull-right.micrio-fa--layers{float:right}.svelte-fa-size-lg.micrio-fa--layers{font-size:1.33333em;line-height:.75em;vertical-align:-.225em}.svelte-fa-size-sm.micrio-fa--layers{font-size:.875em}.svelte-fa-size-xs.micrio-fa--layers{font-size:.75em}.container.micrio-fa--layers--text{display:inline-block;height:auto}.svelte-fa-size-lg.micrio-fa--layers--text{font-size:1.33333em;line-height:.75em;vertical-align:-.225em}.svelte-fa-size-sm.micrio-fa--layers--text{font-size:.875em}.svelte-fa-size-xs.micrio-fa--layers--text{font-size:.75em}menu.micrio-menu{padding:0;margin:0;transition:background .2s ease,box-shadow .2s ease}.micrio-menu-action.micrio-menu{font-family:inherit;background:transparent;display:block;border:none;padding:0 24px;font-size:.9em;cursor:pointer;text-decoration:none;border-radius:0;color:inherit;text-shadow:inherit;box-sizing:border-box;text-align:center}@media (max-width: 500px){menu.micrio-menu{font-size:1em}.micrio-menu-action.micrio-menu{width:100%;margin-bottom:10px;padding:6px 0}strong.micrio-menu>svg{display:none}.items>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu){font-size:1em}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu){font-size:1.5em;border-bottom:1px solid rgba(255,255,255,.5);margin-top:24px}}@media (min-width: 501px){div.items.micrio-menu{max-height:calc(100vh - 160px);overflow-y:auto;overflow-x:hidden}menu.micrio-toolbar>menu.micrio-menu{color:#fff;margin-right:var(--micrio-border-margin);border-radius:var(--micrio-border-radius);overflow:hidden}menu.micrio-toolbar>menu.micrio-menu:hover,menu.micrio-toolbar>menu.micrio-menu:focus-within{-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background:var(--micrio-background);box-shadow:var(--micrio-button-shadow)}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu){position:relative}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu)>strong:where(.micrio-menu){padding:5px;margin:0 -5px}menu.micrio-toolbar>menu.micrio-menu:hover .micrio-menu-action:where(.micrio-menu),menu.micrio-toolbar>menu.micrio-menu:focus-within .micrio-menu-action:where(.micrio-menu){text-shadow:none;color:var(--micrio-color)}strong.micrio-menu>svg{margin-left:10px;line-height:2px}menu.micrio-menu{float:left;position:relative}menu.micrio-menu:not(:focus-within):not(:hover) .items:where(.micrio-menu){display:none}.micrio-menu-action.micrio-menu{height:var(--micrio-button-size);line-height:var(--micrio-button-size);width:100%;text-align:var(--micrio-text-align);white-space:pre;font-weight:600}.items menu.micrio-menu{float:none}.items .micrio-menu-action.micrio-menu{width:100%}.micrio-menu-action.micrio-menu:hover,.micrio-menu-action.micrio-menu:focus{text-shadow:none!important;color:var(--micrio-color-hover)!important}}.micrio-button{margin:0;padding:0 8px;cursor:pointer;box-sizing:border-box;display:inline-block;vertical-align:bottom;transition:opacity .25s ease;font:inherit;font-size:90%;position:relative;touch-action:none;color:var(--micrio-color);background:var(--micrio-button-background, var(--micrio-background, none)) var(--background, none) center center no-repeat;background-size:24px;min-width:var(--micrio-button-size);height:var(--micrio-button-size);line-height:var(--micrio-button-size);border:none;border-radius:var(--micrio-border-radius);box-shadow:var(--micrio-button-shadow);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);text-decoration:none}.micrio-button:hover{outline:none}.micrio-button.transparent.micrio-button,.micrio-button.transparent.micrio-button:hover{background-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}.micrio-button>*{transition:opacity .25s ease}.micrio-button:disabled{pointer-events:none;cursor:default}.micrio-button:disabled>*{opacity:.4}.micrio-button.no-click.micrio-button{pointer-events:none}img.micrio-button{display:block;margin:0 auto;pointer-events:none;max-width:100%;max-height:100%}.micrio-button>*{height:var(--micrio-icon-size)!important;width:var(--micrio-icon-size);font-size:var(--micrio-icon-size);fill:var(--micrio-color);display:block;margin:0 auto}.micrio-button.active.micrio-button{color:var(--micrio-color-hover)}.micrio-button.active.micrio-button svg{fill:var(--micrio-color-hover)}@media (hover: hover){.micrio-button:hover{background-color:var(--micrio-button-background-hover, var(--micrio-button-background, var(--micrio-background)));color:var(--micrio-color-hover)}.micrio-button:hover svg{fill:var(--micrio-color-hover);stroke:var(--micrio-color-hover)}.micrio-button:focus{outline:1px solid var(--micrio-color-hover)}}menu.micrio-toolbar{position:absolute;top:calc(var(--micrio-border-margin) - (var(--micrio-button-size) / 2 - 27px));left:var(--micrio-border-margin);margin:0;padding:0;color:#fff;text-shadow:1px 1px 2px #000;transition:transform .25s ease;z-index:1}@media (max-width: 500px){.micrio-button.toggle{position:absolute;top:var(--micrio-border-margin);left:0;height:34px;width:34px;box-shadow:none;z-index:2}.micrio-button.toggle.indent{left:35px}menu.micrio-toolbar{transform:translateZ(0);width:100%;height:100%;background:#000000bf;top:0;left:0;padding:32px 0;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);z-index:1}menu.micrio-toolbar:not(.shown){transform:translate3d(calc(-100% - var(--micrio-border-margin) * 2),0,0)}}@media (min-width: 501px){menu.indent.micrio-toolbar{margin-left:calc(var(--micrio-border-margin) * 2 + 25px)}menu.micrio-toolbar>.micrio-menu:not(:hover)>button.micrio-menu{margin-bottom:-15px}}canvas.micrio-minimap{position:absolute;bottom:var(--micrio-border-margin);right:5px;transform-origin:right bottom;display:block;background-size:100%;transition:opacity .2s ease;cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:-ms-grab;cursor:grab;-ms-content-zooming:none;-ms-touch-action:none;touch-action:none;border-radius:var(--micrio-border-radius)}canvas:not(:hover).hidden.micrio-minimap{opacity:0;pointer-events:none}canvas.dragging.micrio-minimap{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:-ms-grabbing;cursor:grabbing}canvas.controls.micrio-minimap{right:calc(var(--micrio-border-margin) + var(--micrio-button-size) + 8px)}@media (max-width: 800px){canvas.micrio-minimap{transform:scale3d(.5,.5,1);pointer-events:none;right:65px}}div.micrio-button-group{box-shadow:var(--micrio-button-shadow);border-radius:var(--micrio-border-radius);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background:var(--micrio-button-background, var(--micrio-background, none))}div.micrio-button-group:empty{display:none}div.micrio-button-group>.micrio-button{display:block;box-shadow:none;--micrio-background-filter: none;--micrio-button-background: none}div.micrio-button-group .micrio-button{border-radius:0}div.micrio-button-group .micrio-button:first-child{border-radius:var(--micrio-border-radius) var(--micrio-border-radius) 0 0}div.micrio-button-group .micrio-button:last-child{border-radius:0 0 var(--micrio-border-radius) var(--micrio-border-radius)}@media (max-width: 500px){div.micrio-button-group>*{height:calc(var(--micrio-button-size) - 4px)}div.micrio-button-group .micrio-button:first-child{padding-top:0}div.micrio-button-group .micrio-button:last-child{padding-bottom:0}}aside.micrio-controls{position:absolute;right:var(--micrio-border-margin);bottom:var(--micrio-border-margin);padding:0;margin:0;transition:transform .5s ease,opacity .5s ease;direction:rtl}aside.primary.micrio-controls:not(.portrait){right:calc(50% + var(--micrio-border-margin))}aside.primary.portrait.micrio-controls{bottom:calc(50% + var(--micrio-border-margin))}micr-io[data-switching]>aside.micrio-controls,micr-io[data-tour-active]>aside.micrio-controls{opacity:0;pointer-events:none}aside.micrio-controls>menu,aside.micrio-controls>button{padding:0;margin:8px 0;display:block;width:var(--micrio-button-size)}menu.popout.micrio-controls{padding:0;width:var(--micrio-button-size);height:var(--micrio-button-size);white-space:pre;direction:rtl;pointer-events:none;box-shadow:var(--micrio-button-shadow);border-radius:var(--micrio-border-radius);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter)}menu.popout.micrio-controls:focus-within{pointer-events:all}menu.popout.micrio-controls button{pointer-events:all;transition:border-radius .2s ease,opacity .2s ease;--micrio-button-shadow: none;--micrio-background-filter: none}menu.popout.micrio-controls:hover>button:first-child{border-radius:0 var(--micrio-border-radius) var(--micrio-border-radius) 0}menu.popout.micrio-controls>*:not(:nth-child(1)){display:inline-block;padding:0;transition:opacity .2s ease;border-radius:0}menu.popout.micrio-controls>button:last-child{border-radius:var(--micrio-border-radius) 0 0 var(--micrio-border-radius)}menu.popout.micrio-controls:not(:focus-within)>*:not(:nth-child(1)){pointer-events:none;opacity:0}div.micrio-subtitles{position:absolute;bottom:50px;left:50vw;left:50cqw;transform:translate3d(-50%,0,0);text-align:center;color:#fff;width:100vw;width:100cqw;pointer-events:none;transition:transform .2s ease}div.raised.micrio-subtitles{transform:translate3d(-50%,calc(-1 * var(--micrio-button-size)),0)}div.micrio-subtitles p:where(.micrio-subtitles){margin:.5em 0;background-color:#0009;padding:0 14px;-webkit-box-decoration-break:clone;box-decoration-break:clone;white-space:pre-wrap;display:inline;text-shadow:2px 2px 1px #0005;font-size:2.5em;line-height:inherit}@media (max-width: 640px){div.micrio-subtitles{width:95vw;width:95cqw;font-size:.7em}}div.container.micrio-progress-bar{display:flex;width:auto;color:var(--micrio-color);background:var(--micrio-background);line-height:8px;flex:1;align-items:center;cursor:default}div.bars.micrio-progress-bar{flex:1;display:flex;height:var(--micrio-progress-bar-height);background:var(--micrio-progress-bar-background);position:relative}div.bars.micrio-progress-bar>*{height:100%;width:100%;display:block;box-sizing:border-box;position:relative;cursor:pointer;overflow:hidden}div.bars.micrio-progress-bar>*:before{display:block;position:absolute;content:" ";background:var(--micrio-color);height:100%;pointer-events:none;width:var(--progress, 0%);will-change:width}div.bars.micrio-progress-bar:after{content:"";position:absolute;display:block;width:16px;height:16px;left:var(--progress);top:50%;transform:translate3d(-50%,-50%,0);background-color:var(--micrio-color);pointer-events:none;border-radius:8px}div.time.micrio-progress-bar{display:block;font-size:90%;min-width:50px;text-align:center;padding:0 10px;font-variant-numeric:tabular-nums}aside.micrio-media-controls{cursor:default;position:relative;display:flex;align-items:center;margin:0;background:var(--micrio-background)}aside.micrio-media-controls>button{border-radius:0;margin:0;border:none}aside.micrio-media-controls>button:last-child{margin-right:16px}aside.micrio-media-controls>*{--micrio-button-background: none;--micrio-background-filter: none;--micrio-button-shadow: none}:fullscreen>aside.micrio-media-controls{position:absolute;bottom:5px;left:50%;transform:translate(-50%);width:430px;max-width:90vw;max-width:90cqw;border-radius:var(--micrio-border-radius)}svg.micrio-media-controls{pointer-events:none;position:absolute;left:-1px;top:-1px;width:42px;height:42px;transform:rotate(-90deg)}circle.micrio-media-controls{stroke-width:2;stroke:#fff;fill:transparent;stroke-dasharray:119.4 119.4;transition:stroke-dashoffset .25s linear;transform-origin:center center}figure.micrio-media{display:block;margin:0;width:100%;position:relative;overflow:hidden}figure.micrio-media div:where(.micrio-media){cursor:pointer}figure.micrio-media div.videotour:where(.micrio-media){display:flex}figure.micrio-media:fullscreen div:where(.micrio-media){width:100vw;height:100vh;display:flex;flex-direction:column}figure.micrio-media:fullscreen div:where(.micrio-media)>:first-child{flex:1}.marker-popup>figure.micrio-media>div:where(.micrio-media){width:100%}iframe.micrio-media,video.micrio-media{display:block;max-width:unset}figure.is360.micrio-media{position:absolute;bottom:5px;width:360px;left:50%;transform:translate(-50%)}figure.is360.micrio-media video:where(.micrio-media){display:none;width:200px;height:200px}iframe.hooked.micrio-media{pointer-events:none}figcaption.micrio-media{font-style:italic;margin:.5em 1em;text-align:center;font-size:90%;color:var(--micrio-color)}:not(.micrio-popover)>figure.micrio-media>figcaption:where(.micrio-media)>*{margin:0}.micrio-popover figure.micrio-media{margin:0}aside.micrio-media{width:100%;display:flex}aside.inside.micrio-media{position:absolute;transform:translateY(-100%)}div.show-play.micrio-media{position:fixed;top:0;left:0;width:100%;height:100%;cursor:pointer;background:#0008;display:flex;align-items:center;justify-content:center}div.show-play.micrio-media>button.micrio-button{transform:scale(2)}figure.micrio-media:not(.media-micrio) button.micrio-button{margin:0;border:none;border-radius:0;white-space:pre;--micrio-background-filter: none;--micrio-button-shadow: none}figure.media-micrio.micrio-media{text-align:var(--micrio-text-align)}article.micrio-article{text-align:var(--micrio-text-align);line-height:var(--micrio-line-height, 1.5em)}article.micrio-article>*:first-child{margin-top:0}article.micrio-article>*:last-child{margin-bottom:0}article.micrio-article p a{color:var(--micrio-color-hover, inherit);word-wrap:break-word}main.micrio-marker-content{position:relative;padding:var(--micrio-popup-padding);padding-bottom:0;overflow-y:auto;-webkit-user-select:text;user-select:text;color:var(--micrio-color);background:var(--micrio-background);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);box-shadow:var(--micrio-popup-shadow);border-radius:var(--micrio-border-radius);box-sizing:border-box;text-align:var(--micrio-text-align)}main.micrio-marker-content>*{--micrio-button-background: none;--micrio-background-filter: none;--micrio-button-shadow: none}main.micrio-marker-content .micrio-progress-bar.container{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}main.micrio-marker-content::-webkit-scrollbar{background-color:transparent;width:10px}main.micrio-marker-content::-webkit-scrollbar-thumb{background:var(--micrio-color);border-radius:var(--micrio-border-radius);margin-top:10px}main.empty.micrio-marker-content{width:auto}main.micrio-marker-content h1:where(.micrio-marker-content){font-size:1.5em;font-weight:600;margin:0 0 1.25em}main.micrio-marker-content>figure.micrio-media{margin:calc(-1 * var(--micrio-popup-padding));margin-bottom:0;width:auto;--micrio-background: transparent}main.micrio-marker-content>figure.micrio-media:not(.media-video):not(:last-child)>*:last-child:not(figcaption){margin-bottom:var(--micrio-popup-padding);background:var(--micrio-background);padding:0 var(--micrio-popup-padding)}main.micrio-marker-content>figure.micrio-media.media-video{margin-bottom:var(--micrio-popup-padding)}main.micrio-marker-content>figure.micrio-media>div>aside.micrio-media{--micrio-background: transparent}main.micrio-marker-content>article:last-child{margin-bottom:var(--micrio-popup-padding)}main.micrio-marker-content p{white-space:pre-line}main.micrio-marker-content figure.hidden{display:none}main.micrio-marker-content figure>div.micrio-media>*:first-child{width:100%}button.micrio-marker-content{padding:0;margin:0 calc(-1 * var(--micrio-popup-padding)) var(--micrio-popup-padding) calc(-1 * var(--micrio-popup-padding))}button.micrio-marker-content:disabled{cursor:default}figcaption.micrio-marker-content{padding:10px;font-style:italic;font-size:.9em;margin-bottom:var(--micrio-popup-padding);text-align:center}section.micrio-marker-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));column-gap:5px;row-gap:5px;justify-items:center;margin-bottom:var(--micrio-popup-padding)}section.micrio-marker-content button:where(.micrio-marker-content){color:inherit;border:none;display:block;width:100%;cursor:pointer;margin:0}section.micrio-marker-content figure:where(.micrio-marker-content){padding:0;margin:0}section.micrio-marker-content img:where(.micrio-marker-content){width:100%;display:block;object-fit:cover}div.micrio-marker-popup{display:block;cursor:auto;pointer-events:all;position:absolute;top:var(--micrio-border-margin);left:var(--micrio-border-margin)}div.destroying.micrio-marker-popup{pointer-events:none}div.micrio-marker-popup>main{max-height:80vh;max-height:80cqh}aside.micrio-marker-popup{padding:var(--micrio-border-margin)}aside.micrio-marker-popup progress:where(.micrio-marker-popup){display:none}@media (min-width: 501px){div.micrio-marker-popup{width:440px;min-width:20%}aside.micrio-marker-popup{position:absolute;left:100%;top:0;padding-top:0}aside.micrio-marker-popup>.micrio-button{padding:0;margin:0 0 8px;display:block}}@media (max-width: 500px){aside.micrio-marker-popup{position:relative;padding:0;display:flex;flex-direction:row-reverse;margin-bottom:var(--micrio-border-margin);align-items:center}aside.micrio-marker-popup progress:where(.micrio-marker-popup){display:block;flex:1;opacity:0;pointer-events:none}aside.micrio-marker-popup .micrio-tour-controls{margin-bottom:0!important;display:flex}aside.micrio-marker-popup .micrio-button{display:block!important;height:var(--micrio-button-size);padding:0!important;margin:0 0 0 8px}div.micrio-marker-popup{top:var(--micrio-border-margin);right:var(--micrio-border-margin);left:var(--micrio-border-margin);width:auto}div.micrio-marker-popup>main{max-height:calc(100vh - var(--micrio-button-size) - 3 * var(--micrio-border-margin));max-height:calc(100cqh - var(--micrio-button-size) - 3 * var(--micrio-border-margin));box-sizing:border-box}}div.micrio-marker-popup>main>*:not(h3){transition-property:margin-top,margin-bottom,height,opacity;transition-duration:.5s;transition-timing-function:ease;overflow:hidden}div.minimized.micrio-marker-popup>main>*:not(h3){margin-top:0;margin-bottom:0;opacity:0}button.tour-step.micrio-marker-popup{height:auto;line-height:normal;vertical-align:middle;cursor:default}ol.micrio-serial-tour{position:absolute;left:0;bottom:75px;color:var(--micrio-color);text-shadow:var(--micrio-marker-text-shadow);list-style-type:decimal-leading-zero;margin:0}ol.micrio-serial-tour>li:where(.micrio-serial-tour){height:1.5em;white-space:pre;transition:height .25s ease,opacity .25s .25s ease}ol.micrio-serial-tour li.active:where(.micrio-serial-tour){font-weight:700}.minimized>ol.micrio-serial-tour>li:where(.micrio-serial-tour):not(.active){height:0em;opacity:0;transition:height .25s .25s ease,opacity .25s ease}ol.micrio-serial-tour li:where(.micrio-serial-tour) button:where(.micrio-serial-tour){font:inherit;background:none;border:none;display:inline;color:inherit;text-shadow:inherit;cursor:pointer}ol.micrio-serial-tour li:where(.micrio-serial-tour) button:where(.micrio-serial-tour):hover{text-decoration:underline}aside.micrio-media-controls.micrio-serial-tour>figure.micrio-media{display:none}div.micrio-tour{position:absolute;bottom:var(--micrio-border-margin);left:50%;max-width:calc(100% - var(--micrio-border-margin) * 2);transform:translate(-50%);box-sizing:border-box;display:flex;border-radius:var(--micrio-border-radius);box-shadow:var(--micrio-button-shadow);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background-color:var(--micrio-button-background, var(--micrio-background, none));padding:0;transition:transform .2s ease}div:not(:hover).minimized.micrio-tour{transform:translate3d(-50%,calc(100% + var(--micrio-border-margin)),0);pointer-events:none}.serial-tour.micrio-tour>*{--micrio-background: none}.serial-tour.minimized.micrio-tour{transform:translate3d(0,calc(100% + var(--micrio-border-margin)),0)}.serial-tour.micrio-tour,.video-tour.micrio-tour{width:500px}div.micrio-tour>*{--micrio-button-background: none}div.micrio-tour button{margin:0;border:none;border-radius:0;white-space:pre;--micrio-background-filter: none;--micrio-button-shadow: none}article.scroll-tour.micrio-tour{position:absolute;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;scroll-snap-type:y mandatory}button.micrio-button.scroll-tour-end{position:absolute;top:5px;right:5px}article.micrio-tour>div.micrio-marker-popup{margin:20vh 50px 50vh;margin:20cqh 50px 50cqh;scroll-snap-align:center;position:relative!important}article.micrio-tour>div.micrio-marker-popup:nth-child(2n){margin-left:auto}article.micrio-tour>div.micrio-marker-popup>aside{display:none}div.micrio-dial{position:absolute;bottom:var(--micrio-border-margin);width:320px;max-width:calc(100vw - calc(2 * (var(--micrio-button-size) + 4 * var(--micrio-border-margin))));max-width:calc(100cqw - calc(2 * (var(--micrio-button-size) + 4 * var(--micrio-border-margin))));left:50%;transform:translate(-50%);height:calc(var(--micrio-button-size) * .6);touch-action:none;background-color:transparent;cursor:w-resize;overflow:hidden}div.micrio-dial:before,div.micrio-dial:after{content:"";display:block;width:100%;position:absolute;background-position:var(--micrio-dial-offset, 0px)}div.micrio-dial:before{height:50%;top:25%;background-image:repeating-linear-gradient(to right,#8888 0%,#8888 .5%,transparent 1%,transparent 2.5%)}div.micrio-dial:after{height:100%;background-image:repeating-linear-gradient(to right,#fff8 0%,#fff8 .5%,transparent 1%,transparent 20%)}span.micrio-dial{position:absolute;display:block;bottom:0;line-height:calc(var(--micrio-button-size) * .6);left:50%;transform:translate(calc(-50% + 5px));color:var(--micrio-color);opacity:.85;pointer-events:none;text-shadow:1px 1px 3px #000,-1px -1px 3px #000;font-size:smaller}ul.micrio-gallery{position:absolute;bottom:var(--micrio-border-margin);left:50%;transform:translate(-50%);display:flex;list-style-type:none;background:var(--micrio-background);border-radius:var(--micrio-border-radius);padding:0 16px;margin:0;color:var(--micrio-color);transition:opacity .25s ease;max-width:calc(100vw - 50px);max-width:calc(100cqw - 50px);width:520px;touch-action:none}@media (max-width: 500px){ul.micrio-gallery{left:5px;right:52px;width:auto;transform:none}div.hidden.micrio-gallery>ul:where(.micrio-gallery){transition-delay:.25s}}li.micrio-gallery{flex:1;transition:none;padding:0;line-height:var(--micrio-button-size);font-size:32px;text-align:center;width:0;transition:opacity .25s ease;opacity:.25;display:block;height:48px;position:relative}li.active.micrio-gallery{transition-duration:0s;opacity:1}li.micrio-gallery>button:where(.micrio-gallery){border:none;color:inherit;cursor:pointer;position:absolute;left:50%;transform:translate3d(-50%,0,0);height:48px;width:100%;min-width:48px;pointer-events:none;background:none;padding:0}li.hover.micrio-gallery>button:where(.micrio-gallery){pointer-events:all}@media (hover: hover){li.hover.micrio-gallery{transition-duration:0s;opacity:1}}button.micrio-gallery:not(.bullet){position:absolute;width:var(--micrio-button-size);height:var(--micrio-button-size);box-sizing:border-box;background:#eee3;border:none;border-radius:var(--micrio-border-radius);touch-action:none;transition:left .15s ease,background-color .2s ease;transform:translate(-50%)}ul.micrio-gallery>button:where(.micrio-gallery){top:0;left:0;cursor:ew-resize}button.angular.micrio-gallery{bottom:42px;left:50%;color:#444;font-size:32px;line-height:42px;padding:0;cursor:move}button.micrio-gallery:not(.bullet):hover{background:#eee8}button:not(.bullet).dragging.micrio-gallery{transition:none}div.micrio-gallery{display:contents;transition:opacity .5s ease}div.hidden.micrio-gallery:not(:hover)>*,div.micrio-gallery>button.gallery-btn:disabled{opacity:0;pointer-events:none}div.micrio-gallery>button.gallery-btn{position:absolute;top:50%;transform:translateY(-50%)}div.micrio-gallery>button.gallery-btn.arrow-left{left:var(--micrio-border-margin)}div.micrio-gallery>button.gallery-btn.arrow-right{right:var(--micrio-border-margin)}details.micrio-details{position:absolute;bottom:var(--micrio-border-margin);left:var(--micrio-border-margin);padding:var(--micrio-popup-padding);font-size:.9em;max-width:410px;-webkit-user-select:text;user-select:text;white-space:normal;transition:all .5s ease;box-sizing:border-box;color:var(--micrio-color);background:var(--micrio-background);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);box-shadow:var(--micrio-popup-shadow);border-radius:var(--micrio-border-radius)}details.micrio-details summary:where(.micrio-details){cursor:pointer;list-style:none}details.micrio-details summary:where(.micrio-details)::-webkit-details-marker{display:none}details.micrio-details small:where(.micrio-details){display:block;font-style:italic;font-weight:400}details.micrio-details>:where(.micrio-details){margin:0;overflow:hidden;text-overflow:ellipsis}details.micrio-details a{color:var(--micrio-color-hover, inherit)}details.micrio-details button{position:absolute;top:0;left:calc(100% + 8px)}@media (max-width: 600px){details.micrio-details{max-width:calc(100% - 10px)}details.micrio-details:not([open]) cite:where(.micrio-details){display:none}details.micrio-details:not([open]) summary:where(.micrio-details)::marker,details.micrio-details:not([open]) summary:where(.micrio-details)::-webkit-details-marker{display:inline-block;content:"?";font-size:20px;font-weight:700;line-height:20px;margin-right:5px}details.micrio-details button{position:absolute;top:auto;left:auto;right:0;bottom:calc(100% + 8px)}}div.micrio-error{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#000000bf;color:#fff;border:1px solid white;border-radius:5px;padding:10px;text-align:center;white-space:pre-wrap;-webkit-user-select:text;user-select:text;line-height:24px;z-index:10}div.micrio-error svg{vertical-align:middle;height:24px;width:24px;fill:var(--micrio-color);margin-right:10px}@media screen and (max-width: 520px){div.micrio-error{box-sizing:border-box;width:90%}}micr-io.micrio-micrio-gallery{background:#1118;display:block;width:100%;height:100%}micr-io.micrio-micrio-gallery ul.micrio-gallery{--micrio-border-margin: 16px}@media (min-width: 501px){micr-io.micrio-micrio-gallery:not(:fullscreen)>aside{position:fixed}}dialog.micrio-popover::backdrop{color:#fff;animation:micrio-popover-fadeInBg .2s forwards;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}@keyframes micrio-popover-fadeInBg{0%{background:#0000}to{background:var(--micrio-popover-background)}}@keyframes micrio-popover-fadeIn{0%{opacity:0}to{opacity:1}}dialog.micrio-popover{animation:micrio-popover-fadeIn .5s forwards;background:transparent;border:none;overflow:visible;padding:0;pointer-events:all;max-width:90vw;max-height:90vh;max-width:90cqw;max-height:90cqh}dialog.micrio-popover div.micrio-media>*:first-child{border-radius:var(--micrio-border-radius);overflow:hidden}dialog.micrio-popover div.micrio-media>aside{--micrio-background: none;--micrio-button-background: none}dialog.page.article.micrio-popover figure.media-video iframe{width:100%}aside.micrio-popover{--micrio-background-filter: none;position:absolute;z-index:1}dialog.micrio-popover:not(.article){display:flex}dialog.micrio-popover:not(.article) figure>div.micrio-media{height:100%}@media (min-width: 640px){aside.micrio-popover{display:block;left:100%;margin-left:var(--micrio-border-margin);top:0}aside.inside.micrio-popover{right:0;left:auto;top:0;margin-left:0;margin-right:var(--micrio-border-margin)}aside.micrio-popover:not(.inside){z-index:2;position:absolute;top:0;left:100%}aside.micrio-popover>.micrio-button{padding:0;margin:0 0 8px;display:block}dialog.micrio-popover:not(.article){width:calc(85vw - 56px);height:47.8125vw;width:calc(85cqw - 56px);height:47.8125cqw}dialog.micrio-popover>main{width:25vw;width:25cqw;min-width:unset;max-width:320px}dialog.micrio-popover>main>h1{margin-right:55px}}@media (max-width: 639px){aside.micrio-popover{position:fixed;top:var(--micrio-border-margin);right:var(--micrio-border-margin)}aside.micrio-popover .micrio-button{display:inline-block!important;border-radius:var(--micrio-border-radius)!important;height:var(--micrio-button-size);box-shadow:var(--micrio-button-shadow);padding:0!important;margin-left:8px}dialog.micrio-popover:not(.article){width:100%;height:100%;flex-direction:column}dialog.micrio-popover:not(.article) figure.micrio-media{flex:1}}dialog.micrio-popover>figure{flex:1;position:relative;margin:0}dialog.micrio-popover>figure>figcaption{position:absolute;width:100%;bottom:100%;font-style:italic;text-align:center;font-size:90%;padding:0;margin:var(--micrio-border-margin);color:var(--micrio-color)}dialog.micrio-popover>figure>div.micrio-media>*:first-child{width:100%;height:calc(100% - var(--micrio-button-size))}dialog.micrio-popover>figure>div.micrio-media>micr-io{height:100%!important}@media (min-aspect-ratio: 16/9){dialog.micrio-popover:not(.article){height:75vh;width:calc(16 / 9 * 75vh);height:75cqh;width:calc(16 / 9 * 75cqh)}}@media (max-width: 639px){dialog.micrio-popover div.micrio-media>*:first-child{border-radius:0}dialog.micrio-popover:not(.article)>*:first-child{height:50vh;height:50cqh;flex-direction:column;justify-content:center}dialog.micrio-popover:not(.article)>figure:first-child{flex:none;display:flex;flex-direction:column}}dialog.article.micrio-popover>article{text-shadow:none;color:var(--micrio-color);background:var(--micrio-background);padding:20px;box-sizing:border-box;max-height:calc(90cqh - 48px);max-height:calc(90vh - 48px);overflow-x:hidden;overflow-y:auto;border-radius:var(--micrio-border-radius)}@media (min-width: 640px){dialog.article.micrio-popover{width:540px}}dialog.article.micrio-popover h2:where(.micrio-popover){text-align:center}dialog.article.micrio-popover article img{width:100%;height:auto}menu.micrio-popover{margin:10px 0;padding:0;list-style:none}menu.micrio-popover>.micrio-button{margin-right:10px}menu.right.micrio-popover{text-align:right}menu.right.micrio-popover>.micrio-button{margin:0 0 0 10px}div.micrio-marker{position:absolute;display:block;transform:translate3d(calc(var(--x, 0) - 50%),calc(var(--y, 0) - 50%),0) scale3d(var(--scale, 1),var(--scale, 1),1);top:0;left:0;will-change:transform}div.micrio-marker:not(.cluster):not(.no-fade){animation:micrio-marker-fadeIn .25s;animation-fill-mode:forwards}div.overlapped.micrio-marker{display:none}@keyframes micrio-marker-fadeIn{0%{opacity:0}to{opacity:1}}div.behind.micrio-marker{pointer-events:none;visibility:hidden}div.mat3d.micrio-marker{transform:var(--mat);top:50%;left:50%;transform-style:preserve-3d}div.mat3d.micrio-marker>button:where(.micrio-marker){position:absolute;transform:translate3d(-50%,-50%,0)}button.micrio-marker{display:block;width:var(--micrio-marker-size);height:var(--micrio-marker-size);color:var(--micrio-marker-text-color);position:relative;cursor:pointer;font:inherit;padding:0;margin:0;background:transparent none center center no-repeat;background-image:var(--micrio-marker-icon);background-size:contain;border:none}div.micrio-marker:not(.cluster) label:where(.micrio-marker){position:absolute;top:50%;left:100%;text-align:var(--micrio-text-align);cursor:pointer;transform:translateY(-50%);padding-left:10px;max-width:170px;width:max-content;white-space:pre-wrap;font-size:90%;font-weight:600;line-height:1em;text-shadow:var(--micrio-marker-text-shadow);opacity:0;pointer-events:none;transition:opacity .1s ease}div.micrio-marker:hover{z-index:2}.show-titles>div.micrio-marker label:where(.micrio-marker),div.micrio-marker:hover label:where(.micrio-marker){opacity:1}@media (max-width: 640px){div.micrio-marker:not(.cluster) label:where(.micrio-marker){font-size:12px}}.show-titles>div.micrio-marker label:where(.micrio-marker){pointer-events:all}label.static.micrio-marker{transform:translate(-50%,4px) scale3d(calc(1 / var(--scale, 1)),calc(1 / var(--scale, 1)),1)}div.default.micrio-marker button:where(.micrio-marker){box-sizing:content-box;background-clip:content-box;border-radius:var(--micrio-marker-border-radius);border:var(--micrio-marker-border-size) solid var(--micrio-marker-border-color);transition:var(--micrio-marker-transition);background-color:var(--micrio-marker-color)}div.default.micrio-marker:hover,div.default.hovered.micrio-marker,div.default.opened.micrio-marker{z-index:1}div.default.micrio-marker:hover button:where(.micrio-marker),div.default.hovered.micrio-marker button:where(.micrio-marker),div.default.opened.micrio-marker button:where(.micrio-marker){background-color:var(--micrio-marker-highlight);border-width:0;width:calc(var(--micrio-marker-size) + var(--micrio-marker-border-size) * 2);height:calc(var(--micrio-marker-size) + var(--micrio-marker-border-size) * 2)}div.has-icon.micrio-marker button:where(.micrio-marker){--micrio-marker-icon: none}div.default.has-icon.micrio-marker button:where(.micrio-marker){color:#fff;width:calc(var(--micrio-marker-size) + 24px);height:calc(var(--micrio-marker-size) + 24px);background-color:var(--micrio-marker-border-color);border:none}div.default.has-icon.micrio-marker button:where(.micrio-marker)>svg{margin:0 auto}div.default.has-icon.opened.micrio-marker button:where(.micrio-marker)>svg,div.default.has-icon.hovered.micrio-marker button:where(.micrio-marker)>svg,div.default.has-icon.micrio-marker:hover button:where(.micrio-marker)>svg{color:var(--micrio-marker-highlight)}div.default.has-custom-icon.micrio-marker button:where(.micrio-marker){background-color:var(--micrio-marker-color)}div.default.has-custom-icon.opened.micrio-marker button:where(.micrio-marker),div.default.has-custom-icon.hovered.micrio-marker button:where(.micrio-marker),div.default.has-custom-icon.micrio-marker:hover button:where(.micrio-marker){background-color:var(--micrio-marker-highlight, var(--micrio-marker-color))}div.cluster.micrio-marker button:where(.micrio-marker){border:2px solid var(--micrio-marker-color);background:var(--micrio-cluster-marker-background, #fff);color:var(--micrio-cluster-marker-color, #000);width:calc(var(--micrio-marker-size) + 12px);height:calc(var(--micrio-marker-size) + 12px);border-radius:100%;box-sizing:content-box}div.cluster.micrio-marker:hover button:where(.micrio-marker){background:var(--micrio-marker-highlight, #fff);border-color:var(--micrio-marker-highlight, #fff)}div.cluster.micrio-marker label:where(.micrio-marker){pointer-events:none;display:none}div.micrio-marker img:where(.micrio-marker){max-width:100%;max-height:100%;display:block;margin:auto}div.micrio-waypoint{display:block;position:absolute;transform-style:preserve-3d;transform:var(--matrix);width:0;height:0;top:50%;left:50%;--micrio-bb: var(--micrio-button-background);--micrio-bbh: var(--micrio-button-background-hover)}div.micrio-waypoint>button{--micrio-button-background: var(--micrio-waypoint-background, var(--micrio-bb));--micrio-button-background-hover: var(--micrio-waypoint-background-hover, var(--micrio-bbh));--micrio-button-size: var(--micrio-waypoint-size);--micrio-border-radius: var(--micrio-waypoint-border-radius, 100%);--micrio-icon-size: var(--micrio-waypoint-icon-size, calc(var(--micrio-button-size) - 50px));transform:translate3d(-50%,-50%,0) scale3d(.5,.5,1);pointer-events:all;transition:background-color .25s ease,opacity .25s ease,border-color .25s ease,transform .25s ease;border:var(--micrio-waypoint-border-size, var(--micrio-marker-border-size)) solid var(--micrio-waypoint-border-color, var(--micrio-marker-border-color));margin:0}div.micrio-waypoint>button>svg{pointer-events:none;margin:0 auto}div.micrio-waypoint:hover>button,div.active.micrio-waypoint>button{transition:background-color .25s ease,opacity .25s ease,transform .25s ease;transform:translate3d(-50%,-50%,0) scale3d(.6,.6,1)}div.clicked.micrio-waypoint>button{animation:micrio-waypoint-pulse .75s ease infinite alternate}@keyframes micrio-waypoint-pulse{0%{transform:translate3d(-50%,-50%,0) scale3d(.5,.5,1)}to{transform:translate3d(-50%,-50%,0) scale3d(.75,.75,1)}}div.micrio-markers{pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:width,height,top,left,opacity;perspective:inherit}div.micrio-markers:empty{display:none}div.micrio-markers>*{pointer-events:all}div.inactive.micrio-markers>*{pointer-events:none}div.is360.micrio-markers{transition:opacity .25s}div.is360.inactive.micrio-markers{opacity:0}aside.micrio-markers{pointer-events:none}aside.micrio-markers section:where(.micrio-markers){position:absolute;top:0;bottom:0;width:10vw;width:10cqw;min-width:200px;font-size:1em;font-weight:500;line-height:1em;color:var(--micrio-marker-color);display:flex;flex-direction:column}aside.micrio-markers section:where(.micrio-markers):nth-child(1){left:10px;align-items:flex-end}aside.micrio-markers section:where(.micrio-markers):nth-child(2){right:10px;align-items:flex-start}aside.micrio-markers section:where(.micrio-markers) article:where(.micrio-markers){flex:1;padding:10px;max-height:30vh;max-height:30cqh;display:flex;align-items:center}aside.micrio-markers section:where(.micrio-markers) label:where(.micrio-markers){pointer-events:all;cursor:pointer;padding:10px;max-width:160px;opacity:.75;transition:opacity .25s ease,color .25s ease;text-shadow:var(--micrio-marker-text-shadow)}label.hover.micrio-markers{color:var(--micrio-marker-highlight);opacity:1}aside.micrio-markers section:where(.micrio-markers):nth-child(1) article:where(.micrio-markers){justify-content:right}aside.micrio-markers section:where(.micrio-markers):nth-child(1) label:where(.micrio-markers){text-align:right}svg.micrio-markers{width:100%;height:100%;pointer-events:none;position:absolute}svg.micrio-markers line:where(.micrio-markers){stroke:var(--micrio-marker-highlight);stroke-width:2}svg.micrio-markers line:where(.micrio-markers):not(.hovered){stroke:var(--micrio-marker-color);stroke-dasharray:10px;stroke-width:1;opacity:.75}.embed-container.micrio-embed{position:absolute;display:block;top:0;left:0;transform:translate3d(calc(var(--x, 0) - 50%),calc(var(--y, 0) - 50%),0) scale3d(var(--s),var(--s),1);opacity:var(--opacity, 1);direction:ltr;will-change:transform,opacity}.embed3d.micrio-embed{top:50%;left:50%}.embed-container.no-events.micrio-embed{pointer-events:none}.embed-container.micrio-embed>:where(.micrio-embed){cursor:pointer}.embed-container.micrio-embed>*{position:absolute;transform:translate3d(-50%,-50%,0) scale3d(var(--scale, 1),var(--scale, 1),1)}.embed-container.micrio-embed>*:not(button){width:auto!important}.embed-container.micrio-embed:not(.no-events)>*{pointer-events:all}.embed-container.micrio-embed>img:where(.micrio-embed){max-width:none}.embed-container.micrio-embed>button{--scale: 1;--ratio: 1;padding:0;margin:0;background:transparent;border:none;width:100px;aspect-ratio:var(--ratio)}svg.micrio-progress-circle{position:absolute;top:50%;left:50%;pointer-events:none;transform:translate(-50%,-50%) rotate(-90deg);z-index:10}circle.micrio-progress-circle{transition:stroke-dashoffset .25s ease}
|
|
26
26
|
`,C,M))})();
|