@micrio/client 5.4.11 → 5.4.13

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.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Micrio Client 5.4.11
1
+ /* Micrio Client 5.4.13
2
2
  * Copyright (C) 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='H4sIAAAAAAACA929e2BcR3UwPnNfe3dnpR3ZkqNYDpm9domI7USUYGSTRLqK7MjkpTwAQ$kayZIcS37Jlpw4QY5UEoJ5FfNs4qZkHxIEAiWUgE2cYNPySEpa3BZoCik1pNBQ0uJS+JpCiH8558y9d+6unDi0v38+#dk7jzMzZ95nzpxzhg1#b##MMf6w0zXAp9mANT3NBvg0n4afqQF7ehoDpzCGTw+401NTU1NsgE$xqQHGpwecafRb0xBgTcGvM42pPASdZgP2NPxmyEv+KZ0V5ikxBjzawaextCnKAnP#TmsQLJcN+FDGtM5+ei$+TkGZGj97eq8uiSGKET4A5JMDUPE1UtNMl0Co#7qSt0I7ADrQDnw6KhXdBSo$jfRePj2Qmd6LfxgwpZsIUjRH8JQG84LwlvnCo8bGHDx0RHlFIZSrH7Uenx4Q2q3xyRteiLYwlE$zvdi+e7HR+N6oa6BpdW7oLkTJCSEIajSDpnCEQNZT1n$wRntk+43u4MYduyZZg7NtcHR7bmJk8g2jE6Mbt44wjiGZwe2jvTu2jzCGXn9w+2iICcgvbhwduWl8x67Ja0cmWYaCkjx+V2fS#DEyed3o1pGrxgeHRidvZqsNQEr#lmJQdmJk8orByV2je6LyhncN3nT17sFh9juU0w3pnF6TQEEw#4eQBqwAIwY19LaNbNux62aLcftH$En#LG8Vf7nws46XzVqWw3Mud12Xc+5wy+J23s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q$8D1ZoZawF$kLP5UVHSuMAAc2C7Da5dD$86d6oiYVYAhlrWfb2Y1sEPEcxpqNs#3sBjbJNgNGufp6vTxVL2iHXWyQ3cw2st1sE9vERtiudP3Cx3KnU6+nc$#34W62nY2wPWycjbAhNslGEM$tbDf2UF3riPpcljHGJtguNsT#ZzexQTbBtrHzsWep7h#1$RE+fdq5TLDN2AaAVW0u9+fFUb79tv+ug#9v3nj#s69o6b3yrg9v$N7Rf7zgl$cNXf1cuP+SC9dsX3Zw8KuHv$+v5633jv$tFT1LfnrWc0s+8DfZX776bU9d$PFXfPbl43f$5Pbew+et$s77V4e3Xv$Au6+$$e5frL72tpN$9MzZr23$74ff3XT+zwp3ut$$5q2rtp29LffmTV3rrjqY$cY5X3$wnN0r$$X6j$7X6sxFb$2PH$30s9f$esu$fuCad63rsN$g$5$3nq0e+uaJ+7a89dnB9z$5ibNW$eLA9W+$a8Rv+$Hvzzx+8r3dm0vNb2zxvFeeM3EFC59tqG+MYN7GuImNsI3sBra1foCHDzW+lI7ZhsNosK5Jn50nlxWnkQt09WiUW$hQQfRfXpPLBaeRyxY2ioMRFoSh#tzeI+un2#JTTJY4bfiQPN3WHWXb2CAu#vWt+6xMTzEo19e5JVB3N82$CIQxXoqNMniZbYRtY+Nskt0M07cpnXebzttKT98aqCUayk4vcQvmz8tJT+JTQLkpqMd#AeWl8ToFVCaN18L5ofw0XgtPZyF77LSgnj4tqPc0n9aW0Dz$Ml0$hmgh3YHbUXrZ+$8AwBXfQkLVAAA=',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='H4sIAAAAAAACA929e2BcR3UwPnNfe3dnpR3ZkqNYDpm9domI7USUYGSTRLqK7MjkpTwAQ$kayZIcS37Jlpw4QY5UEoIJ0JpnEzeFfUghECihBGxigk3LIylpcVugKaTUkEJDSYuh8DWFEP9yzpl779xd#XFof$98crJ3HmdmzrzPnDnnDBuc2MYZY$xhp2uAT7MBa3qaDfBpPg0$UwP29DQGTmEMnx5wp6empqbYAJ$iUw#MTw840+i3piHAmoJfZxpTeQg6zQbsafjNkJf8UzorzFNiDHi0g09jaV#UBeacndYgWC4b8KGMaZ399F78nYIyNX729F5dEkMUI3wAyCcHo#JrpKaZLoFQd3Qlb4V2AHSgHfh0VCq6C1R+Gum9fHogM70X$zBgSjcRpGi#4CkN5gXhLf#FR42N#XjoiPKKQihXP2o9Pj0gtFvjkze8EG1hKJ$me7F992Kj8b1R10DT6tzQXYiSE0IQ1GgGTeEIgaynrJ$xRntk+43u4MYduyZZg7NtcHR7bmJk8g2jE6Mbt44wjiGZwe2jvTu2jzCGXn9w+2iICcgvbhwduWl8x67Ja0cmWYaCkjx+V2fS#DEyed3o1pGrxgeHRidvZqsNQEr#lmJQdmJk8orByV2je6LyhncN3nT17sFh9juU0w3pnF6TQEEw#4eQBqwAIwY19LaNbNux62aLcfuH$En#LG8Vf7nws46XzVqWw3Mud12Xc+5wy+J23s8vthrtBofZPmMXL$NzjPt532$yfdfNnWlxxgoWYxctsgKP#SKfy1i2$r#U4#xVjDGP+ZZ1fpMnuNXcwHmb5$Dlz#GvcDozUBIA#PiP#a2Wlc1mrfbMQn7eSmuBteB3V3TwC179yoyUmRxnVr#deVlxEbcZszzPdl3bzpzlusxiZ7PMhS0ta17LMpCnxS2rsbGwx#ELzz3Dcfg4y3pvLkzzkImX9sNCST9TvJfpv5T7Vt7DR#bL2avdiZEbJjbY#fy+yRb#y#DECGsWQzu2T0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L4e$923nrv+N9d0bPkJ2c9t+R9f5v95avf9tTFH33Fp18+fs+Pb+89fN7qb793dXjr9Q++6$rb7$nF6mtv#$nHz5z92vb$fvhdTef$tHCX+71v3Lpq29nbcm$e1LXuqoPZr5$ztYf#2b3y367$8H+tzlz01p$98Cefvv7XW$7tfdfcua7DfoP$f95ztvrCN07cv+Wtzw6+98mPnbXqFweuf$vdI37bj35$5vGT7+neXGp+Y4vnvfKciStY+GxDfWME8zbGTWyEbWQ3sK31Azz8QuNL6Zht#IwG65r02XlyWXEauUBXj0a5hV8oiP7La3K54DRy2cJGcTDCgjBUh9u7Zf0UW3yKyRKnDb8gT7d1R9k2NoiLTn3rPivTUwzK9XVuCdQ9TfMvAmGMl2KjDF55G2Hb2DibZDfD9G1K592m87bS07cGaomGstNL3IL583LSk$gUUG4K6rFTQHlpvE4BlUnjtXB+KD+N18LTWcge#y2op08L6t3Np7UlNM+$TNePIVpId+B2lF72$j+u8013otUAAA==',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
- !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,g=Symbol("$state"),f=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,S=Array.prototype,$=Object.getPrototypeOf,A=Object.isExtensible;function M(t){return"function"==typeof t}const I=()=>{};function L(t){return t()}function P(t){for(var e=0;e<t.length;e++)t[e]()}let C=[],O=[];function R(){var t=C;C=[],P(t)}function D(t){0===C.length&&queueMicrotask(R),C.push(t)}function z(){var t;C.length>0&&R(),O.length>0&&(t=O,O=[],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||g in t)return t;const r=$(t);if(r!==E&&r!==S)return t;var n=new Map,s=b(t),o=Y(0),a=bt,l=t=>{var e,i=bt;return kt(a),e=t(),kt(i),e};return s&&n.set("length",Y(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((()=>Y(i.value))),n.set(e,r)):G(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((()=>Y(e))));else{if(s&&"string"==typeof i){var a=n.get("length"),c=Number(i);Number.isInteger(c)&&c<a.v&&G(a,c)}G(r,e),q(o)}return!0},get(i,r,s){var o;if(r===g)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((()=>Y(B(c?i[r]:e)))),n.set(r,a)),void 0!==a){var u=Yt(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=Yt(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===g)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((()=>Y(o?B(t[i]):e))),n.set(i,s)),Yt(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?G(m,e):h in t&&(m=l((()=>Y(e))),n.set(h+"",m))}void 0===u?d&&!(null==(c=_(t,i))?void 0:c.writable)||(G(u=l((()=>Y(void 0))),l((()=>B(r)))),n.set(i,u)):(d=u.v!==e,G(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"),g=Number(i);Number.isInteger(g)&&g>=p.v&&G(p,g+1)}q(o)}return!0},ownKeys(t){Yt(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){G(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 Y(t,e){const i=X(t);return Et(i),i}function j(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 G(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;gt?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===At?function(t){At=t}([t]):At.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 J(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 K(t){const e=J(t);return Et(e),e}function Q(t){const e=J(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=Dt(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,gt=!1;function ft(t){gt=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 St=null,$t=0,At=null;let Mt=1,It=0,Lt=!1;function Pt(){return++Mt}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,g=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===g||g.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 Ot(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 Dt(t){var e,i=St,r=$t,n=At,s=bt,a=Lt,l=xt,c=we,u=yt,d=t.f;St=null,$t=0,At=null,Lt=!!(d&o)&&(yt||!pt||null===bt),bt=96&d?null:t,xt=null,be(t.ctx),yt=!1,It++,t.f|=p;try{var h=(0,t.fn)(),m=t.deps;if(null!==St){var v;if(Nt(t,$t),null!==m&&$t>0)for(m.length=$t+St.length,v=0;v<St.length;v++)m[$t+v]=St[v];else t.deps=m=St;if(!Lt)for(v=$t;v<m.length;v++)((e=m[v]).reactions??(e.reactions=[])).push(t)}else null!==m&&$t<m.length&&(Nt(t,$t),m.length=$t);if(xe()&&null!==At&&!yt&&null!==m&&!(6146&t.f))for(v=0;v<At.length;v++)Rt(At[v],t);return null!==s&&(It++,null!==At&&(null===n?n=At:n.push(...At))),h}finally{St=i,$t=r,At=n,bt=s,Lt=a,xt=l,be(c),yt=u,t.f^=p}}function zt(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===St||!St.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++)zt(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=Dt(t);t.teardown="function"==typeof a?a:null,t.wv=Mt;t.deps;i}catch(c){Ot(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;Ot(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){Ot(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){Ot(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(z();wt.length>0;)mt=!0,Ut(),z()}()}function Yt(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<It&&(t.rv=It,null===St&&null!==n&&n[$t]===t?$t++:null===St?St=[t]:Lt&&St.includes(t)||St.push(t))}return e&&Ct(i=t)&&et(i),gt&&W.has(t)?W.get(t):t.v}function jt(t){var e=yt;try{return yt=!0,t()}finally{yt=e}}const Gt=-7169;function Ht(t,e){t.f=t.f&Gt|e}function Zt(t){if("object"==typeof t&&t&&!(t instanceof EventTarget))if(g in t)Jt(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];"object"==typeof i&&i&&g in i&&Jt(i)}}function Jt(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{Jt(t[n],e)}catch(i){}const r=$(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 Kt(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")}(),gt&&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(Kt(),!(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,G(i.l.r2,!0),jt(e))}))}function ne(t){return Qt(8,t,!0)}function se(t,e=[],i=J){const r=e.map(i);return oe((()=>t(...r.map(Yt))))}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=gt,i=bt;ft(!0),kt(null);try{e.call(null)}finally{ft(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){ge(t,!0)}function ge(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;ge(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 fe(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&&fe(),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 Se(t){return t.endsWith("capture")&&"gotpointercapture"!==t&&"lostpointercapture"!==t}const $e=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ae(t){return $e.includes(t)}const Me={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 Ie(t){return t=t.toLowerCase(),Me[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,D((()=>{document.activeElement===e&&t.focus()}))}}function Oe(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 De=new Set,ze=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?D((()=>{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++)De.add(t[e]);for(var i of ze)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 g=o["__"+n];if(null!=g&&(!o.disabled||t.target===o))if(b(g)){var[f,...w]=g;f.apply(o,[t,...w])}else g.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 Ye(t=""){var e=ot(t+"");return qe(e,e),e}function je(){var t=document.createDocumentFragment(),e=document.createComment(""),i=ot();return t.append(e,i),qe(e,i),t}function Ge(t,e){null!==t&&t.before(e)}let He=!0;function Ze(t){He=t}function Je(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 Ke(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,A(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),A(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(De)),ze.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)}ze.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=Yt(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,g,f,w=!!(8&n),b=!!(3&n),y=t.length,T=e.items,_=e.first,x=_,E=null,S=[],$=[];if(w)for(f=0;f<y;f+=1)p=s(v=t[f],f),void 0!==(g=T.get(p))&&(null==(a=g.a)||a.measure(),(m??(m=new Set)).add(g));for(f=0;f<y;f+=1)if(p=s(v=t[f],f),void 0!==(g=T.get(p))){if(b&&ni(g,v,f,n),g.e.f&d&&(pe(g.e),w&&(null==(l=g.a)||l.unfix(),(m??(m=new Set)).delete(g))),g!==x){if(void 0!==h&&h.has(g)){if(S.length<$.length){var A,M=$[0];E=M.prev;var I=S[0],L=S[S.length-1];for(A=0;A<S.length;A+=1)oi(S[A],M,i);for(A=0;A<$.length;A+=1)h.delete($[A]);ai(e,I.prev,L.next),ai(e,E,I),ai(e,L,M),x=M,E=L,f-=1,S=[],$=[]}else h.delete(g),oi(g,x,i),ai(e,g.prev,g.next),ai(e,g,null===E?e.first:E.next),ai(e,E,g),E=g;continue}for(S=[],$=[];null!==x&&x.k!==p;)x.e.f&d||(h??(h=new Set)).add(x),$.push(x),x=x.next;if(null===x)continue;g=x}S.push(g),E=g,x=g.next}else{E=si(x?x.e.nodes_start:i,e,E,null===E?e.first:E.next,v,p,f,r,n,o),T.set(p,E),S=[],$=[],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 O=4&n&&0===y?i:null;if(w){for(f=0;f<C;f+=1)null==(c=P[f].a)||c.measure();for(f=0;f<C;f+=1)null==(u=P[f].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,O,T)}}w&&D((()=>{var t;if(void 0!==m)for(g of m)null==(t=g.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}))),Yt(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)?j(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=I;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,e,i){ie((()=>{var r=jt((()=>e(t,null==i?void 0:i())||{}));if(i&&(null==r?void 0:r.update)){var n=!1,s={};ne((()=>{var t=i();Zt(t),n&&F(s,t)&&(s=t,r.update(t))})),n=!0}if(null==r?void 0:r.destroy)return()=>r.destroy()}))}function hi(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=hi(t[e]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function mi(t){return"object"==typeof t?function(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=hi(t))&&(r&&(r+=" "),r+=e);return r}(t):t??""}const vi=[..." \t\n\r\f \v\ufeff"];function pi(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 gi(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&&!vi.includes(r[o-1])||a!==r.length&&!vi.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 wi(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 bi(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(gi)),r&&l.push(...Object.keys(r).map(gi));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=gi(t.substring(c,u).trim());l.includes(m)||(";"!==h&&d++,n+=" "+t.substring(c,d).trim()+";")}c=d+1,u=-1}}}return i&&(n+=pi(i)),r&&(n+=pi(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)?(wi(t,null==i?void 0:i[0],r[0]),wi(t,null==i?void 0:i[1],r[1],"important")):wi(t,i,r));return r}const yi=Symbol("class"),ki=Symbol("style"),Ti=Symbol("is custom element"),_i=Symbol("is html");function xi(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ei(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 Si(t,e,i){var r=bt,n=Tt;kt(null),_t(null);try{"style"!==e&&(Mi.has(t.nodeName)||!customElements||customElements.get(t.tagName.toLowerCase())?Ii(t).includes(e):i&&"object"==typeof i)?t[e]=i:Ei(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[Ti],a=!s[_i],l=e||{},c="OPTION"===t.tagName;for(var u in e)u in i||(i[u]=null);i.class?i.class=mi(i.class):(r||i[yi])&&(i.class=null),i[ki]&&(i.style??(i.style=null));var d=Ii(t);for(const f in i){let n=i[f];if(c&&"value"===f&&null==n)t.value=t.__value="",l[f]=n;else if("class"!==f)if("style"!==f){var h=l[f];if(n!==h){l[f]=n;var m=f[0]+f[1];if("$$"!==m)if("on"===m){const e={},i="$$"+f;let r=f.slice(2);var v=Ae(r);if(Se(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[f].call(this,t)};l[i]=Ne(r,t,n,e)}else v&&(t[`__${r}`]=void 0)}else if("style"===f)Ei(t,f,n);else if("autofocus"===f)Ce(t,Boolean(n));else if(o||"__value"!==f&&("value"!==f||null==n))if("selected"===f&&c)xi(t,n);else{var p=f;a||(p=Ie(p));var g="defaultValue"===p||"defaultChecked"===p;if(null!=n||o||g)g||d.includes(p)&&(o||"string"!=typeof n)?t[p]=n:"function"!=typeof n&&Ei(t,p,n);else if(s[f]=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(f)}else t.value=t.__value=n}}else bi(t,n,null==e?void 0:e[ki],i[ki]),l[f]=n,l[ki]=i[ki];else fi(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,n,r,null==e?void 0:e[yi],i[yi]),l[f]=n,l[yi]=i[yi]}return l}function Ai(t){return t.__attributes??(t.__attributes={[Ti]:t.nodeName.includes("-"),[_i]:"http://www.w3.org/1999/xhtml"===t.namespaceURI})}var Mi=new Map;function Ii(t){var e,i=Mi.get(t.nodeName);if(i)return i;Mi.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=$(r)}return i}const Li={tick:t=>requestAnimationFrame(t),now:()=>performance.now(),tasks:new Set};function Pi(){const t=Li.now();Li.tasks.forEach((e=>{e.c(t)||(Li.tasks.delete(e),e.f())})),0!==Li.tasks.size&&Li.tick(Pi)}function Ci(t,e){Re((()=>{t.dispatchEvent(new CustomEvent(e))}))}function Oi(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 Ri(t){const e={},i=t.split(";");for(const r of i){const[t,i]=r.split(":");if(!t||void 0===i)break;e[Oi(t.trim())]=i.trim()}return e}const Di=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(),Ci(e,"introstart"),s=Ni(e,v(),o,1,(()=>{Ci(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,Ci(e,"outrostart"),o=Ni(e,v(),s,0,(()=>{Ci(e,"outroend"),null==t||t()}))},stop:()=>{null==s||s.abort(),null==o||o.abort()}},g=Tt;if((g.transitions??(g.transitions=[])).push(p),a&&He){var f=c;if(!f){for(var w=g.parent;w&&w.f&m;)for(;(w=w.parent)&&!(16&w.f););f=!w||!!(32768&w.f)}f&&ie((()=>{jt((()=>p.in()))}))}}function Ni(t,e,i,r,n){var s=1===r;if(M(e)){var o,a=!1;return D((()=>{if(!a){var l=e({direction:s?"in":"out"});o=Ni(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:I,deactivate:I,reset:I,t:()=>r};const{delay:l=0,css:c,tick:u,easing:d=Di}=e;var h=[];if(s&&void 0===i&&(u&&u(0,1),c)){var m=Ri(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)),g=0;g<=m;g+=1){var f=s+o*d(g/m),w=Ri(c(f,1-f));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===Li.tasks.size&&Li.tick(Pi),new Promise((i=>{Li.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=I)},deactivate:()=>{n=I},reset:()=>{0===r&&(null==u||u(1,0))},t:()=>v()}}function Fi(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 Vi(t,e){Oe(t,["seeking","seeked"],(()=>e(t.seeking)))}function Ui(t,e,i=e){var r=e();Oe(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 Bi(t,e){return t===e||(null==t?void 0:t[g])===e}function qi(t={},e,i,r){return ie((()=>{var r,n;return ne((()=>{r=n,n=[],jt((()=>{t!==i(...n)&&(e(t,...n),r&&Bi(i(...r),t)&&e(null,...r))}))})),()=>{D((()=>{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=J((()=>{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=()=>Yt(n)}var n;i.b.length&&(n=()=>{Yi(e,r),P(i.b)},Kt(),ne(n)),ee((()=>{const t=jt((()=>i.m.map(L)));return()=>{for(const e of t)"function"==typeof e&&e()}})),i.a.length&&ee((()=>{Yi(e,r),P(i.a)}))}function Yi(t,e){if(t.l.s)for(const i of t.l.s)Yt(i);e()}function ji(t){var e,i;null===we&&fe(),U&&null!==we.l?(e=we,i=e.l,i.u??(i.u={a:[],b:[],m:[]})).m.push(t):ee((()=>{const e=jt(t);if("function"==typeof e)return e}))}function Gi(t){null===we&&fe(),ji((()=>()=>jt(t)))}function Hi(t,e,i){if(null==t)return e(void 0),I;const r=jt((()=>t.subscribe(e,i)));return r.unsubscribe?()=>r.unsubscribe():r}const Zi=[];function Ji(t,e=I){let i=null;const r=new Set;function n(e){if(F(t,e)&&(t=e,i)){const e=!Zi.length;for(const i of r)i[1](),Zi.push(i,t);if(e){for(let t=0;t<Zi.length;t+=2)Zi[t][0](Zi[t+1]);Zi.length=0}}}function s(e){n(e(t))}return{set:n,update:s,subscribe:function(o,a=I){const l=[o,a];return r.add(l),1===r.size&&(i=e(n,s)||I),o(t),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function Ki(t){let e;return Hi(t,(t=>e=t))(),e}let Qi=!1,tr=Symbol();function er(t,e,i){const r=i[e]??(i[e]={store:null,source:j(void 0),unsubscribe:I});if(r.store!==t&&!(tr in i))if(r.unsubscribe(),r.store=t??null,null==t)r.source.v=void 0,r.unsubscribe=I;else{var n=!0;r.unsubscribe=Hi(t,(t=>{n?r.source.v=t:G(r.source,t)})),n=!1}return t&&tr in i?Ki(t):Yt(r.source)}function ir(t,e,i){let r=i[e];return r&&r.store!==t&&(r.unsubscribe(),r.unsubscribe=I),t}function rr(){const t={};return[t,function(){te((()=>{for(var e in t){t[e].unsubscribe()}T(t,tr,{enumerable:!1,value:!0})}))}]}const nr={get(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if(M(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];M(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(M(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===g||e===f)return!1;for(let i of t.props)if(M(i)&&(i=i()),null!=i&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props){M(i)&&(i=i());for(const t in i)e.includes(t)||e.push(t)}return e}};function sr(...t){return new Proxy({props:t},nr)}function or(t){var e;return(null==(e=t.ctx)?void 0:e.d)??!1}function ar(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=Qi;try{return Qi=!1,[t(),Qi]}finally{Qi=e}}((()=>t[e])):s=t[e];var d,h=g in t||f 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?jt(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?J:Q)((()=>t[e]));y.f|=131072,d=()=>{var t=Yt(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=j(s),E=J((()=>{var t=d(),e=Yt(x);return T?(T=!1,e):x.v=t}));return l&&Yt(E),o||(E.equals=V),function(t,e){if(arguments.length>0){const i=e?Yt(E):a&&l?B(t):t;if(!E.equals(i)){if(T=!0,G(x,i),w&&void 0!==v&&(v=i),or(E))return t;jt((()=>Yt(E)))}return t}return or(E)?E.v:Yt(E)}}const lr=(t,e)=>Math.sqrt(t*t+e*e),cr=(t,e=1)=>(t%e+e)%e,ur=t=>JSON.parse(JSON.stringify(t)),dr=()=>hr()+hr()+"-"+hr()+"-"+hr()+"-"+hr()+"-"+hr()+hr()+hr(),hr=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),mr=t=>new Promise((e=>t?setTimeout(e,t):e())),vr=navigator.userAgent,pr={iOS:/ipad|iphone|ipod/i.test(vr),firefox:/firefox/i.test(vr),OSX:/macintosh/i.test(vr)&&/os\ x/i.test(vr),hasTouch:"TouchEvent"in self,safari:!1};function gr(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]={}),gr(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}pr.safari=(pr.OSX||pr.iOS)&&(/safari/i.test(vr)||/instagram/i.test(vr))&&!/chrome/i.test(vr),pr.OSX&&pr.safari&&"TouchEvent"in self&&(pr.iOS=!0,pr.OSX=!1);const fr=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,"-")},wr=[],br=(t,e,i)=>new Promise(((r,n)=>{if(i||wr.indexOf(t)>=0)return r();const s=document.createElement("script"),o=()=>{wr.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 yr(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 kr=(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)))}))})),Tr=new Map,_r=new Map,xr=new Map,Er=async(t,e)=>{if(!e&&Tr.has(t))return Tr.get(t);if(_r.has(t))return _r.get(t);if(xr.has(t))throw xr.get(t)[1];const i=fetch(t+(e?"?"+Math.random():"")).then((async e=>{if(200==e.status)return e.json();{const i=await e.text();throw xr.set(t,[e.status,i]),i}})).then((i=>(e||Tr.set(t,i),_r.delete(t),i))).catch((e=>{throw _r.delete(t),e}));return _r.set(t,i),i},Sr=t=>"MICRIO_DATA"in self?(null==self?void 0:self.MICRIO_DATA).find((e=>e[0]==t)):void 0,$r=(t,e,i)=>{var r;const n=null==(r=Sr(t))?void 0:r[1];return n?Promise.resolve(n):Er(`${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)),Pr(t),t)))},Ar={"micrio-cdn.azureedge.net":"micrio.vangoghmuseum.nl/micrio","micrio-cdn.vangoghmuseum.nl":"micrio.vangoghmuseum.nl/micrio","rijks-micrio.azureedge.net":"micrio.rijksmuseum.nl"},Mr=t=>{if(t instanceof Object&&"fileUrl"in t&&!t.src&&(t.src=t.fileUrl),null==t?void 0:t.src)for(let e in Ar)t.src.includes(e)&&(t.src=t.src.replace(e,Ar[e]))},Ir=t=>!t.viewsWH,Lr=new WeakMap,Pr=t=>{var e,i,r,n,s,o,a,l;t&&(Lr.has(t)||(Mr(null==(e=t.organisation)?void 0:e.logo),Mr(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(Mr),Mr(null==(l=null==(a=t.settings)?void 0:a._360)?void 0:l.video),(null==t?void 0:t.settings)&&Ir(t)&&(t.settings.view=Br.fromLegacy(t.settings.view),t.settings.restrict=Br.fromLegacy(t.settings.restrict)),Lr.set(t,!0)))},Cr=t=>{var e;Mr(t.image),null==(e=t.children)||e.forEach(Cr)},Or=[],Rr=(t,e,i)=>{var r,n,s,o;if(Or.indexOf(t.id)>=0)return;Or.push(t.id),t.data||(t.data={}),t.id||(t.id=dr()),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(Mr),Mr(t.positionalAudio),Mr(null==(n=t.data)?void 0:n.icon),Object.values(t.i18n??{}).forEach((t=>Mr(t.audio)));const a="embedImages"in t?t.embedImages:void 0;a&&a.forEach((t=>Mr(t)));const l=null==(o=null==(s=t.data)?void 0:s._meta)?void 0:o.secondary;l&&(t.data.micrioSplitLink=l),e&&"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"),i&&(t.view=Br.fromLegacy(t.view),Dr(t.videoTour))};function Dr(t){var e;if(!t||!("i18n"in t)&&!("timeline"in t))return;const i="i18n"in t?t.i18n:{en:t};for(const r in i)null==(e=i[r])||e.timeline.forEach((t=>t.rect=Br.fromLegacy(t.rect)))}async function zr(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,o]=await Promise.all([Promise.all(n.map((e=>Er((e=>t.dataPath+(t.isV5?e+"/data/pub.json":e+"/data."+i+".json"))(e))))),Promise.all(n.map((t=>$r(t))))]);s.forEach(((e,i)=>{var r;const n=Ir(o[i]);null==(r=null==e?void 0:e.markers)||r.forEach((e=>Rr(e,!t.isV5,n)))})),Mr(e.image);let a=-1;const l=[];e.stepInfo=e.steps.map(((e,o)=>{var c,u,d,h,m,v,p,g,f,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)&&(a=o);const x=(null==T?void 0:T.videoTour)?"timeline"in T.videoTour?T.videoTour:(null==(d=T.videoTour.i18n)?void 0:d[i])??void 0:void 0;return Mr(null==x?void 0:x.audio),Mr(null==x?void 0:x.subtitle),T?(Mr(null==_?void 0:_.audio),T.videoTour&&(null==_?void 0:_.audio)&&(T.videoTour.audio=_.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==(g=null==(p=T.data)?void 0:p._meta)?void 0:g.gridView)&&!(null==(w=null==(f=T.data)?void 0:f._meta)?void 0:w.gridAction)),chapter:a,hasSubtitle:!!(null==x?void 0:x.subtitle)}):(console.warn(`[Micrio] Warning: tour step ${o+1} with id [${b}] not found! Removing it from the tour`),void l.push(o))})).filter((t=>"object"==typeof t)),l.reverse().forEach((t=>e.steps.splice(t,1))),e.initialStep=0,e.duration=e.stepInfo.reduce(((t,e)=>t+(e.duration||0)),0)}const Nr=t=>{let e=t.charCodeAt(0),i=e<91;return(e-=i?65:97)-(e>7?1:0)+(i?24:e>10?-1:0)},Fr=t=>6==t.length||7==t.length;function Vr(t,e){var i,r;const n=t.$current;if(!n)return;const s=null==(i=t.spaceData)?void 0:i.images.find((t=>t.id==n.id)),o=null==(r=t.spaceData)?void 0:r.images.find((t=>t.id==e));if(!s||!o)return;const a=[(o.x??.5)-(s.x??.5),(s.y??.5)-(o.y??.5),(o.z??.5)-(s.z??.5)];let l=a[0]*a[0]+a[1]*a[1]+a[2]*a[2];l>0&&(l=1/Math.sqrt(l));const c=[a[0]*l,a[1]*l,a[2]*l],u=cr(Math.atan2(-c[0],c[2])/Math.PI/2);return{v:a,vN:c,directionX:u,vector:{direction:u%1,distanceX:Math.max(0,Math.min(.4,Math.sqrt(c[0]*c[0]+c[2]*c[2]))),distanceY:-a[1]}}}const Ur=t=>{const e=t??document.createElement("video");return!(!e.canPlayType("application/vnd.apple.mpegurl")&&!e.canPlayType("application/x-mpegURL"))},Br={fromLegacy:t=>{if(t)return[t[0],t[1],t[2]-t[0],t[3]-t[1]]},toCenterJSON:t=>({centerX:t[0]+t[2]/2,centerY:t[1]+t[3]/2,width:t[2],height:t[3]}),rectToCenterJSON:t=>Br.toCenterJSON([t[0],t[1],t[2]-t[0],t[3]-t[1]])},qr=t=>t;function Wr(t){const e=t-1;return e*e*e+1}function Xr(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Yr(t,{delay:e=0,duration:i=400,easing:r=qr}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:r,css:t=>"opacity: "+t*n}}function jr(t,{delay:e=0,duration:i=400,easing:r=Wr,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]=Xr(n),[m,v]=Xr(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 Gr=We('<a rel="noopener" href="https://micr.io/" title="Powered by Micrio" aria-label="Micrio homepage"></a>');function Hr(t,e){Te(e,!0);const[i,r]=rr(),n=ye("micrio"),{tour:s,marker:o}=n.state,a=/micr\.io/.test(location.origin)&&self.parent==self?void 0:"_blank";let l,c=Y(!1);ji((()=>n.loading.subscribe((t=>{clearTimeout(l),t?Yt(c)||(l=setTimeout((()=>G(c,!0)),750)):G(c,!1)}))));const u=K((()=>!!er(s,"$tour",i)||!!er(o,"$marker",i)));var d=je(),h=ut(d),m=t=>{var e=Gr();let i;Ei(e,"target",a),se((t=>i=fi(e,1,"micrio-logo",null,i,t)),[()=>({loading:Yt(c)})]),zi(3,e,(()=>Yr),(()=>({duration:200}))),Ge(t,e)};ei(h,(t=>{Yt(u)||t(m)})),Ge(t,d),_e(),r()}var Zr=We('<a rel="noopener" target="_blank" class="micrio-logo-org"><img alt="Logo" class="micrio-logo-org"></a>');function Jr(t,e){Te(e,!0);const[i,r]=rr(),n=ye("micrio"),{tour:s,marker:o,popover:a}=n.state;const l=K((()=>!!er(s,"$tour",i)||!!er(o,"$marker",i)||!!er(a,"$popover",i)));var c=je(),u=ut(c),d=t=>{var i=Zr(),r=ct(i);se((t=>{Ei(i,"href",e.organisation.href??"#"),Ei(i,"title",e.organisation.name),Ei(i,"aria-label",`${e.organisation.name??""} homepage`),Ei(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,(()=>Yr),(()=>({duration:200}))),Ge(t,i)};ei(u,(t=>{!Yt(l)&&e.organisation.logo&&t(d)})),Ge(t,c),_e(),r()}const Kr={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"}},Qr=Ji(Kr.en),tn={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"]},en={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"]},rn={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"]},nn={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"]},sn={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"]},on={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"]},an={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"]},ln={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"]},cn={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"]},un={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"]},dn={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"]},hn={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"]},mn={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"]},vn={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"]},pn={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"]},gn={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"]},fn={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"]},wn={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"]},bn={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"]},yn={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"]},kn={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"]},Tn={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"]},_n={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"]},xn={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"]},En={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"]},Sn={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 $n(t,e){t.style.fontSize=e&&"lg"!==e&&"sm"!==e&&"xs"!==e?e.replace("x","em"):""}U=!0;var An=Xe('<title class="micrio-fa"> </title>'),Mn=Xe('<path class="micrio-fa"></path>'),In=Xe('<path class="micrio-fa"></path><path class="micrio-fa"></path>',1),Ln=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 Pn(t,e){Te(e,!1);const i=j(),r=j();let n=ar(e,"class",24,(()=>{})),s=ar(e,"id",24,(()=>{})),o=ar(e,"style",24,(()=>{})),a=ar(e,"icon",8),c=ar(e,"title",24,(()=>{})),d=ar(e,"size",24,(()=>{})),h=ar(e,"color",24,(()=>{})),m=ar(e,"fw",8,!1),v=ar(e,"pull",24,(()=>{})),p=ar(e,"scale",8,1),g=ar(e,"translateX",8,0),f=ar(e,"translateY",8,0),w=ar(e,"rotate",24,(()=>{})),b=ar(e,"flip",24,(()=>{})),y=ar(e,"spin",8,!1),k=ar(e,"pulse",8,!1),T=ar(e,"primaryColor",8,""),_=ar(e,"secondaryColor",8,""),x=ar(e,"primaryOpacity",8,1),E=ar(e,"secondaryOpacity",8,.4),S=ar(e,"swapOpacity",8,!1),$=j();var A;re((()=>(Yt($),Zt(d()),$n)),(()=>{Yt($)&&d()&&$n(Yt($),d())})),re((()=>Zt(a())),(()=>{G(i,a()&&a().icon||[0,0,"",[],""])})),re((()=>(Zt(p()),Zt(g()),Zt(f()),Zt(w()),Zt(b()))),(()=>{G(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(),g(),f(),w(),b(),512))})),A=we,ne((()=>{if(Yt(A.l.r2)){for(var t of A.l.r1){var e=t.effect;e.f&l&&Ht(e,u),Ct(e)&&Ft(e),t.ran=!1}A.l.r2.v=!1}})),Xi();var M=je(),I=ut(M),L=t=>{var e=Ln();let a;var l=ct(e),u=t=>{var e=An(),i=ct(e);se((()=>Je(i,c()))),Ge(t,e)};ei(l,(t=>{c()&&t(u)}));var p=dt(l),g=ct(p),f=ct(g),w=t=>{var e=Mn();se((()=>{Ei(e,"d",Yt(i)[4]),Ei(e,"fill",h()||T()||"currentColor"),Ei(e,"transform",`translate(${Yt(i)[0]/-2} ${Yt(i)[1]/-2})`)})),Ge(t,e)},b=t=>{var e=In(),r=ut(e),n=dt(r);se((()=>{Ei(r,"d",Yt(i)[4][0]),Ei(r,"fill",_()||h()||"currentColor"),Ei(r,"fill-opacity",0!=S()?x():E()),Ei(r,"transform",`translate(${Yt(i)[0]/-2} ${Yt(i)[1]/-2})`),Ei(n,"d",Yt(i)[4][1]),Ei(n,"fill",T()||h()||"currentColor"),Ei(n,"fill-opacity",0!=S()?E():x()),Ei(n,"transform",`translate(${Yt(i)[0]/-2} ${Yt(i)[1]/-2})`)})),Ge(t,e)};ei(f,(t=>{"string"==typeof Yt(i)[4]?t(w):t(b,!1)})),qi(e,(t=>G($,t)),(()=>Yt($))),se((t=>{Ei(e,"id",s()),a=fi(e,0,`svelte-fa svelte-fa-base ${n()??""}`,"micrio-fa",a,t),bi(e,o()),Ei(e,"viewBox",`0 0 ${Yt(i)[0]??""} ${Yt(i)[1]??""}`),Ei(p,"transform",`translate(${Yt(i)[0]/2} ${Yt(i)[1]/2})`),Ei(p,"transform-origin",Yt(i)[0]/4+" 0"),Ei(g,"transform",Yt(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),Ge(t,e)};ei(I,(t=>{Yt(i)[4]&&t(L)})),Ge(t,M),_e()}function Cn(t,e){var i,r;Te(e,!0);let n=ar(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,l=K((()=>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))),c=new Map([["play",wn],["pause",an],["close",xn],["play-filled",on],["a11y",nn],["menu",tn],["zoom-in",Tn],["zoom-out",mn],["maximize",_n],["minimize",rn],["volume-off",kn],["volume-up",dn],["subtitles",pn],["subtitles-off",pn],["arrow-left",hn],["arrow-up",yn],["arrow-right",un],["arrow-down",gn],["video",Sn],["audio",dn],["image",sn],["share",En],["error",en],["chevron-down",bn],["link",fn],["link-ext",cn],["ellipsis-vertical",vn]]),u=K((()=>c.get(e.name)));var d=je(),h=ut(d),m=t=>{var e=je();li(ut(e),(()=>Yt(l))),Ge(t,e)},v=(t,e)=>{var i=t=>{Pn(t,{get icon(){return Yt(u)},size:o?"xs":"sm",get style(){return n()}})};ei(t,(t=>{Yt(u)&&t(i)}),e)};ei(h,(t=>{Yt(l)?t(m):t(v,!1)})),Ge(t,d),_e()}const On=Ji(void 0),Rn=()=>On.set(void 0);let Dn=!1;On.subscribe((t=>{t?Dn||window.addEventListener("click",Rn):Dn&&window.removeEventListener("click",Rn),Dn=!!t}));var zn=We('<a class="micrio-menu-action micrio-menu"><strong class="micrio-menu"> <!></strong></a>'),Nn=We('<button class="micrio-menu-action micrio-menu" type="button"><!> <strong class="micrio-menu"> <!></strong></button>'),Fn=We('<div class="items micrio-menu"></div>'),Vn=We("<menu><!> <!></menu>");function Un(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(On,"$opened",i);let s=ar(e,"menu",15),o=ar(e,"originalId",3,null);const a=ye("micrio"),{events:l,state:c,_lang:u}=a;let d=Y(void 0);const h=K((()=>{return t=s(),e=er(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=!!(Yt(p)||s().action||s().link);On.set(r?void 0:s()),r&&(null==(i=e.onclose)||i.call(e))}ji((()=>{var t,e,i,r;(null==(t=Yt(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=Yt(h))?void 0:i.content)||(null==(r=Yt(h))?void 0:r.embed)||s().image)&&s(s().action=()=>{l.dispatch("page-open",s()),c.popover.set({contentPage:s()})},!0)),s(s()._button=Yt(d),!0)}));const v=t=>{var e;return t==n()||!!(null==(e=t.children)?void 0:e.some(v))},p=K((()=>n()&&v(s())));var g=Vn();let f;var w=ct(g),b=t=>{var e=zn();e.__click=m;var i=ct(e),r=ct(i),n=dt(r);const o=K((()=>s().linkTargetBlank?"link-ext":"link"));Cn(n,{style:"opacity:.75",get name(){return Yt(o)}}),se((()=>{var t;Ei(e,"href",s().link),Ei(e,"target",s().linkTargetBlank?"_blank":void 0),Je(r,`${(null==(t=Yt(h))?void 0:t.title)??"(Unknown)"} `)})),Ge(t,e)},y=t=>{var e=Nn();e.__click=m;var i=ct(e),r=t=>{Pn(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=>{Cn(t,{name:"chevron-down"})};ei(o,(t=>{s().children&&s().children.length&&t(a)})),qi(e,(t=>G(d,t)),(()=>Yt(d))),se((()=>{var t;return Je(n,`${(null==(t=Yt(h))?void 0:t.title)??"(Unknown)"} `)})),Ge(t,e)};ei(w,(t=>{s().link?t(b):t(y,!1)}));var k=dt(w,2),T=t=>{var e=Fn();ri(e,23,(()=>s().children),((t,e)=>e+t.id),((t,e)=>{Un(t,{get menu(){return Yt(e)},get originalId(){return o()},onclose:Rn})})),Ge(t,e)};ei(k,(t=>{s().children&&s().children.length&&t(T)})),se(((t,e)=>{Ei(g,"data-title",t),f=fi(g,1,"micrio-menu",null,f,e)}),[()=>{var t,e;return null==(e=null==(t=Yt(h))?void 0:t.title)?void 0:e.toLowerCase()},()=>({opened:Yt(p)})]),Ge(t,g),_e(),r()}Ve(["click"]);var Bn=We('<img alt="Icon" class="micrio-button">'),qn=We("<!><!>",1);function Wn(t,e){Te(e,!0);let i=ar(e,"type",3,void 0),r=ar(e,"icon",3,void 0),n=ar(e,"title",3,null),s=ar(e,"disabled",3,!1),o=ar(e,"active",3,!1),a=ar(e,"className",3,""),l=ar(e,"href",3,void 0),c=ar(e,"blankTarget",3,!1),u=ar(e,"noClick",3,!1);var d=je();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,[yi]:e},"micrio-button")),[()=>({active:o(),"no-click":u()})]);var g=qn(),f=ut(g),w=t=>{Cn(t,{get name(){return i()}})},b=(t,e)=>{var i=t=>{var e=Bn();se((()=>Ei(e,"src",r().src))),Ge(t,e)};ei(t,(t=>{r()&&t(i)}),e)};ei(f,(t=>{i()?t(w):t(b,!1)})),ci(dt(f),(()=>e.children??I)),Ge(d,g)})),Ge(t,d),_e()}var Xn=We("<menu><!> <!> <!></menu> <!>",1);function Yn(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(c,"$current",i),s=()=>er(u,"$_lang",i);let o=Y(void 0);const a=ye("micrio"),{state:l,current:c,_lang:u,spaceData:d}=a,{tour:h,marker:m,popover:v}=l;let p=Y(!1),g=Y(!1);const f=n().id;let w=Y(void 0),b=Y(window.innerWidth<=500);const y=()=>G(b,window.innerWidth<=500),k=()=>{Yt(b)&&G(p,!1)},T=K((()=>!!er(h,"$tour",i)||!!er(m,"$marker",i)||!!er(v,"$popover",i))),_=K((()=>{var t;return((null==(t=Yt(o))?void 0:t.markerTours)??[]).concat((null==d?void 0:d.markerTours)??[])})),x=K((()=>{var t;return(null==(t=Yt(_))?void 0:t.length)>0})),E=K((()=>{var t,e,i;return(null==(t=Yt(o))?void 0:t.tours)&&(null==(i=null==(e=Yt(o))?void 0:e.tours)?void 0:i.length)>0})),S=K((()=>Yt(x)&&Yt(E))),$=K((()=>{var t;return!((null==(t=Yt(w))?void 0:t.length)||Yt(x)||Yt(E))})),A=[],M=(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)"};ji((()=>{const t=a.current.subscribe((t=>{var e;if(t){for(;A.length;)null==(e=A.shift())||e();kr(t.info).then((()=>G(g,!t.$settings.noLogo))),A.push(t.data.subscribe((t=>{G(o,t,!0),Xt().then((()=>{var e,i,r;if(!(null==t?void 0:t.pages))return;Yt(w)||G(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&&G(w,[...(null==(r=Yt(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);A.length;)null==(e=A.shift())||e();t()}}));var I=je(),L=ut(I),P=t=>{var e=Xn(),r=ut(e);let l;var c=ct(r),u=t=>{var e=je();ri(ut(e),17,(()=>Yt(w)),(t=>t.id),((t,e)=>{Un(t,{get menu(){return Yt(e)},originalId:f,onclose:k})})),Ge(t,e)};ei(c,(t=>{Yt(w)&&t(u)}));var d=dt(c,2),m=t=>{const e=K((()=>({id:dr(),i18n:{[s()]:{title:Yt(S)?"Marker tours":"Tours"}},children:Yt(_).map((t=>({id:dr(),i18n:{[s()]:{title:M(t,s())}},action:()=>{t.initialStep=0,h.set(t)}})))})));Un(t,{onclose:k,get menu(){return Yt(e)}})};ei(d,(t=>{Yt(x)&&t(m)}));var v=dt(d,2),y=t=>{const e=K((()=>({id:dr(),i18n:{[s()]:{title:Yt(S)?"Video tours":"Tours"}},children:Yt(o)&&Yt(o).tours?Yt(o).tours.map((t=>({id:dr(),i18n:{[s()]:{title:M(t,s())}},action:()=>{n()&&n().id!=f&&a.open(f),h.set(t)}}))):[]})));Un(t,{onclose:k,get menu(){return Yt(e)}})};ei(v,(t=>{Yt(E)&&t(y)}));var $=dt(r,2),A=t=>{const e=K((()=>Yt(p)?"close":"ellipsis-vertical")),r=K((()=>"toggle transparent"+(Yt(g)?" indent":"")));Wn(t,{get title(){return er(Qr,"$i18n",i).menuToggle},get type(){return Yt(e)},get className(){return Yt(r)},onclick:()=>G(p,!Yt(p))})};ei($,(t=>{Yt(b)&&t(A)})),se((t=>l=fi(r,1,"micrio-toolbar micrio-toolbar",null,l,t)),[()=>({shown:!Yt(T)&&Yt(p),indent:Yt(g)})]),zi(3,r,(()=>Yr),(()=>({duration:200}))),Ge(t,e)};ei(L,(t=>{Yt($)||Yt(T)||t(P)})),Ge(t,I),_e(),r()}var jn=We("<canvas></canvas>");function Gn(t,e){Te(e,!0);const[i,r]=rr(),n=ye("micrio"),{current:s}=n;n.canvas.viewport;const o=e.image.$info,a=e.image.camera,l=e.image.$settings,c=l.minimapWidth??200,u=l.minimapHeight??160,d=!l.alwaysShowMinimap,h=!!l.noControls,m=o.width/o.height,v=c/m>u?Math.round(u*m):c,p=c/m<=u?Math.round(c/m):u;let g,f=Y(void 0),w=Y(!1),b=Y(B(!o.is360&&a.isZoomedOut()));function y(t){if(!t||!g)return;A();const i=Br.toCenterJSON(t);if(g.clearRect(0,0,v,p),e.image.thumbSrc?(g.globalCompositeOperation="source-over",g.fillStyle="rgba(0,0,0,.5)",g.fillRect(0,0,v,p),g.globalAlpha=1,g.globalCompositeOperation="destination-out"):(g.fillStyle="rgba(0,0,0,.5)",g.fillRect(0,0,v,p)),g.beginPath(),g.fillStyle="white",o.is360){const e=function(t){const e=[];let{centerX:i,centerY:r,width:n,height:s}=Br.toCenterJSON(t);i=(i%1+1)%1;let o=i-n/2,a=i+n/2;const l=Math.max(0,r-s/2),c=Math.min(1,r+s/2);return o<0?(e.push({x:o+1,y:l,width:1-(o+1),height:c-l}),e.push({x:0,y:l,width:a,height:c-l})):a>1?(e.push({x:o,y:l,width:1-o,height:c-l}),e.push({x:0,y:l,width:a-1,height:c-l})):e.push({x:o,y:l,width:a-o,height:c-l}),e}(t);for(const t of e)g.rect(Math.floor(t.x*v),Math.floor(t.y*p),Math.ceil(t.width*v),Math.ceil(t.height*p))}else G(b,a.isZoomedOut(),!0),g.rect(Math.floor((i.centerX-i.width/2)*v),Math.floor((i.centerY-i.height/2)*p),Math.ceil(i.width*v),Math.ceil(i.height*p));e.image.thumbSrc&&(g.fill(),g.globalCompositeOperation="source-over"),g.stroke()}const k=-1!=navigator.userAgent.indexOf("Firefox");let T,_=Y(!1);let x,E=Y(void 0);function S(t){if(T){const e=Math.max(0,Math.min(1,(t.clientX-T.left)/T.width)),i=Math.max(0,Math.min(1,(t.clientY-T.top)/T.height));if(Yt(E)){const t=[e-Yt(E).width/2,i-Yt(E).height/2,Yt(E).width,Yt(E).height];a.setView(t)}else a.setCoo(e,i)}}function $(){window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",$),G(_,!1),G(E,void 0)}function A(){G(w,!1),clearTimeout(x),x=setTimeout((()=>G(w,!0)),2500)}const M=.5-e.image.camera.trueNorth,I=self.crossOriginIsolated;let L=Y(B(I?void 0:e.image.thumbSrc));const P={passive:!0};let C=Y(!1);ji((()=>{let t;g=Yt(f).getContext("2d"),g&&(g.lineWidth=1,g.strokeStyle="white"),I&&e.image.thumbSrc&&fetch(e.image.thumbSrc).then((t=>t.blob())).then((e=>G(L,t=URL.createObjectURL(e),!0))),n.canvas.element.addEventListener("mousemove",A,P);const i=e.image.state.view.subscribe(y);return setTimeout((()=>G(C,!0)),10),()=>{t&&URL.revokeObjectURL(t),n.canvas.element.removeEventListener("mousemove",A,P),$(),i()}}));const O=K((()=>Yt(L)?`background-image: url('${Yt(L)}')`+(0!=M?`;background-position-x:${v*M}px`:""):null));var R=jn();let D;Ei(R,"width",v),Ei(R,"height",p),R.__mousedown=function(t){if(0!=t.button)return;window.addEventListener("mousemove",S),window.addEventListener("mouseup",$),T=Yt(f).getClientRects()[0];const e=a.getView();e&&G(E,{width:e[2],height:e[3]},!0),S(t),G(_,!0)},qi(R,(t=>G(f,t)),(()=>Yt(f))),se((t=>{bi(R,Yt(O)),D=fi(R,1,"micrio-minimap",null,D,t)}),[()=>({hidden:!Yt(C)||er(s,"$current",i)!=e.image||d&&(Yt(b)||Yt(w)),dragging:Yt(_),controls:!h})]),Fe("wheel",R,(function(t){a.zoom(t.deltaY*(k?50:1))})),Ge(t,R),_e(),r()}Ve(["mousedown"]);const Hn=(null==navigator?void 0:navigator.language)??"en-EN",Zn="Intl"in self&&Intl.DisplayNames?new Intl.DisplayNames([Hn],{type:"language"}):void 0,Jn=["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 Kn=We("<div><!></div>");function Qn(t,e){let i=ar(e,"className",3,"");var r=Kn();ci(ct(r),(()=>e.children??I)),se((()=>fi(r,1,mi(i()),"micrio-button-group"))),Ge(t,r)}function ts(t,e){Te(e,!0);const[i,r]=rr(),n="requestFullscreen"in e.el,s="webkitRequestFullscreen"in e.el,o=ye("micrio"),a=()=>n?document.fullscreenElement:document.webkitFullscreenElement??null;let l=Y(a()===e.el);const c=n||s&&!a(),u=()=>new Promise((t=>setTimeout(t,500)));let d;function h(){Yt(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(),pr.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=()=>{G(l,a()===e.el),m&&(Yt(l)?o.events.hookScroll():o.events.unhookScroll())};c&&ji((()=>{const t=n?"fullscreenchange":"webkitfullscreenchange";return document.addEventListener(t,v),()=>document.removeEventListener(t,v)}));var p=je(),g=ut(p),f=t=>{const e=K((()=>Yt(l)?"minimize":"maximize"));Wn(t,{get type(){return Yt(e)},get title(){return er(Qr,"$i18n",i).fullscreenToggle},onclick:h})};ei(g,(t=>{c&&t(f)})),Ge(t,p),_e(),r()}var es=We("<!> <!>",1);function is(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(Qr,"$i18n",i);let s=ar(e,"image",15,void 0);const o=ye("micrio");let a=Y(!1),l=Y(!1),c=Y(!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;G(a,(null==(t=s())?void 0:t.camera.isZoomedIn())??!0,!0),G(l,(null==(e=s())?void 0:e.camera.isZoomedOut(!0))??!0,!0)}let v,p;ji((()=>(s()?v=s().state.view.subscribe(m):p=o.current.subscribe((t=>{v&&(v(),v=void 0),G(c,!0),s(t)?kr(t.info).then((()=>{s()&&(v=s().state.view.subscribe(m)),G(c,!1)})):G(c,!1)})),()=>{p&&p(),v&&v()})));var g=je(),f=ut(g),w=t=>{var e=es(),i=ut(e);const r=K((()=>Yt(c)||Yt(a)));Wn(i,{type:"zoom-in",get title(){return n().zoomIn},get disabled(){return Yt(r)},onclick:d});var s=dt(i,2);const o=K((()=>Yt(c)||Yt(l)));Wn(s,{type:"zoom-out",get title(){return n().zoomOut},get disabled(){return Yt(o)},onclick:h}),Ge(t,e)};ei(f,(t=>{Yt(a)&&Yt(l)||t(w)})),Ge(t,g),_e(),r()}var rs=We('<menu class="popout micrio-controls"><!> <!></menu>'),ns=We("<!> <!>",1),ss=We("<aside><!></aside>"),os=We('<aside class="micrio-controls"><!> <!> <!> <!></aside> <!>',1);function as(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(m,"$current",i),s=()=>er(Yt(k),"$info",i),o=()=>er(g,"$_lang",i),a=()=>er(f,"$tour",i),l=()=>er(b,"$zoom",i),c=()=>er(p,"$isMuted",i),u=()=>er(Qr,"$i18n",i);let d=ar(e,"hasAudio",3,!1);const h=B(ye("micrio")),{current:m,state:v,isMuted:p,_lang:g}=h,f=v.tour,{controls:w,zoom:b,hidden:y}=h.state.ui,k=K((()=>{var t;return null==(t=n())?void 0:t.info})),T=K((()=>{var t;return s()&&n()?n().isV5?Object.keys(s().revision??{[o()]:0}):(null==(t="cultures"in s()?s().cultures:"")?void 0:t.split(","))??[]:[]})),_=K((()=>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=Y(null),S=Y(!1);function $(t){const e=t.detail;G(S,h.canvas.viewport.portrait,!0),e.opts.isPassive||G(E,e,!0)}function A(){G(E,null)}let M=Y(!1),I=Y(!1),L=Y(!1);function P(t){var e,i;b.set(!t.noZoom),w.set(!t.noControls),G(M,!!(null==(i=null==(e=t.ui)?void 0:e.controls)?void 0:i.cultureSwitch)),G(I,!!t.social),G(L,!!t.fullscreen)}n()&&P(n().$settings),ji((()=>{let t;h.addEventListener("splitscreen-start",$),h.addEventListener("splitscreen-stop",A);const e=h.current.subscribe((e=>{e&&kr(e.info).then((i=>{!i||a()&&"steps"in a()||(null==t||t(),t=e.settings.subscribe(P))}))}));return()=>{h.removeEventListener("splitscreen-start",$),h.removeEventListener("splitscreen-stop",A),null==t||t(),e()}}));const C=K((()=>"micrioAudioContext"in window||d())),O=K((()=>Yt(M)&&Yt(T).length>1)),R=K((()=>Yt(I)&&"share"in navigator)),D=K((()=>Yt(L)&&!Yt(_))),z=K((()=>er(w,"$controls",i)&&!er(y,"$hidden",i)&&(Yt(C)||Yt(O)||Yt(R)||l()||Yt(D))));var N=je(),F=ut(N),V=t=>{var e=os(),i=ut(e),r=ct(i),n=t=>{const e=K((()=>c()?"volume-off":"volume-up")),i=K((()=>c()?u().audioUnmute:u().audioMute));Wn(t,{get type(){return Yt(e)},get title(){return Yt(i)},onclick:()=>p.set(!c())})};ei(r,(t=>{Yt(C)&&t(n)}));var s=dt(r,2),a=t=>{var e=rs(),i=ct(e);Wn(i,{get title(){return u().switchLanguage},type:"a11y"}),ri(dt(i,2),17,(()=>Yt(T)),ii,((t,e)=>{const i=K((()=>(null==Zn?void 0:Zn.of(Yt(e)))??Yt(e))),r=K((()=>Yt(e)==o()));Wn(t,{onclick:()=>h.lang=Yt(e),get title(){return Yt(i)},get active(){return Yt(r)},children:(t,i)=>{var r=Ye();se((t=>Je(r,t)),[()=>Yt(e).toUpperCase()]),Ge(t,r)},$$slots:{default:!0}})})),Ge(t,e)};ei(s,(t=>{Yt(O)&&t(a)}));var d=dt(s,2),m=t=>{Wn(t,{type:"share",get title(){return u().share},onclick:x})};ei(d,(t=>{Yt(R)&&t(m)})),Qn(dt(d,2),{children:(t,e)=>{var i=ns(),r=ut(i),n=t=>{var e=je(),i=ut(e),r=t=>{is(t,{get image(){return Yt(E)}})},n=t=>{is(t,{})};ei(i,(t=>{Yt(E)?t(r):t(n,!1)})),Ge(t,e)};ei(r,(t=>{l()&&t(n)}));var s=dt(r,2),o=t=>{ts(t,{get el(){return h}})};ei(s,(t=>{Yt(D)&&t(o)})),Ge(t,i)},$$slots:{default:!0}});var v=dt(i,2),g=t=>{var e=ss();let i;Qn(ct(e),{children:(t,e)=>{is(t,{})},$$slots:{default:!0}}),se((t=>i=fi(e,1,"primary micrio-controls",null,i,t)),[()=>({portrait:Yt(S)})]),zi(3,e,(()=>Yr)),Ge(t,e)};ei(v,(t=>{l()&&Yt(E)&&t(g)})),Ge(t,e)};ei(F,(t=>{Yt(z)&&t(V)})),Ge(t,N),_e(),r()}class ls{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:this.data.isLegacy?Br.fromLegacy(r.rect):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?void 0: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=Br.toCenterJSON(i.view),n=this.getView(this.currentIndex-1),s=n?Br.toCenterJSON(n):void 0,o=null==(e=this.image.opts)?void 0:e.area;if(this.wasPaused&&s){const e=this.micrio.wasm.e.ease(t),i={centerX:s.centerX*(1-e)+r.centerX*e,centerY:s.centerY*(1-e)+r.centerY*e,width:s.width*(1-e)+r.width*e,height:s.height*(1-e)+r.height*e};this.image.camera.setView([i.centerX-i.width/2,i.centerY-i.height/2,i.width,i.height],{noLimit:!0,area:o}),this.nextStep()}else this.image.camera.flyToView(i.view,{duration:i.duration,progress:t,prevView:s?[s.centerX-s.width/2,s.centerY-s.height/2,s.width,s.height]:void 0,area:o}).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=ls;var cs=(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))(cs||{}),us=(t=>(t[t.YouTube=1]="YouTube",t[t.Vimeo=2]="Vimeo",t))(us||{});const ds="micrio-captions-disable",hs=Ji("1"!=localStorage.getItem(ds));hs.subscribe((t=>{t?localStorage.removeItem(ds):localStorage.setItem(ds,"1")}));var ms=We('<div><p class="micrio-subtitles"> </p></div>');function vs(t,e){Te(e,!0);const[i,r]=rr();let n=ar(e,"raised",3,!1);const s=B([]);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=>3===t.length?3600*t[0]+60*t[1]+t[2]:2===t.length?60*t[0]+t[1]:0));s.push({start:n,end:o,data:r.join("\n")}),i+=r.length+1}})).catch((t=>console.error("Subtitles: fetch error:",t)));const o=ye("micrio");let a=Y(0);const l=t=>G(a,t.detail,!0);ji((()=>(o.addEventListener("timeupdate",l),()=>o.removeEventListener("timeupdate",l))));const c=K((()=>s.filter((t=>t.start<=Yt(a)&&t.end>=Yt(a)))));var u=je(),d=ut(u),h=t=>{var e=je();ri(ut(e),16,(()=>Yt(c)),(t=>t),((t,e)=>{var i=ms();let r;var s=ct(i),o=ct(s);se((t=>{r=fi(i,1,"micrio-subtitles",null,r,t),Je(o,e.data)}),[()=>({raised:n()})]),zi(3,i,(()=>Yr)),Ge(t,i)})),Ge(t,e)};ei(d,(t=>{er(hs,"$captionsEnabled",i)&&t(h)})),Ge(t,u),_e(),r()}var ps=t=>t.stopPropagation(),gs=t=>t.stopPropagation(),fs=We('<div class="container micrio-progress-bar"><div class="bars micrio-progress-bar"><!></div> <div class="time micrio-progress-bar"> </div></div>');function ws(t,e){Te(e,!0);let i=ar(e,"ended",11,!1);var r=fs();r.__click=[ps],r.__keydown=[gs];var n=ct(r);ci(ct(n),(()=>e.children??I));var s=ct(dt(n,2));se(((t,e)=>{bi(r,t),Je(s,e)}),[()=>`--progress: ${Math.round((e.currentTime??0)/e.duration*1e4)/100}%;--time: '${yr(e.currentTime??0)}';`,()=>yr(i()||!e.currentTime||e.currentTime<=0?e.duration:(e.currentTime??0)-e.duration)]),Ge(t,r),_e()}Ve(["click","keydown"]);var bs=t=>t.stopPropagation(),ys=t=>t.stopPropagation(),ks=Xe('<svg height="42" width="42" class="micrio-media-controls"><circle r="19" cx="21" cy="21" class="micrio-media-controls"></circle></svg>'),Ts=We("<!> <!> <!>",1),_s=We('<div class="bar active"></div>'),xs=We('<aside class="micrio-media-controls"><!> <!></aside> <!>',1);Ve(["click","keydown","mousedown"]);const Es=new Audio;var Ss=(t,e,i)=>{t.target==Yt(e)&&i(t)},$s=We("<iframe></iframe>"),As=We('<source type="video/mp4;codecs=hvc1">'),Ms=We("<!> <source>",1),Is=We('<video playsinline="" class="micrio-media"><!></video>',2),Ls=We("<audio></audio>"),Ps=We("<micr-io></micr-io>",2),Cs=We("<aside><!></aside>"),Os=We('<figcaption class="micrio-media"><!></figcaption>'),Rs=We('<div class="show-play micrio-media"><!></div>'),Ds=We("<figure><div><!> <!> <!></div> <!></figure> <!>",1);function zs(t,e){var i,r,n,s,o,a,l;Te(e,!0);const[c,u]=rr(),d=()=>er(X,"$_lang",c),h=ye("micrio");let m=ar(e,"src",15,void 0),v=ar(e,"volume",15,1),p=ar(e,"width",3,640),g=ar(e,"height",3,380),f=ar(e,"frameScale",3,1),w=ar(e,"autoplay",15,!1),b=ar(e,"loop",3,!1),y=ar(e,"loopDelay",3,void 0),k=ar(e,"controls",15,!1),T=ar(e,"title",3,void 0),_=ar(e,"figcaption",3,null),x=ar(e,"paused",15,!0),E=ar(e,"forcePause",3,void 0),S=ar(e,"seeking",15,!0),$=ar(e,"duration",31,(()=>-1)),A=ar(e,"currentTime",15),M=ar(e,"is360",3,!1),I=ar(e,"tour",3,null),L=ar(e,"secondary",3,!1),P=ar(e,"fullscreen",3,void 0),C=ar(e,"className",3,null),O=ar(e,"hasTransparentH265",3,!1),R=ar(e,"noPlayOverlay",3,!1),D=ar(e,"uuid",15,""),z=ar(e,"image",19,(()=>Ki(h.current))),N=ar(e,"destroying",3,void 0),F=ar(e,"_media",15,void 0);const V=K((()=>0==v()));D(D()+(m()??(null==(i=I())?void 0:i.id)));const U=z().$info,{events:q,state:W,_lang:X}=h,j=ye("volume"),H=0==er(j,"$mainVolume",c),Z=ye("srt");let J;const Q=W.mediaState.get(D());Q&&(A(Q.currentTime),w(!x(Q.paused))),W.mediaState.set(D(),{get currentTime(){return A()??0},set currentTime(t){Rt(t)},get paused(){return x()},set paused(t){t?Ot():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=Y(B(m()));const it=m()&&m().startsWith("cfvid://"),rt=m()&&m().toLowerCase(),nt=rt?rt.endsWith("mp3")?cs.Audio:rt.endsWith(".mp4")||rt.endsWith(".webm")||it?cs.Video:rt.startsWith("micrio://")?cs.Micrio:rt.startsWith("http")?cs.IFrame:cs.None:I()?cs.VideoTour:cs.None,st=nt==cs.Micrio?null==(n=m())?void 0:n.slice(9).split(","):null;let ot,at,lt,ht;st&&x(!1);let mt=-1,vt=Y(!1);const pt=nt==cs.Audio&&pr.iOS;let gt=Y(void 0);const ft=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()&&!ft&&wt&&wt[5])if("playlist"==wt[5]){const t=/list=([^&]+)/.exec(m());(null==t?void 0:t[1])&&G(et,`${tt}/embed/videoseries?list=${t[1]}`)}else{ot=us.YouTube;const t=Math.round((bt.test(m())?Number(m().replace(bt,"$1")):A())??0);G(et,`${tt}/embed/${wt[5]}?autoplay=0&enablejsapi=1&controls=0&start=${t}`),G(vt,!0)}if(!ft&&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=us.Vimeo,G(et,`https://player.vimeo.com/video/${t[1]}?${e?`h=${e}&`:""}title=0&portrait=0&sidedock=0&byline=0&controls=0#t=`+Math.round(A()??0)+"s"),G(vt,!0)}}let yt;it&&m()&&(yt=`https://videodelivery.net/${m().slice(8)}/manifest/video.m3u8`,G(et,void 0));let kt=Y(void 0);if(I()){const t=new ls(z(),I());null!=A()&&A()>0&&(t.currentTime=A()),nt==cs.VideoTour&&($("duration"in I()?Number(I().duration):(null==(o=null==(s=I().i18n)?void 0:s[d()])?void 0:o.duration)??0),v(NaN)),G(kt,t,!0)}(nt==cs.Micrio||nt==cs.IFrame&&!ot)&&k(!1);const Tt=I()&&!("steps"in I())?"subtitle"in I()?I().subtitle:null==(l=null==(a=I().i18n)?void 0:a[h.lang])?void 0:l.subtitle:void 0,_t=Tt&&("fileUrl"in Tt?Tt.fileUrl:Tt.src);function xt(){S(!1),M()&&z()&&!z()._video&&z().video.set(F())}let Et=Y(!1);function St(){G(Et,!1),x(!1),Yt(kt)&&F()&&(F().duration>Yt(kt).duration&&(Yt(kt).duration=F().duration),Yt(kt).currentTime=F().currentTime,Yt(kt).play())}function $t(t){t&&"button"in t&&0!=t.button||(x()?Ct():Ot())}const At=async()=>F()?F().paused:Yt(kt)?x():at?[-1,0,2].indexOf(at.getPlayerState())>=0:ot==us.YouTube?x():!!lt&&await lt.getPaused();let Mt=Y(!1),It=!1;const Lt=ye("mediaPaused");let Pt;async function Ct(t){var i,r,n,s;if(!(t&&t instanceof PointerEvent&&0!=t.button)&&(!It||await At())){switch(G(Nt,!1),$()>0&&null!=A()&&A()>=$()&&A(0),!L()&&_t&&Z.set(_t),nt){case cs.VideoTour:x(S(!1)),null==(i=Yt(kt))||i.play(),Vt();break;case cs.Audio:case cs.Video:null==(r=F())||r.addEventListener("play",(()=>{F()&&(isNaN(F().duration)?F().addEventListener("durationchange",St,{once:!0}):St())}),{once:!0}),null==(n=F())||n.play().catch((t=>{var i;R()?x(!0):/pause\(\)/.test(t.toString())||(G(Et,!0),h.events.dispatch("media-blocked"),null==(i=e.onblocked)||i.call(e))}));break;case cs.IFrame:switch(ot){case us.YouTube:at&&at.playVideo();break;case us.Vimeo:lt&&lt.play()}break;default:return}It=!0,q.dispatch("media-play"),Lt.set(!1),null==(s=e.onplay)||s.call(e),M()||H||Yt(kt)&&!F()||j.set(z().$settings.mutedVolume||0)}}function Ot(){q.dispatch("media-pause"),Lt.set(!0),F()?(F().pause(),pt&&x(!0)):Yt(kt)?(Yt(kt).pause(),x(!0),Ut()):(null==at?void 0:at.pauseVideo)&&!Yt(jt)?at.pauseVideo():(null==lt?void 0:lt.pause)&&lt.pause()}function Rt(t){S(!0),F()?F(F().currentTime=t,!0):Yt(kt)?(A(Yt(kt).currentTime=t),S(!1)):(null==at?void 0:at.seekTo)?at.seekTo(t):(null==lt?void 0:lt.setCurrentTime)&&lt.setCurrentTime(t)}function Dt(){Yt(kt)?(A(Yt(kt).currentTime),Yt(kt).ended&&Ft()):(null==at?void 0:at.getCurrentTime)&&A(at.getCurrentTime()),zt()}function zt(){L()||q.dispatch("timeupdate",A())}let Nt=Y(!1);function Ft(){var t;Yt(Nt)||(Yt(kt)?Ot():(x(!0),Ut()),G(Nt,!0),q.dispatch("media-ended"),null==(t=e.onended)||t.call(e),Xt())}function Vt(){mt>=0||(mt=setInterval(Dt,250),Dt())}function Ut(){clearInterval(mt),mt=-1}async function Bt(){if(it&&!Ur(F()))return br("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==cs.IFrame){if(ot==us.YouTube)return async function(){if(!at){if(window.YT||await br("https://i.micr.io/youtube.js","onYouTubeIframeAPIReady"),window.YT)return S(!0),new Promise(((t,e)=>{at=new window.YT.Player(Yt(gt),{host:tt,width:Yt(oe).toString(),height:Yt(ae).toString(),playerVars:{controls:0},events:{onError:e,onReady:()=>{Yt(jt)?e():($(at.getDuration()),S(!1),t())},onStateChange:t=>{switch(t.data){case-1:G(Mt,x(!0),!0),Ut();break;case 0:Ft();break;case 1:Vt(),G(Mt,x(S(!1)),!0);break;case 2:x(!0),Ut();break;case 3:Dt(),S(!0),Ut()}}}})}));G(vt,!1)}}();if(ot==us.Vimeo)return async function(){if(!lt){if(window.Vimeo||await br("https://i.micr.io/vimeo.min.js"),window.Vimeo)return S(!0),new Promise(((t,e)=>{const i=lt=new window.Vimeo.Player(Yt(gt),{width:Yt(oe).toString(),height:Yt(ae).toString(),title:!1,autoplay:!1});i.on("error",e),i.on("loaded",(()=>i.getVolume().then((i=>{Yt(jt)?e():t()})))),i.on("play",(()=>x(S(!1)))),i.on("bufferstart",(()=>S(!0))),i.on("seeked",(()=>{S(!1)})),i.on("pause",(()=>x(!0))),i.on("volumechange",(t=>{})),i.on("timeupdate",(t=>{t&&($(t.duration),A(t.seconds))})),i.on("ended",Ft)}));G(vt,!1)}}()}else F()&&(it&&G(et,yt,!0),function(){if(!F())return;F(F().ontimeupdate=zt,!0),Yt(kt)&&(F(F().onpause=()=>{var t,e;Wt=!!(null==(t=F())?void 0:t.ended),(null==(e=F())?void 0:e.ended)||Yt(kt).pause()},!0),F(F().onseeked=()=>{!F()||F().ended||Wt||(Yt(kt).currentTime=F().currentTime,qt&&(F().pause(),qt=!1))},!0));null!=A()&&A()>0&&(F().duration>0?F(F().currentTime=A(),!0):F(F().oncanplay=()=>{F()&&(F(F().oncanplay=null,!0),w()||(F().play(),qt=!0),F(F().currentTime=J,!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,Wt=!1;function Xt(){H||j.set(1)}let jt=Y(!1);const Gt=N()&&N().subscribe((t=>t&&Zt())),Ht=()=>{var t;return A((null==(t=F())?void 0:t.currentTime)??0)};function Zt(){if(!Yt(jt)){if(G(jt,!0),Gt&&Gt(),M()&&z()&&z().video.set(void 0),W.mediaState.delete(D()),Ut(),Ot(),Xt(),_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",Ht)),F(F().ontimeupdate=F(F().onpause=F(F().onseeked=F(F().oncanplay=null,!0),!0),!0),!0)),Yt(kt))Yt(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&&lt.destroy()}}const Jt=nt==cs.Video;let Kt=Y(B(Jt&&it&&1!=f()&&pr.iOS));ji((()=>{var t,i;null==(t=e.onid)||t.call(e,D()),m()&&pt&&(F(Es),F(F().controls=!1,!0),F(F().onloadedmetadata=()=>{var t;return $((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",Ht),F(F().onseeking=()=>S(!0),!0),F(F().onseeked=()=>S(!1),!0)),J=A()||0,G(vt,ot==us.YouTube||ot==us.Vimeo,!0),Bt().then((()=>{w()&&Ct()})).catch((()=>{})),Yt(Kt)&&(null==(i=F())||i.addEventListener("playing",(()=>G(Kt,!1)),{once:!0}));const r=h.isMuted.subscribe((t=>function(t){F()?F(F().muted=t,!0):(null==at?void 0:at.mute)?t?at.mute():at.unMute():lt&&lt.setVolume(t?0:1)}(t)));return()=>{Zt(),r(),pt&&F(void 0),ht?ht.destroy():at?at.destroy():lt&&lt.destroy()}})),ee((()=>{F()&&nt==cs.Video&&!Yt(V)&&F(F().muted=0==v(),!0)})),ee((()=>{void 0!==E()&&x(E())})),ee((()=>{b()&&void 0!==y()&&clearTimeout(Pt)}));const Qt=K((()=>{var t,e;return Yt(kt)&&I()?"events"in I()?I().events:(null==(e=null==(t=I().i18n)?void 0:t[d()])?void 0:e.events)??void 0:void 0}));let te=Y(void 0),ie=Y(void 0);const re=U.is360?Math.PI/2:1,ne=K((()=>Jt?f()*re:nt==cs.IFrame?Math.max(f(),Math.min(p()/512,g()/512)):1)),oe=K((()=>Jt?p():Math.round(p()/Yt(ne)*re))),ae=K((()=>Jt?g():Math.round(g()/Yt(ne)*re)));var le=je(),ce=ut(le),ue=t=>{var e=Ds(),i=ut(e);let r;bi(i,null);var n=ct(i);let s;n.__pointerup=[Ss,ie,$t];var o=ct(n),a=t=>{var e=$s();let i;qi(e,(t=>G(gt,t)),(()=>Yt(gt))),se(((t,r)=>i=$i(e,i,{...t,title:T(),src:Yt(et),width:Yt(oe),height:Yt(ae),frameborder:"0",allow:"fullscreen *;autoplay *;encrypted-media *",[yi]:r},"micrio-media")),[()=>({credentialless:!0}),()=>({hooked:Yt(vt)&&!Yt(Mt)})]),Ge(t,e)},l=(t,e)=>{var i=t=>{var e=Is();e.controls=!1;var i=ct(e),r=t=>{var e=Ms(),i=ut(e),r=t=>{var e=As();se((t=>Ei(e,"src",t)),[()=>Yt(et).replace(".webm",".mp4")]),Ge(t,e)};ei(i,(t=>{O()&&Yt(et).endsWith(".webm")&&t(r)}));var n=dt(i,2);Ei(n,"type",it?"application/x-mpegURL":void 0),se((()=>Ei(n,"src",Yt(et)))),Ge(t,e)};ei(i,(t=>{Yt(et)&&t(r)})),qi(e,(t=>F(t)),(()=>F())),se((()=>{e.loop=b()&&(null==y()||y()<=0),Ei(e,"width",p()),Ei(e,"height",g()),bi(e,Yt(Kt)?"opacity: 0":void 0),e.muted=Yt(V),e.autoplay=!!w()})),Fe("canplay",e,xt),Fe("ended",e,Ft),Wi("duration","durationchange",e,$),Fi(e,A),Vi(e,S),Ui(e,x),Ge(t,e)},r=(t,e)=>{var i=t=>{var e=Ls();e.controls=!1,qi(e,(t=>F(t)),(()=>F())),se((()=>{Ei(e,"src",Yt(et)),e.muted=Yt(V)})),Fe("canplay",e,(()=>S(!1))),Fe("ended",e,Ft),Wi("duration","durationchange",e,$),Fi(e,A),Vi(e,S),Ui(e,x),Ge(t,e)},r=(t,e)=>{var i=t=>{var e=Ps();Si(e,"data-logo","false"),se((()=>Si(e,"id",st[0]))),se((()=>Si(e,"width",st[1]))),se((()=>Si(e,"height",st[2]))),se((()=>Si(e,"lang",st[3]))),se((()=>Si(e,"data-path",U.path))),Ge(t,e)};ei(t,(t=>{nt==cs.Micrio&&st&&t(i)}),e)};ei(t,(t=>{nt!=cs.Audio||pt?t(r,!1):t(i)}),e)};ei(t,(t=>{nt==cs.Video?t(i):t(r,!1)}),e)};ei(o,(t=>{nt==cs.IFrame?t(a):t(l,!1)}));var u=dt(o,2),d=t=>{!function(t,e){Te(e,!0);let i=ar(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}))}));ee((()=>{n(i())})),Gi((()=>n(1/0))),_e()}(0,{get events(){return Yt(Qt)},get currentTime(){return A()},set currentTime(t){A(t)},get duration(){return $()},set duration(t){$(t)}})};ei(u,(t=>{var e;(null==(e=Yt(Qt))?void 0:e.length)&&$()>0&&!Yt(jt)&&t(d)}));var m=dt(u,2),v=t=>{var e=Cs();let i;var r=ct(e);const n=K((()=>M()||nt!=cs.IFrame&&nt!=cs.Video?P():Yt(te)));!function(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(v,"$globalVolume",i),s=()=>er(Qr,"$i18n",i),o=()=>er(hs,"$captionsEnabled",i);let a=ar(e,"currentTime",15),l=ar(e,"duration",11,0),c=ar(e,"seeking",11,!0),u=ar(e,"minimal",3,!1),d=ar(e,"ended",15),h=ar(e,"fullscreen",3,void 0),m=ar(e,"subtitles",3,!1);ye("micrio");const v=ye("volume"),p=K((()=>0==n())),g=K((()=>!isNaN(n())||0==n()));let f=Y(void 0);function w(t){0==t.button&&(window.addEventListener("mousemove",b),window.addEventListener("mouseup",y),b(t))}function b(t){var i;const r=Yt(f).getClientRects()[0],n=Math.min(1,Math.max(0,(t.clientX-r.left)/r.width));null==(i=e.onseek)||i.call(e,n*l())}function y(){window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",y)}var k=xs(),T=ut(k);T.__click=[bs],T.__keydown=[ys];var _=ct(T);const x=K((()=>e.paused?"play":"pause")),E=K((()=>e.paused?s().play:s().pause));Wn(_,{get type(){return Yt(x)},get title(){return Yt(E)},get onclick(){return e.onplaypause},children:(t,e)=>{var i=je(),r=ut(i),n=t=>{var e=ks(),i=ct(e);se((()=>Ei(i,"stroke-dashoffset",119.4*(1-a()/l())))),Ge(t,e)};ei(r,(t=>{u()&&void 0!==a()&&a()>0&&t(n)})),Ge(t,i)},$$slots:{default:!0}});var S=dt(_,2),$=t=>{var i=Ts(),r=ut(i),n=t=>{const i=K((()=>Yt(p)?"volume-off":"volume-up")),r=K((()=>Yt(p)?s().audioUnmute:s().audioMute));Wn(t,{get disabled(){return c()},get type(){return Yt(i)},get title(){return Yt(r)},get onclick(){return e.onmute}})};ei(r,(t=>{Yt(g)&&t(n)}));var a=dt(r,2),l=t=>{const e=K((()=>o()?"subtitles":"subtitles-off"));Wn(t,{get type(){return Yt(e)},get active(){return o()},get title(){return s().subtitlesToggle},onclick:()=>hs.set(!o())})};ei(a,(t=>{m()&&t(l)}));var u=dt(a,2),d=t=>{ts(t,{get el(){return h()}})};ei(u,(t=>{h()&&t(d)})),Ge(t,i)};ei(S,(t=>{u()||t($)}));var A=dt(T,2),M=t=>{ws(t,{get duration(){return l()},get currentTime(){return a()},set currentTime(t){a(t)},get ended(){return d()},set ended(t){d(t)},children:(t,e)=>{var i=_s();i.__mousedown=w,qi(i,(t=>G(f,t)),(()=>Yt(f))),se((()=>bi(i,`--progress:${(a()??0)/l()*100}%;`))),Ge(t,i)},$$slots:{default:!0}})};ei(A,(t=>{u()||t(M)})),Ge(t,k),_e(),r()}(r,{subtitles:!!_t,get fullscreen(){return Yt(n)},onplaypause:$t,onmute:()=>h.isMuted.set(!Yt(V)),onseek:t=>Rt(t),get paused(){return x()},set paused(t){x(t)},get seeking(){return S()},set seeking(t){S(t)},get duration(){return $()},set duration(t){$(t)},get currentTime(){return A()},set currentTime(t){A(t)},get ended(){return Yt(Nt)},set ended(t){G(Nt,t,!0)}}),se((t=>i=fi(e,1,"micrio-media",null,i,t)),[()=>({inside:"inside"==k()})]),Ge(t,e)};ei(m,(t=>{k()&&t(v)})),qi(n,(t=>G(ie,t)),(()=>Yt(ie)));var f=dt(n,2),E=t=>{var e=Os();li(ct(e),_),Ge(t,e)};ei(f,(t=>{_()&&t(E)})),qi(i,(t=>G(te,t)),(()=>Yt(te)));var I=dt(i,2),L=t=>{var e=Rs();e.__pointerup=Ct,Wn(ct(e),{get title(){return er(Qr,"$i18n",c).play},type:"play"}),Ge(t,e)};ei(I,(t=>{Yt(Et)&&t(L)})),se(((t,e)=>{r=fi(i,1,mi(C()),"micrio-media",r,t),bi(n,1==Yt(ne)||nt!=cs.Video&&U.is360?"":`transform:scale(${Yt(ne)})`),s=fi(n,1,"micrio-media",null,s,e)}),[()=>({paused:x(),is360:M(),"media-video":nt==cs.IFrame||nt==cs.Video,"media-micrio":nt==cs.Micrio}),()=>({videotour:!!Yt(kt)})]),Ge(t,e)};ei(ce,(t=>{z().$settings.noUI||t(ue)})),Ge(t,le),_e(),u()}Ve(["pointerup"]);var Ns=t=>t.stopPropagation(),Fs=We("<article><!></article>");function Vs(t,e){Te(e,!0);let i=ar(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=Fs();n.__click=[Ns],n.__keydown=r,n.__pointerdown=r,ci(ct(n),(()=>e.children??I)),se((()=>fi(n,1,mi(i()),"micrio-article"))),Ge(t,n),_e()}Ve(["click","keydown","pointerdown"]);var Us=We('<h1 class="micrio-marker-content"> </h1>'),Bs=We('<figcaption class="micrio-marker-content"> </figcaption>'),qs=We('<button class="micrio-marker-content"><figure class="micrio-marker-content"><img class="micrio-marker-content"> <!></figure></button>'),Ws=We('<section class="micrio-marker-content"></section>'),Xs=We("<!> <!>",1),Ys=We("<main><!> <!> <!> <!> <!> <!> <!></main>");function js(t,e){var i,r,n;Te(e,!0);const[s,o]=rr(),a=()=>er(g,"$tour",s),l=()=>er(p,"$lang",s);let c=ar(e,"noEmbed",3,!1),u=ar(e,"noImages",3,!1),d=ar(e,"noGallery",3,!1),h=ar(e,"_content",15),m=ar(e,"_title",15);const v=ye("micrio"),p=v._lang,g=v.state.tour,f=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),_=K((()=>e.marker.i18n?e.marker.i18n[l()]:e.marker)),x=K((()=>{var t,i,r,n,s;return!((null==(t=Yt(_))?void 0:t.title)||(null==(i=Yt(_))?void 0:i.audio)||e.marker.images&&e.marker.images.length||(null==(r=Yt(_))?void 0:r.embedUrl)||e.marker.videoTour||(null==(n=Yt(_))?void 0:n.body)||(null==(s=Yt(_))?void 0:s.bodySecondary))})),E=()=>{var t;a()&&"steps"in a()&&(a().isSerialTour||b.tourAutoProgress)&&(null==(t=e.onclose)||t.call(e))};const S=K((()=>{var t;return!y||!(null==(t=e.marker)?void 0:t.audioAutoPlay)})),$=K((()=>{var t,i,r;return!1===(null==(t=e.marker)?void 0:t.embedAutoPlay)||!y||!(!(null==(i=Yt(_))?void 0:i.audio)||!(null==(r=e.marker)?void 0:r.audioAutoPlay))})),A=null==(n=w.tileBase)?void 0:n.includes("micrio.dev"),M=t=>{var e,i;return null==(i=null==(e=t.i18n)?void 0:e[l()])?void 0:i.title},I=K((()=>{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=Yt(_))?void 0:n.audio)})),L=K((()=>Yt(I)?"fileUrl"in Yt(I)?Yt(I).fileUrl:Yt(I).src:void 0)),P=K((()=>{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=je(),O=ut(C),R=t=>{var i=Ys();let r;var n=ct(i),s=t=>{var e=Us(),i=ct(e);qi(e,(t=>m(t)),(()=>m())),se((()=>Je(i,Yt(_).title))),Ge(t,e)};ei(n,(t=>{Yt(_).title&&t(s)}));var o=dt(n,2),a=t=>{Vs(t,{children:(t,e)=>{var i=je();li(ut(i),(()=>Yt(_).body)),Ge(t,i)},$$slots:{default:!0}})};ei(o,(t=>{Yt(_).body&&b.primaryBodyFirst&&t(a)}));var l=dt(o,2),d=t=>{const i=K((()=>e.marker.audioAutoPlay||!Yt(_).audio&&!!e.marker.videoTour)),r=K((()=>!e.marker.videoTour||!Yt(_)||!Yt(_).embedUrl));zs(t,{get src(){return Yt(L)},noPlayOverlay:!0,image:w,get uuid(){return e.marker.id},get tour(){return e.marker.videoTour},get autoplay(){return Yt(i)},get controls(){return Yt(r)},onended:E,get paused(){return Yt(S)}})};ei(l,(t=>{!f&&((!Yt(_)||!Yt(_).embedUrl)&&e.marker.videoTour||Yt(_)&&Yt(_).audio)&&t(d)}));var p=dt(l,2),g=t=>{var i=Ws();ri(i,21,(()=>e.marker.images),(t=>t.id??t.src),((t,i)=>{var r=qs();r.__click=function(...t){var r;null==(r=k?()=>{return t=Yt(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=Bs(),i=ct(e);se((()=>Je(i,Yt(P)))),Ge(t,e)};ei(o,(t=>{Yt(P)&&t(a)})),se(((t,e,i)=>{Ei(r,"title",t),Ei(s,"alt",e),Ei(s,"src",i)}),[()=>M(Yt(i)),()=>M(Yt(i)),()=>Yt(i).micrioId?`https://iiif.${A?"micrio.dev":"micr.io"}/${Yt(i).micrioId}/full/${T?"^"+Math.min(Yt(i).width,640)+",":"^,320"}/0/default.webp`:Yt(i).src]),Ge(t,r)})),Ge(t,i)};ei(p,(t=>{var i;!u()&&(null==(i=e.marker.images)?void 0:i.length)&&t(g)}));var I=dt(p,2),C=t=>{var i=Xs(),r=ut(i),n=t=>{zs(t,{image:w,className:"hidden",get uuid(){return e.marker.id},get tour(){return e.marker.videoTour},autoplay:y,secondary:!0})};ei(r,(t=>{!Yt(_).audio&&e.marker.videoTour&&t(n)}));var s=dt(r,2);const o=K((()=>!Yt($)));zs(s,{image:w,get src(){return Yt(_).embedUrl},get uuid(){return e.marker.id},width:400,height:240,controls:!0,get title(){return Yt(_).embedTitle},get figcaption(){return Yt(_).embedDescription},get autoplay(){return Yt(o)},onended:E,get paused(){return Yt($)}}),Ge(t,i)};ei(I,(t=>{Yt(_).embedUrl&&!c()&&t(C)}));var O=dt(I,2),R=t=>{Vs(t,{children:(t,e)=>{var i=je();li(ut(i),(()=>Yt(_).body)),Ge(t,i)},$$slots:{default:!0}})};ei(O,(t=>{Yt(_).body&&!b.primaryBodyFirst&&t(R)}));var D=dt(O,2),z=t=>{Vs(t,{cn:"secondary",children:(t,e)=>{var i=je();li(ut(i),(()=>Yt(_).bodySecondary)),Ge(t,i)},$$slots:{default:!0}})};ei(D,(t=>{Yt(_).bodySecondary&&t(z)})),qi(i,(t=>h(t)),(()=>h())),se((t=>r=fi(i,1,"micrio-marker-content",null,r,t)),[()=>({empty:Yt(x)})]),Ge(t,i)};ei(O,(t=>{Yt(_)&&t(R)})),Ge(t,C),_e(),o()}Ve(["click"]);var Gs=We('<button class="micrio-button tour-step micrio-marker-popup" disabled> </button>'),Hs=We("<!> <!> <!>",1),Zs=We('<progress class="progress micrio-marker-popup"></progress> <!>',1),Js=We('<div><aside class="micrio-marker-popup"><!> <!> <!></aside> <!></div>');function Ks(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(c,"$tour",i),s=()=>er(l,"$current",i),o=()=>er(Qr,"$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=Y(void 0);function p(t){var e,i,r;n()&&Yt(f)&&"steps"in n()?t instanceof Event&&Yt(y)?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)}const g=K((()=>n()&&"steps"in n()?n():void 0)),f=K((()=>{var t;return Yt(g)&&(null==(t=Yt(g))?void 0:t.steps.findIndex((t=>t.startsWith(e.marker.id))))>=0})),w=K((()=>{var t;return Yt(f)&&!(null==(t=Yt(g))?void 0:t.isSerialTour)&&d.tourControlsInPopup})),b=K((()=>{var t;return(null==(t=Yt(g))?void 0:t.currentStep)??-1})),y=K((()=>Yt(w)||(Yt(g)?Yt(g).currentStep==Yt(g).steps.length-1:void 0)));let k=Y(!1);const T=(t=!1)=>{var e,i,r,n;Yt(g)&&(t?null==(i=(e=Yt(g)).prev)||i.call(e):null==(n=(r=Yt(g)).next)||n.call(r),G(k,!0),setTimeout((()=>G(k,!1)),200))};let _=Y(!1),x=Y(void 0),E=Y(void 0);const S=new WeakMap,$=()=>{if(G(_,!Yt(_)),Yt(x))for(let t=0;t<Yt(x).children.length;t++){const e=Yt(x).children[t];e instanceof HTMLElement&&e!=Yt(E)&&(S.has(e)||(S.set(e,e.offsetHeight),e.style.height=e.offsetHeight+"px"),setTimeout((()=>{e.style.height=Yt(_)?"0px":S.get(e)+"px"}),100))}};let A=Y(!1);ji((()=>{var t;e.marker.tags.forEach((t=>{var e;return null==(e=Yt(v))?void 0:e.classList.add(t)})),setTimeout((()=>{var t,e;return null==(e=null==(t=Yt(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=>G(A,!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 M=Js();let I;var L=ct(M),P=ct(L),C=t=>{const e=K((()=>!Yt(f)||Yt(y)?"close":"arrow-right")),i=K((()=>!Yt(f)||Yt(y)?o().closeMarker:o().tourStepNext));Wn(t,{get type(){return Yt(e)},get title(){return Yt(i)},get disabled(){return Yt(k)},onclick:p})};ei(P,(t=>{h.alwaysOpen||t(C)}));var O=dt(P,2),R=t=>{const e=K((()=>Yt(_)?"arrow-up":"arrow-down"));Wn(t,{get type(){return Yt(e)},get title(){return o().minimize},onclick:$})};ei(O,(t=>{m&&t(R)}));var D=dt(O,2),z=t=>{var e=Zs(),i=ut(e);Ei(i,"aria-hidden",!0),Qn(dt(i,2),{className:"micrio-tour-controls",children:(t,e)=>{var i=Hs(),r=ut(i);const s=K((()=>Yt(k)||0==Yt(b)));Wn(r,{type:"arrow-left",get disabled(){return Yt(s)},get title(){return o().tourStepPrev},onclick:()=>T()});var a=dt(r,2),l=t=>{var e=Gs(),i=ct(e);se((()=>Je(i,`${Yt(b)+1} / ${n().steps.length??""}`))),Ge(t,e)};ei(a,(t=>{d.tourStepCounterInPopup&&t(l)}));var c=dt(a,2);const u=K((()=>Yt(k)||Yt(b)+1==n().steps.length));Wn(c,{type:"arrow-right",get disabled(){return Yt(u)},get title(){return o().tourStepNext},onclick:()=>T(!0)}),Ge(t,i)},$$slots:{default:!0}}),se((()=>{return t=i,e=(Yt(b)+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})),Ge(t,e)};ei(D,(t=>{Yt(w)&&n()&&"steps"in n()&&t(z)})),js(dt(L,2),{get marker(){return e.marker},onclose:p,get _content(){return Yt(x)},set _content(t){G(x,t,!0)},get _title(){return Yt(E)},set _title(t){G(E,t,!0)}}),qi(M,(t=>G(v,t)),(()=>Yt(v))),se((t=>I=fi(M,1,"micrio-marker-popup",null,I,t)),[()=>({destroying:Yt(A),minimized:Yt(_)})]),zi(3,M,(()=>jr),(()=>d.popupAnimation)),Ge(t,M),_e(),r()}var Qs=We('<li><button class="micrio-serial-tour"> </button></li>'),to=We('<ol class="micrio-serial-tour"></ol>'),eo=We("<!> <!> <!> <!>",1),io=We('<div role="progressbar"></div>'),ro=We('<!> <aside class="micrio-media-controls micrio-serial-tour"><!> <!></aside> <!>',1);function no(t,e){var i,r;Te(e,!0);const[n,s]=rr(),o=()=>er(d,"$lang",n),a=()=>er(Qr,"$i18n",n),l=()=>er(hs,"$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),g=c.reduce(((t,e)=>t+e.duration),0)??0,f="controls"in e.tour?!1!==e.tour.controls:!e.tour.noControls;let w=Y(!1),b=Y(!1),y=Y(!1);ee((()=>u.isMuted.subscribe((t=>{G(y,t,!0)}))));let k=Y(void 0),T=Y(void 0),_=Y(0),x=Y("");function E(){const t=u.state.mediaState.get(Yt(x));t&&(t.paused=G(w,!t.paused)),Yt(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 S(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)),M();const o=c[t];o.currentTime=s*o.duration,n&&(null==(r=Yt(k))?void 0:r.instance)&&(Yt(k).instance.currentTime=o.currentTime),L(t)}function $(){u.isMuted.set(!Yt(y))}function A(){var t;const i=Yt(T);i&&(i.ended=!0),null!=e.tour.currentStep&&e.tour.currentStep<e.tour.steps.length-1&&e.tour.next?e.tour.next():(G(w,G(b,!0),!0),null==(t=e.onended)||t.call(e)),Xt().then((()=>{M(),i&&(i.ended=!1)}))}function M(){var t;null==(t=e.tour.stepInfo)||t.forEach((t=>t.currentTime=0))}const I=Ji([]);function L(t=e.tour.currentStep??0){const i=c.map(((e,i)=>i<t||e.ended||Yt(b)?100:i==t?Math.round((e.currentTime||0)/e.duration*1e4)/100:0));G(_,i.reduce(((t,e,i)=>t+e/100*c[i].duration),0),!0),I.set(i)}function P(t){const i=t&&!!e.tour.steps.find((e=>e.startsWith(t.id)));G(k,void 0),i&&t.videoTour&&setTimeout((()=>{const i=c[e.tour.currentStep??0];i.markerId==t.id&&(i.ended=!1,G(T,i,!0),G(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};ji((()=>{const t=()=>L();u.addEventListener("timeupdate",t);const e=m.subscribe(P);return()=>{e(),u.removeEventListener("timeupdate",t),M()}}));const O=K((()=>{var t,e;return Yt(k)?"audio"in Yt(k)?Yt(k).audio:null==(e=null==(t=Yt(k).i18n)?void 0:t[o()])?void 0:e.audio:void 0})),R=K((()=>Yt(O)?"fileUrl"in Yt(O)?Yt(O).fileUrl:Yt(O).src:void 0)),D=K((()=>{var t;return!!(null==(t=Yt(T))?void 0:t.hasSubtitle)})),z=K((()=>c.some((t=>t.hasSubtitle))));var N=ro(),F=ut(N),V=t=>{var e=to();ri(e,21,(()=>c),ii,((t,e,i)=>{var r=je(),n=ut(r),s=t=>{var r=Qs();let n;var s=ct(r);s.__click=()=>S(i);var o=ct(s);se(((t,e)=>{n=fi(r,1,"micrio-serial-tour",null,n,t),Je(o,e)}),[()=>({active:Yt(T)&&Yt(T).chapter==i,enriched:Yt(e).imageHasOtherMarkers}),()=>C(Yt(e).marker)]),Ge(t,r)};ei(n,(t=>{C(Yt(e).marker)&&t(s)})),Ge(t,r)})),Ge(t,e)};ei(F,(t=>{e.tour.printChapters&&t(V)}));var U=dt(F,2),B=ct(U),q=t=>{const e=K((()=>!Yt(w)));zs(t,{get tour(){return Yt(k)},get src(){return Yt(R)},get autoplay(){return Yt(e)},onid:t=>G(x,t,!0),onended:A,onplay:()=>G(w,!1),onblocked:()=>G(w,!0),get currentTime(){return Yt(T).currentTime},set currentTime(t){Yt(T).currentTime=t}})};ei(B,(t=>{Yt(k)&&Yt(T)&&t(q)}));var W=dt(B,2),X=t=>{var e=eo(),i=ut(e);const r=K((()=>Yt(w)?"play":"pause")),n=K((()=>Yt(w)?a().play:a().pause));Wn(i,{get type(){return Yt(r)},get title(){return Yt(n)},onclick:E});var s=dt(i,2);const o=K((()=>Yt(y)?"volume-off":"volume-up")),c=K((()=>Yt(y)?a().audioUnmute:a().audioMute));Wn(s,{get type(){return Yt(o)},get title(){return Yt(c)},onclick:$});var d=dt(s,2),h=t=>{const e=K((()=>!Yt(D))),i=K((()=>l()?"subtitles":"subtitles-off"));Wn(t,{get disabled(){return Yt(e)},get type(){return Yt(i)},get active(){return l()},get title(){return a().subtitlesToggle},onclick:()=>hs.set(!l())})};ei(d,(t=>{Yt(z)&&t(h)})),ts(dt(d,2),{el:u}),Ge(t,e)};ei(W,(t=>{f&&t(X)}));var j=dt(U,2),H=t=>{ws(t,{duration:g,get currentTime(){return Yt(_)},set currentTime(t){G(_,t,!0)},get ended(){return Yt(b)},set ended(t){G(b,t,!0)},children:(t,i)=>{var r=je();ri(ut(r),17,(()=>c),ii,((t,i,r)=>{var s=je(),o=ut(s),a=t=>{var s=io();let o;s.__click=t=>S(r,t),se(((t,e)=>{o=fi(s,1,"bar",null,o,t),Ei(s,"title",e),bi(s,`width:${Yt(i).duration/g*100}%; --progress: ${er(I,"$times",n)[r]||0}%`)}),[()=>({active:r==e.tour.currentStep}),()=>C(Yt(i).marker)]),Fe("keypress",s,(t=>{"Enter"===t.key&&S(r)})),Ge(t,s)};ei(o,(t=>{Yt(i).duration>0&&t(a)})),Ge(t,s)})),Ge(t,r)},$$slots:{default:!0}})};ei(j,(t=>{f&&t(H)})),Ge(t,N),_e(),s()}Ve(["click"]);var so=We('<article class="scroll-tour micrio-tour"></article> <!>',1),oo=We("<!> <!> <!>",1),ao=We("<div><!> <!></div>");function lo(t,e){var i,r;Te(e,!0);const[n,s]=rr(),o=()=>er(m,"$_lang",n),a=()=>er(Qr,"$i18n",n);let l=ar(e,"tour",15),c=ar(e,"noHTML",3,!1);const u=ye("micrio"),{events:d,state:h,_lang:m}=u,v=u.$current,p=v.$data,g=v.$settings,f=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=g._markers)?void 0:i.tourControlsInPopup)),x=_&&(y||b),E=!!(null==(r=g._markers)?void 0:r.keepPopupsDuringTourTransitions),S=()=>I(Yt(R)-1),$=()=>I(Yt(R)+1),A=()=>d.enabled.set(!0);let M;function I(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[Yt(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",A),w.set(void 0),s&&(M=setTimeout(P,200,s))}async function L(t){var e,i,r,n,s,o,a;let c=v,d=!1;if(f&&!t.gridView&&f.images.find((e=>e.id==t.micrioId))){const s=!!("steps"in l()&&l().stepInfo&&t)&&(null==(e=l().stepInfo)?void 0:e.indexOf(t))<Yt(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=f.focus(c=f.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)&&f){t.micrioImage||(t.micrioImage=f.images.find((e=>e.id==t.micrioId))),c=t.micrioImage;const e=t.marker.data._meta.gridAction.split("|");f.action(e.shift(),e.join("|"))}else"steps"in l()&&l().stepInfo&&G(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",A,{once:!0}),await Xt(),d.dispatch("tour-step",l()))}function C(){h.tour.set(void 0)}function O(){d.dispatch("tour-ended",l()),(l().closeOnFinish||!l().cannotClose&&T)&&C()}let R=Y(-1),D=Y(!1);const z=v.camera.getView(),N=g._markers;"steps"in l()&&(l(l().prev=S,!0),l(l().next=$,!0),l(l().goto=I,!0),ee((()=>{l(l().currentStep=Yt(R),!0)})));const F=Ji(!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=Y(void 0);function W(t){var e,i;if(!("steps"in l())||!Yt(q))return;const r=l().steps,n=t.filter((t=>t.isIntersecting)).map((t=>t.target))[0];if(n)for(let s=0;s<Yt(q).children.length;s++)if(Yt(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=[];ji((()=>("steps"in l()&&zr(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&&I(t.initialStep),k&&Yt(q)){B=new IntersectionObserver(W,{root:Yt(q),threshold:1});for(let t=0;t<Yt(q).children.length;t++)B.observe(Yt(q).children[t])}X.push(u.state.marker.subscribe((e=>{if(!e)return void G(D,!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[G(R,r,!0)];e&&!e.micrioImage&&(e.micrioImage=u.canvases.find((t=>t.id==e.micrioId))??(null==f?void 0:f.images.find((t=>t.id==e.micrioId)))??u.$current)}G(D,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(M);X.length;)null==(t=X.shift())||t();u.removeEventListener("pointermove",U),u.removeEventListener("touchstart",U),u.removeEventListener("marker-opened",A),x&&u.removeAttribute("data-tour-active"),A(),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,f||"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&&z&&v.camera.flyToView(z,{speed:null==N?void 0:N.zoomOutAfterCloseSpeed,noTrueNorth:!0})}))}))),d.dispatch("tour-start",l());let j=Y(0),H=Y(!1);const Z=K((()=>"steps"in l()?void 0:l())),J=K((()=>{var t,e;return Yt(Z)?"audio"in l()?l().audio:null==(e=null==(t=Yt(Z).i18n)?void 0:t[o()])?void 0:e.audio:void 0})),Q=K((()=>Yt(J)?"fileUrl"in Yt(J)?Yt(J).fileUrl:Yt(J).src:void 0));var tt=je(),et=ut(tt),it=t=>{var e=je(),i=ut(e),r=t=>{var e=so(),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=je(),r=ut(i),n=t=>{Ks(t,{get marker(){return Yt(e)}})};ei(r,(t=>{Yt(e)&&t(n)})),Ge(t,i)})),qi(i,(t=>G(q,t)),(()=>Yt(q)));var r=dt(i,2),n=t=>{Wn(t,{type:"close",get title(){return a().tourStop},className:"scroll-tour-end",onclick:C})};ei(r,(t=>{l().cannotClose||t(n)})),Ge(t,e)},s=(t,e)=>{var i=t=>{var e=ao();let i;var r=ct(e),s=t=>{var e=je(),i=ut(e),r=t=>{no(t,{get tour(){return l()},onended:O})},n=t=>{var e=oo(),i=ut(e);const r=K((()=>0==Yt(R)));Wn(i,{type:"arrow-left",get title(){return a().tourStepPrev},get disabled(){return Yt(r)},onclick:S});var n=dt(i,2);Wn(n,{noClick:!0,children:(t,e)=>{var i=Ye();se((()=>Je(i,`${Yt(R)+1} / ${l().steps.length??""}`))),Ge(t,i)},$$slots:{default:!0}});var s=dt(n,2);const o=K((()=>Yt(R)==l().steps.length-1));Wn(s,{type:"arrow-right",get title(){return a().tourStepNext},get disabled(){return Yt(o)},onclick:$}),Ge(t,e)};ei(i,(t=>{b?t(r):t(n,!1)})),Ge(t,e)},o=t=>{zs(t,{get tour(){return l()},get src(){return Yt(Q)},fullscreen:u,controls:!0,autoplay:!0,onended:O,get paused(){return Yt(H)},set paused(t){G(H,t,!0)},get currentTime(){return Yt(j)},set currentTime(t){G(j,t,!0)}})};ei(r,(t=>{"steps"in l()?t(s):t(o,!1)}));var c=dt(r,2),d=t=>{Wn(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:!Yt(H)&&(er(F,"$minimized",n)||Yt(D))})]),zi(1,e,(()=>Yr),(()=>({duration:200}))),Ge(t,e)},r=(t,e)=>{var i=t=>{zs(t,{get tour(){return Yt(Z)},get src(){return Yt(Q)},autoplay:!0,onended:O,get currentTime(){return Yt(j)},set currentTime(t){G(j,t,!0)}})};ei(t,(t=>{Yt(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)})),Ge(t,e)},rt=(t,e)=>{var i=t=>{zs(t,{get tour(){return Yt(Z)},get src(){return Yt(Q)},autoplay:!0,onended:O,get currentTime(){return Yt(j)},set currentTime(t){G(j,t,!0)}})};ei(t,(t=>{Yt(Z)&&t(i)}),e)};ei(et,(t=>{c()?t(rt,!1):t(it)})),Ge(t,tt),_e(),s()}class co{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[3])/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 uo=We('<span class="micrio-dial"> </span>'),ho=We('<div data-scroll-through="" class="micrio-dial"><!></div>');function mo(t,e,i,r){Yt(e)||G(i,r(t)[1],!0)}var vo=We("<button>&#10021;</button>"),po=We('<li><button class="bullet micrio-gallery">&bull;</button></li>'),go=We('<div><!> <ul class="micrio-gallery"><!> <button aria-label="drag handle"></button></ul> <!></div>');function fo(t,e){var i,r,n,s,o,a;Te(e,!0);const[l,c]=rr(),u=()=>er(_,"$settings",l),d=()=>er(T,"$layer",l),h=()=>er(Qr,"$i18n",l);let m=ar(e,"images",19,(()=>[])),v=ar(e,"omni",3,null);const p=ye("micrio"),{wasm:g,current:f,events:w,_lang:b}=p,y=er(f,"$current",l),k=y.$info,T=y.state.layer,_=y.settings,x=y.camera;if(v())for(let Y=0;Y<v().frames;Y++)m().push({id:k.id+"/"+Y,image:y,visible:Ji(!1),frame:Y,opts:{area:[0,0,1,1]},ptr:-1,baseTileIdx:-1,thumbSrc:y.getTileSrc(y.levels,0,0,Y)});const E=u().gallery,S="omni"==E.type,$=S||"swipe-full"==E.type,A=$||"switch"==E.type,M=S,I=!!E.isSpreads,L=E.coverPages??0,P=u().omni,C=S&&!!(null==P?void 0:P.twoAxes),O=E.startId||p.getAttribute("data-gallery-start-id"),R=E.archive,D=!!u().limitToCoverScale,z=!!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)?O?m().findIndex((t=>t.id==O)):0:V;U<0&&(U=0);const B=[],q=[];if(m())for(let Y=0;Y<m().length;Y++){let t=null==(s=m()[Y].opts)?void 0:s.area;if(!t)continue;const e=t.slice(0);if(q.push([Y]),I&&Y-L>=0&&(Y-L)%2==0&&m()[Y+1]){if(t=null==(o=m()[++Y].opts)?void 0:o.area,!t)continue;q[q.length-1].push(Y),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??{[(()=>er(b,"$_lang",l))()]:0}).forEach((t=>X.forEach(((e,i)=>{e.i18n[t]||(e.i18n[t]={title:"Layer "+(i+1)})}))));let j=Y(-1),H=A,Z=Y(!0),J=Y(!1),Q=Y(!0),tt=!1,et=Y(0);function rt(t,e=!1,i=150,r=!1){if(M){for(;t<0;)t+=W;t%=W}const n=t=Math.round(Math.max(0,Math.min(W-1,t))),s=r||n!=Yt(j);if(G(j,n,!0),s&&nt(),A)s&&(g.setActiveImage(y.ptr,q[Yt(j)][0],q[Yt(j)].length-1),S?g.render():(x.flyToView(B[Yt(j)],{duration:i,speed:2}).then((()=>ht(B[Yt(j)],!0))).catch((()=>{})),Ut()));else{const r=x.getViewLegacy(),n=B[t],o=tt&&(H&&!Yt(J)||s||r[0]<n[0]!=r[2]>n[2]);G(J,!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==Yt(j))return;G(j,Ft.currentIndex,!0)}lt(Yt(j)),w.dispatch("gallery-show",Yt(j)),S&&G(et,(Yt(j)-N)/W*360)}const st="requestIdleCallback"in self?S?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)),I&&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(M){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((()=>g.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=Yt(pt))?void 0:e.childNodes[t];return i?-2+i.offsetLeft+i.offsetWidth/2:0}let vt,pt=Y(void 0),gt=Y(0);const ft=K((()=>!Yt(pt)||Yt(Z)?Yt(gt):mt(Yt(j))));let wt=!1;function bt(t){t.preventDefault(),t.stopPropagation(),Yt(Z)||(wt="button"in t)&&0!=t.button||!Yt(pt)||(vt=Yt(pt).getClientRects()[0],p.keepRendering=G(Z,!0),G(xt,-1),window.addEventListener(wt?"pointermove":"touchmove",kt),window.addEventListener(wt?"pointerup":"touchend",Et),kt(t))}function yt(t){const e=vt??Yt(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);G(gt,16+e*(vt.width-32)),i!=Yt(j)&&rt(i,!0)}let Tt,_t,xt=Y(-1);function Et(){window.removeEventListener(wt?"pointermove":"touchmove",kt),window.removeEventListener(wt?"pointerup":"touchend",Et),G(Z,p.keepRendering=!1,!0),rt(Yt(j))}function St(){H&&(_t=Tt=Yt(j),G(J,H,!0),ht(B[Yt(j)],!1))}function $t(t){const e=t.detail;"panend"!=t.type||e?rt(_t!=Yt(j)?_t:Yt(j)+(Tt==Yt(j)&&Yt(J)&&e?Math.round(Math.min(1,Math.max(-1,-e.movedX/e.duration))):0)):G(J,!1)}function At(t){if(!t)return;const e=Br.toCenterJSON(t),i=e.centerX,r=B.map(((t,r)=>(1-Math.min(Math.abs(i-t[0]),Math.abs(i-t[2])))*Math.max(0,(Math.min(i+e.width/2,t[2])-Math.max(i-e.width/2,t[0]))/(t[2]-t[0]))*(1-.1*Math.abs(Yt(j)-r))));g.setFocus(y.ptr,B[_t=r.every((t=>!t))?Yt(j):r.indexOf(Math.max(...r))],Yt(J)),H=x.isZoomedOut()}let Mt=0,It=[0,0,0,0];function Lt(t){t.stopPropagation(),t.preventDefault(),0==t.button&&(G(Z,!0),It=[t.clientX,t.clientY,Yt(j),Mt],window.addEventListener("pointermove",Ot),window.addEventListener("pointerup",Rt))}const Pt=m().length,Ct=1;function Ot(t){Mt=Math.max(0,Math.min(Ct-1,It[3]+Math.round((It[1]-t.clientY)/360*Ct)));let e=(It[2]+Math.round((It[0]-t.clientX)/360*Pt))%Pt;for(;e<0;)e+=Pt;rt(Mt*Pt+e)}function Rt(){removeEventListener("pointermove",Ot),removeEventListener("pointerup",Rt),G(Z,!1)}let Dt=-1;const zt=()=>{X.length&&y.data.update((t=>{t||(t={}),t.pages||(t.pages=[]);const e={id:"_omni-layers",i18n:X[d()].i18n,icon:ln,children:X.map(((t,e)=>({id:"omni-layer-"+e,i18n:t.i18n,action:()=>{T.set(e),lt(Yt(j))}}))).filter((t=>t.id!="omni-layer-"+d()))};return Dt>=0&&Dt<t.pages.length?t.pages.splice(Dt,1,e):t.pages.push(e),Dt=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 Yt(j)},info:y.$settings.album,prev:()=>rt(Yt(j)-1),next:()=>rt(Yt(j)+1),goto:rt},ji((()=>{Promise.all(m().map((t=>("state"in t&&!("image"in t)&&(t.camera=y.camera),g.addEmbed(t,y,{opacity:0,asImage:"camera"in t}))))).then((()=>{g.setActiveImage(y.ptr,U),rt(U,!1,0),G(Z,!1)})),S&&F>1&&zt(),G(Q,!1),p.goto=rt;const t=[],e=[];return S&&t.push(y.state.layer.subscribe(zt)),$&&(Ft=y.swiper=new co(p,W,rt,{continuous:M,coverLimit:D})),e.push((()=>{p.canvas.element.removeEventListener("pointermove",Ut),p.canvas.element.removeEventListener("pointerdown",Ut)})),S||C||$||(p.canvas.element.addEventListener("pointermove",Ut),p.canvas.element.addEventListener("pointerdown",Ut),Ut()),A&&t.push(y.state.view.subscribe((()=>{H=x.isZoomedOut()}))),A||$||m().length<=1||(C||G(gt,mt(U),!0),t.push(y.state.view.subscribe(At)),p.addEventListener("panstart",St),p.addEventListener("panend",$t),p.addEventListener("pinchend",$t),e.push((()=>{p.removeEventListener("panstart",St),p.removeEventListener("panend",$t),p.removeEventListener("pinchend",$t)}))),S&&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();S&&p.removeEventListener("move",nt)}}));var Bt=je();Fe("keydown",it,(function(t){var e;if(!(null==(e=u().omni)?void 0:e.noKeys)){switch(t.key){case"PageUp":case"ArrowLeft":rt(Yt(j)-(S?-1:1),!0);break;case"PageDown":case"ArrowRight":rt(Yt(j)+(S?-1:1),!0);break;case"ArrowUp":C&&rt(Yt(j)+Pt);break;case"ArrowDown":C&&rt(Yt(j)-Pt);break;case"Home":rt(0);break;case"End":rt(W);break;default:return}Ut()}}));var qt=ut(Bt),Wt=t=>{var e=je(),i=ut(e),r=t=>{var e=vo();let i;se((t=>i=fi(e,1,"angular micrio-gallery",null,i,t)),[()=>({dragging:Yt(Z)})]),Fe("pointerdown",e,Lt,!0),Ge(t,e)},n=(t,e)=>{var i=t=>{const e=K((()=>{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=Y(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)/(Yt(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)}const u=K((()=>{var t;return-e.currentRotation/360*((null==(t=Yt(s))?void 0:t.offsetWidth)??0)}));var d=ho(),h=ct(d),m=t=>{var i=uo(),r=ct(i);se((t=>Je(r,`${t??""}º`)),[()=>Math.round(10*e.currentRotation)/10]),Ge(t,i)};ei(h,(t=>{e.degrees&&t(m)})),qi(d,(t=>G(s,t)),(()=>Yt(s))),se((()=>bi(d,`--micrio-dial-offset:${Yt(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),Ge(t,d),_e()}(t,{get currentRotation(){return Yt(et)},frames:W,get degrees(){return Yt(e)},onturn:t=>rt(t)})},r=(t,e)=>{var i=t=>{var e=go();let i;var r=ct(e);const n=K((()=>0==Yt(j)));Wn(r,{type:"arrow-left",get title(){return h().galleryPrev},className:"gallery-btn",onpointerdown:()=>rt(Yt(j)-1),get disabled(){return Yt(n)}});var s=dt(r,2);s.__pointermove=[mo,Z,xt,yt];var o=ct(s);ri(o,17,(()=>B),ii,((t,e,i)=>{var r=po();let n;var s=ct(r);s.__click=()=>rt(i,!0),se((t=>n=fi(r,1,"micrio-gallery",null,n,t)),[()=>({active:i==Yt(j),hover:i==Yt(xt)})]),Fe("keypress",s,(t=>{"Enter"===t.key&&rt(i,!0)})),Ge(t,r)}));var a=dt(o,2);let c;qi(s,(t=>G(pt,t)),(()=>Yt(pt)));var u=dt(s,2);const d=K((()=>Yt(j)==m().length-1));Wn(u,{type:"arrow-right",get title(){return h().galleryNext},className:"gallery-btn",onpointerdown:()=>rt(Yt(j)+1),get disabled(){return Yt(d)}}),se(((t,r)=>{i=fi(e,1,"micrio-gallery",null,i,t),bi(a,`left: ${Yt(ft)}px`),c=fi(a,1,"micrio-gallery",null,c,r)}),[()=>({hidden:Yt(Q)||er(Vt,"$hidden",l)&&!Yt(Z)&&!Yt(J)}),()=>({dragging:Yt(Z)})]),Fe("pointerleave",s,(()=>G(xt,-1))),Fe("pointerdown",a,bt,!0),Fe("touchstart",a,bt,!0,!0),Ge(t,e)};ei(t,(t=>{!$&&m().length>1&&t(i)}),e)};ei(t,(t=>{P&&!P.noDial&&S?t(i):t(r,!1)}),e)};ei(i,(t=>{C?t(r):t(n,!1)})),Ge(t,e)};ei(qt,(t=>{z||t(Wt)})),Ge(t,Bt),_e(),c()}let wo;Ve(["pointermove","click"]);const bo={},yo=Ji();let ko,To;const _o=Ji(!1);function xo(t,e,i){To&&(To.setPosition?To.setPosition(t,e,i):"positionX"in To&&(To.positionX.value=t,To.positionY.value=e,To.positionZ.value=i))}function Eo(t,e,i){To&&(To.setOrientation?To.setOrientation(t,e,i,0,1,0):"forwardX"in To&&(To.forwardX.value=t,To.forwardY.value=e,To.forwardZ.value=i))}function So(t,e){Te(e,!0);const[i,r]=rr();let n=ar(e,"volume",3,1);const{events:s,current:o}=ye("micrio"),a=er(o,"$current",i),l=a.$info,c=l.height/l.width,u="AudioContext"in window||"webkitAudioContext"in window;const d=()=>_o.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=pr.iOS?0:1e-4,u&&ji((()=>{let t,i;return i=_o.subscribe((r=>{var o;r&&(ko||(!function(t){if(!wo){if(ko||(ko="micrioAudioContext"in window?window.micrioAudioContext:"AudioContext"in window?new window.AudioContext:"webkitAudioContext"in window?new window.webkitAudioContext:null),!ko)return console.warn("[Micrio] Your browser does not support the Web Audio API");wo=ko.createGain(),wo.connect(ko.destination),wo.gain.value=t,yo.set(ko),To=ko.listener,"upX"in To&&(To.upX.value=0,To.upY.value=1,To.upZ.value=0)}}(n()),s.dispatch("audio-init")),ko&&(null==(o=e.data.markers)?void 0:o.filter((t=>!!t.positionalAudio)).length)&&(t=a.state.view.subscribe((t=>{if(!t)return;const i=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;xo(n,s,o);let a=n*n+s*s+o*o;a>0&&(a=1/Math.sqrt(a)),Eo(n*a,s*a,o*a)}else xo(2*(t-.5),2*(.5-i)*c,r),Eo(0,0,-1)}(t[0]+t[2]/2,t[1]+t[3]/2,i*(e.is360?1:1.5))}))),i&&(i(),i=null))})),ko||h.play().then(d).catch((()=>{s.dispatch("autoplay-blocked"),addEventListener("pointerup",d,{once:!0})})),()=>{t&&t(),i&&i(),removeEventListener("pointerup",d)}})),ee((()=>{wo&&(wo.gain.value=n())}));var m=je(),v=ut(m),p=t=>{const i=K((()=>n()*(e.data.music.volume??1)));!function(t,e){Te(e,!0);let i=ar(e,"loop",3,!0),r=ar(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()}ji((()=>(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 Yt(i)}})};ei(v,(t=>{var r;er(_o,"$interacted",i)&&er(yo,"$ctx",i)&&(null==(r=e.data.music)?void 0:r.items.length)&&t(p)})),Ge(t,m),_e(),r()}var $o=We('<cite class="micrio-details"> </cite>'),Ao=We('<small class="micrio-details"> </small>'),Mo=We('<summary class="micrio-details"><!> <!></summary>'),Io=We('<p class="micrio-details"><a rel="noopener noreferrer" target="_blank"> </a></p>'),Lo=We("<details><!> <!> <!> <!></details>");function Po(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(a,"$current",i),s=()=>er(e.data,"$data",i),{_lang:o,current:a}=ye("micrio");let l=Y(!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}const u=K((()=>{var t;return null==(t=n())?void 0:t.$settings.cmWidth})),d=K((()=>{var t;return null==(t=n())?void 0:t.$settings.cmHeight})),h=K((()=>{var t;return s()?(null==(t=s())?void 0:t.i18n)?s().i18n[er(o,"$_lang",i)]:s():void 0})),m=K((()=>{var t,r;return(null==(t=Yt(h))?void 0:t.title)??(null==(r=er(e.info,"$info",i))?void 0:r.title)??""})),v=K((()=>{var t;return null==(t=Yt(h))?void 0:t.description})),p=K((()=>{var t;return null==(t=Yt(h))?void 0:t.sourceUrl})),g=K((()=>{var t;return null==(t=Yt(h))?void 0:t.copyright})),f=K((()=>Yt(u)&&Yt(d)?c(Yt(u))+" x "+c(Yt(d)):null));let w=Y(void 0);ji((()=>{Yt(w).ontoggle=()=>{G(l,Yt(w).open,!0)}}));var b=je(),y=ut(b),k=t=>{var e=Lo();let r;var n=ct(e),s=t=>{var e=Mo(),i=ct(e),r=t=>{var e=$o(),i=ct(e);se((()=>Je(i,Yt(m)))),Ge(t,e)};ei(i,(t=>{Yt(m)&&t(r)}));var n=dt(i,2),s=t=>{var e=Ao(),i=ct(e);se((()=>Je(i,Yt(f)))),Ge(t,e)};ei(n,(t=>{Yt(f)&&t(s)})),Ge(t,e)};ei(n,(t=>{(Yt(m)||Yt(f))&&t(s)}));var o=dt(n,2),a=t=>{var e=je();li(ut(e),(()=>Yt(v))),Ge(t,e)};ei(o,(t=>{Yt(v)&&t(a)}));var c=dt(o,2),u=t=>{var e=Io(),i=ct(e),r=ct(i);se((()=>{Ei(i,"href",Yt(p)),Je(r,Yt(g)||Yt(p))})),Ge(t,e)};ei(c,(t=>{Yt(p)&&t(u)}));var d=dt(c,2),h=t=>{Wn(t,{type:"close",get title(){return er(Qr,"$i18n",i).close},onclick:()=>Yt(w).open=!1})};ei(d,(t=>{Yt(l)&&t(h)})),qi(e,(t=>G(w,t)),(()=>Yt(w))),se((t=>r=fi(e,1,"micrio-details",null,r,t)),[()=>({opened:Yt(l)})]),zi(3,e,(()=>Yr),(()=>({duration:200}))),Ge(t,e)};ei(y,(t=>{(Yt(m)||Yt(v)||Yt(p))&&t(k)})),Ge(t,b),_e(),r()}var Co=We('<div class="micrio-error"><!> </div>');var Oo=We("<figcaption><!></figcaption>"),Ro=We("<figure><micr-io></micr-io> <!></figure>",2);function Do(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(l,"$current",i);let s=ar(e,"startId",3,void 0);const o=ye("micrio"),{_lang:a,current:l}=o;let c=Y(void 0),u=Y(0);const d=K((()=>e.gallery[Yt(u)])),h=K((()=>{var t,e,r;return(null==(r=null==(e=null==(t=Yt(d))?void 0:t.i18n)?void 0:e[er(a,"$_lang",i)])?void 0:r.description)??void 0}));Gi((()=>{var t;return null==(t=Yt(c))?void 0:t.destroy()}));var m=Ro(),v=ct(m);se((()=>Si(v,"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((()=>Si(v,"data-start",s()))),se((()=>Si(v,"data-path",n()&&n().$info&&n().$info.path))),Si(v,"data-logo","false"),fi(v,1,"micrio-micrio-gallery"),qi(v,(t=>G(c,t)),(()=>Yt(c)));var p=dt(v,2),g=t=>{var e=Oo();li(ct(e),(()=>Yt(h))),Ge(t,e)};ei(p,(t=>{Yt(h)&&t(g)})),Fe("gallery-show",v,(t=>{G(u,t.detail,!0)})),Ge(t,m),_e(),r()}var zo=We("<!> <!>",1),No=We("<aside><!> <!></aside>"),Fo=We("<!> <!>",1),Vo=We('<menu class="micrio-popover"></menu>'),Uo=We('<h2 class="micrio-popover"> </h2>'),Bo=We('<img alt="">'),qo=We("<!> <!> <!> <!>",1),Wo=We('<menu class="right micrio-popover"></menu>'),Xo=We("<!> <!> <!>",1),Yo=We("<dialog><!> <!></dialog>");function jo(t,e){var i;Te(e,!0);const[r,n]=rr(),s=()=>er(d,"$current",r),o=()=>er(h,"$_lang",r),a=()=>er(Qr,"$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=Yt(b))||t.close()}const g=Ji(!1);let f=Y(!0),w=o(),b=Y(void 0);ji((()=>{Yt(b).showModal(),Xt().then((()=>{const t=Yt(b).querySelector("button.active")??Yt(b).querySelector("button");null==t||t.focus()}));const t=h.subscribe((t=>{t&&t!=w&&(G(f,!1),w=t,setTimeout((()=>G(f,!0)),200))}));return()=>{t()}}));const y=K((()=>e.popover.marker)),k=K((()=>Yt(y)?Yt(y).i18n?Yt(y).i18n[o()]:Yt(y):void 0)),T=K((()=>e.popover.markerTour)),_=K((()=>e.popover.contentPage)),x=K((()=>{var t;return Yt(_)?(null==(t=Yt(_).i18n)?void 0:t[o()])??Yt(_):void 0})),E=K((()=>{var t,e;return Yt(_)&&Yt(x)&&!(null==(e=null==(t=Yt(_))?void 0:t.buttons)?void 0:e.length)?!(!Yt(x).embed||Yt(x).content&&!(Yt(x).content.length<250)||Yt(_).image):void 0})),S=K((()=>{var t;return(null==(t=Yt(_))?void 0:t.image)?"string"==typeof Yt(_).image?Yt(_).image:Yt(_).image.src:void 0})),$=K((()=>{var t;return!!(null==(t=Yt(x))?void 0:t.embed)||!!Yt(S)})),A=K((()=>{var t,e;return!!(null==(e=null==(t=Yt(_))?void 0:t.buttons)?void 0:e.find((t=>"close"==t.type)))})),M=K((()=>{var t;return!!(null==(t=e.popover.marker)?void 0:t.images)&&e.popover.marker.images.length>0})),I=K((()=>!(!Yt(k)||!Yt(k).body)||Yt(M))),L=K((()=>{var t;return Yt(k)&&Yt(k).body||Yt(M)&&(null==(t=Yt(x))?void 0:t.embed)})),P=K((()=>!Yt(A)||Yt(T)&&null!=Yt(T).currentStep));var C=Yo();let O;var R=ct(C),D=t=>{var e=No();let i;var r=ct(e),n=t=>{Wn(t,{type:"close",get title(){return a().close},className:"close-popover",onclick:p})};ei(r,(t=>{Yt(A)||t(n)}));var s=dt(r,2),o=t=>{var e=zo(),i=ut(e),r=t=>{Wn(t,{type:"arrow-left",get title(){return a().tourStepPrev},className:"prev-tour-step",onclick:()=>Yt(T)&&Yt(T).prev&&Yt(T).prev()})};ei(i,(t=>{Yt(T).currentStep>0&&t(r)}));var n=dt(i,2),s=t=>{Wn(t,{type:"arrow-right",get title(){return a().tourStepNext},className:"next-tour-step",onclick:()=>Yt(T)&&Yt(T).next&&Yt(T).next()})};ei(n,(t=>{Yt(T).currentStep<Yt(T).steps.length-1&&t(s)})),Ge(t,e)};ei(s,(t=>{Yt(T)&&null!=Yt(T).currentStep&&t(o)})),se((t=>i=fi(e,1,"micrio-popover",null,i,t)),[()=>{var t;return{inside:Yt(_)?!Yt(E):!Yt(I)&&!(null==(t=Yt(k))?void 0:t.embedUrl)}}]),Ge(t,e)};ei(R,(t=>{Yt(P)&&t(D)}));var z=dt(R,2),N=t=>{var e=Fo(),i=ut(e),r=t=>{zs(t,{get src(){return Yt(k).embedUrl},get uuid(){return Yt(y).id},get figcaption(){return Yt(k).embedDescription},controls:!0,get autoplay(){return Yt(y).embedAutoPlay}})},n=(t,e)=>{var i=t=>{Do(t,{get gallery(){return Yt(y).images}})};ei(t,(t=>{Yt(y).images&&Yt(y).images.length&&t(i)}),e)};ei(i,(t=>{Yt(k)&&Yt(k).embedUrl?t(r):t(n,!1)}));var s=dt(i,2),o=t=>{const e=K((()=>!Yt(k)||!Yt(k).embedUrl));js(t,{get marker(){return Yt(y)},noEmbed:!0,noGallery:!0,get noImages(){return Yt(e)},onclose:p})};ei(s,(t=>{Yt(L)&&t(o)})),Ge(t,e)},F=(t,i)=>{var r=t=>{Do(t,{get gallery(){return e.popover.gallery},get startId(){return e.popover.galleryStart}})},n=(t,e)=>{var i=t=>{var e=Xo(),i=ut(e),r=t=>{var e=Vo();ri(e,21,(()=>v),ii,((t,e)=>{const i=K((()=>(null==Zn?void 0:Zn.of(Yt(e)))??Yt(e))),r=K((()=>Yt(e)==o()));Wn(t,{onclick:()=>l.lang=Yt(e),get title(){return Yt(i)},get active(){return Yt(r)},children:(t,i)=>{var r=Ye();se((t=>Je(r,t)),[()=>Yt(e).toUpperCase()]),Ge(t,r)},$$slots:{default:!0}})})),Ge(t,e)};ei(i,(t=>{v.length>1&&t(r)}));var n=dt(i,2),a=t=>{var e=je(),i=ut(e),r=t=>{zs(t,{get src(){return Yt(x).embed},get figcaption(){return Yt(x).content},controls:!0,autoplay:!0})};ei(i,(t=>{Yt(f)&&t(r)})),Ge(t,e)},c=t=>{Vs(t,{children:(t,e)=>{var i=qo(),r=ut(i),n=t=>{var e=Uo(),i=ct(e);se((()=>Je(i,Yt(x).title))),Ge(t,e)};ei(r,(t=>{Yt(x).title&&t(n)}));var s=dt(r,2),o=t=>{zs(t,{get src(){return Yt(x).embed},controls:!0})};ei(s,(t=>{Yt(x).embed&&Yt(f)&&t(o)}));var a=dt(s,2),l=t=>{var e=Bo();se((()=>Ei(e,"src",Yt(S)))),Ge(t,e)};ei(a,(t=>{Yt(S)&&t(l)}));var c=dt(a,2),u=t=>{var e=je();li(ut(e),(()=>Yt(x).content)),Ge(t,e)};ei(c,(t=>{Yt(x).content&&t(u)})),Ge(t,i)},$$slots:{default:!0}})};ei(n,(t=>{Yt(E)?t(a):t(c,!1)}));var u=dt(n,2),d=t=>{var e=Wo();ri(e,21,(()=>Yt(_).buttons),ii,((t,e)=>{const i=K((()=>"link"==Yt(e).type?Yt(e).action:void 0));Wn(t,{get href(){return Yt(i)},get blankTarget(){return Yt(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)}(Yt(e)),children:(t,i)=>{var r=Ye();se((()=>Je(r,Yt(e).i18nTitle[o()]))),Ge(t,r)},$$slots:{default:!0}})})),Ge(t,e)};ei(u,(t=>{Yt(_).buttons&&Yt(_).buttons.length&&t(d)})),Ge(t,e)};ei(t,(t=>{Yt(_)&&Yt(x)&&t(i)}),e)};ei(t,(t=>{e.popover.gallery?t(r):t(n,!1)}),i)};ei(z,(t=>{Yt(y)?t(N):t(F,!1)})),qi(C,(t=>G(b,t)),(()=>Yt(b))),se((t=>O=fi(C,1,"micrio-popover",null,O,t)),[()=>({page:!!Yt(_),article:!!Yt(_)&&!Yt(E),"has-media":Yt($)})]),Fe("close",C,(function(){var t;e.popover.contentPage?c.dispatch("page-closed"):Yt(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,(()=>g.set(!0))),Ge(t,C),_e(),n()}function Go(t,e){Te(e,!0);const i=K((()=>e.marker.positionalAudio)),r=e.ctx.createGain();r.connect(wo);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=Yt(i).volume??1,e.is360){l.refDistance=2.75*Yt(i).radius,l.maxDistance=Yt(i).radius*(11/3);const t=e.marker.x*-Math.PI*2,r=(e.marker.y-.5)*-Math.PI,n=Math.cos(r)*Math.sin(t)*11,s=11*Math.sin(r),o=Math.cos(r)*Math.cos(t)*11;l.positionX.value=n,l.positionY.value=s,l.positionZ.value=o;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=Yt(i).radius*Yt(i).radius*10,l.maxDistance=5*Yt(i).radius}let u,d;function h(){u&&u.disconnect(),u=e.ctx.createBufferSource(),Yt(i).loop&&(Yt(i).repeatAfter>0?u.onended=()=>{d=setTimeout(h,1e3*Yt(i).repeatAfter)}:u.loop=!0),r.gain.value=Yt(i).volume??1,u.buffer=bo[Yt(i).src],u.connect(l),u.start()}let m=Y(B(JSON.stringify(e.marker.positionalAudio)));ee((()=>{const t=JSON.stringify(Yt(i));Yt(m)!=t&&G(m,t,!0)&&c()})),ji((()=>(c(),l.connect(r),async function(){Yt(i).src&&(bo[Yt(i).src]||(bo[Yt(i).src]=await fetch(Yt(i).src).then((t=>t.arrayBuffer())).then((t=>e.ctx.decodeAudioData(t)))),Yt(i).alwaysPlay&&Yt(i).repeatAfter>0?d=setTimeout(h,1e3*Yt(i).repeatAfter):h())}(),n.addEventListener("audio-update",c),()=>{n.removeEventListener("audio-update",c),u&&u.disconnect(),clearTimeout(d),l.disconnect(),r.disconnect()}))),_e()}function Ho(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();o().camera.flyToView(i().view,{area:null==(l=o().opts)?void 0:l.area,limitZoom:!0,margin:[20/n().$info.width*t,20/n().$info.height*t]})}}else o().state.marker.set(i())}var Zo=We('<img alt="" class="micrio-marker">'),Jo=We('<label data-scroll-through=""> </label>'),Ko=We('<button data-scroll-through="" class="micrio-marker"><!> <!></button>'),Qo=We("<div><!></div>"),ta=We("<!> <!>",1);function ea(t,e){var i,r,n,s,o,a,l,c,u,d,h,m,v;Te(e,!0);const[p,g]=rr(),f=()=>er(x,"$current",p),w=()=>er(O,"$tour",p),b=()=>er(C,"$currentPopup",p),y=()=>er($,"$_lang",p),k=()=>er(M,"$isMobile",p),T=()=>er(yo,"$ctx",p),_=ye("micrio"),{current:x,events:E,state:S,_lang:$,spaceData:A}=_,M=_.canvas.isMobile,I=S.markerHoverId,L=ye("inView"),P=ye("markerImages"),C=_.state.popup,O=S.tour;let R=ar(e,"marker",15),D=ar(e,"image",31,(()=>B(f()))),z=ar(e,"forceHidden",3,!1),N=ar(e,"coords",3,void 0),F=ar(e,"overlapped",3,!1);R().tags||R(R().tags=[],!0);const V=P.has(R().id);!V&&D()&&P.set(R().id,D());const U=!(!D().isOmni||!(null==(i=D().$settings.omni)?void 0:i.sideLabels)||(null==(r=D().$settings._markers)?void 0:r.noTitles)),q=t=>t.steps.findIndex((t=>t.startsWith(R().id)))>=0,W=R().data??{},X=W._meta||{},j=D().$settings.omni;R().imageLayer&&R().imageLayer>((null==(n=null==j?void 0:j.layers)?void 0:n.length)??1)-1&&delete R().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)==R().id&&"none"!=t.popupType})))&&(R(R().popupType="none",!0),R(R().noMarker=!0,!0)),"embedUrl"in R()&&R().embedUrl&&"embedInPopover"in R()&&R().embedInPopover&&R(R().popupType="popover",!0);const H=D().$settings._markers??{},Z=!!D().$settings.doTourJumps,J=R().tags.join(" "),Q="cluster"==R().type,tt=!1===(null==(l=R().data)?void 0:l.showTitle)||!!H.noTitles||!!(null==j?void 0:j.sideLabels),et=!!W.scales||!!D().$settings.markersScale,it=et&&!!H.titlesNoScale,rt=W._micrioSplitLink,nt=!!H.keepPopupsDuringTourTransitions,st=/[?&]micrioNoTooltips/.test(location.search)||!!(null==j?void 0:j.sideLabels),ot=X.gridAction,at=(null==(u=null==(c=D().$settings)?void 0:c._markers)?void 0:u.autoStartTour)?_.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(q):void 0})).filter((t=>!!t))[0]??(null==(d=null==A?void 0:A.markerTours)?void 0:d.find(q)):void 0,lt=null==at?void 0:at.steps.findIndex((t=>t.startsWith(R().id))),ht=!!(null==(m=null==(h=D().$settings)?void 0:h._markers)?void 0:m.autoStartTourAtBeginning);let mt=!V&&(!!W.alwaysOpen||S.$marker==R())||(null==(v=S.$tour)?void 0:v.id)==(null==at?void 0:at.id)&&(null==at?void 0:at.currentStep)==(lt??0);const vt=V&&D().state.$marker==R();let pt,gt,ft,wt=Y(B(vt)),bt=Y(B(vt)),yt=Y(!1),kt=Y(""),Tt=Y(0),_t=Y(0),xt=Y(1),Et=!1;function St(){var t,e;H.noMarkerActions||(null==(e=null==(t=Yt(Ft))?void 0:t.parentNode)||e.scrollTo(0,0),$t(),ft=setTimeout((()=>{const t=D().camera.getXY(R().x,R().y);!Yt(wt)&&(t[0]<0||t[0]>=_.offsetWidth||t[1]<0||t[1]>=_.offsetHeight||D().is360&&t[3]>4)&&D().camera.flyToCoo([R().x,R().y],{speed:2,limit:!0}).catch((()=>{}))}),150))}function $t(){clearTimeout(ft)}const At=()=>I.set(R().id),Mt=()=>I.set(void 0);let It;async function Lt(){var t,e,i,r,n;if(Q)return;if(D().state.$marker!=R())return D().state.marker.set(R());if(H.noMarkerActions)return;if(at&&at.id!=(null==(t=w())?void 0:t.id)){at.initialStep=ht?0:lt;const t=null==(e=at.stepInfo)?void 0:e[0];if(ht&&t&&t.micrioId!=D().id){const e=null==(i=_.canvases[0])?void 0:i.grid;(null==e?void 0:e.images.find((e=>e.id==t.micrioId)))?_.current.set(e.image):_.open(t.micrioId)}if(O.set(at),setTimeout((()=>X.gridAction=ot),100),ht&&null!=lt&&lt>0)return void D().state.marker.set(void 0);await Xt()}mt=!1,G(bt,!0),E.dispatch("marker-opened",R());const s=w()&&"steps"in w()&&w().isSerialTour&&w().printChapters&&w().steps.findIndex((t=>t.startsWith(R().id)))>=0&&R().videoTour;var o;s||(Yt(jt)?"popover"==R().popupType?(await Xt(),_.state.popover.set({marker:R(),image:D(),markerTour:w()&&"steps"in w()?w():void 0})):R().videoTour&&!w()&&(O.set(R().videoTour),(o=O,new Promise((t=>{let e;e=o.subscribe((i=>{null==i&&(e?e():Xt().then((()=>e())),t(i))}))}))).then((()=>D().state.marker.set(void 0)))):Xt().then((()=>C.set(R()))));const a=null==(r=W.micrioLink)?void 0:r.id;if(a&&Xt().then((()=>{D().camera.stop();const t=Vr(_,a);t&&(D(D().openedView=void 0,!0),D().state.marker.set(void 0)),_.open(a,{vector:null==t?void 0:t.vector})})),rt&&!Et&&!D().opts.secondaryTo){const t=null==(n=_.canvases[0])?void 0:n.grid;(null==t?void 0:t.lastPromise)&&await t.lastPromise,It=setTimeout((()=>{rt&&(gt=_.open(rt.micrioId,{splitScreen:!0,splitTo:D(),isPassive:!(!rt.follows||_.state.$tour),startView:rt.view}),Et=!0)}),200)}}let Pt,Ct,Ot=Y(!1);function Rt(){var t,e,i,r,n,s;if(D().is360&&et)G(kt,D().camera.getMatrix(R().x,R().y,1,1,0,0,0).join(","),!0);else{let o=Yt(Tt),a=Yt(_t);if(s=D().camera.getXYDirect(R().x,R().y,{radius:R().radius,rotation:R().rotation}),G(Tt,s[0],!0),G(_t,s[1],!0),G(xt,s[2],!0),pt=s[3],D().is360)G(yt,pt>0);else if(D().isOmni&&j){if(null!=Yt(Ht)[0]&&null!=Yt(Ht)[1]&&null!=R().rotation){const i=j.frames/((null==(t=j.layers)?void 0:t.length)??1);let r=((null==(e=D().swiper)?void 0:e.currentIndex)??0)-(Yt(Gt)??0);r>i/2&&(r-=i),r<-i/2&&(r+=i),G(yt,r<=Yt(Ht)[0]||r>=Yt(Ht)[1],!0)}else j.distance&&G(yt,pt<0);j.sideLabels&&!H.noTitles&&(null==(i=Yt(Bt))?void 0:i.title)&&L&&(o!=Yt(Tt)||a!=Yt(_t))&&function(t,e){const i=_.canvas.element.offsetWidth,r=_.canvas.element.offsetHeight,n=!(t<0||t>i||e<0||e>r||Yt(yt));(n||Yt(Ot))&&L.update((r=>{const s=r.findIndex((([t])=>t==R()));return n?s>=0?r[s]=[R(),t/i,e]:r.push([R(),t/i,e]):s>=0&&r.splice(s,1),G(Ot,n,!0),r}))}(Yt(Tt),Yt(_t))}D().$settings.clusterMarkers&&N()&&N().set(R().id,[Yt(Tt),Yt(_t),F()?Pt:Pt=null==(r=Yt(Vt))?void 0:r.offsetWidth,F()?Ct:Ct=null==(n=Yt(Vt))?void 0:n.offsetHeight])}}function Dt(t){const e=t.detail;R(R().x=e.x,!0),R(R().y=e.y,!0),Rt()}function zt(t,e){return t.addEventListener("change",e),{destroy:()=>t.removeEventListener("change",e)}}let Nt=Y(void 0),Ft=Y(void 0),Vt=Y(void 0);const Ut=ye("mediaPaused");ji((()=>{var t,e;if(R().videoTour){const i="timeline"in R().videoTour?R().videoTour.timeline:null==(e=null==(t=R().videoTour.i18n)?void 0:t[y()])?void 0:e.timeline;(null==i?void 0:i.length)&&R(R().view=i[0].rect,!0)}const i=[D().state.marker.subscribe((t=>{"string"==typeof t&&t==R().id?D().state.marker.set(R()):t==R()?async function(){var t,e;if(Yt(wt))return;if(G(wt,!0),$t(),H.noMarkerActions)return;E.dispatch("marker-open",R()),!w()||"steps"in w()&&(q(w())||w().cannotClose)||(O.set(void 0),await Xt());const i=w()&&"steps"in w();Yt(jt)||i&&nt||(C.set(void 0),_.state.popover.set(void 0)),Mt(),(null==rt?void 0:rt.markerId)&&(gt||(gt=_.canvases.find((t=>t.id==rt.micrioId))),gt&&(Et=Ki(gt.visible),Et&&(null==rt?void 0:rt.view)&&gt.camera.flyToView(rt.view,{isJump:!0}).catch((()=>{})))),void 0!==R().imageLayer&&D().state.layer.set(R().imageLayer);const r=at&&ht&&at!=w()&&null!=lt&&lt>0;r&&delete X.gridAction;const n=R().view;r||!n||W.noAnimate||R().videoTour||X.gridView?Lt():mt?(D().camera.setView(R().view,{area:null==(t=D().opts)?void 0:t.area}),Lt()):D().camera.flyToView(R().view,{omniIndex:Yt(Gt),noTrueNorth:!0,area:null==(e=D().opts)?void 0:e.area,isJump:!!W.doJump||Z&&!!S.$tour}).then(Lt).catch((()=>{w()||D().state.marker.set(void 0)}))}():W.alwaysOpen||(Yt(wt)&&function(){var t;if(clearTimeout(It),E.dispatch("marker-closed",R()),R().videoTour&&D().openedView?setTimeout((()=>D().camera.aniDoneAdd.push((()=>{var t;return null==(t=Yt(Nt))?void 0:t.focus()}))),10):null==(t=Yt(Nt))||t.focus(),_.state.popover.set(void 0),!Yt(jt)){const t=w()&&"steps"in w();b()!=R()||t&&nt||C.set(void 0);const e=_.canvases.find((t=>t!=D()&&t.state.$marker));e&&Xt().then((()=>{const t=e.state.$marker;t&&"popup"==t.popupType&&C.set(t)}))}rt&&gt&&setTimeout((()=>{var t,e;const i=Ki(_.state.marker);gt&&rt.micrioId!=(null==(e=null==(t=null==i?void 0:i.data)?void 0:t._micrioSplitLink)?void 0:e.micrioId)&&_.close(gt)}),210)}(),G(wt,G(bt,!1),!0))}))];return Yt(Wt)||(i.push(D().camera.image.state.view.subscribe(Rt)),Rt()),z()||Xt().then((()=>{Yt(wt)&&!R().noMarker&&b()&&b()!=R()&&!w()?D().state.marker.set(void 0):(mt||W.alwaysOpen)&&Lt()})),R().htmlElement&&Yt(Ft)&&Yt(Ft).appendChild(R().htmlElement),()=>{var t;for(clearTimeout(It);i.length;)null==(t=i.shift())||t()}}));const Bt=K((()=>R().i18n?R().i18n[y()]:R())),qt=K((()=>{var t,e,i,r;return!((null==(t=Yt(Bt))?void 0:t.title)||(null==(e=Yt(Bt))?void 0:e.body)||(null==(i=Yt(Bt))?void 0:i.bodySecondary)||(null==(r=Yt(Bt))?void 0:r.embedUrl)||R().images&&R().images.length)})),Wt=K((()=>z()||R().noMarker)),jt=K((()=>"popup"!=R().popupType||Yt(qt))),Gt=K((()=>D().camera.getOmniFrame((R().rotation??0)+(R().backside?Math.PI:0)))),Ht=K((()=>R().visibleArc?[D().camera.getOmniFrame(R().visibleArc[0]),D().camera.getOmniFrame(R().visibleArc[1])]:[])),Zt=K((()=>w()&&(!("steps"in w())&&!w().keepMarkers||H.hideMarkersDuringTour&&!er(Ut,"$tourPaused",p))&&!Yt(wt)));ee((()=>{Yt(Zt)&&Yt(Ot)&&L.update((t=>{const e=t.findIndex((t=>t[0]==R()));return e>=0&&t.splice(e,1),t}))}));const Jt=K((()=>"default"==R().type?void 0:"link"==R().type?"link":"media"==R().type?"play":"cluster"==R().type?void 0:R().type??void 0)),Kt=K((()=>{var t,e,i,r,n;return(null!=(null==(t=R().data)?void 0:t.customIconIdx)?null==(r=null==(e=D().$settings._markers)?void 0:e.customIcons)?void 0:r[null==(i=R().data)?void 0:i.customIconIdx]:void 0)??(null==(n=R().data)?void 0:n.icon)??H.markerIcon??void 0})),Qt=K((()=>!!Yt(Jt)||!!Yt(Kt))),te=K((()=>!("class"in R()&&""===R().class||!Yt(Qt)&&"default"!=R().type))),ie=K((()=>Yt(Bt)&&(!tt||k()&&U)&&(Yt(Bt).label||Yt(Bt).title)));var re=ta(),ne=ut(re),oe=t=>{var e=Qo();let i;var r=ct(e),n=t=>{var e=Ko();e.__click=[Ho,$t,R,H,f,x,D];var i=ct(e),r=t=>{var e=Zo();se((()=>Ei(e,"src","string"==typeof Yt(Kt)?Yt(Kt):Yt(Kt).src))),Ge(t,e)},n=(t,e)=>{var i=t=>{Cn(t,{get name(){return Yt(Jt)}})};ei(t,(t=>{Yt(Jt)&&t(i)}),e)};ei(i,(t=>{Yt(Kt)?t(r):t(n,!1)}));var s=dt(i,2),o=t=>{var e=Jo();fi(e,1,"micrio-marker",null,{},{static:it});var i=ct(e);qi(e,(t=>G(Vt,t)),(()=>Yt(Vt))),se((()=>{Ei(e,"for",R().id),Je(i,Yt(Bt).label||Yt(Bt).title)})),Ge(t,e)};ei(s,(t=>{Yt(ie)&&t(o)})),qi(e,(t=>G(Nt,t)),(()=>Yt(Nt))),se((()=>{Ei(e,"title",st||Q?null:Yt(Bt)?Yt(Bt).label||Yt(Bt).title:null),Ei(e,"id",R().id)})),Fe("focus",e,St),Fe("blur",e,$t),Fe("mouseenter",e,At),Fe("mouseleave",e,Mt),Ge(t,e)};ei(r,(t=>{R().htmlElement||t(n)})),qi(e,(t=>G(Ft,t)),(()=>Yt(Ft))),di(e,((t,e)=>null==zt?void 0:zt(t,e)),(()=>Dt)),se((t=>{Ei(e,"id",`m-${R().id}`),i=fi(e,1,mi(J),"micrio-marker",i,t),bi(e,Yt(kt)?`--mat:matrix3d(${Yt(kt)})`:Yt(Tt)?`--x:${Yt(Tt)}px;--y:${Yt(_t)}px${et?`;--scale:${Yt(xt)}`:""}`:null)}),[()=>({overlapped:F()&&!Yt(wt),cluster:Q,behind:Yt(yt),hovered:er(I,"$hovered",p)==R().id,default:Yt(te),mat3d:!!Yt(kt),opened:Yt(wt),"micrio-link":!!W.micrioLink,"has-icon":Yt(Qt),"has-custom-icon":!!Yt(Kt)})]),Ge(t,e)};ei(ne,(t=>{Yt(Wt)||!D()||Yt(Zt)||t(oe)}));var ae=dt(ne,2),le=t=>{Go(0,{get marker(){return R()},get ctx(){return T()},get is360(){return D().is360}})};ei(ae,(t=>{R().positionalAudio&&T()&&(!R().positionalAudio.noMobile||k())&&(R().positionalAudio.alwaysPlay||Yt(wt))&&t(le)})),Ge(t,re),_e(),g()}Ve(["click"]);var ia=We("<div><!></div>");function ra(t,e){var i,r;Te(e,!0);const[n,s]=rr(),o=()=>er(u,"$_lang",n);let a=ar(e,"settings",31,(()=>B({i18n:{}}))),l=ar(e,"image",15);const c=ye("micrio"),{_lang:u,spaceData:d}=c,h=l().$info,m=l().$settings,v=null==(i=Sr(e.targetId))?void 0:i[2],p=Vr(c,e.targetId);p||console.error(`[Micrio Waypoint] Could not calculate vector for target ${e.targetId}`);const{directionX:g,v:f,vN:w,vector:b}=p;let y=Y(void 0);const k=Math.abs(w[1])<.3,T=k?.65:.5+w[1]/10,_={x:g,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)??ur(_);let E,S=x.custom,$=S?x:_;function A(){var t;(null==(t=m._markers)?void 0:t.noMarkerActions)||(Yt(y).parentNode.scrollTo(0,0),clearTimeout(E),E=setTimeout((()=>{const t=l().camera.getXY($.x,$.y);!Yt(P)&&(t[0]<0||t[0]>=c.offsetWidth||t[1]<0||t[1]>=c.offsetHeight||l().is360&&t[3]>4)&&l().camera.flyToCoo([$.x,$.y],{speed:2,limit:!0}).catch((()=>{}))}),150))}let M=Y(""),I=a().customIconIdx;const L=()=>{R.deleted?G(O,!0):(I!=R.settings.customIconIdx&&(a(a().customIconIdx=R.settings.customIconIdx,!0),I=a().customIconIdx),x.custom!=S&&(S=x.custom,$=S?x:_),G(M,l().camera.getMatrix($.x,$.y,$.baseScale*$.scale,1,$.rotX,$.rotY,$.rotZ,0,1,1,!0).join(","),!0))};let P=Y(!1);function C(){var t;(null==(t=m._markers)?void 0:t.noMarkerActions)||(G(P,!0),l(l().openedView=void 0,!0),l().state.marker.set(void 0),c.open(e.targetId,{vector:b}))}let O=Y(!1);const R={coords:x,settings:a()};L(),ji((()=>{R.el=Yt(y),Yt(y)._iface=R,c.dispatchEvent(new CustomEvent("wp-print",{detail:R}));const t=l().state.view.subscribe(L);return()=>t()}));const D=K((()=>{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)})),z=K((()=>{var t;return null==(t=null==d?void 0:d.icons)?void 0:t[a().customIconIdx??-1]}));var N=je(),F=ut(N),V=t=>{var i=ia();let r;var s=ct(i);const o=K((()=>Yt(z)?void 0:"arrow-up")),a=K((()=>Yt(D)??er(Qr,"$i18n",n).waypointFollow));Wn(s,{get type(){return Yt(o)},get icon(){return Yt(z)},onclick:C,onfocus:A,get title(){return Yt(a)}}),qi(i,(t=>G(y,t)),(()=>Yt(y))),se((t=>{bi(i,`--matrix: matrix3d(${Yt(M)??""})`),Ei(i,"id",`w-${e.targetId}`),r=fi(i,1,"micrio-waypoint",null,r,t)}),[()=>({clicked:Yt(P),active:Yt(P),"direction-up":f[1]<0,"direction-down":f[1]>0})]),zi(3,i,(()=>Yr)),Ge(t,i)};ei(F,(t=>{Yt(O)||t(V)})),Ge(t,N),_e(),s()}var na=Xe("<line></line>"),sa=We('<article class="micrio-markers"><label> </label></article>'),oa=We('<article class="micrio-markers"><label> </label></article>'),aa=We('<svg class="micrio-markers"></svg> <aside class="micrio-markers"><section class="micrio-markers"></section> <section class="micrio-markers"></section></aside>',1),la=We("<!> <!>",1),ca=We("<div><!> <!></div>"),ua=We("<!> <!> <!>",1);function da(t,e){var i;Te(e,!0);const[r,n]=rr(),s=()=>er(v,"$settings",r),o=()=>er(S,"$inView",r),a=()=>er(E,"$hoveredId",r),l=()=>er(f,"$switching",r),c=()=>er(h,"$data",r),u=()=>er(w,"$_lang",r);let d=ar(e,"image",15);const{data:h,info:m,settings:v}=d(),p=d().state.marker,g=d().wasm.micrio,{switching:f,_lang:w,state:b}=g,y=g.canvas.isMobile,k=null==(i=g.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,S=Ji([]);ke("inView",S);const $=s()._markers??{},A=s().omni,M=!(!!$.noTitles||!!(null==A?void 0:A.sideLabels)||!$.showTitles&&5!=d().id.length);let I=!1;function L(t){t?"string"==typeof t||d().openedView||t.noMarker||!t.view||(d(d().openedView=g.state.$tour&&!("steps"in g.state.$tour)?void 0:ur(d().state.$view),!0),I=!!t.videoTour):d().openedView&&!g.state.$tour&&setTimeout((()=>{var t;Yt(tt)||d().camera.aniDone||!d().openedView||d().camera.flyToView((t=>{const e=Math.min(1,t[2]),i=Math.min(1,t[3]),r=e/2,n=i/2;return[Math.max(r,Math.min(1-r,t[0]+t[2]/2))-r,Math.max(n,Math.min(1-n,t[1]+t[3]/2))-n,e,i]})(d().openedView),{speed:null==(t=s()._markers)?void 0:t.zoomOutAfterCloseSpeed,noTrueNorth:!0}).catch((()=>{})),d(d().openedView=void 0,!0),I=!1}),I?250:10)}let P=!1;b.tour.subscribe((t=>{t&&"steps"in t?(P=!0,t.keepLastStep&&d(d().openedView=void 0,!0)):(t||d().openedView||!P||d().camera.stop(),P=!1)}));const C=[];let O=Y(""),R=Y(!1),D=Y(!1);const z=t=>(t=null==t?void 0:t.map((t=>Math.round(100*t)/100)))&&G(O,[...C,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 N=Y(B([])),F=x,V=Y(B([]));const U=new Map,q=([t,e,i=0,r=0],[n,s,o=0,a=0])=>{const l=Math.max(r/2,F),c=Math.max(a/2,F);return!(t+i+F<n-F||t-F>n+o+F||e+l<s-c||e-l>s+c)},W=()=>{var t;if(!Yt(it))return G(N,[],!0),void G(V,[],!0);const e=Yt(it),i=[],r=e.length;let n=0,s=0;for(G(N,[],!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=U.get(e[n].id),o=U.get(e[s].id);if(r&&o&&q(r,o)){Yt(N).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])}}G(V,i.map((t=>t.filter(((e,i)=>t.indexOf(e)===i)))).map((t=>{const i=d().isOmni;let r,n,s,o,a,l;if(i){a=t.reduce(((t,i)=>t+e[i].x),0)/t.length,l=t.reduce(((t,i)=>t+e[i].y),0)/t.length;const i=.3;r=Math.max(0,a-i/2),s=Math.max(0,l-i/2),n=Math.min(1,a+i/2),o=Math.min(1,l+i/2)}else r=Math.min(...t.map((t=>e[t].view?e[t].view[0]:e[t].x))),n=Math.max(...t.map((t=>e[t].view?e[t].view[0]+e[t].view[2]:e[t].x))),s=Math.min(...t.map((t=>e[t].view?e[t].view[1]:e[t].y))),o=Math.max(...t.map((t=>e[t].view?e[t].view[1]+e[t].view[3]:e[t].y))),a=(r+n)/2,l=(s+o)/2;const c=i?t.reduce(((t,i)=>t+(e[i].rotation??0)),0)/t.length:void 0,u=i?t.reduce(((t,i)=>t+(e[i].radius??1)),0)/t.length:void 0;return{title:t.length+"",type:"cluster",view:[r,s,Math.max(.1,n-r),Math.max(.1,o-s)],x:a,y:l,rotation:c,radius:u,id:t.sort(((t,e)=>t-e)).join(","),data:{},popupType:"none",tags:[]}})),!0)},X=[];ji((()=>{const t=[];return kr(m).then((e=>{var i,r,n;if(!e)return;G(R,!!e.is360);const o=s()._markers;if(!o)return;const a=parseFloat(e.version)>=4.2;o.markerIcon&&C.push(`--micrio-marker-icon: url("${o.markerIcon}")`),o.markerColor&&o.markerColor!=(a?"#ffffff":"#ffbb00")&&C.push("--micrio-marker-color: "+o.markerColor),o.markerSize&&o.markerSize!=(a?"16":"25")&&C.push("--micrio-marker-size: "+(F=Number(o.markerSize))+"px"),t.push(d().viewport.subscribe(z)),s().clusterMarkers&&(t.push(d().state.view.subscribe(W)),t.push(d().data.subscribe((()=>Xt().then(W))))),!d().grid&&(null==(i=s()._markers)?void 0:i.zoomOutAfterClose)&&t.push(d().state.marker.subscribe(L));!(!d().isOmni||!(null==(r=s().omni)?void 0:r.sideLabels)||(null==(n=s()._markers)?void 0:n.noTitles))&&t.push(y.subscribe((t=>{t&&Yt(D)?function(){for(var t;X.length;)null==(t=X.shift())||t()}():t||Yt(D)||(X.push(d().state.view.subscribe(J)),X.push(E.subscribe(J)),X.push(p.subscribe(J))),G(D,!t)})))})),()=>{for(var e;t.length;)null==(e=t.shift())||e()}}));const j=t=>!t.noMarker;let H=Y(void 0),Z=Y(B([]));function J(){Xt().then((()=>{if(!Yt(H))return;const t=g.canvas,e=t.element.offsetWidth,i=[];o().forEach((([r,n,s])=>{var o;const l=null==(o=Yt(H).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])})),G(Z,i,!0)}))}const Q=(t,e)=>{var i;return t.i18n?null==(i=t.i18n[e])?void 0:i.title:t.title},tt=K((()=>k&&er(T,"$focussed",r)!=d()&&_&&Ki(_).indexOf(d())<0)),et=K((()=>!l()&&g.spaceData?g.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)),it=K((()=>{var t,e;return Yt(tt)?[]:null==(e=null==(t=c())?void 0:t.markers)?void 0:e.filter(j)})),rt=K((()=>{var t,e,i;return Yt(tt)?null==(t=c())?void 0:t.markers:null==(i=null==(e=c())?void 0:e.markers)?void 0:i.filter((t=>!j(t)))})),nt=K((()=>{var t,e;return!(!(null==(t=Yt(it))?void 0:t.length)&&!(null==(e=Yt(et))?void 0:e.length))})),st=K((()=>o().sort((([,,t],[,,e])=>t>e?1:t<e?-1:0))));var ot=ua(),at=ut(ot),lt=t=>{var e=aa(),i=ut(e);ri(i,21,(()=>Yt(Z)),ii,((t,e)=>{var i=na();let r;se((t=>{Ei(i,"x1",Yt(e)[0]),Ei(i,"y1",Yt(e)[1]),Ei(i,"x2",Yt(e)[2]),Ei(i,"y2",Yt(e)[3]),r=fi(i,0,"micrio-markers",null,r,t)}),[()=>({hovered:Yt(e)[4]})]),Ge(t,i)}));var r=dt(i,2),n=ct(r);ri(n,21,(()=>Yt(st).filter((([,t])=>t<.5))),(t=>t[0].id),((t,e)=>{var i=sa(),r=ct(i);let n;var s=ct(r);se(((t,i)=>{Ei(r,"for",Yt(e)[0].id),n=fi(r,1,"micrio-markers",null,n,t),Je(s,i)}),[()=>({hover:a()==Yt(e)[0].id}),()=>Q(Yt(e)[0],u())]),Fe("mouseenter",r,(()=>E.set(Yt(e)[0].id))),Fe("mouseleave",r,(()=>E.set(void 0))),Ge(t,i)})),ri(dt(n,2),21,(()=>Yt(st).filter((([,t])=>t>=.5))),(t=>t[0].id),((t,e)=>{var i=oa(),r=ct(i);let n;var s=ct(r);se(((t,i)=>{Ei(r,"for",Yt(e)[0].id),n=fi(r,1,"micrio-markers",null,n,t),Je(s,i)}),[()=>({hover:a()==Yt(e)[0].id}),()=>Q(Yt(e)[0],u())]),Fe("mouseenter",r,(()=>E.set(Yt(e)[0].id))),Fe("mouseleave",r,(()=>E.set(void 0))),Ge(t,i)})),qi(r,(t=>G(H,t)),(()=>Yt(H))),Ge(t,e)};ei(at,(t=>{Yt(D)&&Yt(st).length&&!er(p,"$currentMarker",r)&&t(lt)}));var ht=dt(at,2),mt=t=>{var e=ca();let i;var r=ct(e),n=t=>{var e=je();ri(ut(e),17,(()=>Yt(et)),(t=>t.targetId),((t,e)=>{ra(t,sr({get image(){return d()}},(()=>Yt(e))))})),Ge(t,e)};ei(r,(t=>{Yt(et)&&Yt(et).length&&t(n)}));var s=dt(r,2),o=t=>{var e=la(),i=ut(e);ri(i,19,(()=>Yt(it)),(t=>t.id),((t,e,i)=>{const r=K((()=>Yt(N).includes(Yt(i))));ea(t,{get marker(){return Yt(e)},get image(){return d()},coords:U,get overlapped(){return Yt(r)}})})),ri(dt(i,2),17,(()=>Yt(V)),(t=>t.id),((t,e)=>{ea(t,{get marker(){return Yt(e)},get image(){return d()}})})),Ge(t,e)};ei(s,(t=>{Yt(it)&&t(o)})),se((t=>{bi(e,Yt(nt)?Yt(O):null),i=fi(e,1,"micrio-markers",null,i,t)}),[()=>({"show-titles":M,is360:Yt(R),inactive:Yt(tt)||Yt(R)&&l()})]),Ge(t,e)};ei(ht,(t=>{Yt(nt)&&t(mt)}));var vt=dt(ht,2),pt=t=>{var e=je();ri(ut(e),17,(()=>Yt(rt)),(t=>t.id),((t,e)=>{ea(t,{get marker(){return Yt(e)},get image(){return d()},forceHidden:!0})})),Ge(t,e)};ei(vt,(t=>{Yt(rt)&&t(pt)})),Ge(t,ot),_e(),n()}const ha="5.4.11",ma="https://b.micr.io/",va="https://r2.micr.io/",pa=["ttBWO","IicaE","KLTce","xjQrB","pfhXT","rNIPa","rdFIY","mvRXc"],ga={b64:_b,ugz:_u},fa="micrio-muted",wa={id:"",version:ha,path:ma,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,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:{}}},ba={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 ya,ka,Ta,_a,xa,Ea,Sa;ka=ya||(ya={}),Ta=ka.Grid||(ka.Grid={}),(_a=Ta.GridActionType||(Ta.GridActionType={}))[_a.focus=0]="focus",_a[_a.flyTo=1]="flyTo",_a[_a.focusWithTagged=2]="focusWithTagged",_a[_a.focusTagged=3]="focusTagged",_a[_a.reset=4]="reset",_a[_a.back=5]="back",_a[_a.switchToGrid=6]="switchToGrid",_a[_a.filterTourImages=7]="filterTourImages",_a[_a.nextFadeDuration=8]="nextFadeDuration",xa=ka.Camera||(ka.Camera={}),(Ea=xa.TimingFunction||(xa.TimingFunction={}))[Ea.ease=0]="ease",Ea[Ea["ease-in"]=1]="ease-in",Ea[Ea["ease-out"]=2]="ease-out",Ea[Ea.linear=3]="linear";class $a{constructor(t){var e;if(this.image=t,this.center=[0,0,1],this.view=[0,0,1,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.getView=()=>this.view,this.getViewRaw=()=>this._view,this.getViewLegacy=()=>{if(this.e)return[this._view[0]-this._view[2]/2,this._view[1]-this._view[3]/2,this._view[0]+this._view[2]/2,this._view[1]+this._view[3]/2]},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,o;if(!this.e)return r(new Error("Wasm not ready"));let{centerX:a,centerY:l,width:c,height:u}=Br.toCenterJSON(t);if(2==(null==(n=e.margin)?void 0:n.length)&&(a+=e.margin[0],l+=e.margin[1],c-=2*e.margin[0],u-=2*e.margin[1]),e.area){const t=this.cooToArea(a,l,e.area);a=t.x,l=t.y,c*=e.area[2]-e.area[0],u*=e.area[3]-e.area[1]}if(e.prevView){const t=Br.toCenterJSON(e.prevView);this.e._setStartView(this.image.ptr,t.centerX,t.centerY,t.width,t.height)}if(null==(s=this.image.$settings.omni)?void 0:s.frames){const i=(null==(o=this.image.$settings.omni.layers)?void 0:o.length)??1,r=this.image.$settings.omni.frames/i;if(null==e.omniIndex){const i=t[4]?t[4]:Array.isArray(t)&&void 0!==t[5]?t[5]:void 0;void 0!==i&&(e.omniIndex=Math.round(cr(i/(2*Math.PI))*r))}null!=e.omniIndex&&(e.omniIndex=cr(e.omniIndex,r))}const d=this.e._flyTo(this.image.ptr,a,l,c,u,e.duration??-1,e.speed??-1,e.progress??0,!!e.isJump,!!e.limit,!!e.limitZoom,e.omniIndex??0,!e.noTrueNorth,ya.Camera.TimingFunction[e.timingFunction??"ease"],performance.now());this.image.wasm.render(),0==d?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,ya.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){this.e=t,this._view=e,this._xy=i,this._coo=r,this._mat=n}viewChanged(){var t;const e=this._view,i=this.center.join(","),r=this.getCoo(0,0);this.view[0]=e[0]-e[2]/2,this.view[1]=e[1]-e[3]/2,this.view[2]=e[2],this.view[3]=e[3],this.center[0]=e[0],this.center[1]=e[1],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={}){if(!this.e)return;let{centerX:i,centerY:r,width:n,height:s}=Br.toCenterJSON(t);if(e.area){const t=this.cooToArea(i,r,e.area);i=t.x,r=t.y,n*=e.area[2]-e.area[0],s*=e.area[3]-e.area[1]}this.e._setView(this.image.ptr,i,r,n,s,!!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())}getMatrix(t,e,i,r,n,s,o,a,l,c,u){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,u),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){if(!this.e)return;const e=Br.rectToCenterJSON(t);this.e._setLimit(this.image.ptr,e.centerX,e.centerY,e.width,e.height),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=Ji(),this.marker=Ji(),this.markerHoverId=Ji(),this.popup=Ji(),this.popover=Ji(),this.ui={controls:Ji(!0),zoom:Ji(!0),hidden:Ji(!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 kr(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 kr(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=Ji(void 0),this.marker=Ji(void 0),this.layer=Ji(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();if(s&&o&&i!=o){const a={image:t,view:s};i=o;const l=s[2],c=s[3];(!r||!n||Math.abs(l-r+(c-n))>1e-5)&&(e.events.dispatch("zoom",a),r=l,n=c),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?this._view.slice(0,4):[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.slice(1,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))}}})(Sa||(Sa={}));const Aa=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||Fr(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)}}},Ma=[];class Ia{constructor(t,e,i={}){this.wasm=t,this.attr=e,this.opts=i,this.uuid=dr(),this.__info=JSON.parse(JSON.stringify(wa)),this.settings=Ji({}),this.data=Ji(void 0),this.video=Ji(void 0),this.visible=Ji(!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=Ji(),this.embeds=[],this.isV5=!1,this._loadedData=!1,this.embedElements=new Map,this.state=new Sa.Image(this),i.useParentCamera||(this.camera=new $a(this)),this.id=(e.id??"").replace("https://i.micr.io/",""),this.isV5=Fr(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=va),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=Sr(this.id);let r=!1;this.info={subscribe:Ji(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&&((t,e,i)=>{var r,n,s,o,a,l;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()),Mr(t.video),Mr(t),i&&(t.area=Br.fromLegacy(t.area))})),null==(n=t.markers)||n.forEach((t=>Rr(t,e,i))),i&&(null==(s=t.tours)||s.forEach(Dr)),null==(a=null==(o=t.music)?void 0:o.items)||a.forEach(Mr),null==(l=t.pages)||l.forEach(Cr))})(t,this.isV5,Ir(this.__info))}))}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,g,f,w,b;let y=this.__info;const k=this.attr,T=this.wasm.micrio;k.id&&k.width&&(k.settings&&gr(wa.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);let E;if(!this.id||k.width&&k.height&&!_)(null==(o=this.preset)?void 0:o[1])&&gr(this.preset[1],y);else{const t=t=>this.setError(t,"string"==typeof t?t:'Image with id "'+this.id+'" not found, published, or embeddable.');gr((null==(e=this.preset)?void 0:e[1])||await(y.isIIIF?Er(this.id):$r(this.id,this.infoBasePath,x).then((t=>((null==t?void 0:t.id)&&!y.isIIIF&&3==this.id.split("/").length&&this.id.startsWith("external/")&&(E=t.id.split("/").reverse()[0],(this.isV5=Fr(E))&&(this.dataPath=t.path||va)),t)))).catch(t),y),!_&&y.iiifManifest&&(_=y.iiifManifest),y.isIIIF||(y.isIIIF=!!_),_&&gr(await Er(_).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 S="https://iiif.micr.io/";if(y.id.startsWith(S)&&(y.id=y.id.slice(21)),7==(null==(a=this.id)?void 0:a.length)){const t=Nr(this.id[1+Nr(this.id)%6]);y.is360=!!(t>>4&1),y.isWebP=!(3&t),y.isPng=2==(3&t),t>>3&1&&Fr(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=pa.indexOf(y.id)>=0||y.tilesId&&pa.indexOf(y.tilesId)>=0;gr(k,y),E&&(this.id=y.id=E);const M=$&&!(null==(l=y.tileBasePath)?void 0:l.includes("micr.io"));if(this.tileBase=M?y.tileBasePath??ma:A||$?ma:y.tileBasePath??y.path??(this.isV5?va:ma),(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,parseFloat(y.version)>=5&&(await Aa.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 Er("https://i.micr.io/spaces/"+y.spacesId+".json")),null==(h=y.settings)?void 0:h._360){let t=(null==(v=null==(m=T.spaceData)?void 0:m.images.find((t=>t.id==this.id)))?void 0:v.rotationY)??0;for(;t<0;)t+=2*Math.PI;y.settings._360.trueNorth=(.5+t/Math.PI/2)%1}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==(g=y.settings)?void 0:g.onlyPreferredLang)||e;I=y.lang&&t.indexOf(y.lang)>=0?y.lang:i?void 0:t[0],I&&!e&&(T.lang=I)}const L=y.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 C=y.tileSize;C<Math.max(y.width,y.height);C*=2,this.levels++);let P=Math.max(y.width,y.height);do{this.dzLevels++}while((P/=2)>1);return(null==(f=null==L?void 0:L.gallery)?void 0:f.archive)&&(this.levels-=1-(L.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)})):Er(this.dataPath+this.id+"/data."+t+".json").catch((()=>{})).then((t=>t&&this.enrichData(t).then((t=>this.data.update((e=>(gr(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 Er(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(Ma.indexOf(t)>=0||document.querySelector('script[src="'+t+'"]'))i();else{Ma.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(Ma.indexOf(t)>=0||document.head.querySelector('link[href="'+t+'"]'))e();else{Ma.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(Rr(t,!this.isV5,Ir(this.__info)),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)),d=t=>this.dataPath+(this.isV5?t+"/data/pub.json":t+"/data."+o+".json"),[h,m]=await Promise.all([Promise.all(u.map((t=>Er(d(t))))),Promise.all(u.map((t=>$r(t,this.infoBasePath))))]);h.forEach(((t,e)=>{var i;const r=Ir(m[e]);null==(i=null==t?void 0:t.markers)||i.forEach((t=>Rr(t,5==u[e].length,r)))}));const v=this.wasm.micrio.spaceData;return t.markerTours&&(await Promise.all(t.markerTours.map((e=>zr(this,e,o,t)))),v&&(t.markerTours=t.markerTours.filter((t=>!t.steps.find((t=>t.includes(","))))))),(null==v?void 0:v.markerTours)&&await Promise.all(v.markerTours.filter((t=>!t.stepInfo)).map((e=>zr(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 Ia&&!r.$data&&(i=d(r.id),!Tr.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 Ia(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 Ia(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),kr(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 La{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:pr.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||Ur(this._vid)?this._vid.src=t:br("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 Pa=We('<img alt="Embed" data-scroll-through="" class="micrio-embed">'),Ca=We('<button data-scroll-through="" aria-label="embed-button" class="micrio-embed"></button>');function Oa(t,e){var i,r,n;Te(e,!0);const[s,o]=rr(),a=()=>er(c,"$current",s),l=ye("micrio"),{current:c,wasm:u,canvas:d}=l;let h=ar(e,"embed",15);(null==(i=h().src)?void 0:i.startsWith("/r2"))&&h(h().src="http://localhost:6100"+h().src,!0);const m=a(),v=m.$info;h().uuid||h(h().uuid=dr(),!0);const p=h().uuid,g=m.is360,f=(null==(r=h().video)?void 0:r.autoplay)??!0;let w=m.embeds.find((t=>{var e;return t.uuid==p||(null==(e=t.$info)?void 0:e.title)==p}));const b=window.matchMedia("(dynamic-range: high)").matches||pr.OSX,y=h().area,k=null==(n=h().src)?void 0:n.toLowerCase().endsWith(".svg"),T=!(!h().width||!h().height)&&h().width*h().height<Math.pow(1024,2),_=/iPhone OS 14_/i.test(navigator.userAgent),x="data-embeds-inside-gl",E=l.getAttribute(x),S=!(k||_||!b&&!l.hasAttribute(x)||"false"==E||(!h().micrioId||T&&h().src)&&(!h().video||h().video.controls||h().video.transparent)),$=!h().clickAction&&!h().frameSrc,A="href"==h().clickAction?h().clickTarget:void 0,M=A&&h().clickTargetBlank;let I=Y(B(y[2])),L=Y(B(y[3])),P=Y(y[0]+y[2]/2),C=Y(y[1]+y[3]/2),O=Y(B(h().scale||1)),R=Y(B(h().rotX??0)),D=Y(B(h().rotY??0)),z=Y(B(h().rotZ??0)),N=Y(B(h().scaleX??1)),F=Y(B(h().scaleY??1)),V=Y(""),U=Y(0);function q(){const t=h().area;G(I,t[2],!0),G(L,t[3],!0),G(P,t[0]+Yt(I)/2),G(C,t[1]+Yt(L)/2),G(O,h().scale||1,!0),G(R,h().rotX??0,!0),G(D,h().rotY??0,!0),G(z,h().rotZ??0,!0),G(N,h().scaleX??1,!0),G(F,h().scaleY??1,!0),G(V,`--ratio:${Yt(I)/Yt(L)*v.width/v.height};--scale:${Yt(I)*v.width/(h().width??100)/(S?1:Yt(O))*(g?Math.PI/2:1)};`),k&&G(V,Yt(V)+`height:${h().height}px`),S&&h().micrioId&&h().width&&G(V,Yt(V)+`width:${h().width}px`),h().video&&(h().video.width>h().video.height?G(U,Math.min(h().video.width,Yt(I)*v.width,2048),!0):G(U,Math.min(h().video.height,Yt(L)*v.height,2048)/(h().video.height/h().video.width)))}q();const W=K((()=>Math.round(Yt(I)*v.width))),X=K((()=>Math.round(Yt(L)*v.height)));let j,H=Y(!1),Z=Y(0),J=Y(0),Q=Y(""),tt=Y("");function et(){var t,e,i,r,n;if(m.camera.e&&(n=m.camera.getXYDirect(Yt(P),Yt(C)),G(Z,n[0],!0),G(J,n[1],!0),j=n[2],g&&G(Q,m.camera.getMatrix(Yt(P),Yt(C),Yt(O),1,Yt(R),Yt(D),Yt(z),void 0,Yt(N),Yt(F)).join(","),!0),G(tt,(g?`transform:matrix3d(${Yt(Q)});`:`--x:${Yt(Z)}px;--y:${Yt(J)}px;--s:${j};`)+(void 0!==h().opacity&&1!==h().opacity?`--opacity:${h().opacity};`:"")),((null==(t=h().video)?void 0:t.pauseWhenSmallerThan)||(null==(e=h().video)?void 0:e.pauseWhenLargerThan))&&Yt(W))){const t=Yt(H);G(H,function(){var t,e;if(!(null==(t=h().video)?void 0:t.pauseWhenSmallerThan)&&!(null==(e=h().video)?void 0:e.pauseWhenLargerThan))return!f;const i=j?Math.max(Yt(W)*j/d.viewport.width,Yt(X)*j/d.viewport.height):0;return!!(h().video.pauseWhenSmallerThan&&i<h().video.pauseWhenSmallerThan||h().video.pauseWhenLargerThan&&i>h().video.pauseWhenLargerThan)}(),!0),(null==(i=Yt(at))?void 0:i._vid)&&Yt(H)!=t&&(Yt(H)?Yt(at)._vid.pause():((null==(r=null==m?void 0:m.$settings)?void 0:r.embedRestartWhenShown)&&(Yt(at)._vid.currentTime=0),Yt(at)._vid.play()))}}function it(){a()&&"markerId"==h().clickAction&&h().clickTarget&&a().state.marker.set(h().clickTarget)}function rt(t){if(t&&"detail"in t){const e=t.detail;for(const t in e)h(h()[t]=e[t],!0)}q(),et()}function nt(t,e){return t.addEventListener("change",e),{destroy:()=>t.removeEventListener("change",e)}}const st=Ji(!1);h().video&&(h().video.controls||h(h().video.muted=!0,!0));const ot=S&&!!h().video;let at=Y(void 0);const lt=!S||!!h().clickAction;let ct=Y(void 0);ee((()=>{var t;h().video&&h().id&&a()&&a().setEmbedMediaElement(h().id,Yt(ct)??(null==(t=Yt(at))?void 0:t._vid))}));const dt=K((()=>h().video?Yt(U):Yt(W))),ht=K((()=>h().video?Yt(U)/(h().video.width/h().video.height):Yt(X))),mt=K((()=>Yt(W)/Yt(dt)));ji((()=>{var t,e;const i=[];return S&&function(){const t=h().hideWhenPaused?.01:h().opacity??1,e=[h().area[0],h().area[1],h().area[0]+h().area[2],h().area[1]+h().area[3]];w&&w.ptr>=0?(w.camera.setArea(e),w.camera.setRotation(h().rotX,h().rotY,h().rotZ),u.fadeImage(w.ptr,t)):w=m.addEmbed({id:h().video?h().id:h().micrioId,title:p,width:h().width,height:h().height,isPng:h().isPng,isWebP:h().isWebP,isDeepZoom:h().isDeepZoom,path:v.tileBasePath??v.path,isSingle:!!h().video,isVideo:!!h().video,settings:{_360:{rotX:Yt(R),rotY:Yt(D),rotZ:Yt(z)}}},e,{opacity:t,asImage:!1}),ot&&kr(w.visible,{targetValue:!0}).then((()=>{G(at,new La(u,w,h(),Yt(H),et),!0)})),u.render()}(),(lt||(null==(t=h().video)?void 0:t.pauseWhenSmallerThan)||(null==(e=h().video)?void 0:e.pauseWhenLargerThan))&&i.push(m.state.view.subscribe(et)),()=>{var t,e;for(null==(t=Yt(at))||t.unmount(),w&&w.ptr>=0&&(u.fadeImage(w.ptr,0),u.render()),h().video&&h().id&&a()&&a().setEmbedMediaElement(h().id);i.length;)null==(e=i.shift())||e()}}));var vt=je(),pt=ut(vt),gt=t=>{var e=je();ui(ut(e),(()=>A?"a":"div"),0,((t,e)=>{let i;di(t,((t,e)=>null==nt?void 0:nt(t,e)),(()=>rt)),se((()=>i=$i(t,i,{id:h().id?"e-"+h().id:void 0,style:Yt(tt),role:A?void 0:"figure",onclick:it,onkeypress:it,href:A,target:A&&M?"_blank":null,class:"",[yi]:{"embed-container":!0,embed3d:g,"no-events":$}},"micrio-embed")));var r=je(),n=ut(r),s=t=>{const e=K((()=>h().video.streamId&&!h().video.transparent?"cfvid://"+h().video.streamId:h().video.src)),i=K((()=>!Yt(H)&&h().video.autoplay)),r=K((()=>h().video.transparent&&h().video.hasH265));zs(t,{get forcePause(){return Yt(H)},get src(){return Yt(e)},get width(){return Yt(dt)},get height(){return Yt(ht)},get frameScale(){return Yt(mt)},get controls(){return h().video.controls},destroying:st,get loop(){return h().video.loop},get loopDelay(){return h().video.loopAfter},get muted(){return h().video.muted},get autoplay(){return Yt(i)},get hasTransparentH265(){return Yt(r)},get _media(){return Yt(ct)},set _media(t){G(ct,t,!0)}})},o=(t,e)=>{var i=t=>{zs(t,{get src(){return h().frameSrc},get width(){return Yt(W)},get height(){return Yt(X)},get frameScale(){return h().scale},get autoplay(){return h().autoplayFrame},destroying:st})},r=(t,e)=>{var i=t=>{var e=Pa();se((()=>{Ei(e,"src",h().src),bi(e,Yt(V)),Ei(e,"width",k?h().width:void 0),Ei(e,"height",k?h().height:void 0)})),Ge(t,e)},r=t=>{var e=Ca();se((()=>{bi(e,Yt(V)),Ei(e,"title",h().title)})),Ge(t,e)};ei(t,(t=>{!S&&h().src?t(i):t(r,!1)}),e)};ei(t,(t=>{h().frameSrc?t(i):t(r,!1)}),e)};ei(n,(t=>{h().video&&!S?t(s):t(o,!1)})),Ge(e,r)})),Ge(t,e)};ei(pt,(t=>{lt&&(Yt(Q)||Yt(Z)||Yt(J))&&t(gt)})),Ge(t,vt),_e(),o()}var Ra=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 Da=We("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1);const za=!self.createImageBitmap,Na=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())"+(za?"\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"})),Fa=Math.max(2,Math.min(6,(navigator.hardwareConcurrency||2)-1)),Va=[],Ua=new Map,Ba=new Map,qa=[],Wa=new Map;for(let bl=0;bl<Fa;bl++){const t=new Worker(Na);t.onmessage=t=>Ya(bl,t.data.src,t.data.data,t.data.error,t.data.type),Ua.set(bl,t),za&&Ba.set(bl,new Image)}const Xa=t=>new Promise(((e,i)=>{qa.push([t,e,i]),function(){if(!qa.length)return;let t=0;for(;t<Fa&&!(Va.indexOf(t)<0);t++);if(t>=Fa)return;Va.push(t);const e=qa.shift();if(!e)return void Va.splice(Va.indexOf(t),1);Wa.set(t,e);const i=Ua.get(t);if(!i)return console.error(`[Micrio Texture] Worker ${t} not found!`),e[2]("Internal error: Worker not found"),void Va.splice(Va.indexOf(t),1);i.postMessage({src:e[0],type:"image/"+e[0].split(".").pop()})}()}));function Ya(t,e,i,r,n){const s=Wa.get(t);if(null!=s)if(Wa.delete(t),setTimeout((()=>{Va.splice(Va.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&&za){const i=Ba.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 ja(){return Va.length}function Ga(t){const e=[...Wa.entries()].find((e=>e[1][0]==t));if(null==e)return;const i=Ua.get(e[0]);i&&i.postMessage("abort")}const Ha=ga.ugz?ga.ugz(ga.b64,!0):fetch("http://localhost:2000/build/optimized.wasm").then((t=>t.arrayBuffer())),Za=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=new Map,this.textures=new Map,this.requests=new Map,this.timeouts=new Map,this.tileLoaded=new Map,this.tileOpacity=new Map,this.loadStates=new Map,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.get(t)||0,setTileOpacity:(t,e=!1,i=1)=>{const r=this.tileOpacity,n=this.tileLoaded;return(!r.has(t)||r.get(t)<1)&&r.set(t,e?1:n.has(t)&&n.get(t)>0?Math.min(1,(this.now-n.get(t))/250)*i:0),r.get(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)=>kr(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.set(t.baseTileIdx=this.e.getNumTiles(this.i)-1,1),this.baseTiles.push(t.baseTileIdx)})),this.addChild=(t,e)=>this.addImage(t,e),this.deleteAfterSeconds=pr.iOS?5:Ki(this.micrio.canvas.isMobile)?30:90,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 Ha;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=>Ga(t))),this.requests.clear();for(let e of this.timeouts.values())clearTimeout(e);this.timeouts.clear(),this.loadStates.clear(),this.tileLoaded.clear(),this.tileOpacity.clear();for(let e of this.tileLoaded.keys())this.deleteTile(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&&parseFloat(h.version)<=3.1&&this.e.setNoUnderzoom(this.i,!0),h.is360&&(m.limitToCoverScale=!1);const v=!!m.limitToCoverScale,p=v||"cover"==m.initType;t.noImage&&this.micrio.loading.set(!1);const g=[.5,.5],f=m.focus,w=!!h.spacesId;f&&(isNaN(f[0])||null===f[0]||(g[0]=f[0]),isNaN(f[1])||null===f[1]||(g[1]=f[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.restrict)&&t.camera.setLimit(m.restrict),(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.set(_-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==E[0]&&0==E[1]&&1==E[2]&&1==E[3]?!w&&h.is360||!g||"0.5,0.5"==g.toString()||(this.e._setCoo(t.ptr,g[0],g[1],0,0,performance.now()),m.focus=void 0):this.e._setView(t.ptr,E[0]+E[2]/2,E[1]+E[3]/2,E[2],E[3],!1,!1,!1),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))}setCanvas(t){var e,i,r;if(t&&!(t.ptr>0&&t.ptr==this.c))if(t.ptr<0)kr(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 n=t.is360&&this.c>=0?this.e._getYaw(this.c,!0):0,s=t.is360&&this.c>=0?this.e._getPitch(this.c):0;this.c=t.ptr,t.is360&&!this.preventDirectionSet&&n&&s&&this.e._setDirection(this.c,n+(.5-((null==(i=null==(e=t.$settings)?void 0:e._360)?void 0:i.trueNorth)||0))*Math.PI*2,s,!0),0==this.e._getTargetOpacity(t.ptr)&&this.e._fadeIn(t.ptr),(null==(r=t.$settings.omni)?void 0:r.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),this.toDelete.has(e)&&this.toDelete.delete(e);const l=ja(),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.has(e)&&l<Fa){if(this.bareBone?l>2&&o:a&&o&&l>0)return!1;if(u&&!d)this.loadStates.set(e,2),this.textures.set(e,this.micrio.webgl.getTexture());else{this.loadStates.set(e,1);const t=h.getTileSrc(i,r,n,m);if(!t)return this.loadStates.set(e,0),!1;this.getTexture(e,t,o,{noSmoothing:"$info"in c&&c.$settings.noSmoothing})}}else if(this.loadStates.has(e)&&this.loadStates.get(e)>=2){this.drawing||this.drawStart();const t=this.textures.get(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.get(e)&&(this.loadStates.set(e,3),this.tileLoaded.set(e,this.now)),!0}return!1}drawStart(){this.drawing||(this.micrio.webgl.drawStart(),this.drawing=!0)}getTexture(t,e,i,r={}){if(this.textures.has(t)||this.requests.has(t)||!r.force&&ja()>=Fa)return;const n=Aa.db.has(e);n||this.micrio.loading.set(!0),this.requests.set(t,e),(n?Aa.getImage(e):Xa(e)).then((e=>this.gotTexture(t,e,i,r.noSmoothing))).catch((()=>this.deleteRequest(t)))}gotTexture(t,e,i,r){this.textures.set(t,this.micrio.webgl.getTexture(e,this.textures.get(t),r)),null!=self.ImageBitmap&&e instanceof ImageBitmap&&e.close instanceof Function&&e.close(),this.loadStates.set(t,2),this.timeouts.set(t,setTimeout((()=>{this.deleteRequest(t)}),i?150:50))}deleteRequest(t){this.requests.delete(t),clearTimeout(this.timeouts.get(t)),this.timeouts.delete(t),this.requests.size||this.micrio.loading.set(!1)}deleteTile(t){this.micrio.webgl.gl.deleteTexture(this.textures.get(t)),this.textures.delete(t),this.toDelete.delete(t),this.loadStates.delete(t),this.tileOpacity.delete(t),this.tileLoaded.delete(t),clearTimeout(this.timeouts.get(t)),this.timeouts.delete(t)}cleanup(){const t=this.prevDrawn.filter((t=>this.drawn.indexOf(t)<0&&this.loadStates.has(t)&&this.loadStates.get(t)>0&&this.baseTiles.indexOf(t)<0)),e=performance.now();for(let i=0;i<t.length;i++){const r=t[i];switch(this.tileOpacity.set(i,0),this.loadStates.get(r)){case 1:const t=this.requests.get(r);t&&Ga(t),this.loadStates.delete(r);break;case 2:this.requests.has(r)&&this.deleteRequest(r),this.loadStates.delete(r),this.deleteTile(r);break;case 3:this.toDelete.has(r)||this.toDelete.set(r,e)}}this.prevDrawn=this.drawn.slice(0);for(let[i,r]of this.toDelete.entries())(e-r)/1e3>this.deleteAfterSeconds&&this.deleteTile(i)}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 Ia?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.set(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)}};Za._textureBuffer=Za.getTextureBuffer(1,1);let Ja=Za;const Ka=new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);class Qa{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,Ka,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)}dispose(){const t=this.gl;t.deleteFramebuffer(this.frameBuffer),t.deleteTexture(this.texture),t.deleteBuffer(this.quad),t.deleteProgram(this.program)}}const tl=/firefox/i.test(navigator.userAgent),el=`\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${tl?"\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 il{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 Qa(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,el),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,Ja._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.DYNAMIC_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){var e;const i=this.gl;if(i){if(i.bindBuffer(i.ARRAY_BUFFER,null),i.bindTexture(i.TEXTURE_2D,null),i.deleteBuffer(this.txtBuffer),i.deleteBuffer(this.geomBuffer),i.deleteProgram(this.program),null==(e=this.postpocessor)||e.dispose(),t){const t=i.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*Ja.segsX*Ja.segsY:6;i!=this.was360&&(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.txtBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,i?Ja._textureBuffer360:Ja._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 rl={passive:!0},nl={passive:!0,capture:!0},sl={passive:!1};function ol(t){t.stopPropagation(),t.preventDefault()}const al=["move","marker-open","marker-opened","marker-closed","tour-start","tour-step","tour-stop","tour-event","media-play","media-pause","splitscreen-start","splitscreen-stop"];class ll{constructor(t){this.micrio=t,this.enabled=Ji(!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=pr.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&&kr(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,sl),this.scrollHooked=!0)}unhookScroll(){this.micrio.removeEventListener("wheel",this.wheel,sl),this.scrollHooked=!1}hookPinch(){this.hasTouch&&this.el.addEventListener("touchstart",this.pStart,rl),pr.OSX&&(this.micrio.addEventListener("gesturestart",this.gesture,sl),this.micrio.addEventListener("gesturechange",this.gesture,sl),this.micrio.addEventListener("gestureend",this.gesture,sl))}unhookPinch(){this.el.removeEventListener("touchstart",this.pStart,rl),pr.OSX&&(this.micrio.removeEventListener("gesturestart",this.gesture,sl),this.micrio.removeEventListener("gesturechange",this.gesture,sl),this.micrio.removeEventListener("gestureend",this.gesture,sl))}hookDrag(){this.hookedDrag||(this.hookedDrag=!0,this.micrio.addEventListener("dragstart",ol),this.micrio.addEventListener("pointerdown",this.dStart,rl),this.micrio.setAttribute("data-hooked",""))}unhookDrag(){this.hookedDrag&&(this.hookedDrag=!1,this.micrio.removeEventListener("pointerdown",this.dStart,rl),this.micrio.removeEventListener("dragstart",ol),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,rl),this.micrio.addEventListener("pointerup",this.dStop,rl),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=lr(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,rl),this.micrio.removeEventListener("pointerup",this.dStop,rl),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(!(pr.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,nl),self.addEventListener("touchend",this.pStop,nl),this.micrio.setAttribute("data-pinching",""),this.vars.pinch.image=this.getImage({x:e[0].clientX,y:e[0].clientY}),this.vars.pinch.sDst=lr(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(!(pr.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=lr(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,nl),self.removeEventListener("touchend",this.pStop,nl),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=pr.firefox||t.ctrlKey||!o;if(this.twoFingerPan&&(null==(r=this.micrio.$current)?void 0:r.camera.isZoomedOut()))return;t.stopPropagation(),t.preventDefault(),(pr.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(!(pr.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(){al.forEach((t=>this.micrio.addEventListener(t,this.updateEvent)))}unhookUpdate(){al.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 cl=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),kr(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=fr(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([kr(s.data,{allowUndefined:!0}),o?kr(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 fr(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 fr(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)??fr(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=Math.max(0,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),g=h&&"string"!=typeof h?(null==(s=h.i18n)?void 0:s[m])??h:void 0,f=null==(o=Ki(this.micrio.state.popover))?void 0:o.contentPage,w=f?(null==(a=f.i18n)?void 0:a[m])??f: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[Math.max(0,u.initialStep)].marker))}const y=[b,m,fr(v)??"",...p?[]:w?[fr(w.title)]:[(null==(c=null==(l=null==u?void 0:u.i18n)?void 0:l[m])?void 0:c.slug)??null,(null==g?void 0:g.slug)??fr(null==g?void 0:g.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))}};cl.events=["load","tour-start","tour-stop","marker-open","marker-closed","page-open","page-closed","lang-switch"];let ul=cl;const dl=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=ha),"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)}};dl.events=["load","show","hide","marker-open","marker-opened","marker-closed","tour-start","tour-stop","tour-step","tour-ended"];let hl=dl;const ml=t=>Math.round(1e5*t)/1e5,vl=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=Ji(),this.markersShown=Ji([]),this.history=[],this.depth=Ji(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=>kr(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 Ia?{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 g=!1;const f=()=>{this.clearTimeouts(),g||r()};d&&!e.noCamAni&&(e.view?this.image.camera.flyToView(e.view,{duration:1e3*h}).catch(f):this.image.camera.flyToFullView({duration:1e3*h}).catch(f)),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)=>mr(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,g=!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:gr(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?mr(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 Ia(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,ya.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((()=>mr(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=ya.Grid.GridActionType[t]);const r=t+(e??"");if(this.lastAction!=r){switch(t){case ya.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 ya.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 ya.Grid.GridActionType.focusTagged:this.flyToMarkers(e,i);break;case ya.Grid.GridActionType.focusWithTagged:this.flyToMarkers(e,i,!0);break;case ya.Grid.GridActionType.reset:this.reset(i);break;case ya.Grid.GridActionType.back:this.back(i);break;case ya.Grid.GridActionType.switchToGrid:this.switchToGrid();break;case ya.Grid.GridActionType.nextFadeDuration:this.nextCrossFadeDuration=Number(e);break;case ya.Grid.GridActionType.filterTourImages:kr(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]]}};vl.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(ml).join("/"),null==(r=e.area)?void 0:r.map(ml).join("/"),null==(s=null==(n=t.settings)?void 0:n.focus)?void 0:s.map(ml).join("-"),e.cultures].join(",").replace(/,+$/,"")+(e.size?`|${e.size.join(",")}`:"")};let pl=vl;class gl{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=Ji(!1),this.getRatio=(t=(t=>null==(t=this.micrio.$current)?void 0:t.$settings)()??{})=>!pr.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),this.isMobile.set(/mobile/i.test(navigator.userAgent)))}setMargins(t,e){this.micrio.wasm.e&&this.micrio.wasm.e.setArea(this.micrio.wasm.getPtr(),t,e)}}const fl=class t extends HTMLElement{constructor(){super(),this.printed=!1,this.canvases=[],this.current=Ji(),this.visible=Ji([]),this.canvas=new gl(this),this.events=new ll(this),this.state=new Sa.Main(this),this.analytics=new hl(this),this._router=new ul(this),this.barebone=Ji(!1),this.webgl=new il(this),this.wasm=new Ja(this),this.defaultSettings=this.defaultSettings,this.loading=Ji(!0),this.switching=Ji(!1),this.isMuted=Ji("1"==localStorage.getItem(fa)),this._lang=Ji(),this.keepRendering=!1,this.loadV5Album=(t,e)=>(t=>"MICRIO_ALBUM"in self?Promise.resolve(self.MICRIO_ALBUM):Er(`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)??va;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=ma)=>Aa.get(`${e}${t}.json`).then((t=>(t.images.forEach((t=>Tr.set(`${e}${t.id}/info.json`,t))),t))),this.current.subscribe((t=>this._current=t));let t=!1;kr(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(this.hasAttribute("muted"));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),Qr.set(Kr[i]??Kr.en),i&&(Jn.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(fa,"1"),this.events.dispatch("audio-mute")):(localStorage.removeItem(fa),this.events.dispatch("audio-unmute"))})))}addEventListener(t,e,i){super.addEventListener(t,e,i)}removeEventListener(t,e,i){super.removeEventListener(t,e,i)}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.webgl.dispose(!0),this.printed=!1}loadArchiveBin(t,e){return this.printUI(!0,!0),Aa.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||(Fr(t.replace(/\.\d+$/,""))?va:ma);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&&Fr(n.id)&&!this.hasAttribute("width")&&!this.hasAttribute("height")&&await $r(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)).catch((()=>{}));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=Ke(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||gr(a.settings,l.settings),this.defaultSettings&&gr(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 Ia(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&&(kr(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 pl(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 ba.STRINGS){const n=ba.STRINGS[r],s=this.getAttribute(r),o=n.f||r.replace("data-","");s&&i(n.r?e:t,o,s)}for(const r in ba.BOOLEANS){const n=ba.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 ba.NUMBERS){const n=ba.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 ba.ARRAYS){const n=ba.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=>Er(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 Ia(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=Br.fromLegacy(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=>pl.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)}};fl.jsonCache=Tr;let wl=fl;wl.Svelte=function(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(Yt($),"$settings",i),s=()=>er(Yt(E),"$info",i),o=()=>er(Yt(S),"$data",i),a=()=>er(k,"$tour",i),l=()=>er(P,"$volume",i),c=()=>er(w,"$visible",i),u=()=>er(_,"$markerPopup",i),d=()=>er(x,"$popover",i);let h=ar(e,"noHTML",15),m=ar(e,"noLogo",23,h),v=ar(e,"loadingProgress",7,1),p=ar(e,"error",7,void 0);ke("micrio",e.micrio),ke("markerImages",new Map);const g="markers"==e.micrio.getAttribute("data-ui");g&&h(!0);const f="false"!=e.micrio.getAttribute("data-embeds"),{visible:w,state:b,isMuted:y}=e.micrio,{tour:k,marker:T,popup:_,popover:x}=b;let E=Y(void 0),S=Y(void 0),$=Y(void 0);function A(t,e){if(e)for(let i,r=0;r<e.length;r++)if(e[r].id==t||(i=A(t,e[r].children)))return i??e[r]}let M=Y(!1),I=Y(void 0);const L=[];e.micrio.current.subscribe((t=>{t&&(ir(G(E,t.info,!0),"$info",i),ir(G($,void 0),"$settings",i),Yt(E)&&kr(Yt(E)).then((e=>{var r;e&&(G(M,!0),ir(G($,t.settings,!0),"$settings",i),!Yt(I)&&(null==(r=e.organisation)?void 0:r.logo)&&G(I,e.organisation,!0))})),ir(G(S,t.data,!0),"$data",i)&&L.indexOf(t.id)<0&&kr(Yt(S)).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=A(s.id,i.pages);l&&e.micrio.state.popover.set({contentPage:l,showLangSelect:!0})}})))}));const P=Ji(er(y,"$isMuted",i)?0:1);ke("volume",P),y.subscribe((t=>P.set(t?0:1))),ke("mediaPaused",Ji(!1));let C=Y(!1),O=Y(B([]));ke("srt",Ji()).subscribe((t=>setTimeout((()=>{G(O,t?[t]:[],!0)}),20)));const R=K((()=>{var t,e;return null==(e=null==(t=n())?void 0:t._360)?void 0:e.video})),D=K((()=>{var t;return null==(t=Yt(R))?void 0:t.src})),z=K((()=>{var t;return null==(t=n())?void 0:t.omni})),N=K((()=>{var t;return null==(t=s())?void 0:t.gallery})),F=K((()=>{var t,e;return null==(e=null==(t=o())?void 0:t.markers)?void 0:e.filter((t=>!!t.positionalAudio))})),V=K((()=>{var t,e,i;return!!(null==(e=null==(t=o())?void 0:t.music)?void 0:e.items.length)||!!(null==(i=Yt(F))?void 0:i.length)})),U=K((()=>a()||er(T,"$marker",i))),q=K((()=>!h()||g)),W=K((()=>{var t;return!(m()||s()&&h()||(null==(t=n())?void 0:t.noLogo))})),X=K((()=>{var t;return h()||!Yt(W)||(null==(t=n())?void 0:t.noOrgLogo)?void 0:Yt(I)})),j=K((()=>{var t;return!(h()||Yt(z)||e.micrio.spaceData||a()||(null==(t=s())?void 0:t.gallery))})),H=K((()=>!!Yt(N)||!!Yt(z))),Z=K((()=>!h()&&!!s())),J=K((()=>{var t;return!h()&&!Yt(U)&&(null==(t=n())?void 0:t.showInfo)})),Q=K((()=>{var t;return!h()&&Yt(M)&&!(null==(t=n())?void 0:t.noToolbar)}));var tt=Da(),et=ut(tt),it=t=>{const e=K((()=>!!s().is360));So(t,{get volume(){return l()},get data(){return o()},get is360(){return Yt(e)}})};ei(et,(t=>{Yt(V)&&o()&&s()&&t(it)}));var rt=dt(et,2),nt=t=>{zs(t,sr({get src(){return Yt(D)},get volume(){return l()},is360:!0,get width(){return s().width},get height(){return s().height}},(()=>Yt(R))))};ei(rt,(t=>{Yt(D)&&s()&&t(nt)}));var st=dt(rt,2),ot=t=>{var e=je();ri(ut(e),1,(()=>o().embeds),(t=>t.uuid),((t,e)=>{Oa(t,{get embed(){return Yt(e)}})})),Ge(t,e)};ei(st,(t=>{f&&o()&&o().embeds&&t(ot)}));var at=dt(st,2),lt=t=>{Hr(t,{})};ei(at,(t=>{Yt(W)&&t(lt)}));var ht=dt(at,2),mt=t=>{Yn(t,{})};ei(ht,(t=>{Yt(Q)&&t(mt)}));var vt=dt(ht,2),pt=t=>{var e=je();ri(ut(e),1,c,(t=>t.uuid),((t,e)=>{da(t,{get image(){return Yt(e)}})})),Ge(t,e)};ei(vt,(t=>{Yt(q)&&t(pt)}));var gt=dt(vt,2),ft=t=>{var e=je();ri(ut(e),1,(()=>c().filter((t=>t.$settings.minimap))),(t=>t.uuid),((t,e)=>{Gn(t,{get image(){return Yt(e)}})})),Ge(t,e)};ei(gt,(t=>{Yt(j)&&t(ft)}));var wt=dt(gt,2),bt=t=>{const e=K((()=>Yt(V)||!(!Yt(D)||!Yt(R)||Yt(R).muted)));as(t,{get hasAudio(){return Yt(e)}})};ei(wt,(t=>{Yt(Z)&&t(bt)}));var yt=dt(wt,2),kt=t=>{fo(t,{get images(){return Yt(N)},get omni(){return Yt(z)}})};ei(yt,(t=>{Yt(H)&&t(kt)}));var Tt=dt(yt,2),_t=t=>{Jr(t,{get organisation(){return Yt(X)}})};ei(Tt,(t=>{Yt(X)&&t(_t)}));var xt=dt(Tt,2),Et=t=>{Po(t,{get info(){return Yt(E)},get data(){return Yt(S)}})};ei(xt,(t=>{Yt(J)&&Yt(E)&&Yt(S)&&t(Et)}));var St=dt(xt,2),$t=t=>{Ks(t,{get marker(){return u()}})};ei(St,(t=>{u()&&t($t)}));var At=dt(St,2),Mt=t=>{lo(t,{get tour(){return a()},get noHTML(){return h()},onminimize:t=>G(C,!t)})};ei(At,(t=>{a()&&t(Mt)}));var It=dt(At,2),Lt=t=>{jo(t,{get popover(){return d()}})};ei(It,(t=>{d()&&t(Lt)}));var Pt=dt(It,2);ri(Pt,16,(()=>Yt(O)),(t=>t),((t,e)=>{vs(t,{get src(){return e},get raised(){return Yt(C)}})}));var Ct=dt(Pt,2),Ot=t=>{!function(t,e){var i=Co(),r=ct(i);Cn(r,{name:"error"});var n=dt(r);se((()=>Je(n,` ${e.message??""}`))),Ge(t,i)}(t,{get message(){return p()}})};ei(Ct,(t=>{p()&&t(Ot)}));var Rt=dt(Ct,2),Dt=t=>{!function(t,e){const i=2*Math.PI*40,r=K((()=>i*(1-e.progress)));var n=Ra();Ei(n,"viewBox","0 0 100 100");var s=ct(n);Ei(s,"r",40),Ei(s,"cx",50),Ei(s,"cy",50);var o=dt(s);Ei(o,"r",40),Ei(o,"cx",50),Ei(o,"cy",50),Ei(o,"stroke-dasharray",`${i??""}px`),se((()=>Ei(o,"stroke-dashoffset",`${Yt(r)??""}px`))),zi(1,n,(()=>Yr),(()=>({delay:500}))),zi(2,n,(()=>Yr)),Ge(t,n)}(t,{get progress(){return v()}})};ei(Rt,(t=>{v()<1&&t(Dt)})),Ge(t,tt);var zt=_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(),zt},wl.VERSION=ha,customElements.define("micr-io",wl),console.log("%c◈%c Micrio %cv"+ha+" - 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}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.has-custom-icon.micrio-marker{--micrio-marker-size: 32px}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}
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,g=Symbol("$state"),f=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,A=Array.prototype,S=Object.getPrototypeOf,M=Object.isExtensible;function $(t){return"function"==typeof t}const I=()=>{};function L(t){return t()}function P(t){for(var e=0;e<t.length;e++)t[e]()}let C=[],R=[];function D(){var t=C;C=[],P(t)}function O(t){0===C.length&&queueMicrotask(D),C.push(t)}function z(){var t;C.length>0&&D(),R.length>0&&(t=R,R=[],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||g in t)return t;const r=S(t);if(r!==E&&r!==A)return t;var n=new Map,s=b(t),o=Y(0),a=bt,l=t=>{var e,i=bt;return kt(a),e=t(),kt(i),e};return s&&n.set("length",Y(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((()=>Y(i.value))),n.set(e,r)):G(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((()=>Y(e))));else{if(s&&"string"==typeof i){var a=n.get("length"),c=Number(i);Number.isInteger(c)&&c<a.v&&G(a,c)}G(r,e),W(o)}return!0},get(i,r,s){var o;if(r===g)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((()=>Y(B(c?i[r]:e)))),n.set(r,a)),void 0!==a){var u=Yt(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=Yt(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===g)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((()=>Y(o?B(t[i]):e))),n.set(i,s)),Yt(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?G(m,e):h in t&&(m=l((()=>Y(e))),n.set(h+"",m))}void 0===u?d&&!(null==(c=_(t,i))?void 0:c.writable)||(G(u=l((()=>Y(void 0))),l((()=>B(r)))),n.set(i,u)):(d=u.v!==e,G(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"),g=Number(i);Number.isInteger(g)&&g>=p.v&&G(p,g+1)}W(o)}return!0},ownKeys(t){Yt(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 W(t,e=1){G(t,t.v+e)}const q=new Map;function X(t,e){return{f:0,v:t,reactions:null,equals:N,rv:0,wv:0}}function Y(t,e){const i=X(t);return Et(i),i}function j(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 G(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;gt?q.set(t,e):q.set(t,i),t.v=e,t.wv=Pt(),Z(t,c),xe()&&null!==Tt&&Tt.f&l&&!(96&Tt.f)&&(null===Mt?function(t){Mt=t}([t]):Mt.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):Wt(o)))}}function J(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 K(t){const e=J(t);return Et(e),e}function Q(t){const e=J(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=Ot(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,gt=!1;function ft(t){gt=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 At=null,St=0,Mt=null;let $t=1,It=0,Lt=!1;function Pt(){return++$t}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,g=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===g||g.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 Rt(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 Dt(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?Dt(s,e,!1):e===s&&(i?Ht(s,c):s.f&l&&Ht(s,u),Wt(s)))}}function Ot(t){var e,i=At,r=St,n=Mt,s=bt,a=Lt,l=xt,c=we,u=yt,d=t.f;At=null,St=0,Mt=null,Lt=!!(d&o)&&(yt||!pt||null===bt),bt=96&d?null:t,xt=null,be(t.ctx),yt=!1,It++,t.f|=p;try{var h=(0,t.fn)(),m=t.deps;if(null!==At){var v;if(Nt(t,St),null!==m&&St>0)for(m.length=St+At.length,v=0;v<At.length;v++)m[St+v]=At[v];else t.deps=m=At;if(!Lt)for(v=St;v<m.length;v++)((e=m[v]).reactions??(e.reactions=[])).push(t)}else null!==m&&St<m.length&&(Nt(t,St),m.length=St);if(xe()&&null!==Mt&&!yt&&null!==m&&!(6146&t.f))for(v=0;v<Mt.length;v++)Dt(Mt[v],t);return null!==s&&(It++,null!==Mt&&(null===n?n=Mt:n.push(...Mt))),h}finally{At=i,St=r,Mt=n,bt=s,Lt=a,xt=l,be(c),yt=u,t.f^=p}}function zt(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===At||!At.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++)zt(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=Ot(t);t.teardown="function"==typeof a?a:null,t.wv=$t;t.deps;i}catch(c){Rt(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;Rt(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(qt(i[n]))}}}finally{mt=!1,pt=t,vt=null,q.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){Rt(n,r,null,r.ctx)}}}function Wt(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 qt(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){Rt(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(z();wt.length>0;)mt=!0,Ut(),z()}()}function Yt(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<It&&(t.rv=It,null===At&&null!==n&&n[St]===t?St++:null===At?At=[t]:Lt&&At.includes(t)||At.push(t))}return e&&Ct(i=t)&&et(i),gt&&q.has(t)?q.get(t):t.v}function jt(t){var e=yt;try{return yt=!0,t()}finally{yt=e}}const Gt=-7169;function Ht(t,e){t.f=t.f&Gt|e}function Zt(t){if("object"==typeof t&&t&&!(t instanceof EventTarget))if(g in t)Jt(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];"object"==typeof i&&i&&g in i&&Jt(i)}}function Jt(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{Jt(t[n],e)}catch(i){}const r=S(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 Kt(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")}(),gt&&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&&Wt(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(Kt(),!(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,G(i.l.r2,!0),jt(e))}))}function ne(t){return Qt(8,t,!0)}function se(t,e=[],i=J){const r=e.map(i);return oe((()=>t(...r.map(Yt))))}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=gt,i=bt;ft(!0),kt(null);try{e.call(null)}finally{ft(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){ge(t,!0)}function ge(t,e){if(t.f&d){t.f^=d,t.f&l||(t.f^=l),Ct(t)&&(Ht(t,c),Wt(t));for(var i=t.first;null!==i;){var n=i.next;ge(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 fe(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&&fe(),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 Ae(t){return t.endsWith("capture")&&"gotpointercapture"!==t&&"lostpointercapture"!==t}const Se=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Me(t){return Se.includes(t)}const $e={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 Ie(t){return t=t.toLowerCase(),$e[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,O((()=>{document.activeElement===e&&t.focus()}))}}function Re(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 De(t){var e=bt,i=Tt;kt(null),_t(null);try{return t()}finally{kt(e),_t(i)}}const Oe=new Set,ze=new Set;function Ne(t,e,i,r={}){function n(t){if(r.capture||Ue.call(e,t),!t.cancelBubble)return De((()=>null==i?void 0:i.call(this,t)))}return t.startsWith("pointer")||t.startsWith("touch")||"wheel"===t?O((()=>{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++)Oe.add(t[e]);for(var i of ze)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 g=o["__"+n];if(null!=g&&(!o.disabled||t.target===o))if(b(g)){var[f,...w]=g;f.apply(o,[t,...w])}else g.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 We(t,e){var i=Tt;null===i.nodes_start&&(i.nodes_start=t,i.nodes_end=e)}function qe(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?We(at(e),e.lastChild):We(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?We(at(e),e.lastChild):We(e,e);return e}}function Ye(t=""){var e=ot(t+"");return We(e,e),e}function je(){var t=document.createDocumentFragment(),e=document.createComment(""),i=ot();return t.append(e,i),We(e,i),t}function Ge(t,e){null!==t&&t.before(e)}let He=!0;function Ze(t){He=t}function Je(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 Ke(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,M(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),M(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(Oe)),ze.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)}ze.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=Yt(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,g,f,w=!!(8&n),b=!!(3&n),y=t.length,T=e.items,_=e.first,x=_,E=null,A=[],S=[];if(w)for(f=0;f<y;f+=1)p=s(v=t[f],f),void 0!==(g=T.get(p))&&(null==(a=g.a)||a.measure(),(m??(m=new Set)).add(g));for(f=0;f<y;f+=1)if(p=s(v=t[f],f),void 0!==(g=T.get(p))){if(b&&ni(g,v,f,n),g.e.f&d&&(pe(g.e),w&&(null==(l=g.a)||l.unfix(),(m??(m=new Set)).delete(g))),g!==x){if(void 0!==h&&h.has(g)){if(A.length<S.length){var M,$=S[0];E=$.prev;var I=A[0],L=A[A.length-1];for(M=0;M<A.length;M+=1)oi(A[M],$,i);for(M=0;M<S.length;M+=1)h.delete(S[M]);ai(e,I.prev,L.next),ai(e,E,I),ai(e,L,$),x=$,E=L,f-=1,A=[],S=[]}else h.delete(g),oi(g,x,i),ai(e,g.prev,g.next),ai(e,g,null===E?e.first:E.next),ai(e,E,g),E=g;continue}for(A=[],S=[];null!==x&&x.k!==p;)x.e.f&d||(h??(h=new Set)).add(x),S.push(x),x=x.next;if(null===x)continue;g=x}A.push(g),E=g,x=g.next}else{E=si(x?x.e.nodes_start:i,e,E,null===E?e.first:E.next,v,p,f,r,n,o),T.set(p,E),A=[],S=[],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 R=4&n&&0===y?i:null;if(w){for(f=0;f<C;f+=1)null==(c=P[f].a)||c.measure();for(f=0;f<C;f+=1)null==(u=P[f].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,R,T)}}w&&O((()=>{var t;if(void 0!==m)for(g of m)null==(t=g.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}))),Yt(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)?j(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+"");We(at(t),t.lastChild),o.before(t)}))))}))}function ci(t,e,...i){var r,n=t,s=I;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(We(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,e,i){ie((()=>{var r=jt((()=>e(t,null==i?void 0:i())||{}));if(i&&(null==r?void 0:r.update)){var n=!1,s={};ne((()=>{var t=i();Zt(t),n&&F(s,t)&&(s=t,r.update(t))})),n=!0}if(null==r?void 0:r.destroy)return()=>r.destroy()}))}function hi(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=hi(t[e]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function mi(t){return"object"==typeof t?function(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=hi(t))&&(r&&(r+=" "),r+=e);return r}(t):t??""}const vi=[..." \t\n\r\f \v\ufeff"];function pi(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 gi(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&&!vi.includes(r[o-1])||a!==r.length&&!vi.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 wi(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 bi(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(gi)),r&&l.push(...Object.keys(r).map(gi));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=gi(t.substring(c,u).trim());l.includes(m)||(";"!==h&&d++,n+=" "+t.substring(c,d).trim()+";")}c=d+1,u=-1}}}return i&&(n+=pi(i)),r&&(n+=pi(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)?(wi(t,null==i?void 0:i[0],r[0]),wi(t,null==i?void 0:i[1],r[1],"important")):wi(t,i,r));return r}const yi=Symbol("class"),ki=Symbol("style"),Ti=Symbol("is custom element"),_i=Symbol("is html");function xi(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ei(t,e,i,r){var n=Mi(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 Ai(t,e,i){var r=bt,n=Tt;kt(null),_t(null);try{"style"!==e&&($i.has(t.nodeName)||!customElements||customElements.get(t.tagName.toLowerCase())?Ii(t).includes(e):i&&"object"==typeof i)?t[e]=i:Ei(t,e,null==i?i:String(i))}finally{kt(r),_t(n)}}function Si(t,e,i,r,n=!1){var s=Mi(t),o=s[Ti],a=!s[_i],l=e||{},c="OPTION"===t.tagName;for(var u in e)u in i||(i[u]=null);i.class?i.class=mi(i.class):(r||i[yi])&&(i.class=null),i[ki]&&(i.style??(i.style=null));var d=Ii(t);for(const f in i){let n=i[f];if(c&&"value"===f&&null==n)t.value=t.__value="",l[f]=n;else if("class"!==f)if("style"!==f){var h=l[f];if(n!==h){l[f]=n;var m=f[0]+f[1];if("$$"!==m)if("on"===m){const e={},i="$$"+f;let r=f.slice(2);var v=Me(r);if(Ae(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[f].call(this,t)};l[i]=Ne(r,t,n,e)}else v&&(t[`__${r}`]=void 0)}else if("style"===f)Ei(t,f,n);else if("autofocus"===f)Ce(t,Boolean(n));else if(o||"__value"!==f&&("value"!==f||null==n))if("selected"===f&&c)xi(t,n);else{var p=f;a||(p=Ie(p));var g="defaultValue"===p||"defaultChecked"===p;if(null!=n||o||g)g||d.includes(p)&&(o||"string"!=typeof n)?t[p]=n:"function"!=typeof n&&Ei(t,p,n);else if(s[f]=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(f)}else t.value=t.__value=n}}else bi(t,n,null==e?void 0:e[ki],i[ki]),l[f]=n,l[ki]=i[ki];else fi(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,n,r,null==e?void 0:e[yi],i[yi]),l[f]=n,l[yi]=i[yi]}return l}function Mi(t){return t.__attributes??(t.__attributes={[Ti]:t.nodeName.includes("-"),[_i]:"http://www.w3.org/1999/xhtml"===t.namespaceURI})}var $i=new Map;function Ii(t){var e,i=$i.get(t.nodeName);if(i)return i;$i.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=S(r)}return i}const Li={tick:t=>requestAnimationFrame(t),now:()=>performance.now(),tasks:new Set};function Pi(){const t=Li.now();Li.tasks.forEach((e=>{e.c(t)||(Li.tasks.delete(e),e.f())})),0!==Li.tasks.size&&Li.tick(Pi)}function Ci(t,e){De((()=>{t.dispatchEvent(new CustomEvent(e))}))}function Ri(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[Ri(t.trim())]=i.trim()}return e}const Oi=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(),Ci(e,"introstart"),s=Ni(e,v(),o,1,(()=>{Ci(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,Ci(e,"outrostart"),o=Ni(e,v(),s,0,(()=>{Ci(e,"outroend"),null==t||t()}))},stop:()=>{null==s||s.abort(),null==o||o.abort()}},g=Tt;if((g.transitions??(g.transitions=[])).push(p),a&&He){var f=c;if(!f){for(var w=g.parent;w&&w.f&m;)for(;(w=w.parent)&&!(16&w.f););f=!w||!!(32768&w.f)}f&&ie((()=>{jt((()=>p.in()))}))}}function Ni(t,e,i,r,n){var s=1===r;if($(e)){var o,a=!1;return O((()=>{if(!a){var l=e({direction:s?"in":"out"});o=Ni(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:I,deactivate:I,reset:I,t:()=>r};const{delay:l=0,css:c,tick:u,easing:d=Oi}=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)),g=0;g<=m;g+=1){var f=s+o*d(g/m),w=Di(c(f,1-f));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===Li.tasks.size&&Li.tick(Pi),new Promise((i=>{Li.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=I)},deactivate:()=>{n=I},reset:()=>{0===r&&(null==u||u(1,0))},t:()=>v()}}function Fi(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 Vi(t,e){Re(t,["seeking","seeked"],(()=>e(t.seeking)))}function Ui(t,e,i=e){var r=e();Re(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 Bi(t,e){return t===e||(null==t?void 0:t[g])===e}function Wi(t={},e,i,r){return ie((()=>{var r,n;return ne((()=>{r=n,n=[],jt((()=>{t!==i(...n)&&(e(t,...n),r&&Bi(i(...r),t)&&e(null,...r))}))})),()=>{O((()=>{n&&Bi(i(...n),t)&&e(null,...n)}))}})),t}function qi(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=J((()=>{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=()=>Yt(n)}var n;i.b.length&&(n=()=>{Yi(e,r),P(i.b)},Kt(),ne(n)),ee((()=>{const t=jt((()=>i.m.map(L)));return()=>{for(const e of t)"function"==typeof e&&e()}})),i.a.length&&ee((()=>{Yi(e,r),P(i.a)}))}function Yi(t,e){if(t.l.s)for(const i of t.l.s)Yt(i);e()}function ji(t){var e,i;null===we&&fe(),U&&null!==we.l?(e=we,i=e.l,i.u??(i.u={a:[],b:[],m:[]})).m.push(t):ee((()=>{const e=jt(t);if("function"==typeof e)return e}))}function Gi(t){null===we&&fe(),ji((()=>()=>jt(t)))}function Hi(t,e,i){if(null==t)return e(void 0),I;const r=jt((()=>t.subscribe(e,i)));return r.unsubscribe?()=>r.unsubscribe():r}const Zi=[];function Ji(t,e=I){let i=null;const r=new Set;function n(e){if(F(t,e)&&(t=e,i)){const e=!Zi.length;for(const i of r)i[1](),Zi.push(i,t);if(e){for(let t=0;t<Zi.length;t+=2)Zi[t][0](Zi[t+1]);Zi.length=0}}}function s(e){n(e(t))}return{set:n,update:s,subscribe:function(o,a=I){const l=[o,a];return r.add(l),1===r.size&&(i=e(n,s)||I),o(t),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function Ki(t){let e;return Hi(t,(t=>e=t))(),e}let Qi=!1,tr=Symbol();function er(t,e,i){const r=i[e]??(i[e]={store:null,source:j(void 0),unsubscribe:I});if(r.store!==t&&!(tr in i))if(r.unsubscribe(),r.store=t??null,null==t)r.source.v=void 0,r.unsubscribe=I;else{var n=!0;r.unsubscribe=Hi(t,(t=>{n?r.source.v=t:G(r.source,t)})),n=!1}return t&&tr in i?Ki(t):Yt(r.source)}function ir(t,e,i){let r=i[e];return r&&r.store!==t&&(r.unsubscribe(),r.unsubscribe=I),t}function rr(){const t={};return[t,function(){te((()=>{for(var e in t){t[e].unsubscribe()}T(t,tr,{enumerable:!1,value:!0})}))}]}const nr={get(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if($(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];$(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($(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===g||e===f)return!1;for(let i of t.props)if($(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());for(const t in i)e.includes(t)||e.push(t)}return e}};function sr(...t){return new Proxy({props:t},nr)}function or(t){var e;return(null==(e=t.ctx)?void 0:e.d)??!1}function ar(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=Qi;try{return Qi=!1,[t(),Qi]}finally{Qi=e}}((()=>t[e])):s=t[e];var d,h=g in t||f 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?jt(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?J:Q)((()=>t[e]));y.f|=131072,d=()=>{var t=Yt(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=j(s),E=J((()=>{var t=d(),e=Yt(x);return T?(T=!1,e):x.v=t}));return l&&Yt(E),o||(E.equals=V),function(t,e){if(arguments.length>0){const i=e?Yt(E):a&&l?B(t):t;if(!E.equals(i)){if(T=!0,G(x,i),w&&void 0!==v&&(v=i),or(E))return t;jt((()=>Yt(E)))}return t}return or(E)?E.v:Yt(E)}}const lr=(t,e)=>Math.sqrt(t*t+e*e),cr=(t,e=1)=>(t%e+e)%e,ur=t=>JSON.parse(JSON.stringify(t)),dr=()=>hr()+hr()+"-"+hr()+"-"+hr()+"-"+hr()+"-"+hr()+hr()+hr(),hr=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),mr=t=>new Promise((e=>t?setTimeout(e,t):e())),vr=navigator.userAgent,pr={iOS:/ipad|iphone|ipod/i.test(vr),firefox:/firefox/i.test(vr),OSX:/macintosh/i.test(vr)&&/os\ x/i.test(vr),hasTouch:"TouchEvent"in self,safari:!1};function gr(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]={}),gr(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}pr.safari=(pr.OSX||pr.iOS)&&(/safari/i.test(vr)||/instagram/i.test(vr))&&!/chrome/i.test(vr),pr.OSX&&pr.safari&&"TouchEvent"in self&&(pr.iOS=!0,pr.OSX=!1);const fr=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,"-")},wr=[],br=(t,e,i)=>new Promise(((r,n)=>{if(i||wr.indexOf(t)>=0)return r();const s=document.createElement("script"),o=()=>{wr.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 yr(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 kr=(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)))}))})),Tr=new Map,_r=new Map,xr=new Map,Er=async(t,e)=>{if(!e&&Tr.has(t))return Tr.get(t);if(_r.has(t))return _r.get(t);if(xr.has(t))throw xr.get(t)[1];const i=fetch(t+(e?"?"+Math.random():"")).then((async e=>{if(200==e.status)return e.json();{const i=await e.text();throw xr.set(t,[e.status,i]),i}})).then((i=>(e||Tr.set(t,i),_r.delete(t),i))).catch((e=>{throw _r.delete(t),e}));return _r.set(t,i),i},Ar=t=>"MICRIO_DATA"in self?(null==self?void 0:self.MICRIO_DATA).find((e=>e[0]==t)):void 0,Sr=(t,e,i)=>{var r;const n=null==(r=Ar(t))?void 0:r[1];return n?Promise.resolve(n):Er(`${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)),Pr(t),t)))},Mr={"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 Mr)t.src.includes(e)&&(t.src=t.src.replace(e,Mr[e]))},Ir=t=>!t.viewsWH,Lr=new WeakMap,Pr=t=>{var e,i,r,n,s,o,a,l;t&&(Lr.has(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),(null==t?void 0:t.settings)&&Ir(t)&&(t.settings.view=Br.fromLegacy(t.settings.view),t.settings.restrict=Br.fromLegacy(t.settings.restrict)),Lr.set(t,!0)))},Cr=t=>{var e;$r(t.image),null==(e=t.children)||e.forEach(Cr)},Rr=[],Dr=(t,e,i,r)=>{var n,s,o,a;const l=e+"-"+t.id;if(Rr.indexOf(l)>=0)return;Rr.push(l),t.data||(t.data={}),t.id||(t.id=dr()),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($r),$r(t.positionalAudio),$r(null==(s=t.data)?void 0:s.icon),Object.values(t.i18n??{}).forEach((t=>$r(t.audio)));const c="embedImages"in t?t.embedImages:void 0;c&&c.forEach((t=>$r(t)));const u=null==(a=null==(o=t.data)?void 0:o._meta)?void 0:a.secondary;u&&(t.data.micrioSplitLink=u),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"),r&&(t.view=Br.fromLegacy(t.view),Or(t.videoTour))};function Or(t){var e;if(!t||!("i18n"in t)&&!("timeline"in t))return;const i="i18n"in t?t.i18n:{en:t};for(const r in i)null==(e=i[r])||e.timeline.forEach((t=>t.rect=Br.fromLegacy(t.rect)))}async function zr(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,o]=await Promise.all([Promise.all(n.map((e=>Er((e=>t.dataPath+(t.isV5?e+"/data/pub.json":e+"/data."+i+".json"))(e))))),Promise.all(n.map((t=>Sr(t))))]);s.forEach(((e,r)=>{var n;const s=Ir(o[r]);null==(n=null==e?void 0:e.markers)||n.forEach((e=>Dr(e,i,!t.isV5,s)))})),$r(e.image);let a=-1;const l=[];e.stepInfo=e.steps.map(((e,o)=>{var c,u,d,h,m,v,p,g,f,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)&&(a=o);const x=(null==T?void 0:T.videoTour)?"timeline"in T.videoTour?T.videoTour:(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),T.videoTour&&(null==_?void 0:_.audio)&&(T.videoTour.audio=_.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==(g=null==(p=T.data)?void 0:p._meta)?void 0:g.gridView)&&!(null==(w=null==(f=T.data)?void 0:f._meta)?void 0:w.gridAction)),chapter:a,hasSubtitle:!!(null==x?void 0:x.subtitle)}):(console.warn(`[Micrio] Warning: tour step ${o+1} with id [${b}] not found! Removing it from the tour`),void l.push(o))})).filter((t=>"object"==typeof t)),l.reverse().forEach((t=>e.steps.splice(t,1))),e.initialStep=0,e.duration=e.stepInfo.reduce(((t,e)=>t+(e.duration||0)),0)}const Nr=t=>{let e=t.charCodeAt(0),i=e<91;return(e-=i?65:97)-(e>7?1:0)+(i?24:e>10?-1:0)},Fr=t=>6==t.length||7==t.length;function Vr(t,e){var i,r;const n=t.$current;if(!n)return;const s=null==(i=t.spaceData)?void 0:i.images.find((t=>t.id==n.id)),o=null==(r=t.spaceData)?void 0:r.images.find((t=>t.id==e));if(!s||!o)return;const a=[(o.x??.5)-(s.x??.5),(s.y??.5)-(o.y??.5),(o.z??.5)-(s.z??.5)];let l=a[0]*a[0]+a[1]*a[1]+a[2]*a[2];l>0&&(l=1/Math.sqrt(l));const c=[a[0]*l,a[1]*l,a[2]*l],u=cr(Math.atan2(-c[0],c[2])/Math.PI/2);return{v:a,vN:c,directionX:u,vector:{direction:u%1,distanceX:Math.max(0,Math.min(.4,Math.sqrt(c[0]*c[0]+c[2]*c[2]))),distanceY:-a[1]}}}const Ur=t=>{const e=t??document.createElement("video");return!(!e.canPlayType("application/vnd.apple.mpegurl")&&!e.canPlayType("application/x-mpegURL"))},Br={fromLegacy:t=>{if(t)return[t[0],t[1],t[2]-t[0],t[3]-t[1]]},toCenterJSON:t=>({centerX:t[0]+t[2]/2,centerY:t[1]+t[3]/2,width:t[2],height:t[3]}),rectToCenterJSON:t=>Br.toCenterJSON([t[0],t[1],t[2]-t[0],t[3]-t[1]])},Wr=t=>t;function qr(t){const e=t-1;return e*e*e+1}function Xr(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Yr(t,{delay:e=0,duration:i=400,easing:r=Wr}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:r,css:t=>"opacity: "+t*n}}function jr(t,{delay:e=0,duration:i=400,easing:r=qr,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]=Xr(n),[m,v]=Xr(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 Gr=qe('<a rel="noopener" href="https://micr.io/" title="Powered by Micrio" aria-label="Micrio homepage"></a>');function Hr(t,e){Te(e,!0);const[i,r]=rr(),n=ye("micrio"),{tour:s,marker:o}=n.state,a=/micr\.io/.test(location.origin)&&self.parent==self?void 0:"_blank";let l,c=Y(!1);ji((()=>n.loading.subscribe((t=>{clearTimeout(l),t?Yt(c)||(l=setTimeout((()=>G(c,!0)),750)):G(c,!1)}))));const u=K((()=>!!er(s,"$tour",i)||!!er(o,"$marker",i)));var d=je(),h=ut(d),m=t=>{var e=Gr();let i;Ei(e,"target",a),se((t=>i=fi(e,1,"micrio-logo",null,i,t)),[()=>({loading:Yt(c)})]),zi(3,e,(()=>Yr),(()=>({duration:200}))),Ge(t,e)};ei(h,(t=>{Yt(u)||t(m)})),Ge(t,d),_e(),r()}var Zr=qe('<a rel="noopener" target="_blank" class="micrio-logo-org"><img alt="Logo" class="micrio-logo-org"></a>');function Jr(t,e){Te(e,!0);const[i,r]=rr(),n=ye("micrio"),{tour:s,marker:o,popover:a}=n.state;const l=K((()=>!!er(s,"$tour",i)||!!er(o,"$marker",i)||!!er(a,"$popover",i)));var c=je(),u=ut(c),d=t=>{var i=Zr(),r=ct(i);se((t=>{Ei(i,"href",e.organisation.href??"#"),Ei(i,"title",e.organisation.name),Ei(i,"aria-label",`${e.organisation.name??""} homepage`),Ei(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,(()=>Yr),(()=>({duration:200}))),Ge(t,i)};ei(u,(t=>{!Yt(l)&&e.organisation.logo&&t(d)})),Ge(t,c),_e(),r()}const Kr={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"}},Qr=Ji(Kr.en),tn={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"]},en={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"]},rn={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"]},nn={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"]},sn={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"]},on={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"]},an={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"]},ln={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"]},cn={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"]},un={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"]},dn={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"]},hn={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"]},mn={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"]},vn={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"]},pn={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"]},gn={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"]},fn={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"]},wn={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"]},bn={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"]},yn={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"]},kn={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"]},Tn={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"]},_n={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"]},xn={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"]},En={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"]},An={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 Sn(t,e){t.style.fontSize=e&&"lg"!==e&&"sm"!==e&&"xs"!==e?e.replace("x","em"):""}U=!0;var Mn=Xe('<title class="micrio-fa"> </title>'),$n=Xe('<path class="micrio-fa"></path>'),In=Xe('<path class="micrio-fa"></path><path class="micrio-fa"></path>',1),Ln=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 Pn(t,e){Te(e,!1);const i=j(),r=j();let n=ar(e,"class",24,(()=>{})),s=ar(e,"id",24,(()=>{})),o=ar(e,"style",24,(()=>{})),a=ar(e,"icon",8),c=ar(e,"title",24,(()=>{})),d=ar(e,"size",24,(()=>{})),h=ar(e,"color",24,(()=>{})),m=ar(e,"fw",8,!1),v=ar(e,"pull",24,(()=>{})),p=ar(e,"scale",8,1),g=ar(e,"translateX",8,0),f=ar(e,"translateY",8,0),w=ar(e,"rotate",24,(()=>{})),b=ar(e,"flip",24,(()=>{})),y=ar(e,"spin",8,!1),k=ar(e,"pulse",8,!1),T=ar(e,"primaryColor",8,""),_=ar(e,"secondaryColor",8,""),x=ar(e,"primaryOpacity",8,1),E=ar(e,"secondaryOpacity",8,.4),A=ar(e,"swapOpacity",8,!1),S=j();var M;re((()=>(Yt(S),Zt(d()),Sn)),(()=>{Yt(S)&&d()&&Sn(Yt(S),d())})),re((()=>Zt(a())),(()=>{G(i,a()&&a().icon||[0,0,"",[],""])})),re((()=>(Zt(p()),Zt(g()),Zt(f()),Zt(w()),Zt(b()))),(()=>{G(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(),g(),f(),w(),b(),512))})),M=we,ne((()=>{if(Yt(M.l.r2)){for(var t of M.l.r1){var e=t.effect;e.f&l&&Ht(e,u),Ct(e)&&Ft(e),t.ran=!1}M.l.r2.v=!1}})),Xi();var $=je(),I=ut($),L=t=>{var e=Ln();let a;var l=ct(e),u=t=>{var e=Mn(),i=ct(e);se((()=>Je(i,c()))),Ge(t,e)};ei(l,(t=>{c()&&t(u)}));var p=dt(l),g=ct(p),f=ct(g),w=t=>{var e=$n();se((()=>{Ei(e,"d",Yt(i)[4]),Ei(e,"fill",h()||T()||"currentColor"),Ei(e,"transform",`translate(${Yt(i)[0]/-2} ${Yt(i)[1]/-2})`)})),Ge(t,e)},b=t=>{var e=In(),r=ut(e),n=dt(r);se((()=>{Ei(r,"d",Yt(i)[4][0]),Ei(r,"fill",_()||h()||"currentColor"),Ei(r,"fill-opacity",0!=A()?x():E()),Ei(r,"transform",`translate(${Yt(i)[0]/-2} ${Yt(i)[1]/-2})`),Ei(n,"d",Yt(i)[4][1]),Ei(n,"fill",T()||h()||"currentColor"),Ei(n,"fill-opacity",0!=A()?E():x()),Ei(n,"transform",`translate(${Yt(i)[0]/-2} ${Yt(i)[1]/-2})`)})),Ge(t,e)};ei(f,(t=>{"string"==typeof Yt(i)[4]?t(w):t(b,!1)})),Wi(e,(t=>G(S,t)),(()=>Yt(S))),se((t=>{Ei(e,"id",s()),a=fi(e,0,`svelte-fa svelte-fa-base ${n()??""}`,"micrio-fa",a,t),bi(e,o()),Ei(e,"viewBox",`0 0 ${Yt(i)[0]??""} ${Yt(i)[1]??""}`),Ei(p,"transform",`translate(${Yt(i)[0]/2} ${Yt(i)[1]/2})`),Ei(p,"transform-origin",Yt(i)[0]/4+" 0"),Ei(g,"transform",Yt(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),Ge(t,e)};ei(I,(t=>{Yt(i)[4]&&t(L)})),Ge(t,$),_e()}function Cn(t,e){var i,r;Te(e,!0);let n=ar(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,l=K((()=>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))),c=new Map([["play",wn],["pause",an],["close",xn],["play-filled",on],["a11y",nn],["menu",tn],["zoom-in",Tn],["zoom-out",mn],["maximize",_n],["minimize",rn],["volume-off",kn],["volume-up",dn],["subtitles",pn],["subtitles-off",pn],["arrow-left",hn],["arrow-up",yn],["arrow-right",un],["arrow-down",gn],["video",An],["audio",dn],["image",sn],["share",En],["error",en],["chevron-down",bn],["link",fn],["link-ext",cn],["ellipsis-vertical",vn]]),u=K((()=>c.get(e.name)));var d=je(),h=ut(d),m=t=>{var e=je();li(ut(e),(()=>Yt(l))),Ge(t,e)},v=(t,e)=>{var i=t=>{Pn(t,{get icon(){return Yt(u)},size:o?"xs":"sm",get style(){return n()}})};ei(t,(t=>{Yt(u)&&t(i)}),e)};ei(h,(t=>{Yt(l)?t(m):t(v,!1)})),Ge(t,d),_e()}const Rn=Ji(void 0),Dn=()=>Rn.set(void 0);let On=!1;Rn.subscribe((t=>{t?On||window.addEventListener("click",Dn):On&&window.removeEventListener("click",Dn),On=!!t}));var zn=qe('<a class="micrio-menu-action micrio-menu"><strong class="micrio-menu"> <!></strong></a>'),Nn=qe('<button class="micrio-menu-action micrio-menu" type="button"><!> <strong class="micrio-menu"> <!></strong></button>'),Fn=qe('<div class="items micrio-menu"></div>'),Vn=qe("<menu><!> <!></menu>");function Un(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(Rn,"$opened",i);let s=ar(e,"menu",15),o=ar(e,"originalId",3,null);const a=ye("micrio"),{events:l,state:c,_lang:u}=a;let d=Y(void 0);const h=K((()=>{return t=s(),e=er(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=!!(Yt(p)||s().action||s().link);Rn.set(r?void 0:s()),r&&(null==(i=e.onclose)||i.call(e))}ji((()=>{var t,e,i,r;(null==(t=Yt(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=Yt(h))?void 0:i.content)||(null==(r=Yt(h))?void 0:r.embed)||s().image)&&s(s().action=()=>{l.dispatch("page-open",s()),c.popover.set({contentPage:s()})},!0)),s(s()._button=Yt(d),!0)}));const v=t=>{var e;return t==n()||!!(null==(e=t.children)?void 0:e.some(v))},p=K((()=>n()&&v(s())));var g=Vn();let f;var w=ct(g),b=t=>{var e=zn();e.__click=m;var i=ct(e),r=ct(i),n=dt(r);const o=K((()=>s().linkTargetBlank?"link-ext":"link"));Cn(n,{style:"opacity:.75",get name(){return Yt(o)}}),se((()=>{var t;Ei(e,"href",s().link),Ei(e,"target",s().linkTargetBlank?"_blank":void 0),Je(r,`${(null==(t=Yt(h))?void 0:t.title)??"(Unknown)"} `)})),Ge(t,e)},y=t=>{var e=Nn();e.__click=m;var i=ct(e),r=t=>{Pn(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=>{Cn(t,{name:"chevron-down"})};ei(o,(t=>{s().children&&s().children.length&&t(a)})),Wi(e,(t=>G(d,t)),(()=>Yt(d))),se((()=>{var t;return Je(n,`${(null==(t=Yt(h))?void 0:t.title)??"(Unknown)"} `)})),Ge(t,e)};ei(w,(t=>{s().link?t(b):t(y,!1)}));var k=dt(w,2),T=t=>{var e=Fn();ri(e,23,(()=>s().children),((t,e)=>e+t.id),((t,e)=>{Un(t,{get menu(){return Yt(e)},get originalId(){return o()},onclose:Dn})})),Ge(t,e)};ei(k,(t=>{s().children&&s().children.length&&t(T)})),se(((t,e)=>{Ei(g,"data-title",t),f=fi(g,1,"micrio-menu",null,f,e)}),[()=>{var t,e;return null==(e=null==(t=Yt(h))?void 0:t.title)?void 0:e.toLowerCase()},()=>({opened:Yt(p)})]),Ge(t,g),_e(),r()}Ve(["click"]);var Bn=qe('<img alt="Icon" class="micrio-button">'),Wn=qe("<!><!>",1);function qn(t,e){Te(e,!0);let i=ar(e,"type",3,void 0),r=ar(e,"icon",3,void 0),n=ar(e,"title",3,null),s=ar(e,"disabled",3,!1),o=ar(e,"active",3,!1),a=ar(e,"className",3,""),l=ar(e,"href",3,void 0),c=ar(e,"blankTarget",3,!1),u=ar(e,"noClick",3,!1);var d=je();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=Si(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,[yi]:e},"micrio-button")),[()=>({active:o(),"no-click":u()})]);var g=Wn(),f=ut(g),w=t=>{Cn(t,{get name(){return i()}})},b=(t,e)=>{var i=t=>{var e=Bn();se((()=>Ei(e,"src",r().src))),Ge(t,e)};ei(t,(t=>{r()&&t(i)}),e)};ei(f,(t=>{i()?t(w):t(b,!1)})),ci(dt(f),(()=>e.children??I)),Ge(d,g)})),Ge(t,d),_e()}var Xn=qe("<menu><!> <!> <!></menu> <!>",1);function Yn(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(c,"$current",i),s=()=>er(u,"$_lang",i);let o=Y(void 0);const a=ye("micrio"),{state:l,current:c,_lang:u,spaceData:d}=a,{tour:h,marker:m,popover:v}=l;let p=Y(!1),g=Y(!1);const f=n().id;let w=Y(void 0),b=Y(window.innerWidth<=500);const y=()=>G(b,window.innerWidth<=500),k=()=>{Yt(b)&&G(p,!1)},T=K((()=>!!er(h,"$tour",i)||!!er(m,"$marker",i)||!!er(v,"$popover",i))),_=K((()=>{var t;return((null==(t=Yt(o))?void 0:t.markerTours)??[]).concat((null==d?void 0:d.markerTours)??[])})),x=K((()=>{var t;return(null==(t=Yt(_))?void 0:t.length)>0})),E=K((()=>{var t,e,i;return(null==(t=Yt(o))?void 0:t.tours)&&(null==(i=null==(e=Yt(o))?void 0:e.tours)?void 0:i.length)>0})),A=K((()=>Yt(x)&&Yt(E))),S=K((()=>{var t;return!((null==(t=Yt(w))?void 0:t.length)||Yt(x)||Yt(E))})),M=[],$=(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)"};ji((()=>{const t=a.current.subscribe((t=>{var e;if(t){for(;M.length;)null==(e=M.shift())||e();kr(t.info).then((()=>G(g,!t.$settings.noLogo))),M.push(t.data.subscribe((t=>{G(o,t,!0),Xt().then((()=>{var e,i,r;if(!(null==t?void 0:t.pages))return;Yt(w)||G(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&&G(w,[...(null==(r=Yt(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);M.length;)null==(e=M.shift())||e();t()}}));var I=je(),L=ut(I),P=t=>{var e=Xn(),r=ut(e);let l;var c=ct(r),u=t=>{var e=je();ri(ut(e),17,(()=>Yt(w)),(t=>t.id),((t,e)=>{Un(t,{get menu(){return Yt(e)},originalId:f,onclose:k})})),Ge(t,e)};ei(c,(t=>{Yt(w)&&t(u)}));var d=dt(c,2),m=t=>{const e=K((()=>({id:dr(),i18n:{[s()]:{title:Yt(A)?"Marker tours":"Tours"}},children:Yt(_).map((t=>({id:dr(),i18n:{[s()]:{title:$(t,s())}},action:()=>{t.initialStep=0,h.set(t)}})))})));Un(t,{onclose:k,get menu(){return Yt(e)}})};ei(d,(t=>{Yt(x)&&t(m)}));var v=dt(d,2),y=t=>{const e=K((()=>({id:dr(),i18n:{[s()]:{title:Yt(A)?"Video tours":"Tours"}},children:Yt(o)&&Yt(o).tours?Yt(o).tours.map((t=>({id:dr(),i18n:{[s()]:{title:$(t,s())}},action:()=>{n()&&n().id!=f&&a.open(f),h.set(t)}}))):[]})));Un(t,{onclose:k,get menu(){return Yt(e)}})};ei(v,(t=>{Yt(E)&&t(y)}));var S=dt(r,2),M=t=>{const e=K((()=>Yt(p)?"close":"ellipsis-vertical")),r=K((()=>"toggle transparent"+(Yt(g)?" indent":"")));qn(t,{get title(){return er(Qr,"$i18n",i).menuToggle},get type(){return Yt(e)},get className(){return Yt(r)},onclick:()=>G(p,!Yt(p))})};ei(S,(t=>{Yt(b)&&t(M)})),se((t=>l=fi(r,1,"micrio-toolbar micrio-toolbar",null,l,t)),[()=>({shown:!Yt(T)&&Yt(p),indent:Yt(g)})]),zi(3,r,(()=>Yr),(()=>({duration:200}))),Ge(t,e)};ei(L,(t=>{Yt(S)||Yt(T)||t(P)})),Ge(t,I),_e(),r()}var jn=qe("<canvas></canvas>");function Gn(t,e){Te(e,!0);const[i,r]=rr(),n=ye("micrio"),{current:s}=n;n.canvas.viewport;const o=e.image.$info,a=e.image.camera,l=e.image.$settings,c=l.minimapWidth??200,u=l.minimapHeight??160,d=!l.alwaysShowMinimap,h=!!l.noControls,m=o.width/o.height,v=c/m>u?Math.round(u*m):c,p=c/m<=u?Math.round(c/m):u;let g,f=Y(void 0),w=Y(!1),b=Y(B(!o.is360&&a.isZoomedOut()));function y(t){if(!t||!g)return;M();const i=Br.toCenterJSON(t);if(g.clearRect(0,0,v,p),e.image.thumbSrc?(g.globalCompositeOperation="source-over",g.fillStyle="rgba(0,0,0,.5)",g.fillRect(0,0,v,p),g.globalAlpha=1,g.globalCompositeOperation="destination-out"):(g.fillStyle="rgba(0,0,0,.5)",g.fillRect(0,0,v,p)),g.beginPath(),g.fillStyle="white",o.is360){const e=function(t){const e=[];let{centerX:i,centerY:r,width:n,height:s}=Br.toCenterJSON(t);i=(i%1+1)%1;let o=i-n/2,a=i+n/2;const l=Math.max(0,r-s/2),c=Math.min(1,r+s/2);return o<0?(e.push({x:o+1,y:l,width:1-(o+1),height:c-l}),e.push({x:0,y:l,width:a,height:c-l})):a>1?(e.push({x:o,y:l,width:1-o,height:c-l}),e.push({x:0,y:l,width:a-1,height:c-l})):e.push({x:o,y:l,width:a-o,height:c-l}),e}(t);for(const t of e)g.rect(Math.floor(t.x*v),Math.floor(t.y*p),Math.ceil(t.width*v),Math.ceil(t.height*p))}else G(b,a.isZoomedOut(),!0),g.rect(Math.floor((i.centerX-i.width/2)*v),Math.floor((i.centerY-i.height/2)*p),Math.ceil(i.width*v),Math.ceil(i.height*p));e.image.thumbSrc&&(g.fill(),g.globalCompositeOperation="source-over"),g.stroke()}const k=-1!=navigator.userAgent.indexOf("Firefox");let T,_=Y(!1);let x,E=Y(void 0);function A(t){if(T){const e=Math.max(0,Math.min(1,(t.clientX-T.left)/T.width)),i=Math.max(0,Math.min(1,(t.clientY-T.top)/T.height));if(Yt(E)){const t=[e-Yt(E).width/2,i-Yt(E).height/2,Yt(E).width,Yt(E).height];a.setView(t)}else a.setCoo(e,i)}}function S(){window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",S),G(_,!1),G(E,void 0)}function M(){G(w,!1),clearTimeout(x),x=setTimeout((()=>G(w,!0)),2500)}const $=.5-e.image.camera.trueNorth,I=self.crossOriginIsolated;let L=Y(B(I?void 0:e.image.thumbSrc));const P={passive:!0};let C=Y(!1);ji((()=>{let t;g=Yt(f).getContext("2d"),g&&(g.lineWidth=1,g.strokeStyle="white"),I&&e.image.thumbSrc&&fetch(e.image.thumbSrc).then((t=>t.blob())).then((e=>G(L,t=URL.createObjectURL(e),!0))),n.canvas.element.addEventListener("mousemove",M,P);const i=e.image.state.view.subscribe(y);return setTimeout((()=>G(C,!0)),10),()=>{t&&URL.revokeObjectURL(t),n.canvas.element.removeEventListener("mousemove",M,P),S(),i()}}));const R=K((()=>Yt(L)?`background-image: url('${Yt(L)}')`+(0!=$?`;background-position-x:${v*$}px`:""):null));var D=jn();let O;Ei(D,"width",v),Ei(D,"height",p),D.__mousedown=function(t){if(0!=t.button)return;window.addEventListener("mousemove",A),window.addEventListener("mouseup",S),T=Yt(f).getClientRects()[0];const e=a.getView();e&&G(E,{width:e[2],height:e[3]},!0),A(t),G(_,!0)},Wi(D,(t=>G(f,t)),(()=>Yt(f))),se((t=>{bi(D,Yt(R)),O=fi(D,1,"micrio-minimap",null,O,t)}),[()=>({hidden:!Yt(C)||er(s,"$current",i)!=e.image||d&&(Yt(b)||Yt(w)),dragging:Yt(_),controls:!h})]),Fe("wheel",D,(function(t){a.zoom(t.deltaY*(k?50:1))})),Ge(t,D),_e(),r()}Ve(["mousedown"]);const Hn=(null==navigator?void 0:navigator.language)??"en-EN",Zn="Intl"in self&&Intl.DisplayNames?new Intl.DisplayNames([Hn],{type:"language"}):void 0,Jn=["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 Kn=qe("<div><!></div>");function Qn(t,e){let i=ar(e,"className",3,"");var r=Kn();ci(ct(r),(()=>e.children??I)),se((()=>fi(r,1,mi(i()),"micrio-button-group"))),Ge(t,r)}function ts(t,e){Te(e,!0);const[i,r]=rr(),n="requestFullscreen"in e.el,s="webkitRequestFullscreen"in e.el,o=ye("micrio"),a=()=>n?document.fullscreenElement:document.webkitFullscreenElement??null;let l=Y(a()===e.el);const c=n||s&&!a(),u=()=>new Promise((t=>setTimeout(t,500)));let d;function h(){Yt(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(),pr.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=()=>{G(l,a()===e.el),m&&(Yt(l)?o.events.hookScroll():o.events.unhookScroll())};c&&ji((()=>{const t=n?"fullscreenchange":"webkitfullscreenchange";return document.addEventListener(t,v),()=>document.removeEventListener(t,v)}));var p=je(),g=ut(p),f=t=>{const e=K((()=>Yt(l)?"minimize":"maximize"));qn(t,{get type(){return Yt(e)},get title(){return er(Qr,"$i18n",i).fullscreenToggle},onclick:h})};ei(g,(t=>{c&&t(f)})),Ge(t,p),_e(),r()}var es=qe("<!> <!>",1);function is(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(Qr,"$i18n",i);let s=ar(e,"image",15,void 0);const o=ye("micrio");let a=Y(!1),l=Y(!1),c=Y(!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;G(a,(null==(t=s())?void 0:t.camera.isZoomedIn())??!0,!0),G(l,(null==(e=s())?void 0:e.camera.isZoomedOut(!0))??!0,!0)}let v,p;ji((()=>(s()?v=s().state.view.subscribe(m):p=o.current.subscribe((t=>{v&&(v(),v=void 0),G(c,!0),s(t)?kr(t.info).then((()=>{s()&&(v=s().state.view.subscribe(m)),G(c,!1)})):G(c,!1)})),()=>{p&&p(),v&&v()})));var g=je(),f=ut(g),w=t=>{var e=es(),i=ut(e);const r=K((()=>Yt(c)||Yt(a)));qn(i,{type:"zoom-in",get title(){return n().zoomIn},get disabled(){return Yt(r)},onclick:d});var s=dt(i,2);const o=K((()=>Yt(c)||Yt(l)));qn(s,{type:"zoom-out",get title(){return n().zoomOut},get disabled(){return Yt(o)},onclick:h}),Ge(t,e)};ei(f,(t=>{Yt(a)&&Yt(l)||t(w)})),Ge(t,g),_e(),r()}var rs=qe('<menu class="popout micrio-controls"><!> <!></menu>'),ns=qe("<!> <!>",1),ss=qe("<aside><!></aside>"),os=qe('<aside class="micrio-controls"><!> <!> <!> <!></aside> <!>',1);function as(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(m,"$current",i),s=()=>er(Yt(k),"$info",i),o=()=>er(g,"$_lang",i),a=()=>er(f,"$tour",i),l=()=>er(b,"$zoom",i),c=()=>er(p,"$isMuted",i),u=()=>er(Qr,"$i18n",i);let d=ar(e,"hasAudio",3,!1);const h=B(ye("micrio")),{current:m,state:v,isMuted:p,_lang:g}=h,f=v.tour,{controls:w,zoom:b,hidden:y}=h.state.ui,k=K((()=>{var t;return null==(t=n())?void 0:t.info})),T=K((()=>{var t;return s()&&n()?n().isV5?Object.keys(s().revision??{[o()]:0}):(null==(t="cultures"in s()?s().cultures:"")?void 0:t.split(","))??[]:[]})),_=K((()=>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=Y(null),A=Y(!1);function S(t){const e=t.detail;G(A,h.canvas.viewport.portrait,!0),e.opts.isPassive||G(E,e,!0)}function M(){G(E,null)}let $=Y(!1),I=Y(!1),L=Y(!1);function P(t){var e,i;b.set(!t.noZoom),w.set(!t.noControls),G($,!!(null==(i=null==(e=t.ui)?void 0:e.controls)?void 0:i.cultureSwitch)),G(I,!!t.social),G(L,!!t.fullscreen)}n()&&P(n().$settings),ji((()=>{let t;h.addEventListener("splitscreen-start",S),h.addEventListener("splitscreen-stop",M);const e=h.current.subscribe((e=>{e&&kr(e.info).then((i=>{!i||a()&&"steps"in a()||(null==t||t(),t=e.settings.subscribe(P))}))}));return()=>{h.removeEventListener("splitscreen-start",S),h.removeEventListener("splitscreen-stop",M),null==t||t(),e()}}));const C=K((()=>"micrioAudioContext"in window||d())),R=K((()=>Yt($)&&Yt(T).length>1)),D=K((()=>Yt(I)&&"share"in navigator)),O=K((()=>Yt(L)&&!Yt(_))),z=K((()=>er(w,"$controls",i)&&!er(y,"$hidden",i)&&(Yt(C)||Yt(R)||Yt(D)||l()||Yt(O))));var N=je(),F=ut(N),V=t=>{var e=os(),i=ut(e),r=ct(i),n=t=>{const e=K((()=>c()?"volume-off":"volume-up")),i=K((()=>c()?u().audioUnmute:u().audioMute));qn(t,{get type(){return Yt(e)},get title(){return Yt(i)},onclick:()=>p.set(!c())})};ei(r,(t=>{Yt(C)&&t(n)}));var s=dt(r,2),a=t=>{var e=rs(),i=ct(e);qn(i,{get title(){return u().switchLanguage},type:"a11y"}),ri(dt(i,2),17,(()=>Yt(T)),ii,((t,e)=>{const i=K((()=>(null==Zn?void 0:Zn.of(Yt(e)))??Yt(e))),r=K((()=>Yt(e)==o()));qn(t,{onclick:()=>h.lang=Yt(e),get title(){return Yt(i)},get active(){return Yt(r)},children:(t,i)=>{var r=Ye();se((t=>Je(r,t)),[()=>Yt(e).toUpperCase()]),Ge(t,r)},$$slots:{default:!0}})})),Ge(t,e)};ei(s,(t=>{Yt(R)&&t(a)}));var d=dt(s,2),m=t=>{qn(t,{type:"share",get title(){return u().share},onclick:x})};ei(d,(t=>{Yt(D)&&t(m)})),Qn(dt(d,2),{children:(t,e)=>{var i=ns(),r=ut(i),n=t=>{var e=je(),i=ut(e),r=t=>{is(t,{get image(){return Yt(E)}})},n=t=>{is(t,{})};ei(i,(t=>{Yt(E)?t(r):t(n,!1)})),Ge(t,e)};ei(r,(t=>{l()&&t(n)}));var s=dt(r,2),o=t=>{ts(t,{get el(){return h}})};ei(s,(t=>{Yt(O)&&t(o)})),Ge(t,i)},$$slots:{default:!0}});var v=dt(i,2),g=t=>{var e=ss();let i;Qn(ct(e),{children:(t,e)=>{is(t,{})},$$slots:{default:!0}}),se((t=>i=fi(e,1,"primary micrio-controls",null,i,t)),[()=>({portrait:Yt(A)})]),zi(3,e,(()=>Yr)),Ge(t,e)};ei(v,(t=>{l()&&Yt(E)&&t(g)})),Ge(t,e)};ei(F,(t=>{Yt(z)&&t(V)})),Ge(t,N),_e(),r()}class ls{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:this.data.isLegacy?Br.fromLegacy(r.rect):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?void 0: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=Br.toCenterJSON(i.view),n=this.getView(this.currentIndex-1),s=n?Br.toCenterJSON(n):void 0,o=null==(e=this.image.opts)?void 0:e.area;if(this.wasPaused&&s){const e=this.micrio.wasm.e.ease(t),i={centerX:s.centerX*(1-e)+r.centerX*e,centerY:s.centerY*(1-e)+r.centerY*e,width:s.width*(1-e)+r.width*e,height:s.height*(1-e)+r.height*e};this.image.camera.setView([i.centerX-i.width/2,i.centerY-i.height/2,i.width,i.height],{noLimit:!0,area:o}),this.nextStep()}else this.image.camera.flyToView(i.view,{duration:i.duration,progress:t,prevView:s?[s.centerX-s.width/2,s.centerY-s.height/2,s.width,s.height]:void 0,area:o}).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=ls;var cs=(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))(cs||{}),us=(t=>(t[t.YouTube=1]="YouTube",t[t.Vimeo=2]="Vimeo",t))(us||{});const ds="micrio-captions-disable",hs=Ji("1"!=localStorage.getItem(ds));hs.subscribe((t=>{t?localStorage.removeItem(ds):localStorage.setItem(ds,"1")}));var ms=qe('<div><p class="micrio-subtitles"> </p></div>');function vs(t,e){Te(e,!0);const[i,r]=rr();let n=ar(e,"raised",3,!1);const s=B([]);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=>3===t.length?3600*t[0]+60*t[1]+t[2]:2===t.length?60*t[0]+t[1]:0));s.push({start:n,end:o,data:r.join("\n")}),i+=r.length+1}})).catch((t=>console.error("Subtitles: fetch error:",t)));const o=ye("micrio");let a=Y(0);const l=t=>G(a,t.detail,!0);ji((()=>(o.addEventListener("timeupdate",l),()=>o.removeEventListener("timeupdate",l))));const c=K((()=>s.filter((t=>t.start<=Yt(a)&&t.end>=Yt(a)))));var u=je(),d=ut(u),h=t=>{var e=je();ri(ut(e),16,(()=>Yt(c)),(t=>t),((t,e)=>{var i=ms();let r;var s=ct(i),o=ct(s);se((t=>{r=fi(i,1,"micrio-subtitles",null,r,t),Je(o,e.data)}),[()=>({raised:n()})]),zi(3,i,(()=>Yr)),Ge(t,i)})),Ge(t,e)};ei(d,(t=>{er(hs,"$captionsEnabled",i)&&t(h)})),Ge(t,u),_e(),r()}var ps=t=>t.stopPropagation(),gs=t=>t.stopPropagation(),fs=qe('<div class="container micrio-progress-bar"><div class="bars micrio-progress-bar"><!></div> <div class="time micrio-progress-bar"> </div></div>');function ws(t,e){Te(e,!0);let i=ar(e,"ended",11,!1);var r=fs();r.__click=[ps],r.__keydown=[gs];var n=ct(r);ci(ct(n),(()=>e.children??I));var s=ct(dt(n,2));se(((t,e)=>{bi(r,t),Je(s,e)}),[()=>`--progress: ${Math.round((e.currentTime??0)/e.duration*1e4)/100}%;--time: '${yr(e.currentTime??0)}';`,()=>yr(i()||!e.currentTime||e.currentTime<=0?e.duration:(e.currentTime??0)-e.duration)]),Ge(t,r),_e()}Ve(["click","keydown"]);var bs=t=>t.stopPropagation(),ys=t=>t.stopPropagation(),ks=Xe('<svg height="42" width="42" class="micrio-media-controls"><circle r="19" cx="21" cy="21" class="micrio-media-controls"></circle></svg>'),Ts=qe("<!> <!> <!>",1),_s=qe('<div class="bar active"></div>'),xs=qe('<aside class="micrio-media-controls"><!> <!></aside> <!>',1);Ve(["click","keydown","mousedown"]);const Es=new Audio;var As=(t,e,i)=>{t.target==Yt(e)&&i(t)},Ss=qe("<iframe></iframe>"),Ms=qe('<source type="video/mp4;codecs=hvc1">'),$s=qe("<!> <source>",1),Is=qe('<video playsinline="" class="micrio-media"><!></video>',2),Ls=qe("<audio></audio>"),Ps=qe("<micr-io></micr-io>",2),Cs=qe("<aside><!></aside>"),Rs=qe('<figcaption class="micrio-media"><!></figcaption>'),Ds=qe('<div class="show-play micrio-media"><!></div>'),Os=qe("<figure><div><!> <!> <!></div> <!></figure> <!>",1);function zs(t,e){var i,r,n,s,o,a,l;Te(e,!0);const[c,u]=rr(),d=()=>er(X,"$_lang",c),h=ye("micrio");let m=ar(e,"src",15,void 0),v=ar(e,"volume",15,1),p=ar(e,"width",3,640),g=ar(e,"height",3,380),f=ar(e,"frameScale",3,1),w=ar(e,"autoplay",15,!1),b=ar(e,"loop",3,!1),y=ar(e,"loopDelay",3,void 0),k=ar(e,"controls",15,!1),T=ar(e,"title",3,void 0),_=ar(e,"figcaption",3,null),x=ar(e,"paused",15,!0),E=ar(e,"forcePause",3,void 0),A=ar(e,"seeking",15,!0),S=ar(e,"duration",31,(()=>-1)),M=ar(e,"currentTime",15),$=ar(e,"is360",3,!1),I=ar(e,"tour",3,null),L=ar(e,"secondary",3,!1),P=ar(e,"fullscreen",3,void 0),C=ar(e,"className",3,null),R=ar(e,"hasTransparentH265",3,!1),D=ar(e,"noPlayOverlay",3,!1),O=ar(e,"uuid",15,""),z=ar(e,"image",19,(()=>Ki(h.current))),N=ar(e,"destroying",3,void 0),F=ar(e,"_media",15,void 0);const V=K((()=>0==v()));O(O()+(m()??(null==(i=I())?void 0:i.id)));const U=z().$info,{events:W,state:q,_lang:X}=h,j=ye("volume"),H=0==er(j,"$mainVolume",c),Z=ye("srt");let J;const Q=q.mediaState.get(O());Q&&(M(Q.currentTime),w(!x(Q.paused))),q.mediaState.set(O(),{get currentTime(){return M()??0},set currentTime(t){Dt(t)},get paused(){return x()},set paused(t){t?Rt():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=Y(B(m()));const it=m()&&m().startsWith("cfvid://"),rt=m()&&m().toLowerCase(),nt=rt?rt.endsWith("mp3")?cs.Audio:rt.endsWith(".mp4")||rt.endsWith(".webm")||it?cs.Video:rt.startsWith("micrio://")?cs.Micrio:rt.startsWith("http")?cs.IFrame:cs.None:I()?cs.VideoTour:cs.None,st=nt==cs.Micrio?null==(n=m())?void 0:n.slice(9).split(","):null;let ot,at,lt,ht;st&&x(!1);let mt=-1,vt=Y(!1);const pt=nt==cs.Audio&&pr.iOS;let gt=Y(void 0);const ft=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()&&!ft&&wt&&wt[5])if("playlist"==wt[5]){const t=/list=([^&]+)/.exec(m());(null==t?void 0:t[1])&&G(et,`${tt}/embed/videoseries?list=${t[1]}`)}else{ot=us.YouTube;const t=Math.round((bt.test(m())?Number(m().replace(bt,"$1")):M())??0);G(et,`${tt}/embed/${wt[5]}?autoplay=0&enablejsapi=1&controls=0&start=${t}`),G(vt,!0)}if(!ft&&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=us.Vimeo,G(et,`https://player.vimeo.com/video/${t[1]}?${e?`h=${e}&`:""}title=0&portrait=0&sidedock=0&byline=0&controls=0#t=`+Math.round(M()??0)+"s"),G(vt,!0)}}let yt;it&&m()&&(yt=`https://videodelivery.net/${m().slice(8)}/manifest/video.m3u8`,G(et,void 0));let kt=Y(void 0);if(I()){const t=new ls(z(),I());null!=M()&&M()>0&&(t.currentTime=M()),nt==cs.VideoTour&&(S("duration"in I()?Number(I().duration):(null==(o=null==(s=I().i18n)?void 0:s[d()])?void 0:o.duration)??0),v(NaN)),G(kt,t,!0)}(nt==cs.Micrio||nt==cs.IFrame&&!ot)&&k(!1);const Tt=I()&&!("steps"in I())?"subtitle"in I()?I().subtitle:null==(l=null==(a=I().i18n)?void 0:a[h.lang])?void 0:l.subtitle:void 0,_t=Tt&&("fileUrl"in Tt?Tt.fileUrl:Tt.src);function xt(){A(!1),$()&&z()&&!z()._video&&z().video.set(F())}let Et=Y(!1);function At(){G(Et,!1),x(!1),Yt(kt)&&F()&&(F().duration>Yt(kt).duration&&(Yt(kt).duration=F().duration),Yt(kt).currentTime=F().currentTime,Yt(kt).play())}function St(t){t&&"button"in t&&0!=t.button||(x()?Ct():Rt())}const Mt=async()=>F()?F().paused:Yt(kt)?x():at?[-1,0,2].indexOf(at.getPlayerState())>=0:ot==us.YouTube?x():!!lt&&await lt.getPaused();let $t=Y(!1),It=!1;const Lt=ye("mediaPaused");let Pt;async function Ct(t){var i,r,n,s;if(!(t&&t instanceof PointerEvent&&0!=t.button)&&(!It||await Mt())){switch(G(Nt,!1),S()>0&&null!=M()&&M()>=S()&&M(0),!L()&&_t&&Z.set(_t),nt){case cs.VideoTour:x(A(!1)),null==(i=Yt(kt))||i.play(),Vt();break;case cs.Audio:case cs.Video:null==(r=F())||r.addEventListener("play",(()=>{F()&&(isNaN(F().duration)?F().addEventListener("durationchange",At,{once:!0}):At())}),{once:!0}),null==(n=F())||n.play().catch((t=>{var i;D()?x(!0):/pause\(\)/.test(t.toString())||(G(Et,!0),h.events.dispatch("media-blocked"),null==(i=e.onblocked)||i.call(e))}));break;case cs.IFrame:switch(ot){case us.YouTube:at&&at.playVideo();break;case us.Vimeo:lt&&lt.play()}break;default:return}It=!0,W.dispatch("media-play"),Lt.set(!1),null==(s=e.onplay)||s.call(e),$()||H||Yt(kt)&&!F()||j.set(z().$settings.mutedVolume||0)}}function Rt(){W.dispatch("media-pause"),Lt.set(!0),F()?(F().pause(),pt&&x(!0)):Yt(kt)?(Yt(kt).pause(),x(!0),Ut()):(null==at?void 0:at.pauseVideo)&&!Yt(jt)?at.pauseVideo():(null==lt?void 0:lt.pause)&&lt.pause()}function Dt(t){A(!0),F()?F(F().currentTime=t,!0):Yt(kt)?(M(Yt(kt).currentTime=t),A(!1)):(null==at?void 0:at.seekTo)?at.seekTo(t):(null==lt?void 0:lt.setCurrentTime)&&lt.setCurrentTime(t)}function Ot(){Yt(kt)?(M(Yt(kt).currentTime),Yt(kt).ended&&Ft()):(null==at?void 0:at.getCurrentTime)&&M(at.getCurrentTime()),zt()}function zt(){L()||W.dispatch("timeupdate",M())}let Nt=Y(!1);function Ft(){var t;Yt(Nt)||(Yt(kt)?Rt():(x(!0),Ut()),G(Nt,!0),W.dispatch("media-ended"),null==(t=e.onended)||t.call(e),Xt())}function Vt(){mt>=0||(mt=setInterval(Ot,250),Ot())}function Ut(){clearInterval(mt),mt=-1}async function Bt(){if(it&&!Ur(F()))return br("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==cs.IFrame){if(ot==us.YouTube)return async function(){if(!at){if(window.YT||await br("https://i.micr.io/youtube.js","onYouTubeIframeAPIReady"),window.YT)return A(!0),new Promise(((t,e)=>{at=new window.YT.Player(Yt(gt),{host:tt,width:Yt(oe).toString(),height:Yt(ae).toString(),playerVars:{controls:0},events:{onError:e,onReady:()=>{Yt(jt)?e():(S(at.getDuration()),A(!1),t())},onStateChange:t=>{switch(t.data){case-1:G($t,x(!0),!0),Ut();break;case 0:Ft();break;case 1:Vt(),G($t,x(A(!1)),!0);break;case 2:x(!0),Ut();break;case 3:Ot(),A(!0),Ut()}}}})}));G(vt,!1)}}();if(ot==us.Vimeo)return async function(){if(!lt){if(window.Vimeo||await br("https://i.micr.io/vimeo.min.js"),window.Vimeo)return A(!0),new Promise(((t,e)=>{const i=lt=new window.Vimeo.Player(Yt(gt),{width:Yt(oe).toString(),height:Yt(ae).toString(),title:!1,autoplay:!1});i.on("error",e),i.on("loaded",(()=>i.getVolume().then((i=>{Yt(jt)?e():t()})))),i.on("play",(()=>x(A(!1)))),i.on("bufferstart",(()=>A(!0))),i.on("seeked",(()=>{A(!1)})),i.on("pause",(()=>x(!0))),i.on("volumechange",(t=>{})),i.on("timeupdate",(t=>{t&&(S(t.duration),M(t.seconds))})),i.on("ended",Ft)}));G(vt,!1)}}()}else F()&&(it&&G(et,yt,!0),function(){if(!F())return;F(F().ontimeupdate=zt,!0),Yt(kt)&&(F(F().onpause=()=>{var t,e;qt=!!(null==(t=F())?void 0:t.ended),(null==(e=F())?void 0:e.ended)||Yt(kt).pause()},!0),F(F().onseeked=()=>{!F()||F().ended||qt||(Yt(kt).currentTime=F().currentTime,Wt&&(F().pause(),Wt=!1))},!0));null!=M()&&M()>0&&(F().duration>0?F(F().currentTime=M(),!0):F(F().oncanplay=()=>{F()&&(F(F().oncanplay=null,!0),w()||(F().play(),Wt=!0),F(F().currentTime=J,!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 Wt=!1,qt=!1;function Xt(){H||j.set(1)}let jt=Y(!1);const Gt=N()&&N().subscribe((t=>t&&Zt())),Ht=()=>{var t;return M((null==(t=F())?void 0:t.currentTime)??0)};function Zt(){if(!Yt(jt)){if(G(jt,!0),Gt&&Gt(),$()&&z()&&z().video.set(void 0),q.mediaState.delete(O()),Ut(),Rt(),Xt(),_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",Ht)),F(F().ontimeupdate=F(F().onpause=F(F().onseeked=F(F().oncanplay=null,!0),!0),!0),!0)),Yt(kt))Yt(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&&lt.destroy()}}const Jt=nt==cs.Video;let Kt=Y(B(Jt&&it&&1!=f()&&pr.iOS));ji((()=>{var t,i;null==(t=e.onid)||t.call(e,O()),m()&&pt&&(F(Es),F(F().controls=!1,!0),F(F().onloadedmetadata=()=>{var t;return S((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",Ht),F(F().onseeking=()=>A(!0),!0),F(F().onseeked=()=>A(!1),!0)),J=M()||0,G(vt,ot==us.YouTube||ot==us.Vimeo,!0),Bt().then((()=>{w()&&Ct()})).catch((()=>{})),Yt(Kt)&&(null==(i=F())||i.addEventListener("playing",(()=>G(Kt,!1)),{once:!0}));const r=h.isMuted.subscribe((t=>function(t){F()?F(F().muted=t,!0):(null==at?void 0:at.mute)?t?at.mute():at.unMute():lt&&lt.setVolume(t?0:1)}(t)));return()=>{Zt(),r(),pt&&F(void 0),ht?ht.destroy():at?at.destroy():lt&&lt.destroy()}})),ee((()=>{F()&&nt==cs.Video&&!Yt(V)&&F(F().muted=0==v(),!0)})),ee((()=>{void 0!==E()&&x(E())})),ee((()=>{b()&&void 0!==y()&&clearTimeout(Pt)}));const Qt=K((()=>{var t,e;return Yt(kt)&&I()?"events"in I()?I().events:(null==(e=null==(t=I().i18n)?void 0:t[d()])?void 0:e.events)??void 0:void 0}));let te=Y(void 0),ie=Y(void 0);const re=U.is360?Math.PI/2:1,ne=K((()=>Jt?f()*re:nt==cs.IFrame?Math.max(f(),Math.min(p()/512,g()/512)):1)),oe=K((()=>Jt?p():Math.round(p()/Yt(ne)*re))),ae=K((()=>Jt?g():Math.round(g()/Yt(ne)*re)));var le=je(),ce=ut(le),ue=t=>{var e=Os(),i=ut(e);let r;bi(i,null);var n=ct(i);let s;n.__pointerup=[As,ie,St];var o=ct(n),a=t=>{var e=Ss();let i;Wi(e,(t=>G(gt,t)),(()=>Yt(gt))),se(((t,r)=>i=Si(e,i,{...t,title:T(),src:Yt(et),width:Yt(oe),height:Yt(ae),frameborder:"0",allow:"fullscreen *;autoplay *;encrypted-media *",[yi]:r},"micrio-media")),[()=>({credentialless:!0}),()=>({hooked:Yt(vt)&&!Yt($t)})]),Ge(t,e)},l=(t,e)=>{var i=t=>{var e=Is();e.controls=!1;var i=ct(e),r=t=>{var e=$s(),i=ut(e),r=t=>{var e=Ms();se((t=>Ei(e,"src",t)),[()=>Yt(et).replace(".webm",".mp4")]),Ge(t,e)};ei(i,(t=>{R()&&Yt(et).endsWith(".webm")&&t(r)}));var n=dt(i,2);Ei(n,"type",it?"application/x-mpegURL":void 0),se((()=>Ei(n,"src",Yt(et)))),Ge(t,e)};ei(i,(t=>{Yt(et)&&t(r)})),Wi(e,(t=>F(t)),(()=>F())),se((()=>{e.loop=b()&&(null==y()||y()<=0),Ei(e,"width",p()),Ei(e,"height",g()),bi(e,Yt(Kt)?"opacity: 0":void 0),e.muted=Yt(V),e.autoplay=!!w()})),Fe("canplay",e,xt),Fe("ended",e,Ft),qi("duration","durationchange",e,S),Fi(e,M),Vi(e,A),Ui(e,x),Ge(t,e)},r=(t,e)=>{var i=t=>{var e=Ls();e.controls=!1,Wi(e,(t=>F(t)),(()=>F())),se((()=>{Ei(e,"src",Yt(et)),e.muted=Yt(V)})),Fe("canplay",e,(()=>A(!1))),Fe("ended",e,Ft),qi("duration","durationchange",e,S),Fi(e,M),Vi(e,A),Ui(e,x),Ge(t,e)},r=(t,e)=>{var i=t=>{var e=Ps();Ai(e,"data-logo","false"),se((()=>Ai(e,"id",st[0]))),se((()=>Ai(e,"width",st[1]))),se((()=>Ai(e,"height",st[2]))),se((()=>Ai(e,"lang",st[3]))),se((()=>Ai(e,"data-path",U.path))),Ge(t,e)};ei(t,(t=>{nt==cs.Micrio&&st&&t(i)}),e)};ei(t,(t=>{nt!=cs.Audio||pt?t(r,!1):t(i)}),e)};ei(t,(t=>{nt==cs.Video?t(i):t(r,!1)}),e)};ei(o,(t=>{nt==cs.IFrame?t(a):t(l,!1)}));var u=dt(o,2),d=t=>{!function(t,e){Te(e,!0);let i=ar(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}))}));ee((()=>{n(i())})),Gi((()=>n(1/0))),_e()}(0,{get events(){return Yt(Qt)},get currentTime(){return M()},set currentTime(t){M(t)},get duration(){return S()},set duration(t){S(t)}})};ei(u,(t=>{var e;(null==(e=Yt(Qt))?void 0:e.length)&&S()>0&&!Yt(jt)&&t(d)}));var m=dt(u,2),v=t=>{var e=Cs();let i;var r=ct(e);const n=K((()=>$()||nt!=cs.IFrame&&nt!=cs.Video?P():Yt(te)));!function(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(v,"$globalVolume",i),s=()=>er(Qr,"$i18n",i),o=()=>er(hs,"$captionsEnabled",i);let a=ar(e,"currentTime",15),l=ar(e,"duration",11,0),c=ar(e,"seeking",11,!0),u=ar(e,"minimal",3,!1),d=ar(e,"ended",15),h=ar(e,"fullscreen",3,void 0),m=ar(e,"subtitles",3,!1);ye("micrio");const v=ye("volume"),p=K((()=>0==n())),g=K((()=>!isNaN(n())||0==n()));let f=Y(void 0);function w(t){0==t.button&&(window.addEventListener("mousemove",b),window.addEventListener("mouseup",y),b(t))}function b(t){var i;const r=Yt(f).getClientRects()[0],n=Math.min(1,Math.max(0,(t.clientX-r.left)/r.width));null==(i=e.onseek)||i.call(e,n*l())}function y(){window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",y)}var k=xs(),T=ut(k);T.__click=[bs],T.__keydown=[ys];var _=ct(T);const x=K((()=>e.paused?"play":"pause")),E=K((()=>e.paused?s().play:s().pause));qn(_,{get type(){return Yt(x)},get title(){return Yt(E)},get onclick(){return e.onplaypause},children:(t,e)=>{var i=je(),r=ut(i),n=t=>{var e=ks(),i=ct(e);se((()=>Ei(i,"stroke-dashoffset",119.4*(1-a()/l())))),Ge(t,e)};ei(r,(t=>{u()&&void 0!==a()&&a()>0&&t(n)})),Ge(t,i)},$$slots:{default:!0}});var A=dt(_,2),S=t=>{var i=Ts(),r=ut(i),n=t=>{const i=K((()=>Yt(p)?"volume-off":"volume-up")),r=K((()=>Yt(p)?s().audioUnmute:s().audioMute));qn(t,{get disabled(){return c()},get type(){return Yt(i)},get title(){return Yt(r)},get onclick(){return e.onmute}})};ei(r,(t=>{Yt(g)&&t(n)}));var a=dt(r,2),l=t=>{const e=K((()=>o()?"subtitles":"subtitles-off"));qn(t,{get type(){return Yt(e)},get active(){return o()},get title(){return s().subtitlesToggle},onclick:()=>hs.set(!o())})};ei(a,(t=>{m()&&t(l)}));var u=dt(a,2),d=t=>{ts(t,{get el(){return h()}})};ei(u,(t=>{h()&&t(d)})),Ge(t,i)};ei(A,(t=>{u()||t(S)}));var M=dt(T,2),$=t=>{ws(t,{get duration(){return l()},get currentTime(){return a()},set currentTime(t){a(t)},get ended(){return d()},set ended(t){d(t)},children:(t,e)=>{var i=_s();i.__mousedown=w,Wi(i,(t=>G(f,t)),(()=>Yt(f))),se((()=>bi(i,`--progress:${(a()??0)/l()*100}%;`))),Ge(t,i)},$$slots:{default:!0}})};ei(M,(t=>{u()||t($)})),Ge(t,k),_e(),r()}(r,{subtitles:!!_t,get fullscreen(){return Yt(n)},onplaypause:St,onmute:()=>h.isMuted.set(!Yt(V)),onseek:t=>Dt(t),get paused(){return x()},set paused(t){x(t)},get seeking(){return A()},set seeking(t){A(t)},get duration(){return S()},set duration(t){S(t)},get currentTime(){return M()},set currentTime(t){M(t)},get ended(){return Yt(Nt)},set ended(t){G(Nt,t,!0)}}),se((t=>i=fi(e,1,"micrio-media",null,i,t)),[()=>({inside:"inside"==k()})]),Ge(t,e)};ei(m,(t=>{k()&&t(v)})),Wi(n,(t=>G(ie,t)),(()=>Yt(ie)));var f=dt(n,2),E=t=>{var e=Rs();li(ct(e),_),Ge(t,e)};ei(f,(t=>{_()&&t(E)})),Wi(i,(t=>G(te,t)),(()=>Yt(te)));var I=dt(i,2),L=t=>{var e=Ds();e.__pointerup=Ct,qn(ct(e),{get title(){return er(Qr,"$i18n",c).play},type:"play"}),Ge(t,e)};ei(I,(t=>{Yt(Et)&&t(L)})),se(((t,e)=>{r=fi(i,1,mi(C()),"micrio-media",r,t),bi(n,1==Yt(ne)||nt!=cs.Video&&U.is360?"":`transform:scale(${Yt(ne)})`),s=fi(n,1,"micrio-media",null,s,e)}),[()=>({paused:x(),is360:$(),"media-video":nt==cs.IFrame||nt==cs.Video,"media-micrio":nt==cs.Micrio}),()=>({videotour:!!Yt(kt)})]),Ge(t,e)};ei(ce,(t=>{z().$settings.noUI||t(ue)})),Ge(t,le),_e(),u()}Ve(["pointerup"]);var Ns=t=>t.stopPropagation(),Fs=qe("<article><!></article>");function Vs(t,e){Te(e,!0);let i=ar(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=Fs();n.__click=[Ns],n.__keydown=r,n.__pointerdown=r,ci(ct(n),(()=>e.children??I)),se((()=>fi(n,1,mi(i()),"micrio-article"))),Ge(t,n),_e()}Ve(["click","keydown","pointerdown"]);var Us=qe('<h1 class="micrio-marker-content"> </h1>'),Bs=qe('<figcaption class="micrio-marker-content"> </figcaption>'),Ws=qe('<button class="micrio-marker-content"><figure class="micrio-marker-content"><img class="micrio-marker-content"> <!></figure></button>'),qs=qe('<section class="micrio-marker-content"></section>'),Xs=qe("<!> <!>",1),Ys=qe("<main><!> <!> <!> <!> <!> <!> <!></main>");function js(t,e){var i,r,n;Te(e,!0);const[s,o]=rr(),a=()=>er(g,"$tour",s),l=()=>er(p,"$lang",s);let c=ar(e,"noEmbed",3,!1),u=ar(e,"noImages",3,!1),d=ar(e,"noGallery",3,!1),h=ar(e,"_content",15),m=ar(e,"_title",15);const v=ye("micrio"),p=v._lang,g=v.state.tour,f=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),_=K((()=>e.marker.i18n?e.marker.i18n[l()]:e.marker)),x=K((()=>{var t,i,r,n,s;return!((null==(t=Yt(_))?void 0:t.title)||(null==(i=Yt(_))?void 0:i.audio)||e.marker.images&&e.marker.images.length||(null==(r=Yt(_))?void 0:r.embedUrl)||e.marker.videoTour||(null==(n=Yt(_))?void 0:n.body)||(null==(s=Yt(_))?void 0:s.bodySecondary))})),E=()=>{var t;a()&&"steps"in a()&&(a().isSerialTour||b.tourAutoProgress)&&(null==(t=e.onclose)||t.call(e))};const A=K((()=>{var t;return!y||!(null==(t=e.marker)?void 0:t.audioAutoPlay)})),S=K((()=>{var t,i,r;return!1===(null==(t=e.marker)?void 0:t.embedAutoPlay)||!y||!(!(null==(i=Yt(_))?void 0:i.audio)||!(null==(r=e.marker)?void 0:r.audioAutoPlay))})),M=null==(n=w.tileBase)?void 0:n.includes("micrio.dev"),$=t=>{var e,i;return null==(i=null==(e=t.i18n)?void 0:e[l()])?void 0:i.title},I=K((()=>{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=Yt(_))?void 0:n.audio)})),L=K((()=>Yt(I)?"fileUrl"in Yt(I)?Yt(I).fileUrl:Yt(I).src:void 0)),P=K((()=>{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=je(),R=ut(C),D=t=>{var i=Ys();let r;var n=ct(i),s=t=>{var e=Us(),i=ct(e);Wi(e,(t=>m(t)),(()=>m())),se((()=>Je(i,Yt(_).title))),Ge(t,e)};ei(n,(t=>{Yt(_).title&&t(s)}));var o=dt(n,2),a=t=>{Vs(t,{children:(t,e)=>{var i=je();li(ut(i),(()=>Yt(_).body)),Ge(t,i)},$$slots:{default:!0}})};ei(o,(t=>{Yt(_).body&&b.primaryBodyFirst&&t(a)}));var l=dt(o,2),d=t=>{const i=K((()=>e.marker.audioAutoPlay||!Yt(_).audio&&!!e.marker.videoTour)),r=K((()=>!e.marker.videoTour||!Yt(_)||!Yt(_).embedUrl));zs(t,{get src(){return Yt(L)},noPlayOverlay:!0,image:w,get uuid(){return e.marker.id},get tour(){return e.marker.videoTour},get autoplay(){return Yt(i)},get controls(){return Yt(r)},onended:E,get paused(){return Yt(A)}})};ei(l,(t=>{!f&&((!Yt(_)||!Yt(_).embedUrl)&&e.marker.videoTour||Yt(_)&&Yt(_).audio)&&t(d)}));var p=dt(l,2),g=t=>{var i=qs();ri(i,21,(()=>e.marker.images),(t=>t.id??t.src),((t,i)=>{var r=Ws();r.__click=function(...t){var r;null==(r=k?()=>{return t=Yt(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=Bs(),i=ct(e);se((()=>Je(i,Yt(P)))),Ge(t,e)};ei(o,(t=>{Yt(P)&&t(a)})),se(((t,e,i)=>{Ei(r,"title",t),Ei(s,"alt",e),Ei(s,"src",i)}),[()=>$(Yt(i)),()=>$(Yt(i)),()=>Yt(i).micrioId?`https://iiif.${M?"micrio.dev":"micr.io"}/${Yt(i).micrioId}/full/${T?"^"+Math.min(Yt(i).width,640)+",":"^,320"}/0/default.webp`:Yt(i).src]),Ge(t,r)})),Ge(t,i)};ei(p,(t=>{var i;!u()&&(null==(i=e.marker.images)?void 0:i.length)&&t(g)}));var I=dt(p,2),C=t=>{var i=Xs(),r=ut(i),n=t=>{zs(t,{image:w,className:"hidden",get uuid(){return e.marker.id},get tour(){return e.marker.videoTour},autoplay:y,secondary:!0})};ei(r,(t=>{!Yt(_).audio&&e.marker.videoTour&&t(n)}));var s=dt(r,2);const o=K((()=>!Yt(S)));zs(s,{image:w,get src(){return Yt(_).embedUrl},get uuid(){return e.marker.id},width:400,height:240,controls:!0,get title(){return Yt(_).embedTitle},get figcaption(){return Yt(_).embedDescription},get autoplay(){return Yt(o)},onended:E,get paused(){return Yt(S)}}),Ge(t,i)};ei(I,(t=>{Yt(_).embedUrl&&!c()&&t(C)}));var R=dt(I,2),D=t=>{Vs(t,{children:(t,e)=>{var i=je();li(ut(i),(()=>Yt(_).body)),Ge(t,i)},$$slots:{default:!0}})};ei(R,(t=>{Yt(_).body&&!b.primaryBodyFirst&&t(D)}));var O=dt(R,2),z=t=>{Vs(t,{cn:"secondary",children:(t,e)=>{var i=je();li(ut(i),(()=>Yt(_).bodySecondary)),Ge(t,i)},$$slots:{default:!0}})};ei(O,(t=>{Yt(_).bodySecondary&&t(z)})),Wi(i,(t=>h(t)),(()=>h())),se((t=>r=fi(i,1,"micrio-marker-content",null,r,t)),[()=>({empty:Yt(x)})]),Ge(t,i)};ei(R,(t=>{Yt(_)&&t(D)})),Ge(t,C),_e(),o()}Ve(["click"]);var Gs=qe('<button class="micrio-button tour-step micrio-marker-popup" disabled> </button>'),Hs=qe("<!> <!> <!>",1),Zs=qe('<progress class="progress micrio-marker-popup"></progress> <!>',1),Js=qe('<div><aside class="micrio-marker-popup"><!> <!> <!></aside> <!></div>');function Ks(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(c,"$tour",i),s=()=>er(l,"$current",i),o=()=>er(Qr,"$i18n",i),a=ye("micrio"),{current:l}=a,c=a.state.tour,u=ye("markerImages").get(e.marker.id),d=u.$settings._markers??{},h=K((()=>n()&&"steps"in n()?a.canvases.find((t=>{var e,i;return null==(i=null==(e=t.$data)?void 0:e.markerTours)?void 0:i.find((t=>t.id===n().id))})):void 0)),m=e.marker.data||{},v=d.canMinimizePopup;let p=Y(void 0);function g(t){var e,i,r;n()&&Yt(w)&&"steps"in n()?t instanceof Event&&Yt(T)?c.set(void 0):null==(i=(e=n()).next)||i.call(e):s()&&!u.opts.secondaryTo&&s().id!=u.id&&(null==(r=m.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)}const f=K((()=>n()&&"steps"in n()?n():void 0)),w=K((()=>{var t;return Yt(f)&&(null==(t=Yt(f))?void 0:t.steps.findIndex((t=>t.startsWith(e.marker.id))))>=0})),b=K((()=>{var t,e,i;return Yt(w)&&!(null==(t=Yt(f))?void 0:t.isSerialTour)&&((null==(i=null==(e=Yt(h))?void 0:e.$settings._markers)?void 0:i.tourControlsInPopup)??d.tourControlsInPopup)})),y=K((()=>{var t,e,i;return Yt(w)&&!(null==(t=Yt(f))?void 0:t.isSerialTour)&&((null==(i=null==(e=Yt(h))?void 0:e.$settings._markers)?void 0:i.tourStepCounterInPopup)??d.tourStepCounterInPopup)})),k=K((()=>{var t;return(null==(t=Yt(f))?void 0:t.currentStep)??-1})),T=K((()=>Yt(b)||(Yt(f)?Yt(f).currentStep==Yt(f).steps.length-1:void 0)));let _=Y(!1);const x=(t=!1)=>{var e,i,r,n;Yt(f)&&(t?null==(i=(e=Yt(f)).prev)||i.call(e):null==(n=(r=Yt(f)).next)||n.call(r),G(_,!0),setTimeout((()=>G(_,!1)),200))};let E=Y(!1),A=Y(void 0),S=Y(void 0);const M=new WeakMap,$=()=>{if(G(E,!Yt(E)),Yt(A))for(let t=0;t<Yt(A).children.length;t++){const e=Yt(A).children[t];e instanceof HTMLElement&&e!=Yt(S)&&(M.has(e)||(M.set(e,e.offsetHeight),e.style.height=e.offsetHeight+"px"),setTimeout((()=>{e.style.height=Yt(E)?"0px":M.get(e)+"px"}),100))}};let I=Y(!1);ji((()=>{var t;e.marker.tags.forEach((t=>{var e;return null==(e=Yt(p))?void 0:e.classList.add(t)})),setTimeout((()=>{var t,e;return null==(e=null==(t=Yt(p))?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=>G(I,!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 L=Js();let P;var C=ct(L),R=ct(C),D=t=>{const e=K((()=>!Yt(w)||Yt(T)?"close":"arrow-right")),i=K((()=>!Yt(w)||Yt(T)?o().closeMarker:o().tourStepNext));qn(t,{get type(){return Yt(e)},get title(){return Yt(i)},get disabled(){return Yt(_)},onclick:g})};ei(R,(t=>{m.alwaysOpen||t(D)}));var O=dt(R,2),z=t=>{const e=K((()=>Yt(E)?"arrow-up":"arrow-down"));qn(t,{get type(){return Yt(e)},get title(){return o().minimize},onclick:$})};ei(O,(t=>{v&&t(z)}));var N=dt(O,2),F=t=>{var e=Zs(),i=ut(e);Ei(i,"aria-hidden",!0),Qn(dt(i,2),{className:"micrio-tour-controls",children:(t,e)=>{var i=Hs(),r=ut(i);const s=K((()=>Yt(_)||0==Yt(k)));qn(r,{type:"arrow-left",get disabled(){return Yt(s)},get title(){return o().tourStepPrev},onclick:()=>x(!0)});var a=dt(r,2),l=t=>{var e=Gs(),i=ct(e);se((()=>Je(i,`${Yt(k)+1} / ${n().steps.length??""}`))),Ge(t,e)};ei(a,(t=>{Yt(y)&&t(l)}));var c=dt(a,2);const u=K((()=>Yt(_)||Yt(k)+1==n().steps.length));qn(c,{type:"arrow-right",get disabled(){return Yt(u)},get title(){return o().tourStepNext},onclick:()=>x()}),Ge(t,i)},$$slots:{default:!0}}),se((()=>{return t=i,e=(Yt(k)+1)/n().steps.length,void((r=Mi(t)).value!==(r.value=e??void 0)&&(t.value!==e||0===e&&"PROGRESS"===t.nodeName)&&(t.value=e??""));var t,e,r})),Ge(t,e)};ei(N,(t=>{Yt(b)&&n()&&"steps"in n()&&t(F)})),js(dt(C,2),{get marker(){return e.marker},onclose:g,get _content(){return Yt(A)},set _content(t){G(A,t,!0)},get _title(){return Yt(S)},set _title(t){G(S,t,!0)}}),Wi(L,(t=>G(p,t)),(()=>Yt(p))),se((t=>P=fi(L,1,"micrio-marker-popup",null,P,t)),[()=>({destroying:Yt(I),minimized:Yt(E)})]),zi(3,L,(()=>jr),(()=>d.popupAnimation)),Ge(t,L),_e(),r()}var Qs=qe('<li><button class="micrio-serial-tour"> </button></li>'),to=qe('<ol class="micrio-serial-tour"></ol>'),eo=qe("<!> <!> <!> <!>",1),io=qe('<div role="progressbar"></div>'),ro=qe('<!> <aside class="micrio-media-controls micrio-serial-tour"><!> <!></aside> <!>',1);function no(t,e){var i,r;Te(e,!0);const[n,s]=rr(),o=()=>er(d,"$lang",n),a=()=>er(Qr,"$i18n",n),l=()=>er(hs,"$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),g=c.reduce(((t,e)=>t+e.duration),0)??0,f="controls"in e.tour?!1!==e.tour.controls:!e.tour.noControls;let w=Y(!1),b=Y(!1),y=Y(!1);ee((()=>u.isMuted.subscribe((t=>{G(y,t,!0)}))));let k=Y(void 0),T=Y(void 0),_=Y(0),x=Y("");function E(){const t=u.state.mediaState.get(Yt(x));t&&(t.paused=G(w,!t.paused)),Yt(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 A(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)),$();const o=c[t];o.currentTime=s*o.duration,n&&(null==(r=Yt(k))?void 0:r.instance)&&(Yt(k).instance.currentTime=o.currentTime),L(t)}function S(){u.isMuted.set(!Yt(y))}function M(){var t;const i=Yt(T);i&&(i.ended=!0),null!=e.tour.currentStep&&e.tour.currentStep<e.tour.steps.length-1&&e.tour.next?e.tour.next():(G(w,G(b,!0),!0),null==(t=e.onended)||t.call(e)),Xt().then((()=>{$(),i&&(i.ended=!1)}))}function $(){var t;null==(t=e.tour.stepInfo)||t.forEach((t=>t.currentTime=0))}const I=Ji([]);function L(t=e.tour.currentStep??0){const i=c.map(((e,i)=>i<t||e.ended||Yt(b)?100:i==t?Math.round((e.currentTime||0)/e.duration*1e4)/100:0));G(_,i.reduce(((t,e,i)=>t+e/100*c[i].duration),0),!0),I.set(i)}function P(t){const i=t&&!!e.tour.steps.find((e=>e.startsWith(t.id)));G(k,void 0),i&&t.videoTour&&setTimeout((()=>{const i=c[e.tour.currentStep??0];i.markerId==t.id&&(i.ended=!1,G(T,i,!0),G(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};ji((()=>{const t=()=>L();u.addEventListener("timeupdate",t);const e=m.subscribe(P);return()=>{e(),u.removeEventListener("timeupdate",t),$()}}));const R=K((()=>{var t,e;return Yt(k)?"audio"in Yt(k)?Yt(k).audio:null==(e=null==(t=Yt(k).i18n)?void 0:t[o()])?void 0:e.audio:void 0})),D=K((()=>Yt(R)?"fileUrl"in Yt(R)?Yt(R).fileUrl:Yt(R).src:void 0)),O=K((()=>{var t;return!!(null==(t=Yt(T))?void 0:t.hasSubtitle)})),z=K((()=>c.some((t=>t.hasSubtitle))));var N=ro(),F=ut(N),V=t=>{var e=to();ri(e,21,(()=>c),ii,((t,e,i)=>{var r=je(),n=ut(r),s=t=>{var r=Qs();let n;var s=ct(r);s.__click=()=>A(i);var o=ct(s);se(((t,e)=>{n=fi(r,1,"micrio-serial-tour",null,n,t),Je(o,e)}),[()=>({active:Yt(T)&&Yt(T).chapter==i,enriched:Yt(e).imageHasOtherMarkers}),()=>C(Yt(e).marker)]),Ge(t,r)};ei(n,(t=>{C(Yt(e).marker)&&t(s)})),Ge(t,r)})),Ge(t,e)};ei(F,(t=>{e.tour.printChapters&&t(V)}));var U=dt(F,2),B=ct(U),W=t=>{const e=K((()=>!Yt(w)));zs(t,{get tour(){return Yt(k)},get src(){return Yt(D)},get autoplay(){return Yt(e)},onid:t=>G(x,t,!0),onended:M,onplay:()=>G(w,!1),onblocked:()=>G(w,!0),get currentTime(){return Yt(T).currentTime},set currentTime(t){Yt(T).currentTime=t}})};ei(B,(t=>{Yt(k)&&Yt(T)&&t(W)}));var q=dt(B,2),X=t=>{var e=eo(),i=ut(e);const r=K((()=>Yt(w)?"play":"pause")),n=K((()=>Yt(w)?a().play:a().pause));qn(i,{get type(){return Yt(r)},get title(){return Yt(n)},onclick:E});var s=dt(i,2);const o=K((()=>Yt(y)?"volume-off":"volume-up")),c=K((()=>Yt(y)?a().audioUnmute:a().audioMute));qn(s,{get type(){return Yt(o)},get title(){return Yt(c)},onclick:S});var d=dt(s,2),h=t=>{const e=K((()=>!Yt(O))),i=K((()=>l()?"subtitles":"subtitles-off"));qn(t,{get disabled(){return Yt(e)},get type(){return Yt(i)},get active(){return l()},get title(){return a().subtitlesToggle},onclick:()=>hs.set(!l())})};ei(d,(t=>{Yt(z)&&t(h)})),ts(dt(d,2),{el:u}),Ge(t,e)};ei(q,(t=>{f&&t(X)}));var j=dt(U,2),H=t=>{ws(t,{duration:g,get currentTime(){return Yt(_)},set currentTime(t){G(_,t,!0)},get ended(){return Yt(b)},set ended(t){G(b,t,!0)},children:(t,i)=>{var r=je();ri(ut(r),17,(()=>c),ii,((t,i,r)=>{var s=je(),o=ut(s),a=t=>{var s=io();let o;s.__click=t=>A(r,t),se(((t,e)=>{o=fi(s,1,"bar",null,o,t),Ei(s,"title",e),bi(s,`width:${Yt(i).duration/g*100}%; --progress: ${er(I,"$times",n)[r]||0}%`)}),[()=>({active:r==e.tour.currentStep}),()=>C(Yt(i).marker)]),Fe("keypress",s,(t=>{"Enter"===t.key&&A(r)})),Ge(t,s)};ei(o,(t=>{Yt(i).duration>0&&t(a)})),Ge(t,s)})),Ge(t,r)},$$slots:{default:!0}})};ei(j,(t=>{f&&t(H)})),Ge(t,N),_e(),s()}Ve(["click"]);var so=qe('<article class="scroll-tour micrio-tour"></article> <!>',1),oo=qe("<!> <!> <!>",1),ao=qe("<div><!> <!></div>");function lo(t,e){var i,r;Te(e,!0);const[n,s]=rr(),o=()=>er(m,"$_lang",n),a=()=>er(Qr,"$i18n",n);let l=ar(e,"tour",15),c=ar(e,"noHTML",3,!1);const u=ye("micrio"),{events:d,state:h,_lang:m}=u,v=u.$current,p=v.$data,g=v.$settings,f=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=g._markers)?void 0:i.tourControlsInPopup)),x=_&&(y||b),E=!!(null==(r=g._markers)?void 0:r.keepPopupsDuringTourTransitions),A=()=>I(Yt(D)-1),S=()=>I(Yt(D)+1),M=()=>d.enabled.set(!0);let $;function I(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[Yt(D)])?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",M),w.set(void 0),s&&($=setTimeout(P,200,s))}async function L(t){var e,i,r,n,s,o,a;let c=v,d=!1;if(f&&!t.gridView&&f.images.find((e=>e.id==t.micrioId))){const s=!!("steps"in l()&&l().stepInfo&&t)&&(null==(e=l().stepInfo)?void 0:e.indexOf(t))<Yt(D),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=f.focus(c=f.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)&&f){t.micrioImage||(t.micrioImage=f.images.find((e=>e.id==t.micrioId))),c=t.micrioImage;const e=t.marker.data._meta.gridAction.split("|");f.action(e.shift(),e.join("|"))}else"steps"in l()&&l().stepInfo&&G(D,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",M,{once:!0}),await Xt(),d.dispatch("tour-step",l()))}function C(){h.tour.set(void 0)}function R(){d.dispatch("tour-ended",l()),(l().closeOnFinish||!l().cannotClose&&T)&&C()}let D=Y(-1),O=Y(!1);const z=v.camera.getView(),N=g._markers;"steps"in l()&&(l(l().prev=A,!0),l(l().next=S,!0),l(l().goto=I,!0),ee((()=>{l(l().currentStep=Yt(D),!0)})));const F=Ji(!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,W=Y(void 0);function q(t){var e,i;if(!("steps"in l())||!Yt(W))return;const r=l().steps,n=t.filter((t=>t.isIntersecting)).map((t=>t.target))[0];if(n)for(let s=0;s<Yt(W).children.length;s++)if(Yt(W).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=[];ji((()=>("steps"in l()&&zr(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&&I(t.initialStep),k&&Yt(W)){B=new IntersectionObserver(q,{root:Yt(W),threshold:1});for(let t=0;t<Yt(W).children.length;t++)B.observe(Yt(W).children[t])}X.push(u.state.marker.subscribe((e=>{if(!e)return void G(O,!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[G(D,r,!0)];e&&!e.micrioImage&&(e.micrioImage=u.canvases.find((t=>t.id==e.micrioId))??(null==f?void 0:f.images.find((t=>t.id==e.micrioId)))??u.$current)}G(O,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($);X.length;)null==(t=X.shift())||t();u.removeEventListener("pointermove",U),u.removeEventListener("touchstart",U),u.removeEventListener("marker-opened",M),x&&u.removeAttribute("data-tour-active"),M(),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,f||"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&&z&&v.camera.flyToView(z,{speed:null==N?void 0:N.zoomOutAfterCloseSpeed,noTrueNorth:!0})}))}))),d.dispatch("tour-start",l());let j=Y(0),H=Y(!1);const Z=K((()=>"steps"in l()?void 0:l())),J=K((()=>{var t,e;return Yt(Z)?"audio"in l()?l().audio:null==(e=null==(t=Yt(Z).i18n)?void 0:t[o()])?void 0:e.audio:void 0})),Q=K((()=>Yt(J)?"fileUrl"in Yt(J)?Yt(J).fileUrl:Yt(J).src:void 0));var tt=je(),et=ut(tt),it=t=>{var e=je(),i=ut(e),r=t=>{var e=so(),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=je(),r=ut(i),n=t=>{Ks(t,{get marker(){return Yt(e)}})};ei(r,(t=>{Yt(e)&&t(n)})),Ge(t,i)})),Wi(i,(t=>G(W,t)),(()=>Yt(W)));var r=dt(i,2),n=t=>{qn(t,{type:"close",get title(){return a().tourStop},className:"scroll-tour-end",onclick:C})};ei(r,(t=>{l().cannotClose||t(n)})),Ge(t,e)},s=(t,e)=>{var i=t=>{var e=ao();let i;var r=ct(e),s=t=>{var e=je(),i=ut(e),r=t=>{no(t,{get tour(){return l()},onended:R})},n=t=>{var e=oo(),i=ut(e);const r=K((()=>0==Yt(D)));qn(i,{type:"arrow-left",get title(){return a().tourStepPrev},get disabled(){return Yt(r)},onclick:A});var n=dt(i,2);qn(n,{noClick:!0,children:(t,e)=>{var i=Ye();se((()=>Je(i,`${Yt(D)+1} / ${l().steps.length??""}`))),Ge(t,i)},$$slots:{default:!0}});var s=dt(n,2);const o=K((()=>Yt(D)==l().steps.length-1));qn(s,{type:"arrow-right",get title(){return a().tourStepNext},get disabled(){return Yt(o)},onclick:S}),Ge(t,e)};ei(i,(t=>{b?t(r):t(n,!1)})),Ge(t,e)},o=t=>{zs(t,{get tour(){return l()},get src(){return Yt(Q)},fullscreen:u,controls:!0,autoplay:!0,onended:R,get paused(){return Yt(H)},set paused(t){G(H,t,!0)},get currentTime(){return Yt(j)},set currentTime(t){G(j,t,!0)}})};ei(r,(t=>{"steps"in l()?t(s):t(o,!1)}));var c=dt(r,2),d=t=>{qn(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:!Yt(H)&&(er(F,"$minimized",n)||Yt(O))})]),zi(1,e,(()=>Yr),(()=>({duration:200}))),Ge(t,e)},r=(t,e)=>{var i=t=>{zs(t,{get tour(){return Yt(Z)},get src(){return Yt(Q)},autoplay:!0,onended:R,get currentTime(){return Yt(j)},set currentTime(t){G(j,t,!0)}})};ei(t,(t=>{Yt(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)})),Ge(t,e)},rt=(t,e)=>{var i=t=>{zs(t,{get tour(){return Yt(Z)},get src(){return Yt(Q)},autoplay:!0,onended:R,get currentTime(){return Yt(j)},set currentTime(t){G(j,t,!0)}})};ei(t,(t=>{Yt(Z)&&t(i)}),e)};ei(et,(t=>{c()?t(rt,!1):t(it)})),Ge(t,tt),_e(),s()}class co{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[3])/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 uo=qe('<span class="micrio-dial"> </span>'),ho=qe('<div data-scroll-through="" class="micrio-dial"><!></div>');function mo(t,e,i,r){Yt(e)||G(i,r(t)[1],!0)}var vo=qe("<button>&#10021;</button>"),po=qe('<li><button class="bullet micrio-gallery">&bull;</button></li>'),go=qe('<div><!> <ul class="micrio-gallery"><!> <button aria-label="drag handle"></button></ul> <!></div>');function fo(t,e){var i,r,n,s,o,a;Te(e,!0);const[l,c]=rr(),u=()=>er(_,"$settings",l),d=()=>er(T,"$layer",l),h=()=>er(Qr,"$i18n",l);let m=ar(e,"images",19,(()=>[])),v=ar(e,"omni",3,null);const p=ye("micrio"),{wasm:g,current:f,events:w,_lang:b}=p,y=er(f,"$current",l),k=y.$info,T=y.state.layer,_=y.settings,x=y.camera;if(v())for(let Y=0;Y<v().frames;Y++)m().push({id:k.id+"/"+Y,image:y,visible:Ji(!1),frame:Y,opts:{area:[0,0,1,1]},ptr:-1,baseTileIdx:-1,thumbSrc:y.getTileSrc(y.levels,0,0,Y)});const E=u().gallery,A="omni"==E.type,S=A||"swipe-full"==E.type,M=S||"switch"==E.type,$=A,I=!!E.isSpreads,L=E.coverPages??0,P=u().omni,C=A&&!!(null==P?void 0:P.twoAxes),R=E.startId||p.getAttribute("data-gallery-start-id"),D=E.archive,O=!!u().limitToCoverScale,z=!!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)?R?m().findIndex((t=>t.id==R)):0:V;U<0&&(U=0);const B=[],W=[];if(m())for(let Y=0;Y<m().length;Y++){let t=null==(s=m()[Y].opts)?void 0:s.area;if(!t)continue;const e=t.slice(0);if(W.push([Y]),I&&Y-L>=0&&(Y-L)%2==0&&m()[Y+1]){if(t=null==(o=m()[++Y].opts)?void 0:o.area,!t)continue;W[W.length-1].push(Y),e[2]=t[2],e[3]=t[3]}B.push(e)}const q=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??{[(()=>er(b,"$_lang",l))()]:0}).forEach((t=>X.forEach(((e,i)=>{e.i18n[t]||(e.i18n[t]={title:"Layer "+(i+1)})}))));let j=Y(-1),H=M,Z=Y(!0),J=Y(!1),Q=Y(!0),tt=!1,et=Y(0);function rt(t,e=!1,i=150,r=!1){if($){for(;t<0;)t+=q;t%=q}const n=t=Math.round(Math.max(0,Math.min(q-1,t))),s=r||n!=Yt(j);if(G(j,n,!0),s&&nt(),M)s&&(g.setActiveImage(y.ptr,W[Yt(j)][0],W[Yt(j)].length-1),A?g.render():(x.flyToView(B[Yt(j)],{duration:i,speed:2}).then((()=>ht(B[Yt(j)],!0))).catch((()=>{})),Ut()));else{const r=x.getViewLegacy(),n=B[t],o=tt&&(H&&!Yt(J)||s||r[0]<n[0]!=r[2]>n[2]);G(J,!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==Yt(j))return;G(j,Ft.currentIndex,!0)}lt(Yt(j)),w.dispatch("gallery-show",Yt(j)),A&&G(et,(Yt(j)-N)/q*360)}const st="requestIdleCallback"in self?A?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)),I&&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($){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((()=>g.getTexture(t.baseTileIdx,t.thumbSrc,!1,{force:!!D}))))))}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=Yt(pt))?void 0:e.childNodes[t];return i?-2+i.offsetLeft+i.offsetWidth/2:0}let vt,pt=Y(void 0),gt=Y(0);const ft=K((()=>!Yt(pt)||Yt(Z)?Yt(gt):mt(Yt(j))));let wt=!1;function bt(t){t.preventDefault(),t.stopPropagation(),Yt(Z)||(wt="button"in t)&&0!=t.button||!Yt(pt)||(vt=Yt(pt).getClientRects()[0],p.keepRendering=G(Z,!0),G(xt,-1),window.addEventListener(wt?"pointermove":"touchmove",kt),window.addEventListener(wt?"pointerup":"touchend",Et),kt(t))}function yt(t){const e=vt??Yt(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(q-1,Math.floor(r*q)))]}function kt(t){const[e,i]=yt(t);G(gt,16+e*(vt.width-32)),i!=Yt(j)&&rt(i,!0)}let Tt,_t,xt=Y(-1);function Et(){window.removeEventListener(wt?"pointermove":"touchmove",kt),window.removeEventListener(wt?"pointerup":"touchend",Et),G(Z,p.keepRendering=!1,!0),rt(Yt(j))}function At(){H&&(_t=Tt=Yt(j),G(J,H,!0),ht(B[Yt(j)],!1))}function St(t){const e=t.detail;"panend"!=t.type||e?rt(_t!=Yt(j)?_t:Yt(j)+(Tt==Yt(j)&&Yt(J)&&e?Math.round(Math.min(1,Math.max(-1,-e.movedX/e.duration))):0)):G(J,!1)}function Mt(t){if(!t)return;const e=Br.toCenterJSON(t),i=e.centerX,r=B.map(((t,r)=>(1-Math.min(Math.abs(i-t[0]),Math.abs(i-t[2])))*Math.max(0,(Math.min(i+e.width/2,t[2])-Math.max(i-e.width/2,t[0]))/(t[2]-t[0]))*(1-.1*Math.abs(Yt(j)-r))));g.setFocus(y.ptr,B[_t=r.every((t=>!t))?Yt(j):r.indexOf(Math.max(...r))],Yt(J)),H=x.isZoomedOut()}let $t=0,It=[0,0,0,0];function Lt(t){t.stopPropagation(),t.preventDefault(),0==t.button&&(G(Z,!0),It=[t.clientX,t.clientY,Yt(j),$t],window.addEventListener("pointermove",Rt),window.addEventListener("pointerup",Dt))}const Pt=m().length,Ct=1;function Rt(t){$t=Math.max(0,Math.min(Ct-1,It[3]+Math.round((It[1]-t.clientY)/360*Ct)));let e=(It[2]+Math.round((It[0]-t.clientX)/360*Pt))%Pt;for(;e<0;)e+=Pt;rt($t*Pt+e)}function Dt(){removeEventListener("pointermove",Rt),removeEventListener("pointerup",Dt),G(Z,!1)}let Ot=-1;const zt=()=>{X.length&&y.data.update((t=>{t||(t={}),t.pages||(t.pages=[]);const e={id:"_omni-layers",i18n:X[d()].i18n,icon:ln,children:X.map(((t,e)=>({id:"omni-layer-"+e,i18n:t.i18n,action:()=>{T.set(e),lt(Yt(j))}}))).filter((t=>t.id!="omni-layer-"+d()))};return Ot>=0&&Ot<t.pages.length?t.pages.splice(Ot,1,e):t.pages.push(e),Ot=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 Yt(j)},info:y.$settings.album,prev:()=>rt(Yt(j)-1),next:()=>rt(Yt(j)+1),goto:rt},ji((()=>{Promise.all(m().map((t=>("state"in t&&!("image"in t)&&(t.camera=y.camera),g.addEmbed(t,y,{opacity:0,asImage:"camera"in t}))))).then((()=>{g.setActiveImage(y.ptr,U),rt(U,!1,0),G(Z,!1)})),A&&F>1&&zt(),G(Q,!1),p.goto=rt;const t=[],e=[];return A&&t.push(y.state.layer.subscribe(zt)),S&&(Ft=y.swiper=new co(p,q,rt,{continuous:$,coverLimit:O})),e.push((()=>{p.canvas.element.removeEventListener("pointermove",Ut),p.canvas.element.removeEventListener("pointerdown",Ut)})),A||C||S||(p.canvas.element.addEventListener("pointermove",Ut),p.canvas.element.addEventListener("pointerdown",Ut),Ut()),M&&t.push(y.state.view.subscribe((()=>{H=x.isZoomedOut()}))),M||S||m().length<=1||(C||G(gt,mt(U),!0),t.push(y.state.view.subscribe(Mt)),p.addEventListener("panstart",At),p.addEventListener("panend",St),p.addEventListener("pinchend",St),e.push((()=>{p.removeEventListener("panstart",At),p.removeEventListener("panend",St),p.removeEventListener("pinchend",St)}))),A&&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();A&&p.removeEventListener("move",nt)}}));var Bt=je();Fe("keydown",it,(function(t){var e;if(!(null==(e=u().omni)?void 0:e.noKeys)){switch(t.key){case"PageUp":case"ArrowLeft":rt(Yt(j)-(A?-1:1),!0);break;case"PageDown":case"ArrowRight":rt(Yt(j)+(A?-1:1),!0);break;case"ArrowUp":C&&rt(Yt(j)+Pt);break;case"ArrowDown":C&&rt(Yt(j)-Pt);break;case"Home":rt(0);break;case"End":rt(q);break;default:return}Ut()}}));var Wt=ut(Bt),qt=t=>{var e=je(),i=ut(e),r=t=>{var e=vo();let i;se((t=>i=fi(e,1,"angular micrio-gallery",null,i,t)),[()=>({dragging:Yt(Z)})]),Fe("pointerdown",e,Lt,!0),Ge(t,e)},n=(t,e)=>{var i=t=>{const e=K((()=>{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=Y(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)/(Yt(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)}const u=K((()=>{var t;return-e.currentRotation/360*((null==(t=Yt(s))?void 0:t.offsetWidth)??0)}));var d=ho(),h=ct(d),m=t=>{var i=uo(),r=ct(i);se((t=>Je(r,`${t??""}º`)),[()=>Math.round(10*e.currentRotation)/10]),Ge(t,i)};ei(h,(t=>{e.degrees&&t(m)})),Wi(d,(t=>G(s,t)),(()=>Yt(s))),se((()=>bi(d,`--micrio-dial-offset:${Yt(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),Ge(t,d),_e()}(t,{get currentRotation(){return Yt(et)},frames:q,get degrees(){return Yt(e)},onturn:t=>rt(t)})},r=(t,e)=>{var i=t=>{var e=go();let i;var r=ct(e);const n=K((()=>0==Yt(j)));qn(r,{type:"arrow-left",get title(){return h().galleryPrev},className:"gallery-btn",onpointerdown:()=>rt(Yt(j)-1),get disabled(){return Yt(n)}});var s=dt(r,2);s.__pointermove=[mo,Z,xt,yt];var o=ct(s);ri(o,17,(()=>B),ii,((t,e,i)=>{var r=po();let n;var s=ct(r);s.__click=()=>rt(i,!0),se((t=>n=fi(r,1,"micrio-gallery",null,n,t)),[()=>({active:i==Yt(j),hover:i==Yt(xt)})]),Fe("keypress",s,(t=>{"Enter"===t.key&&rt(i,!0)})),Ge(t,r)}));var a=dt(o,2);let c;Wi(s,(t=>G(pt,t)),(()=>Yt(pt)));var u=dt(s,2);const d=K((()=>Yt(j)==m().length-1));qn(u,{type:"arrow-right",get title(){return h().galleryNext},className:"gallery-btn",onpointerdown:()=>rt(Yt(j)+1),get disabled(){return Yt(d)}}),se(((t,r)=>{i=fi(e,1,"micrio-gallery",null,i,t),bi(a,`left: ${Yt(ft)}px`),c=fi(a,1,"micrio-gallery",null,c,r)}),[()=>({hidden:Yt(Q)||er(Vt,"$hidden",l)&&!Yt(Z)&&!Yt(J)}),()=>({dragging:Yt(Z)})]),Fe("pointerleave",s,(()=>G(xt,-1))),Fe("pointerdown",a,bt,!0),Fe("touchstart",a,bt,!0,!0),Ge(t,e)};ei(t,(t=>{!S&&m().length>1&&t(i)}),e)};ei(t,(t=>{P&&!P.noDial&&A?t(i):t(r,!1)}),e)};ei(i,(t=>{C?t(r):t(n,!1)})),Ge(t,e)};ei(Wt,(t=>{z||t(qt)})),Ge(t,Bt),_e(),c()}let wo;Ve(["pointermove","click"]);const bo={},yo=Ji();let ko,To;const _o=Ji(!1);function xo(t,e,i){To&&(To.setPosition?To.setPosition(t,e,i):"positionX"in To&&(To.positionX.value=t,To.positionY.value=e,To.positionZ.value=i))}function Eo(t,e,i){To&&(To.setOrientation?To.setOrientation(t,e,i,0,1,0):"forwardX"in To&&(To.forwardX.value=t,To.forwardY.value=e,To.forwardZ.value=i))}function Ao(t,e){Te(e,!0);const[i,r]=rr();let n=ar(e,"volume",3,1);const{events:s,current:o}=ye("micrio"),a=er(o,"$current",i),l=a.$info,c=l.height/l.width,u="AudioContext"in window||"webkitAudioContext"in window;const d=()=>_o.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=pr.iOS?0:1e-4,u&&ji((()=>{let t,i;return i=_o.subscribe((r=>{var o;r&&(ko||(!function(t){if(!wo){if(ko||(ko="micrioAudioContext"in window?window.micrioAudioContext:"AudioContext"in window?new window.AudioContext:"webkitAudioContext"in window?new window.webkitAudioContext:null),!ko)return console.warn("[Micrio] Your browser does not support the Web Audio API");wo=ko.createGain(),wo.connect(ko.destination),wo.gain.value=t,yo.set(ko),To=ko.listener,"upX"in To&&(To.upX.value=0,To.upY.value=1,To.upZ.value=0)}}(n()),s.dispatch("audio-init")),ko&&(null==(o=e.data.markers)?void 0:o.filter((t=>!!t.positionalAudio)).length)&&(t=a.state.view.subscribe((t=>{if(!t)return;const i=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;xo(n,s,o);let a=n*n+s*s+o*o;a>0&&(a=1/Math.sqrt(a)),Eo(n*a,s*a,o*a)}else xo(2*(t-.5),2*(.5-i)*c,r),Eo(0,0,-1)}(t[0]+t[2]/2,t[1]+t[3]/2,i*(e.is360?1:1.5))}))),i&&(i(),i=null))})),ko||h.play().then(d).catch((()=>{s.dispatch("autoplay-blocked"),addEventListener("pointerup",d,{once:!0})})),()=>{t&&t(),i&&i(),removeEventListener("pointerup",d)}})),ee((()=>{wo&&(wo.gain.value=n())}));var m=je(),v=ut(m),p=t=>{const i=K((()=>n()*(e.data.music.volume??1)));!function(t,e){Te(e,!0);let i=ar(e,"loop",3,!0),r=ar(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()}ji((()=>(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 Yt(i)}})};ei(v,(t=>{var r;er(_o,"$interacted",i)&&er(yo,"$ctx",i)&&(null==(r=e.data.music)?void 0:r.items.length)&&t(p)})),Ge(t,m),_e(),r()}var So=qe('<cite class="micrio-details"> </cite>'),Mo=qe('<small class="micrio-details"> </small>'),$o=qe('<summary class="micrio-details"><!> <!></summary>'),Io=qe('<p class="micrio-details"><a rel="noopener noreferrer" target="_blank"> </a></p>'),Lo=qe("<details><!> <!> <!> <!></details>");function Po(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(a,"$current",i),s=()=>er(e.data,"$data",i),{_lang:o,current:a}=ye("micrio");let l=Y(!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}const u=K((()=>{var t;return null==(t=n())?void 0:t.$settings.cmWidth})),d=K((()=>{var t;return null==(t=n())?void 0:t.$settings.cmHeight})),h=K((()=>{var t;return s()?(null==(t=s())?void 0:t.i18n)?s().i18n[er(o,"$_lang",i)]:s():void 0})),m=K((()=>{var t,r;return(null==(t=Yt(h))?void 0:t.title)??(null==(r=er(e.info,"$info",i))?void 0:r.title)??""})),v=K((()=>{var t;return null==(t=Yt(h))?void 0:t.description})),p=K((()=>{var t;return null==(t=Yt(h))?void 0:t.sourceUrl})),g=K((()=>{var t;return null==(t=Yt(h))?void 0:t.copyright})),f=K((()=>Yt(u)&&Yt(d)?c(Yt(u))+" x "+c(Yt(d)):null));let w=Y(void 0);ji((()=>{Yt(w).ontoggle=()=>{G(l,Yt(w).open,!0)}}));var b=je(),y=ut(b),k=t=>{var e=Lo();let r;var n=ct(e),s=t=>{var e=$o(),i=ct(e),r=t=>{var e=So(),i=ct(e);se((()=>Je(i,Yt(m)))),Ge(t,e)};ei(i,(t=>{Yt(m)&&t(r)}));var n=dt(i,2),s=t=>{var e=Mo(),i=ct(e);se((()=>Je(i,Yt(f)))),Ge(t,e)};ei(n,(t=>{Yt(f)&&t(s)})),Ge(t,e)};ei(n,(t=>{(Yt(m)||Yt(f))&&t(s)}));var o=dt(n,2),a=t=>{var e=je();li(ut(e),(()=>Yt(v))),Ge(t,e)};ei(o,(t=>{Yt(v)&&t(a)}));var c=dt(o,2),u=t=>{var e=Io(),i=ct(e),r=ct(i);se((()=>{Ei(i,"href",Yt(p)),Je(r,Yt(g)||Yt(p))})),Ge(t,e)};ei(c,(t=>{Yt(p)&&t(u)}));var d=dt(c,2),h=t=>{qn(t,{type:"close",get title(){return er(Qr,"$i18n",i).close},onclick:()=>Yt(w).open=!1})};ei(d,(t=>{Yt(l)&&t(h)})),Wi(e,(t=>G(w,t)),(()=>Yt(w))),se((t=>r=fi(e,1,"micrio-details",null,r,t)),[()=>({opened:Yt(l)})]),zi(3,e,(()=>Yr),(()=>({duration:200}))),Ge(t,e)};ei(y,(t=>{(Yt(m)||Yt(v)||Yt(p))&&t(k)})),Ge(t,b),_e(),r()}var Co=qe('<div class="micrio-error"><!> </div>');var Ro=qe("<figcaption><!></figcaption>"),Do=qe("<figure><micr-io></micr-io> <!></figure>",2);function Oo(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(l,"$current",i);let s=ar(e,"startId",3,void 0);const o=ye("micrio"),{_lang:a,current:l}=o;let c=Y(void 0),u=Y(0);const d=K((()=>e.gallery[Yt(u)])),h=K((()=>{var t,e,r;return(null==(r=null==(e=null==(t=Yt(d))?void 0:t.i18n)?void 0:e[er(a,"$_lang",i)])?void 0:r.description)??void 0}));Gi((()=>{var t;return null==(t=Yt(c))?void 0:t.destroy()}));var m=Do(),v=ct(m);se((()=>Ai(v,"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((()=>Ai(v,"data-start",s()))),se((()=>Ai(v,"data-path",n()&&n().$info&&n().$info.path))),Ai(v,"data-logo","false"),fi(v,1,"micrio-micrio-gallery"),Wi(v,(t=>G(c,t)),(()=>Yt(c)));var p=dt(v,2),g=t=>{var e=Ro();li(ct(e),(()=>Yt(h))),Ge(t,e)};ei(p,(t=>{Yt(h)&&t(g)})),Fe("gallery-show",v,(t=>{G(u,t.detail,!0)})),Ge(t,m),_e(),r()}var zo=qe("<!> <!>",1),No=qe("<aside><!> <!></aside>"),Fo=qe("<!> <!>",1),Vo=qe('<menu class="micrio-popover"></menu>'),Uo=qe('<h2 class="micrio-popover"> </h2>'),Bo=qe('<img alt="">'),Wo=qe("<!> <!> <!> <!>",1),qo=qe('<menu class="right micrio-popover"></menu>'),Xo=qe("<!> <!> <!>",1),Yo=qe("<dialog><!> <!></dialog>");function jo(t,e){var i;Te(e,!0);const[r,n]=rr(),s=()=>er(d,"$current",r),o=()=>er(h,"$_lang",r),a=()=>er(Qr,"$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=Yt(b))||t.close()}const g=Ji(!1);let f=Y(!0),w=o(),b=Y(void 0);ji((()=>{Yt(b).showModal(),Xt().then((()=>{const t=Yt(b).querySelector("button.active")??Yt(b).querySelector("button");null==t||t.focus()}));const t=h.subscribe((t=>{t&&t!=w&&(G(f,!1),w=t,setTimeout((()=>G(f,!0)),200))}));return()=>{t()}}));const y=K((()=>e.popover.marker)),k=K((()=>Yt(y)?Yt(y).i18n?Yt(y).i18n[o()]:Yt(y):void 0)),T=K((()=>e.popover.markerTour)),_=K((()=>e.popover.contentPage)),x=K((()=>{var t;return Yt(_)?(null==(t=Yt(_).i18n)?void 0:t[o()])??Yt(_):void 0})),E=K((()=>{var t,e;return Yt(_)&&Yt(x)&&!(null==(e=null==(t=Yt(_))?void 0:t.buttons)?void 0:e.length)?!(!Yt(x).embed||Yt(x).content&&!(Yt(x).content.length<250)||Yt(_).image):void 0})),A=K((()=>{var t;return(null==(t=Yt(_))?void 0:t.image)?"string"==typeof Yt(_).image?Yt(_).image:Yt(_).image.src:void 0})),S=K((()=>{var t;return!!(null==(t=Yt(x))?void 0:t.embed)||!!Yt(A)})),M=K((()=>{var t,e;return!!(null==(e=null==(t=Yt(_))?void 0:t.buttons)?void 0:e.find((t=>"close"==t.type)))})),$=K((()=>{var t;return!!(null==(t=e.popover.marker)?void 0:t.images)&&e.popover.marker.images.length>0})),I=K((()=>!(!Yt(k)||!Yt(k).body)||Yt($))),L=K((()=>{var t;return Yt(k)&&Yt(k).body||Yt($)&&(null==(t=Yt(x))?void 0:t.embed)})),P=K((()=>!Yt(M)||Yt(T)&&null!=Yt(T).currentStep));var C=Yo();let R;var D=ct(C),O=t=>{var e=No();let i;var r=ct(e),n=t=>{qn(t,{type:"close",get title(){return a().close},className:"close-popover",onclick:p})};ei(r,(t=>{Yt(M)||t(n)}));var s=dt(r,2),o=t=>{var e=zo(),i=ut(e),r=t=>{qn(t,{type:"arrow-left",get title(){return a().tourStepPrev},className:"prev-tour-step",onclick:()=>Yt(T)&&Yt(T).prev&&Yt(T).prev()})};ei(i,(t=>{Yt(T).currentStep>0&&t(r)}));var n=dt(i,2),s=t=>{qn(t,{type:"arrow-right",get title(){return a().tourStepNext},className:"next-tour-step",onclick:()=>Yt(T)&&Yt(T).next&&Yt(T).next()})};ei(n,(t=>{Yt(T).currentStep<Yt(T).steps.length-1&&t(s)})),Ge(t,e)};ei(s,(t=>{Yt(T)&&null!=Yt(T).currentStep&&t(o)})),se((t=>i=fi(e,1,"micrio-popover",null,i,t)),[()=>{var t;return{inside:Yt(_)?!Yt(E):!Yt(I)&&!(null==(t=Yt(k))?void 0:t.embedUrl)}}]),Ge(t,e)};ei(D,(t=>{Yt(P)&&t(O)}));var z=dt(D,2),N=t=>{var e=Fo(),i=ut(e),r=t=>{zs(t,{get src(){return Yt(k).embedUrl},get uuid(){return Yt(y).id},get figcaption(){return Yt(k).embedDescription},controls:!0,get autoplay(){return Yt(y).embedAutoPlay}})},n=(t,e)=>{var i=t=>{Oo(t,{get gallery(){return Yt(y).images}})};ei(t,(t=>{Yt(y).images&&Yt(y).images.length&&t(i)}),e)};ei(i,(t=>{Yt(k)&&Yt(k).embedUrl?t(r):t(n,!1)}));var s=dt(i,2),o=t=>{const e=K((()=>!Yt(k)||!Yt(k).embedUrl));js(t,{get marker(){return Yt(y)},noEmbed:!0,noGallery:!0,get noImages(){return Yt(e)},onclose:p})};ei(s,(t=>{Yt(L)&&t(o)})),Ge(t,e)},F=(t,i)=>{var r=t=>{Oo(t,{get gallery(){return e.popover.gallery},get startId(){return e.popover.galleryStart}})},n=(t,e)=>{var i=t=>{var e=Xo(),i=ut(e),r=t=>{var e=Vo();ri(e,21,(()=>v),ii,((t,e)=>{const i=K((()=>(null==Zn?void 0:Zn.of(Yt(e)))??Yt(e))),r=K((()=>Yt(e)==o()));qn(t,{onclick:()=>l.lang=Yt(e),get title(){return Yt(i)},get active(){return Yt(r)},children:(t,i)=>{var r=Ye();se((t=>Je(r,t)),[()=>Yt(e).toUpperCase()]),Ge(t,r)},$$slots:{default:!0}})})),Ge(t,e)};ei(i,(t=>{v.length>1&&t(r)}));var n=dt(i,2),a=t=>{var e=je(),i=ut(e),r=t=>{zs(t,{get src(){return Yt(x).embed},get figcaption(){return Yt(x).content},controls:!0,autoplay:!0})};ei(i,(t=>{Yt(f)&&t(r)})),Ge(t,e)},c=t=>{Vs(t,{children:(t,e)=>{var i=Wo(),r=ut(i),n=t=>{var e=Uo(),i=ct(e);se((()=>Je(i,Yt(x).title))),Ge(t,e)};ei(r,(t=>{Yt(x).title&&t(n)}));var s=dt(r,2),o=t=>{zs(t,{get src(){return Yt(x).embed},controls:!0})};ei(s,(t=>{Yt(x).embed&&Yt(f)&&t(o)}));var a=dt(s,2),l=t=>{var e=Bo();se((()=>Ei(e,"src",Yt(A)))),Ge(t,e)};ei(a,(t=>{Yt(A)&&t(l)}));var c=dt(a,2),u=t=>{var e=je();li(ut(e),(()=>Yt(x).content)),Ge(t,e)};ei(c,(t=>{Yt(x).content&&t(u)})),Ge(t,i)},$$slots:{default:!0}})};ei(n,(t=>{Yt(E)?t(a):t(c,!1)}));var u=dt(n,2),d=t=>{var e=qo();ri(e,21,(()=>Yt(_).buttons),ii,((t,e)=>{const i=K((()=>"link"==Yt(e).type?Yt(e).action:void 0));qn(t,{get href(){return Yt(i)},get blankTarget(){return Yt(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)}(Yt(e)),children:(t,i)=>{var r=Ye();se((()=>Je(r,Yt(e).i18nTitle[o()]))),Ge(t,r)},$$slots:{default:!0}})})),Ge(t,e)};ei(u,(t=>{Yt(_).buttons&&Yt(_).buttons.length&&t(d)})),Ge(t,e)};ei(t,(t=>{Yt(_)&&Yt(x)&&t(i)}),e)};ei(t,(t=>{e.popover.gallery?t(r):t(n,!1)}),i)};ei(z,(t=>{Yt(y)?t(N):t(F,!1)})),Wi(C,(t=>G(b,t)),(()=>Yt(b))),se((t=>R=fi(C,1,"micrio-popover",null,R,t)),[()=>({page:!!Yt(_),article:!!Yt(_)&&!Yt(E),"has-media":Yt(S)})]),Fe("close",C,(function(){var t;e.popover.contentPage?c.dispatch("page-closed"):Yt(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,(()=>g.set(!0))),Ge(t,C),_e(),n()}function Go(t,e){Te(e,!0);const i=K((()=>e.marker.positionalAudio)),r=e.ctx.createGain();r.connect(wo);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=Yt(i).volume??1,e.is360){l.refDistance=2.75*Yt(i).radius,l.maxDistance=Yt(i).radius*(11/3);const t=e.marker.x*-Math.PI*2,r=(e.marker.y-.5)*-Math.PI,n=Math.cos(r)*Math.sin(t)*11,s=11*Math.sin(r),o=Math.cos(r)*Math.cos(t)*11;l.positionX.value=n,l.positionY.value=s,l.positionZ.value=o;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=Yt(i).radius*Yt(i).radius*10,l.maxDistance=5*Yt(i).radius}let u,d;function h(){u&&u.disconnect(),u=e.ctx.createBufferSource(),Yt(i).loop&&(Yt(i).repeatAfter>0?u.onended=()=>{d=setTimeout(h,1e3*Yt(i).repeatAfter)}:u.loop=!0),r.gain.value=Yt(i).volume??1,u.buffer=bo[Yt(i).src],u.connect(l),u.start()}let m=Y(B(JSON.stringify(e.marker.positionalAudio)));ee((()=>{const t=JSON.stringify(Yt(i));Yt(m)!=t&&G(m,t,!0)&&c()})),ji((()=>(c(),l.connect(r),async function(){Yt(i).src&&(bo[Yt(i).src]||(bo[Yt(i).src]=await fetch(Yt(i).src).then((t=>t.arrayBuffer())).then((t=>e.ctx.decodeAudioData(t)))),Yt(i).alwaysPlay&&Yt(i).repeatAfter>0?d=setTimeout(h,1e3*Yt(i).repeatAfter):h())}(),n.addEventListener("audio-update",c),()=>{n.removeEventListener("audio-update",c),u&&u.disconnect(),clearTimeout(d),l.disconnect(),r.disconnect()}))),_e()}function Ho(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();o().camera.flyToView(i().view,{area:null==(l=o().opts)?void 0:l.area,limitZoom:!0,margin:[20/n().$info.width*t,20/n().$info.height*t]})}}else o().state.marker.set(i())}var Zo=qe('<img alt="" class="micrio-marker">'),Jo=qe('<label data-scroll-through=""> </label>'),Ko=qe('<button data-scroll-through="" class="micrio-marker"><!> <!></button>'),Qo=qe("<div><!></div>"),ta=qe("<!> <!>",1);function ea(t,e){var i,r,n,s,o,a,l,c,u,d,h,m,v;Te(e,!0);const[p,g]=rr(),f=()=>er(x,"$current",p),w=()=>er(R,"$tour",p),b=()=>er(C,"$currentPopup",p),y=()=>er(S,"$_lang",p),k=()=>er($,"$isMobile",p),T=()=>er(yo,"$ctx",p),_=ye("micrio"),{current:x,events:E,state:A,_lang:S,spaceData:M}=_,$=_.canvas.isMobile,I=A.markerHoverId,L=ye("inView"),P=ye("markerImages"),C=_.state.popup,R=A.tour;let D=ar(e,"marker",15),O=ar(e,"image",31,(()=>B(f()))),z=ar(e,"forceHidden",3,!1),N=ar(e,"coords",3,void 0),F=ar(e,"overlapped",3,!1);D().tags||D(D().tags=[],!0);const V=P.has(D().id);!V&&O()&&P.set(D().id,O());const U=!(!O().isOmni||!(null==(i=O().$settings.omni)?void 0:i.sideLabels)||(null==(r=O().$settings._markers)?void 0:r.noTitles)),W=t=>t.steps.findIndex((t=>t.startsWith(D().id)))>=0,q=D().data??{},X=q._meta||{},j=O().$settings.omni;D().imageLayer&&D().imageLayer>((null==(n=null==j?void 0:j.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 H=O().$settings._markers??{},Z=!!O().$settings.doTourJumps,J=D().tags.join(" "),Q="cluster"==D().type,tt=!1===(null==(l=D().data)?void 0:l.showTitle)||!!H.noTitles||!!(null==j?void 0:j.sideLabels),et=!!q.scales||!!O().$settings.markersScale,it=et&&!!H.titlesNoScale,rt=q._micrioSplitLink,nt=!!H.keepPopupsDuringTourTransitions,st=/[?&]micrioNoTooltips/.test(location.search)||!!(null==j?void 0:j.sideLabels),ot=X.gridAction,at=(null==(u=null==(c=O().$settings)?void 0:c._markers)?void 0:u.autoStartTour)?_.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(W):void 0})).filter((t=>!!t))[0]??(null==(d=null==M?void 0:M.markerTours)?void 0:d.find(W)):void 0,lt=null==at?void 0:at.steps.findIndex((t=>t.startsWith(D().id))),ht=!!(null==(m=null==(h=O().$settings)?void 0:h._markers)?void 0:m.autoStartTourAtBeginning);let mt=!V&&(!!q.alwaysOpen||A.$marker==D())||(null==(v=A.$tour)?void 0:v.id)==(null==at?void 0:at.id)&&(null==at?void 0:at.currentStep)==(lt??0);const vt=V&&O().state.$marker==D();let pt,gt,ft,wt=Y(B(vt)),bt=Y(B(vt)),yt=Y(!1),kt=Y(""),Tt=Y(0),_t=Y(0),xt=Y(1),Et=!1;function At(){var t,e;H.noMarkerActions||(null==(e=null==(t=Yt(Ft))?void 0:t.parentNode)||e.scrollTo(0,0),St(),ft=setTimeout((()=>{const t=O().camera.getXY(D().x,D().y);!Yt(wt)&&(t[0]<0||t[0]>=_.offsetWidth||t[1]<0||t[1]>=_.offsetHeight||O().is360&&t[3]>4)&&O().camera.flyToCoo([D().x,D().y],{speed:2,limit:!0}).catch((()=>{}))}),150))}function St(){clearTimeout(ft)}const Mt=()=>I.set(D().id),$t=()=>I.set(void 0);let It;async function Lt(){var t,e,i,r,n;if(Q)return;if(O().state.$marker!=D())return O().state.marker.set(D());if(H.noMarkerActions)return;if(at&&at.id!=(null==(t=w())?void 0:t.id)&&!w()){at.initialStep=ht?0:lt;const t=null==(e=at.stepInfo)?void 0:e[0];if(ht&&t&&t.micrioId!=O().id){const e=null==(i=_.canvases[0])?void 0:i.grid;(null==e?void 0:e.images.find((e=>e.id==t.micrioId)))?_.current.set(e.image):_.open(t.micrioId)}if(R.set(at),setTimeout((()=>X.gridAction=ot),100),ht&&null!=lt&&lt>0)return void O().state.marker.set(void 0);await Xt()}mt=!1,G(bt,!0),E.dispatch("marker-opened",D());const s=w()&&"steps"in w()&&w().isSerialTour&&w().printChapters&&w().steps.findIndex((t=>t.startsWith(D().id)))>=0&&D().videoTour;var o;s||(Yt(jt)?"popover"==D().popupType?(await Xt(),_.state.popover.set({marker:D(),image:O(),markerTour:w()&&"steps"in w()?w():void 0})):D().videoTour&&!w()&&(R.set(D().videoTour),(o=R,new Promise((t=>{let e;e=o.subscribe((i=>{null==i&&(e?e():Xt().then((()=>e())),t(i))}))}))).then((()=>O().state.marker.set(void 0)))):Xt().then((()=>C.set(D()))));const a=null==(r=q.micrioLink)?void 0:r.id;if(a&&Xt().then((()=>{O().camera.stop();const t=Vr(_,a);t&&(O(O().openedView=void 0,!0),O().state.marker.set(void 0)),_.open(a,{vector:null==t?void 0:t.vector})})),rt&&!Et&&!O().opts.secondaryTo){const t=null==(n=_.canvases[0])?void 0:n.grid;(null==t?void 0:t.lastPromise)&&await t.lastPromise,It=setTimeout((()=>{rt&&(gt=_.open(rt.micrioId,{splitScreen:!0,splitTo:O(),isPassive:!(!rt.follows||_.state.$tour),startView:rt.view}),Et=!0)}),200)}}let Pt,Ct,Rt=Y(!1);function Dt(){var t,e,i,r,n,s;if(O().is360&&et)G(kt,O().camera.getMatrix(D().x,D().y,1,1,0,0,0).join(","),!0);else{let o=Yt(Tt),a=Yt(_t);if(s=O().camera.getXYDirect(D().x,D().y,{radius:D().radius,rotation:D().rotation}),G(Tt,s[0],!0),G(_t,s[1],!0),G(xt,s[2],!0),pt=s[3],O().is360)G(yt,pt>0);else if(O().isOmni&&j){if(null!=Yt(Ht)[0]&&null!=Yt(Ht)[1]&&null!=D().rotation){const i=j.frames/((null==(t=j.layers)?void 0:t.length)??1);let r=((null==(e=O().swiper)?void 0:e.currentIndex)??0)-(Yt(Gt)??0);r>i/2&&(r-=i),r<-i/2&&(r+=i),G(yt,r<=Yt(Ht)[0]||r>=Yt(Ht)[1],!0)}else j.distance&&G(yt,pt<0);j.sideLabels&&!H.noTitles&&(null==(i=Yt(Bt))?void 0:i.title)&&L&&(o!=Yt(Tt)||a!=Yt(_t))&&function(t,e){const i=_.canvas.element.offsetWidth,r=_.canvas.element.offsetHeight,n=!(t<0||t>i||e<0||e>r||Yt(yt));(n||Yt(Rt))&&L.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),G(Rt,n,!0),r}))}(Yt(Tt),Yt(_t))}O().$settings.clusterMarkers&&N()&&N().set(D().id,[Yt(Tt),Yt(_t),F()?Pt:Pt=null==(r=Yt(Vt))?void 0:r.offsetWidth,F()?Ct:Ct=null==(n=Yt(Vt))?void 0:n.offsetHeight])}}function Ot(t){const e=t.detail;D(D().x=e.x,!0),D(D().y=e.y,!0),Dt()}function zt(t,e){return t.addEventListener("change",e),{destroy:()=>t.removeEventListener("change",e)}}let Nt=Y(void 0),Ft=Y(void 0),Vt=Y(void 0);const Ut=ye("mediaPaused");ji((()=>{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[y()])?void 0:e.timeline;(null==i?void 0:i.length)&&D(D().view=i[0].rect,!0)}const i=[O().state.marker.subscribe((t=>{"string"==typeof t&&t==D().id?O().state.marker.set(D()):t==D()?async function(){var t,e;if(Yt(wt))return;if(G(wt,!0),St(),H.noMarkerActions)return;E.dispatch("marker-open",D()),!w()||"steps"in w()&&(W(w())||w().cannotClose)||(R.set(void 0),await Xt());const i=w()&&"steps"in w();Yt(jt)||i&&nt||(C.set(void 0),_.state.popover.set(void 0)),$t(),(null==rt?void 0:rt.markerId)&&(gt||(gt=_.canvases.find((t=>t.id==rt.micrioId))),gt&&(Et=Ki(gt.visible),Et&&(null==rt?void 0:rt.view)&&gt.camera.flyToView(rt.view,{isJump:!0}).catch((()=>{})))),void 0!==D().imageLayer&&O().state.layer.set(D().imageLayer);const r=at&&ht&&at!=w()&&null!=lt&&lt>0;r&&delete X.gridAction;const n=D().view;r||!n||q.noAnimate||D().videoTour||X.gridView?Lt():mt?(O().camera.setView(D().view,{area:null==(t=O().opts)?void 0:t.area}),Lt()):O().camera.flyToView(D().view,{omniIndex:Yt(Gt),noTrueNorth:!0,area:null==(e=O().opts)?void 0:e.area,isJump:!!q.doJump||Z&&!!A.$tour}).then(Lt).catch((()=>{w()||O().state.marker.set(void 0)}))}():q.alwaysOpen||(Yt(wt)&&function(){var t;if(clearTimeout(It),E.dispatch("marker-closed",D()),D().videoTour&&O().openedView?setTimeout((()=>O().camera.aniDoneAdd.push((()=>{var t;return null==(t=Yt(Nt))?void 0:t.focus()}))),10):null==(t=Yt(Nt))||t.focus(),_.state.popover.set(void 0),!Yt(jt)){const t=w()&&"steps"in w();b()!=D()||t&&nt||C.set(void 0);const e=_.canvases.find((t=>t!=O()&&t.state.$marker));e&&Xt().then((()=>{const t=e.state.$marker;t&&"popup"==t.popupType&&C.set(t)}))}rt&&gt&&setTimeout((()=>{var t,e;const i=Ki(_.state.marker);gt&&rt.micrioId!=(null==(e=null==(t=null==i?void 0:i.data)?void 0:t._micrioSplitLink)?void 0:e.micrioId)&&_.close(gt)}),210)}(),G(wt,G(bt,!1),!0))}))];return Yt(qt)||(i.push(O().camera.image.state.view.subscribe(Dt)),Dt()),z()||Xt().then((()=>{Yt(wt)&&!D().noMarker&&b()&&b()!=D()&&!w()?O().state.marker.set(void 0):(mt||q.alwaysOpen)&&Lt()})),D().htmlElement&&Yt(Ft)&&Yt(Ft).appendChild(D().htmlElement),()=>{var t;for(clearTimeout(It);i.length;)null==(t=i.shift())||t()}}));const Bt=K((()=>D().i18n?D().i18n[y()]:D())),Wt=K((()=>{var t,e,i,r;return!((null==(t=Yt(Bt))?void 0:t.title)||(null==(e=Yt(Bt))?void 0:e.body)||(null==(i=Yt(Bt))?void 0:i.bodySecondary)||(null==(r=Yt(Bt))?void 0:r.embedUrl)||D().images&&D().images.length)})),qt=K((()=>z()||D().noMarker)),jt=K((()=>"popup"!=D().popupType||Yt(Wt))),Gt=K((()=>O().camera.getOmniFrame((D().rotation??0)+(D().backside?Math.PI:0)))),Ht=K((()=>D().visibleArc?[O().camera.getOmniFrame(D().visibleArc[0]),O().camera.getOmniFrame(D().visibleArc[1])]:[])),Zt=K((()=>w()&&(!("steps"in w())&&!w().keepMarkers||H.hideMarkersDuringTour&&!er(Ut,"$tourPaused",p))&&!Yt(wt)));ee((()=>{Yt(Zt)&&Yt(Rt)&&L.update((t=>{const e=t.findIndex((t=>t[0]==D()));return e>=0&&t.splice(e,1),t}))}));const Jt=K((()=>"default"==D().type?void 0:"link"==D().type?"link":"media"==D().type?"play":"cluster"==D().type?void 0:D().type??void 0)),Kt=K((()=>{var t,e,i,r,n;return(null!=(null==(t=D().data)?void 0:t.customIconIdx)?null==(r=null==(e=O().$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)??H.markerIcon??void 0})),Qt=K((()=>!!Yt(Jt)||!!Yt(Kt))),te=K((()=>!("class"in D()&&""===D().class||!Yt(Qt)&&"default"!=D().type))),ie=K((()=>Yt(Bt)&&(!tt||k()&&U)&&(Yt(Bt).label||Yt(Bt).title)));var re=ta(),ne=ut(re),oe=t=>{var e=Qo();let i;var r=ct(e),n=t=>{var e=Ko();e.__click=[Ho,St,D,H,f,x,O];var i=ct(e),r=t=>{var e=Zo();se((()=>Ei(e,"src","string"==typeof Yt(Kt)?Yt(Kt):Yt(Kt).src))),Ge(t,e)},n=(t,e)=>{var i=t=>{Cn(t,{get name(){return Yt(Jt)}})};ei(t,(t=>{Yt(Jt)&&t(i)}),e)};ei(i,(t=>{Yt(Kt)?t(r):t(n,!1)}));var s=dt(i,2),o=t=>{var e=Jo();fi(e,1,"micrio-marker",null,{},{static:it});var i=ct(e);Wi(e,(t=>G(Vt,t)),(()=>Yt(Vt))),se((()=>{Ei(e,"for",D().id),Je(i,Yt(Bt).label||Yt(Bt).title)})),Ge(t,e)};ei(s,(t=>{Yt(ie)&&t(o)})),Wi(e,(t=>G(Nt,t)),(()=>Yt(Nt))),se((()=>{Ei(e,"title",st||Q?null:Yt(Bt)?Yt(Bt).label||Yt(Bt).title:null),Ei(e,"id",D().id)})),Fe("focus",e,At),Fe("blur",e,St),Fe("mouseenter",e,Mt),Fe("mouseleave",e,$t),Ge(t,e)};ei(r,(t=>{D().htmlElement||t(n)})),Wi(e,(t=>G(Ft,t)),(()=>Yt(Ft))),di(e,((t,e)=>null==zt?void 0:zt(t,e)),(()=>Ot)),se((t=>{Ei(e,"id",`m-${D().id}`),i=fi(e,1,mi(J),"micrio-marker",i,t),bi(e,Yt(kt)?`--mat:matrix3d(${Yt(kt)})`:Yt(Tt)?`--x:${Yt(Tt)}px;--y:${Yt(_t)}px${et?`;--scale:${Yt(xt)}`:""}`:null)}),[()=>({overlapped:F()&&!Yt(wt),cluster:Q,behind:Yt(yt),hovered:er(I,"$hovered",p)==D().id,default:Yt(te),mat3d:!!Yt(kt),opened:Yt(wt),"micrio-link":!!q.micrioLink,"has-icon":Yt(Qt),"has-custom-icon":!!Yt(Kt)})]),Ge(t,e)};ei(ne,(t=>{Yt(qt)||!O()||Yt(Zt)||t(oe)}));var ae=dt(ne,2),le=t=>{Go(0,{get marker(){return D()},get ctx(){return T()},get is360(){return O().is360}})};ei(ae,(t=>{D().positionalAudio&&T()&&(!D().positionalAudio.noMobile||k())&&(D().positionalAudio.alwaysPlay||Yt(wt))&&t(le)})),Ge(t,re),_e(),g()}Ve(["click"]);var ia=qe("<div><!></div>");function ra(t,e){var i,r;Te(e,!0);const[n,s]=rr(),o=()=>er(u,"$_lang",n);let a=ar(e,"settings",31,(()=>B({i18n:{}}))),l=ar(e,"image",15);const c=ye("micrio"),{_lang:u,spaceData:d}=c,h=l().$info,m=l().$settings,v=null==(i=Ar(e.targetId))?void 0:i[2],p=Vr(c,e.targetId);p||console.error(`[Micrio Waypoint] Could not calculate vector for target ${e.targetId}`);const{directionX:g,v:f,vN:w,vector:b}=p;let y=Y(void 0);const k=Math.abs(w[1])<.3,T=k?.65:.5+w[1]/10,_={x:g,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)??ur(_);let E,A=x.custom,S=A?x:_;function M(){var t;(null==(t=m._markers)?void 0:t.noMarkerActions)||(Yt(y).parentNode.scrollTo(0,0),clearTimeout(E),E=setTimeout((()=>{const t=l().camera.getXY(S.x,S.y);!Yt(P)&&(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 $=Y(""),I=a().customIconIdx;const L=()=>{D.deleted?G(R,!0):(I!=D.settings.customIconIdx&&(a(a().customIconIdx=D.settings.customIconIdx,!0),I=a().customIconIdx),x.custom!=A&&(A=x.custom,S=A?x:_),G($,l().camera.getMatrix(S.x,S.y,S.baseScale*S.scale,1,S.rotX,S.rotY,S.rotZ,0,1,1,!0).join(","),!0))};let P=Y(!1);function C(){var t;(null==(t=m._markers)?void 0:t.noMarkerActions)||(G(P,!0),l(l().openedView=void 0,!0),l().state.marker.set(void 0),c.open(e.targetId,{vector:b}))}let R=Y(!1);const D={coords:x,settings:a()};L(),ji((()=>{D.el=Yt(y),Yt(y)._iface=D,c.dispatchEvent(new CustomEvent("wp-print",{detail:D}));const t=l().state.view.subscribe(L);return()=>t()}));const O=K((()=>{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)})),z=K((()=>{var t;return null==(t=null==d?void 0:d.icons)?void 0:t[a().customIconIdx??-1]}));var N=je(),F=ut(N),V=t=>{var i=ia();let r;var s=ct(i);const o=K((()=>Yt(z)?void 0:"arrow-up")),a=K((()=>Yt(O)??er(Qr,"$i18n",n).waypointFollow));qn(s,{get type(){return Yt(o)},get icon(){return Yt(z)},onclick:C,onfocus:M,get title(){return Yt(a)}}),Wi(i,(t=>G(y,t)),(()=>Yt(y))),se((t=>{bi(i,`--matrix: matrix3d(${Yt($)??""})`),Ei(i,"id",`w-${e.targetId}`),r=fi(i,1,"micrio-waypoint",null,r,t)}),[()=>({clicked:Yt(P),active:Yt(P),"direction-up":f[1]<0,"direction-down":f[1]>0})]),zi(3,i,(()=>Yr)),Ge(t,i)};ei(F,(t=>{Yt(R)||t(V)})),Ge(t,N),_e(),s()}var na=Xe("<line></line>"),sa=qe('<article class="micrio-markers"><label> </label></article>'),oa=qe('<article class="micrio-markers"><label> </label></article>'),aa=qe('<svg class="micrio-markers"></svg> <aside class="micrio-markers"><section class="micrio-markers"></section> <section class="micrio-markers"></section></aside>',1),la=qe("<!> <!>",1),ca=qe("<div><!> <!></div>"),ua=qe("<!> <!> <!>",1);function da(t,e){var i;Te(e,!0);const[r,n]=rr(),s=()=>er(v,"$settings",r),o=()=>er(A,"$inView",r),a=()=>er(E,"$hoveredId",r),l=()=>er(f,"$switching",r),c=()=>er(h,"$data",r),u=()=>er(w,"$_lang",r);let d=ar(e,"image",15);const{data:h,info:m,settings:v}=d(),p=d().state.marker,g=d().wasm.micrio,{switching:f,_lang:w,state:b}=g,y=g.canvas.isMobile,k=null==(i=g.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,A=Ji([]);ke("inView",A);const S=s()._markers??{},M=s().omni,$=!(!!S.noTitles||!!(null==M?void 0:M.sideLabels)||!S.showTitles&&5!=d().id.length);let I=!1;function L(t){t?"string"==typeof t||d().openedView||t.noMarker||!t.view||(d(d().openedView=g.state.$tour&&!("steps"in g.state.$tour)?void 0:ur(d().state.$view),!0),I=!!t.videoTour):d().openedView&&!g.state.$tour&&setTimeout((()=>{var t;Yt(tt)||d().camera.aniDone||!d().openedView||d().camera.flyToView((t=>{const e=Math.min(1,t[2]),i=Math.min(1,t[3]),r=e/2,n=i/2;return[Math.max(r,Math.min(1-r,t[0]+t[2]/2))-r,Math.max(n,Math.min(1-n,t[1]+t[3]/2))-n,e,i]})(d().openedView),{speed:null==(t=s()._markers)?void 0:t.zoomOutAfterCloseSpeed,noTrueNorth:!0}).catch((()=>{})),d(d().openedView=void 0,!0),I=!1}),I?250:10)}let P=!1;b.tour.subscribe((t=>{t&&"steps"in t?(P=!0,t.keepLastStep&&d(d().openedView=void 0,!0)):(t||d().openedView||!P||d().camera.stop(),P=!1)}));const C=[];let R=Y(""),D=Y(!1),O=Y(!1);const z=t=>(t=null==t?void 0:t.map((t=>Math.round(100*t)/100)))&&G(R,[...C,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 N=Y(B([])),F=x,V=Y(B([]));const U=new Map,W=([t,e,i=0,r=0],[n,s,o=0,a=0])=>{const l=Math.max(r/2,F),c=Math.max(a/2,F);return!(t+i+F<n-F||t-F>n+o+F||e+l<s-c||e-l>s+c)},q=()=>{var t;if(!Yt(it))return G(N,[],!0),void G(V,[],!0);const e=Yt(it),i=[],r=e.length;let n=0,s=0;for(G(N,[],!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=U.get(e[n].id),o=U.get(e[s].id);if(r&&o&&W(r,o)){Yt(N).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])}}G(V,i.map((t=>t.filter(((e,i)=>t.indexOf(e)===i)))).map((t=>{const i=d().isOmni;let r,n,s,o,a,l;if(i){a=t.reduce(((t,i)=>t+e[i].x),0)/t.length,l=t.reduce(((t,i)=>t+e[i].y),0)/t.length;const i=.3;r=Math.max(0,a-i/2),s=Math.max(0,l-i/2),n=Math.min(1,a+i/2),o=Math.min(1,l+i/2)}else r=Math.min(...t.map((t=>e[t].view?e[t].view[0]:e[t].x))),n=Math.max(...t.map((t=>e[t].view?e[t].view[0]+e[t].view[2]:e[t].x))),s=Math.min(...t.map((t=>e[t].view?e[t].view[1]:e[t].y))),o=Math.max(...t.map((t=>e[t].view?e[t].view[1]+e[t].view[3]:e[t].y))),a=(r+n)/2,l=(s+o)/2;const c=i?t.reduce(((t,i)=>t+(e[i].rotation??0)),0)/t.length:void 0,u=i?t.reduce(((t,i)=>t+(e[i].radius??1)),0)/t.length:void 0;return{title:t.length+"",type:"cluster",view:[r,s,Math.max(.1,n-r),Math.max(.1,o-s)],x:a,y:l,rotation:c,radius:u,id:t.sort(((t,e)=>t-e)).join(","),data:{},popupType:"none",tags:[]}})),!0)},X=[];ji((()=>{const t=[];return kr(m).then((e=>{var i,r,n;if(!e)return;G(D,!!e.is360);const o=s()._markers;if(!o)return;const a=parseFloat(e.version)>=4.2;o.markerIcon&&C.push(`--micrio-marker-icon: url("${o.markerIcon}")`),o.markerColor&&o.markerColor!=(a?"#ffffff":"#ffbb00")&&C.push("--micrio-marker-color: "+o.markerColor),o.markerSize&&o.markerSize!=(a?"16":"25")&&C.push("--micrio-marker-size: "+(F=Number(o.markerSize))+"px"),t.push(d().viewport.subscribe(z)),s().clusterMarkers&&(t.push(d().state.view.subscribe(q)),t.push(d().data.subscribe((()=>Xt().then(q))))),!d().grid&&(null==(i=s()._markers)?void 0:i.zoomOutAfterClose)&&t.push(d().state.marker.subscribe(L));!(!d().isOmni||!(null==(r=s().omni)?void 0:r.sideLabels)||(null==(n=s()._markers)?void 0:n.noTitles))&&t.push(y.subscribe((t=>{t&&Yt(O)?function(){for(var t;X.length;)null==(t=X.shift())||t()}():t||Yt(O)||(X.push(d().state.view.subscribe(J)),X.push(E.subscribe(J)),X.push(p.subscribe(J))),G(O,!t)})))})),()=>{for(var e;t.length;)null==(e=t.shift())||e()}}));const j=t=>!t.noMarker;let H=Y(void 0),Z=Y(B([]));function J(){Xt().then((()=>{if(!Yt(H))return;const t=g.canvas,e=t.element.offsetWidth,i=[];o().forEach((([r,n,s])=>{var o;const l=null==(o=Yt(H).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])})),G(Z,i,!0)}))}const Q=(t,e)=>{var i;return t.i18n?null==(i=t.i18n[e])?void 0:i.title:t.title},tt=K((()=>k&&er(T,"$focussed",r)!=d()&&_&&Ki(_).indexOf(d())<0)),et=K((()=>!l()&&g.spaceData?g.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)),it=K((()=>{var t,e;return Yt(tt)?[]:null==(e=null==(t=c())?void 0:t.markers)?void 0:e.filter(j)})),rt=K((()=>{var t,e,i;return Yt(tt)?null==(t=c())?void 0:t.markers:null==(i=null==(e=c())?void 0:e.markers)?void 0:i.filter((t=>!j(t)))})),nt=K((()=>{var t,e;return!(!(null==(t=Yt(it))?void 0:t.length)&&!(null==(e=Yt(et))?void 0:e.length))})),st=K((()=>o().sort((([,,t],[,,e])=>t>e?1:t<e?-1:0))));var ot=ua(),at=ut(ot),lt=t=>{var e=aa(),i=ut(e);ri(i,21,(()=>Yt(Z)),ii,((t,e)=>{var i=na();let r;se((t=>{Ei(i,"x1",Yt(e)[0]),Ei(i,"y1",Yt(e)[1]),Ei(i,"x2",Yt(e)[2]),Ei(i,"y2",Yt(e)[3]),r=fi(i,0,"micrio-markers",null,r,t)}),[()=>({hovered:Yt(e)[4]})]),Ge(t,i)}));var r=dt(i,2),n=ct(r);ri(n,21,(()=>Yt(st).filter((([,t])=>t<.5))),(t=>t[0].id),((t,e)=>{var i=sa(),r=ct(i);let n;var s=ct(r);se(((t,i)=>{Ei(r,"for",Yt(e)[0].id),n=fi(r,1,"micrio-markers",null,n,t),Je(s,i)}),[()=>({hover:a()==Yt(e)[0].id}),()=>Q(Yt(e)[0],u())]),Fe("mouseenter",r,(()=>E.set(Yt(e)[0].id))),Fe("mouseleave",r,(()=>E.set(void 0))),Ge(t,i)})),ri(dt(n,2),21,(()=>Yt(st).filter((([,t])=>t>=.5))),(t=>t[0].id),((t,e)=>{var i=oa(),r=ct(i);let n;var s=ct(r);se(((t,i)=>{Ei(r,"for",Yt(e)[0].id),n=fi(r,1,"micrio-markers",null,n,t),Je(s,i)}),[()=>({hover:a()==Yt(e)[0].id}),()=>Q(Yt(e)[0],u())]),Fe("mouseenter",r,(()=>E.set(Yt(e)[0].id))),Fe("mouseleave",r,(()=>E.set(void 0))),Ge(t,i)})),Wi(r,(t=>G(H,t)),(()=>Yt(H))),Ge(t,e)};ei(at,(t=>{Yt(O)&&Yt(st).length&&!er(p,"$currentMarker",r)&&t(lt)}));var ht=dt(at,2),mt=t=>{var e=ca();let i;var r=ct(e),n=t=>{var e=je();ri(ut(e),17,(()=>Yt(et)),(t=>t.targetId),((t,e)=>{ra(t,sr({get image(){return d()}},(()=>Yt(e))))})),Ge(t,e)};ei(r,(t=>{Yt(et)&&Yt(et).length&&t(n)}));var s=dt(r,2),o=t=>{var e=la(),i=ut(e);ri(i,19,(()=>Yt(it)),(t=>t.id),((t,e,i)=>{const r=K((()=>Yt(N).includes(Yt(i))));ea(t,{get marker(){return Yt(e)},get image(){return d()},coords:U,get overlapped(){return Yt(r)}})})),ri(dt(i,2),17,(()=>Yt(V)),(t=>t.id),((t,e)=>{ea(t,{get marker(){return Yt(e)},get image(){return d()}})})),Ge(t,e)};ei(s,(t=>{Yt(it)&&t(o)})),se((t=>{bi(e,Yt(nt)?Yt(R):null),i=fi(e,1,"micrio-markers",null,i,t)}),[()=>({"show-titles":$,is360:Yt(D),inactive:Yt(tt)||Yt(D)&&l()})]),Ge(t,e)};ei(ht,(t=>{Yt(nt)&&t(mt)}));var vt=dt(ht,2),pt=t=>{var e=je();ri(ut(e),17,(()=>Yt(rt)),(t=>t.id),((t,e)=>{ea(t,{get marker(){return Yt(e)},get image(){return d()},forceHidden:!0})})),Ge(t,e)};ei(vt,(t=>{Yt(rt)&&t(pt)})),Ge(t,ot),_e(),n()}const ha="5.4.13",ma="https://b.micr.io/",va="https://r2.micr.io/",pa=["ttBWO","IicaE","KLTce","xjQrB","pfhXT","rNIPa","rdFIY","mvRXc"],ga={b64:_b,ugz:_u},fa="micrio-muted",wa={id:"",version:ha,path:ma,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,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:{}}},ba={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 ya,ka,Ta,_a,xa,Ea,Aa;ka=ya||(ya={}),Ta=ka.Grid||(ka.Grid={}),(_a=Ta.GridActionType||(Ta.GridActionType={}))[_a.focus=0]="focus",_a[_a.flyTo=1]="flyTo",_a[_a.focusWithTagged=2]="focusWithTagged",_a[_a.focusTagged=3]="focusTagged",_a[_a.reset=4]="reset",_a[_a.back=5]="back",_a[_a.switchToGrid=6]="switchToGrid",_a[_a.filterTourImages=7]="filterTourImages",_a[_a.nextFadeDuration=8]="nextFadeDuration",xa=ka.Camera||(ka.Camera={}),(Ea=xa.TimingFunction||(xa.TimingFunction={}))[Ea.ease=0]="ease",Ea[Ea["ease-in"]=1]="ease-in",Ea[Ea["ease-out"]=2]="ease-out",Ea[Ea.linear=3]="linear";class Sa{constructor(t){var e;if(this.image=t,this.center=[0,0,1],this.view=[0,0,1,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.getView=()=>this.view,this.getViewRaw=()=>this._view,this.getViewLegacy=()=>{if(this.e)return[this._view[0]-this._view[2]/2,this._view[1]-this._view[3]/2,this._view[0]+this._view[2]/2,this._view[1]+this._view[3]/2]},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,o;if(!this.e)return r(new Error("Wasm not ready"));let{centerX:a,centerY:l,width:c,height:u}=Br.toCenterJSON(t);if(2==(null==(n=e.margin)?void 0:n.length)&&(a+=e.margin[0],l+=e.margin[1],c-=2*e.margin[0],u-=2*e.margin[1]),e.area){const t=this.cooToArea(a,l,e.area);a=t.x,l=t.y,c*=e.area[2]-e.area[0],u*=e.area[3]-e.area[1]}if(e.prevView){const t=Br.toCenterJSON(e.prevView);this.e._setStartView(this.image.ptr,t.centerX,t.centerY,t.width,t.height)}if(null==(s=this.image.$settings.omni)?void 0:s.frames){const i=(null==(o=this.image.$settings.omni.layers)?void 0:o.length)??1,r=this.image.$settings.omni.frames/i;if(null==e.omniIndex){const i=t[4]?t[4]:Array.isArray(t)&&void 0!==t[5]?t[5]:void 0;void 0!==i&&(e.omniIndex=Math.round(cr(i/(2*Math.PI))*r))}null!=e.omniIndex&&(e.omniIndex=cr(e.omniIndex,r))}const d=this.e._flyTo(this.image.ptr,a,l,c,u,e.duration??-1,e.speed??-1,e.progress??0,!!e.isJump,!!e.limit,!!e.limitZoom,e.omniIndex??0,!e.noTrueNorth,ya.Camera.TimingFunction[e.timingFunction??"ease"],performance.now());this.image.wasm.render(),0==d?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,ya.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){this.e=t,this._view=e,this._xy=i,this._coo=r,this._mat=n}viewChanged(){var t;const e=this._view,i=this.center.join(","),r=this.getCoo(0,0);this.view[0]=e[0]-e[2]/2,this.view[1]=e[1]-e[3]/2,this.view[2]=e[2],this.view[3]=e[3],this.center[0]=e[0],this.center[1]=e[1],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={}){if(!this.e)return;let{centerX:i,centerY:r,width:n,height:s}=Br.toCenterJSON(t);if(e.area){const t=this.cooToArea(i,r,e.area);i=t.x,r=t.y,n*=e.area[2]-e.area[0],s*=e.area[3]-e.area[1]}this.e._setView(this.image.ptr,i,r,n,s,!!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())}getMatrix(t,e,i,r,n,s,o,a,l,c,u){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,u),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){if(!this.e)return;const e=Br.rectToCenterJSON(t);this.e._setLimit(this.image.ptr,e.centerX,e.centerY,e.width,e.height),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=Ji(),this.marker=Ji(),this.markerHoverId=Ji(),this.popup=Ji(),this.popover=Ji(),this.ui={controls:Ji(!0),zoom:Ji(!0),hidden:Ji(!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 kr(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 kr(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=Ji(void 0),this.marker=Ji(void 0),this.layer=Ji(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();if(s&&o&&i!=o){const a={image:t,view:s};i=o;const l=s[2],c=s[3];(!r||!n||Math.abs(l-r+(c-n))>1e-5)&&(e.events.dispatch("zoom",a),r=l,n=c),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?this._view.slice(0,4):[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.slice(1,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))}}})(Aa||(Aa={}));const Ma=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||Fr(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 Ia{constructor(t,e,i={}){this.wasm=t,this.attr=e,this.opts=i,this.uuid=dr(),this.__info=JSON.parse(JSON.stringify(wa)),this.settings=Ji({}),this.data=Ji(void 0),this.video=Ji(void 0),this.visible=Ji(!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=Ji(),this.embeds=[],this.isV5=!1,this._loadedData=!1,this.embedElements=new Map,this.state=new Aa.Image(this),i.useParentCamera||(this.camera=new Sa(this)),this.id=(e.id??"").replace("https://i.micr.io/",""),this.isV5=Fr(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=va),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=Ar(this.id);let r=!1;this.info={subscribe:Ji(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&&((t,e,i,r)=>{var n,s,o,a,l,c;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()),$r(t.video),$r(t),r&&(t.area=Br.fromLegacy(t.area))})),null==(s=t.markers)||s.forEach((t=>Dr(t,e,i,r))),r&&(null==(o=t.tours)||o.forEach(Or)),null==(l=null==(a=t.music)?void 0:a.items)||l.forEach($r),null==(c=t.pages)||c.forEach(Cr))})(t,n.lang,this.isV5,Ir(this.__info))}))}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,g,f,w,b,y;let k=this.__info;const T=this.attr,_=this.wasm.micrio;T.id&&T.width&&(T.settings&&gr(wa.settings,T.settings,{noOverwrite:!0}),this.__info=k=T);let x=k.iiifManifest||T.iiifManifest;k.isIIIF=this.id.startsWith("http")||"iiif"==k.format;const E=!!(null==(t=T.settings)?void 0:t.forceDataRefresh);let A;if(!this.id||T.width&&T.height&&!x)(null==(o=this.preset)?void 0:o[1])&&gr(this.preset[1],k);else{const t=t=>this.setError(t,"string"==typeof t?t:'Image with id "'+this.id+'" not found, published, or embeddable.');gr((null==(e=this.preset)?void 0:e[1])||await(k.isIIIF?Er(this.id):Sr(this.id,this.infoBasePath,E).then((t=>((null==t?void 0:t.id)&&!k.isIIIF&&3==this.id.split("/").length&&this.id.startsWith("external/")&&(A=t.id.split("/").reverse()[0],(this.isV5=Fr(A))&&(this.dataPath=t.path||va)),t)))).catch(t),k),!x&&k.iiifManifest&&(x=k.iiifManifest),k.isIIIF||(k.isIIIF=!!x),x&&gr(await Er(x).catch(t),k),(null==(r=null==(i=k.settings)?void 0:i._meta)?void 0:r.noLogo)&&(k.settings.noLogo=!0),(null==(s=null==(n=k.settings)?void 0:n._meta)?void 0:s.noSmoothing)&&(k.settings.noSmoothing=!0)}const S="https://iiif.micr.io/";if(k.id.startsWith(S)&&(k.id=k.id.slice(21)),7==(null==(a=this.id)?void 0:a.length)){const t=Nr(this.id[1+Nr(this.id)%6]);k.is360=!!(t>>4&1),k.isWebP=!(3&t),k.isPng=2==(3&t),t>>3&1&&Fr(k.tilesId??this.id)&&(k.format="dz"),k.path||(k.path=`https://${t>>2&1?"eu":"r2"}.micr.io/`)}const M=this.isV5&&this.id.startsWith("i")&&!this.id.includes("/");M&&!k.tilesId&&(k.tilesId=this.id.slice(1));const $=pa.indexOf(k.id)>=0||k.tilesId&&pa.indexOf(k.tilesId)>=0;gr(T,k),A&&(this.id=k.id=A);const I=M&&!(null==(l=k.tileBasePath)?void 0:l.includes("micr.io"));if(this.tileBase=I?k.tileBasePath??ma:$||M?ma:k.tileBasePath??k.path??(this.isV5?va:ma),(null==(c=k.organisation)?void 0:c.baseUrl)&&!T.path?(this.dataPath=k.path=k.organisation.baseUrl,M&&!$||(this.tileBase=this.dataPath)):"https://eu.micr.io/"==k.path&&(this.dataPath=k.path),(null==(u=k.settings)?void 0:u.omni)&&(this.isOmni=!0,parseFloat(k.version)>=5&&(await Ma.load(this.tileBase??this.dataPath,(k.tilesId??k.id)+"/base",(t=>{var e,i;return null==(i=null==(e=_._ui)?void 0:e.setProps)?void 0:i.call(e,{loadingProgress:t})})).catch((t=>this.setError(t,"Could not find object base package."))),k.settings.gallery||(k.settings.gallery={}),k.settings.gallery.type="omni",k.settings.gallery.archive=k.id)),!(null==(d=k.organisation)?void 0:d.branding)||k.settings&&k.settings.noUI||this.loadStyle(this.dataPath+"style/"+k.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`)}))})),k.isIIIF)if(k.sequences&&k.sequences.length)this.parseIIIFSequence(k,!!x);else{const t=(x||("@id"in k?k["@id"]:k.id)).replace("/info.json","");k.path=t.replace(/\/[^/]*$/,""),k.id=t.replace(/^.*\/([^/]*)$/,"$1")}if(k.spacesId&&!_.spaceData&&(_.spaceData="MICRIO_SPACE_DATA"in self?self.MICRIO_SPACE_DATA:await Er("https://i.micr.io/spaces/"+k.spacesId+".json"),1==(null==(h=_.spaceData)?void 0:h.images.length)&&delete _.spaceData),null==(m=k.settings)?void 0:m._360){let t=(null==(p=null==(v=_.spaceData)?void 0:v.images.find((t=>t.id==this.id)))?void 0:p.rotationY)??0;for(;t<0;)t+=2*Math.PI;k.settings._360.trueNorth=(.5+t/Math.PI/2)%1}this.noImage=this.noImage||this.isOmni||!k.id&&!k.tilesId,this.extension=k.tileExtension||k.isPng&&"png"||k.isWebP&&"webp"||"jpg","dz"==k.format&&(k.isDeepZoom=!0),this.is360=!!k.is360,this.isVideo=!!k.isVideo;let L=this.isV5?Ki(_._lang):("cultures"in k?void 0:T.lang)??void 0;if(this.isV5){if(k.revision){const t=Object.keys(k.revision);t.length&&t.indexOf(L)<0&&(_.lang=t[0])}}else if(!(null==(g=k.settings)?void 0:g.skipMeta)&&"cultures"in k){const t=(k.cultures||"").split(","),e=this.opts.isEmbed||!!this.opts.area,i=(null==(f=k.settings)?void 0:f.onlyPreferredLang)||e;L=k.lang&&t.indexOf(k.lang)>=0?k.lang:i?void 0:t[0],L&&!e&&(_.lang=L)}const P=k.settings;P&&!(null==P?void 0:P.noExternals)&&await Promise.all([P.css?this.loadStyle(P.css.href):null,P.js?this.loadScript(P.js.href,L):null].filter((t=>!!t)));for(let R=k.tileSize;R<Math.max(k.width,k.height);R*=2,this.levels++);let C=Math.max(k.width,k.height);do{this.dzLevels++}while((C/=2)>1);return(null==(w=null==P?void 0:P.gallery)?void 0:w.archive)&&(this.levels-=1-(P.gallery.archiveLayerOffset??0)),this.noImage||(this.thumbSrc=this.getTileSrc(this.levels,0,0)),_.events.dispatch("pre-info",k),this.isV5&&null!=k.revision&&!this.opts.isEmbed?await this.loadData():(null==(b=k.settings)?void 0:b.skipMeta)||this.opts.isEmbed||this.isV5||_._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&&(this.isV5||(_.state.tour.set(void 0),this.state.marker.set(void 0)),(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)})):Er(this.dataPath+this.id+"/data."+t+".json").catch((()=>{})).then((t=>t&&this.enrichData(t).then((t=>this.data.update((e=>(gr(t,e||(e={}),{mergeArrays:!0}),e))))))))})),(null==(y=k.settings)?void 0:y.micrioSplitLink)&&!this.opts.secondaryTo&&_.open({id:k.settings.micrioSplitLink,settings:{hookEvents:!1!==k.settings.secondaryInteractive}},{splitScreen:!0,isPassive:!k.settings.noFollow}),k.settings&&this.settings.set(k.settings),delete k.settings,k.watermark&&this.wasm.micrio.webgl.loadWatermark(k.watermark),this.isOmni&&this.state.hookOmni(),k}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 Er(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(Dr(t,o,!this.isV5,Ir(this.__info)),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)),d=t=>this.dataPath+(this.isV5?t+"/data/pub.json":t+"/data."+o+".json"),[h,m]=await Promise.all([Promise.all(u.map((t=>Er(d(t))))),Promise.all(u.map((t=>Sr(t,this.infoBasePath))))]);h.forEach(((t,e)=>{var i;const r=Ir(m[e]);null==(i=null==t?void 0:t.markers)||i.forEach((t=>Dr(t,o,5==u[e].length,r)))}));const v=this.wasm.micrio.spaceData;return t.markerTours&&(await Promise.all(t.markerTours.map((e=>zr(this,e,o,t)))),v&&(t.markerTours=t.markerTours.filter((t=>!t.steps.find((t=>t.includes(","))))))),(null==v?void 0:v.markerTours)&&await Promise.all(v.markerTours.filter((t=>!t.stepInfo)).map((e=>zr(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 Ia&&!r.$data&&(i=d(r.id),!Tr.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 Ia(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 Ia(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),kr(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 La{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:pr.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||Ur(this._vid)?this._vid.src=t:br("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 Pa=qe('<img alt="Embed" data-scroll-through="" class="micrio-embed">'),Ca=qe('<button data-scroll-through="" aria-label="embed-button" class="micrio-embed"></button>');function Ra(t,e){var i,r,n;Te(e,!0);const[s,o]=rr(),a=()=>er(c,"$current",s),l=ye("micrio"),{current:c,wasm:u,canvas:d}=l;let h=ar(e,"embed",15);(null==(i=h().src)?void 0:i.startsWith("/r2"))&&h(h().src="http://localhost:6100"+h().src,!0);const m=a(),v=m.$info;h().uuid||h(h().uuid=dr(),!0);const p=h().uuid,g=m.is360,f=(null==(r=h().video)?void 0:r.autoplay)??!0;let w=m.embeds.find((t=>{var e;return t.uuid==p||(null==(e=t.$info)?void 0:e.title)==p}));const b=window.matchMedia("(dynamic-range: high)").matches||pr.OSX,y=h().area,k=null==(n=h().src)?void 0:n.toLowerCase().endsWith(".svg"),T=!(!h().width||!h().height)&&h().width*h().height<Math.pow(1024,2),_=/iPhone OS 14_/i.test(navigator.userAgent),x="data-embeds-inside-gl",E=l.getAttribute(x),A=!(k||_||!b&&!l.hasAttribute(x)||"false"==E||(!h().micrioId||T&&h().src)&&(!h().video||h().video.controls||h().video.transparent)),S=!h().clickAction&&!h().frameSrc,M="href"==h().clickAction?h().clickTarget:void 0,$=M&&h().clickTargetBlank;let I=Y(B(y[2])),L=Y(B(y[3])),P=Y(y[0]+y[2]/2),C=Y(y[1]+y[3]/2),R=Y(B(h().scale||1)),D=Y(B(h().rotX??0)),O=Y(B(h().rotY??0)),z=Y(B(h().rotZ??0)),N=Y(B(h().scaleX??1)),F=Y(B(h().scaleY??1)),V=Y(""),U=Y(0);function W(){const t=h().area;G(I,t[2],!0),G(L,t[3],!0),G(P,t[0]+Yt(I)/2),G(C,t[1]+Yt(L)/2),G(R,h().scale||1,!0),G(D,h().rotX??0,!0),G(O,h().rotY??0,!0),G(z,h().rotZ??0,!0),G(N,h().scaleX??1,!0),G(F,h().scaleY??1,!0);const e=A&&h().micrioId&&h().width,i=e?10:1;let r=Yt(I)*v.width/(h().width??100)/(A?h().width?Yt(I):1:Yt(R))*(g?Math.PI/2:1);const n=[];e&&h().width&&(r=Yt(I)/(h().width/v.width)*i*(g?Math.PI/2:1),n.push(`width:${h().width/i}px`)),n.push(`--ratio:${Yt(I)/Yt(L)*v.width/v.height};--scale:${r}`),k&&G(V,Yt(V)+`height:${h().height}px`),G(V,n.join(";"),!0),h().video&&(h().video.width>h().video.height?G(U,Math.min(h().video.width,Yt(I)*v.width,2048),!0):G(U,Math.min(h().video.height,Yt(L)*v.height,2048)/(h().video.height/h().video.width)))}W();const q=K((()=>Math.round(Yt(I)*v.width))),X=K((()=>Math.round(Yt(L)*v.height)));let j,H=Y(!1),Z=Y(0),J=Y(0),Q=Y(""),tt=Y(!1),et=Y("");function it(){var t,e,i,r;if(!m.camera.e)return;const n=m.camera.getXYDirect(Yt(P),Yt(C));if(G(Z,n[0],!0),G(J,n[1],!0),j=n[2],g&&(G(Q,m.camera.getMatrix(Yt(P),Yt(C),Yt(R),1,Yt(D),Yt(O),Yt(z),void 0,Yt(N),Yt(F)).join(","),!0),G(tt,n[3]>2)),G(et,(g?`transform:matrix3d(${Yt(Q)});`:`--x:${Yt(Z)}px;--y:${Yt(J)}px;--s:${j};`)+(void 0!==h().opacity&&1!==h().opacity?`--opacity:${h().opacity};`:"")),((null==(t=h().video)?void 0:t.pauseWhenSmallerThan)||(null==(e=h().video)?void 0:e.pauseWhenLargerThan))&&Yt(q)){const t=Yt(H);G(H,function(){var t,e;if(!(null==(t=h().video)?void 0:t.pauseWhenSmallerThan)&&!(null==(e=h().video)?void 0:e.pauseWhenLargerThan))return!f;const i=j?Math.max(Yt(q)*j/d.viewport.width,Yt(X)*j/d.viewport.height):0;return!!(h().video.pauseWhenSmallerThan&&i<h().video.pauseWhenSmallerThan||h().video.pauseWhenLargerThan&&i>h().video.pauseWhenLargerThan)}(),!0),(null==(i=Yt(lt))?void 0:i._vid)&&Yt(H)!=t&&(Yt(H)?Yt(lt)._vid.pause():((null==(r=null==m?void 0:m.$settings)?void 0:r.embedRestartWhenShown)&&(Yt(lt)._vid.currentTime=0),Yt(lt)._vid.play()))}}function rt(){a()&&"markerId"==h().clickAction&&h().clickTarget&&a().state.marker.set(h().clickTarget)}function nt(t){if(t&&"detail"in t){const e=t.detail;for(const t in e)h(h()[t]=e[t],!0)}W(),it()}function st(t,e){return t.addEventListener("change",e),{destroy:()=>t.removeEventListener("change",e)}}const ot=Ji(!1);h().video&&(h().video.controls||h(h().video.muted=!0,!0));const at=A&&!!h().video;let lt=Y(void 0);const ct=!A||!!h().clickAction;let dt=Y(void 0);ee((()=>{var t;h().video&&h().id&&a()&&a().setEmbedMediaElement(h().id,Yt(dt)??(null==(t=Yt(lt))?void 0:t._vid))}));const ht=K((()=>h().video||A?Yt(U):Yt(q))),mt=K((()=>h().video?Yt(U)/(h().video.width/h().video.height):Yt(X))),vt=K((()=>Yt(q)/Yt(ht)));ji((()=>{var t,e;const i=[];return A&&function(){const t=h().hideWhenPaused?.01:h().opacity??1,e=[h().area[0],h().area[1],h().area[0]+h().area[2],h().area[1]+h().area[3]];w&&w.ptr>=0?(w.camera.setArea(e),w.camera.setRotation(h().rotX,h().rotY,h().rotZ),u.fadeImage(w.ptr,t)):w=m.addEmbed({id:h().video?h().id:h().micrioId,title:p,width:h().width,height:h().height,isPng:h().isPng,isWebP:h().isWebP,isDeepZoom:h().isDeepZoom,path:v.tileBasePath??v.path,isSingle:!!h().video,isVideo:!!h().video,settings:{_360:{rotX:Yt(D),rotY:Yt(O),rotZ:Yt(z)}}},e,{opacity:t,asImage:!1}),at&&kr(w.visible,{targetValue:!0}).then((()=>{G(lt,new La(u,w,h(),Yt(H),it),!0)})),u.render()}(),(ct||(null==(t=h().video)?void 0:t.pauseWhenSmallerThan)||(null==(e=h().video)?void 0:e.pauseWhenLargerThan))&&i.push(m.state.view.subscribe(it)),()=>{var t,e;for(null==(t=Yt(lt))||t.unmount(),w&&w.ptr>=0&&(u.fadeImage(w.ptr,0),u.render()),h().video&&h().id&&a()&&a().setEmbedMediaElement(h().id);i.length;)null==(e=i.shift())||e()}}));var pt=je(),gt=ut(pt),ft=t=>{var e=je();ui(ut(e),(()=>M?"a":"div"),0,((t,e)=>{let i;di(t,((t,e)=>null==st?void 0:st(t,e)),(()=>nt)),se((e=>i=Si(t,i,{id:h().id?"e-"+h().id:void 0,style:Yt(et),role:M?void 0:"figure",onclick:rt,onkeypress:rt,href:M,target:M&&$?"_blank":null,class:"",[yi]:e},"micrio-embed")),[()=>({"embed-container":!0,embed3d:g,"no-events":S,behind:g&&Yt(tt)})]);var r=je(),n=ut(r),s=t=>{const e=K((()=>h().video.streamId&&!h().video.transparent?"cfvid://"+h().video.streamId:h().video.src)),i=K((()=>h().video.muted?0:1)),r=K((()=>!Yt(H)&&h().video.autoplay)),n=K((()=>h().video.transparent&&h().video.hasH265));zs(t,{get forcePause(){return Yt(H)},get src(){return Yt(e)},get width(){return Yt(ht)},get height(){return Yt(mt)},get frameScale(){return Yt(vt)},get controls(){return h().video.controls},destroying:ot,get loop(){return h().video.loop},get loopDelay(){return h().video.loopAfter},get volume(){return Yt(i)},get autoplay(){return Yt(r)},get hasTransparentH265(){return Yt(n)},get _media(){return Yt(dt)},set _media(t){G(dt,t,!0)}})},o=(t,e)=>{var i=t=>{zs(t,{get src(){return h().frameSrc},get width(){return Yt(q)},get height(){return Yt(X)},get frameScale(){return h().scale},get autoplay(){return h().autoplayFrame},destroying:ot})},r=(t,e)=>{var i=t=>{var e=Pa();se((()=>{Ei(e,"src",h().src),bi(e,Yt(V)),Ei(e,"width",k?h().width:void 0),Ei(e,"height",k?h().height:void 0)})),Ge(t,e)},r=t=>{var e=Ca();se((()=>{bi(e,Yt(V)),Ei(e,"title",h().title)})),Ge(t,e)};ei(t,(t=>{!A&&h().src?t(i):t(r,!1)}),e)};ei(t,(t=>{h().frameSrc?t(i):t(r,!1)}),e)};ei(n,(t=>{h().video&&!A?t(s):t(o,!1)})),Ge(e,r)})),Ge(t,e)};ei(gt,(t=>{ct&&(Yt(Q)||Yt(Z)||Yt(J))&&t(ft)})),Ge(t,pt),_e(),o()}var Da=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 Oa=qe("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1);const za=!self.createImageBitmap,Na=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())"+(za?"\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"})),Fa=Math.max(2,Math.min(6,(navigator.hardwareConcurrency||2)-1)),Va=[],Ua=new Map,Ba=new Map,Wa=[],qa=new Map;for(let yl=0;yl<Fa;yl++){const t=new Worker(Na);t.onmessage=t=>Ya(yl,t.data.src,t.data.data,t.data.error,t.data.type),Ua.set(yl,t),za&&Ba.set(yl,new Image)}const Xa=t=>new Promise(((e,i)=>{Wa.push([t,e,i]),function(){if(!Wa.length)return;let t=0;for(;t<Fa&&!(Va.indexOf(t)<0);t++);if(t>=Fa)return;Va.push(t);const e=Wa.shift();if(!e)return void Va.splice(Va.indexOf(t),1);qa.set(t,e);const i=Ua.get(t);if(!i)return console.error(`[Micrio Texture] Worker ${t} not found!`),e[2]("Internal error: Worker not found"),void Va.splice(Va.indexOf(t),1);i.postMessage({src:e[0],type:"image/"+e[0].split(".").pop()})}()}));function Ya(t,e,i,r,n){const s=qa.get(t);if(null!=s)if(qa.delete(t),setTimeout((()=>{Va.splice(Va.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&&za){const i=Ba.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 ja(){return Va.length}function Ga(t){const e=[...qa.entries()].find((e=>e[1][0]==t));if(null==e)return;const i=Ua.get(e[0]);i&&i.postMessage("abort")}const Ha=ga.ugz?ga.ugz(ga.b64,!0):fetch("http://localhost:2000/build/optimized.wasm").then((t=>t.arrayBuffer())),Za=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=new Map,this.textures=new Map,this.requests=new Map,this.timeouts=new Map,this.tileLoaded=new Map,this.tileOpacity=new Map,this.loadStates=new Map,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.get(t)||0,setTileOpacity:(t,e=!1,i=1)=>{const r=this.tileOpacity,n=this.tileLoaded;return(!r.has(t)||r.get(t)<1)&&r.set(t,e?1:n.has(t)&&n.get(t)>0?Math.min(1,(this.now-n.get(t))/250)*i:0),r.get(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)=>kr(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.set(t.baseTileIdx=this.e.getNumTiles(this.i)-1,1),this.baseTiles.push(t.baseTileIdx)})),this.addChild=(t,e)=>this.addImage(t,e),this.deleteAfterSeconds=pr.iOS?5:Ki(this.micrio.canvas.isMobile)?30:90,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 Ha;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=>Ga(t))),this.requests.clear();for(let e of this.timeouts.values())clearTimeout(e);this.timeouts.clear(),this.loadStates.clear(),this.tileLoaded.clear(),this.tileOpacity.clear();for(let e of this.tileLoaded.keys())this.deleteTile(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&&parseFloat(h.version)<=3.1&&this.e.setNoUnderzoom(this.i,!0),h.is360&&(m.limitToCoverScale=!1);const v=!!m.limitToCoverScale,p=v||"cover"==m.initType;t.noImage&&this.micrio.loading.set(!1);const g=[.5,.5],f=m.focus,w=!!h.spacesId;f&&(isNaN(f[0])||null===f[0]||(g[0]=f[0]),isNaN(f[1])||null===f[1]||(g[1]=f[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.restrict)&&t.camera.setLimit(m.restrict),(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.set(_-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==E[0]&&0==E[1]&&1==E[2]&&1==E[3]?!w&&h.is360||!g||"0.5,0.5"==g.toString()||(this.e._setCoo(t.ptr,g[0],g[1],0,0,performance.now()),m.focus=void 0):this.e._setView(t.ptr,E[0]+E[2]/2,E[1]+E[3]/2,E[2],E[3],!1,!1,!1),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))}setCanvas(t){var e,i,r;if(t&&!(t.ptr>0&&t.ptr==this.c))if(t.ptr<0)kr(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 n=t.is360&&this.c>=0?this.e._getYaw(this.c,!0):0,s=t.is360&&this.c>=0?this.e._getPitch(this.c):0;this.c=t.ptr,t.is360&&!this.preventDirectionSet&&n&&s&&this.e._setDirection(this.c,n+(.5-((null==(i=null==(e=t.$settings)?void 0:e._360)?void 0:i.trueNorth)||0))*Math.PI*2,s,!0),0==this.e._getTargetOpacity(t.ptr)&&this.e._fadeIn(t.ptr),(null==(r=t.$settings.omni)?void 0:r.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),this.toDelete.has(e)&&this.toDelete.delete(e);const l=ja(),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.has(e)&&l<Fa){if(this.bareBone?l>2&&o:a&&o&&l>0)return!1;if(u&&!d)this.loadStates.set(e,2),this.textures.set(e,this.micrio.webgl.getTexture());else{this.loadStates.set(e,1);const t=h.getTileSrc(i,r,n,m);if(!t)return this.loadStates.set(e,0),!1;this.getTexture(e,t,o,{noSmoothing:"$info"in c&&c.$settings.noSmoothing})}}else if(this.loadStates.has(e)&&this.loadStates.get(e)>=2){this.drawing||this.drawStart();const t=this.textures.get(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.get(e)&&(this.loadStates.set(e,3),this.tileLoaded.set(e,this.now)),!0}return!1}drawStart(){this.drawing||(this.micrio.webgl.drawStart(),this.drawing=!0)}getTexture(t,e,i,r={}){if(this.textures.has(t)||this.requests.has(t)||!r.force&&ja()>=Fa)return;const n=Ma.db.has(e);n||this.micrio.loading.set(!0),this.requests.set(t,e),(n?Ma.getImage(e):Xa(e)).then((e=>this.gotTexture(t,e,i,r.noSmoothing))).catch((()=>this.deleteRequest(t)))}gotTexture(t,e,i,r){this.textures.set(t,this.micrio.webgl.getTexture(e,this.textures.get(t),r)),null!=self.ImageBitmap&&e instanceof ImageBitmap&&e.close instanceof Function&&e.close(),this.loadStates.set(t,2),this.timeouts.set(t,setTimeout((()=>{this.deleteRequest(t)}),i?150:50))}deleteRequest(t){this.requests.delete(t),clearTimeout(this.timeouts.get(t)),this.timeouts.delete(t),this.requests.size||this.micrio.loading.set(!1)}deleteTile(t){this.micrio.webgl.gl.deleteTexture(this.textures.get(t)),this.textures.delete(t),this.toDelete.delete(t),this.loadStates.delete(t),this.tileOpacity.delete(t),this.tileLoaded.delete(t),clearTimeout(this.timeouts.get(t)),this.timeouts.delete(t)}cleanup(){const t=this.prevDrawn.filter((t=>this.drawn.indexOf(t)<0&&this.loadStates.has(t)&&this.loadStates.get(t)>0&&this.baseTiles.indexOf(t)<0)),e=performance.now();for(let i=0;i<t.length;i++){const r=t[i];switch(this.tileOpacity.set(i,0),this.loadStates.get(r)){case 1:const t=this.requests.get(r);t&&Ga(t),this.loadStates.delete(r);break;case 2:this.requests.has(r)&&this.deleteRequest(r),this.loadStates.delete(r),this.deleteTile(r);break;case 3:this.toDelete.has(r)||this.toDelete.set(r,e)}}this.prevDrawn=this.drawn.slice(0);for(let[i,r]of this.toDelete.entries())(e-r)/1e3>this.deleteAfterSeconds&&this.deleteTile(i)}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 Ia?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.set(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)}};Za._textureBuffer=Za.getTextureBuffer(1,1);let Ja=Za;const Ka=new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);class Qa{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,Ka,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)}dispose(){const t=this.gl;t.deleteFramebuffer(this.frameBuffer),t.deleteTexture(this.texture),t.deleteBuffer(this.quad),t.deleteProgram(this.program)}}const tl=/firefox/i.test(navigator.userAgent),el=`\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${tl?"\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}`,il=256;class rl{constructor(t){this.micrio=t,this.display=self,this.txtAttr=-1,this.wmTexture=null,this.wmUrl=null,this.wmVerts=new Float32Array([-1,-1,0,1,-1,0,-1,1,0,-1,1,0,1,-1,0,1,1,0]),this.wmUvs=new Float32Array([0,0,0,0,0,0,0,0,0,0,0,0]),this.wmMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,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 Qa(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,el),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,Ja._textureBuffer,i.STATIC_DRAW);const c=i.createBuffer();if(!c)throw"Could not create watermark buffer";this.wmTxtBuffer=c;const u=i.createBuffer();if(!u)throw"Could not bind geometry buffer";this.geomBuffer=u,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.DYNAMIC_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){var e;const i=this.gl;if(i){if(i.bindBuffer(i.ARRAY_BUFFER,null),i.bindTexture(i.TEXTURE_2D,null),i.deleteBuffer(this.txtBuffer),i.deleteBuffer(this.geomBuffer),i.deleteBuffer(this.wmTxtBuffer),i.deleteProgram(this.program),null==(e=this.postpocessor)||e.dispose(),this.wmTexture&&i.deleteTexture(this.wmTexture),t){const t=i.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()),this.wmTexture&&this.drawWatermark()}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*Ja.segsX*Ja.segsY:6;i!=this.was360&&(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.txtBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,i?Ja._textureBuffer360:Ja._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)}loadWatermark(t){if(t===this.wmUrl)return;this.wmUrl=t;const e=new Image;e.crossOrigin="anonymous",e.src=t,e.onload=()=>{const t=document.createElement("canvas");t.width=il,t.height=il;const i=t.getContext("2d");if(!i)return;const r=Math.min(96/e.width,64/e.height),n=e.width*r,s=e.height*r;i.drawImage(e,(il-n)/2,(il-s)/2,n,s),this.wmTexture&&this.gl.deleteTexture(this.wmTexture),this.wmTexture=this.getTexture(t);const o=this.gl;o.bindTexture(o.TEXTURE_2D,this.wmTexture),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_S,o.REPEAT),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_T,o.REPEAT),o.bindTexture(o.TEXTURE_2D,null),this.micrio.wasm.render()}}drawWatermark(){const t=this.gl;if(!this.wmTexture)return;t.useProgram(this.program),t.blendFunc(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA),t.uniformMatrix4fv(this.pmLoc,!1,this.wmMatrix),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,this.wmTexture),t.uniform1i(this.noTxtLoc,0),t.uniform1f(this.opaLoc,.075);const e=t.drawingBufferWidth/il,i=t.drawingBufferHeight/il,r=this.wmUvs;r[1]=i,r[2]=e,r[3]=i,r[8]=e,r[9]=i,r[10]=e,t.bindBuffer(t.ARRAY_BUFFER,this.geomBuffer),t.bufferData(t.ARRAY_BUFFER,this.wmVerts,t.DYNAMIC_DRAW),t.vertexAttribPointer(this.posAttr,3,t.FLOAT,!1,0,0),t.bindBuffer(t.ARRAY_BUFFER,this.wmTxtBuffer),t.bufferData(t.ARRAY_BUFFER,this.wmUvs,t.DYNAMIC_DRAW),t.vertexAttribPointer(this.txtAttr,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.linkBuffers(),this.was360=!1}}const nl={passive:!0},sl={passive:!0,capture:!0},ol={passive:!1};function al(t){t.stopPropagation(),t.preventDefault()}const ll=["move","marker-open","marker-opened","marker-closed","tour-start","tour-step","tour-stop","tour-event","media-play","media-pause","splitscreen-start","splitscreen-stop"];class cl{constructor(t){this.micrio=t,this.enabled=Ji(!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=pr.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&&kr(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,ol),this.scrollHooked=!0)}unhookScroll(){this.micrio.removeEventListener("wheel",this.wheel,ol),this.scrollHooked=!1}hookPinch(){this.hasTouch&&this.el.addEventListener("touchstart",this.pStart,nl),pr.OSX&&(this.micrio.addEventListener("gesturestart",this.gesture,ol),this.micrio.addEventListener("gesturechange",this.gesture,ol),this.micrio.addEventListener("gestureend",this.gesture,ol))}unhookPinch(){this.el.removeEventListener("touchstart",this.pStart,nl),pr.OSX&&(this.micrio.removeEventListener("gesturestart",this.gesture,ol),this.micrio.removeEventListener("gesturechange",this.gesture,ol),this.micrio.removeEventListener("gestureend",this.gesture,ol))}hookDrag(){this.hookedDrag||(this.hookedDrag=!0,this.micrio.addEventListener("dragstart",al),this.micrio.addEventListener("pointerdown",this.dStart,nl),this.micrio.setAttribute("data-hooked",""))}unhookDrag(){this.hookedDrag&&(this.hookedDrag=!1,this.micrio.removeEventListener("pointerdown",this.dStart,nl),this.micrio.removeEventListener("dragstart",al),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,nl),this.micrio.addEventListener("pointerup",this.dStop,nl),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=lr(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,nl),this.micrio.removeEventListener("pointerup",this.dStop,nl),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(!(pr.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,sl),self.addEventListener("touchend",this.pStop,sl),this.micrio.setAttribute("data-pinching",""),this.vars.pinch.image=this.getImage({x:e[0].clientX,y:e[0].clientY}),this.vars.pinch.sDst=lr(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(!(pr.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=lr(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,sl),self.removeEventListener("touchend",this.pStop,sl),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=pr.firefox||t.ctrlKey||!o;if(this.twoFingerPan&&(null==(r=this.micrio.$current)?void 0:r.camera.isZoomedOut()))return;t.stopPropagation(),t.preventDefault(),(pr.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(!(pr.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(){ll.forEach((t=>this.micrio.addEventListener(t,this.updateEvent)))}unhookUpdate(){ll.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 ul=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),kr(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=fr(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([kr(s.data,{allowUndefined:!0}),o?kr(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 fr(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 fr(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)??fr(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=Math.max(0,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),g=h&&"string"!=typeof h?(null==(s=h.i18n)?void 0:s[m])??h:void 0,f=null==(o=Ki(this.micrio.state.popover))?void 0:o.contentPage,w=f?(null==(a=f.i18n)?void 0:a[m])??f: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[Math.max(0,u.initialStep)].marker))}const y=[b,m,fr(v)??"",...p?[]:w?[fr(w.title)]:[(null==(c=null==(l=null==u?void 0:u.i18n)?void 0:l[m])?void 0:c.slug)??null,(null==g?void 0:g.slug)??fr(null==g?void 0:g.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))}};ul.events=["load","tour-start","tour-stop","marker-open","marker-closed","page-open","page-closed","lang-switch"];let dl=ul;const hl=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=ha),"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)}};hl.events=["load","show","hide","marker-open","marker-opened","marker-closed","tour-start","tour-stop","tour-step","tour-ended"];let ml=hl;const vl=t=>Math.round(1e5*t)/1e5,pl=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=Ji(),this.markersShown=Ji([]),this.history=[],this.depth=Ji(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=>kr(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 Ia?{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 g=!1;const f=()=>{this.clearTimeouts(),g||r()};d&&!e.noCamAni&&(e.view?this.image.camera.flyToView(e.view,{duration:1e3*h}).catch(f):this.image.camera.flyToFullView({duration:1e3*h}).catch(f)),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)=>mr(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,g=!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:gr(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?mr(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 Ia(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,ya.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((()=>mr(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=ya.Grid.GridActionType[t]);const r=t+(e??"");if(this.lastAction!=r){switch(t){case ya.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 ya.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 ya.Grid.GridActionType.focusTagged:this.flyToMarkers(e,i);break;case ya.Grid.GridActionType.focusWithTagged:this.flyToMarkers(e,i,!0);break;case ya.Grid.GridActionType.reset:this.reset(i);break;case ya.Grid.GridActionType.back:this.back(i);break;case ya.Grid.GridActionType.switchToGrid:this.switchToGrid();break;case ya.Grid.GridActionType.nextFadeDuration:this.nextCrossFadeDuration=Number(e);break;case ya.Grid.GridActionType.filterTourImages:kr(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]]}};pl.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(vl).join("/"),null==(r=e.area)?void 0:r.map(vl).join("/"),null==(s=null==(n=t.settings)?void 0:n.focus)?void 0:s.map(vl).join("-"),e.cultures].join(",").replace(/,+$/,"")+(e.size?`|${e.size.join(",")}`:"")};let gl=pl;class fl{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=Ji(!1),this.getRatio=(t=(t=>null==(t=this.micrio.$current)?void 0:t.$settings)()??{})=>!pr.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),this.isMobile.set(/mobile/i.test(navigator.userAgent)))}setMargins(t,e){this.micrio.wasm.e&&this.micrio.wasm.e.setArea(this.micrio.wasm.getPtr(),t,e)}}const wl=class t extends HTMLElement{constructor(){super(),this.printed=!1,this.canvases=[],this.current=Ji(),this.visible=Ji([]),this.canvas=new fl(this),this.events=new cl(this),this.state=new Aa.Main(this),this.analytics=new ml(this),this._router=new dl(this),this.barebone=Ji(!1),this.webgl=new rl(this),this.wasm=new Ja(this),this.defaultSettings=this.defaultSettings,this.loading=Ji(!0),this.switching=Ji(!1),this.isMuted=Ji("1"==localStorage.getItem(fa)),this._lang=Ji(),this.keepRendering=!1,this.loadV5Album=(t,e)=>(t=>"MICRIO_ALBUM"in self?Promise.resolve(self.MICRIO_ALBUM):Er(`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)??va;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=ma)=>Ma.get(`${e}${t}.json`).then((t=>(t.images.forEach((t=>Tr.set(`${e}${t.id}/info.json`,t))),t))),this.current.subscribe((t=>this._current=t));let t=!1;kr(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(this.hasAttribute("muted"));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),Qr.set(Kr[i]??Kr.en),i&&(Jn.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(fa,"1"),this.events.dispatch("audio-mute")):(localStorage.removeItem(fa),this.events.dispatch("audio-unmute"))})))}addEventListener(t,e,i){super.addEventListener(t,e,i)}removeEventListener(t,e,i){super.removeEventListener(t,e,i)}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.webgl.dispose(!0),this.printed=!1}loadArchiveBin(t,e){return this.printUI(!0,!0),Ma.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||(Fr(t.replace(/\.\d+$/,""))?va:ma);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&&Fr(n.id)&&!this.hasAttribute("width")&&!this.hasAttribute("height")&&await Sr(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)).catch((()=>{}));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=Ke(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||gr(a.settings,l.settings),this.defaultSettings&&gr(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 Ia(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&&(kr(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 gl(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 ba.STRINGS){const n=ba.STRINGS[r],s=this.getAttribute(r),o=n.f||r.replace("data-","");s&&i(n.r?e:t,o,s)}for(const r in ba.BOOLEANS){const n=ba.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 ba.NUMBERS){const n=ba.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 ba.ARRAYS){const n=ba.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=>Er(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 Ia(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=Br.fromLegacy(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=>gl.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)}};wl.jsonCache=Tr;let bl=wl;bl.Svelte=function(t,e){Te(e,!0);const[i,r]=rr(),n=()=>er(Yt(S),"$settings",i),s=()=>er(Yt(E),"$info",i),o=()=>er(Yt(A),"$data",i),a=()=>er(k,"$tour",i),l=()=>er(P,"$volume",i),c=()=>er(w,"$visible",i),u=()=>er(_,"$markerPopup",i),d=()=>er(x,"$popover",i);let h=ar(e,"noHTML",15),m=ar(e,"noLogo",23,h),v=ar(e,"loadingProgress",7,1),p=ar(e,"error",7,void 0);ke("micrio",e.micrio),ke("markerImages",new Map);const g="markers"==e.micrio.getAttribute("data-ui");g&&h(!0);const f="false"!=e.micrio.getAttribute("data-embeds"),{visible:w,state:b,isMuted:y}=e.micrio,{tour:k,marker:T,popup:_,popover:x}=b;let E=Y(void 0),A=Y(void 0),S=Y(void 0);function M(t,e){if(e)for(let i,r=0;r<e.length;r++)if(e[r].id==t||(i=M(t,e[r].children)))return i??e[r]}let $=Y(!1),I=Y(void 0);const L=[];e.micrio.current.subscribe((t=>{t&&(ir(G(E,t.info,!0),"$info",i),ir(G(S,void 0),"$settings",i),Yt(E)&&kr(Yt(E)).then((e=>{var r;e&&(G($,!0),ir(G(S,t.settings,!0),"$settings",i),!Yt(I)&&(null==(r=e.organisation)?void 0:r.logo)&&G(I,e.organisation,!0))})),ir(G(A,t.data,!0),"$data",i)&&L.indexOf(t.id)<0&&kr(Yt(A)).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=M(s.id,i.pages);l&&e.micrio.state.popover.set({contentPage:l,showLangSelect:!0})}})))}));const P=Ji(er(y,"$isMuted",i)?0:1);ke("volume",P),y.subscribe((t=>P.set(t?0:1))),ke("mediaPaused",Ji(!1));let C=Y(!1),R=Y(B([]));ke("srt",Ji()).subscribe((t=>setTimeout((()=>{G(R,t?[t]:[],!0)}),20)));const D=K((()=>{var t,e;return null==(e=null==(t=n())?void 0:t._360)?void 0:e.video})),O=K((()=>{var t;return null==(t=Yt(D))?void 0:t.src})),z=K((()=>{var t;return null==(t=n())?void 0:t.omni})),N=K((()=>{var t;return null==(t=s())?void 0:t.gallery})),F=K((()=>{var t,e;return null==(e=null==(t=o())?void 0:t.markers)?void 0:e.filter((t=>!!t.positionalAudio))})),V=K((()=>{var t,e,i;return!!(null==(e=null==(t=o())?void 0:t.music)?void 0:e.items.length)||!!(null==(i=Yt(F))?void 0:i.length)})),U=K((()=>a()||er(T,"$marker",i))),W=K((()=>!h()||g)),q=K((()=>{var t;return!(m()||s()&&h()||(null==(t=n())?void 0:t.noLogo))})),X=K((()=>{var t;return h()||!Yt(q)||(null==(t=n())?void 0:t.noOrgLogo)?void 0:Yt(I)})),j=K((()=>{var t;return!(h()||Yt(z)||e.micrio.spaceData||a()||(null==(t=s())?void 0:t.gallery))})),H=K((()=>!!Yt(N)||!!Yt(z))),Z=K((()=>!h()&&!!s())),J=K((()=>{var t;return!h()&&!Yt(U)&&(null==(t=n())?void 0:t.showInfo)})),Q=K((()=>{var t;return!h()&&Yt($)&&!(null==(t=n())?void 0:t.noToolbar)}));var tt=Oa(),et=ut(tt),it=t=>{const e=K((()=>!!s().is360));Ao(t,{get volume(){return l()},get data(){return o()},get is360(){return Yt(e)}})};ei(et,(t=>{Yt(V)&&o()&&s()&&t(it)}));var rt=dt(et,2),nt=t=>{zs(t,sr({get src(){return Yt(O)},get volume(){return l()},is360:!0,get width(){return s().width},get height(){return s().height}},(()=>Yt(D))))};ei(rt,(t=>{Yt(O)&&s()&&t(nt)}));var st=dt(rt,2),ot=t=>{var e=je();ri(ut(e),1,(()=>o().embeds),(t=>t.uuid),((t,e)=>{Ra(t,{get embed(){return Yt(e)}})})),Ge(t,e)};ei(st,(t=>{f&&o()&&o().embeds&&t(ot)}));var at=dt(st,2),lt=t=>{Hr(t,{})};ei(at,(t=>{Yt(q)&&t(lt)}));var ht=dt(at,2),mt=t=>{Yn(t,{})};ei(ht,(t=>{Yt(Q)&&t(mt)}));var vt=dt(ht,2),pt=t=>{var e=je();ri(ut(e),1,c,(t=>t.uuid),((t,e)=>{da(t,{get image(){return Yt(e)}})})),Ge(t,e)};ei(vt,(t=>{Yt(W)&&t(pt)}));var gt=dt(vt,2),ft=t=>{var e=je();ri(ut(e),1,(()=>c().filter((t=>t.$settings.minimap))),(t=>t.uuid),((t,e)=>{Gn(t,{get image(){return Yt(e)}})})),Ge(t,e)};ei(gt,(t=>{Yt(j)&&t(ft)}));var wt=dt(gt,2),bt=t=>{const e=K((()=>Yt(V)||!(!Yt(O)||!Yt(D)||Yt(D).muted)));as(t,{get hasAudio(){return Yt(e)}})};ei(wt,(t=>{Yt(Z)&&t(bt)}));var yt=dt(wt,2),kt=t=>{fo(t,{get images(){return Yt(N)},get omni(){return Yt(z)}})};ei(yt,(t=>{Yt(H)&&t(kt)}));var Tt=dt(yt,2),_t=t=>{Jr(t,{get organisation(){return Yt(X)}})};ei(Tt,(t=>{Yt(X)&&t(_t)}));var xt=dt(Tt,2),Et=t=>{Po(t,{get info(){return Yt(E)},get data(){return Yt(A)}})};ei(xt,(t=>{Yt(J)&&Yt(E)&&Yt(A)&&t(Et)}));var At=dt(xt,2),St=t=>{Ks(t,{get marker(){return u()}})};ei(At,(t=>{u()&&t(St)}));var Mt=dt(At,2),$t=t=>{lo(t,{get tour(){return a()},get noHTML(){return h()},onminimize:t=>G(C,!t)})};ei(Mt,(t=>{a()&&t($t)}));var It=dt(Mt,2),Lt=t=>{jo(t,{get popover(){return d()}})};ei(It,(t=>{d()&&t(Lt)}));var Pt=dt(It,2);ri(Pt,16,(()=>Yt(R)),(t=>t),((t,e)=>{vs(t,{get src(){return e},get raised(){return Yt(C)}})}));var Ct=dt(Pt,2),Rt=t=>{!function(t,e){var i=Co(),r=ct(i);Cn(r,{name:"error"});var n=dt(r);se((()=>Je(n,` ${e.message??""}`))),Ge(t,i)}(t,{get message(){return p()}})};ei(Ct,(t=>{p()&&t(Rt)}));var Dt=dt(Ct,2),Ot=t=>{!function(t,e){const i=2*Math.PI*40,r=K((()=>i*(1-e.progress)));var n=Da();Ei(n,"viewBox","0 0 100 100");var s=ct(n);Ei(s,"r",40),Ei(s,"cx",50),Ei(s,"cy",50);var o=dt(s);Ei(o,"r",40),Ei(o,"cx",50),Ei(o,"cy",50),Ei(o,"stroke-dasharray",`${i??""}px`),se((()=>Ei(o,"stroke-dashoffset",`${Yt(r)??""}px`))),zi(1,n,(()=>Yr),(()=>({delay:500}))),zi(2,n,(()=>Yr)),Ge(t,n)}(t,{get progress(){return v()}})};ei(Dt,(t=>{v()<1&&t(Ot)})),Ge(t,tt);var zt=_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(),zt},bl.VERSION=ha,customElements.define("micr-io",bl),console.log("%c◈%c Micrio %cv"+ha+" - 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}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.has-custom-icon.micrio-marker{--micrio-marker-size: 32px}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.behind.micrio-embed>*{pointer-events:none}.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))})();