@car-cutter/wc-webplayer 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3968 -2193
- package/dist/index.umd.cjs +16 -1
- package/dist/style.css +1 -0
- package/package.json +6 -6
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
(function(G,he){typeof exports=="object"&&typeof module<"u"?he(exports):typeof define=="function"&&define.amd?define(["exports"],he):(G=typeof globalThis<"u"?globalThis:G||self,he(G.CarCutterWebplayerWC={}))})(this,function(G){"use strict";const he="cc-webplayer",Xe="cc-webplayer-custom-media",Ze="cc-webplayer-icon",zt="composition-loading",At="composition-loaded",Pt="composition-load-error",Dt="item-change",Ot="extend-mode-on",Vt="extend-mode-off",Ht="hotspots-on",Rt="hotspots-off",$t="gallery-open",Wt="gallery-close",lr="quality",cr="*",ur="full_screen",Ft="cc-webplayer:";function dr(e,t){return`https://cdn.car-cutter.com/gallery/${e}/${t}/composition_v3.json`}function pr(e,t){const n=e.split("/"),r=n.pop();return[n.join("/"),t,r].join("/")}function Ut(){return!!customElements.get(he)&&!!customElements.get(Xe)&&!!customElements.get(Ze)}var De,H,Xt,Ee,Zt,Yt,rt,ot,st,it,jt,Oe={},Gt=[],fr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ye=Array.isArray;function _e(e,t){for(var n in t)e[n]=t[n];return e}function Bt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ge(e,t,n){var r,o,i,l={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?De.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)l[i]===void 0&&(l[i]=e.defaultProps[i]);return Ve(e,l,r,o,null)}function Ve(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Xt,__i:-1,__u:0};return o==null&&H.vnode!=null&&H.vnode(i),i}function mr(){return{current:null}}function Q(e){return e.children}function fe(e,t){this.props=e,this.context=t}function Le(e,t){if(t==null)return e.__?Le(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Le(e):null}function qt(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return qt(e)}}function at(e){(!e.__d&&(e.__d=!0)&&Ee.push(e)&&!je.__r++||Zt!==H.debounceRendering)&&((Zt=H.debounceRendering)||Yt)(je)}function je(){var e,t,n,r,o,i,l,c;for(Ee.sort(rt);e=Ee.shift();)e.__d&&(t=Ee.length,r=void 0,i=(o=(n=e).__v).__e,l=[],c=[],n.__P&&((r=_e({},o)).__v=o.__v+1,H.vnode&&H.vnode(r),lt(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,l,i??Le(o),!!(32&o.__u),c),r.__v=o.__v,r.__.__k[r.__i]=r,tn(l,r,c),r.__e!=i&&qt(r)),Ee.length>t&&Ee.sort(rt));je.__r=0}function Kt(e,t,n,r,o,i,l,c,u,d,w){var a,b,g,f,y,p=r&&r.__k||Gt,h=t.length;for(n.__d=u,hr(n,t,p),u=n.__d,a=0;a<h;a++)(g=n.__k[a])!=null&&(b=g.__i===-1?Oe:p[g.__i]||Oe,g.__i=a,lt(e,g,b,o,i,l,c,u,d,w),f=g.__e,g.ref&&b.ref!=g.ref&&(b.ref&&ct(b.ref,null,g),w.push(g.ref,g.__c||f,g)),y==null&&f!=null&&(y=f),65536&g.__u||b.__k===g.__k?u=Jt(g,u,e):typeof g.type=="function"&&g.__d!==void 0?u=g.__d:f&&(u=f.nextSibling),g.__d=void 0,g.__u&=-196609);n.__d=u,n.__e=y}function hr(e,t,n){var r,o,i,l,c,u=t.length,d=n.length,w=d,a=0;for(e.__k=[],r=0;r<u;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(l=r+a,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Ve(null,o,null,null,null):Ye(o)?Ve(Q,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Ve(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,(c=o.__i=_r(o,n,l,w))!==-1&&(w--,(i=n[c])&&(i.__u|=131072)),i==null||i.__v===null?(c==-1&&a--,typeof o.type!="function"&&(o.__u|=65536)):c!==l&&(c==l-1?a--:c==l+1?a++:(c>l?a--:a++,o.__u|=65536))):o=e.__k[r]=null;if(w)for(r=0;r<d;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Le(i)),nn(i,i))}function Jt(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Jt(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Le(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ve(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ye(e)?e.some(function(n){ve(n,t)}):t.push(e)),t}function _r(e,t,n,r){var o=e.key,i=e.type,l=n-1,c=n+1,u=t[n];if(u===null||u&&o==u.key&&i===u.type&&!(131072&u.__u))return n;if(r>(u!=null&&!(131072&u.__u)?1:0))for(;l>=0||c<t.length;){if(l>=0){if((u=t[l])&&!(131072&u.__u)&&o==u.key&&i===u.type)return l;l--}if(c<t.length){if((u=t[c])&&!(131072&u.__u)&&o==u.key&&i===u.type)return c;c++}}return-1}function Qt(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||fr.test(t)?n:n+"px"}function Ge(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Qt(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Qt(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=ot,e.addEventListener(t,i?it:st,i)):e.removeEventListener(t,i?it:st,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function en(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ot++;else if(t.t<n.u)return;return n(H.event?H.event(t):t)}}}function lt(e,t,n,r,o,i,l,c,u,d){var w,a,b,g,f,y,p,h,_,v,m,E,k,L,M,z,x=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),i=[c=t.__e=n.__e]),(w=H.__b)&&w(t);e:if(typeof x=="function")try{if(h=t.props,_="prototype"in x&&x.prototype.render,v=(w=x.contextType)&&r[w.__c],m=w?v?v.props.value:w.__:r,n.__c?p=(a=t.__c=n.__c).__=a.__E:(_?t.__c=a=new x(h,m):(t.__c=a=new fe(h,m),a.constructor=x,a.render=vr),v&&v.sub(a),a.props=h,a.state||(a.state={}),a.context=m,a.__n=r,b=a.__d=!0,a.__h=[],a._sb=[]),_&&a.__s==null&&(a.__s=a.state),_&&x.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=_e({},a.__s)),_e(a.__s,x.getDerivedStateFromProps(h,a.__s))),g=a.props,f=a.state,a.__v=t,b)_&&x.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),_&&a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(_&&x.getDerivedStateFromProps==null&&h!==g&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(h,m),!a.__e&&(a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(h,a.__s,m)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(a.props=h,a.state=a.__s,a.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(N){N&&(N.__=t)}),E=0;E<a._sb.length;E++)a.__h.push(a._sb[E]);a._sb=[],a.__h.length&&l.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(h,a.__s,m),_&&a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(g,f,y)})}if(a.context=m,a.props=h,a.__P=e,a.__e=!1,k=H.__r,L=0,_){for(a.state=a.__s,a.__d=!1,k&&k(t),w=a.render(a.props,a.state,a.context),M=0;M<a._sb.length;M++)a.__h.push(a._sb[M]);a._sb=[]}else do a.__d=!1,k&&k(t),w=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++L<25);a.state=a.__s,a.getChildContext!=null&&(r=_e(_e({},r),a.getChildContext())),_&&!b&&a.getSnapshotBeforeUpdate!=null&&(y=a.getSnapshotBeforeUpdate(g,f)),Kt(e,Ye(z=w!=null&&w.type===Q&&w.key==null?w.props.children:w)?z:[z],t,n,r,o,i,l,c,u,d),a.base=t.__e,t.__u&=-161,a.__h.length&&l.push(a),p&&(a.__E=a.__=null)}catch(N){if(t.__v=null,u||i!=null){for(t.__u|=u?160:128;c&&c.nodeType===8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else t.__e=n.__e,t.__k=n.__k;H.__e(N,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=gr(n.__e,t,n,r,o,i,l,u,d);(w=H.diffed)&&w(t)}function tn(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ct(n[r],n[++r],n[++r]);H.__c&&H.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){H.__e(i,o.__v)}})}function gr(e,t,n,r,o,i,l,c,u){var d,w,a,b,g,f,y,p=n.props,h=t.props,_=t.type;if(_==="svg"?o="http://www.w3.org/2000/svg":_==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((g=i[d])&&"setAttribute"in g==!!_&&(_?g.localName===_:g.nodeType===3)){e=g,i[d]=null;break}}if(e==null){if(_===null)return document.createTextNode(h);e=document.createElementNS(o,_,h.is&&h),c&&(H.__m&&H.__m(t,i),c=!1),i=null}if(_===null)p===h||c&&e.data===h||(e.data=h);else{if(i=i&&De.call(e.childNodes),p=n.props||Oe,!c&&i!=null)for(p={},d=0;d<e.attributes.length;d++)p[(g=e.attributes[d]).name]=g.value;for(d in p)if(g=p[d],d!="children"){if(d=="dangerouslySetInnerHTML")a=g;else if(!(d in h)){if(d=="value"&&"defaultValue"in h||d=="checked"&&"defaultChecked"in h)continue;Ge(e,d,null,g,o)}}for(d in h)g=h[d],d=="children"?b=g:d=="dangerouslySetInnerHTML"?w=g:d=="value"?f=g:d=="checked"?y=g:c&&typeof g!="function"||p[d]===g||Ge(e,d,g,p[d],o);if(w)c||a&&(w.__html===a.__html||w.__html===e.innerHTML)||(e.innerHTML=w.__html),t.__k=[];else if(a&&(e.innerHTML=""),Kt(e,Ye(b)?b:[b],t,n,r,_==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:n.__k&&Le(n,0),c,u),i!=null)for(d=i.length;d--;)Bt(i[d]);c||(d="value",_==="progress"&&f==null?e.removeAttribute("value"):f!==void 0&&(f!==e[d]||_==="progress"&&!f||_==="option"&&f!==p[d])&&Ge(e,d,f,p[d],o),d="checked",y!==void 0&&y!==e[d]&&Ge(e,d,y,p[d],o))}return e}function ct(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){H.__e(o,n)}}function nn(e,t,n){var r,o;if(H.unmount&&H.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ct(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){H.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&nn(r[o],t,n||typeof e.type!="function");n||Bt(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function vr(e,t,n){return this.constructor(e,n)}function He(e,t,n){var r,o,i,l;H.__&&H.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],l=[],lt(t,e=(!r&&n||t).__k=ge(Q,null,[e]),o||Oe,Oe,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?De.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,l),tn(i,e,l)}function rn(e,t){He(e,t,rn)}function wr(e,t,n){var r,o,i,l,c=_e({},e.props);for(i in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:c[i]=t[i]===void 0&&l!==void 0?l[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?De.call(arguments,2):n),Ve(e.type,c,r||e.key,o||e.ref,null)}function Re(e,t){var n={__c:t="__cC"+jt++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&o.forEach(function(c){c.__e=!0,at(c)})},this.sub=function(l){o.add(l);var c=l.componentWillUnmount;l.componentWillUnmount=function(){o&&o.delete(l),c&&c.call(l)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}De=Gt.slice,H={__e:function(e,t,n,r){for(var o,i,l;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),l=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),l=o.__d),l)return o.__E=o}catch(c){e=c}throw e}},Xt=0,fe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_e({},this.state),typeof e=="function"&&(e=e(_e({},n),this.props)),e&&_e(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),at(this))},fe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),at(this))},fe.prototype.render=Q,Ee=[],Yt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,rt=function(e,t){return e.__v.__b-t.__v.__b},je.__r=0,ot=0,st=en(!1),it=en(!0),jt=0;var yr=0;function s(e,t,n,r,o,i){t||(t={});var l,c,u=t;"ref"in t&&(l=t.ref,delete t.ref);var d={type:e,props:u,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--yr,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(l=e.defaultProps))for(c in l)u[c]===void 0&&(u[c]=l[c]);return H.vnode&&H.vnode(d),d}var ye,B,ut,on,Te=0,sn=[],q=H,an=q.__b,ln=q.__r,cn=q.diffed,un=q.__c,dn=q.unmount,pn=q.__;function Ne(e,t){q.__h&&q.__h(B,e,Te||t),Te=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function U(e){return Te=1,dt(gn,e)}function dt(e,t,n){var r=Ne(ye++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):gn(void 0,t),function(c){var u=r.__N?r.__N[0]:r.__[0],d=r.t(u,c);u!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=B,!B.u)){var o=function(c,u,d){if(!r.__c.__H)return!0;var w=r.__c.__H.__.filter(function(b){return!!b.__c});if(w.every(function(b){return!b.__N}))return!i||i.call(this,c,u,d);var a=!1;return w.forEach(function(b){if(b.__N){var g=b.__[0];b.__=b.__N,b.__N=void 0,g!==b.__[0]&&(a=!0)}}),!(!a&&r.__c.props===c)&&(!i||i.call(this,c,u,d))};B.u=!0;var i=B.shouldComponentUpdate,l=B.componentWillUpdate;B.componentWillUpdate=function(c,u,d){if(this.__e){var w=i;i=void 0,o(c,u,d),i=w}l&&l.call(this,c,u,d)},B.shouldComponentUpdate=o}return r.__N||r.__}function R(e,t){var n=Ne(ye++,3);!q.__s&&ft(n.__H,t)&&(n.__=e,n.i=t,B.__H.__h.push(n))}function $e(e,t){var n=Ne(ye++,4);!q.__s&&ft(n.__H,t)&&(n.__=e,n.i=t,B.__h.push(n))}function X(e){return Te=5,ie(function(){return{current:e}},[])}function fn(e,t,n){Te=6,$e(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ie(e,t){var n=Ne(ye++,7);return ft(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function S(e,t){return Te=8,ie(function(){return e},t)}function Ie(e){var t=B.context[e.__c],n=Ne(ye++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(B)),t.props.value):e.__}function mn(e,t){q.useDebugValue&&q.useDebugValue(t?t(e):e)}function hn(){var e=Ne(ye++,11);if(!e.__){for(var t=B.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function br(){for(var e;e=sn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(pt),e.__H.__h=[]}catch(t){e.__H.__h=[],q.__e(t,e.__v)}}q.__b=function(e){B=null,an&&an(e)},q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),pn&&pn(e,t)},q.__r=function(e){ln&&ln(e),ye=0;var t=(B=e.__c).__H;t&&(ut===B?(t.__h=[],B.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Be),t.__h.forEach(pt),t.__h=[],ye=0)),ut=B},q.diffed=function(e){cn&&cn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(sn.push(t)!==1&&on===q.requestAnimationFrame||((on=q.requestAnimationFrame)||xr)(br)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ut=B=null},q.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Be),n.__h=n.__h.filter(function(r){return!r.__||pt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],q.__e(r,n.__v)}}),un&&un(e,t)},q.unmount=function(e){dn&&dn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Be(r)}catch(o){t=o}}),n.__H=void 0,t&&q.__e(t,n.__v))};var _n=typeof requestAnimationFrame=="function";function xr(e){var t,n=function(){clearTimeout(r),_n&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);_n&&(t=requestAnimationFrame(n))}function Be(e){var t=B,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),B=t}function pt(e){var t=B;e.__c=e.__(),B=t}function ft(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function gn(e,t){return typeof t=="function"?t(e):t}function mt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function ht(e,t){this.props=e,this.context=t}function Cr(e,t){function n(o){var i=this.props.ref,l=i==o.ref;return!l&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!l:mt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,ge(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ht.prototype=new fe).isPureReactComponent=!0,ht.prototype.shouldComponentUpdate=function(e,t){return mt(this.props,e)||mt(this.state,t)};var vn=H.__b;H.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),vn&&vn(e)};var Er=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function kr(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var o=e(n,r);return n.ref=r,o}return t.$$typeof=Er,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var wn=function(e,t){return e==null?null:ve(ve(e).map(t))},Lr={map:wn,forEach:wn,count:function(e){return e?ve(e).length:0},only:function(e){var t=ve(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ve},Tr=H.__e;H.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Tr(e,t,n,r)};var yn=H.unmount;function bn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,o){for(var i in o)r[i]=o[i];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return bn(r,t,n)})),e}function xn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return xn(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function qe(){this.__u=0,this.t=null,this.__b=null}function Cn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Nr(e){var t,n,r;function o(i){if(t||(t=e()).then(function(l){n=l.default||l},function(l){r=l}),r)throw r;if(!n)throw t;return ge(n,i)}return o.displayName="Lazy",o.__f=!0,o}function We(){this.u=null,this.o=null}H.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),yn&&yn(e)},(qe.prototype=new fe).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Cn(r.__v),i=!1,l=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=l;var c=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=xn(u,u.__c.__P,u.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(l,l)},qe.prototype.componentWillUnmount=function(){this.t=[]},qe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=bn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&ge(Q,null,e.fallback);return o&&(o.__u&=-33),[ge(Q,null,t.__a?null:e.children),o]};var En=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Ir(e){return this.getChildContext=function(){return e.context},e.children}function Sr(e){var t=this,n=e.i;t.componentWillUnmount=function(){He(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),He(ge(Ir,{context:t.context},e.__v),t.l)}function Mr(e,t){var n=ge(Sr,{__v:e,i:t});return n.containerInfo=t,n}(We.prototype=new fe).__a=function(e){var t=this,n=Cn(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),En(t,e,r)):o()};n?n(i):i()}},We.prototype.render=function(e){this.u=null,this.o=new Map;var t=ve(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},We.prototype.componentDidUpdate=We.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){En(e,n,t)})};var kn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,zr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ar=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Pr=/[A-Z0-9]/g,Dr=typeof document<"u",Or=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ln(e,t,n){return t.__k==null&&(t.textContent=""),He(e,t),typeof n=="function"&&n(),e?e.__c:null}function Vr(e,t,n){return rn(e,t),typeof n=="function"&&n(),e?e.__c:null}fe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(fe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Tn=H.event;function Hr(){}function Rr(){return this.cancelBubble}function $r(){return this.defaultPrevented}H.event=function(e){return Tn&&(e=Tn(e)),e.persist=Hr,e.isPropagationStopped=Rr,e.isDefaultPrevented=$r,e.nativeEvent=e};var _t,Wr={enumerable:!1,configurable:!0,get:function(){return this.class}},Nn=H.vnode;H.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var l in n){var c=n[l];if(!(l==="value"&&"defaultValue"in n&&c==null||Dr&&l==="children"&&r==="noscript"||l==="class"||l==="className")){var u=l.toLowerCase();l==="defaultValue"&&"value"in n&&n.value==null?l="value":l==="download"&&c===!0?c="":u==="translate"&&c==="no"?c=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?l="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||Or(n.type)?u==="onfocus"?l="onfocusin":u==="onblur"?l="onfocusout":Ar.test(l)&&(l=u):u=l="oninput":i&&zr.test(l)?l=l.replace(Pr,"-$&").toLowerCase():c===null&&(c=void 0),u==="oninput"&&o[l=u]&&(l="oninputCapture"),o[l]=c}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ve(n.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ve(n.children).forEach(function(d){d.props.selected=o.multiple?o.defaultValue.indexOf(d.props.value)!=-1:o.defaultValue==d.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Wr)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=kn,Nn&&Nn(e)};var In=H.__r;H.__r=function(e){In&&In(e),_t=e.__c};var Sn=H.diffed;H.diffed=function(e){Sn&&Sn(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),_t=null};var Fr={ReactCurrentDispatcher:{current:{readContext:function(e){return _t.__n[e.__c].props.value},useCallback:S,useContext:Ie,useDebugValue:mn,useDeferredValue:An,useEffect:R,useId:hn,useImperativeHandle:fn,useInsertionEffect:Dn,useLayoutEffect:$e,useMemo:ie,useReducer:dt,useRef:X,useState:U,useSyncExternalStore:On,useTransition:Pn}}};function Ur(e){return ge.bind(null,e)}function Ke(e){return!!e&&e.$$typeof===kn}function Xr(e){return Ke(e)&&e.type===Q}function Zr(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Yr(e){return Ke(e)?wr.apply(null,arguments):e}function Mn(e){return!!e.__k&&(He(null,e),!0)}function jr(e){return e&&(e.base||e.nodeType===1&&e)||null}var Gr=function(e,t){return e(t)},Br=function(e,t){return e(t)},qr=Q;function zn(e){e()}function An(e){return e}function Pn(){return[!1,zn]}var Dn=$e,Kr=Ke;function On(e,t){var n=t(),r=U({h:{__:n,v:t}}),o=r[0].h,i=r[1];return $e(function(){o.__=n,o.v=t,gt(o)&&i({h:o})},[e,n,t]),R(function(){return gt(o)&&i({h:o}),e(function(){gt(o)&&i({h:o})})},[e]),n}function gt(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Vn={useState:U,useId:hn,useReducer:dt,useEffect:R,useLayoutEffect:$e,useInsertionEffect:Dn,useTransition:Pn,useDeferredValue:An,useSyncExternalStore:On,startTransition:zn,useRef:X,useImperativeHandle:fn,useMemo:ie,useCallback:S,useContext:Ie,useDebugValue:mn,version:"18.3.1",Children:Lr,render:Ln,hydrate:Vr,unmountComponentAtNode:Mn,createPortal:Mr,createElement:ge,createContext:Re,createFactory:Ur,cloneElement:Yr,createRef:mr,Fragment:Q,isValidElement:Ke,isElement:Kr,isFragment:Xr,isMemo:Zr,findDOMNode:jr,Component:fe,PureComponent:ht,memo:Cr,forwardRef:kr,flushSync:Br,unstable_batchedUpdates:Gr,StrictMode:qr,Suspense:qe,SuspenseList:We,lazy:Nr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Fr};async function Jr(e){const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch composition: ${t.statusText}`);return await t.json()}const vt=new Map,Qr=e=>{const[t,n]=U({status:"pending",isSuccess:!1});return R(()=>{const r=i=>n({status:"success",data:i,isSuccess:!0}),o=vt.get(e);if(o&&!(o instanceof Promise)){r(o);return}n({status:"fetching",isSuccess:!1}),async function(){try{let i;if(o)i=await o;else{const l=Jr(e);vt.set(e,l),i=await l,vt.set(e,i)}r(i)}catch(i){n({status:"error",isSuccess:!1,error:i})}}()},[e]),t},Hn=Re(null),le=()=>{const e=Ie(Hn);if(!e)throw new Error("useGlobalContext must be used within a GlobalContextProvider");return e},eo=({children:e,...t})=>s(Hn.Provider,{value:t,children:e}),Rn=Re(null),be=()=>{const e=Ie(Rn);if(!e)throw new Error("useCompositionContext must be used within a CompositionContextProvider");return e},to=({composition:e,children:t})=>{const{aspectRatio:n,categories:r,imageHdWidth:o,imageSubWidths:i}=e,{minMediaWidth:l,maxMediaWidth:c,categoriesFilter:u}=le(),d=ie(()=>{if(u==="*")return r;function g(f){return u.split("|").some(y=>new RegExp(`^${y.replace(/\*/g,".*")}$`).test(f))}return r.filter(({id:f})=>g(f))},[r,u]),w=ie(()=>d.flatMap(({items:g})=>g),[d]),a={aspectRatio:n.replace(":"," / ")},b=ie(()=>{const g=i.concat(o),f=g.sort((p,h)=>p-h),y=f.filter(p=>p>=l&&p<=c);if(y.length===0){const p=(l+c)/2,h=g.reduce((_,v)=>Math.abs(v-p)<Math.abs(_-p)?v:_,o);return console.warn(`None of available media widths (${f.join("|")}) match the given constraints (${l>0?`${l} ≤ `:""}width${c<1/0?` ≤ ${c}`:""}).`,`Using the closest width instead (${h}).`),[h]}return y},[i,o,l,c]);return s(Rn.Provider,{value:{...e,categories:d,items:w,aspectRatioStyle:a,usedMediaWidths:b},children:t})},$n=500,wt=.75,Je=1+wt*2;function xe(e,t,n){return Math.min(Math.max(e,t),n)}const Qe=(e,t,n)=>e+(t-e)*n,Wn=Re(null),yt=()=>Ie(Wn),Fe=()=>{const e=yt();if(!e)throw new Error("useCustomizationContext must be used within a CustomizationContextProvider");return e},Fn="*:size-full",Un="*:object-cover *:size-full",no=({children:e})=>{const{compositionUrl:t}=le(),n=S(()=>document.querySelector(`${he}[composition-url="${t}"]`),[t]),r=S(f=>{const y=f.querySelectorAll(Ze),p=new Map;for(const h of y){const _=h.getAttribute("name");if(!_){console.warn("Icon element is missing a name attribute");continue}const v=h.innerHTML,m=v?s("div",{className:Fn,dangerouslySetInnerHTML:{__html:v}}):void 0;if(!m){console.warn(`Icon "${_}" customization is empty.`);continue}p.set(_,{Icon:m})}return p},[]),[o,i]=U(()=>{const f=n();return f?r(f):new Map});R(()=>{const f=n();if(!f)return;const y=new MutationObserver(()=>{i(r(f))});return y.observe(f,{childList:!0,subtree:!0}),()=>y.disconnect()},[r,n]);const l=S(f=>o.get(f),[o]),c=S((f,y)=>{i(p=>{const{Icon:h,..._}=y;return new Map(p.set(f,{..._,Icon:s("div",{className:Fn,children:h})}))})},[]),u=S(f=>{i(y=>(y.delete(f),new Map(y)))},[]),d=S(f=>{const y=f.querySelectorAll(Xe),p=new Array;for(const h of y){const _=h.innerHTML;if(!_){console.warn("Custom media element is empty");continue}const v=Number(h.getAttribute("index"));if(Number.isNaN(v)){console.warn("Custom media element is missing the 'index' attribute");continue}const m=h.getAttribute("thumbnail-src")??void 0,E=JSON.stringify({index:v,thumbnailSrc:m});p.push({id:E,Media:s("div",{className:Un,dangerouslySetInnerHTML:{__html:_}}),index:v,thumbnailSrc:m})}return p},[]),[w,a]=U(()=>{const f=n();return f?d(f):[]});R(()=>{const f=n();if(!f)return;const y=new MutationObserver(()=>{a(d(f))});return y.observe(f,{childList:!0,subtree:!0}),()=>y.disconnect()},[d,n]);const b=S(f=>{const{Media:y,...p}=f,h=s("div",{className:Un,children:y}),_=JSON.stringify(p);return a(v=>[...v,{id:_,Media:h,...p}]),_},[]),g=S(f=>{a(y=>y.filter(p=>p.id!==f))},[]);return s(Wn.Provider,{value:{getIconConfig:l,registerIconConfig:c,unregisterIconConfig:u,customMediaList:w,registerCustomMedia:b,unregisterCustomMedia:g},children:e})},Xn=Re(null),ae=()=>{const e=Ie(Xn);if(!e)throw new Error("useControlsContext must be used within a ControlsContextProvider");return e},ro=({children:e})=>{const{infiniteCarrousel:t,extendBehavior:n,emitEvent:r,isFullScreen:o,requestFullscreen:i,exitFullscreen:l}=le(),{customMediaList:c}=Fe(),{categories:u,items:d}=be(),w=ie(()=>{const $=new Array(...d),oe=c.slice().sort((ne,se)=>ne.index<0&&se.index<0?se.index-ne.index:ne.index<0?1:se.index<0?-1:ne.index-se.index);for(const ne of oe){let se=ne.index;se<0&&(se=$.length+se+1),$.splice(se,0,{type:"custom",...ne})}return $},[d,c]),[a,b]=U(w.map(()=>null));R(()=>{b(w.map(()=>null))},[w]);const g=S(($,oe)=>{b(ne=>ne.map((se,Mt)=>Mt===$?oe:se))},[]),[f,y]=U(0),[p,h]=U(null),_=p??f,v=w[_],m=a[_],[E,k]=U(null),L=!!E,M=S(()=>k(null),[]),z=S(()=>{if(L||p!==null)return;const $=f-1;$>=0?h($):t&&(k("first_to_last"),h(w.length-1))},[L,p,f,t,w.length]),x=S(()=>{if(L||p!==null)return;const $=f+1;$<w.length?h($):t&&(k("last_to_first"),h(0))},[L,p,f,w.length,t]),N=S($=>{const oe=Math.min(f,$),ne=Math.max(f,$);a.slice(oe,ne+1).filter(Mt=>Mt===null).length>2&&k("instant"),h($)},[f,a]);R(()=>{r(Dt,{index:_,item:v})},[v,r,_]);const D=ie(()=>{let $;if(v.type==="custom"){const oe=w.slice(0,_).reverse().find(ne=>ne.type!=="custom")??w.slice(_+1).find(ne=>ne.type!=="custom");if(!oe)throw new Error("No non-custom item found");$=oe}else $=v;for(const oe of u)if(oe.items.includes($))return oe.id;throw new Error("Current item not found in any category")},[u,v,w,_]),P=S($=>{const oe=u.find(({id:se})=>se===$)?.items[0];if(oe===void 0)throw new Error("Failed to find target category");const ne=w.findIndex(se=>se===oe);N(ne)},[u,w,N]),C=ie(()=>{switch(v.type){case"image":return!!v.hotspots?.length;case"360":return m==="running"&&v.images.some($=>!!$.hotspots?.length);default:return!1}},[v,m]),[I,T]=U(!0),A=S(()=>{const $=!I;T($),r($?Ht:Rt)},[r,I]),V=ie(()=>{switch(v.type){case"video":return m!=="running";default:return!0}},[v,m]),[F,Z]=U(!1),J=S(()=>{const $=!F;Z($),r($?$t:Wt)},[r,F]),[K,W]=U(null),Y=S(()=>W(null),[]),j=!!K,ue=ie(()=>{switch(v.type){case"image":return!0;case"360":return m==="running";default:return!1}},[v.type,m]),[te,we]=U(1),re=te!==1,me=te<Je,de=te>1,pe=S($=>{we(oe=>xe(oe+$,1,Je))},[]),Ue=S(()=>we(1),[]),Is=S(()=>pe(wt),[pe]),Ss=S(()=>pe(-wt),[pe]),Lt=S(()=>{Ue(),Y()},[Ue,Y]),[ze,Ms]=U(!1),[Tt,ir]=U(),[Nt,ar]=U(!1),Ae=S(async $=>{Lt(),Ms($),r($?Ot:Vt)},[r,Lt]),Pe=S(()=>{clearTimeout(Tt);const $=setTimeout(()=>{ir(void 0)},$n);ir($)},[Tt]),It=S(async()=>{if(Pe(),n==="full_screen"){const $=await i();if(ar(!$),$)return}Ae(!0)},[n,Ae,i,Pe]),St=S(async()=>{Pe(),!(n==="full_screen"&&(ar(!1),await l()))&&Ae(!1)},[n,Ae,l,Pe]),zs=S(()=>{ze?St():It()},[St,It,ze]);return R(()=>{n==="full_screen"&&(Nt&&ze||o!==ze&&(Pe(),Ae(o)))},[n,Ae,ze,Nt,o,Pe]),s(Xn.Provider,{value:{items:w,setItemInteraction:g,slidable:w.length>1,carrouselItemIndex:f,setCarrouselItemIndex:y,itemIndexCommand:p,setItemIndexCommand:h,masterItemIndex:_,specialCommand:E,isRunningSpecialCommand:L,finishSpecialCommand:M,prevItem:z,nextItem:x,scrollToItemIndex:N,displayedCategoryId:D,changeCategory:P,enableHotspotsControl:C,showHotspots:I,toggleHotspots:A,showGalleryControls:V,showGallery:F,toggleGallery:J,shownDetails:K,isShowingDetails:j,setShownDetails:W,resetShownDetails:Y,showZoomControls:ue,zoom:te,isZooming:re,setZoom:we,resetZoom:Ue,canZoomIn:me,zoomIn:Is,canZoomOut:de,zoomOut:Ss,resetView:Lt,extendMode:ze,enableExtendMode:It,disableExtendMode:St,toggleExtendMode:zs,extendTransition:!!Tt,fakeFullScreen:Nt},children:e})},Zn=["left","center","right","fullW"],Yn=["top","middle","bottom","fullH"],oo=[...Zn,...Yn,"top-left","top-center","top-right","top-fullW","middle-left","middle-center","middle-right","middle-fullW","bottom-left","bottom-center","bottom-right","bottom-fullW","fullH-left","fullH-center","fullH-right","fullW-fullW"];function so(e){return Zn.includes(e)}function io(e){return Yn.includes(e)}function ao(e){return oo.includes(e)}function lo(e){if(!ao(e))throw new Error(`Invalid position: ${e}`);return io(e)?[e,void 0]:so(e)?[void 0,e]:e.split("-")}function O(...e){return e.filter(t=>!!t).map(t=>t.trim()).join(" ")}function co(e){switch(e){case"left":return"left-1 small:left-2";case"right":return"right-1 small:right-2";case"center":return"left-1/2 -translate-x-1/2";case"fullW":return"inset-x-1 small:inset-x-2"}}function jn(e){switch(e){case"top":return"top-1 small:top-2";case"bottom":return"bottom-1 small:bottom-2";case"middle":return"top-1/2 -translate-y-1/2";case"fullH":return"inset-y-1 small:inset-y-2"}}function uo({positionX:e,positionY:t}){const n=new Array;return e&&n.push(co(e)),t&&n.push(jn(t)),n.join(" ")}function Se(e){const[t,n]=lo(e);return uo({positionX:n,positionY:t})}const ee=({customizationKey:e,className:t,children:n})=>{const{getIconConfig:r}=Fe(),i=r(e)?.Icon;return i?t?s("div",{className:t,children:i}):i:n},po=({className:e})=>s(ee,{className:e,customizationKey:"UI_CLOSE",children:s("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})})}),fo={fill:{primary:"bg-primary text-primary-foreground hover:opacity-80",neutral:"bg-background text-neutral-foreground hover:opacity-80"},ghost:{primary:"bg-transparent text-foreground hover:bg-primary/25",neutral:"bg-transparent text-background hover:bg-foreground/25"}},mo={button:"h-8 px-2",icon:"size-8 p-2"},ce=({variant:e="fill",shape:t="button",color:n="primary",className:r,children:o,...i})=>{const l=fo[e][n],c=mo[t];return s("button",{className:O("flex items-center justify-center rounded-ui text-sm transition-all disabled:opacity-60",l,c,r),...i,children:o})},Gn=e=>s(ce,{color:"neutral",shape:"icon",...e,children:s(po,{className:"size-full"})}),Bn=({text:e,className:t})=>s("div",{className:O("flex size-full flex-col items-center justify-center gap-y-4",t),children:[s("img",{className:"h-20 small:h-28",src:"https://cdn.car-cutter.com/libs/web-player/v3/assets/car_placeholder.png"}),s("div",{className:"text-2xl font-bold",children:e})]}),ho={primary:"border-primary",foreground:"border-foreground",background:"border-background"},_o={sm:"size-4 border",md:"size-8 border-2",lg:"size-12 border-4"},qn=({color:e="foreground",size:t="md"})=>{const n=ho[e],r=_o[t];return s("div",{className:O("inline-block animate-rotation rounded-full border-b-transparent",r,n)})},Me=({src:e,className:t,onLoad:n,imgInPlayerWidthRatio:r=1,onlyThumbnail:o,fadeIn:i,...l})=>{const{mediaLoadStrategy:c,playerInViewportWidthRatio:u}=le(),{imageHdWidth:d,usedMediaWidths:w}=be(),[a,b]=ie(()=>{const y=w.map(h=>`${h!==d?pr(e,h):e} ${h}w`);let p;if(o)p=[`${w[0]}px`];else{const h=1/(r*u);switch(c){case"quality":{const _=[...w],v=_.pop();p=_.map(m=>`(max-width: ${h*m}px) ${m}px`),p.push(`${v}px`);break}case"balanced":{p=[];for(let _=0;_<w.length-1;_++){const v=w[_],m=w[_+1],E=Math.round((v+m)/2);p.push(`(max-width: ${h*E}px) ${v}px`)}p.push(`${w[w.length-1]}px`);break}case"speed":{const _=[...w],v=_.shift();p=_.reverse().map(m=>`(min-width: ${h*m}px) ${m}px`),p.push(`${v}px`);break}}}return[y.join(", "),p.join(", ")]},[d,r,c,o,u,e,w]),[g,f]=U();return R(()=>{if(g===!0)return;const y=setTimeout(()=>{f(p=>p??!1)},30);return()=>clearTimeout(y)},[g]),s("img",{src:e,srcSet:a,sizes:b,className:O(t,i&&O(g!==void 0&&"transition-opacity duration-200",g===!1&&"opacity-0",g===!0&&"opacity-100")),onLoad:y=>{f(!0),n?.(y)},...l})},Kn=({className:e})=>s(ee,{className:e,customizationKey:"UI_IMAGE",children:s("svg",{className:e,viewBox:"0 0 12 12",fill:"none",children:s("path",{d:"M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",fill:"currentColor"})})}),bt=({className:e})=>s(ee,{className:e,customizationKey:"UI_PLAY",children:s("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:s("polygon",{points:"6 3 20 12 6 21 6 3"})})}),Jn=({className:e})=>s(ee,{className:e,customizationKey:"UI_360",children:s("svg",{className:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s("g",{clipPath:"url(#clip0_134_843)",children:[s("path",{d:"M35.2497 43.93C34.4358 43.93 33.7296 43.325 33.6241 42.4966C33.51 41.5977 34.1457 40.7765 35.0442 40.662C40.2284 40.0015 44.8709 38.5967 48.1162 36.7057C51.0843 34.9767 52.7185 32.9438 52.7185 30.9819C52.7185 28.8196 50.8062 27.0504 49.2014 25.9464C48.455 25.4329 48.2662 24.4117 48.7798 23.6649C49.2933 22.9185 50.3148 22.7297 51.0612 23.2432C54.2921 25.4657 55.9998 28.1416 55.9998 30.9823C55.9998 34.2063 53.8452 37.1659 49.7684 39.5409C46.0988 41.6789 41.1509 43.1922 35.4591 43.9172C35.3886 43.9257 35.3185 43.93 35.2497 43.93Z",fill:"currentColor"}),s("path",{d:"M27.6 41.5797L23.225 37.2047C22.5842 36.5638 21.5455 36.5638 20.9047 37.2047C20.2642 37.8451 20.2642 38.8842 20.9047 39.5246L22.183 40.8029C17.2816 40.2966 12.8289 39.1555 9.38102 37.4973C5.50463 35.6333 3.28124 33.2582 3.28124 30.9818C3.28124 29.0511 4.87316 27.0443 7.76347 25.3311C8.5432 24.8692 8.8004 23.8626 8.33854 23.0833C7.87627 22.3036 6.86968 22.0464 6.09038 22.5083C1.05658 25.4922 0 28.7631 0 30.9818C0 34.622 2.82665 37.9861 7.95915 40.4547C11.9428 42.3701 17.0958 43.6531 22.7098 44.1495L20.9047 45.9546C20.2642 46.5951 20.2642 47.6341 20.9047 48.275C21.2251 48.595 21.6451 48.7552 22.0651 48.7552C22.4846 48.7552 22.9046 48.595 23.225 48.275L27.6 43.9C28.2405 43.2592 28.2405 42.2201 27.6 41.5797Z",fill:"currentColor"}),s("path",{d:"M17.1827 27.6963V27.3016C17.1827 25.9092 16.3303 25.6391 15.1874 25.6391C14.4808 25.6391 14.2522 25.0158 14.2522 24.3924C14.2522 23.7687 14.4808 23.1453 15.1874 23.1453C15.977 23.1453 16.8084 23.0415 16.8084 21.3581C16.8084 20.1529 16.1227 19.8619 15.2703 19.8619C14.2522 19.8619 13.7327 20.1114 13.7327 20.9219C13.7327 21.6282 13.4208 22.1063 12.2155 22.1063C10.7193 22.1063 10.5326 21.7944 10.5326 20.7967C10.5326 19.1762 11.696 17.0771 15.2703 17.0771C17.9098 17.0771 19.9046 18.0329 19.9046 20.8386C19.9046 22.3553 19.3437 23.7687 18.3046 24.2468C19.5308 24.7039 20.4242 25.6182 20.4242 27.3016V27.6963C20.4242 31.1045 18.076 32.393 15.1665 32.393C11.5922 32.393 10.2207 30.2111 10.2207 28.4654C10.2207 27.5301 10.6155 27.2806 11.7584 27.2806C13.0884 27.2806 13.4208 27.5716 13.4208 28.3616C13.4208 29.3382 14.3355 29.5668 15.2703 29.5668C16.6836 29.5668 17.1827 29.0473 17.1827 27.6963Z",fill:"white"}),s("path",{d:"M33.0384 27.3016V27.4887C33.0384 31.063 30.8146 32.393 27.9469 32.393C25.0792 32.393 22.8345 31.063 22.8345 27.4887V21.9815C22.8345 18.4072 25.1412 17.0771 28.134 17.0771C31.646 17.0771 33.0384 19.2591 33.0384 20.9839C33.0384 21.9815 32.5603 22.293 31.5212 22.293C30.6279 22.293 29.8379 22.0644 29.8379 21.1086C29.8379 20.3191 29.0069 19.9034 28.0302 19.9034C26.804 19.9034 26.0764 20.5477 26.0764 21.9815V23.8515C26.7416 23.1244 27.6769 22.9372 28.6745 22.9372C31.0431 22.9372 33.0384 23.9763 33.0384 27.3016ZM26.0764 27.7173C26.0764 29.1511 26.7831 29.7745 27.9469 29.7745C29.1107 29.7745 29.7964 29.1511 29.7964 27.7173V27.5301C29.7964 26.013 29.1107 25.4311 27.926 25.4311C26.804 25.4311 26.0764 25.9715 26.0764 27.343V27.7173Z",fill:"white"}),s("path",{d:"M35.5527 27.4887V21.9815C35.5527 18.4072 37.7761 17.0771 40.6442 17.0771C43.5119 17.0771 45.7562 18.4072 45.7562 21.9815V27.4887C45.7562 31.063 43.5119 32.393 40.6442 32.393C37.7761 32.393 35.5527 31.063 35.5527 27.4887ZM42.5143 21.9815C42.5143 20.5477 41.808 19.9034 40.6442 19.9034C39.4804 19.9034 38.7947 20.5477 38.7947 21.9815V27.4887C38.7947 28.9225 39.4804 29.5668 40.6442 29.5668C41.808 29.5668 42.5143 28.9225 42.5143 27.4887V21.9815Z",fill:"white"}),s("path",{d:"M49.6948 17.0625C46.9805 17.0625 44.7729 14.8545 44.7729 12.1406C44.7729 9.42675 46.9805 7.21875 49.6948 7.21875C52.4087 7.21875 54.6167 9.42675 54.6167 12.1406C54.6167 14.8545 52.4087 17.0625 49.6948 17.0625ZM49.6948 10.5C48.7899 10.5 48.0542 11.2361 48.0542 12.1406C48.0542 13.0455 48.7899 13.7812 49.6948 13.7812C50.5993 13.7812 51.3354 13.0455 51.3354 12.1406C51.3354 11.2361 50.5993 10.5 49.6948 10.5Z",fill:"white"})]}),s("defs",{children:s("clipPath",{id:"clip0_134_843",children:s("rect",{width:"56",height:"56",fill:"white"})})})]})}),go=({src:e,withCdn:t})=>{const{permanentGallery:n}=le();if(!e)return null;const r="size-full object-cover";return t?s(Me,{className:r,src:e,onlyThumbnail:!0,fadeIn:!n}):s("img",{className:r,src:e})},xt=({children:e})=>{const{extendMode:t}=ae();return s("div",{className:O("flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",t&&"large:h-3/5 large:p-2"),children:e})},vo=({item:e})=>{const{aspectRatioStyle:t}=be(),{type:n}=e;let r,o;switch(n){case"360":r=e.images[0].src,o=!0;break;case"image":r=e.src,o=!0;break;case"video":r=e.poster,o=!0;break;case"custom":r=e.thumbnailSrc,o=!1;break}const i=s(go,{src:r,withCdn:o});let l;switch(n){case"360":l=s(xt,{children:s(Jn,{className:"size-full text-primary-light"})});break;case"video":l=s(xt,{children:s(bt,{className:"size-full p-0.5 text-background"})});break;case"custom":l=r?null:s(xt,{children:s(Kn,{className:"size-full p-0.5 text-background"})});break}return s("div",{className:"relative bg-foreground/30",style:t,children:[i,l&&s("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:l})]})},wo={primary:"bg-primary/50",neutral:"bg-neutral/50",background:"bg-background/50",foreground:"bg-foreground/50"},Qn=({color:e="neutral",orientation:t="horizontal"})=>{const n=wo[e];return s("div",{className:O(n,t==="horizontal"?"h-px w-full":"w-px h-full")})},er=({className:e="",containerClassName:t=""})=>{const{hideCategoriesNav:n,infiniteCarrousel:r,permanentGallery:o,isFullScreen:i}=le(),{categories:l,aspectRatioStyle:c}=be(),{items:u,extendMode:d,extendTransition:w,masterItemIndex:a,prevItem:b,nextItem:g,scrollToItemIndex:f,resetView:y}=ae(),p=ie(()=>{if(n)return[];const x=new Array;let N=l[0];const D=P=>l.find(C=>C.items.some(I=>I===P));for(let P=0;P<u.length;P++){const C=u[P],I=D(C);I&&I!==N&&(x.push(P),N=I)}return x},[l,n,u]),h=X(null),_=S(()=>{if(!h.current)throw new Error("slider.current is null");return h.current},[]),v=X(!1),m=X(null),[E,k]=U(!1),L=S((x,N)=>{const D=_(),P=D.clientWidth,C=D.scrollWidth/u.length,I=(x+1/2)*C-P/2,T=D.scrollWidth-D.clientWidth;D.scrollTo({left:xe(I,0,T),behavior:N})},[u.length,_]);R(()=>{const x=h.current;if(!x)return;const N=C=>{C.preventDefault(),v.current=!0,m.current={x:C.pageX-x.offsetLeft,scrollLeft:x.scrollLeft}},D=C=>{if(!v.current)return;if(m.current===null)throw new Error("[onMouseMove] scrollStart is null");const T=C.pageX-x.offsetLeft-m.current.x;if(!E&&Math.abs(T)<5)return;const A=m.current.scrollLeft-T;k(!0),requestAnimationFrame(()=>{x.scrollLeft=A})},P=()=>{v.current&&(v.current=!1,requestAnimationFrame(()=>{k(!1)}))};return x.addEventListener("mousedown",N),document.addEventListener("mousemove",D),document.addEventListener("mouseleave",P),document.addEventListener("mouseup",P),document.addEventListener("contextmenu",P),()=>{x.removeEventListener("mousedown",N),document.removeEventListener("mousemove",D),document.removeEventListener("mouseleave",P),document.removeEventListener("mouseup",P),document.removeEventListener("contextmenu",P)}},[E]);const M=X(a);R(()=>{h.current&&(L(a,"smooth"),M.current=a)},[a,L]),R(()=>{h.current&&L(M.current,"instant")},[L,i,d,w]);const z=x=>{E||(r&&x===u.length-1&&a===0?b():r&&x===0&&a===u.length-1?g():f(x),y())};return s("div",{ref:h,className:O("relative w-full overflow-x-auto no-scrollbar",E?"cursor-grab":"cursor-grabbing",e),children:s("div",{className:O("flex h-10 w-fit gap-1 small:h-12 small:gap-2",d&&"large:h-20 large:gap-4",t),children:u.map((x,N)=>s(Q,{children:[p.includes(N)&&s("div",{className:"my-2",children:s(Qn,{color:o&&!i?"neutral":"background",orientation:"vertical"})}),s("div",{className:O("relative h-full overflow-hidden rounded-gallery transition-radius",!E&&"cursor-pointer","after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-all",N===a?"after:opacity-100":"after:opacity-0 hover:after:opacity-70"),style:c,onClick:()=>z(N),children:s(vo,{item:x})})]},N))})})},tr=e=>1-Math.pow(1-e,2),yo=({Media:e,itemIndex:t})=>{const{setItemInteraction:n}=ae();return R(()=>{n(t,"ready")},[t,n]),e},nr=(e,t)=>Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2),bo=({onlyPreload:e,...t})=>{const{zoom:n,isZooming:r,setZoom:o}=ae(),i=X(null),l=X(null),c=S(v=>{if(!l.current)throw new Error(`[${v??"getTransformElementOrThrow"}] transformElementRef.current is null`);return l.current},[]),u=X(!1),d=X(null),w=X(new Map),a=X({x:0,y:0,scale:1}),b=X(null),g=S(v=>{const m=c("setTransformStyle"),{x:E,y:k,scale:L}={...a.current,...v},M=xe(L,1,Je),z=m.clientWidth,x=m.clientHeight,N=z*M,D=x*M,P=xe(E,-(N-z),0),C=xe(k,-(D-x),0);a.current={x:P,y:C,scale:M},m.style.transform=`translate(${P}px, ${C}px) scale(${M})`},[c]),f=S((v,m)=>{const{x:E,y:k,scale:L}=a.current,{x:M,y:z,scale:x}={...a.current,...v};b.current&&(cancelAnimationFrame(b.current),b.current=null);const N=()=>{g({x:M,y:z,scale:x}),o(x)},D=Math.abs(M-E)<1&&Math.abs(z-k)<1&&Math.abs(x-L)<.005;if(!m||D){N();return}const P=new Date().getTime(),C=()=>{const I=()=>{const A=new Date().getTime()-P;if(A>=m){N(),b.current=null;return}const V=Math.min(A/m,1),F=tr(V),Z=Qe(E,M,F),J=Qe(k,z,F),K=Qe(L,x,F);g({x:Z,y:J,scale:K}),C()};b.current=requestAnimationFrame(I)};C()},[g,o]),y=S((v,m)=>{let{x:E,y:k}=a.current;v.x&&(E+=v.x),v.y&&(k+=v.y),f({x:E,y:k},m)},[f]),p=S((v,m,E)=>{const k=a.current.scale,L=xe(v,1,Je),M=L/k,{x:z,y:x}=a.current,{x:N,y:D}=m,P=-z+N,C=-x+D,I=P*M,T=C*M,A=I-N,V=T-D,F=-A,Z=-V;f({x:F,y:Z,scale:L},E)},[f]),h=S(v=>{const m=c("shiftZoomFromButton"),E=m.clientWidth,k=m.clientHeight;p(v,{x:E/2,y:k/2},200)},[c,p]),_=S((v,m,E)=>{const{scale:k}=a.current;p(k+v,m,E)},[p]);return R(()=>{e||l.current&&h(n)},[e,h,n]),R(()=>{if(e||!r)return;const v=l.current;if(!v)return;const m=L=>{L.preventDefault(),L.stopPropagation(),u.current=!0,d.current={x:L.clientX,y:L.clientY}},E=L=>{if(!u.current)return;if(!d.current)throw new Error("mouseStartXY.current is null");L.stopPropagation();const M=L.clientX-d.current.x,z=L.clientY-d.current.y;y({x:M,y:z}),d.current={x:L.clientX,y:L.clientY}},k=()=>{u.current=!1};return v.addEventListener("mousedown",m),document.addEventListener("mousemove",E),document.addEventListener("mouseleave",k),document.addEventListener("mouseup",k),document.addEventListener("contextmenu",k),()=>{v.removeEventListener("mousedown",m),document.removeEventListener("mousemove",E),document.removeEventListener("mouseleave",k),document.removeEventListener("mouseup",k),document.removeEventListener("contextmenu",k)}},[r,y,e]),R(()=>{if(e)return;const v=i.current;if(!v)return;const m=E=>{const{ctrlKey:k,clientX:L,clientY:M,deltaX:z,deltaY:x}=E;if(k){if(!r&&x>=0)return;const{left:N,top:D}=v.getBoundingClientRect(),P=L-N,C=M-D;_(-.01*x,{x:P,y:C})}else{if(!r)return;y({x:-2*z,y:-2*x})}E.preventDefault()};return v.addEventListener("wheel",m),()=>{v.removeEventListener("wheel",m)}},[r,y,_,e]),R(()=>{const v=i.current,m=l.current;if(!v||!m)return;const E=w.current,k=z=>{for(let x=0;x<z.changedTouches.length;x++){const N=z.changedTouches[x];E.set(N.identifier,N)}},L=z=>{for(let x=0;x<z.changedTouches.length;x++){const N=z.changedTouches[x];E.delete(N.identifier)}},M=z=>{const x=z.touches.length;if(x===1){if(!r)return;z.preventDefault();const N=z.touches[0],D=E.get(N.identifier);if(!D)throw new Error("touchStart is null");const P=N.clientX-D.clientX,C=N.clientY-D.clientY;y({x:P,y:C}),E.set(N.identifier,N)}else if(x===2){z.preventDefault();const[N,D]=z.touches,P=E.get(N.identifier),C=E.get(D.identifier);if(!P||!C)throw new Error("intialTouch1 or intialTouch2 is null");const I=nr(P,C),A=nr(N,D)/I,{left:V,top:F}=v.getBoundingClientRect();_(A-1,{x:(N.clientX+D.clientX)/2-V,y:(N.clientY+D.clientY)/2-F}),E.set(N.identifier,N),E.set(D.identifier,D)}};return m.addEventListener("touchstart",k),m.addEventListener("touchmove",M),m.addEventListener("touchend",L),m.addEventListener("touchcancel",L),()=>{m.removeEventListener("touchstart",k),m.removeEventListener("touchmove",M),m.removeEventListener("touchend",L),m.removeEventListener("touchcancel",L)}},[r,y,_]),s("div",{ref:i,className:`relative size-full overflow-hidden ${r?"z-zoomed-image cursor-move":""}`,children:s("div",{ref:l,className:"origin-top-left",children:s(Me,{...t,imgInPlayerWidthRatio:e?1:n})})})},xo=({hotspot:e})=>{const{title:t,icon:n,description:r,position:o,detail:i}=e,{getIconConfig:l}=Fe(),c=n?l(n):void 0,{extendMode:u,setShownDetails:d}=ae(),w=!!i,a=i?.type==="image",b=!!t||!!r,g=a?s(Kn,{className:"size-4"}):s("div",{className:"size-1"}),f=()=>{a&&d({src:i.src,title:t,text:r})};return s("div",{className:O("group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",w?"cursor-pointer":"cursor-help"),style:{top:`${100*e.position.y}%`,left:`${100*e.position.x}%`},onClick:f,children:[s("div",{className:"relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",children:[s("div",{className:"pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"}),s("div",{className:"p-1",children:c?.Icon?s("div",{className:"size-4",children:c.Icon}):g})]}),!a&&b&&s("div",{className:O("absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",u&&"large:max-w-56",o.y<.55?"-top-1":"-bottom-1",o.x<.55?"-left-1 pl-6 small:pl-8":"-right-1 pr-4 small:pr-6","pointer-events-none opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"),children:s("div",{className:"space-y-1 text-pretty",children:[t&&s("div",{className:"text-sm font-semibold small:text-base small:font-bold",children:t}),r&&s("div",{className:"text-xs text-foreground/65 small:text-sm",children:r})]})})]})},Co=({hotspot:e})=>{const{detail:t}=e,n=s(xo,{hotspot:e});switch(t?.type){case"link":case"pdf":return s("a",{href:t.src,target:"_blank",rel:"noreferrer",children:n});default:return n}},rr=({hotspots:e,itemIndex:t,className:n,onLoad:r,...o})=>{const{isShowingDetails:i,showHotspots:l,setItemInteraction:c}=ae();return s("div",{className:O("relative size-full overflow-hidden",n),children:s("div",{className:O("size-full duration-details",i?"scale-105":"scale-100"),children:[s(bo,{className:"size-full object-cover",onLoad:u=>{t!==void 0&&c(t,"ready"),r?.(u)},...o}),l&&e?.map((u,d)=>s(Co,{hotspot:u},d))]})})},Eo=750,ko=1250,Lo=360,To=480,No=({images:e,onlyPreload:t})=>{const{demoSpin:n,reverse360:r}=le(),{isShowingDetails:o,isZooming:i}=ae(),l=i||o,c=X(null),u=X(null),d=X(n),w=X(null),a=S(()=>{w.current&&(clearTimeout(w.current),w.current=null)},[]),b=X(null),g=()=>{b.current&&(cancelAnimationFrame(b.current),b.current=null)},[f,y]=U(0),p=e.length,h=S(()=>{y(v=>(v-1+p)%p)},[p]),_=S(()=>{y(v=>(v+1)%p)},[p]);return R(()=>{if(l){a();return}const v=c.current,m=u.current;if(!v||!m)return;d.current&&(d.current=!1,w.current=setTimeout(()=>{const W=Date.now(),Y=()=>{const j=()=>{const te=(Date.now()-W)/ko,re=Math.round((de=>de*(2-de))(te)*p),me=xe(re%p,0,p-1);y(me),!(re>=p)&&Y()};b.current=requestAnimationFrame(j)};Y()},Eo));const E=Lo/p;let k=null,L=[];const M=W=>{L.push(W),L.length>20&&L.shift()},z=()=>{const W=(()=>{const we=Date.now(),re=L.filter(pe=>we-pe.timestamp<50);if(re.length<2)return 0;const me=re[0],de=re[re.length-1];return(de.value-me.value)/(.001*Math.max(de.timestamp-me.timestamp,1))})(),Y=Date.now();let j=0,ue=Y;const te=()=>{const we=()=>{const re=Date.now(),me=(re-Y)/1e3,de=Math.pow(.05,me),pe=W*de,Ue=(re-ue)/1e3;if(j+=pe*Ue,Math.abs(pe)<5*E&&Math.abs(j)<E){b.current=null;return}Math.abs(j)>=E&&(j>0!==r?_():h(),j=0),ue=re,te()};b.current=requestAnimationFrame(we)};te()},x=()=>{a(),g()},N=W=>{if(W.button!==0)return;W.preventDefault(),W.stopPropagation(),x();const Y=W.clientX;k=Y,L=[{timestamp:Date.now(),value:Y}]},D=W=>{if(k===null)return;W.stopPropagation();const{clientX:Y}=W;M({timestamp:Date.now(),value:Y});const j=Y-k;Math.abs(j)<E||(j>0!==r?_():h(),k=Y)},P=()=>{k!==null&&(k=null,z())};v.addEventListener("mousedown",N),document.addEventListener("mousemove",D),document.addEventListener("mouseleave",P),document.addEventListener("mouseup",P),document.addEventListener("contextmenu",P);const C=To/p,I=()=>m.getBoundingClientRect().width,T=()=>m.scrollWidth/2-I()/2,A=()=>{const W=T();m.scrollLeft=W};A();const V=()=>{const W=m.scrollLeft-T();Math.abs(W)<C||(W<0!==r?_():h(),A())};m.addEventListener("scroll",V);let F=null;const Z=W=>{if(F!==null||W.changedTouches.length!==1)return;x();const{identifier:Y,clientX:j}=W.changedTouches[0];F=Y,k=j,L=[{timestamp:Date.now(),value:j}]},J=W=>{if(!k)return;const Y=Array.from(W.changedTouches).find(({identifier:te})=>te===F);if(!Y)return;W.preventDefault();const{clientX:j}=Y;M({timestamp:Date.now(),value:j});const ue=j-k;Math.abs(ue)<E||(ue>0!==r?_():h(),k=j)},K=W=>{!k||!Array.from(W.changedTouches).some(({identifier:j})=>j===F)||(F=null,k=null,z())};return m.addEventListener("touchstart",Z),m.addEventListener("touchmove",J),m.addEventListener("touchend",K),m.addEventListener("touchcancel",K),()=>{v.removeEventListener("mousedown",N),document.removeEventListener("mousemove",D),document.removeEventListener("mouseleave",P),document.removeEventListener("mouseup",P),document.removeEventListener("contextmenu",P),m.removeEventListener("scroll",V),m.removeEventListener("touchstart",Z),m.removeEventListener("touchmove",J),m.removeEventListener("touchend",K),m.removeEventListener("touchcancel",K)}},[a,_,h,l,r,p]),s("div",{ref:c,className:"cursor-ew-resize",children:s("div",{ref:u,className:"overflow-x-scroll no-scrollbar",children:[s("div",{className:"sticky left-0 top-0",children:[e.map(v=>s(Me,{src:v.src,className:"pointer-events-none !absolute left-0 top-0 -z-10"},v.src)),s(rr,{...e[f],onlyPreload:t})]}),s("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},Io=({images:e,onPlaceholderImageLoaded:t,onSpinImagesLoaded:n,onError:r})=>{const{autoLoad360:o}=le(),i=ie(()=>e.map(({src:a})=>a),[e]),[l,c]=U(null),u=l?[...l.values()].filter(a=>a).length/e.length*100:null,d=S(()=>{u===null&&c(new Map(i.map(a=>[a,!1])))},[i,u]),w=S(a=>{c(b=>{const g=new Map(b);return g.set(a,!0),g})},[]);return R(()=>{o&&d()},[o,d]),R(()=>{u===100&&n()},[u,n]),s("div",{className:"relative size-full",children:[u!==null&&u!==100&&s("div",{className:"hidden",children:i.map(a=>s(Me,{src:a,onLoad:()=>w(a),onError:r},a))}),s(Me,{className:"size-full",src:i[0],onLoad:t}),s("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[s(Jn,{className:"size-20 text-primary-light"}),s(ce,{color:"neutral",shape:"icon",onClick:d,children:s(bt,{className:"size-full"})}),s("div",{className:O("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",u===null&&"invisible"),children:s("div",{className:"h-full bg-primary transition-[width]",style:{width:`${u??0}%`}})})]})]})},So=e=>{const{itemIndex:t}=e,{setItemInteraction:n}=ae(),[r,o]=U();return R(()=>{r===null||r==="error"||n(t,r==="spin"?"running":"ready")},[t,n,r]),r==="error"?s(Bn,{className:"text-background",text:"Spin could not be loaded"}):r!=="spin"?s(Io,{...e,onPlaceholderImageLoaded:()=>o(i=>i===null?"placeholder":i),onSpinImagesLoaded:()=>o("spin"),onError:()=>o("error")}):s(No,{...e})},Mo=e=>s(ce,{color:"neutral",shape:"icon",...e,children:s(bt,{className:"size-full"})}),zo=({className:e})=>s(ee,{className:e,customizationKey:"UI_PAUSE",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M4 12.6667H6.66667V3.33333H4V12.6667ZM9.33333 3.33333V12.6667H12V3.33333H9.33333Z",fill:"currentColor"})})}),Ao=({className:e})=>s(ee,{className:e,customizationKey:"UI_VOLUME",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M2 6V10H4.66667L8 13.3333V2.66667L4.66667 6H2ZM11 8C11 6.82 10.32 5.80667 9.33333 5.31334V10.68C10.32 10.1933 11 9.18 11 8ZM9.33333 2.15334V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8C12.6667 10.1133 11.26 11.9 9.33333 12.4733V13.8467C12.0067 13.24 14 10.8533 14 8C14 5.14667 12.0067 2.76 9.33333 2.15334Z",fill:"currentColor"})})}),Po=({className:e})=>s(ee,{className:e,customizationKey:"UI_VOLUME_OFF",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M11 8C11 6.82 10.32 5.80667 9.33333 5.31333V6.78667L10.9667 8.42C10.9867 8.28667 11 8.14667 11 8ZM12.6667 8C12.6667 8.62667 12.5333 9.21333 12.3067 9.76L13.3133 10.7667C13.7533 9.94 14 9 14 8C14 5.14667 12.0067 2.76 9.33333 2.15333V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8ZM2.84667 2L2 2.84667L5.15333 6H2V10H4.66667L8 13.3333V8.84667L10.8333 11.68C10.3867 12.0267 9.88667 12.3 9.33333 12.4667V13.84C10.2533 13.6333 11.0867 13.2067 11.7933 12.6333L13.1533 14L14 13.1533L2.84667 2ZM8 2.66667L6.60667 4.06L8 5.45333V2.66667Z",fill:"currentColor"})})}),or=({progress:e})=>s("div",{className:"h-1 w-full overflow-hidden rounded-ui-sm bg-background/25",children:s("div",{className:"size-full rounded-ui-sm bg-background transition-transform",style:{transform:`translateX(-${100*(1-e)}%)`}})}),Do=3e3,Oo=({src:e,poster:t,itemIndex:n})=>{const{carrouselItemIndex:r,setItemInteraction:o}=ae(),i=X(null),l=X(null),c=S(()=>{if(!l.current)throw new Error("videoRef.current is null");return l.current},[]);R(()=>{o(n,"ready")},[n,o]);const u=S(()=>{c().play()},[c]),d=S(()=>{c().pause()},[c]);R(()=>{r===n||d()},[r,n,d]);const[w,a]=U(!1),[b,g]=U(!0),f=()=>{a(!0),o(n,"running")},y=()=>{a(!1),o(n,"ready")},p=()=>{g(!1)},h=()=>{g(!0)},[_,v]=U(null),m=T=>{const A=c(),V=T.currentTarget.getBoundingClientRect(),Z=(T.clientX-V.left)/V.width,J=Math.min(1,Math.max(0,Z));A.volume=J,A.muted=!1},E=T=>{const A=c();A.muted=T};R(()=>{const T=l.current;if(!T)return;const A=()=>{v({volume:T.volume,isMuted:T.muted})};return A(),T.addEventListener("volumechange",A),()=>{T.removeEventListener("volumechange",A)}},[]);const[k,L]=U(null),M=k?k.currentTime/k.duration:0;R(()=>{const T=l.current;if(!T)return;const A=()=>{const V=T.currentTime,F=T.duration;isNaN(V)||isNaN(F)||L({currentTime:V,duration:F})};return A(),T.addEventListener("timeupdate",A),()=>{T.removeEventListener("timeupdate",A)}},[]);const z=T=>{const A=c(),V=T.currentTarget.getBoundingClientRect(),Z=(T.clientX-V.left)/V.width,J=A.duration*Z;A.currentTime=J},x=T=>{const A=Math.floor(T%3600/60),V=Math.floor(T%60);return`${A}:${V.toString().padStart(2,"0")}`},[N,D]=U(!1),P=X(void 0),C=S(()=>clearTimeout(P.current),[]),I=S(()=>{C(),P.current=setTimeout(()=>{D(!1)},Do)},[C]);return R(()=>{const T=i.current,A=l.current;if(!T||!A)return;const V=()=>{I(),D(!0)},F=()=>{C(),D(!1)};let Z=!1;const J=()=>{Z=!0},K=()=>{Z&&(Z=!1,d())},W=()=>{Z=!1,V()},Y=j=>{j.preventDefault(),j.touches.length===1&&(I(),D(te=>!te))};return T.addEventListener("mousedown",J),T.addEventListener("mouseup",K),T.addEventListener("mouseenter",V),T.addEventListener("mousemove",W),T.addEventListener("mouseleave",F),A.addEventListener("touchstart",Y),()=>{T.removeEventListener("mousedown",J),T.removeEventListener("mouseup",K),T.removeEventListener("mouseenter",V),T.removeEventListener("mousemove",V),T.removeEventListener("mouseleave",F),A.removeEventListener("touchstart",Y)}},[C,d,I]),s("div",{ref:i,className:"relative size-full",children:[s("video",{ref:l,className:"size-full",src:e,poster:t,disablePictureInPicture:!0,playsInline:!0,onPlay:f,onPause:y,onEnded:y,onCanPlay:p,onWaiting:h}),w?s(Q,{children:[s("div",{className:O("absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",N?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onMouseDownCapture:T=>T.stopPropagation(),children:[s("div",{className:"flex items-center justify-between text-background",children:[s("div",{className:"flex items-center gap-x-4",children:[s(ce,{shape:"icon",variant:"ghost",color:"neutral",onClick:d,children:s(zo,{className:"size-full"})}),k&&s("span",{className:"text-sm",children:[x(k.currentTime)," /"," ",x(k.duration)]})]}),_&&s("div",{className:"group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",children:[s("div",{className:`w-12 cursor-pointer py-1 opacity-0 transition-opacity ${_.isMuted?"group-hover/volume:opacity-50":"group-hover/volume:opacity-100"}`,onClick:m,children:s(or,{progress:_.volume})}),s("div",{className:"size-5 cursor-pointer",onClick:()=>E(!_.isMuted),children:_.isMuted?s(Po,{className:"size-full"}):s(Ao,{className:"size-full"})})]})]}),s("div",{className:"cursor-pointer py-1",onClick:z,children:s(or,{progress:M})})]}),b&&s("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",children:s(qn,{size:"lg",color:"background"})})]}):s("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:s(Mo,{onClick:u})})]})},Vo=({index:e,item:t,isShown:n})=>{const{type:r}=t;let o;switch(r){case"image":o=s(rr,{itemIndex:e,onlyPreload:!n,...t});break;case"video":o=s(Oo,{itemIndex:e,...t});break;case"360":o=s(So,{itemIndex:e,onlyPreload:!n,...t});break;case"custom":o=s(yo,{itemIndex:e,...t})}return o=s("div",{className:"-ml-px h-full w-[calc(100%+2px)]",children:o}),o},Ho=e=>{R(()=>{const t=n=>{n.key==="Escape"&&e()};return addEventListener("keydown",t),()=>{removeEventListener("keydown",t)}},[e])};function Ro(e){return e.target===e.currentTarget}const $o=({currentIndex:e,maxIndex:t})=>s("div",{className:"space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 transition-radius small:space-x-1 small:px-2 small:py-1 small:text-sm",children:[s("span",{children:e+1}),s("span",{children:"/"}),s("span",{children:t+1})]}),sr=({className:e})=>s(ee,{className:e,customizationKey:"UI_ARROW_RIGHT",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",fill:"currentColor"})})}),Wo=({className:e})=>s(ee,{className:e,customizationKey:"UI_EXTEND",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M4.66683 9.3335H3.3335V12.6668H6.66683V11.3335H4.66683V9.3335ZM3.3335 6.66683H4.66683V4.66683H6.66683V3.3335H3.3335V6.66683ZM11.3335 11.3335H9.3335V12.6668H12.6668V9.3335H11.3335V11.3335ZM9.3335 3.3335V4.66683H11.3335V6.66683H12.6668V3.3335H9.3335Z",fill:"currentColor"})})}),Fo=({className:e})=>s(ee,{className:e,customizationKey:"UI_GALLERY",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",fill:"currentColor"})})}),Uo=({className:e})=>s(ee,{className:e,customizationKey:"UI_HOTSPOTS",children:s("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s("g",{clipPath:"url(#clip0_418_982)",children:s("path",{d:"M6 4C4.895 4 4 4.895 4 6C4 7.105 4.895 8 6 8C7.105 8 8 7.105 8 6C8 4.895 7.105 4 6 4ZM10.47 5.5C10.24 3.415 8.585 1.76 6.5 1.53V0.5H5.5V1.53C3.415 1.76 1.76 3.415 1.53 5.5H0.5V6.5H1.53C1.76 8.585 3.415 10.24 5.5 10.47V11.5H6.5V10.47C8.585 10.24 10.24 8.585 10.47 6.5H11.5V5.5H10.47ZM6 9.5C4.065 9.5 2.5 7.935 2.5 6C2.5 4.065 4.065 2.5 6 2.5C7.935 2.5 9.5 4.065 9.5 6C9.5 7.935 7.935 9.5 6 9.5Z",fill:"currentColor"})}),s("defs",{children:s("clipPath",{id:"clip0_418_982",children:s("rect",{width:"12",height:"12",fill:"white"})})})]})}),Xo=({className:e})=>s(ee,{className:e,customizationKey:"UI_MINUS",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M12.6666 8.66634H3.33325V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),Zo=({className:e})=>s(ee,{className:e,customizationKey:"UI_PLUS",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M12.6666 8.66634H8.66659V12.6663H7.33325V8.66634H3.33325V7.33301H7.33325V3.33301H8.66659V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),Yo=({className:e})=>s(ee,{className:e,customizationKey:"UI_REDUCE",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",fill:"currentColor"})})}),jo=({enabled:e,onToggle:t,label:n,className:r,children:o})=>s("label",{className:O("flex cursor-pointer items-center justify-center gap-x-2",r),children:[s("input",{type:"checkbox",className:"sr-only",checked:e,onChange:t}),n&&s("div",{className:"text-xs text-background",children:n}),s("div",{className:O("flex h-5 w-8 items-center justify-center rounded-full transition-colors",e?"bg-primary":"bg-background/60"),children:s("div",{className:O("flex size-4 items-center justify-center rounded-full p-0.5 transition",e?"translate-x-1.5 bg-primary-foreground text-primary":"-translate-x-1.5 bg-background text-foreground"),children:o})})]}),Go=({className:e})=>s(ee,{className:e,customizationKey:"UI_BURGER",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M2 12H14V10.6667H2V12ZM2 8.66667H14V7.33333H2V8.66667ZM2 4V5.33333H14V4H2Z",fill:"currentColor"})})}),Bo=({sharedClassName:e})=>{const{categories:t}=be(),{displayedCategoryId:n,changeCategory:r}=ae(),[o,i]=U(!1),l=()=>{i(!o)},c=()=>{i(!1)};return s(Q,{children:[o&&s("div",{className:O(e,"inset-0 small:hidden"),onClick:c}),s("div",{className:O(e,Se("top-left"),"flex gap-x-2 small:hidden"),children:[s(ce,{shape:"icon",color:o?"primary":"neutral",onClick:l,children:s(Go,{})}),o&&s("div",{className:"rounded-ui-md bg-background transition-radius",children:s("ul",{className:"space-y-0.5 p-1",children:t.map(({id:u,title:d})=>s("li",{className:O("cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-all hover:bg-primary/30",u===n&&"bg-primary/50"),onClick:()=>{r(u),i(!1)},children:d},u))})})]}),s("div",{className:O(e,jn("top"),"w-full overflow-x-auto max-small:hidden"),children:s("div",{className:"mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow",children:t.map(({id:u,title:d})=>s(ce,{variant:u===n?"fill":"ghost",onClick:()=>r(u),children:d},u))})})]})},qo=()=>{const{hideCategoriesNav:e,infiniteCarrousel:t,permanentGallery:n,extendBehavior:r}=le(),{aspectRatioStyle:o,categories:{length:i}}=be(),{items:{length:l},slidable:c,carrouselItemIndex:u,masterItemIndex:d,prevItem:w,nextItem:a,showGalleryControls:b,enableHotspotsControl:g,showHotspots:f,toggleHotspots:y,showGallery:p,toggleGallery:h,extendMode:_,toggleExtendMode:v,shownDetails:m,isShowingDetails:E,resetShownDetails:k,showZoomControls:L,isZooming:M,canZoomIn:z,zoomIn:x,canZoomOut:N,zoomOut:D,resetView:P}=ae(),C=S(T=>{Ro(T)&&k()},[k]);Ho(k);const I="absolute z-overlay";return s(Q,{children:[!e&&i>1&&s(Bo,{sharedClassName:O(I,"transition-opacity",M?"!pointer-events-none opacity-0":"opacity-100")}),c&&!M&&s("div",{className:O(I,Se("top-right")),children:s($o,{currentIndex:u,maxIndex:l-1})}),c&&s(Q,{children:[s(ce,{shape:"icon",color:"neutral",className:O(I,Se("middle-left"),M?"!pointer-events-none opacity-0":"opacity-100"),onClick:w,disabled:!t&&d<=0,children:s(ee,{customizationKey:"CONTROLS_PREV",children:s(sr,{className:"size-full -scale-x-100"})})}),s(ce,{shape:"icon",color:"neutral",className:O(I,Se("middle-right"),M?"!pointer-events-none opacity-0":"opacity-100"),onClick:a,disabled:!t&&d>=l-1,children:s(ee,{customizationKey:"CONTROLS_NEXT",children:s(sr,{className:"size-full"})})})]}),s("div",{className:O(I,Se("bottom-fullW"),"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"),children:[!n&&c&&s(Q,{children:[s(ce,{className:b&&!M?"opacity-100":"!pointer-events-none opacity-0",variant:"fill",color:p?"primary":"neutral",shape:"icon",onClick:h,children:s(Fo,{className:"size-full"})}),p&&s(er,{className:O("transition-opacity",b&&!M?"opacity-100":"!pointer-events-none opacity-0","[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"),containerClassName:"mx-1"})]}),s("div",{className:"col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2",children:[g&&s(jo,{className:O("transition-opacity",M?"!pointer-events-none opacity-0":"opacity-100"),enabled:f,onToggle:y,children:s(Uo,{className:"size-full"})}),L&&s("div",{className:"max-small:hidden",children:[s(ce,{className:"rounded-b-none",color:"neutral",shape:"icon",disabled:!z,onClick:x,children:s(Zo,{className:"size-full"})}),s(Qn,{color:"background"}),s(ce,{className:"rounded-t-none",color:"neutral",shape:"icon",disabled:!N,onClick:D,children:s(Xo,{className:"size-full"})})]}),r!=="none"&&s(ce,{variant:"fill",color:_?"primary":"neutral",shape:"icon",onClick:v,children:_?s(Yo,{className:"size-full"}):s(Wo,{className:"size-full"})})]})]}),s("div",{className:O(I,"inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",E?"opacity-100":"pointer-events-none opacity-0"),onClick:C,children:s("div",{className:O("h-full w-3/5 bg-background transition-transform duration-details",E?"translate-x-0":"translate-x-full"),children:!!m&&s(Q,{children:[s(Me,{className:"w-full bg-foreground/65",style:o,src:m.src,imgInPlayerWidthRatio:.6}),s("div",{className:O("space-y-1 px-2 py-1 small:p-3",_&&"large:p-4"),children:[m.title&&s("span",{className:O("text-sm font-semibold small:text-base small:font-bold",_&&"large:text-lg"),children:m.title}),m.text&&s("p",{className:O("text-xs text-foreground/65 small:text-sm",_&&"large:text-base"),children:m.text})]})]})})}),(M||E)&&s(Gn,{className:O(I,Se("top-right")),onClick:P})]})},Ko=({className:e=""})=>{const{infiniteCarrousel:t,preloadRange:n,isFullScreen:r}=le(),{aspectRatioStyle:o}=be(),{items:i,slidable:l,carrouselItemIndex:c,setCarrouselItemIndex:u,itemIndexCommand:d,setItemIndexCommand:w,specialCommand:a,isRunningSpecialCommand:b,finishSpecialCommand:g,extendMode:f,extendTransition:y}=ae(),p=X(null),h=S(C=>{if(!p.current)throw new Error(`[${C??"sliderOrThrow"}] slider.current is null`);return p.current},[]),_=X(!1),v=X(null),m=X(null),E=X(null),k=S(()=>{E.current&&cancelAnimationFrame(E.current)},[]),L=S(()=>{const C=h("computeClosestSnapIndex"),I=Array.from(C.children),T=C.scrollLeft;return I.reduce((V,F,Z)=>{const J=F.offsetLeft;return Math.abs(J-T)<Math.abs(I[V].offsetLeft-T)?Z:V},0)},[h]),M=S(C=>{const I=h("setStyleCursor");I.style.cursor=C},[h]),z=S(C=>{const I=h("setStyleSnapState");C==="mandatory"?I.style.scrollSnapType="x mandatory":I.style.scrollSnapType="none"},[h]),x=S((C,I,T)=>{k();const A=h("scrollToIndex"),V=Array.from(A.children),F=A.scrollLeft,Z=V[C].offsetLeft,J=te=>{A.scrollTo({left:te,behavior:"instant"})},K=()=>{J(Z),z("mandatory"),T?.()},W=Math.abs(F-Z);if(W<1||I==="instant"){K();return}const Y=xe(W/2.5,300,1e3),j=new Date().getTime();z("none");const ue=()=>{const te=()=>{const re=new Date().getTime()-j;if(re>=Y){K();return}const me=Math.min(re/Y,1),de=tr(me),pe=Qe(F,Z,de);J(pe),ue()};E.current=requestAnimationFrame(te)};ue()},[k,h,z]),[N,D]=U(),P=!!N;return R(()=>{const C=()=>{clearTimeout(N);const I=setTimeout(()=>{D(void 0)},$n);D(I)};return addEventListener("resize",C),document.addEventListener("fullscreenchange",C),()=>{removeEventListener("resize",C),document.removeEventListener("fullscreenchange",C)}},[N]),R(()=>{if(a)return;const C=L();Number.isNaN(C)||C!==c&&x(c,"instant")},[c,L,x,a,i,N,r,f,y]),R(()=>{if(!l||b){M("auto");return}const C=p.current;if(!C)return;M("grab"),z("mandatory");const I=V=>{V.button===0&&(V.preventDefault(),V.stopPropagation(),k(),_.current=!0,v.current=V.pageX-C.offsetLeft,m.current=C.scrollLeft,M("grabbing"))},T=V=>{if(!_.current)return;if(v.current===null)throw new Error("[onMouseMove] startX is null");z("none");const Z=V.pageX-C.offsetLeft-v.current;requestAnimationFrame(()=>{if(m.current===null)throw new Error("[onMouseMove] scrollLeft is null");C.scrollLeft=m.current-Z})},A=()=>{if(!_.current)return;_.current=!1,M("grab");const V=L();x(V,"smooth")};return C.addEventListener("mousedown",I),document.addEventListener("mousemove",T),document.addEventListener("mouseleave",A),document.addEventListener("mouseup",A),document.addEventListener("contextmenu",A),()=>{C.removeEventListener("mousedown",I),document.removeEventListener("mousemove",T),document.removeEventListener("mouseleave",A),document.removeEventListener("mouseup",A),document.removeEventListener("contextmenu",A)}},[k,L,b,x,M,z,l]),R(()=>{if(y||P)return;const C=p.current;if(!C)return;const I=()=>{const T=L();Number.isNaN(T)||(u(T),T===d&&w(null))};return C.addEventListener("scroll",I),()=>{C.removeEventListener("scroll",I)}},[L,y,P,d,u,w]),R(()=>{if(d===null)return;const C=()=>{setTimeout(()=>{w(null),g()},75)};switch(a){case"first_to_last":x(i.length-1,"instant",C);break;case"last_to_first":x(0,"instant",C);break;case"instant":x(d,"instant",C);break;default:x(d,"smooth");break}},[a,g,d,i.length,x,w]),s("div",{className:O("relative overflow-hidden rounded-carrousel transition-radius",e),style:o,children:[s("div",{ref:p,className:`flex size-full ${l?"overflow-x-auto no-scrollbar *:snap-start *:snap-always":"justify-center"}`,children:i.map((C,I)=>{const T=I===c,A=I===0,V=I===i.length-1,F=(()=>{if(a==="first_to_last"&&A)return{transform:`translateX(${100*i.length}%)`};if(a==="last_to_first"&&V)return{transform:`translateX(-${100*i.length}%)`}})();let Z=Math.abs(I-c)<=n;Z||=I===d,t&&(Z||=c<n&&i.length-I<=n-c,Z||=c>=i.length-n&&I<=n-(i.length-c));const J=(()=>{let K;switch(C.type){case"360":K=C.images[0].src;break;case"image":K=C.src;break;case"video":K=C.poster??"video";break;case"custom":K="custom";break}return`${I}_${K}`})();return s("div",{className:O("h-full bg-foreground/35",c===I&&"z-1"),style:{...o,...F},children:Z&&s(Vo,{index:I,item:C,isShown:T})},J)})}),s(qo,{})]})},Jo=()=>{const{permanentGallery:e}=le(),{aspectRatioStyle:t}=be(),{prevItem:n,nextItem:r,isShowingDetails:o,resetShownDetails:i,extendMode:l,disableExtendMode:c,isZooming:u,resetZoom:d,fakeFullScreen:w}=ae(),a=X(null),b=X(null),g=X(null);return R(()=>{if(!l)return;const f=a.current,y=b.current,p=g.current;if(!f||!y||!p)return;let h=!1;const _=E=>[f,y,p].includes(E.target),v=E=>{h=_(E)},m=E=>{h&&(_(E)&&c(),h=!1)};return f.addEventListener("mousedown",v),f.addEventListener("mouseup",m),()=>{f.removeEventListener("mousedown",v),f.removeEventListener("mouseup",m)}},[c,l]),R(()=>{const f=y=>{y.key==="Escape"&&(u?d():o?i():c())};return addEventListener("keydown",f),()=>{removeEventListener("keydown",f)}},[c,o,u,r,n,i,d]),s("div",{ref:a,className:O("relative",l&&"flex size-full items-center justify-center",w&&"fixed inset-0 z-overlay bg-foreground/75"),children:[s("div",{ref:b,className:l?"flex size-full flex-col justify-center gap-y-2 small:gap-y-4":"space-y-2",children:[s("div",{ref:g,className:O(l&&"mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"),style:t,children:s(Ko,{className:O(l&&"h-full min-w-0")})}),e&&s(er,{className:O(l&&"my-2 shrink-0 small:my-4")})]}),l&&s(Gn,{className:"absolute right-2 top-2 small:right-4 small:top-4",onClick:c})]})},Qo=()=>{const{emitEvent:e,compositionUrl:t}=le(),{data:n,status:r,isSuccess:o,error:i}=Qr(t);return R(()=>{i?e(Pt,i):r==="fetching"?e(zt,t):o&&e(At,n)},[n,t,e,i,o,r]),i?s(Bn,{className:"aspect-square text-foreground/70",text:"Player could not be loaded"}):o?s(to,{composition:n,children:s(ro,{children:s(Jo,{})})}):s("div",{className:"flex aspect-square size-full flex-col items-center justify-center gap-y-4",children:[s("div",{className:"animate-pulse text-xl",children:"Loading Player"}),s(qn,{color:"foreground"})]})},es=({compositionUrl:e,hideCategoriesNav:t=!1,infiniteCarrousel:n=!1,permanentGallery:r=!1,mediaLoadStrategy:o=lr,minMediaWidth:i=0,maxMediaWidth:l=1/0,preloadRange:c=1,autoLoad360:u=!1,categoriesFilter:d=cr,extendBehavior:w=ur,eventPrefix:a=Ft,demoSpin:b=!1,reverse360:g=!1,children:f})=>{const y=X(null),[p,h]=U(.5),[_,v]=U(!1),m=S((L,M)=>{const z=a+L,x=new CustomEvent(z,{detail:M});document.dispatchEvent(x)},[a]);R(()=>{if(_){h(1);return}if(!y.current)return;const L=y.current,M=()=>{const z=window.innerWidth,x=L.clientWidth;h(x/z)};return M(),addEventListener("resize",M),()=>{removeEventListener("resize",M)}},[_]),R(()=>{if(w!=="full_screen")return;const L=y.current;if(!L)throw new Error("Wrapper not found");const M=()=>{const{fullscreenElement:z}=document;v(z===L||z?.localName===he)};return document.addEventListener("fullscreenchange",M),()=>{document.removeEventListener("fullscreenchange",M)}},[w]);const E=S(async()=>{const L=y.current;if(!L)throw new Error("Wrapper not found");try{return await L.requestFullscreen(),!0}catch{return!1}},[]),k=S(async()=>{try{return await document.exitFullscreen(),!0}catch{return!1}},[]);return s(eo,{compositionUrl:e,hideCategoriesNav:t,infiniteCarrousel:n,permanentGallery:r,mediaLoadStrategy:o,minMediaWidth:i,maxMediaWidth:l,preloadRange:c,categoriesFilter:d,autoLoad360:u,extendBehavior:w,demoSpin:b,reverse360:g,emitEvent:m,playerInViewportWidthRatio:p,isFullScreen:_,requestFullscreen:E,exitFullscreen:k,children:s(no,{children:[s("div",{ref:y,className:"select-none text-foreground",style:{"--background":"var(--cc-webplayer-background, 0 0% 100%)","--foreground":"var(--cc-webplayer-foreground, 240 10% 3.9%)","--primary":"var(--cc-webplayer-primary, 216 100% 52%)","--primary-foreground":"var(--cc-webplayer-primary-foreground, var(--background))","--primary-light":"var(--cc-webplayer-primary-light, var(--primary))","--neutral":"var(--cc-webplayer-neutral, 0 0% 39%)","--neutral-foreground":"var(--cc-webplayer-neutral-foreground, var(--foreground))","--radius-ui":"var(--cc-webplayer-radius-ui, 16px)","--radius-carrousel":"var(--cc-webplayer-radius-carrousel, 0)","--radius-gallery":"var(--cc-webplayer-radius-gallery, 0)"},children:s(Qo,{})}),f]})})},ts=({children:e,index:t,thumbnailSrc:n})=>{const{registerCustomMedia:r,unregisterCustomMedia:o}=Fe();return R(()=>{if(!e)return;const i=r({Media:e,index:t,thumbnailSrc:n});return()=>{o(i)}},[e,o,t,r,n]),null},ns=e=>yt()?s(ts,{...e}):s("slot",{}),rs=({name:e,children:t})=>{const{registerIconConfig:n,unregisterIconConfig:r}=Fe();return R(()=>{if(t)return n(e,{Icon:t}),()=>{r(e)}},[t,e,n,r]),null},os=e=>yt()?s(rs,{...e}):s("slot",{}),ss='*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-x-1{left:4px;right:4px}.inset-y-1{top:4px;bottom:4px}.-bottom-1{bottom:-4px}.-left-1{left:-4px}.-right-1{right:-4px}.-top-1{top:-4px}.bottom-0{bottom:0}.bottom-1{bottom:4px}.left-0{left:0}.left-1{left:4px}.left-1\\/2{left:50%}.right-1{right:4px}.right-2{right:8px}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-2{top:8px}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-1{z-index:1}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:4px;margin-right:4px}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:8px;margin-bottom:8px}.-ml-px{margin-left:-1px}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-1{width:4px;height:4px}.size-12{width:48px;height:48px}.size-20{width:80px;height:80px}.size-4{width:16px;height:16px}.size-5{width:20px;height:20px}.size-8{width:32px;height:32px}.size-full{width:100%;height:100%}.h-1{height:4px}.h-10{height:40px}.h-20{height:80px}.h-3\\/4{height:75%}.h-5{height:20px}.h-8{height:32px}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0}.w-12{width:48px}.w-3\\/5{width:60%}.w-8{width:32px}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-\\[calc\\(100\\%\\+2px\\)\\]{width:calc(100% + 2px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0}.max-w-40{max-width:160px}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: 6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-scale-x-100{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:1}0%,to{opacity:0}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-x-1{-moz-column-gap:4px;column-gap:4px}.gap-x-2{-moz-column-gap:8px;column-gap:8px}.gap-x-4{-moz-column-gap:16px;column-gap:16px}.gap-y-1{row-gap:4px}.gap-y-2{row-gap:8px}.gap-y-4{row-gap:16px}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2px * var(--tw-space-x-reverse));margin-left:calc(2px * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(8px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(8px * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + 2px)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - 2px)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-foreground{border-color:hsl(var(--foreground))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:2px}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.py-0\\.5{padding-top:2px;padding-bottom:2px}.py-1{padding-top:4px;padding-bottom:4px}.pl-6{padding-left:24px}.pr-12{padding-right:48px}.pr-4{padding-right:16px}.pt-8{padding-top:32px}.text-2xl{font-size:24px;line-height:32px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/65{color:hsl(var(--foreground) / .65)}.text-foreground\\/70{color:hsl(var(--foreground) / .7)}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-primary-light{color:hsl(var(--primary-light))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-radius{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:size-full>*{width:100%;height:100%}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.\\*\\:object-cover>*{-o-object-fit:cover;object-fit:cover}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:8px;right:8px}.small\\:inset-y-2{top:8px;bottom:8px}.small\\:bottom-2{bottom:8px}.small\\:left-2{left:8px}.small\\:right-2{right:8px}.small\\:right-4{right:16px}.small\\:top-2{top:8px}.small\\:top-4{top:16px}.small\\:my-4{margin-top:16px;margin-bottom:16px}.small\\:hidden{display:none}.small\\:h-12{height:48px}.small\\:h-28{height:112px}.small\\:max-w-48{max-width:192px}.small\\:gap-2{gap:8px}.small\\:gap-x-2{-moz-column-gap:8px;column-gap:8px}.small\\:gap-y-2{row-gap:8px}.small\\:gap-y-4{row-gap:16px}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(4px * var(--tw-space-x-reverse));margin-left:calc(4px * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-3{padding:12px}.small\\:px-2{padding-left:8px;padding-right:8px}.small\\:py-1{padding-top:4px;padding-bottom:4px}.small\\:pl-8{padding-left:32px}.small\\:pr-6{padding-right:24px}.small\\:text-base{font-size:16px;line-height:24px}.small\\:text-sm{font-size:14px;line-height:20px}.small\\:font-bold{font-weight:700}}@media (min-width: 1280px){.large\\:h-20{height:80px}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:224px}.large\\:gap-4{gap:16px}.large\\:p-2{padding:8px}.large\\:p-4{padding:16px}.large\\:text-base{font-size:16px;line-height:24px}.large\\:text-lg{font-size:18px;line-height:28px}}';function is(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,r)=>`${n}-${r.toLowerCase()}`)}function Ct(e){return Object.entries(e).reduce((t,[n,r])=>{if(r!==void 0){const o=is(n);t[o]=r.toString()}return t},{})}const as=e=>s(Q,{children:[s("style",{children:ss}),s(es,{...e})]}),ls=e=>Ct(e),cs=e=>Ct(e),us=e=>Ct(e);function ds(e){return{render:function(t){Ln(t,e)},unmount:function(){Mn(e)}}}var ps=Object.defineProperty,fs=(e,t,n)=>t in e?ps(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t,n)=>(fs(e,typeof t!="symbol"?t+"":t,n),n);const ms={stringify:e=>e,parse:e=>e},hs={stringify:e=>`${e}`,parse:e=>parseFloat(e)},_s={stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},gs={stringify:e=>e.name,parse:(e,t,n)=>{const r=(()=>{if(typeof window<"u"&&e in window)return window[e];if(typeof global<"u"&&e in global)return global[e]})();return typeof r=="function"?r.bind(n):void 0}},vs={stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},Et={string:ms,number:hs,boolean:_s,function:gs,json:vs};function ws(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,r)=>`${n}-${r.toLowerCase()}`)}const tt=Symbol.for("r2wc.render"),nt=Symbol.for("r2wc.connected"),ke=Symbol.for("r2wc.context"),Ce=Symbol.for("r2wc.props");function ys(e,t,n){var r,o,i;t.props||(t.props=e.propTypes?Object.keys(e.propTypes):[]);const l=Array.isArray(t.props)?t.props.slice():Object.keys(t.props),c={},u={},d={};for(const a of l){c[a]=Array.isArray(t.props)?"string":t.props[a];const b=ws(a);u[a]=b,d[b]=a}class w extends HTMLElement{constructor(){super(),et(this,r,!0),et(this,o),et(this,i,{}),et(this,"container"),t.shadow?this.container=this.attachShadow({mode:t.shadow}):this.container=this,this[Ce].container=this.container;for(const b of l){const g=u[b],f=this.getAttribute(g),y=c[b],p=y?Et[y]:null;p!=null&&p.parse&&f&&(this[Ce][b]=p.parse(f,g,this))}}static get observedAttributes(){return Object.keys(d)}connectedCallback(){this[nt]=!0,this[tt]()}disconnectedCallback(){this[nt]=!1,this[ke]&&n.unmount(this[ke]),delete this[ke]}attributeChangedCallback(b,g,f){const y=d[b],p=c[y],h=p?Et[p]:null;y in c&&h!=null&&h.parse&&f&&(this[Ce][y]=h.parse(f,b,this),this[tt]())}[(r=nt,o=ke,i=Ce,tt)](){this[nt]&&(this[ke]?n.update(this[ke],this[Ce]):this[ke]=n.mount(this.container,e,this[Ce]))}}for(const a of l){const b=u[a],g=c[a];Object.defineProperty(w.prototype,a,{enumerable:!0,configurable:!0,get(){return this[Ce][a]},set(f){this[Ce][a]=f;const y=g?Et[g]:null;if(y!=null&&y.stringify){const p=y.stringify(f,b,this);this.getAttribute(b)!==p&&this.setAttribute(b,p)}else this[tt]()}})}return w}function bs(e,t,n){const r=ds(e),o=Vn.createElement(t,n);return r.render(o),{root:r,ReactComponent:t}}function xs({root:e,ReactComponent:t},n){const r=Vn.createElement(t,n);e.render(r)}function Cs({root:e}){setTimeout(()=>{e.unmount()},0)}function kt(e,t={}){return ys(e,t,{mount:bs,update:xs,unmount:Cs})}const Es=kt(as,{shadow:"open",props:{compositionUrl:"string",hideCategoriesNav:"boolean",infiniteCarrousel:"boolean",permanentGallery:"boolean",minMediaWidth:"number",maxMediaWidth:"number",mediaLoadStrategy:"string",preloadRange:"number",autoLoad360:"boolean",categoriesFilter:"string",extendBehavior:"string",eventPrefix:"string",demoSpin:"boolean",reverse360:"boolean"}}),ks=kt(ns,{shadow:"closed",props:{index:"number",thumbnailSrc:"string"}}),Ls=kt(os,{shadow:"closed",props:{name:"string"}});function Ts(){customElements.define(he,Es),customElements.define(Xe,ks),customElements.define(Ze,Ls)}function Ns(){Ut()||Ts()}G.DEFAULT_EVENT_PREFIX=Ft,G.EVENT_COMPOSITION_LOADED=At,G.EVENT_COMPOSITION_LOADING=zt,G.EVENT_COMPOSITION_LOAD_ERROR=Pt,G.EVENT_EXTEND_MODE_OFF=Vt,G.EVENT_EXTEND_MODE_ON=Ot,G.EVENT_GALLERY_CLOSE=Wt,G.EVENT_GALLERY_OPEN=$t,G.EVENT_HOTSPOTS_OFF=Rt,G.EVENT_HOTSPOTS_ON=Ht,G.EVENT_ITEM_CHANGE=Dt,G.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=Xe,G.WEB_PLAYER_ICON_WC_TAG=Ze,G.WEB_PLAYER_WC_TAG=he,G.checkCustomElementsDefinition=Ut,G.ensureCustomElementsDefinition=Ns,G.generateCompositionUrl=dr,G.webPlayerCustomMediaPropsToAttributes=cs,G.webPlayerIconPropsToAttributes=us,G.webPlayerPropsToAttributes=ls,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(Re,lt){typeof exports=="object"&&typeof module<"u"?lt(exports):typeof define=="function"&&define.amd?define(["exports"],lt):(Re=typeof globalThis<"u"?globalThis:Re||self,lt(Re.CarCutterWebplayerWC={}))})(this,function(Re){"use strict";const lt="cc-webplayer",Ft="cc-webplayer-custom-media",Ut="cc-webplayer-icon",Pr="composition-loading",Sr="composition-loaded",Nr="composition-load-error",Rr="item-change",Ar="extend-mode-on",Dr="extend-mode-off",zr="hotspots-on",Or="hotspots-off",Hr="gallery-open",Fr="gallery-close",_o="quality",wo="*",bo="full_screen",Ur="cc-webplayer:";function yo(e,t){return`https://cdn.car-cutter.com/gallery/${e}/${t}/composition_v3.json`}function xo(e,t){const n=e.split("/"),o=n.pop();return[n.join("/"),t,o].join("/")}function Vr(){return!!customElements.get(lt)&&!!customElements.get(Ft)&&!!customElements.get(Ut)}var It,fe,Wr,vt,Br,Yr,Xr,Zr,ar,ir,sr,Gr,Pt={},jr=[],Eo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,St=Array.isArray;function at(e,t){for(var n in t)e[n]=t[n];return e}function lr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ct(e,t,n){var o,s,l,p={};for(l in t)l=="key"?o=t[l]:l=="ref"?s=t[l]:p[l]=t[l];if(arguments.length>2&&(p.children=arguments.length>3?It.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(l in e.defaultProps)p[l]==null&&(p[l]=e.defaultProps[l]);return Nt(e,p,o,s,null)}function Nt(e,t,n,o,s){var l={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++Wr,__i:-1,__u:0};return s==null&&fe.vnode!=null&&fe.vnode(l),l}function Co(){return{current:null}}function Xe(e){return e.children}function it(e,t){this.props=e,this.context=t}function xt(e,t){if(t==null)return e.__?xt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?xt(e):null}function $r(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return $r(e)}}function cr(e){(!e.__d&&(e.__d=!0)&&vt.push(e)&&!Vt.__r++||Br!=fe.debounceRendering)&&((Br=fe.debounceRendering)||Yr)(Vt)}function Vt(){for(var e,t,n,o,s,l,p,r=1;vt.length;)vt.length>r&&vt.sort(Xr),e=vt.shift(),r=vt.length,e.__d&&(n=void 0,s=(o=(t=e).__v).__e,l=[],p=[],t.__P&&((n=at({},o)).__v=o.__v+1,fe.vnode&&fe.vnode(n),ur(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[s]:null,l,s??xt(o),!!(32&o.__u),p),n.__v=o.__v,n.__.__k[n.__i]=n,en(l,n,p),n.__e!=s&&$r(n)));Vt.__r=0}function qr(e,t,n,o,s,l,p,r,m,h,M){var d,f,i,C,I,E,v=o&&o.__k||jr,L=t.length;for(m=Mo(n,t,v,m,L),d=0;d<L;d++)(i=n.__k[d])!=null&&(f=i.__i==-1?Pt:v[i.__i]||Pt,i.__i=d,E=ur(e,i,f,s,l,p,r,m,h,M),C=i.__e,i.ref&&f.ref!=i.ref&&(f.ref&&dr(f.ref,null,i),M.push(i.ref,i.__c||C,i)),I==null&&C!=null&&(I=C),4&i.__u||f.__k===i.__k?m=Kr(i,m,e):typeof i.type=="function"&&E!==void 0?m=E:C&&(m=C.nextSibling),i.__u&=-7);return n.__e=I,m}function Mo(e,t,n,o,s){var l,p,r,m,h,M=n.length,d=M,f=0;for(e.__k=new Array(s),l=0;l<s;l++)(p=t[l])!=null&&typeof p!="boolean"&&typeof p!="function"?(m=l+f,(p=e.__k[l]=typeof p=="string"||typeof p=="number"||typeof p=="bigint"||p.constructor==String?Nt(null,p,null,null,null):St(p)?Nt(Xe,{children:p},null,null,null):p.constructor==null&&p.__b>0?Nt(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p).__=e,p.__b=e.__b+1,r=null,(h=p.__i=Lo(p,n,m,d))!=-1&&(d--,(r=n[h])&&(r.__u|=2)),r==null||r.__v==null?(h==-1&&(s>M?f--:s<M&&f++),typeof p.type!="function"&&(p.__u|=4)):h!=m&&(h==m-1?f--:h==m+1?f++:(h>m?f--:f++,p.__u|=4))):e.__k[l]=null;if(d)for(l=0;l<M;l++)(r=n[l])!=null&&!(2&r.__u)&&(r.__e==o&&(o=xt(r)),rn(r,r));return o}function Kr(e,t,n){var o,s;if(typeof e.type=="function"){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=Kr(o[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=xt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ut(e,t){return t=t||[],e==null||typeof e=="boolean"||(St(e)?e.some(function(n){ut(n,t)}):t.push(e)),t}function Lo(e,t,n,o){var s,l,p=e.key,r=e.type,m=t[n];if(m===null&&e.key==null||m&&p==m.key&&r==m.type&&!(2&m.__u))return n;if(o>(m!=null&&!(2&m.__u)?1:0))for(s=n-1,l=n+1;s>=0||l<t.length;){if(s>=0){if((m=t[s])&&!(2&m.__u)&&p==m.key&&r==m.type)return s;s--}if(l<t.length){if((m=t[l])&&!(2&m.__u)&&p==m.key&&r==m.type)return l;l++}}return-1}function Jr(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Eo.test(t)?n:n+"px"}function Wt(e,t,n,o,s){var l;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||Jr(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||Jr(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")l=t!=(t=t.replace(Zr,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=n,n?o?n.u=o.u:(n.u=ar,e.addEventListener(t,l?sr:ir,l)):e.removeEventListener(t,l?sr:ir,l);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Qr(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ar++;else if(t.t<n.u)return;return n(fe.event?fe.event(t):t)}}}function ur(e,t,n,o,s,l,p,r,m,h){var M,d,f,i,C,I,E,v,L,x,_,T,P,H,k,W,S,O=t.type;if(t.constructor!=null)return null;128&n.__u&&(m=!!(32&n.__u),l=[r=t.__e=n.__e]),(M=fe.__b)&&M(t);e:if(typeof O=="function")try{if(v=t.props,L="prototype"in O&&O.prototype.render,x=(M=O.contextType)&&o[M.__c],_=M?x?x.props.value:M.__:o,n.__c?E=(d=t.__c=n.__c).__=d.__E:(L?t.__c=d=new O(v,_):(t.__c=d=new it(v,_),d.constructor=O,d.render=To),x&&x.sub(d),d.props=v,d.state||(d.state={}),d.context=_,d.__n=o,f=d.__d=!0,d.__h=[],d._sb=[]),L&&d.__s==null&&(d.__s=d.state),L&&O.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=at({},d.__s)),at(d.__s,O.getDerivedStateFromProps(v,d.__s))),i=d.props,C=d.state,d.__v=t,f)L&&O.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),L&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(L&&O.getDerivedStateFromProps==null&&v!==i&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,_),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,_)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(j){j&&(j.__=t)}),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[],d.__h.length&&p.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,_),L&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(i,C,I)})}if(d.context=_,d.props=v,d.__P=e,d.__e=!1,P=fe.__r,H=0,L){for(d.state=d.__s,d.__d=!1,P&&P(t),M=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do d.__d=!1,P&&P(t),M=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++H<25);d.state=d.__s,d.getChildContext!=null&&(o=at(at({},o),d.getChildContext())),L&&!f&&d.getSnapshotBeforeUpdate!=null&&(I=d.getSnapshotBeforeUpdate(i,C)),W=M,M!=null&&M.type===Xe&&M.key==null&&(W=tn(M.props.children)),r=qr(e,St(W)?W:[W],t,n,o,s,l,p,r,m,h),d.base=t.__e,t.__u&=-161,d.__h.length&&p.push(d),E&&(d.__E=d.__=null)}catch(j){if(t.__v=null,m||l!=null)if(j.then){for(t.__u|=m?160:128;r&&r.nodeType==8&&r.nextSibling;)r=r.nextSibling;l[l.indexOf(r)]=null,t.__e=r}else for(S=l.length;S--;)lr(l[S]);else t.__e=n.__e,t.__k=n.__k;fe.__e(j,t,n)}else l==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):r=t.__e=ko(n.__e,t,n,o,s,l,p,m,h);return(M=fe.diffed)&&M(t),128&t.__u?void 0:r}function en(e,t,n){for(var o=0;o<n.length;o++)dr(n[o],n[++o],n[++o]);fe.__c&&fe.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(l){l.call(s)})}catch(l){fe.__e(l,s.__v)}})}function tn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:St(e)?e.map(tn):at({},e)}function ko(e,t,n,o,s,l,p,r,m){var h,M,d,f,i,C,I,E=n.props,v=t.props,L=t.type;if(L=="svg"?s="http://www.w3.org/2000/svg":L=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),l!=null){for(h=0;h<l.length;h++)if((i=l[h])&&"setAttribute"in i==!!L&&(L?i.localName==L:i.nodeType==3)){e=i,l[h]=null;break}}if(e==null){if(L==null)return document.createTextNode(v);e=document.createElementNS(s,L,v.is&&v),r&&(fe.__m&&fe.__m(t,l),r=!1),l=null}if(L==null)E===v||r&&e.data==v||(e.data=v);else{if(l=l&&It.call(e.childNodes),E=n.props||Pt,!r&&l!=null)for(E={},h=0;h<e.attributes.length;h++)E[(i=e.attributes[h]).name]=i.value;for(h in E)if(i=E[h],h!="children"){if(h=="dangerouslySetInnerHTML")d=i;else if(!(h in v)){if(h=="value"&&"defaultValue"in v||h=="checked"&&"defaultChecked"in v)continue;Wt(e,h,null,i,s)}}for(h in v)i=v[h],h=="children"?f=i:h=="dangerouslySetInnerHTML"?M=i:h=="value"?C=i:h=="checked"?I=i:r&&typeof i!="function"||E[h]===i||Wt(e,h,i,E[h],s);if(M)r||d&&(M.__html==d.__html||M.__html==e.innerHTML)||(e.innerHTML=M.__html),t.__k=[];else if(d&&(e.innerHTML=""),qr(t.type=="template"?e.content:e,St(f)?f:[f],t,n,o,L=="foreignObject"?"http://www.w3.org/1999/xhtml":s,l,p,l?l[0]:n.__k&&xt(n,0),r,m),l!=null)for(h=l.length;h--;)lr(l[h]);r||(h="value",L=="progress"&&C==null?e.removeAttribute("value"):C!=null&&(C!==e[h]||L=="progress"&&!C||L=="option"&&C!=E[h])&&Wt(e,h,C,E[h],s),h="checked",I!=null&&I!=e[h]&&Wt(e,h,I,E[h],s))}return e}function dr(e,t,n){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(s){fe.__e(s,n)}}function rn(e,t,n){var o,s;if(fe.unmount&&fe.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||dr(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(l){fe.__e(l,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&rn(o[s],t,n||typeof e.type!="function");n||lr(e.__e),e.__c=e.__=e.__e=void 0}function To(e,t,n){return this.constructor(e,n)}function Rt(e,t,n){var o,s,l,p;t==document&&(t=document.documentElement),fe.__&&fe.__(e,t),s=(o=typeof n=="function")?null:n&&n.__k||t.__k,l=[],p=[],ur(t,e=(!o&&n||t).__k=ct(Xe,null,[e]),s||Pt,Pt,t.namespaceURI,!o&&n?[n]:s?null:t.firstChild?It.call(t.childNodes):null,l,!o&&n?n:s?s.__e:t.firstChild,o,p),en(l,e,p)}function nn(e,t){Rt(e,t,nn)}function Io(e,t,n){var o,s,l,p,r=at({},e.props);for(l in e.type&&e.type.defaultProps&&(p=e.type.defaultProps),t)l=="key"?o=t[l]:l=="ref"?s=t[l]:r[l]=t[l]==null&&p!=null?p[l]:t[l];return arguments.length>2&&(r.children=arguments.length>3?It.call(arguments,2):n),Nt(e.type,r,o||e.key,s||e.ref,null)}function At(e){function t(n){var o,s;return this.getChildContext||(o=new Set,(s={})[t.__c]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(l){this.props.value!=l.value&&o.forEach(function(p){p.__e=!0,cr(p)})},this.sub=function(l){o.add(l);var p=l.componentWillUnmount;l.componentWillUnmount=function(){o&&o.delete(l),p&&p.call(l)}}),n.children}return t.__c="__cC"+Gr++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,o){return n.children(o)}).contextType=t,t}It=jr.slice,fe={__e:function(e,t,n,o){for(var s,l,p;t=t.__;)if((s=t.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(e)),p=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,o||{}),p=s.__d),p)return s.__E=s}catch(r){e=r}throw e}},Wr=0,it.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=at({},this.state),typeof e=="function"&&(e=e(at({},n),this.props)),e&&at(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),cr(this))},it.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cr(this))},it.prototype.render=Xe,vt=[],Yr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xr=function(e,t){return e.__v.__b-t.__v.__b},Vt.__r=0,Zr=/(PointerCapture)$|Capture$/i,ar=0,ir=Qr(!1),sr=Qr(!0),Gr=0;var Po=0;function c(e,t,n,o,s,l){t||(t={});var p,r,m=t;if("ref"in m)for(r in m={},t)r=="ref"?p=t[r]:m[r]=t[r];var h={type:e,props:m,key:n,ref:p,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Po,__i:-1,__u:0,__source:s,__self:l};if(typeof e=="function"&&(p=e.defaultProps))for(r in p)m[r]===void 0&&(m[r]=p[r]);return fe.vnode&&fe.vnode(h),h}var ft,Ae,pr,on,Et=0,an=[],He=fe,sn=He.__b,ln=He.__r,cn=He.diffed,un=He.__c,dn=He.unmount,pn=He.__;function Ct(e,t){He.__h&&He.__h(Ae,e,Et||t),Et=0;var n=Ae.__H||(Ae.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function be(e){return Et=1,fr(vn,e)}function fr(e,t,n){var o=Ct(ft++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):vn(void 0,t),function(r){var m=o.__N?o.__N[0]:o.__[0],h=o.t(m,r);m!==h&&(o.__N=[h,o.__[1]],o.__c.setState({}))}],o.__c=Ae,!Ae.__f)){var s=function(r,m,h){if(!o.__c.__H)return!0;var M=o.__c.__H.__.filter(function(f){return!!f.__c});if(M.every(function(f){return!f.__N}))return!l||l.call(this,r,m,h);var d=o.__c.props!==r;return M.forEach(function(f){if(f.__N){var i=f.__[0];f.__=f.__N,f.__N=void 0,i!==f.__[0]&&(d=!0)}}),l&&l.call(this,r,m,h)||d};Ae.__f=!0;var l=Ae.shouldComponentUpdate,p=Ae.componentWillUpdate;Ae.componentWillUpdate=function(r,m,h){if(this.__e){var M=l;l=void 0,s(r,m,h),l=M}p&&p.call(this,r,m,h)},Ae.shouldComponentUpdate=s}return o.__N||o.__}function pe(e,t){var n=Ct(ft++,3);!He.__s&&mr(n.__H,t)&&(n.__=e,n.u=t,Ae.__H.__h.push(n))}function Dt(e,t){var n=Ct(ft++,4);!He.__s&&mr(n.__H,t)&&(n.__=e,n.u=t,Ae.__h.push(n))}function Ce(e){return Et=5,et(function(){return{current:e}},[])}function fn(e,t,n){Et=6,Dt(function(){if(typeof e=="function"){var o=e(t());return function(){e(null),o&&typeof o=="function"&&o()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function et(e,t){var n=Ct(ft++,7);return mr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function X(e,t){return Et=8,et(function(){return e},t)}function Mt(e){var t=Ae.context[e.__c],n=Ct(ft++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Ae)),t.props.value):e.__}function hn(e,t){He.useDebugValue&&He.useDebugValue(t?t(e):e)}function mn(){var e=Ct(ft++,11);if(!e.__){for(var t=Ae.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function So(){for(var e;e=an.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Bt),e.__H.__h.forEach(hr),e.__H.__h=[]}catch(t){e.__H.__h=[],He.__e(t,e.__v)}}He.__b=function(e){Ae=null,sn&&sn(e)},He.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),pn&&pn(e,t)},He.__r=function(e){ln&&ln(e),ft=0;var t=(Ae=e.__c).__H;t&&(pr===Ae?(t.__h=[],Ae.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Bt),t.__h.forEach(hr),t.__h=[],ft=0)),pr=Ae},He.diffed=function(e){cn&&cn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(an.push(t)!==1&&on===He.requestAnimationFrame||((on=He.requestAnimationFrame)||No)(So)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),pr=Ae=null},He.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Bt),n.__h=n.__h.filter(function(o){return!o.__||hr(o)})}catch(o){t.some(function(s){s.__h&&(s.__h=[])}),t=[],He.__e(o,n.__v)}}),un&&un(e,t)},He.unmount=function(e){dn&&dn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{Bt(o)}catch(s){t=s}}),n.__H=void 0,t&&He.__e(t,n.__v))};var gn=typeof requestAnimationFrame=="function";function No(e){var t,n=function(){clearTimeout(o),gn&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);gn&&(t=requestAnimationFrame(n))}function Bt(e){var t=Ae,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Ae=t}function hr(e){var t=Ae;e.__c=e.__(),Ae=t}function mr(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function vn(e,t){return typeof t=="function"?t(e):t}function _n(e,t){for(var n in t)e[n]=t[n];return e}function gr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function wn(e,t){var n=t(),o=be({t:{__:n,u:t}}),s=o[0].t,l=o[1];return Dt(function(){s.__=n,s.u=t,vr(s)&&l({t:s})},[e,n,t]),pe(function(){return vr(s)&&l({t:s}),e(function(){vr(s)&&l({t:s})})},[e]),n}function vr(e){var t,n,o=e.u,s=e.__;try{var l=o();return!((t=s)===(n=l)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function bn(e){e()}function yn(e){return e}function xn(){return[!1,bn]}var En=Dt;function Yt(e,t){this.props=e,this.context=t}function Ro(e,t){function n(s){var l=this.props.ref,p=l==s.ref;return!p&&l&&(l.call?l(null):l.current=null),t?!t(this.props,s)||!p:gr(this.props,s)}function o(s){return this.shouldComponentUpdate=n,ct(e,s)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(Yt.prototype=new it).isPureReactComponent=!0,Yt.prototype.shouldComponentUpdate=function(e,t){return gr(this.props,e)||gr(this.state,t)};var Cn=fe.__b;fe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Cn&&Cn(e)};var Ao=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Do(e){function t(n){var o=_n({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=Ao,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Mn=function(e,t){return e==null?null:ut(ut(e).map(t))},zo={map:Mn,forEach:Mn,count:function(e){return e?ut(e).length:0},only:function(e){var t=ut(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ut},Oo=fe.__e;fe.__e=function(e,t,n,o){if(e.then){for(var s,l=t;l=l.__;)if((s=l.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Oo(e,t,n,o)};var Ln=fe.unmount;function kn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=_n({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return kn(o,t,n)})),e}function Tn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return Tn(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Xt(){this.__u=0,this.o=null,this.__b=null}function In(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ho(e){var t,n,o;function s(l){if(t||(t=e()).then(function(p){n=p.default||p},function(p){o=p}),o)throw o;if(!n)throw t;return ct(n,l)}return s.displayName="Lazy",s.__f=!0,s}function zt(){this.i=null,this.l=null}fe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ln&&Ln(e)},(Xt.prototype=new it).__c=function(e,t){var n=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(n);var s=In(o.__v),l=!1,p=function(){l||(l=!0,n.__R=null,s?s(r):r())};n.__R=p;var r=function(){if(!--o.__u){if(o.state.__a){var m=o.state.__a;o.__v.__k[0]=Tn(m,m.__c.__P,m.__c.__O)}var h;for(o.setState({__a:o.__b=null});h=o.o.pop();)h.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(p,p)},Xt.prototype.componentWillUnmount=function(){this.o=[]},Xt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=kn(this.__b,n,o.__O=o.__P)}this.__b=null}var s=t.__a&&ct(Xe,null,e.fallback);return s&&(s.__u&=-33),[ct(Xe,null,t.__a?null:e.children),s]};var Pn=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Fo(e){return this.getChildContext=function(){return e.context},e.children}function Uo(e){var t=this,n=e.h;t.componentWillUnmount=function(){Rt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(o){this.childNodes.push(o),t.h.appendChild(o)},insertBefore:function(o,s){this.childNodes.push(o),t.h.insertBefore(o,s)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}),Rt(ct(Fo,{context:t.context},e.__v),t.v)}function Vo(e,t){var n=ct(Uo,{__v:e,h:t});return n.containerInfo=t,n}(zt.prototype=new it).__a=function(e){var t=this,n=In(t.__v),o=t.l.get(e);return o[0]++,function(s){var l=function(){t.props.revealOrder?(o.push(s),Pn(t,e,o)):s()};n?n(l):l()}},zt.prototype.render=function(e){this.i=null,this.l=new Map;var t=ut(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},zt.prototype.componentDidUpdate=zt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Pn(e,n,t)})};var Sn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Wo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Bo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yo=/[A-Z0-9]/g,Xo=typeof document<"u",Zo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Nn(e,t,n){return t.__k==null&&(t.textContent=""),Rt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Go(e,t,n){return nn(e,t),typeof n=="function"&&n(),e?e.__c:null}it.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(it.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Rn=fe.event;function jo(){}function $o(){return this.cancelBubble}function qo(){return this.defaultPrevented}fe.event=function(e){return Rn&&(e=Rn(e)),e.persist=jo,e.isPropagationStopped=$o,e.isDefaultPrevented=qo,e.nativeEvent=e};var _r,Ko={enumerable:!1,configurable:!0,get:function(){return this.class}},An=fe.vnode;fe.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,o=t.type,s={},l=o.indexOf("-")===-1;for(var p in n){var r=n[p];if(!(p==="value"&&"defaultValue"in n&&r==null||Xo&&p==="children"&&o==="noscript"||p==="class"||p==="className")){var m=p.toLowerCase();p==="defaultValue"&&"value"in n&&n.value==null?p="value":p==="download"&&r===!0?r="":m==="translate"&&r==="no"?r=!1:m[0]==="o"&&m[1]==="n"?m==="ondoubleclick"?p="ondblclick":m!=="onchange"||o!=="input"&&o!=="textarea"||Zo(n.type)?m==="onfocus"?p="onfocusin":m==="onblur"?p="onfocusout":Bo.test(p)&&(p=m):m=p="oninput":l&&Wo.test(p)?p=p.replace(Yo,"-$&").toLowerCase():r===null&&(r=void 0),m==="oninput"&&s[p=m]&&(p="oninputCapture"),s[p]=r}}o=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=ut(n.children).forEach(function(h){h.props.selected=s.value.indexOf(h.props.value)!=-1})),o=="select"&&s.defaultValue!=null&&(s.value=ut(n.children).forEach(function(h){h.props.selected=s.multiple?s.defaultValue.indexOf(h.props.value)!=-1:s.defaultValue==h.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",Ko)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=Sn,An&&An(e)};var Dn=fe.__r;fe.__r=function(e){Dn&&Dn(e),_r=e.__c};var zn=fe.diffed;fe.diffed=function(e){zn&&zn(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),_r=null};var Jo={ReactCurrentDispatcher:{current:{readContext:function(e){return _r.__n[e.__c].props.value},useCallback:X,useContext:Mt,useDebugValue:hn,useDeferredValue:yn,useEffect:pe,useId:mn,useImperativeHandle:fn,useInsertionEffect:En,useLayoutEffect:Dt,useMemo:et,useReducer:fr,useRef:Ce,useState:be,useSyncExternalStore:wn,useTransition:xn}}};function Qo(e){return ct.bind(null,e)}function Zt(e){return!!e&&e.$$typeof===Sn}function ea(e){return Zt(e)&&e.type===Xe}function ta(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ra(e){return Zt(e)?Io.apply(null,arguments):e}function On(e){return!!e.__k&&(Rt(null,e),!0)}function na(e){return e&&(e.base||e.nodeType===1&&e)||null}var oa=function(e,t){return e(t)},aa=function(e,t){return e(t)},ia=Xe,sa=Zt,wr={useState:be,useId:mn,useReducer:fr,useEffect:pe,useLayoutEffect:Dt,useInsertionEffect:En,useTransition:xn,useDeferredValue:yn,useSyncExternalStore:wn,startTransition:bn,useRef:Ce,useImperativeHandle:fn,useMemo:et,useCallback:X,useContext:Mt,useDebugValue:hn,version:"18.3.1",Children:zo,render:Nn,hydrate:Go,unmountComponentAtNode:On,createPortal:Vo,createElement:ct,createContext:At,createFactory:Qo,cloneElement:ra,createRef:Co,Fragment:Xe,isValidElement:Zt,isElement:sa,isFragment:ea,isMemo:ta,findDOMNode:na,Component:it,PureComponent:Yt,memo:Ro,forwardRef:Do,flushSync:aa,unstable_batchedUpdates:oa,StrictMode:ia,Suspense:Xt,SuspenseList:zt,lazy:Ho,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Jo};async function la(e){const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch composition: ${t.statusText}`);return await t.json()}const br=new Map,ca=e=>{const[t,n]=be({status:"pending",isSuccess:!1});return pe(()=>{const o=l=>n({status:"success",data:l,isSuccess:!0}),s=br.get(e);if(s&&!(s instanceof Promise)){o(s);return}n({status:"fetching",isSuccess:!1}),async function(){try{let l;if(s)l=await s;else{const p=la(e);br.set(e,p),l=await p,br.set(e,l)}o(l)}catch(l){n({status:"error",isSuccess:!1,error:l})}}()},[e]),t},Hn=At(null),rt=()=>{const e=Mt(Hn);if(!e)throw new Error("useGlobalContext must be used within a GlobalContextProvider");return e},ua=({children:e,...t})=>c(Hn.Provider,{value:t,children:e}),Fn=At(null),ht=()=>{const e=Mt(Fn);if(!e)throw new Error("useCompositionContext must be used within a CompositionContextProvider");return e},da=({composition:e,children:t})=>{const{aspectRatio:n,categories:o,imageHdWidth:s,imageSubWidths:l}=e,{minMediaWidth:p,maxMediaWidth:r,categoriesFilter:m}=rt(),h=et(()=>{if(m==="*")return o;function i(C){return m.split("|").some(I=>new RegExp(`^${I.replace(/\*/g,".*")}$`).test(C))}return o.filter(({id:C})=>i(C))},[o,m]),M=et(()=>h.flatMap(({items:i})=>i),[h]),d={aspectRatio:n.replace(":"," / ")},f=et(()=>{const i=l.concat(s),C=i.sort((E,v)=>E-v),I=C.filter(E=>E>=p&&E<=r);if(I.length===0){const E=(p+r)/2,v=i.reduce((L,x)=>Math.abs(x-E)<Math.abs(L-E)?x:L,s);return console.warn(`None of available media widths (${C.join("|")}) match the given constraints (${p>0?`${p} ≤ `:""}width${r<1/0?` ≤ ${r}`:""}).`,`Using the closest width instead (${v}).`),[v]}return I},[l,s,p,r]);return c(Fn.Provider,{value:{...e,categories:h,items:M,aspectRatioStyle:d,usedMediaWidths:f},children:t})},Un=500,Lt=.75,_t=1+Lt*2;function st(e,t,n){return Math.min(Math.max(e,t),n)}const Gt=(e,t,n)=>e+(t-e)*n,Vn=(e,t,n,o,s,l=!1)=>{const p=st(e,t,n);if(p===(l?n:t))return o;if(p===(l?t:n))return 1;const r=(p-t)/(n-t),h=1+(l?r:1-r)*(o-1),d=1+Math.round((h-1)/s)*s;return st(d,1,o)},Wn=At(null),yr=()=>Mt(Wn),Ot=()=>{const e=yr();if(!e)throw new Error("useCustomizationContext must be used within a CustomizationContextProvider");return e},Bn="*:size-full",Yn="*:object-cover *:size-full",pa=({children:e})=>{const{compositionUrl:t}=rt(),n=X(()=>document.querySelector(`${lt}[composition-url="${t}"]`),[t]),o=X(C=>{const I=C.querySelectorAll(Ut),E=new Map;for(const v of I){const L=v.getAttribute("name");if(!L){console.warn("Icon element is missing a name attribute");continue}const x=v.innerHTML,_=x?c("div",{className:Bn,dangerouslySetInnerHTML:{__html:x}}):void 0;if(!_){console.warn(`Icon "${L}" customization is empty.`);continue}E.set(L,{Icon:_})}return E},[]),[s,l]=be(()=>{const C=n();return C?o(C):new Map});pe(()=>{const C=n();if(!C)return;const I=new MutationObserver(()=>{l(o(C))});return I.observe(C,{childList:!0,subtree:!0}),()=>I.disconnect()},[o,n]);const p=X(C=>s.get(C),[s]),r=X((C,I)=>{l(E=>{const{Icon:v,...L}=I;return new Map(E.set(C,{...L,Icon:c("div",{className:Bn,children:v})}))})},[]),m=X(C=>{l(I=>(I.delete(C),new Map(I)))},[]),h=X(C=>{const I=C.querySelectorAll(Ft),E=new Array;for(const v of I){const L=v.innerHTML;if(!L){console.warn("Custom media element is empty");continue}const x=Number(v.getAttribute("index"));if(Number.isNaN(x)){console.warn("Custom media element is missing the 'index' attribute");continue}const _=v.getAttribute("thumbnail-src")??void 0,T=JSON.stringify({index:x,thumbnailSrc:_});E.push({id:T,Media:c("div",{className:Yn,dangerouslySetInnerHTML:{__html:L}}),index:x,thumbnailSrc:_})}return E},[]),[M,d]=be(()=>{const C=n();return C?h(C):[]});pe(()=>{const C=n();if(!C)return;const I=new MutationObserver(()=>{d(h(C))});return I.observe(C,{childList:!0,subtree:!0}),()=>I.disconnect()},[h,n]);const f=X(C=>{const{Media:I,...E}=C,v=c("div",{className:Yn,children:I}),L=JSON.stringify(E);return d(x=>[...x,{id:L,Media:v,...E}]),L},[]),i=X(C=>{d(I=>I.filter(E=>E.id!==C))},[]);return c(Wn.Provider,{value:{getIconConfig:p,registerIconConfig:r,unregisterIconConfig:m,customMediaList:M,registerCustomMedia:f,unregisterCustomMedia:i},children:e})},Xn=At(null),tt=()=>{const e=Mt(Xn);if(!e)throw new Error("useControlsContext must be used within a ControlsContextProvider");return e},fa=({children:e})=>{const{infiniteCarrousel:t,extendBehavior:n,emitEvent:o,isFullScreen:s,requestFullscreen:l,exitFullscreen:p}=rt(),{customMediaList:r}=Ot(),{categories:m,items:h}=ht(),M=et(()=>{const G=new Array(...h),ie=r.slice().sort((ge,ye)=>ge.index<0&&ye.index<0?ye.index-ge.index:ge.index<0?1:ye.index<0?-1:ge.index-ye.index);for(const ge of ie){let ye=ge.index;ye<0&&(ye=G.length+ye+1),G.splice(ye,0,{type:"custom",...ge})}return G},[h,r]),[d,f]=be(M.map(()=>null));pe(()=>{f(M.map(()=>null))},[M]);const i=X((G,ie)=>{f(ge=>ge.map((ye,Ne)=>Ne===G?ie:ye))},[]),[C,I]=be(0),[E,v]=be(null),L=E??C,x=M[L],_=d[L],[T,P]=be(null),H=!!T,k=X(()=>P(null),[]),W=X(()=>{if(H||E!==null)return;const G=C-1;G>=0?v(G):t&&(P("first_to_last"),v(M.length-1))},[H,E,C,t,M.length]),S=X(()=>{if(H||E!==null)return;const G=C+1;G<M.length?v(G):t&&(P("last_to_first"),v(0))},[H,E,C,M.length,t]),O=X(G=>{const ie=Math.min(C,G),ge=Math.max(C,G);d.slice(ie,ge+1).filter(Ne=>Ne===null).length>2&&P("instant"),v(G)},[C,d]);pe(()=>{o(Rr,{index:L,item:x})},[x,o,L]);const j=et(()=>{let G;if(x.type==="custom"){const ie=M.slice(0,L).reverse().find(ge=>ge.type!=="custom")??M.slice(L+1).find(ge=>ge.type!=="custom");if(!ie)throw new Error("No non-custom item found");G=ie}else G=x;for(const ie of m)if(ie.items.includes(G))return ie.id;throw new Error("Current item not found in any category")},[m,x,M,L]),Y=X(G=>{const ie=m.find(({id:ye})=>ye===G)?.items[0];if(ie===void 0)throw new Error("Failed to find target category");const ge=M.findIndex(ye=>ye===ie);O(ge)},[m,M,O]),N=et(()=>{switch(x.type){case"image":return!!x.hotspots?.length;case"360":return _==="running"&&x.images.some(G=>!!G.hotspots?.length);default:return!1}},[x,_]),[U,R]=be(!0),B=X(()=>{const G=!U;R(G),o(G?zr:Or)},[o,U]),J=et(()=>{switch(x.type){case"video":return _!=="running";default:return!0}},[x,_]),[me,we]=be(!1),Ie=X(()=>{const G=!me;we(G),o(G?Hr:Fr)},[o,me]),[oe,re]=be(null),$=X(()=>re(null),[]),ve=!!oe,F=et(()=>{switch(x.type){case"image":return!0;case"interior-360":return _==="running";case"360":return _==="running";default:return!1}},[x.type,_]),[ze,Z]=be(1),Pe=ze!==1,Ge=ze<_t,qe=ze>1,Ve=X(G=>{Z(ie=>st(ie+G,1,_t))},[]),g=X(()=>Z(1),[]),b=X(()=>Ve(Lt),[Ve]),le=X(()=>Ve(-.75),[Ve]),ne=X(()=>{g(),$()},[g,$]),[q,y]=be(!1),[Q,ee]=be(),[he,ae]=be(!1),Se=X(async G=>{ne(),y(G),o(G?Ar:Dr)},[o,ne]),ke=X(()=>{clearTimeout(Q);const G=setTimeout(()=>{ee(void 0)},Un);ee(G)},[Q]),Be=X(async()=>{if(ke(),n==="full_screen"){const G=await l();if(ae(!G),G)return}Se(!0)},[n,Se,l,ke]),Ke=X(async()=>{ke(),!(n==="full_screen"&&(ae(!1),await p()))&&Se(!1)},[n,Se,p,ke]),$e=X(()=>{q?Ke():Be()},[Ke,Be,q]);return pe(()=>{n==="full_screen"&&(he&&q||s!==q&&(ke(),Se(s)))},[n,Se,q,he,s,ke]),c(Xn.Provider,{value:{items:M,setItemInteraction:i,slidable:M.length>1,carrouselItemIndex:C,setCarrouselItemIndex:I,itemIndexCommand:E,setItemIndexCommand:v,masterItemIndex:L,specialCommand:T,isRunningSpecialCommand:H,finishSpecialCommand:k,prevItem:W,nextItem:S,scrollToItemIndex:O,displayedCategoryId:j,changeCategory:Y,enableHotspotsControl:N,showHotspots:U,toggleHotspots:B,showGalleryControls:J,showGallery:me,toggleGallery:Ie,shownDetails:oe,isShowingDetails:ve,setShownDetails:re,resetShownDetails:$,showZoomControls:F,zoom:ze,isZooming:Pe,setZoom:Z,resetZoom:g,canZoomIn:Ge,zoomIn:b,canZoomOut:qe,zoomOut:le,resetView:ne,extendMode:q,enableExtendMode:Be,disableExtendMode:Ke,toggleExtendMode:$e,extendTransition:!!Q,fakeFullScreen:he},children:e})},Zn=["left","center","right","fullW"],Gn=["top","middle","bottom","fullH"],ha=[...Zn,...Gn,"top-left","top-center","top-right","top-fullW","middle-left","middle-center","middle-right","middle-fullW","bottom-left","bottom-center","bottom-right","bottom-fullW","fullH-left","fullH-center","fullH-right","fullW-fullW"];function ma(e){return Zn.includes(e)}function ga(e){return Gn.includes(e)}function va(e){return ha.includes(e)}function _a(e){if(!va(e))throw new Error(`Invalid position: ${e}`);return ga(e)?[e,void 0]:ma(e)?[void 0,e]:e.split("-")}function ce(...e){return e.filter(t=>!!t).map(t=>t.trim()).join(" ")}function wa(e){switch(e){case"left":return"left-1 small:left-2";case"right":return"right-1 small:right-2";case"center":return"left-1/2 -translate-x-1/2";case"fullW":return"inset-x-1 small:inset-x-2"}}function jn(e){switch(e){case"top":return"top-1 small:top-2";case"bottom":return"bottom-1 small:bottom-2";case"middle":return"top-1/2 -translate-y-1/2";case"fullH":return"inset-y-1 small:inset-y-2"}}function ba({positionX:e,positionY:t}){const n=new Array;return e&&n.push(wa(e)),t&&n.push(jn(t)),n.join(" ")}function kt(e){const[t,n]=_a(e);return ba({positionX:n,positionY:t})}const Ze=({customizationKey:e,className:t,children:n})=>{const{getIconConfig:o}=Ot(),l=o(e)?.Icon;return l?t?c("div",{className:t,children:l}):l:n},ya=({className:e})=>c(Ze,{className:e,customizationKey:"UI_CLOSE",children:c("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})})}),xa={fill:{primary:"bg-primary text-primary-foreground hover:opacity-80",neutral:"bg-background text-neutral-foreground hover:opacity-80"},ghost:{primary:"bg-transparent text-foreground hover:bg-primary/25",neutral:"bg-transparent text-background hover:bg-foreground/25"}},Ea={button:"h-8 px-2",icon:"size-8 p-2"},nt=({variant:e="fill",shape:t="button",color:n="primary",className:o,children:s,...l})=>{const p=xa[e][n],r=Ea[t];return c("button",{className:ce("flex items-center justify-center rounded-ui text-sm transition-all disabled:opacity-60",p,r,o),...l,children:s})},$n=e=>c(nt,{color:"neutral",shape:"icon",...e,children:c(ya,{className:"size-full"})}),xr=({text:e,className:t})=>c("div",{className:ce("flex size-full flex-col items-center justify-center gap-y-4",t),children:[c("img",{className:"h-20 small:h-28",src:"https://cdn.car-cutter.com/libs/web-player/v3/assets/car_placeholder.png"}),c("div",{className:"text-2xl font-bold",children:e})]}),Ca={primary:"border-primary",foreground:"border-foreground",background:"border-background"},Ma={sm:"size-4 border",md:"size-8 border-2",lg:"size-12 border-4"},qn=({color:e="foreground",size:t="md"})=>{const n=Ca[e],o=Ma[t];return c("div",{className:ce("inline-block animate-rotation rounded-full border-b-transparent",o,n)})},Tt=({src:e,className:t,onLoad:n,imgInPlayerWidthRatio:o=1,onlyThumbnail:s,fadeIn:l,...p})=>{const{mediaLoadStrategy:r,playerInViewportWidthRatio:m}=rt(),{imageHdWidth:h,usedMediaWidths:M}=ht(),[d,f]=et(()=>{const I=M.map(v=>`${v!==h?xo(e,v):e} ${v}w`);let E;if(s)E=[`${M[0]}px`];else{const v=1/(o*m);switch(r){case"quality":{const L=[...M],x=L.pop();E=L.map(_=>`(max-width: ${v*_}px) ${_}px`),E.push(`${x}px`);break}case"balanced":{E=[];for(let L=0;L<M.length-1;L++){const x=M[L],_=M[L+1],T=Math.round((x+_)/2);E.push(`(max-width: ${v*T}px) ${x}px`)}E.push(`${M[M.length-1]}px`);break}case"speed":{const L=[...M],x=L.shift();E=L.reverse().map(_=>`(min-width: ${v*_}px) ${_}px`),E.push(`${x}px`);break}}}return[I.join(", "),E.join(", ")]},[h,o,r,s,m,e,M]),[i,C]=be();return pe(()=>{if(i===!0)return;const I=setTimeout(()=>{C(E=>E??!1)},30);return()=>clearTimeout(I)},[i]),c("img",{src:e,srcSet:d,sizes:f,className:ce(t,l&&ce(i!==void 0&&"transition-opacity duration-200",i===!1&&"opacity-0",i===!0&&"opacity-100")),onLoad:I=>{C(!0),n?.(I)},...p})},Kn=({className:e})=>c(Ze,{className:e,customizationKey:"UI_IMAGE",children:c("svg",{className:e,viewBox:"0 0 12 12",fill:"none",children:c("path",{d:"M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",fill:"currentColor"})})}),Jn=({className:e})=>c(Ze,{className:e,customizationKey:"INTERIOR_UI_360",children:c("svg",{className:e,viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M30.9343 48C26.8559 48 24.3496 46.2454 23.3411 44.1517C23.1038 43.6651 23 43.1933 23 42.7509C23 41.6008 23.7415 40.8784 24.9725 40.8784C25.8623 40.8784 26.4259 41.2322 26.8708 42.0432C27.6271 43.5324 28.7839 44.4171 31.0085 44.4171C33.2034 44.4171 34.7161 43.149 34.7161 41.3797C34.731 39.3154 33.2034 38.1653 30.6081 38.1653H29.6737C28.5911 38.1653 27.9682 37.5313 27.9682 36.5729C27.9682 35.644 28.5911 34.9952 29.6737 34.9952H30.5488C32.7882 34.9952 34.2416 33.7862 34.2416 32.0463C34.2416 30.336 33.0848 29.2006 30.9195 29.2006C29.1102 29.2006 28.0127 29.9526 27.3157 31.4565C26.8263 32.4592 26.3072 32.8278 25.2987 32.8278C24.053 32.8278 23.4153 32.1053 23.4153 31.0289C23.4153 30.5276 23.5191 30.1 23.7415 29.5987C24.6907 27.5197 27.1229 25.7799 30.9047 25.7799C35.428 25.7799 38.4831 28.0063 38.4831 31.4123C38.4831 34.1106 36.5403 35.8799 34.0191 36.396V36.4845C37.2077 36.7793 39.2691 38.6372 39.2691 41.5713C39.2691 45.4344 35.9026 48 30.9343 48Z",fill:"white"}),c("path",{d:"M50.5032 48C47.107 48 44.4079 46.4223 42.8358 43.2965C42.0201 41.6451 41.5752 39.5366 41.5752 37.0595C41.5752 30.0116 44.9566 25.7651 50.5181 25.7651C54.0626 25.7651 56.6134 27.2543 57.6219 29.2448C57.8295 29.6577 57.9333 30.0411 57.9333 30.4392C57.9333 31.4271 57.2363 32.1938 56.0647 32.1938C55.1749 32.1938 54.641 31.8104 53.9884 31.0584C53.0096 29.8346 51.9715 29.2891 50.5032 29.2891C47.4481 29.2891 45.8909 32.179 45.8613 36.7204V36.9415H45.9502C46.7808 34.9658 48.8867 33.5208 51.7787 33.5208C55.9164 33.5208 58.749 36.455 58.749 40.4508C58.749 44.8594 55.2787 48 50.5032 48ZM50.4439 44.4613C52.6388 44.4613 54.374 42.7804 54.3888 40.6424C54.3888 38.4013 52.7426 36.8088 50.4884 36.8088C48.2193 36.8088 46.5286 38.3865 46.5286 40.554C46.5286 42.7509 48.249 44.4613 50.4439 44.4613Z",fill:"white"}),c("path",{d:"M68.9374 48C63.5094 48 60.2022 43.7388 60.2022 36.8531C60.2022 29.9821 63.5391 25.7651 68.9374 25.7651C74.3357 25.7651 77.6577 29.9673 77.6577 36.8383C77.6577 43.7093 74.3654 48 68.9374 48ZM68.9374 44.4318C71.5772 44.4318 73.1048 41.7335 73.1048 36.8531C73.1048 32.0021 71.5624 29.3333 68.9374 29.3333C66.3272 29.3333 64.7552 32.0168 64.7552 36.8531C64.7552 41.7335 66.2975 44.4318 68.9374 44.4318Z",fill:"white"}),c("path",{d:"M81.6758 28.4244C78.6504 28.4244 76.3665 26.1685 76.3665 23.2048C76.3665 20.2559 78.6504 18 81.6758 18C84.6864 18 87 20.2559 87 23.2048C87 26.1685 84.6864 28.4244 81.6758 28.4244ZM81.6758 25.4755C82.9364 25.4755 83.9152 24.4581 83.9152 23.2048C83.9152 21.9368 82.9216 20.9489 81.6758 20.9489C80.4597 20.9489 79.4364 21.9368 79.4364 23.2048C79.4364 24.4581 80.4449 25.4755 81.6758 25.4755Z",fill:"white"}),c("path",{d:"M37.3915 79.7285C36.5538 79.7285 36.0601 79.2171 36.0601 78.3442V68.0541C36.0601 67.1724 36.5538 66.661 37.3915 66.661C38.2292 66.661 38.7229 67.1724 38.7229 68.0541V78.3442C38.7229 79.2171 38.2292 79.7285 37.3915 79.7285Z",fill:"white"}),c("path",{d:"M43.7429 79.7285C42.9405 79.7285 42.4644 79.2436 42.4644 78.3971V67.9924C42.4644 67.1459 42.9582 66.661 43.8047 66.661C44.3513 66.661 44.7217 66.8814 45.1273 67.4369L50.6294 75.1258H50.6999V68.0012C50.6999 67.1459 51.1761 66.661 51.9785 66.661C52.7809 66.661 53.2482 67.1459 53.2482 68.0012V78.4324C53.2482 79.2612 52.7809 79.7285 51.9432 79.7285C51.3701 79.7285 51.0174 79.5257 50.6118 78.9614L45.092 71.2284H45.0126V78.3971C45.0126 79.2436 44.5365 79.7285 43.7429 79.7285Z",fill:"white"}),c("path",{d:"M61.3719 79.7285C60.5343 79.7285 60.0405 79.2171 60.0405 78.3442V69.0417H57.4129C56.6898 69.0417 56.2049 68.6273 56.2049 67.9395C56.2049 67.2518 56.681 66.8373 57.4129 66.8373H65.3398C66.0629 66.8373 66.539 67.2518 66.539 67.9395C66.539 68.6273 66.054 69.0417 65.3398 69.0417H62.7034V78.3442C62.7034 79.2171 62.2096 79.7285 61.3719 79.7285Z",fill:"white"}),c("path",{d:"M11.5291 40.7269C5.85358 44.3944 2.5 48.9252 2.5 53.8286C2.5 62.4095 12.77 69.8493 27.7816 73.5179M86.4709 40.7269C92.1464 44.3944 95.5 48.9252 95.5 53.8286C95.5 61.8751 86.4695 68.9181 72.967 72.7891M27.7816 73.5179L23.267 65.1144M27.7816 73.5179L19.6553 77.7552",stroke:"currentColor",strokeWidth:"4.51456",strokeLinecap:"round"})]})}),jt=({className:e})=>c(Ze,{className:e,customizationKey:"UI_PLAY",children:c("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:c("polygon",{points:"6 3 20 12 6 21 6 3"})})}),Qn=({className:e})=>c(Ze,{className:e,customizationKey:"UI_360",children:c("svg",{className:e,viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M30.9343 48C26.8559 48 24.3496 46.2454 23.3411 44.1517C23.1038 43.6651 23 43.1933 23 42.7509C23 41.6008 23.7415 40.8784 24.9725 40.8784C25.8623 40.8784 26.4259 41.2322 26.8708 42.0432C27.6271 43.5324 28.7839 44.4171 31.0085 44.4171C33.2034 44.4171 34.7161 43.149 34.7161 41.3797C34.731 39.3154 33.2034 38.1653 30.6081 38.1653H29.6737C28.5911 38.1653 27.9682 37.5313 27.9682 36.5729C27.9682 35.644 28.5911 34.9952 29.6737 34.9952H30.5488C32.7882 34.9952 34.2416 33.7862 34.2416 32.0463C34.2416 30.336 33.0848 29.2006 30.9195 29.2006C29.1102 29.2006 28.0127 29.9526 27.3157 31.4565C26.8263 32.4592 26.3072 32.8278 25.2987 32.8278C24.053 32.8278 23.4153 32.1053 23.4153 31.0289C23.4153 30.5276 23.5191 30.1 23.7415 29.5987C24.6907 27.5197 27.1229 25.7799 30.9047 25.7799C35.428 25.7799 38.4831 28.0063 38.4831 31.4123C38.4831 34.1106 36.5403 35.8799 34.0191 36.396V36.4845C37.2077 36.7793 39.2691 38.6372 39.2691 41.5713C39.2691 45.4344 35.9026 48 30.9343 48Z",fill:"white"}),c("path",{d:"M50.5032 48C47.107 48 44.4079 46.4223 42.8358 43.2965C42.0201 41.6451 41.5752 39.5366 41.5752 37.0595C41.5752 30.0116 44.9566 25.7651 50.5181 25.7651C54.0626 25.7651 56.6134 27.2543 57.6219 29.2448C57.8295 29.6577 57.9333 30.0411 57.9333 30.4392C57.9333 31.4271 57.2363 32.1938 56.0647 32.1938C55.1749 32.1938 54.641 31.8104 53.9884 31.0584C53.0096 29.8346 51.9715 29.2891 50.5032 29.2891C47.4481 29.2891 45.8909 32.179 45.8613 36.7204V36.9415H45.9502C46.7808 34.9658 48.8867 33.5208 51.7787 33.5208C55.9164 33.5208 58.749 36.455 58.749 40.4508C58.749 44.8594 55.2787 48 50.5032 48ZM50.4439 44.4613C52.6388 44.4613 54.374 42.7804 54.3888 40.6424C54.3888 38.4013 52.7426 36.8088 50.4884 36.8088C48.2193 36.8088 46.5286 38.3865 46.5286 40.554C46.5286 42.7509 48.249 44.4613 50.4439 44.4613Z",fill:"white"}),c("path",{d:"M68.9374 48C63.5094 48 60.2022 43.7388 60.2022 36.8531C60.2022 29.9821 63.5391 25.7651 68.9374 25.7651C74.3357 25.7651 77.6577 29.9673 77.6577 36.8383C77.6577 43.7093 74.3654 48 68.9374 48ZM68.9374 44.4318C71.5772 44.4318 73.1048 41.7335 73.1048 36.8531C73.1048 32.0021 71.5624 29.3333 68.9374 29.3333C66.3272 29.3333 64.7552 32.0168 64.7552 36.8531C64.7552 41.7335 66.2975 44.4318 68.9374 44.4318Z",fill:"white"}),c("path",{d:"M81.6758 28.4244C78.6504 28.4244 76.3665 26.1685 76.3665 23.2048C76.3665 20.2559 78.6504 18 81.6758 18C84.6864 18 87 20.2559 87 23.2048C87 26.1685 84.6864 28.4244 81.6758 28.4244ZM81.6758 25.4755C82.9364 25.4755 83.9152 24.4581 83.9152 23.2048C83.9152 21.9368 82.9216 20.9489 81.6758 20.9489C80.4597 20.9489 79.4364 21.9368 79.4364 23.2048C79.4364 24.4581 80.4449 25.4755 81.6758 25.4755Z",fill:"white"}),c("path",{d:"M34.6814 79.561C33.8438 79.561 33.35 79.0496 33.35 78.1678V68.2217C33.35 67.3487 33.8438 66.8373 34.6814 66.8373H40.7302C41.4621 66.8373 41.9382 67.2518 41.9382 67.9395C41.9382 68.6273 41.4533 69.0417 40.7302 69.0417H36.0129V72.1014H40.501C41.1623 72.1014 41.612 72.4894 41.612 73.1242C41.612 73.7591 41.1711 74.147 40.501 74.147H36.0129V77.3566H40.7302C41.4533 77.3566 41.9382 77.771 41.9382 78.4588C41.9382 79.1466 41.4621 79.561 40.7302 79.561H34.6814Z",fill:"white"}),c("path",{d:"M46.4115 79.7285C45.7061 79.7285 45.1506 79.2171 45.1506 78.5734C45.1506 78.2472 45.2564 77.965 45.5121 77.6123L48.6864 73.1859V73.1154L45.6179 68.9359C45.327 68.5479 45.23 68.2569 45.23 67.9131C45.23 67.19 45.8031 66.661 46.5791 66.661C47.0817 66.661 47.4344 66.8814 47.7782 67.4017L50.5028 71.4224H50.5734L53.3862 67.3135C53.6948 66.855 53.9593 66.661 54.4707 66.661C55.1673 66.661 55.7669 67.1636 55.7669 67.7984C55.7669 68.1423 55.6699 68.4245 55.4142 68.7507L52.1076 73.1683V73.23L55.3172 77.5594C55.5641 77.8768 55.6699 78.1766 55.6699 78.5293C55.6699 79.2259 55.132 79.7285 54.3914 79.7285C53.9064 79.7285 53.5802 79.5345 53.2363 79.0672L50.397 75.1082H50.3265L47.5313 79.076C47.1963 79.561 46.9141 79.7285 46.4115 79.7285Z",fill:"white"}),c("path",{d:"M63.7055 79.7285C62.8678 79.7285 62.374 79.2171 62.374 78.3442V69.0417H59.7464C59.0234 69.0417 58.5384 68.6273 58.5384 67.9395C58.5384 67.2518 59.0146 66.8373 59.7464 66.8373H67.6734C68.3964 66.8373 68.8725 67.2518 68.8725 67.9395C68.8725 68.6273 68.3876 69.0417 67.6734 69.0417H65.0369V78.3442C65.0369 79.2171 64.5431 79.7285 63.7055 79.7285Z",fill:"white"}),c("path",{d:"M11.5291 40.7263C5.85358 44.3937 2.5 48.9245 2.5 53.828C2.5 62.4089 12.77 69.8486 27.7816 73.5172M86.4709 40.7263C92.1464 44.3937 95.5 48.9245 95.5 53.828C95.5 61.8744 86.4695 68.9174 72.967 72.7885M27.7816 73.5172L23.267 65.1137M27.7816 73.5172L19.6553 77.7545",stroke:"currentColor",strokeWidth:"4.51456",strokeLinecap:"round"})]})}),La=({src:e,withCdn:t})=>{const{permanentGallery:n}=rt();if(!e)return null;const o="size-full object-cover";return t?c(Tt,{className:o,src:e,onlyThumbnail:!0,fadeIn:!n}):c("img",{className:o,src:e})},$t=({children:e})=>{const{extendMode:t}=tt();return c("div",{className:ce("flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",t&&"large:h-3/5 large:p-2"),children:e})},ka=({item:e})=>{const{aspectRatioStyle:t}=ht(),{type:n}=e;let o,s;switch(n){case"360":o=e.images[0].src,s=!0;break;case"interior-360":o=e.poster,s=!0;break;case"image":o=e.src,s=!0;break;case"video":o=e.poster,s=!0;break;case"custom":o=e.thumbnailSrc,s=!1;break;default:s=!1}const l=c(La,{src:o,withCdn:s});let p;switch(n){case"360":p=c($t,{children:c(Qn,{className:"size-full text-primary-light"})});break;case"interior-360":p=c($t,{children:c(Jn,{className:"size-full text-primary-light"})});break;case"video":p=c($t,{children:c(jt,{className:"size-full p-0.5 text-background"})});break;case"custom":p=o?null:c($t,{children:c(Kn,{className:"size-full p-0.5 text-background"})});break}return c("div",{className:"relative bg-foreground/30",style:t,children:[l,p&&c("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:p})]})},Ta={primary:"bg-primary/50",neutral:"bg-neutral/50",background:"bg-background/50",foreground:"bg-foreground/50"},eo=({color:e="neutral",orientation:t="horizontal"})=>{const n=Ta[e];return c("div",{className:ce(n,t==="horizontal"?"h-px w-full":"w-px h-full")})},to=({className:e="",containerClassName:t=""})=>{const{hideCategoriesNav:n,infiniteCarrousel:o,permanentGallery:s,isFullScreen:l}=rt(),{categories:p,aspectRatioStyle:r}=ht(),{items:m,extendMode:h,extendTransition:M,masterItemIndex:d,prevItem:f,nextItem:i,scrollToItemIndex:C,resetView:I}=tt(),E=et(()=>{if(n)return[];const S=new Array;let O=p[0];const j=Y=>p.find(N=>N.items.some(U=>U===Y));for(let Y=0;Y<m.length;Y++){const N=m[Y],U=j(N);U&&U!==O&&(S.push(Y),O=U)}return S},[p,n,m]),v=Ce(null),L=X(()=>{if(!v.current)throw new Error("slider.current is null");return v.current},[]),x=Ce(!1),_=Ce(null),[T,P]=be(!1),H=X((S,O)=>{const j=L(),Y=j.clientWidth,N=j.scrollWidth/m.length,U=(S+1/2)*N-Y/2,R=j.scrollWidth-j.clientWidth;j.scrollTo({left:st(U,0,R),behavior:O})},[m.length,L]);pe(()=>{const S=v.current;if(!S)return;const O=N=>{N.preventDefault(),x.current=!0,_.current={x:N.pageX-S.offsetLeft,scrollLeft:S.scrollLeft}},j=N=>{if(!x.current)return;if(_.current===null)throw new Error("[onMouseMove] scrollStart is null");const R=N.pageX-S.offsetLeft-_.current.x;if(!T&&Math.abs(R)<5)return;const B=_.current.scrollLeft-R;P(!0),requestAnimationFrame(()=>{S.scrollLeft=B})},Y=()=>{x.current&&(x.current=!1,requestAnimationFrame(()=>{P(!1)}))};return S.addEventListener("mousedown",O),document.addEventListener("mousemove",j),document.addEventListener("mouseleave",Y),document.addEventListener("mouseup",Y),document.addEventListener("contextmenu",Y),()=>{S.removeEventListener("mousedown",O),document.removeEventListener("mousemove",j),document.removeEventListener("mouseleave",Y),document.removeEventListener("mouseup",Y),document.removeEventListener("contextmenu",Y)}},[T]);const k=Ce(d);pe(()=>{v.current&&(H(d,"smooth"),k.current=d)},[d,H]),pe(()=>{v.current&&H(k.current,"instant")},[H,l,h,M]);const W=S=>{T||(o&&S===m.length-1&&d===0?f():o&&S===0&&d===m.length-1?i():C(S),I())};return c("div",{ref:v,className:ce("relative w-full overflow-x-auto no-scrollbar",T?"cursor-grab":"cursor-grabbing",e),children:c("div",{className:ce("flex h-10 w-fit gap-1 small:h-12 small:gap-2",h&&"large:h-20 large:gap-4",t),children:m.map((S,O)=>c(Xe,{children:[E.includes(O)&&c("div",{className:"my-2",children:c(eo,{color:s&&!l?"neutral":"background",orientation:"vertical"})}),c("div",{className:ce("relative h-full overflow-hidden rounded-gallery transition-radius",!T&&"cursor-pointer","after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-all",O===d?"after:opacity-100":"after:opacity-0 hover:after:opacity-70"),style:r,onClick:()=>W(O),children:c(ka,{item:S})})]},O))})})},ro=e=>1-Math.pow(1-e,2),Ia=({Media:e,itemIndex:t})=>{const{setItemInteraction:n}=tt();return pe(()=>{n(t,"ready")},[t,n]),e},no=(e,t)=>Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2),Pa=({onlyPreload:e,...t})=>{const{zoom:n,isZooming:o,setZoom:s}=tt(),l=Ce(null),p=Ce(null),r=X(x=>{if(!p.current)throw new Error(`[${x??"getTransformElementOrThrow"}] transformElementRef.current is null`);return p.current},[]),m=Ce(!1),h=Ce(null),M=Ce(new Map),d=Ce({x:0,y:0,scale:1}),f=Ce(null),i=X(x=>{const _=r("setTransformStyle"),{x:T,y:P,scale:H}={...d.current,...x},k=st(H,1,_t),W=_.clientWidth,S=_.clientHeight,O=W*k,j=S*k,Y=st(T,-(O-W),0),N=st(P,-(j-S),0);d.current={x:Y,y:N,scale:k},_.style.transform=`translate(${Y}px, ${N}px) scale(${k})`},[r]),C=X((x,_)=>{const{x:T,y:P,scale:H}=d.current,{x:k,y:W,scale:S}={...d.current,...x};f.current&&(cancelAnimationFrame(f.current),f.current=null);const O=()=>{i({x:k,y:W,scale:S}),s(S)},j=Math.abs(k-T)<1&&Math.abs(W-P)<1&&Math.abs(S-H)<.005;if(!_||j){O();return}const Y=new Date().getTime(),N=()=>{const U=()=>{const B=new Date().getTime()-Y;if(B>=_){O(),f.current=null;return}const J=Math.min(B/_,1),me=ro(J),we=Gt(T,k,me),Ie=Gt(P,W,me),oe=Gt(H,S,me);i({x:we,y:Ie,scale:oe}),N()};f.current=requestAnimationFrame(U)};N()},[i,s]),I=X((x,_)=>{let{x:T,y:P}=d.current;x.x&&(T+=x.x),x.y&&(P+=x.y),C({x:T,y:P},_)},[C]),E=X((x,_,T)=>{const P=d.current.scale,H=st(x,1,_t),k=H/P,{x:W,y:S}=d.current,{x:O,y:j}=_,Y=-W+O,N=-S+j,U=Y*k,R=N*k,B=U-O,J=R-j,me=-B,we=-J;C({x:me,y:we,scale:H},T)},[C]),v=X(x=>{const _=r("shiftZoomFromButton"),T=_.clientWidth,P=_.clientHeight;E(x,{x:T/2,y:P/2},200)},[r,E]),L=X((x,_,T)=>{const{scale:P}=d.current;E(P+x,_,T)},[E]);return pe(()=>{e||p.current&&v(n)},[e,v,n]),pe(()=>{if(e||!o)return;const x=p.current;if(!x)return;const _=H=>{H.preventDefault(),H.stopPropagation(),m.current=!0,h.current={x:H.clientX,y:H.clientY}},T=H=>{if(!m.current)return;if(!h.current)throw new Error("mouseStartXY.current is null");H.stopPropagation();const k=H.clientX-h.current.x,W=H.clientY-h.current.y;I({x:k,y:W}),h.current={x:H.clientX,y:H.clientY}},P=()=>{m.current=!1};return x.addEventListener("mousedown",_),document.addEventListener("mousemove",T),document.addEventListener("mouseleave",P),document.addEventListener("mouseup",P),document.addEventListener("contextmenu",P),()=>{x.removeEventListener("mousedown",_),document.removeEventListener("mousemove",T),document.removeEventListener("mouseleave",P),document.removeEventListener("mouseup",P),document.removeEventListener("contextmenu",P)}},[o,I,e]),pe(()=>{if(e)return;const x=l.current;if(!x)return;const _=T=>{const{ctrlKey:P,clientX:H,clientY:k,deltaX:W,deltaY:S}=T;if(P){if(!o&&S>=0)return;const{left:O,top:j}=x.getBoundingClientRect(),Y=H-O,N=k-j;L(-.01*S,{x:Y,y:N})}else{if(!o)return;I({x:-2*W,y:-2*S})}T.preventDefault()};return x.addEventListener("wheel",_),()=>{x.removeEventListener("wheel",_)}},[o,I,L,e]),pe(()=>{const x=l.current,_=p.current;if(!x||!_)return;const T=M.current,P=W=>{for(let S=0;S<W.changedTouches.length;S++){const O=W.changedTouches[S];T.set(O.identifier,O)}},H=W=>{for(let S=0;S<W.changedTouches.length;S++){const O=W.changedTouches[S];T.delete(O.identifier)}},k=W=>{const S=W.touches.length;if(S===1){if(!o)return;W.preventDefault();const O=W.touches[0],j=T.get(O.identifier);if(!j)throw new Error("touchStart is null");const Y=O.clientX-j.clientX,N=O.clientY-j.clientY;I({x:Y,y:N}),T.set(O.identifier,O)}else if(S===2){W.preventDefault();const[O,j]=W.touches,Y=T.get(O.identifier),N=T.get(j.identifier);if(!Y||!N)throw new Error("initialTouch1 or initialTouch2 is null");const U=no(Y,N),B=no(O,j)/U,{left:J,top:me}=x.getBoundingClientRect();L(B-1,{x:(O.clientX+j.clientX)/2-J,y:(O.clientY+j.clientY)/2-me}),T.set(O.identifier,O),T.set(j.identifier,j)}};return _.addEventListener("touchstart",P),_.addEventListener("touchmove",k),_.addEventListener("touchend",H),_.addEventListener("touchcancel",H),()=>{_.removeEventListener("touchstart",P),_.removeEventListener("touchmove",k),_.removeEventListener("touchend",H),_.removeEventListener("touchcancel",H)}},[o,I,L]),c("div",{ref:l,className:`relative size-full overflow-hidden ${o?"z-zoomed-image cursor-move":""}`,children:c("div",{ref:p,className:"origin-top-left",children:c(Tt,{...t,imgInPlayerWidthRatio:e?1:n})})})},Sa=({hotspot:e})=>{const{title:t,icon:n,description:o,position:s,detail:l}=e,{getIconConfig:p}=Ot(),r=n?p(n):void 0,{extendMode:m,setShownDetails:h}=tt(),M=!!l,d=l?.type==="image",f=!!t||!!o,i=d?c(Kn,{className:"size-4"}):c("div",{className:"size-1"}),C=()=>{d&&h({src:l.src,title:t,text:o})};return c("div",{className:ce("group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",M?"cursor-pointer":"cursor-help"),style:{top:`${100*e.position.y}%`,left:`${100*e.position.x}%`},onClick:C,children:[c("div",{className:"relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",children:[c("div",{className:"pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"}),c("div",{className:"p-1",children:r?.Icon?c("div",{className:"size-4",children:r.Icon}):i})]}),!d&&f&&c("div",{className:ce("absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",m&&"large:max-w-56",s.y<.55?"-top-1":"-bottom-1",s.x<.55?"-left-1 pl-6 small:pl-8":"-right-1 pr-4 small:pr-6","pointer-events-none opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"),children:c("div",{className:"space-y-1 text-pretty",children:[t&&c("div",{className:"text-sm font-semibold small:text-base small:font-bold",children:t}),o&&c("div",{className:"text-xs text-foreground/65 small:text-sm",children:o})]})})]})},Na=({hotspot:e})=>{const{detail:t}=e,n=c(Sa,{hotspot:e});switch(t?.type){case"link":case"pdf":return c("a",{href:t.src,target:"_blank",rel:"noreferrer",children:n});default:return n}},oo=({hotspots:e,itemIndex:t,className:n,onLoad:o,...s})=>{const{isShowingDetails:l,showHotspots:p,setItemInteraction:r}=tt();return c("div",{className:ce("relative size-full overflow-hidden",n),children:c("div",{className:ce("size-full duration-details",l?"scale-105":"scale-100"),children:[c(Pa,{className:"size-full object-cover",onLoad:m=>{t!==void 0&&r(t,"ready"),o?.(m)},...s}),p&&e?.map((m,h)=>c(Na,{hotspot:m},h))]})})};window.libpannellum=function(e,t,n){function o(M){var d=t.createElement("canvas");d.style.width=d.style.height="100%",M.appendChild(d);var f,i,C,I,E,v,L,x,_,T,P,H,k,W,S,O;this.init=function(g,b,le,ne,q,y,Q,ee){if(b===n&&(b="equirectangular"),b!="equirectangular"&&b!="cubemap"&&b!="multires")throw console.log("Error: invalid image type specified!"),{type:"config error"};if(T=b,_=g,P=le,O=ee||{},f){if(C&&(i.detachShader(f,C),i.deleteShader(C)),I&&(i.detachShader(f,I),i.deleteShader(I)),i.bindBuffer(i.ARRAY_BUFFER,null),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null),f.texture&&i.deleteTexture(f.texture),f.nodeCache)for(var he=0;he<f.nodeCache.length;he++)i.deleteTexture(f.nodeCache[he].texture);i.deleteProgram(f),f=n}x=n;var ae,Se=!1,ke;if(T=="cubemap")for(ae=0;ae<6;ae++)_[ae].width>0?(ke===n&&(ke=_[ae].width),ke!=_[ae].width&&console.log("Cube faces have inconsistent widths: "+ke+" vs. "+_[ae].width)):Se=!0;function Be(Oe){if(Se){var V=Oe*Oe*4,Ee=new Uint8ClampedArray(V),_e=ee.backgroundColor?ee.backgroundColor:[0,0,0];_e[0]*=255,_e[1]*=255,_e[2]*=255;for(var ue=0;ue<V;ue++)Ee[ue++]=_e[0],Ee[ue++]=_e[1],Ee[ue++]=_e[2];var Me=new ImageData(Ee,Oe,Oe);for(ae=0;ae<6;ae++)_[ae].width==0&&(_[ae]=Me)}}if(T=="cubemap"&&ke&ke-1&&(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 9_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 10_/)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))||(i||(i=d.getContext("experimental-webgl",{alpha:!1,depth:!1})),i&&i.getError()==1286&&Ve()),!i&&(T=="multires"&&_.hasOwnProperty("fallbackPath")||T=="cubemap")&&("WebkitAppearance"in t.documentElement.style||navigator.userAgent.match(/Trident.*rv[ :]*11\./)||navigator.appVersion.indexOf("MSIE 10")!==-1)){v&&M.removeChild(v),v=t.createElement("div"),v.className="pnlm-world";var Ke;_.basePath?Ke=_.basePath+_.fallbackPath:Ke=_.fallbackPath;var $e=["f","r","b","l","u","d"],G=0,ie=function(){var V=t.createElement("canvas");V.className="pnlm-face pnlm-"+$e[this.side]+"face",v.appendChild(V);var Ee=V.getContext("2d");V.style.width=this.width+4+"px",V.style.height=this.height+4+"px",V.width=this.width+4,V.height=this.height+4,Ee.drawImage(this,2,2);var _e=Ee.getImageData(0,0,V.width,V.height),ue=_e.data,Me,K;for(Me=2;Me<V.width-2;Me++)for(K=0;K<4;K++)ue[(Me+V.width)*4+K]=ue[(Me+V.width*2)*4+K],ue[(Me+V.width*(V.height-2))*4+K]=ue[(Me+V.width*(V.height-3))*4+K];for(Me=2;Me<V.height-2;Me++)for(K=0;K<4;K++)ue[(Me*V.width+1)*4+K]=ue[(Me*V.width+2)*4+K],ue[((Me+1)*V.width-2)*4+K]=ue[((Me+1)*V.width-3)*4+K];for(K=0;K<4;K++)ue[(V.width+1)*4+K]=ue[(V.width*2+2)*4+K],ue[(V.width*2-2)*4+K]=ue[(V.width*3-3)*4+K],ue[(V.width*(V.height-2)+1)*4+K]=ue[(V.width*(V.height-3)+2)*4+K],ue[(V.width*(V.height-1)-2)*4+K]=ue[(V.width*(V.height-2)-3)*4+K];for(Me=1;Me<V.width-1;Me++)for(K=0;K<4;K++)ue[Me*4+K]=ue[(Me+V.width)*4+K],ue[(Me+V.width*(V.height-1))*4+K]=ue[(Me+V.width*(V.height-2))*4+K];for(Me=1;Me<V.height-1;Me++)for(K=0;K<4;K++)ue[Me*V.width*4+K]=ue[(Me*V.width+1)*4+K],ue[((Me+1)*V.width-1)*4+K]=ue[((Me+1)*V.width-2)*4+K];for(K=0;K<4;K++)ue[K]=ue[(V.width+1)*4+K],ue[(V.width-1)*4+K]=ue[(V.width*2-2)*4+K],ue[V.width*(V.height-1)*4+K]=ue[(V.width*(V.height-2)+1)*4+K],ue[(V.width*V.height-1)*4+K]=ue[(V.width*(V.height-1)-2)*4+K];Ee.putImageData(_e,0,0),ge.call(this)},ge=function(){this.width>0?(E===n&&(E=this.width),E!=this.width&&console.log("Fallback faces have inconsistent widths: "+E+" vs. "+this.width)):Se=!0,G++,G==6&&(E=this.width,M.appendChild(v),Q())};for(Se=!1,ae=0;ae<6;ae++){var ye=new Image;ye.crossOrigin=O.crossOrigin?O.crossOrigin:"anonymous",ye.side=ae,ye.onload=ie,ye.onerror=ge,T=="multires"?ye.src=encodeURI(Ke.replace("%s",$e[ae])+"."+_.extension):ye.src=encodeURI(_[ae].src)}Be(E);return}else if(!i)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"};T=="cubemap"&&Be(ke),_.basePath?_.fullpath=_.basePath+_.path:_.fullpath=_.path,_.invTileResolution=1/_.tileResolution;var Ne=B();for(L=[],ae=0;ae<6;ae++)L[ae]=Ne.slice(ae*12,ae*12+12),Ne=B();var De=0,We=0;if(T=="equirectangular"?(De=Math.max(_.width,_.height),We=i.getParameter(i.MAX_TEXTURE_SIZE)):T=="cubemap"&&(De=ke,We=i.getParameter(i.MAX_CUBE_MAP_TEXTURE_SIZE)),De>We)throw console.log("Error: The image is too big; it's "+De+"px wide, but this device's maximum supported size is "+We+"px."),{type:"webgl size error",width:De,maxWidth:We};ee!==n&&(ee.horizonPitch!==n||ee.horizonRoll!==n)&&(x=[ee.horizonPitch==n?0:ee.horizonPitch,ee.horizonRoll==n?0:ee.horizonRoll]);var Fe=i.TEXTURE_2D;i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),C=i.createShader(i.VERTEX_SHADER);var Je=s;T=="multires"&&(Je=l),i.shaderSource(C,Je),i.compileShader(C),I=i.createShader(i.FRAGMENT_SHADER);var Ye=m;T=="cubemap"?(Fe=i.TEXTURE_CUBE_MAP,Ye=r):T=="multires"&&(Ye=h),i.shaderSource(I,Ye),i.compileShader(I),f=i.createProgram(),i.attachShader(f,C),i.attachShader(f,I),i.linkProgram(f),i.getShaderParameter(C,i.COMPILE_STATUS)||console.log(i.getShaderInfoLog(C)),i.getShaderParameter(I,i.COMPILE_STATUS)||console.log(i.getShaderInfoLog(I)),i.getProgramParameter(f,i.LINK_STATUS)||console.log(i.getProgramInfoLog(f)),i.useProgram(f),f.drawInProgress=!1;var Te=ee.backgroundColor?ee.backgroundColor:[0,0,0];i.clearColor(Te[0],Te[1],Te[2],1),i.clear(i.COLOR_BUFFER_BIT),f.texCoordLocation=i.getAttribLocation(f,"a_texCoord"),i.enableVertexAttribArray(f.texCoordLocation),T!="multires"?(H||(H=i.createBuffer()),i.bindBuffer(i.ARRAY_BUFFER,H),i.bufferData(i.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),i.STATIC_DRAW),i.vertexAttribPointer(f.texCoordLocation,2,i.FLOAT,!1,0,0),f.aspectRatio=i.getUniformLocation(f,"u_aspectRatio"),i.uniform1f(f.aspectRatio,i.drawingBufferWidth/i.drawingBufferHeight),f.psi=i.getUniformLocation(f,"u_psi"),f.theta=i.getUniformLocation(f,"u_theta"),f.f=i.getUniformLocation(f,"u_f"),f.h=i.getUniformLocation(f,"u_h"),f.v=i.getUniformLocation(f,"u_v"),f.vo=i.getUniformLocation(f,"u_vo"),f.rot=i.getUniformLocation(f,"u_rot"),i.uniform1f(f.h,ne/(Math.PI*2)),i.uniform1f(f.v,q/Math.PI),i.uniform1f(f.vo,y/Math.PI*2),T=="equirectangular"&&(f.backgroundColor=i.getUniformLocation(f,"u_backgroundColor"),i.uniform4fv(f.backgroundColor,Te.concat([1]))),f.texture=i.createTexture(),i.bindTexture(Fe,f.texture),T=="cubemap"?(i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X,0,i.RGB,i.RGB,i.UNSIGNED_BYTE,_[1]),i.texImage2D(i.TEXTURE_CUBE_MAP_NEGATIVE_X,0,i.RGB,i.RGB,i.UNSIGNED_BYTE,_[3]),i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_Y,0,i.RGB,i.RGB,i.UNSIGNED_BYTE,_[4]),i.texImage2D(i.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,i.RGB,i.RGB,i.UNSIGNED_BYTE,_[5]),i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_Z,0,i.RGB,i.RGB,i.UNSIGNED_BYTE,_[0]),i.texImage2D(i.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,i.RGB,i.RGB,i.UNSIGNED_BYTE,_[2])):i.texImage2D(Fe,0,i.RGB,i.RGB,i.UNSIGNED_BYTE,_),i.texParameteri(Fe,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(Fe,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(Fe,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(Fe,i.TEXTURE_MAG_FILTER,i.LINEAR)):(f.vertPosLocation=i.getAttribLocation(f,"a_vertCoord"),i.enableVertexAttribArray(f.vertPosLocation),k||(k=i.createBuffer()),W||(W=i.createBuffer()),S||(S=i.createBuffer()),i.bindBuffer(i.ARRAY_BUFFER,W),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),i.STATIC_DRAW),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,S),i.bufferData(i.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),i.STATIC_DRAW),f.perspUniform=i.getUniformLocation(f,"u_perspMatrix"),f.cubeUniform=i.getUniformLocation(f,"u_cubeMatrix"),f.level=-1,f.currentNodes=[],f.nodeCache=[],f.nodeCacheTimestamp=0);var Ue=i.getError();if(Ue!==0)throw console.log("Error: Something went wrong with WebGL!",Ue),{type:"webgl error"};Q()},this.destroy=function(){if(M!==n&&(d!==n&&M.contains(d)&&M.removeChild(d),v!==n&&M.contains(v)&&M.removeChild(v)),i){var g=i.getExtension("WEBGL_lose_context");g&&g.loseContext()}},this.resize=function(){var g=e.devicePixelRatio||1;d.width=d.clientWidth*g,d.height=d.clientHeight*g,i&&(i.getError()==1286&&Ve(),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),T!="multires"&&i.uniform1f(f.aspectRatio,d.clientWidth/d.clientHeight))},this.resize(),this.setPose=function(g,b){x=[g,b]},this.render=function(g,b,le,ne){var q,y,Q,ee=0;if(ne===n&&(ne={}),ne.roll&&(ee=ne.roll),x!==n){var he=x[0],ae=x[1],Se=g,ke=b,Be=Math.cos(ae)*Math.sin(g)*Math.sin(he)+Math.cos(g)*(Math.cos(he)*Math.cos(b)+Math.sin(ae)*Math.sin(he)*Math.sin(b)),Ke=-Math.sin(g)*Math.sin(ae)+Math.cos(g)*Math.cos(ae)*Math.sin(b),$e=Math.cos(ae)*Math.cos(he)*Math.sin(g)+Math.cos(g)*(-Math.cos(b)*Math.sin(he)+Math.cos(he)*Math.sin(ae)*Math.sin(b));g=Math.asin(Math.max(Math.min($e,1),-1)),b=Math.atan2(Ke,Be);var G=[Math.cos(Se)*(Math.sin(ae)*Math.sin(he)*Math.cos(ke)-Math.cos(he)*Math.sin(ke)),Math.cos(Se)*Math.cos(ae)*Math.cos(ke),Math.cos(Se)*(Math.cos(he)*Math.sin(ae)*Math.cos(ke)+Math.sin(ke)*Math.sin(he))],ie=[-Math.cos(g)*Math.sin(b),Math.cos(g)*Math.cos(b)],ge=Math.acos(Math.max(Math.min((G[0]*ie[0]+G[1]*ie[1])/(Math.sqrt(G[0]*G[0]+G[1]*G[1]+G[2]*G[2])*Math.sqrt(ie[0]*ie[0]+ie[1]*ie[1])),1),-1));G[2]<0&&(ge=2*Math.PI-ge),ee+=ge}if(!i&&(T=="multires"||T=="cubemap")){Q=E/2;var ye={f:"translate3d(-"+(Q+2)+"px, -"+(Q+2)+"px, -"+Q+"px)",b:"translate3d("+(Q+2)+"px, -"+(Q+2)+"px, "+Q+"px) rotateX(180deg) rotateZ(180deg)",u:"translate3d(-"+(Q+2)+"px, -"+Q+"px, "+(Q+2)+"px) rotateX(270deg)",d:"translate3d(-"+(Q+2)+"px, "+Q+"px, -"+(Q+2)+"px) rotateX(90deg)",l:"translate3d(-"+Q+"px, -"+(Q+2)+"px, "+(Q+2)+"px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",r:"translate3d("+Q+"px, -"+(Q+2)+"px, -"+(Q+2)+"px) rotateY(270deg)"};q=1/Math.tan(le/2);var Ne=q*d.clientWidth/2+"px",De="perspective("+Ne+") translateZ("+Ne+") rotateX("+g+"rad) rotateY("+b+"rad) ",We=Object.keys(ye);for(y=0;y<6;y++){var Fe=v.querySelector(".pnlm-"+We[y]+"face");Fe&&(Fe.style.webkitTransform=De+ye[We[y]],Fe.style.transform=De+ye[We[y]])}return}if(T!="multires"){var Je=2*Math.atan(Math.tan(le*.5)/(i.drawingBufferWidth/i.drawingBufferHeight));q=1/Math.tan(Je*.5),i.uniform1f(f.psi,b),i.uniform1f(f.theta,g),i.uniform1f(f.rot,ee),i.uniform1f(f.f,q),P===!0&&T=="equirectangular"&&(i.bindTexture(i.TEXTURE_2D,f.texture),i.texImage2D(i.TEXTURE_2D,0,i.RGB,i.RGB,i.UNSIGNED_BYTE,_)),i.drawArrays(i.TRIANGLES,0,6)}else{var Ye=oe(le,i.drawingBufferWidth/i.drawingBufferHeight,.1,100);ze(le);var Te=J();Te=me(Te,-ee,"z"),Te=me(Te,-g,"x"),Te=me(Te,b,"y"),Te=we(Te),i.uniformMatrix4fv(f.perspUniform,!1,new Float32Array(Ie(Ye))),i.uniformMatrix4fv(f.cubeUniform,!1,new Float32Array(Ie(Te)));var Ue=Z(Ye,Te);if(f.nodeCache.sort(j),f.nodeCache.length>200&&f.nodeCache.length>f.currentNodes.length+50)for(var Oe=f.nodeCache.splice(200,f.nodeCache.length-200),y=0;y<Oe.length;y++)i.deleteTexture(Oe[y].texture);f.currentNodes=[];var V=["f","b","u","d","l","r"];for(Q=0;Q<6;Q++){var Ee=new U(L[Q],V[Q],1,0,0,_.fullpath);R(Ue,Ee,g,b)}for(f.currentNodes.sort(Y),y=$.length-1;y>=0;y--)f.currentNodes.indexOf($[y].node)===-1&&($[y].node.textureLoad=!1,$.splice(y,1));if($.length===0)for(y=0;y<f.currentNodes.length;y++){var _e=f.currentNodes[y];if(!_e.texture&&!_e.textureLoad){_e.textureLoad=!0,setTimeout(F,0,_e);break}}N()}if(ne.returnImage!==n)return d.toDataURL("image/png")},this.isLoading=function(){if(i&&T=="multires"){for(var g=0;g<f.currentNodes.length;g++)if(!f.currentNodes[g].textureLoaded)return!0}return!1},this.getCanvas=function(){return d};function j(g,b){return g.level==1&&b.level!=1?-1:b.level==1&&g.level!=1?1:b.timestamp-g.timestamp}function Y(g,b){return g.level!=b.level?g.level-b.level:g.diff-b.diff}function N(){if(!f.drawInProgress){f.drawInProgress=!0,i.clear(i.COLOR_BUFFER_BIT);for(var g=0;g<f.currentNodes.length;g++)f.currentNodes[g].textureLoaded>1&&(i.bindBuffer(i.ARRAY_BUFFER,k),i.bufferData(i.ARRAY_BUFFER,new Float32Array(f.currentNodes[g].vertices),i.STATIC_DRAW),i.vertexAttribPointer(f.vertPosLocation,3,i.FLOAT,!1,0,0),i.bindBuffer(i.ARRAY_BUFFER,W),i.vertexAttribPointer(f.texCoordLocation,2,i.FLOAT,!1,0,0),i.bindTexture(i.TEXTURE_2D,f.currentNodes[g].texture),i.drawElements(i.TRIANGLES,6,i.UNSIGNED_SHORT,0));f.drawInProgress=!1}}function U(g,b,le,ne,q,y){this.vertices=g,this.side=b,this.level=le,this.x=ne,this.y=q,this.path=y.replace("%s",b).replace("%l",le).replace("%x",ne).replace("%y",q)}function R(g,b,le,ne,q){if(qe(g,b.vertices)){var y=b.vertices,Q=y[0]+y[3]+y[6]+y[9],ee=y[1]+y[4]+y[7]+y[10],he=y[2]+y[5]+y[8]+y[11],ae=Math.sqrt(Q*Q+ee*ee+he*he),Se=Math.asin(he/ae),ke=Math.atan2(ee,Q),Be=ke-ne;Be+=Be>Math.PI?-2*Math.PI:Be<-Math.PI?2*Math.PI:0,Be=Math.abs(Be),b.diff=Math.acos(Math.sin(le)*Math.sin(Se)+Math.cos(le)*Math.cos(Se)*Math.cos(Be));for(var Ke=!1,$e=0;$e<f.nodeCache.length;$e++)if(f.nodeCache[$e].path==b.path){Ke=!0,f.nodeCache[$e].timestamp=f.nodeCacheTimestamp++,f.nodeCache[$e].diff=b.diff,f.currentNodes.push(f.nodeCache[$e]);break}if(Ke||(b.timestamp=f.nodeCacheTimestamp++,f.currentNodes.push(b),f.nodeCache.push(b)),b.level<f.level){var G=_.cubeResolution*Math.pow(2,b.level-_.maxLevel),ie=Math.ceil(G*_.invTileResolution)-1,ge=G%_.tileResolution*2,ye=G*2%_.tileResolution;ye===0&&(ye=_.tileResolution),ge===0&&(ge=_.tileResolution*2);var Ne=.5;(b.x==ie||b.y==ie)&&(Ne=1-_.tileResolution/(_.tileResolution+ye));var De=1-Ne,We=[],Fe,Je,Ye=Ne,Te=Ne,Ue=Ne,Oe=De,V=De,Ee=De;ye<_.tileResolution&&(b.x==ie&&b.y!=ie?(Te=.5,V=.5,(b.side=="d"||b.side=="u")&&(Ue=.5,Ee=.5)):b.x!=ie&&b.y==ie&&(Ye=.5,Oe=.5,(b.side=="l"||b.side=="r")&&(Ue=.5,Ee=.5))),ge<=_.tileResolution&&(b.x==ie&&(Ye=0,Oe=1,(b.side=="l"||b.side=="r")&&(Ue=0,Ee=1)),b.y==ie&&(Te=0,V=1,(b.side=="d"||b.side=="u")&&(Ue=0,Ee=1))),Fe=[y[0],y[1],y[2],y[0]*Ye+y[3]*Oe,y[1]*Ne+y[4]*De,y[2]*Ue+y[5]*Ee,y[0]*Ye+y[6]*Oe,y[1]*Te+y[7]*V,y[2]*Ue+y[8]*Ee,y[0]*Ne+y[9]*De,y[1]*Te+y[10]*V,y[2]*Ue+y[11]*Ee],Je=new U(Fe,b.side,b.level+1,b.x*2,b.y*2,_.fullpath),We.push(Je),b.x==ie&&ge<=_.tileResolution||(Fe=[y[0]*Ye+y[3]*Oe,y[1]*Ne+y[4]*De,y[2]*Ue+y[5]*Ee,y[3],y[4],y[5],y[3]*Ne+y[6]*De,y[4]*Te+y[7]*V,y[5]*Ue+y[8]*Ee,y[0]*Ye+y[6]*Oe,y[1]*Te+y[7]*V,y[2]*Ue+y[8]*Ee],Je=new U(Fe,b.side,b.level+1,b.x*2+1,b.y*2,_.fullpath),We.push(Je)),!(b.x==ie&&ge<=_.tileResolution)&&!(b.y==ie&&ge<=_.tileResolution)&&(Fe=[y[0]*Ye+y[6]*Oe,y[1]*Te+y[7]*V,y[2]*Ue+y[8]*Ee,y[3]*Ne+y[6]*De,y[4]*Te+y[7]*V,y[5]*Ue+y[8]*Ee,y[6],y[7],y[8],y[9]*Ye+y[6]*Oe,y[10]*Ne+y[7]*De,y[11]*Ue+y[8]*Ee],Je=new U(Fe,b.side,b.level+1,b.x*2+1,b.y*2+1,_.fullpath),We.push(Je)),b.y==ie&&ge<=_.tileResolution||(Fe=[y[0]*Ne+y[9]*De,y[1]*Te+y[10]*V,y[2]*Ue+y[11]*Ee,y[0]*Ye+y[6]*Oe,y[1]*Te+y[7]*V,y[2]*Ue+y[8]*Ee,y[9]*Ye+y[6]*Oe,y[10]*Ne+y[7]*De,y[11]*Ue+y[8]*Ee,y[9],y[10],y[11]],Je=new U(Fe,b.side,b.level+1,b.x*2,b.y*2+1,_.fullpath),We.push(Je));for(var _e=0;_e<We.length;_e++)R(g,We[_e],le,ne)}}}function B(){return[-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,-1,1,1,1,1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,1,1,-1,1,1,-1,-1]}function J(){return[1,0,0,0,1,0,0,0,1]}function me(g,b,le){var ne=Math.sin(b),q=Math.cos(b);if(le=="x")return[g[0],q*g[1]+ne*g[2],q*g[2]-ne*g[1],g[3],q*g[4]+ne*g[5],q*g[5]-ne*g[4],g[6],q*g[7]+ne*g[8],q*g[8]-ne*g[7]];if(le=="y")return[q*g[0]-ne*g[2],g[1],q*g[2]+ne*g[0],q*g[3]-ne*g[5],g[4],q*g[5]+ne*g[3],q*g[6]-ne*g[8],g[7],q*g[8]+ne*g[6]];if(le=="z")return[q*g[0]+ne*g[1],q*g[1]-ne*g[0],g[2],q*g[3]+ne*g[4],q*g[4]-ne*g[3],g[5],q*g[6]+ne*g[7],q*g[7]-ne*g[6],g[8]]}function we(g){return[g[0],g[1],g[2],0,g[3],g[4],g[5],0,g[6],g[7],g[8],0,0,0,0,1]}function Ie(g){return[g[0],g[4],g[8],g[12],g[1],g[5],g[9],g[13],g[2],g[6],g[10],g[14],g[3],g[7],g[11],g[15]]}function oe(g,b,le,ne){var q=2*Math.atan(Math.tan(g/2)*i.drawingBufferHeight/i.drawingBufferWidth),y=1/Math.tan(q/2);return[y/b,0,0,0,0,y,0,0,0,0,(ne+le)/(le-ne),2*ne*le/(le-ne),0,0,-1,0]}function re(g,b){i.bindTexture(i.TEXTURE_2D,b),i.texImage2D(i.TEXTURE_2D,0,i.RGB,i.RGB,i.UNSIGNED_BYTE,g),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.bindTexture(i.TEXTURE_2D,null)}var $=[],ve=function(){var g=4,b={},le;function ne(){var ee=this;this.texture=this.callback=null,this.image=new Image,this.image.crossOrigin=le||"anonymous";var he=function(){ee.image.width>0&&ee.image.height>0?(re(ee.image,ee.texture),ee.callback(ee.texture,!0)):ee.callback(ee.texture,!1),y(ee)};this.image.addEventListener("load",he),this.image.addEventListener("error",he)}ne.prototype.loadTexture=function(ee,he,ae){this.texture=he,this.callback=ae,this.image.src=ee};function q(ee,he,ae,Se){this.node=ee,this.src=he,this.texture=ae,this.callback=Se}function y(ee){if($.length){var he=$.shift();ee.loadTexture(he.src,he.texture,he.callback)}else b[g++]=ee}for(var Q=0;Q<g;Q++)b[Q]=new ne;return function(ee,he,ae,Se){le=Se;var ke=i.createTexture();return g?b[--g].loadTexture(he,ke,ae):$.push(new q(ee,he,ke,ae)),ke}}();function F(g){ve(g,encodeURI(g.path+"."+_.extension),function(b,le){g.texture=b,g.textureLoaded=le?2:1},O.crossOrigin)}function ze(g){for(var b=1;b<_.maxLevel&&i.drawingBufferWidth>_.tileResolution*Math.pow(2,b-1)*Math.tan(g/2)*.707;)b++;f.level=b}function Z(g,b){return[g[0]*b[0],g[0]*b[1],g[0]*b[2],0,g[5]*b[4],g[5]*b[5],g[5]*b[6],0,g[10]*b[8],g[10]*b[9],g[10]*b[10],g[11],-b[8],-b[9],-b[10],0]}function Pe(g,b){return[g[0]*b[0]+g[1]*b[1]+g[2]*b[2],g[4]*b[0]+g[5]*b[1]+g[6]*b[2],g[11]+g[8]*b[0]+g[9]*b[1]+g[10]*b[2],1/(g[12]*b[0]+g[13]*b[1]+g[14]*b[2])]}function Ge(g,b){var le=Pe(g,b),ne=le[0]*le[3],q=le[1]*le[3],y=le[2]*le[3],Q=[0,0,0];return ne<-1&&(Q[0]=-1),ne>1&&(Q[0]=1),q<-1&&(Q[1]=-1),q>1&&(Q[1]=1),(y<-1||y>1)&&(Q[2]=1),Q}function qe(g,b){var le=Ge(g,b.slice(0,3)),ne=Ge(g,b.slice(3,6)),q=Ge(g,b.slice(6,9)),y=Ge(g,b.slice(9,12)),Q=le[0]+ne[0]+q[0]+y[0];if(Q==-4||Q==4)return!1;var ee=le[1]+ne[1]+q[1]+y[1];if(ee==-4||ee==4)return!1;var he=le[2]+ne[2]+q[2]+y[2];return he!=4}function Ve(){console.log("Reducing canvas size due to error 1286!"),d.width=Math.round(d.width/2),d.height=Math.round(d.height/2)}}var s=["attribute vec2 a_texCoord;","varying vec2 v_texCoord;","void main() {","gl_Position = vec4(a_texCoord, 0.0, 1.0);","v_texCoord = a_texCoord;","}"].join(""),l=["attribute vec3 a_vertCoord;","attribute vec2 a_texCoord;","uniform mat4 u_cubeMatrix;","uniform mat4 u_perspMatrix;","varying mediump vec2 v_texCoord;","void main(void) {","gl_Position = u_perspMatrix * u_cubeMatrix * vec4(a_vertCoord, 1.0);","v_texCoord = a_texCoord;","}"].join(""),p=["precision mediump float;","uniform float u_aspectRatio;","uniform float u_psi;","uniform float u_theta;","uniform float u_f;","uniform float u_h;","uniform float u_v;","uniform float u_vo;","uniform float u_rot;","const float PI = 3.14159265358979323846264;","uniform sampler2D u_image;","uniform samplerCube u_imageCube;","varying vec2 v_texCoord;","uniform vec4 u_backgroundColor;","void main() {","float x = v_texCoord.x * u_aspectRatio;","float y = v_texCoord.y;","float sinrot = sin(u_rot);","float cosrot = cos(u_rot);","float rot_x = x * cosrot - y * sinrot;","float rot_y = x * sinrot + y * cosrot;","float sintheta = sin(u_theta);","float costheta = cos(u_theta);","float a = u_f * costheta - rot_y * sintheta;","float root = sqrt(rot_x * rot_x + a * a);","float lambda = atan(rot_x / root, a / root) + u_psi;","float phi = atan((rot_y * costheta + u_f * sintheta) / root);"].join(`
|
|
2
|
+
`),r=p+["float cosphi = cos(phi);","gl_FragColor = textureCube(u_imageCube, vec3(cosphi*sin(lambda), sin(phi), cosphi*cos(lambda)));","}"].join(`
|
|
3
|
+
`),m=p+["lambda = mod(lambda + PI, PI * 2.0) - PI;","vec2 coord = vec2(lambda / PI, phi / (PI / 2.0));","if(coord.x < -u_h || coord.x > u_h || coord.y < -u_v + u_vo || coord.y > u_v + u_vo)","gl_FragColor = u_backgroundColor;","else","gl_FragColor = texture2D(u_image, vec2((coord.x + u_h) / (u_h * 2.0), (-coord.y + u_v + u_vo) / (u_v * 2.0)));","}"].join(`
|
|
4
|
+
`),h=["varying mediump vec2 v_texCoord;","uniform sampler2D u_sampler;","void main(void) {","gl_FragColor = texture2D(u_sampler, v_texCoord);","}"].join("");return{renderer:function(d,f,i,C){return new o(d)}}}(window,document),window.pannellum=function(e,t,n){function o(s,l){var p=this,r,m,h,M=!1,d=Date.now(),f=0,i=0,C=-1,I=0,E=0,v=new Array(10),L=!1,x,_=!1,T=!1,P,H,k={yaw:0,pitch:0,hfov:0},W=!1,S=!1,O=0,j,Y=0,N,U,R={},B={},J=[],me=!1,we=!1,Ie={hfov:100,minHfov:50,maxHfov:120,pitch:0,minPitch:n,maxPitch:n,yaw:0,minYaw:-180,maxYaw:180,roll:0,haov:360,vaov:180,vOffset:0,autoRotate:!1,autoRotateInactivityDelay:-1,autoRotateStopDelay:n,type:"equirectangular",northOffset:0,showFullscreenCtrl:!0,dynamic:!1,doubleClickZoom:!0,keyboardZoom:!0,mouseZoom:!0,showZoomCtrl:!0,autoLoad:!1,showControls:!0,orientationOnByDefault:!1,hotSpotDebug:!1,backgroundColor:[0,0,0],avoidShowingBackground:!1,animationTimingFunction:V,draggable:!0,disableKeyboardCtrl:!1,crossOrigin:"anonymous",touchPanSpeedCoeffFactor:1,capturedKeyNumbers:[16,17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189]};Ie.strings={loadButtonLabel:"Click to<br>Load<br>Panorama",loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",fileAccessError:"The file %s could not be accessed.",malformedURLError:"There is something wrong with the panorama URL.",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",genericWebGLError:"Your browser does not have the necessary WebGL support to display this panorama.",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",unknownError:"Unknown error. Check developer console."},s=typeof s=="string"?t.getElementById(s):s,s.classList.add("pnlm-container"),s.tabIndex=0;var oe=t.createElement("div");oe.className="pnlm-ui",s.appendChild(oe);var re=t.createElement("div");re.className="pnlm-render-container",s.appendChild(re);var $=t.createElement("div");$.className="pnlm-dragfix",oe.appendChild($);var ve=t.createElement("span");ve.className="pnlm-about-msg",ve.innerHTML='<a href="https://pannellum.org/" target="_blank">Pannellum</a>',oe.appendChild(ve),$.addEventListener("contextmenu",Q);var F={},ze=t.createElement("div");ze.className="pnlm-sprite pnlm-hot-spot-debug-indicator",oe.appendChild(ze),F.container=t.createElement("div"),F.container.className="pnlm-panorama-info",F.title=t.createElement("div"),F.title.className="pnlm-title-box",F.container.appendChild(F.title),F.author=t.createElement("div"),F.author.className="pnlm-author-box",F.container.appendChild(F.author),oe.appendChild(F.container),F.load={},F.load.box=t.createElement("div"),F.load.box.className="pnlm-load-box",F.load.boxp=t.createElement("p"),F.load.box.appendChild(F.load.boxp),F.load.lbox=t.createElement("div"),F.load.lbox.className="pnlm-lbox",F.load.lbox.innerHTML='<div class="pnlm-loading"></div>',F.load.box.appendChild(F.load.lbox),F.load.lbar=t.createElement("div"),F.load.lbar.className="pnlm-lbar",F.load.lbarFill=t.createElement("div"),F.load.lbarFill.className="pnlm-lbar-fill",F.load.lbar.appendChild(F.load.lbarFill),F.load.box.appendChild(F.load.lbar),F.load.msg=t.createElement("p"),F.load.msg.className="pnlm-lmsg",F.load.box.appendChild(F.load.msg),oe.appendChild(F.load.box),F.errorMsg=t.createElement("div"),F.errorMsg.className="pnlm-error-msg pnlm-info-box",oe.appendChild(F.errorMsg);var Z={};Z.container=t.createElement("div"),Z.container.className="pnlm-controls-container",oe.appendChild(Z.container),Z.load=t.createElement("div"),Z.load.className="pnlm-load-button",Z.load.addEventListener("click",function(){Lr(),go()}),oe.appendChild(Z.load),Z.zoom=t.createElement("div"),Z.zoom.className="pnlm-zoom-controls pnlm-controls",Z.zoomIn=t.createElement("div"),Z.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control",Z.zoomIn.addEventListener("click",es),Z.zoom.appendChild(Z.zoomIn),Z.zoomOut=t.createElement("div"),Z.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control",Z.zoomOut.addEventListener("click",ts),Z.zoom.appendChild(Z.zoomOut),Z.container.appendChild(Z.zoom),Z.fullscreen=t.createElement("div"),Z.fullscreen.addEventListener("click",kr),Z.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control",(t.fullscreenEnabled||t.mozFullScreenEnabled||t.webkitFullscreenEnabled||t.msFullscreenEnabled)&&Z.container.appendChild(Z.fullscreen),Z.orientation=t.createElement("div"),Z.orientation.addEventListener("click",function(a){S?Ht():or()}),Z.orientation.addEventListener("mousedown",function(a){a.stopPropagation()}),Z.orientation.addEventListener("touchstart",function(a){a.stopPropagation()}),Z.orientation.addEventListener("pointerdown",function(a){a.stopPropagation()}),Z.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";var Pe,Ge=!1;function qe(a){e.removeEventListener("deviceorientation",qe),a&&a.alpha!==null&&a.beta!==null&&a.gamma!==null?(Z.container.appendChild(Z.orientation),Pe=!0,Ge&&or()):Pe=!1}e.DeviceOrientationEvent?e.addEventListener("deviceorientation",qe):Pe=!1;var Ve=t.createElement("div");Ve.className="pnlm-compass pnlm-controls pnlm-control",oe.appendChild(Ve),l.firstScene?rr(l.firstScene):l.default&&l.default.firstScene?rr(l.default.firstScene):rr(null),Lr(!0);function g(){var a=t.createElement("div");if(a.innerHTML="<!--[if lte IE 9]><i></i><![endif]-->",a.getElementsByTagName("i").length==1){q();return}N=r.hfov,U=r.pitch;var u,w;if(r.type=="cubemap"){for(P=[],u=0;u<6;u++)P.push(new Image),P[u].crossOrigin=r.crossOrigin;F.load.lbox.style.display="block",F.load.lbar.style.display="none"}else if(r.type=="multires"){var A=JSON.parse(JSON.stringify(r.multiRes));r.basePath&&r.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(r.multiRes.basePath)?A.basePath=r.basePath+r.multiRes.basePath:r.multiRes.basePath?A.basePath=r.multiRes.basePath:r.basePath&&(A.basePath=r.basePath),P=A}else if(r.dynamic===!0)P=r.panorama;else{if(r.panorama===n){q(r.strings.noPanoramaError);return}P=new Image}if(r.type=="cubemap"){var z=6,D=function(){z--,z===0&&le()},se=function(Le){var xe=t.createElement("a");xe.href=Le.target.src,xe.textContent=xe.href,q(r.strings.fileAccessError.replace("%s",xe.outerHTML))};for(u=0;u<P.length;u++)w=r.cubeMap[u],w=="null"?(console.log("Will use background instead of missing cubemap face "+u),D()):(r.basePath&&!b(w)&&(w=r.basePath+w),P[u].onload=D,P[u].onerror=se,P[u].src=yt(w))}else if(r.type=="multires")le();else if(w="",r.basePath&&(w=r.basePath),r.dynamic!==!0){w=b(r.panorama)?r.panorama:w+r.panorama,P.onload=function(){e.URL.revokeObjectURL(this.src),le()};var te=new XMLHttpRequest;te.onloadend=function(){if(te.status!=200){var de=t.createElement("a");de.href=w,de.textContent=de.href,q(r.strings.fileAccessError.replace("%s",de.outerHTML))}var Le=this.response;ne(Le),F.load.msg.innerHTML=""},te.onprogress=function(de){if(de.lengthComputable){var Le=de.loaded/de.total*100;F.load.lbarFill.style.width=Le+"%";var xe,Qe,je;de.total>1e6?(xe="MB",Qe=(de.loaded/1e6).toFixed(2),je=(de.total/1e6).toFixed(2)):de.total>1e3?(xe="kB",Qe=(de.loaded/1e3).toFixed(1),je=(de.total/1e3).toFixed(1)):(xe="B",Qe=de.loaded,je=de.total),F.load.msg.innerHTML=Qe+" / "+je+" "+xe}else F.load.lbox.style.display="block",F.load.lbar.style.display="none"};try{te.open("GET",w,!0)}catch{q(r.strings.malformedURLError)}te.responseType="blob",te.setRequestHeader("Accept","image/*,*/*;q=0.9"),te.withCredentials=r.crossOrigin==="use-credentials",te.send()}r.draggable&&oe.classList.add("pnlm-grab"),oe.classList.remove("pnlm-grabbing")}function b(a){return new RegExp("^(?:[a-z]+:)?//","i").test(a)||a[0]=="/"||a.slice(0,5)=="blob:"}function le(){m||(m=new libpannellum.renderer(re)),T||(T=!0,$.addEventListener("mousedown",he,!1),t.addEventListener("mousemove",ke,!1),t.addEventListener("mouseup",Be,!1),r.mouseZoom&&(oe.addEventListener("mousewheel",We,!1),oe.addEventListener("DOMMouseScroll",We,!1)),r.doubleClickZoom&&$.addEventListener("dblclick",ae,!1),oe.addEventListener("mozfullscreenchange",dt,!1),oe.addEventListener("webkitfullscreenchange",dt,!1),oe.addEventListener("msfullscreenchange",dt,!1),oe.addEventListener("fullscreenchange",dt,!1),e.addEventListener("resize",Ee,!1),e.addEventListener("orientationchange",Ee,!1),r.disableKeyboardCtrl||(s.addEventListener("keydown",Fe,!1),s.addEventListener("keyup",Ye,!1),s.addEventListener("blur",Je,!1)),t.addEventListener("mouseleave",Be,!1),t.documentElement.style.pointerAction===""&&t.documentElement.style.touchAction===""?($.addEventListener("pointerdown",ye,!1),$.addEventListener("pointermove",Ne,!1),$.addEventListener("pointerup",De,!1),$.addEventListener("pointerleave",De,!1)):($.addEventListener("touchstart",Ke,!1),$.addEventListener("touchmove",$e,!1),$.addEventListener("touchend",G,!1)),e.navigator.pointerEnabled&&(s.style.touchAction="none")),qi(),ot(r.hfov),setTimeout(function(){},500)}function ne(a){var u=new FileReader;u.addEventListener("loadend",function(){var w=u.result;if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)){var A=w.indexOf("ÿÂ");(A<0||A>65536)&&q(r.strings.iOS8WebGLError)}var z=w.indexOf("<x:xmpmeta");if(z>-1&&r.ignoreGPanoXMP!==!0){var D=w.substring(z,w.indexOf("</x:xmpmeta>")+12),se=function(Le){var xe;return D.indexOf(Le+'="')>=0?(xe=D.substring(D.indexOf(Le+'="')+Le.length+2),xe=xe.substring(0,xe.indexOf('"'))):D.indexOf(Le+">")>=0&&(xe=D.substring(D.indexOf(Le+">")+Le.length+1),xe=xe.substring(0,xe.indexOf("<"))),xe!==n?Number(xe):null},te={fullWidth:se("GPano:FullPanoWidthPixels"),croppedWidth:se("GPano:CroppedAreaImageWidthPixels"),fullHeight:se("GPano:FullPanoHeightPixels"),croppedHeight:se("GPano:CroppedAreaImageHeightPixels"),topPixels:se("GPano:CroppedAreaTopPixels"),heading:se("GPano:PoseHeadingDegrees"),horizonPitch:se("GPano:PosePitchDegrees"),horizonRoll:se("GPano:PoseRollDegrees")};te.fullWidth!==null&&te.croppedWidth!==null&&te.fullHeight!==null&&te.croppedHeight!==null&&te.topPixels!==null&&(J.indexOf("haov")<0&&(r.haov=te.croppedWidth/te.fullWidth*360),J.indexOf("vaov")<0&&(r.vaov=te.croppedHeight/te.fullHeight*180),J.indexOf("vOffset")<0&&(r.vOffset=((te.topPixels+te.croppedHeight/2)/te.fullHeight-.5)*-180),te.heading!==null&&J.indexOf("northOffset")<0&&(r.northOffset=te.heading,r.compass!==!1&&(r.compass=!0)),te.horizonPitch!==null&&te.horizonRoll!==null&&(J.indexOf("horizonPitch")<0&&(r.horizonPitch=te.horizonPitch),J.indexOf("horizonRoll")<0&&(r.horizonRoll=te.horizonRoll)))}P.src=e.URL.createObjectURL(a)}),u.readAsBinaryString!==n?u.readAsBinaryString(a):u.readAsText(a)}function q(a){a===n&&(a=r.strings.genericWebGLError),F.errorMsg.innerHTML="<p>"+a+"</p>",Z.load.style.display="none",F.load.box.style.display="none",F.errorMsg.style.display="table",_=!0,re.style.display="none",pt("error",a)}function y(){_&&(F.load.box.style.display="none",F.errorMsg.style.display="none",_=!1,pt("errorcleared"))}function Q(a){var u=ee(a);ve.style.left=u.x+"px",ve.style.top=u.y+"px",clearTimeout(Q.t1),clearTimeout(Q.t2),ve.style.display="block",ve.style.opacity=1,Q.t1=setTimeout(function(){ve.style.opacity=0},2e3),Q.t2=setTimeout(function(){ve.style.display="none"},2500),a.preventDefault()}function ee(a){var u=s.getBoundingClientRect(),w={};return w.x=a.clientX-u.left,w.y=a.clientY-u.top,w}function he(a){if(a.preventDefault(),s.focus(),!(!x||!r.draggable)){var u=ee(a);if(r.hotSpotDebug){var w=Se(a);console.log("Pitch: "+w[0]+", Yaw: "+w[1]+", Center Pitch: "+r.pitch+", Center Yaw: "+r.yaw+", HFOV: "+r.hfov)}nr(),Ht(),r.roll=0,k.hfov=0,M=!0,d=Date.now(),f=u.x,i=u.y,I=r.yaw,E=r.pitch,oe.classList.add("pnlm-grabbing"),oe.classList.remove("pnlm-grab"),pt("mousedown",a),_e()}}function ae(a){if(r.minHfov===r.hfov)p.setHfov(N,1e3);else{var u=Se(a);p.lookAt(u[0],u[1],r.minHfov,1e3)}}function Se(a){var u=ee(a),w=m.getCanvas(),A=w.clientWidth,z=w.clientHeight,D=u.x/A*2-1,se=(1-u.y/z*2)*z/A,te=1/Math.tan(r.hfov*Math.PI/360),de=Math.sin(r.pitch*Math.PI/180),Le=Math.cos(r.pitch*Math.PI/180),xe=te*Le-se*de,Qe=Math.sqrt(D*D+xe*xe),je=Math.atan((se*Le+te*de)/Qe)*180/Math.PI,gt=Math.atan2(D/Qe,xe/Qe)*180/Math.PI+r.yaw;return gt<-180&&(gt+=360),gt>180&&(gt-=360),[je,gt]}function ke(a){if(M&&x){d=Date.now();var u=m.getCanvas(),w=u.clientWidth,A=u.clientHeight,z=ee(a),D=(Math.atan(f/w*2-1)-Math.atan(z.x/w*2-1))*180/Math.PI*r.hfov/90+I;k.yaw=(D-r.yaw)%360*.2,r.yaw=D;var se=2*Math.atan(Math.tan(r.hfov/360*Math.PI)*A/w)*180/Math.PI,te=(Math.atan(z.y/A*2-1)-Math.atan(i/A*2-1))*180/Math.PI*se/90+E;k.pitch=(te-r.pitch)*.2,r.pitch=te}}function Be(a){M&&(M=!1,Date.now()-d>15&&(k.pitch=k.yaw=0),oe.classList.add("pnlm-grab"),oe.classList.remove("pnlm-grabbing"),d=Date.now(),pt("mouseup",a))}function Ke(a){if(!(!x||!r.draggable)){nr(),Ht(),r.roll=0,k.hfov=0;var u=ee(a.targetTouches[0]);if(f=u.x,i=u.y,a.targetTouches.length==2){var w=ee(a.targetTouches[1]);f+=(w.x-u.x)*.5,i+=(w.y-u.y)*.5,C=Math.sqrt((u.x-w.x)*(u.x-w.x)+(u.y-w.y)*(u.y-w.y))}M=!0,d=Date.now(),I=r.yaw,E=r.pitch,pt("touchstart",a),_e()}}function $e(a){if(r.draggable&&(a.preventDefault(),x&&(d=Date.now()),M&&x)){var u=ee(a.targetTouches[0]),w=u.x,A=u.y;if(a.targetTouches.length==2&&C!=-1){var z=ee(a.targetTouches[1]);w+=(z.x-u.x)*.5,A+=(z.y-u.y)*.5;var D=Math.sqrt((u.x-z.x)*(u.x-z.x)+(u.y-z.y)*(u.y-z.y));ot(r.hfov+(C-D)*.1),C=D}var se=r.hfov/360*r.touchPanSpeedCoeffFactor,te=(f-w)*se+I;k.yaw=(te-r.yaw)%360*.2,r.yaw=te;var de=(A-i)*se+E;k.pitch=(de-r.pitch)*.2,r.pitch=de}}function G(){M=!1,Date.now()-d>150&&(k.pitch=k.yaw=0),C=-1,d=Date.now(),pt("touchend",event)}var ie=[],ge=[];function ye(a){a.pointerType=="touch"&&(ie.push(a.pointerId),ge.push({clientX:a.clientX,clientY:a.clientY}),a.targetTouches=ge,Ke(a),a.preventDefault())}function Ne(a){if(a.pointerType=="touch"){for(var u=0;u<ie.length;u++)if(a.pointerId==ie[u]){ge[u].clientX=a.clientX,ge[u].clientY=a.clientY,a.targetTouches=ge,$e(a),a.preventDefault();return}}}function De(a){if(a.pointerType=="touch"){for(var u=!1,w=0;w<ie.length;w++)a.pointerId==ie[w]&&(ie[w]=n),ie[w]&&(u=!0);u||(ie=[],ge=[],G()),a.preventDefault()}}function We(a){!x||r.mouseZoom=="fullscreenonly"&&!L||(a.preventDefault(),nr(),d=Date.now(),a.wheelDeltaY?(ot(r.hfov-a.wheelDeltaY*.05),k.hfov=a.wheelDelta<0?1:-1):a.wheelDelta?(ot(r.hfov-a.wheelDelta*.05),k.hfov=a.wheelDelta<0?1:-1):a.detail&&(ot(r.hfov+a.detail*1.5),k.hfov=a.detail>0?1:-1),_e())}function Fe(a){nr(),d=Date.now(),Ht(),r.roll=0;var u=a.which||a.keycode;r.capturedKeyNumbers.indexOf(u)<0||(a.preventDefault(),u==27?L&&kr():Te(u,!0))}function Je(){for(var a=0;a<10;a++)v[a]=!1}function Ye(a){var u=a.which||a.keycode;r.capturedKeyNumbers.indexOf(u)<0||(a.preventDefault(),Te(u,!1))}function Te(a,u){var w=!1;switch(a){case 109:case 189:case 17:case 173:v[0]!=u&&(w=!0),v[0]=u;break;case 107:case 187:case 16:case 61:v[1]!=u&&(w=!0),v[1]=u;break;case 38:v[2]!=u&&(w=!0),v[2]=u;break;case 87:v[6]!=u&&(w=!0),v[6]=u;break;case 40:v[3]!=u&&(w=!0),v[3]=u;break;case 83:v[7]!=u&&(w=!0),v[7]=u;break;case 37:v[4]!=u&&(w=!0),v[4]=u;break;case 65:v[8]!=u&&(w=!0),v[8]=u;break;case 39:v[5]!=u&&(w=!0),v[5]=u;break;case 68:v[9]!=u&&(w=!0),v[9]=u}w&&u&&(typeof performance<"u"&&performance.now()?H=performance.now():H=Date.now(),_e())}function Ue(){if(x){var a=!1,u=r.pitch,w=r.yaw,A=r.hfov,z;typeof performance<"u"&&performance.now()?z=performance.now():z=Date.now(),H===n&&(H=z);var D=(z-H)*r.hfov/1700;if(D=Math.min(D,1),v[0]&&r.keyboardZoom===!0&&(ot(r.hfov+(k.hfov*.8+.5)*D),a=!0),v[1]&&r.keyboardZoom===!0&&(ot(r.hfov+(k.hfov*.8-.2)*D),a=!0),(v[2]||v[6])&&(r.pitch+=(k.pitch*.8+.2)*D,a=!0),(v[3]||v[7])&&(r.pitch+=(k.pitch*.8-.2)*D,a=!0),(v[4]||v[8])&&(r.yaw+=(k.yaw*.8-.2)*D,a=!0),(v[5]||v[9])&&(r.yaw+=(k.yaw*.8+.2)*D,a=!0),a&&(d=Date.now()),r.autoRotate){if(z-H>.001){var se=(z-H)/1e3,te=(k.yaw/se*D-r.autoRotate*.2)*se;te=(-r.autoRotate>0?1:-1)*Math.min(Math.abs(r.autoRotate*se),Math.abs(te)),r.yaw+=te}r.autoRotateStopDelay&&(r.autoRotateStopDelay-=z-H,r.autoRotateStopDelay<=0&&(r.autoRotateStopDelay=!1,Y=r.autoRotate,r.autoRotate=0))}if(R.pitch&&(Oe("pitch"),u=r.pitch),R.yaw&&(Oe("yaw"),w=r.yaw),R.hfov&&(Oe("hfov"),A=r.hfov),D>0&&!r.autoRotate){var de=.85;!v[4]&&!v[5]&&!v[8]&&!v[9]&&!R.yaw&&(r.yaw+=k.yaw*D*de),!v[2]&&!v[3]&&!v[6]&&!v[7]&&!R.pitch&&(r.pitch+=k.pitch*D*de),!v[0]&&!v[1]&&!R.hfov&&ot(r.hfov+k.hfov*D*de)}if(H=z,D>0){k.yaw=k.yaw*.8+(r.yaw-w)/D*.2,k.pitch=k.pitch*.8+(r.pitch-u)/D*.2,k.hfov=k.hfov*.8+(r.hfov-A)/D*.2;var Le=r.autoRotate?Math.abs(r.autoRotate):5;k.yaw=Math.min(Le,Math.max(k.yaw,-Le)),k.pitch=Math.min(Le,Math.max(k.pitch,-Le)),k.hfov=Math.min(Le,Math.max(k.hfov,-Le))}v[0]&&v[1]&&(k.hfov=0),(v[2]||v[6])&&(v[3]||v[7])&&(k.pitch=0),(v[4]||v[8])&&(v[5]||v[9])&&(k.yaw=0)}}function Oe(a){var u=R[a],w=Math.min(1,Math.max((Date.now()-u.startTime)/1e3/(u.duration/1e3),0)),A=u.startPosition+r.animationTimingFunction(w)*(u.endPosition-u.startPosition);if(u.endPosition>u.startPosition&&A>=u.endPosition||u.endPosition<u.startPosition&&A<=u.endPosition||u.endPosition===u.startPosition){A=u.endPosition,k[a]=0;var z=R[a].callback,D=R[a].callbackArgs;delete R[a],typeof z=="function"&&z(D)}r[a]=A}function V(a){return a<.5?2*a*a:-1+(4-2*a)*a}function Ee(){dt()}function _e(){W||(W=!0,ue())}function ue(){if(Me(),j&&clearTimeout(j),M||S===!0)requestAnimationFrame(ue);else if(v[0]||v[1]||v[2]||v[3]||v[4]||v[5]||v[6]||v[7]||v[8]||v[9]||r.autoRotate||R.pitch||R.yaw||R.hfov||Math.abs(k.yaw)>.01||Math.abs(k.pitch)>.01||Math.abs(k.hfov)>.01)Ue(),r.autoRotateInactivityDelay>=0&&Y&&Date.now()-d>r.autoRotateInactivityDelay&&!r.autoRotate&&(r.autoRotate=Y,p.lookAt(U,n,N,3e3)),requestAnimationFrame(ue);else if(m&&(m.isLoading()||r.dynamic===!0&&me))requestAnimationFrame(ue);else{W=!1,H=n;var a=r.autoRotateInactivityDelay-(Date.now()-d);a>0?j=setTimeout(function(){r.autoRotate=Y,p.lookAt(U,n,N,3e3),_e()},a):r.autoRotateInactivityDelay>=0&&Y&&(r.autoRotate=Y,p.lookAt(U,n,N,3e3),_e())}}function Me(){var a;if(x){r.yaw>180?r.yaw-=360:r.yaw<-180&&(r.yaw+=360),a=r.yaw;var u=0;if(r.avoidShowingBackground){var de=m.getCanvas(),w=r.hfov/2,A=Math.atan2(Math.tan(w/180*Math.PI),de.width/de.height)*180/Math.PI,z=r.vaov>r.haov;z?A*(1-Math.min(Math.cos((r.pitch-w)/180*Math.PI),Math.cos((r.pitch+w)/180*Math.PI))):u=w*(1-Math.min(Math.cos((r.pitch-A)/180*Math.PI),Math.cos((r.pitch+A)/180*Math.PI)))}var D=r.maxYaw-r.minYaw,se=-180,te=180;D<360&&(se=r.minYaw+r.hfov/2+u,te=r.maxYaw-r.hfov/2-u,D<r.hfov&&(se=te=(se+te)/2),r.yaw=Math.max(se,Math.min(te,r.yaw))),r.autoRotate!==!1&&a!=r.yaw&&H!==n&&(r.autoRotate*=-1);var de=m.getCanvas(),Le=2*Math.atan(Math.tan(r.hfov/180*Math.PI*.5)/(de.width/de.height))/Math.PI*180,xe=r.minPitch+Le/2,Qe=r.maxPitch-Le/2,je=r.maxPitch-r.minPitch;je<Le&&(xe=Qe=(xe+Qe)/2),isNaN(xe)&&(xe=-90),isNaN(Qe)&&(Qe=90),r.pitch=Math.max(xe,Math.min(Qe,r.pitch)),m.render(r.pitch*Math.PI/180,r.yaw*Math.PI/180,r.hfov*Math.PI/180,{roll:r.roll*Math.PI/180}),ho(),r.compass&&(Ve.style.transform="rotate("+(-r.yaw-r.northOffset)+"deg)",Ve.style.webkitTransform="rotate("+(-r.yaw-r.northOffset)+"deg)"),r.onRender&&r.onRender()}}function K(a,u,w,A){this.w=a,this.x=u,this.y=w,this.z=A}K.prototype.multiply=function(a){return new K(this.w*a.w-this.x*a.x-this.y*a.y-this.z*a.z,this.x*a.w+this.w*a.x+this.y*a.z-this.z*a.y,this.y*a.w+this.w*a.y+this.z*a.x-this.x*a.z,this.z*a.w+this.w*a.z+this.x*a.y-this.y*a.x)},K.prototype.toEulerAngles=function(){var a=Math.atan2(2*(this.w*this.x+this.y*this.z),1-2*(this.x*this.x+this.y*this.y)),u=Math.asin(2*(this.w*this.y-this.z*this.x)),w=Math.atan2(2*(this.w*this.z+this.x*this.y),1-2*(this.y*this.y+this.z*this.z));return[a,u,w]};function ji(a,u,w){var A=[u?u*Math.PI/180/2:0,w?w*Math.PI/180/2:0,a?a*Math.PI/180/2:0],z=[Math.cos(A[0]),Math.cos(A[1]),Math.cos(A[2])],D=[Math.sin(A[0]),Math.sin(A[1]),Math.sin(A[2])];return new K(z[0]*z[1]*z[2]-D[0]*D[1]*D[2],D[0]*z[1]*z[2]-z[0]*D[1]*D[2],z[0]*D[1]*z[2]+D[0]*z[1]*D[2],z[0]*z[1]*D[2]+D[0]*D[1]*z[2])}function $i(a,u,w){var A=ji(a,u,w);A=A.multiply(new K(Math.sqrt(.5),-Math.sqrt(.5),0,0));var z=e.orientation?-e.orientation*Math.PI/180/2:0;return A.multiply(new K(Math.cos(z),0,-Math.sin(z),0))}function uo(a){var u=$i(a.alpha,a.beta,a.gamma).toEulerAngles();typeof S=="number"&&S<10?S+=1:S===10?(O=u[2]/Math.PI*180+r.yaw,S=!0,requestAnimationFrame(ue)):(r.pitch=u[0]/Math.PI*180,r.roll=-u[1]/Math.PI*180,r.yaw=-u[2]/Math.PI*180+O)}function qi(){try{var a={};r.horizonPitch!==n&&(a.horizonPitch=r.horizonPitch*Math.PI/180),r.horizonRoll!==n&&(a.horizonRoll=r.horizonRoll*Math.PI/180),r.backgroundColor!==n&&(a.backgroundColor=r.backgroundColor),m.init(P,r.type,r.dynamic,r.haov*Math.PI/180,r.vaov*Math.PI/180,r.vOffset*Math.PI/180,Ki,a),r.dynamic!==!0&&(P=n)}catch(u){if(u.type=="webgl error"||u.type=="no webgl")q();else if(u.type=="webgl size error")q(r.strings.textureSizeError.replace("%s",u.width).replace("%s",u.maxWidth));else throw q(r.strings.unknownError),u}}function Ki(){if(r.sceneFadeDuration&&m.fadeImg!==n){m.fadeImg.style.opacity=0;var a=m.fadeImg;delete m.fadeImg,setTimeout(function(){re.removeChild(a),pt("scenechangefadedone")},r.sceneFadeDuration)}r.compass?Ve.style.display="inline":Ve.style.display="none",Ji(),F.load.box.style.display="none",h!==n&&(re.removeChild(h),h=n),x=!0,pt("load"),_e()}function po(a){a.pitch=Number(a.pitch)||0,a.yaw=Number(a.yaw)||0;var u=t.createElement("div");u.className="pnlm-hotspot-base",a.cssClass?u.className+=" "+a.cssClass:u.className+=" pnlm-hotspot pnlm-sprite pnlm-"+bt(a.type);var w=t.createElement("span");a.text&&(w.innerHTML=bt(a.text));var A;if(a.video){var z=t.createElement("video"),D=a.video;r.basePath&&!b(D)&&(D=r.basePath+D),z.src=yt(D),z.controls=!0,z.style.width=a.width+"px",re.appendChild(u),w.appendChild(z)}else if(a.image){var D=a.image;r.basePath&&!b(D)&&(D=r.basePath+D),A=t.createElement("a"),A.href=yt(a.URL?a.URL:D),A.target="_blank",w.appendChild(A);var se=t.createElement("img");se.src=yt(D),se.style.width=a.width+"px",se.style.paddingTop="5px",re.appendChild(u),A.appendChild(se),w.style.maxWidth="initial"}else a.URL?(A=t.createElement("a"),A.href=yt(a.URL),A.target="_blank",re.appendChild(A),u.className+=" pnlm-pointer",w.className+=" pnlm-pointer",A.appendChild(u)):(a.sceneId&&(u.onclick=u.ontouchend=function(){return u.clicked||(u.clicked=!0,Tr(a.sceneId,a.targetPitch,a.targetYaw,a.targetHfov)),!1},u.className+=" pnlm-pointer",w.className+=" pnlm-pointer"),re.appendChild(u));a.createTooltipFunc?a.createTooltipFunc(u,a.createTooltipArgs):(a.text||a.video||a.image)&&(u.classList.add("pnlm-tooltip"),u.appendChild(w),w.style.width=w.scrollWidth-20+"px",w.style.marginLeft=-(w.scrollWidth-u.offsetWidth)/2+"px",w.style.marginTop=-w.scrollHeight-12+"px"),a.clickHandlerFunc&&(u.addEventListener("click",function(te){a.clickHandlerFunc(te,a.clickHandlerArgs)},"false"),u.className+=" pnlm-pointer",w.className+=" pnlm-pointer"),a.div=u}function Ji(){we||(r.hotSpots?(r.hotSpots=r.hotSpots.sort(function(a,u){return a.pitch<u.pitch}),r.hotSpots.forEach(po)):r.hotSpots=[],we=!0,ho())}function Qi(){var a=r.hotSpots;if(we=!1,delete r.hotSpots,a)for(var u=0;u<a.length;u++){for(var w=a[u].div;w.parentNode!=re;)w=w.parentNode;re.removeChild(w),delete a[u].div}}function fo(a){var u=Math.sin(a.pitch*Math.PI/180),w=Math.cos(a.pitch*Math.PI/180),A=Math.sin(r.pitch*Math.PI/180),z=Math.cos(r.pitch*Math.PI/180),D=Math.cos((-a.yaw+r.yaw)*Math.PI/180),se=u*A+w*D*z;if(a.yaw<=90&&a.yaw>-90&&se<=0||(a.yaw>90||a.yaw<=-90)&&se<=0)a.div.style.visibility="hidden";else{var te=Math.sin((-a.yaw+r.yaw)*Math.PI/180),de=Math.tan(r.hfov*Math.PI/360);a.div.style.visibility="visible";var Le=m.getCanvas(),xe=Le.clientWidth,Qe=Le.clientHeight,je=[-xe/de*te*w/se/2,-xe/de*(u*z-w*D*A)/se/2],gt=Math.sin(r.roll*Math.PI/180),vo=Math.cos(r.roll*Math.PI/180);je=[je[0]*vo-je[1]*gt,je[0]*gt+je[1]*vo],je[0]+=(xe-a.div.offsetWidth)/2,je[1]+=(Qe-a.div.offsetHeight)/2;var Ir="translate("+je[0]+"px, "+je[1]+"px) translateZ(9999px) rotate("+r.roll+"deg)";a.div.style.webkitTransform=Ir,a.div.style.MozTransform=Ir,a.div.style.transform=Ir}}function ho(){r.hotSpots.forEach(fo)}function rr(a){r={};var u,w,A=["haov","vaov","vOffset","northOffset","horizonPitch","horizonRoll"];J=[];for(u in Ie)Ie.hasOwnProperty(u)&&(r[u]=Ie[u]);for(u in l.default)if(l.default.hasOwnProperty(u))if(u=="strings")for(w in l.default.strings)l.default.strings.hasOwnProperty(w)&&(r.strings[w]=bt(l.default.strings[w]));else r[u]=l.default[u],A.indexOf(u)>=0&&J.push(u);if(a!==null&&a!==""&&l.scenes&&l.scenes[a]){var z=l.scenes[a];for(u in z)if(z.hasOwnProperty(u))if(u=="strings")for(w in z.strings)z.strings.hasOwnProperty(w)&&(r.strings[w]=bt(z.strings[w]));else r[u]=z[u],A.indexOf(u)>=0&&J.push(u);r.scene=a}for(u in l)if(l.hasOwnProperty(u))if(u=="strings")for(w in l.strings)l.strings.hasOwnProperty(w)&&(r.strings[w]=bt(l.strings[w]));else r[u]=l[u],A.indexOf(u)>=0&&J.push(u)}function Lr(a){if(a=a||!1,a&&"preview"in r){var u=r.preview;r.basePath&&!b(u)&&(u=r.basePath+u),h=t.createElement("div"),h.className="pnlm-preview-img",h.style.backgroundImage="url('"+rs(u)+"')",re.appendChild(h)}var w=r.title,A=r.author;a&&("previewTitle"in r&&(r.title=r.previewTitle),"previewAuthor"in r&&(r.author=r.previewAuthor)),r.hasOwnProperty("title")||(F.title.innerHTML=""),r.hasOwnProperty("author")||(F.author.innerHTML=""),!r.hasOwnProperty("title")&&!r.hasOwnProperty("author")&&(F.container.style.display="none"),Z.load.innerHTML="<p>"+r.strings.loadButtonLabel+"</p>",F.load.boxp.innerHTML=r.strings.loadingLabel;for(var z in r)if(r.hasOwnProperty(z))switch(z){case"title":F.title.innerHTML=bt(r[z]),F.container.style.display="inline";break;case"author":F.author.innerHTML=r.strings.bylineLabel.replace("%s",bt(r[z])),F.container.style.display="inline";break;case"fallback":var D=t.createElement("a");D.href=yt(r[z]),D.target="_blank",D.textContent="Click here to view this panorama in an alternative viewer.";var se=t.createElement("p");se.textContent="Your browser does not support WebGL.",se.appendChild(t.createElement("br")),se.appendChild(D),F.errorMsg.innerHTML="",F.errorMsg.appendChild(se);break;case"hfov":ot(Number(r[z]));break;case"autoLoad":r[z]===!0&&m===n&&(F.load.box.style.display="inline",Z.load.style.display="none",g());break;case"showZoomCtrl":r[z]&&r.showControls!=!1?Z.zoom.style.display="block":Z.zoom.style.display="none";break;case"showFullscreenCtrl":r[z]&&r.showControls!=!1&&("fullscreen"in t||"mozFullScreen"in t||"webkitIsFullScreen"in t||"msFullscreenElement"in t)?Z.fullscreen.style.display="block":Z.fullscreen.style.display="none";break;case"hotSpotDebug":r[z]?ze.style.display="block":ze.style.display="none";break;case"showControls":r[z]||(Z.orientation.style.display="none",Z.zoom.style.display="none",Z.fullscreen.style.display="none");break;case"orientationOnByDefault":r[z]&&(Pe===n?Ge=!0:Pe===!0&&or());break}a&&(w?r.title=w:delete r.title,A?r.author=A:delete r.author)}function kr(){if(x&&!_)if(L)t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen();else try{s.requestFullscreen?s.requestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.msRequestFullscreen?s.msRequestFullscreen():s.webkitRequestFullScreen()}catch{}}function dt(){var a=e.innerWidth==screen.width&&e.innerHeight==screen.height;t.fullscreen||t.mozFullScreen||t.webkitIsFullScreen||t.msFullscreenElement||a?(Z.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),L=!0):(Z.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),L=!1),m.resize(),ot(r.hfov),_e()}function es(){x&&(ot(r.hfov-5),_e())}function ts(){x&&(ot(r.hfov+5),_e())}function mo(a){var u=r.minHfov;if(r.type=="multires"&&m&&(u=Math.min(u,m.getCanvas().width/(r.multiRes.cubeResolution/90*.9))),u>r.maxHfov)return console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),r.hfov;var w=r.hfov;if(a<u?w=u:a>r.maxHfov?w=r.maxHfov:w=a,r.avoidShowingBackground&&m){var A=m.getCanvas();w=Math.min(w,Math.atan(Math.tan((r.maxPitch-r.minPitch)/360*Math.PI)/A.height*A.width)*360/Math.PI)}return w}function ot(a){r.hfov=mo(a)}function nr(){R={},Y=r.autoRotate?r.autoRotate:Y,r.autoRotate=!1}function go(){y(),x=!1,Z.load.style.display="none",F.load.box.style.display="inline",g()}function Tr(a,u,w,A,z){x=!1,R={};var D,se,te,de;if(r.sceneFadeDuration&&!z){var Le=m.render(r.pitch*Math.PI/180,r.yaw*Math.PI/180,r.hfov*Math.PI/180,{returnImage:!0});if(Le!==n){D=new Image,D.className="pnlm-fade-img",D.style.transition="opacity "+r.sceneFadeDuration/1e3+"s",D.style.width="100%",D.style.height="100%",D.onload=function(){Tr(a,u,w,A,!0)},D.src=Le,re.appendChild(D),m.fadeImg=D;return}}u==="same"?se=r.pitch:se=u,w==="same"?te=r.yaw:w==="sameAzimuth"?te=r.yaw+(r.northOffset||0)-(l.scenes[a].northOffset||0):te=w,A==="same"?de=r.hfov:de=A,Qi(),rr(a),k.yaw=k.pitch=k.hfov=0,Lr(),se!==n&&(r.pitch=se),te!==n&&(r.yaw=te),de!==n&&(r.hfov=de),pt("scenechange",a),go()}function Ht(){e.removeEventListener("deviceorientation",uo),Z.orientation.classList.remove("pnlm-orientation-button-active"),S=!1}function or(){S=1,e.addEventListener("deviceorientation",uo),Z.orientation.classList.add("pnlm-orientation-button-active")}function bt(a){return l.escapeHTML?String(a).split(/&/g).join("&").split('"').join(""").split("'").join("'").split("<").join("<").split(">").join(">").split("/").join("/").split(`
|
|
5
|
+
`).join("<br>"):String(a).split(`
|
|
6
|
+
`).join("<br>")}function yt(a){return a.trim().toLowerCase().indexOf("javascript:")===0?"about:blank":a}function rs(a){return yt(a).replace(/"/g,"%22").replace(/'/g,"%27")}this.isLoaded=function(){return!!x},this.getPitch=function(){return r.pitch},this.setPitch=function(a,u,w,A){return u=u==n?1e3:Number(u),u?R.pitch={startTime:Date.now(),startPosition:r.pitch,endPosition:a,duration:u,callback:w,callbackArgs:A}:r.pitch=a,_e(),this},this.getPitchBounds=function(){return[r.minPitch,r.maxPitch]},this.setPitchBounds=function(a){return r.minPitch=Math.max(-90,Math.min(a[0],90)),r.maxPitch=Math.max(-90,Math.min(a[1],90)),this},this.getYaw=function(){return r.yaw},this.setYaw=function(a,u,w,A){return u=u==n?1e3:Number(u),a=(a+180)%360-180,u?(r.yaw-a>180?a+=360:a-r.yaw>180&&(a-=360),R.yaw={startTime:Date.now(),startPosition:r.yaw,endPosition:a,duration:u,callback:w,callbackArgs:A}):r.yaw=a,_e(),this},this.getYawBounds=function(){return[r.minYaw,r.maxYaw]},this.setYawBounds=function(a){return r.minYaw=Math.max(-180,Math.min(a[0],180)),r.maxYaw=Math.max(-180,Math.min(a[1],180)),this},this.getHfov=function(){return r.hfov},this.setHfov=function(a,u,w,A){return u=u==n?1e3:Number(u),u?R.hfov={startTime:Date.now(),startPosition:r.hfov,endPosition:mo(a),duration:u,callback:w,callbackArgs:A}:ot(a),_e(),this},this.getHfovBounds=function(){return[r.minHfov,r.maxHfov]},this.setHfovBounds=function(a){return r.minHfov=Math.max(0,a[0]),r.maxHfov=Math.max(0,a[1]),this},this.lookAt=function(a,u,w,A,z,D){return A=A==n?1e3:Number(A),a!==n&&(this.setPitch(a,A,z,D),z=n),u!==n&&(this.setYaw(u,A,z,D),z=n),w!==n&&this.setHfov(w,A,z,D),this},this.getNorthOffset=function(){return r.northOffset},this.setNorthOffset=function(a){return r.northOffset=Math.min(360,Math.max(0,a)),_e(),this},this.getHorizonRoll=function(){return r.horizonRoll},this.setHorizonRoll=function(a){return r.horizonRoll=Math.min(90,Math.max(-90,a)),m.setPose(r.horizonPitch*Math.PI/180,r.horizonRoll*Math.PI/180),_e(),this},this.getHorizonPitch=function(){return r.horizonPitch},this.setHorizonPitch=function(a){return r.horizonPitch=Math.min(90,Math.max(-90,a)),m.setPose(r.horizonPitch*Math.PI/180,r.horizonRoll*Math.PI/180),_e(),this},this.startAutoRotate=function(a){return a=a||Y||1,r.autoRotate=a,p.lookAt(U,n,N,3e3),_e(),this},this.stopAutoRotate=function(){return Y=r.autoRotate?r.autoRotate:Y,r.autoRotate=!1,r.autoRotateInactivityDelay=-1,this},this.getRenderer=function(){return m},this.setUpdate=function(a){return me=a===!0,m===n?le():_e(),this},this.mouseEventToCoords=function(a){return Se(a)},this.loadScene=function(a,u,w,A){return x!==!1&&Tr(a,u,w,A),this},this.getScene=function(){return r.scene},this.addScene=function(a,u){return l.scenes[a]=u,this},this.removeScene=function(a){return r.scene===a||!l.scenes.hasOwnProperty(a)?!1:(delete l.scenes[a],!0)},this.toggleFullscreen=function(){return kr(),this},this.getConfig=function(){return r},this.getContainer=function(){return s},this.addHotSpot=function(a,u){if(u===n&&r.scene===n)r.hotSpots.push(a);else{var w=u!==n?u:r.scene;if(l.scenes.hasOwnProperty(w))l.scenes[w].hasOwnProperty("hotSpots")||(l.scenes[w].hotSpots=[],w==r.scene&&(r.hotSpots=l.scenes[w].hotSpots)),l.scenes[w].hotSpots.push(a);else throw"Invalid scene ID!"}return(u===n||r.scene==u)&&(po(a),x&&fo(a)),this},this.removeHotSpot=function(a,u){if(u===n||r.scene==u){if(!r.hotSpots)return!1;for(var w=0;w<r.hotSpots.length;w++)if(r.hotSpots[w].hasOwnProperty("id")&&r.hotSpots[w].id===a){for(var A=r.hotSpots[w].div;A.parentNode!=re;)A=A.parentNode;return re.removeChild(A),delete r.hotSpots[w].div,r.hotSpots.splice(w,1),!0}}else if(l.scenes.hasOwnProperty(u)){if(!l.scenes[u].hasOwnProperty("hotSpots"))return!1;for(var w=0;w<l.scenes[u].hotSpots.length;w++)if(l.scenes[u].hotSpots[w].hasOwnProperty("id")&&l.scenes[u].hotSpots[w].id===a)return l.scenes[u].hotSpots.splice(w,1),!0}else return!1},this.resize=function(){m&&Ee()},this.isLoaded=function(){return x},this.isOrientationSupported=function(){return Pe||!1},this.stopOrientation=function(){Ht()},this.startOrientation=function(){Pe&&or()},this.isOrientationActive=function(){return!!S},this.on=function(a,u){return B[a]=B[a]||[],B[a].push(u),this},this.off=function(a,u){if(!a)return B={},this;if(u){var w=B[a].indexOf(u);w>=0&&B[a].splice(w,1),B[a].length==0&&delete B[a]}else delete B[a];return this};function pt(a){if(a in B)for(var u=B[a].length;u>0;u--)B[a][B[a].length-u].apply(null,[].slice.call(arguments,1))}this.destroy=function(){m&&m.destroy(),T&&($.removeEventListener("mousedown",he,!1),$.removeEventListener("dblclick",ae,!1),t.removeEventListener("mousemove",ke,!1),t.removeEventListener("mouseup",Be,!1),s.removeEventListener("mousewheel",We,!1),s.removeEventListener("DOMMouseScroll",We,!1),s.removeEventListener("mozfullscreenchange",dt,!1),s.removeEventListener("webkitfullscreenchange",dt,!1),s.removeEventListener("msfullscreenchange",dt,!1),s.removeEventListener("fullscreenchange",dt,!1),e.removeEventListener("resize",Ee,!1),e.removeEventListener("orientationchange",Ee,!1),s.removeEventListener("keydown",Fe,!1),s.removeEventListener("keyup",Ye,!1),s.removeEventListener("blur",Je,!1),t.removeEventListener("mouseleave",Be,!1),$.removeEventListener("touchstart",Ke,!1),$.removeEventListener("touchmove",$e,!1),$.removeEventListener("touchend",G,!1),$.removeEventListener("pointerdown",ye,!1),$.removeEventListener("pointermove",Ne,!1),$.removeEventListener("pointerup",De,!1),$.removeEventListener("pointerleave",De,!1)),s.innerHTML="",s.classList.remove("pnlm-container"),oe.classList.remove("pnlm-grab"),oe.classList.remove("pnlm-grabbing")}}return{viewer:function(l,p){return new o(l,p)}}}(window,document),window.requestAnimationFrame||(window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)}}());var ao,io;function Ra(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aa(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Da(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var qt=(io=ao=function(e){Da(t,e);function t(n){Ra(this,t);var o=Aa(this,e.call(this,n));return o.renderImage=function(s){var l=o.props.children,p=[].concat(l),r=[];Array.isArray(p)&&p.map(function(h){switch(h.props.type){case"info":return r.push({id:Math.random().toString(36).substr(2,9),type:h.props.type,pitch:h.props.pitch?h.props.pitch:10,yaw:h.props.yaw?h.props.yaw:10,text:h.props.text?h.props.text:"",URL:h.props.URL?h.props.URL:""});case"custom":return r.push({id:Math.random().toString(36).substr(2,9),pitch:h.props.pitch?h.props.pitch:10,yaw:h.props.yaw?h.props.yaw:10,cssClass:h.props.cssClass?h.props.cssClass:"tooltipcss",createTooltipFunc:h.props.tooltip?h.props.tooltip:o.hotspotTooltip,createTooltipArgs:h.props.tooltipArg?h.props.tooltipArg:{},clickHandlerFunc:h.props.handleClick?h.props.handleClick:o.handleClickHotspot,clickHandlerArgs:h.props.handleClickArg?h.props.handleClickArg:{name:"test"}});default:return[]}});var m={type:"equirectangular",panorama:o.props.image,haov:o.props.haov,vaov:o.props.vaov,vOffset:o.props.vOffset,yaw:o.props.yaw,pitch:o.props.pitch,hfov:o.props.hfov,minHfov:o.props.minHfov,maxHfov:o.props.maxHfov,minPitch:o.props.minPitch,maxPitch:o.props.maxPitch,minYaw:o.props.minYaw,maxYaw:o.props.maxYaw,autoRotate:o.props.autoRotate,compass:o.props.compass,preview:o.props.preview,previewTitle:o.props.previewTitle,previewAuthor:o.props.previewAuthor,author:o.props.author,title:o.props.title,autoLoad:o.props.autoLoad,orientationOnByDefault:o.props.orientationOnByDefault,showZoomCtrl:o.props.showZoomCtrl,keyboardZoom:o.props.keyboardZoom,mouseZoom:o.props.mouseZoom,draggable:o.props.draggable,disableKeyboardCtrl:o.props.disableKeyboardCtrl,showFullscreenCtrl:o.props.showFullscreenCtrl,showControls:o.props.showControls,hotSpotDebug:o.props.hotspotDebug,hotSpots:r,onRender:o.props.onRender};Object.keys(m).forEach(function(h){return m[h]===""&&delete m[h]}),s==="update"&&o.panorama.destroy(),o.panorama=pannellum.viewer(o.props.id?o.props.id:o.state.id,m),o.panorama.on("load",o.props.onLoad),o.panorama.on("scenechange",o.props.onScenechange),o.panorama.on("scenechangefadedone",o.props.onScenechangefadedone),o.panorama.on("error",o.props.onError),o.panorama.on("errorcleared",o.props.onErrorcleared),o.panorama.on("mousedown",o.props.onMousedown),o.panorama.on("mouseup",o.props.onMouseup),o.panorama.on("touchstart",o.props.onTouchstart),o.panorama.on("touchend",o.props.onTouchend)},o.componentDidMount=function(){o.renderImage("mount")},o.handleClickHotspot=function(s,l){console.log("hotspot clicked",l.name)},o.hotspotTooltip=function(s,l){s.setAttribute("id","textInfo");var p=document.createElement("div");p.classList.add("hotspot");var r=document.createElement("div");r.classList.add("out");var m=document.createElement("div");m.classList.add("in");var h=document.createElement("div");h.classList.add("image"),s.appendChild(p),p.appendChild(m),p.appendChild(r)},o.getViewer=function(){return o.panorama},o.forceRender=function(){o.renderImage("update")},o.state={id:Math.random().toString(36).substr(2,9)},o}return t.prototype.componentDidUpdate=function(o,s,l){(o.image!==this.props.image||o.width!==this.props.width||o.height!==this.props.height||o.compass!==this.props.compass||o.title!==this.props.title||o.author!==this.props.author||o.preview!==this.props.preview||o.previewTitle!==this.props.previewTitle||o.previewAuthor!==this.props.previewAuthor||o.showZoomCtrl!==this.props.showZoomCtrl||o.showFullscreenCtrl!==this.props.showFullscreenCtrl||o.showControls!==this.props.showControls||o.children.length!==this.props.children.length)&&this.renderImage("update"),(o.maxYaw!==this.props.maxYaw||o.minYaw!==this.props.minYaw||o.maxPitch!==this.props.maxPitch||o.minPitch!==this.props.minPitch||o.maxHfov!==this.props.maxHfov||o.minHfov!==this.props.minHfov)&&(this.panorama.setYawBounds([this.props.minYaw,this.props.maxYaw]),this.panorama.setPitchBounds([this.props.minPitch,this.props.maxPitch]),this.panorama.setHfovBounds([this.props.minHfov,this.props.maxHfov])),o.yaw!==this.props.yaw&&this.panorama.setYaw(this.props.yaw),o.pitch!==this.props.pitch&&this.panorama.setPitch(this.props.pitch),o.hfov!==this.props.hfov&&this.panorama.setHfov(this.props.hfov)},t.prototype.render=function(){var o=this,s=this.props,l=s.width,p=s.height,r={width:l,height:p};return wr.createElement("div",{id:this.props.id?this.props.id:this.state.id,style:r,ref:function(h){return o.imageNode=h}})},t}(Yt),ao.defaultProps={children:[],width:"100%",height:"400px",image:"",haov:360,vaov:180,vOffset:0,yaw:0,pitch:0,hfov:100,minHfov:50,maxHfov:150,minPitch:-90,maxPitch:90,minYaw:-180,maxYaw:180,autoRotate:0,compass:!1,preview:"",previewTitle:"",previewAuthor:"",title:"",author:"",autoLoad:!1,orientationOnByDefault:!1,showZoomCtrl:!0,keyboardZoom:!0,mouseZoom:!0,draggable:!0,disableKeyboardCtrl:!1,showFullscreenCtrl:!0,showControls:!0,onLoad:function(){},onScenechange:function(){},onScenechangefadedone:function(){},onError:function(){},onErrorcleared:function(){},onMousedown:function(){},onMouseup:function(){},onTouchstart:function(){},onTouchend:function(){},hotspotDebug:!1,onRender:null},io);qt.propTypes={},qt.Hotspot=function(){},qt.Hotspot=function(){};const so=100,Kt=100,Jt=50,za=0,Oa=0,Ha=e=>{const[t,n]=be(0),[o,s]=be(!1);return pe(()=>{const l=XMLHttpRequest.prototype.open,p=XMLHttpRequest.prototype.send;let r=!1;return XMLHttpRequest.prototype.open=function(m,h,M=!0,d,f){return h.toString().includes(e)&&(r=!0,s(!0)),l.call(this,m,h,M,d||null,f||null)},XMLHttpRequest.prototype.send=function(m){return r&&(this.addEventListener("progress",h=>{if(h.lengthComputable){const M=Math.round(h.loaded/h.total*100);n(M)}}),this.addEventListener("loadend",()=>{r=!1,n(100),s(!1)})),p.call(this,m)},()=>{XMLHttpRequest.prototype.open=l,XMLHttpRequest.prototype.send=p}},[e]),[t,o]};function Fa(e,t=50,n=200){let o=null,s=0;return(...l)=>{const p=Date.now();o&&(clearTimeout(o),o=null),p-s>=t&&(e(...l),s=p),o=setTimeout(()=>{e(...l)},n)}}const Ua=({isPannellumLoaded:e,isLoading:t,progress:n,autoloadInterior360:o,loadScene:s})=>e?null:(o&&s(),c("div",{className:"pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4",children:c("div",{className:"pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[c(Jn,{className:"size-20 text-primary-light"}),c(nt,{color:"neutral",shape:"icon",onClick:s,children:c(jt,{className:"size-full"})}),c("div",{className:ce("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",!t&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${n}%`}})})]})})),Va=e=>{const{itemIndex:t,src:n,poster:o,onLoaded:s,onError:l}=e,{autoLoadInterior360:p}=rt(),{isShowingDetails:r,setItemInteraction:m,zoom:h,isZooming:M,setZoom:d}=tt(),[f,i]=Ha(n),C=Ce(null),I=Ce(null),[E,v]=be(!1),L=X(()=>{t!==void 0&&m(t,"ready"),s?.(),v(!0)},[t,m,s]),x=X(T=>{T instanceof MouseEvent&&T.button!==0||(T.preventDefault(),T.stopPropagation(),T.stopImmediatePropagation())},[]),_=X(()=>{const T=C.current?.getViewer();T&&T.loadScene()},[]);return pe(()=>{if(C.current&&E&&I.current){const T=C.current.getViewer(),P=I.current;if(T){const H=Y=>{Y.preventDefault();const N=Vn(T.getHfov(),Jt,Kt,_t,Lt),R=(Y.deltaY<0?"zoom-in":"zoom-out")==="zoom-in"?Math.min(N+Lt,_t):Math.max(N-Lt,1);d(R)},k=Fa(H,100,150),W=Y=>{Y.preventDefault();const N=Vn(T.getHfov(),Jt,Kt,_t,Lt,!0);d(N)};P.addEventListener("wheel",k),P.addEventListener("dblclick",W);const S=Math.abs(1-Math.abs(h)),O=Kt-Jt,j=so-S*O;return T.setHfov(j),()=>{P.removeEventListener("wheel",H),P.removeEventListener("dblclick",W)}}}},[h,E,M,d]),c(Xe,{children:c("div",{className:ce("relative size-full overflow-hidden bg-transparent"),children:c("div",{className:ce("size-full duration-details",r?"scale-105":"scale-100"),children:[c("div",{ref:I,children:[c("style",{children:`
|
|
7
|
+
.pnlm-load-button {
|
|
8
|
+
display: none !important;
|
|
9
|
+
}
|
|
10
|
+
.pnlm-load-box {
|
|
11
|
+
display: none !important;
|
|
12
|
+
}
|
|
13
|
+
.pnlm-container {
|
|
14
|
+
background-image: none !important;
|
|
15
|
+
}
|
|
16
|
+
`}),I.current&&c(qt,{ref:C,id:I.current,panorama:n,preview:o,width:"0",height:"0",image:n,pitch:za,yaw:Oa,hfov:so,maxHfov:Kt,minHfov:Jt,compass:!1,showControls:!1,keyboardZoom:!1,onLoad:L,onError:l,onMousedown:x,onTouchstart:x,onTouchend:x,onMouseup:x,autoLoad:!1})]}),c(Ua,{isPannellumLoaded:E,isLoading:i,progress:f,autoloadInterior360:p,loadScene:_})]})})})},Wa=e=>{const{itemIndex:t}=e,{setItemInteraction:n}=tt(),[o,s]=be();return pe(()=>{o===null||o==="error"||n(t,o==="spin"?"running":"ready")},[t,n,o]),o==="error"?c(xr,{className:"text-background",text:"Interior Spin could not be loaded"}):c(Va,{...e,onLoaded:()=>s("spin"),onError:()=>s("error")})},Ba=750,Ya=1250,Xa=360,Za=480,Ga=({images:e,onlyPreload:t})=>{const{demoSpin:n,reverse360:o}=rt(),{isShowingDetails:s,isZooming:l}=tt(),p=l||s,r=Ce(null),m=Ce(null),h=Ce(n),M=Ce(null),d=X(()=>{M.current&&(clearTimeout(M.current),M.current=null)},[]),f=Ce(null),i=()=>{f.current&&(cancelAnimationFrame(f.current),f.current=null)},[C,I]=be(0),E=e.length,v=X(()=>{I(x=>(x-1+E)%E)},[E]),L=X(()=>{I(x=>(x+1)%E)},[E]);return pe(()=>{if(p){d();return}const x=r.current,_=m.current;if(!x||!_)return;h.current&&(h.current=!1,M.current=setTimeout(()=>{const re=Date.now(),$=()=>{const ve=()=>{const ze=(Date.now()-re)/Ya,Pe=Math.round((qe=>qe*(2-qe))(ze)*E),Ge=st(Pe%E,0,E-1);I(Ge),!(Pe>=E)&&$()};f.current=requestAnimationFrame(ve)};$()},Ba));const T=Xa/E;let P=null,H=[];const k=re=>{H.push(re),H.length>20&&H.shift()},W=()=>{const re=(()=>{const Z=Date.now(),Pe=H.filter(Ve=>Z-Ve.timestamp<50);if(Pe.length<2)return 0;const Ge=Pe[0],qe=Pe[Pe.length-1];return(qe.value-Ge.value)/(.001*Math.max(qe.timestamp-Ge.timestamp,1))})(),$=Date.now();let ve=0,F=$;const ze=()=>{const Z=()=>{const Pe=Date.now(),Ge=(Pe-$)/1e3,qe=Math.pow(.05,Ge),Ve=re*qe,g=(Pe-F)/1e3;if(ve+=Ve*g,Math.abs(Ve)<5*T&&Math.abs(ve)<T){f.current=null;return}Math.abs(ve)>=T&&(ve>0!==o?L():v(),ve=0),F=Pe,ze()};f.current=requestAnimationFrame(Z)};ze()},S=()=>{d(),i()},O=re=>{if(re.button!==0)return;re.preventDefault(),re.stopPropagation(),S();const $=re.clientX;P=$,H=[{timestamp:Date.now(),value:$}]},j=re=>{if(P===null)return;re.stopPropagation();const{clientX:$}=re;k({timestamp:Date.now(),value:$});const ve=$-P;Math.abs(ve)<T||(ve>0!==o?L():v(),P=$)},Y=()=>{P!==null&&(P=null,W())};x.addEventListener("mousedown",O),document.addEventListener("mousemove",j),document.addEventListener("mouseleave",Y),document.addEventListener("mouseup",Y),document.addEventListener("contextmenu",Y);const N=Za/E,U=()=>_.getBoundingClientRect().width,R=()=>_.scrollWidth/2-U()/2,B=()=>{const re=R();_.scrollLeft=re};B();const J=()=>{const re=_.scrollLeft-R();Math.abs(re)<N||(re<0!==o?L():v(),B())};_.addEventListener("scroll",J);let me=null;const we=re=>{if(me!==null||re.changedTouches.length!==1)return;S();const{identifier:$,clientX:ve}=re.changedTouches[0];me=$,P=ve,H=[{timestamp:Date.now(),value:ve}]},Ie=re=>{if(!P)return;const $=Array.from(re.changedTouches).find(({identifier:ze})=>ze===me);if(!$)return;re.preventDefault();const{clientX:ve}=$;k({timestamp:Date.now(),value:ve});const F=ve-P;Math.abs(F)<T||(F>0!==o?L():v(),P=ve)},oe=re=>{!P||!Array.from(re.changedTouches).some(({identifier:ve})=>ve===me)||(me=null,P=null,W())};return _.addEventListener("touchstart",we),_.addEventListener("touchmove",Ie),_.addEventListener("touchend",oe),_.addEventListener("touchcancel",oe),()=>{x.removeEventListener("mousedown",O),document.removeEventListener("mousemove",j),document.removeEventListener("mouseleave",Y),document.removeEventListener("mouseup",Y),document.removeEventListener("contextmenu",Y),_.removeEventListener("scroll",J),_.removeEventListener("touchstart",we),_.removeEventListener("touchmove",Ie),_.removeEventListener("touchend",oe),_.removeEventListener("touchcancel",oe)}},[d,L,v,p,o,E]),c("div",{ref:r,className:"cursor-ew-resize",children:c("div",{ref:m,className:"overflow-x-scroll no-scrollbar",children:[c("div",{className:"sticky left-0 top-0",children:[e.map(x=>c(Tt,{src:x.src,className:"pointer-events-none !absolute left-0 top-0 -z-10"},x.src)),c(oo,{...e[C],onlyPreload:t})]}),c("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},ja=({images:e,onPlaceholderImageLoaded:t,onSpinImagesLoaded:n,onError:o})=>{const{autoLoad360:s}=rt(),l=et(()=>e.map(({src:d})=>d),[e]),[p,r]=be(null),m=p?[...p.values()].filter(d=>d).length/e.length*100:null,h=X(()=>{m===null&&r(new Map(l.map(d=>[d,!1])))},[l,m]),M=X(d=>{r(f=>{const i=new Map(f);return i.set(d,!0),i})},[]);return pe(()=>{s&&h()},[s,h]),pe(()=>{m===100&&n()},[m,n]),c("div",{className:"relative size-full",children:[m!==null&&m!==100&&c("div",{className:"hidden",children:l.map(d=>c(Tt,{src:d,onLoad:()=>M(d),onError:o},d))}),c(Tt,{className:"size-full",src:l[0],onLoad:t}),c("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[c(Qn,{className:"size-20 text-primary-light"}),c(nt,{color:"neutral",shape:"icon",onClick:h,children:c(jt,{className:"size-full"})}),c("div",{className:ce("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",m===null&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${m??0}%`}})})]})]})},$a=e=>{const{itemIndex:t}=e,{setItemInteraction:n}=tt(),[o,s]=be();return pe(()=>{o===null||o==="error"||n(t,o==="spin"?"running":"ready")},[t,n,o]),o==="error"?c(xr,{className:"text-background",text:"Spin could not be loaded"}):o!=="spin"?c(ja,{...e,onPlaceholderImageLoaded:()=>s(l=>l===null?"placeholder":l),onSpinImagesLoaded:()=>s("spin"),onError:()=>s("error")}):c(Ga,{...e})},qa=e=>c(nt,{color:"neutral",shape:"icon",...e,children:c(jt,{className:"size-full"})}),Ka=({className:e})=>c(Ze,{className:e,customizationKey:"UI_PAUSE",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M4 12.6667H6.66667V3.33333H4V12.6667ZM9.33333 3.33333V12.6667H12V3.33333H9.33333Z",fill:"currentColor"})})}),Ja=({className:e})=>c(Ze,{className:e,customizationKey:"UI_VOLUME",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M2 6V10H4.66667L8 13.3333V2.66667L4.66667 6H2ZM11 8C11 6.82 10.32 5.80667 9.33333 5.31334V10.68C10.32 10.1933 11 9.18 11 8ZM9.33333 2.15334V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8C12.6667 10.1133 11.26 11.9 9.33333 12.4733V13.8467C12.0067 13.24 14 10.8533 14 8C14 5.14667 12.0067 2.76 9.33333 2.15334Z",fill:"currentColor"})})}),Qa=({className:e})=>c(Ze,{className:e,customizationKey:"UI_VOLUME_OFF",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M11 8C11 6.82 10.32 5.80667 9.33333 5.31333V6.78667L10.9667 8.42C10.9867 8.28667 11 8.14667 11 8ZM12.6667 8C12.6667 8.62667 12.5333 9.21333 12.3067 9.76L13.3133 10.7667C13.7533 9.94 14 9 14 8C14 5.14667 12.0067 2.76 9.33333 2.15333V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8ZM2.84667 2L2 2.84667L5.15333 6H2V10H4.66667L8 13.3333V8.84667L10.8333 11.68C10.3867 12.0267 9.88667 12.3 9.33333 12.4667V13.84C10.2533 13.6333 11.0867 13.2067 11.7933 12.6333L13.1533 14L14 13.1533L2.84667 2ZM8 2.66667L6.60667 4.06L8 5.45333V2.66667Z",fill:"currentColor"})})}),lo=({progress:e})=>c("div",{className:"h-1 w-full overflow-hidden rounded-ui-sm bg-background/25",children:c("div",{className:"size-full rounded-ui-sm bg-background transition-transform",style:{transform:`translateX(-${100*(1-e)}%)`}})}),ei=3e3,ti=({src:e,poster:t,itemIndex:n})=>{const{carrouselItemIndex:o,setItemInteraction:s}=tt(),l=Ce(null),p=Ce(null),r=X(()=>{if(!p.current)throw new Error("videoRef.current is null");return p.current},[]);pe(()=>{s(n,"ready")},[n,s]);const m=X(()=>{r().play()},[r]),h=X(()=>{r().pause()},[r]);pe(()=>{o===n||h()},[o,n,h]);const[M,d]=be(!1),[f,i]=be(!0),C=()=>{d(!0),s(n,"running")},I=()=>{d(!1),s(n,"ready")},E=()=>{i(!1)},v=()=>{i(!0)},[L,x]=be(null),_=R=>{const B=r(),J=R.currentTarget.getBoundingClientRect(),we=(R.clientX-J.left)/J.width,Ie=Math.min(1,Math.max(0,we));B.volume=Ie,B.muted=!1},T=R=>{const B=r();B.muted=R};pe(()=>{const R=p.current;if(!R)return;const B=()=>{x({volume:R.volume,isMuted:R.muted})};return B(),R.addEventListener("volumechange",B),()=>{R.removeEventListener("volumechange",B)}},[]);const[P,H]=be(null),k=P?P.currentTime/P.duration:0;pe(()=>{const R=p.current;if(!R)return;const B=()=>{const J=R.currentTime,me=R.duration;isNaN(J)||isNaN(me)||H({currentTime:J,duration:me})};return B(),R.addEventListener("timeupdate",B),()=>{R.removeEventListener("timeupdate",B)}},[]);const W=R=>{const B=r(),J=R.currentTarget.getBoundingClientRect(),we=(R.clientX-J.left)/J.width,Ie=B.duration*we;B.currentTime=Ie},S=R=>{const B=Math.floor(R%3600/60),J=Math.floor(R%60);return`${B}:${J.toString().padStart(2,"0")}`},[O,j]=be(!1),Y=Ce(void 0),N=X(()=>clearTimeout(Y.current),[]),U=X(()=>{N(),Y.current=setTimeout(()=>{j(!1)},ei)},[N]);return pe(()=>{const R=l.current,B=p.current;if(!R||!B)return;const J=()=>{U(),j(!0)},me=()=>{N(),j(!1)};let we=!1;const Ie=()=>{we=!0},oe=()=>{we&&(we=!1,h())},re=()=>{we=!1,J()},$=ve=>{ve.preventDefault(),ve.touches.length===1&&(U(),j(ze=>!ze))};return R.addEventListener("mousedown",Ie),R.addEventListener("mouseup",oe),R.addEventListener("mouseenter",J),R.addEventListener("mousemove",re),R.addEventListener("mouseleave",me),B.addEventListener("touchstart",$),()=>{R.removeEventListener("mousedown",Ie),R.removeEventListener("mouseup",oe),R.removeEventListener("mouseenter",J),R.removeEventListener("mousemove",J),R.removeEventListener("mouseleave",me),B.removeEventListener("touchstart",$)}},[N,h,U]),c("div",{ref:l,className:"relative size-full",children:[c("video",{ref:p,className:"size-full",src:e,poster:t,disablePictureInPicture:!0,playsInline:!0,onPlay:C,onPause:I,onEnded:I,onCanPlay:E,onWaiting:v}),M?c(Xe,{children:[c("div",{className:ce("absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",O?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onMouseDownCapture:R=>R.stopPropagation(),children:[c("div",{className:"flex items-center justify-between text-background",children:[c("div",{className:"flex items-center gap-x-4",children:[c(nt,{shape:"icon",variant:"ghost",color:"neutral",onClick:h,children:c(Ka,{className:"size-full"})}),P&&c("span",{className:"text-sm",children:[S(P.currentTime)," /"," ",S(P.duration)]})]}),L&&c("div",{className:"group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",children:[c("div",{className:`w-12 cursor-pointer py-1 opacity-0 transition-opacity ${L.isMuted?"group-hover/volume:opacity-50":"group-hover/volume:opacity-100"}`,onClick:_,children:c(lo,{progress:L.volume})}),c("div",{className:"size-5 cursor-pointer",onClick:()=>T(!L.isMuted),children:L.isMuted?c(Qa,{className:"size-full"}):c(Ja,{className:"size-full"})})]})]}),c("div",{className:"cursor-pointer py-1",onClick:W,children:c(lo,{progress:k})})]}),f&&c("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",children:c(qn,{size:"lg",color:"background"})})]}):c("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:c(qa,{onClick:m})})]})},ri=({index:e,item:t,isShown:n})=>{const{type:o}=t;let s;switch(o){case"image":s=c(oo,{itemIndex:e,onlyPreload:!n,...t});break;case"video":s=c(ti,{itemIndex:e,...t});break;case"360":s=c($a,{itemIndex:e,onlyPreload:!n,...t});break;case"interior-360":s=c(Wa,{itemIndex:e,onlyPreload:!n,...t});break;case"custom":s=c(Ia,{itemIndex:e,...t})}return s=c("div",{className:"-ml-px h-full w-[calc(100%+2px)]",children:s}),s},ni=e=>{pe(()=>{const t=n=>{n.key==="Escape"&&e()};return addEventListener("keydown",t),()=>{removeEventListener("keydown",t)}},[e])};function oi(e){return e.target===e.currentTarget}const ai=({currentIndex:e,maxIndex:t})=>c("div",{className:"space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 transition-radius small:space-x-1 small:px-2 small:py-1 small:text-sm",children:[c("span",{children:e+1}),c("span",{children:"/"}),c("span",{children:t+1})]}),co=({className:e})=>c(Ze,{className:e,customizationKey:"UI_ARROW_RIGHT",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",fill:"currentColor"})})}),ii=({className:e})=>c(Ze,{className:e,customizationKey:"UI_EXTEND",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M4.66683 9.3335H3.3335V12.6668H6.66683V11.3335H4.66683V9.3335ZM3.3335 6.66683H4.66683V4.66683H6.66683V3.3335H3.3335V6.66683ZM11.3335 11.3335H9.3335V12.6668H12.6668V9.3335H11.3335V11.3335ZM9.3335 3.3335V4.66683H11.3335V6.66683H12.6668V3.3335H9.3335Z",fill:"currentColor"})})}),si=({className:e})=>c(Ze,{className:e,customizationKey:"UI_GALLERY",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",fill:"currentColor"})})}),li=({className:e})=>c(Ze,{className:e,customizationKey:"UI_HOTSPOTS",children:c("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("g",{clipPath:"url(#clip0_418_982)",children:c("path",{d:"M6 4C4.895 4 4 4.895 4 6C4 7.105 4.895 8 6 8C7.105 8 8 7.105 8 6C8 4.895 7.105 4 6 4ZM10.47 5.5C10.24 3.415 8.585 1.76 6.5 1.53V0.5H5.5V1.53C3.415 1.76 1.76 3.415 1.53 5.5H0.5V6.5H1.53C1.76 8.585 3.415 10.24 5.5 10.47V11.5H6.5V10.47C8.585 10.24 10.24 8.585 10.47 6.5H11.5V5.5H10.47ZM6 9.5C4.065 9.5 2.5 7.935 2.5 6C2.5 4.065 4.065 2.5 6 2.5C7.935 2.5 9.5 4.065 9.5 6C9.5 7.935 7.935 9.5 6 9.5Z",fill:"currentColor"})}),c("defs",{children:c("clipPath",{id:"clip0_418_982",children:c("rect",{width:"12",height:"12",fill:"white"})})})]})}),ci=({className:e})=>c(Ze,{className:e,customizationKey:"UI_MINUS",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M12.6666 8.66634H3.33325V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),ui=({className:e})=>c(Ze,{className:e,customizationKey:"UI_PLUS",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M12.6666 8.66634H8.66659V12.6663H7.33325V8.66634H3.33325V7.33301H7.33325V3.33301H8.66659V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),di=({className:e})=>c(Ze,{className:e,customizationKey:"UI_REDUCE",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",fill:"currentColor"})})}),pi=({enabled:e,onToggle:t,label:n,className:o,children:s})=>c("label",{className:ce("flex cursor-pointer items-center justify-center gap-x-2",o),children:[c("input",{type:"checkbox",className:"sr-only",checked:e,onChange:t}),n&&c("div",{className:"text-xs text-background",children:n}),c("div",{className:ce("flex h-5 w-8 items-center justify-center rounded-full transition-colors",e?"bg-primary":"bg-background/60"),children:c("div",{className:ce("flex size-4 items-center justify-center rounded-full p-0.5 transition",e?"translate-x-1.5 bg-primary-foreground text-primary":"-translate-x-1.5 bg-background text-foreground"),children:s})})]}),fi=({className:e})=>c(Ze,{className:e,customizationKey:"UI_BURGER",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M2 12H14V10.6667H2V12ZM2 8.66667H14V7.33333H2V8.66667ZM2 4V5.33333H14V4H2Z",fill:"currentColor"})})}),hi=({sharedClassName:e})=>{const{categories:t}=ht(),{displayedCategoryId:n,changeCategory:o}=tt(),[s,l]=be(!1),p=()=>{l(!s)},r=()=>{l(!1)};return c(Xe,{children:[s&&c("div",{className:ce(e,"inset-0 small:hidden"),onClick:r}),c("div",{className:ce(e,kt("top-left"),"flex gap-x-2 small:hidden"),children:[c(nt,{shape:"icon",color:s?"primary":"neutral",onClick:p,children:c(fi,{})}),s&&c("div",{className:"rounded-ui-md bg-background transition-radius",children:c("ul",{className:"space-y-0.5 p-1",children:t.map(({id:m,title:h})=>c("li",{className:ce("cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-all hover:bg-primary/30",m===n&&"bg-primary/50"),onClick:()=>{o(m),l(!1)},children:h},m))})})]}),c("div",{className:ce(e,jn("top"),"w-full overflow-x-auto max-small:hidden"),children:c("div",{className:"mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow",children:t.map(({id:m,title:h})=>c(nt,{variant:m===n?"fill":"ghost",onClick:()=>o(m),children:h},m))})})]})},mi=()=>{const{hideCategoriesNav:e,infiniteCarrousel:t,permanentGallery:n,extendBehavior:o}=rt(),{aspectRatioStyle:s,categories:{length:l}}=ht(),{items:{length:p},slidable:r,carrouselItemIndex:m,masterItemIndex:h,prevItem:M,nextItem:d,showGalleryControls:f,enableHotspotsControl:i,showHotspots:C,toggleHotspots:I,showGallery:E,toggleGallery:v,extendMode:L,toggleExtendMode:x,shownDetails:_,isShowingDetails:T,resetShownDetails:P,showZoomControls:H,isZooming:k,canZoomIn:W,zoomIn:S,canZoomOut:O,zoomOut:j,resetView:Y}=tt(),N=X(R=>{oi(R)&&P()},[P]);ni(P);const U="absolute z-overlay";return c(Xe,{children:[!e&&l>1&&c(hi,{sharedClassName:ce(U,"transition-opacity",k?"!pointer-events-none opacity-0":"opacity-100")}),r&&!k&&c("div",{className:ce(U,kt("top-right")),children:c(ai,{currentIndex:m,maxIndex:p-1})}),r&&c(Xe,{children:[c(nt,{shape:"icon",color:"neutral",className:ce(U,kt("middle-left"),k?"!pointer-events-none opacity-0":"opacity-100"),onClick:M,disabled:!t&&h<=0,children:c(Ze,{customizationKey:"CONTROLS_PREV",children:c(co,{className:"size-full -scale-x-100"})})}),c(nt,{shape:"icon",color:"neutral",className:ce(U,kt("middle-right"),k?"!pointer-events-none opacity-0":"opacity-100"),onClick:d,disabled:!t&&h>=p-1,children:c(Ze,{customizationKey:"CONTROLS_NEXT",children:c(co,{className:"size-full"})})})]}),c("div",{className:ce(U,kt("bottom-fullW"),"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"),children:[!n&&r&&c(Xe,{children:[c(nt,{className:f&&!k?"opacity-100":"!pointer-events-none opacity-0",variant:"fill",color:E?"primary":"neutral",shape:"icon",onClick:v,children:c(si,{className:"size-full"})}),E&&c(to,{className:ce("transition-opacity",f&&!k?"opacity-100":"!pointer-events-none opacity-0","[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"),containerClassName:"mx-1"})]}),c("div",{className:"col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2",children:[i&&c(pi,{className:ce("transition-opacity",k?"!pointer-events-none opacity-0":"opacity-100"),enabled:C,onToggle:I,children:c(li,{className:"size-full"})}),H&&c("div",{className:"max-small:hidden",children:[c(nt,{className:"rounded-b-none",color:"neutral",shape:"icon",disabled:!W,onClick:S,children:c(ui,{className:"size-full"})}),c(eo,{color:"background"}),c(nt,{className:"rounded-t-none",color:"neutral",shape:"icon",disabled:!O,onClick:j,children:c(ci,{className:"size-full"})})]}),o!=="none"&&c(nt,{variant:"fill",color:L?"primary":"neutral",shape:"icon",onClick:x,children:L?c(di,{className:"size-full"}):c(ii,{className:"size-full"})})]})]}),c("div",{className:ce(U,"inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",T?"opacity-100":"pointer-events-none opacity-0"),onClick:N,children:c("div",{className:ce("h-full w-3/5 bg-background transition-transform duration-details",T?"translate-x-0":"translate-x-full"),children:!!_&&c(Xe,{children:[c(Tt,{className:"w-full bg-foreground/65",style:s,src:_.src,imgInPlayerWidthRatio:.6}),c("div",{className:ce("space-y-1 px-2 py-1 small:p-3",L&&"large:p-4"),children:[_.title&&c("span",{className:ce("text-sm font-semibold small:text-base small:font-bold",L&&"large:text-lg"),children:_.title}),_.text&&c("p",{className:ce("text-xs text-foreground/65 small:text-sm",L&&"large:text-base"),children:_.text})]})]})})}),(k||T)&&c($n,{className:ce(U,kt("top-right")),onClick:Y})]})},gi=({className:e=""})=>{const{infiniteCarrousel:t,preloadRange:n,isFullScreen:o}=rt(),{aspectRatioStyle:s}=ht(),{items:l,slidable:p,carrouselItemIndex:r,setCarrouselItemIndex:m,itemIndexCommand:h,setItemIndexCommand:M,specialCommand:d,isRunningSpecialCommand:f,finishSpecialCommand:i,extendMode:C,extendTransition:I}=tt(),E=Ce(null),v=X(N=>{if(!E.current)throw new Error(`[${N??"sliderOrThrow"}] slider.current is null`);return E.current},[]),L=Ce(!1),x=Ce(null),_=Ce(null),T=Ce(null),P=X(()=>{T.current&&cancelAnimationFrame(T.current)},[]),H=X(()=>{const N=v("computeClosestSnapIndex"),U=Array.from(N.children),R=N.scrollLeft;return U.reduce((J,me,we)=>{const Ie=me.offsetLeft;return Math.abs(Ie-R)<Math.abs(U[J].offsetLeft-R)?we:J},0)},[v]),k=X(N=>{const U=v("setStyleCursor");U.style.cursor=N},[v]),W=X(N=>{const U=v("setStyleSnapState");N==="mandatory"?U.style.scrollSnapType="x mandatory":U.style.scrollSnapType="none"},[v]),S=X((N,U,R)=>{P();const B=v("scrollToIndex"),J=Array.from(B.children),me=B.scrollLeft,we=J[N].offsetLeft,Ie=ze=>{B.scrollTo({left:ze,behavior:"instant"})},oe=()=>{Ie(we),W("mandatory"),R?.()},re=Math.abs(me-we);if(re<1||U==="instant"){oe();return}const $=st(re/2.5,300,1e3),ve=new Date().getTime();W("none");const F=()=>{const ze=()=>{const Pe=new Date().getTime()-ve;if(Pe>=$){oe();return}const Ge=Math.min(Pe/$,1),qe=ro(Ge),Ve=Gt(me,we,qe);Ie(Ve),F()};T.current=requestAnimationFrame(ze)};F()},[P,v,W]),[O,j]=be(),Y=!!O;return pe(()=>{const N=()=>{clearTimeout(O);const U=setTimeout(()=>{j(void 0)},Un);j(U)};return addEventListener("resize",N),document.addEventListener("fullscreenchange",N),()=>{removeEventListener("resize",N),document.removeEventListener("fullscreenchange",N)}},[O]),pe(()=>{if(d)return;const N=H();Number.isNaN(N)||N!==r&&S(r,"instant")},[r,H,S,d,l,O,o,C,I]),pe(()=>{if(!p||f){k("auto");return}const N=E.current;if(!N)return;k("grab"),W("mandatory");const U=J=>{J.button===0&&(J.preventDefault(),J.stopPropagation(),P(),L.current=!0,x.current=J.pageX-N.offsetLeft,_.current=N.scrollLeft,k("grabbing"))},R=J=>{if(!L.current)return;if(x.current===null)throw new Error("[onMouseMove] startX is null");W("none");const we=J.pageX-N.offsetLeft-x.current;requestAnimationFrame(()=>{if(_.current===null)throw new Error("[onMouseMove] scrollLeft is null");N.scrollLeft=_.current-we})},B=()=>{if(!L.current)return;L.current=!1,k("grab");const J=H();S(J,"smooth")};return N.addEventListener("mousedown",U),document.addEventListener("mousemove",R),document.addEventListener("mouseleave",B),document.addEventListener("mouseup",B),document.addEventListener("contextmenu",B),()=>{N.removeEventListener("mousedown",U),document.removeEventListener("mousemove",R),document.removeEventListener("mouseleave",B),document.removeEventListener("mouseup",B),document.removeEventListener("contextmenu",B)}},[P,H,f,S,k,W,p]),pe(()=>{if(I||Y)return;const N=E.current;if(!N)return;const U=()=>{const R=H();Number.isNaN(R)||(m(R),R===h&&M(null))};return N.addEventListener("scroll",U),()=>{N.removeEventListener("scroll",U)}},[H,I,Y,h,m,M]),pe(()=>{if(h===null)return;const N=()=>{setTimeout(()=>{M(null),i()},75)};switch(d){case"first_to_last":S(l.length-1,"instant",N);break;case"last_to_first":S(0,"instant",N);break;case"instant":S(h,"instant",N);break;default:S(h,"smooth");break}},[d,i,h,l.length,S,M]),c("div",{className:ce("relative overflow-hidden rounded-carrousel transition-radius",e),style:s,children:[c("div",{ref:E,className:`flex size-full ${p?"overflow-x-auto no-scrollbar *:snap-start *:snap-always":"justify-center"}`,children:l.map((N,U)=>{const R=U===r,B=U===0,J=U===l.length-1,me=(()=>{if(d==="first_to_last"&&B)return{transform:`translateX(${100*l.length}%)`};if(d==="last_to_first"&&J)return{transform:`translateX(-${100*l.length}%)`}})();let we=Math.abs(U-r)<=n;we||=U===h,t&&(we||=r<n&&l.length-U<=n-r,we||=r>=l.length-n&&U<=n-(l.length-r));const Ie=(()=>{let oe;switch(N.type){case"360":oe=N.images[0].src;break;case"interior-360":oe=N.poster??"interior-360";break;case"image":oe=N.src;break;case"video":oe=N.poster??"video";break;case"custom":oe="custom";break;default:oe="unknown"}return`${U}_${oe}`})();return c("div",{className:ce("h-full bg-foreground/35",r===U&&"z-1"),style:{...s,...me},children:we&&c(ri,{index:U,item:N,isShown:R})},Ie)})}),c(mi,{})]})},vi=()=>{const{permanentGallery:e}=rt(),{aspectRatioStyle:t}=ht(),{prevItem:n,nextItem:o,isShowingDetails:s,resetShownDetails:l,extendMode:p,disableExtendMode:r,isZooming:m,resetZoom:h,fakeFullScreen:M}=tt(),d=Ce(null),f=Ce(null),i=Ce(null);return pe(()=>{if(!p)return;const C=d.current,I=f.current,E=i.current;if(!C||!I||!E)return;let v=!1;const L=T=>[C,I,E].includes(T.target),x=T=>{v=L(T)},_=T=>{v&&(L(T)&&r(),v=!1)};return C.addEventListener("mousedown",x),C.addEventListener("mouseup",_),()=>{C.removeEventListener("mousedown",x),C.removeEventListener("mouseup",_)}},[r,p]),pe(()=>{const C=I=>{I.key==="Escape"&&(m?h():s?l():r())};return addEventListener("keydown",C),()=>{removeEventListener("keydown",C)}},[r,s,m,o,n,l,h]),c("div",{ref:d,className:ce("relative",p&&"flex size-full items-center justify-center",M&&"fixed inset-0 z-overlay bg-foreground/75"),children:[c("div",{ref:f,className:p?"flex size-full flex-col justify-center gap-y-2 small:gap-y-4":"space-y-2",children:[c("div",{ref:i,className:ce(p&&"mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"),style:t,children:c(gi,{className:ce(p&&"h-full min-w-0")})}),e&&c(to,{className:ce(p&&"my-2 shrink-0 small:my-4")})]}),p&&c($n,{className:"absolute right-2 top-2 small:right-4 small:top-4",onClick:r})]})},_i=()=>{const{emitEvent:e,compositionUrl:t}=rt(),{data:n,status:o,isSuccess:s,error:l}=ca(t);return pe(()=>{l?e(Nr,l):o==="fetching"?e(Pr,t):s&&e(Sr,n)},[n,t,e,l,s,o]),l?c(xr,{className:"aspect-square text-foreground/70",text:"Player could not be loaded"}):s?c(da,{composition:n,children:c(fa,{children:c(vi,{})})}):c("div",{className:"flex aspect-square size-full flex-col items-center justify-center gap-y-4",children:[c("div",{className:"animate-pulse text-xl",children:"Loading Player"}),c(qn,{color:"foreground"})]})},wi=({compositionUrl:e,hideCategoriesNav:t=!1,infiniteCarrousel:n=!1,permanentGallery:o=!1,mediaLoadStrategy:s=_o,minMediaWidth:l=0,maxMediaWidth:p=1/0,preloadRange:r=1,autoLoad360:m=!1,autoLoadInterior360:h=!1,categoriesFilter:M=wo,extendBehavior:d=bo,eventPrefix:f=Ur,demoSpin:i=!1,reverse360:C=!1,children:I})=>{const E=Ce(null),[v,L]=be(.5),[x,_]=be(!1),T=X((k,W)=>{const S=f+k,O=new CustomEvent(S,{detail:W});document.dispatchEvent(O)},[f]);pe(()=>{if(x){L(1);return}if(!E.current)return;const k=E.current,W=()=>{const S=window.innerWidth,O=k.clientWidth;L(O/S)};return W(),addEventListener("resize",W),()=>{removeEventListener("resize",W)}},[x]),pe(()=>{if(d!=="full_screen")return;const k=E.current;if(!k)throw new Error("Wrapper not found");const W=()=>{const{fullscreenElement:S}=document;_(S===k||S?.localName===lt)};return document.addEventListener("fullscreenchange",W),()=>{document.removeEventListener("fullscreenchange",W)}},[d]);const P=X(async()=>{const k=E.current;if(!k)throw new Error("Wrapper not found");try{return await k.requestFullscreen(),!0}catch{return!1}},[]),H=X(async()=>{try{return await document.exitFullscreen(),!0}catch{return!1}},[]);return c(ua,{compositionUrl:e,hideCategoriesNav:t,infiniteCarrousel:n,permanentGallery:o,mediaLoadStrategy:s,minMediaWidth:l,maxMediaWidth:p,preloadRange:r,categoriesFilter:M,autoLoad360:m,autoLoadInterior360:h,extendBehavior:d,demoSpin:i,reverse360:C,emitEvent:T,playerInViewportWidthRatio:v,isFullScreen:x,requestFullscreen:P,exitFullscreen:H,children:c(pa,{children:[c("div",{ref:E,className:"select-none text-foreground",style:{"--background":"var(--cc-webplayer-background, 0 0% 100%)","--foreground":"var(--cc-webplayer-foreground, 240 10% 3.9%)","--primary":"var(--cc-webplayer-primary, 216 100% 52%)","--primary-foreground":"var(--cc-webplayer-primary-foreground, var(--background))","--primary-light":"var(--cc-webplayer-primary-light, var(--primary))","--neutral":"var(--cc-webplayer-neutral, 0 0% 39%)","--neutral-foreground":"var(--cc-webplayer-neutral-foreground, var(--foreground))","--radius-ui":"var(--cc-webplayer-radius-ui, 16px)","--radius-carrousel":"var(--cc-webplayer-radius-carrousel, 0)","--radius-gallery":"var(--cc-webplayer-radius-gallery, 0)"},children:c(_i,{})}),I]})})},bi=({children:e,index:t,thumbnailSrc:n})=>{const{registerCustomMedia:o,unregisterCustomMedia:s}=Ot();return pe(()=>{if(!e)return;const l=o({Media:e,index:t,thumbnailSrc:n});return()=>{s(l)}},[e,s,t,o,n]),null},yi=e=>yr()?c(bi,{...e}):c("slot",{}),xi=({name:e,children:t})=>{const{registerIconConfig:n,unregisterIconConfig:o}=Ot();return pe(()=>{if(t)return n(e,{Icon:t}),()=>{o(e)}},[t,e,n,o]),null},Ei=e=>yr()?c(xi,{...e}):c("slot",{}),Ci=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-x-1{left:4px;right:4px}.inset-y-1{top:4px;bottom:4px}.-bottom-1{bottom:-4px}.-left-1{left:-4px}.-right-1{right:-4px}.-top-1{top:-4px}.bottom-0{bottom:0}.bottom-1{bottom:4px}.left-0{left:0}.left-1{left:4px}.left-1\\/2{left:50%}.right-1{right:4px}.right-2{right:8px}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-2{top:8px}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-1{z-index:1}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:4px;margin-right:4px}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:8px;margin-bottom:8px}.-ml-px{margin-left:-1px}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-1{width:4px;height:4px}.size-12{width:48px;height:48px}.size-20{width:80px;height:80px}.size-4{width:16px;height:16px}.size-5{width:20px;height:20px}.size-8{width:32px;height:32px}.size-full{width:100%;height:100%}.h-1{height:4px}.h-10{height:40px}.h-20{height:80px}.h-3\\/4{height:75%}.h-5{height:20px}.h-8{height:32px}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0}.w-12{width:48px}.w-3\\/5{width:60%}.w-8{width:32px}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-\\[calc\\(100\\%\\+2px\\)\\]{width:calc(100% + 2px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0}.max-w-40{max-width:160px}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: 6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-scale-x-100{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:1}0%,to{opacity:0}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-x-1{-moz-column-gap:4px;column-gap:4px}.gap-x-2{-moz-column-gap:8px;column-gap:8px}.gap-x-4{-moz-column-gap:16px;column-gap:16px}.gap-y-1{row-gap:4px}.gap-y-2{row-gap:8px}.gap-y-4{row-gap:16px}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2px * var(--tw-space-x-reverse));margin-left:calc(2px * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(8px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(8px * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + 2px)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - 2px)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-foreground{border-color:hsl(var(--foreground))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:2px}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.py-0\\.5{padding-top:2px;padding-bottom:2px}.py-1{padding-top:4px;padding-bottom:4px}.pl-6{padding-left:24px}.pr-12{padding-right:48px}.pr-4{padding-right:16px}.pt-8{padding-top:32px}.text-2xl{font-size:24px;line-height:32px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/65{color:hsl(var(--foreground) / .65)}.text-foreground\\/70{color:hsl(var(--foreground) / .7)}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-primary-light{color:hsl(var(--primary-light))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-radius{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:size-full>*{width:100%;height:100%}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.\\*\\:object-cover>*{-o-object-fit:cover;object-fit:cover}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:8px;right:8px}.small\\:inset-y-2{top:8px;bottom:8px}.small\\:bottom-2{bottom:8px}.small\\:left-2{left:8px}.small\\:right-2{right:8px}.small\\:right-4{right:16px}.small\\:top-2{top:8px}.small\\:top-4{top:16px}.small\\:my-4{margin-top:16px;margin-bottom:16px}.small\\:hidden{display:none}.small\\:h-12{height:48px}.small\\:h-28{height:112px}.small\\:max-w-48{max-width:192px}.small\\:gap-2{gap:8px}.small\\:gap-x-2{-moz-column-gap:8px;column-gap:8px}.small\\:gap-y-2{row-gap:8px}.small\\:gap-y-4{row-gap:16px}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(4px * var(--tw-space-x-reverse));margin-left:calc(4px * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-3{padding:12px}.small\\:px-2{padding-left:8px;padding-right:8px}.small\\:py-1{padding-top:4px;padding-bottom:4px}.small\\:pl-8{padding-left:32px}.small\\:pr-6{padding-right:24px}.small\\:text-base{font-size:16px;line-height:24px}.small\\:text-sm{font-size:14px;line-height:20px}.small\\:font-bold{font-weight:700}}@media (min-width: 1280px){.large\\:h-20{height:80px}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:224px}.large\\:gap-4{gap:16px}.large\\:p-2{padding:8px}.large\\:p-4{padding:16px}.large\\:text-base{font-size:16px;line-height:24px}.large\\:text-lg{font-size:18px;line-height:28px}}.pnlm-container{margin:0;padding:0;overflow:hidden;position:relative;cursor:default;width:100%;height:100%;font-family:Helvetica,Nimbus Sans L,Liberation Sans,Arial,sans-serif;background:#f4f4f4 url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='67'%20height='100'%20viewBox='0%200%2067%20100'%3e%3cpath%20stroke='%23ccc'%20fill='none'%20d='M33.5,50,0,63,33.5,75,67,63,33.5,50m-33.5-50,67,25m-0.5,0,0,75m-66.5-75,67-25m-33.5,75,0,25m0-100,0,50'/%3e%3c/svg%3e") repeat;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none;outline:0;line-height:1.4;contain:content;touch-action:none}.pnlm-container *{box-sizing:content-box}.pnlm-ui{position:absolute;width:100%;height:100%;z-index:1}.pnlm-grab{cursor:grab;cursor:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='26'%20width='26'%3e%3cpath%20stroke='%23000'%20stroke-width='1px'%20fill='%23fff'%20d='m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55'/%3e%3c/svg%3e") 12 8,default}.pnlm-grabbing{cursor:grabbing;cursor:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='26'%20width='26'%3e%3cpath%20stroke='%23000'%20stroke-width='1px'%20fill='%23fff'%20d='m15.3%2020.5s5.07-5.29%203.77-6.74c-1.31-1.45-2.53%200.14-2.53%200.14s2.74-3.29%200.535-4.06c-2.2-0.769-2.52%201.3-2.52%201.3s0.81-2.13-1.12-2.13-1.52%201.77-1.52%201.77-0.261-1.59-1.87-1.12c-1.61%200.468-0.874%202.17-0.874%202.17s-0.651-1.55-2-0.445c-1.35%201.11-0.68%202.25-0.365%203.62%200.836%202.43%202.03%202.94%202.17%205.55'/%3e%3c/svg%3e") 12 8,default}.pnlm-sprite{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='26'%20height='208'%3e%3ccircle%20fill-opacity='.78'%20cy='117'%20cx='13'%20r='11'%20fill='%23fff'/%3e%3ccircle%20fill-opacity='.78'%20cy='143'%20cx='13'%20r='11'%20fill='%23fff'/%3e%3ccircle%20cy='169'%20cx='13'%20r='7'%20fill='none'%20stroke='%23000'%20stroke-width='2'/%3e%3ccircle%20cy='195'%20cx='13'%20r='7'%20fill='none'%20stroke='%23000'%20stroke-width='2'/%3e%3ccircle%20cx='13'%20cy='195'%20r='2.5'/%3e%3cpath%20d='m5%2083v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-5%205v6h6v-6zm-5%205v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z'/%3e%3cpath%20d='m13%20110a7%207%200%200%200%20-7%207%207%207%200%200%200%207%207%207%207%200%200%200%207%20-7%207%207%200%200%200%20-7%20-7zm-1%203h2v2h-2zm0%203h2v5h-2z'/%3e%3cpath%20d='m5%2057v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-10%2010v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z'/%3e%3cpath%20d='m17%2038v2h-8v-2z'/%3e%3cpath%20d='m12%209v3h-3v2h3v3h2v-3h3v-2h-3v-3z'/%3e%3cpath%20d='m13%20136-6.125%206.125h4.375v7.875h3.5v-7.875h4.375z'/%3e%3cpath%20d='m10.428%20173.33v-5.77l5-2.89v5.77zm1-1.73%203-1.73-3.001-1.74z'/%3e%3c/svg%3e")}.pnlm-container:fullscreen{height:100%!important;width:100%!important;position:static!important}.pnlm-render-container{cursor:inherit;position:absolute;height:100%;width:100%}.pnlm-controls{margin-top:4px;background-color:#fff;border:1px solid #999;border-color:#0006;border-radius:3px;cursor:pointer;z-index:2;transform:translateZ(9999px)}.pnlm-control:hover{background-color:#f8f8f8}.pnlm-controls-container{position:absolute;top:0;left:4px;z-index:1}.pnlm-zoom-controls{width:26px;height:52px}.pnlm-zoom-in{width:100%;height:50%;position:absolute;top:0;border-radius:3px 3px 0 0}.pnlm-zoom-out{width:100%;height:50%;position:absolute;bottom:0;background-position:0 -26px;border-top:1px solid #ddd;border-top-color:#0000001a;border-radius:0 0 3px 3px}.pnlm-fullscreen-toggle-button,.pnlm-orientation-button,.pnlm-hot-spot-debug-indicator{width:26px;height:26px}.pnlm-hot-spot-debug-indicator{position:absolute;top:50%;left:50%;width:26px;height:26px;margin:-13px 0 0 -13px;background-color:#ffffff80;border-radius:13px;display:none}.pnlm-orientation-button-inactive{background-position:0 -156px}.pnlm-orientation-button-active{background-position:0 -182px}.pnlm-fullscreen-toggle-button-inactive{background-position:0 -52px}.pnlm-fullscreen-toggle-button-active{background-position:0 -78px}.pnlm-panorama-info{position:absolute;bottom:4px;background-color:#000000b3;border-radius:0 3px 3px 0;padding-right:10px;color:#fff;text-align:left;display:none;z-index:2;transform:translateZ(9999px)}.pnlm-title-box{position:relative;font-size:20px;display:table;padding-left:5px;margin-bottom:3px}.pnlm-author-box{position:relative;font-size:12px;display:table;padding-left:5px}.pnlm-load-box{position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:#000000b3;border-radius:3px;text-align:center;font-size:20px;display:none;color:#fff}.pnlm-load-box p{margin:20px 0}.pnlm-lbox{position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;display:none}.pnlm-loading{animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-name:pnlm-mv;-webkit-animation-name:pnlm-mv;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;animation-timing-function:linear;-webkit-animation-timing-function:linear;height:10px;width:10px;background-color:#fff;position:relative}@keyframes pnlm-mv{0%{left:0;top:0}25%{left:10px;top:0}50%{left:10px;top:10px}75%{left:0;top:10px}to{left:0;top:0}}.pnlm-load-button{position:absolute;top:50%;left:50%;width:200px;height:100px;margin:-50px 0 0 -100px;background-color:#000000b3;border-radius:3px;text-align:center;font-size:20px;display:table;color:#fff;cursor:pointer}.pnlm-load-button:hover{background-color:#000c}.pnlm-load-button p{display:table-cell;vertical-align:middle}.pnlm-info-box{font-size:15px;position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:#000;border-radius:3px;display:table;text-align:center;color:#fff;table-layout:fixed}.pnlm-info-box a{color:#fff;word-wrap:break-word;overflow-wrap:break-word}.pnlm-info-box p{display:table-cell;vertical-align:middle;padding:0 5px}.pnlm-error-msg{display:none}.pnlm-about-msg{font-size:11px;line-height:11px;color:#fff;padding:5px 8px;background:#000000b3;border-radius:3px;position:absolute;top:50px;left:50px;display:none;opacity:0;transition:opacity .3s ease-in-out;z-index:1}.pnlm-about-msg a:link,.pnlm-about-msg a:visited{color:#fff}.pnlm-about-msg a:hover,.pnlm-about-msg a:active{color:#eee}.pnlm-hotspot-base{position:absolute;visibility:hidden;cursor:default;vertical-align:middle;top:0;z-index:1}.pnlm-hotspot{height:26px;width:26px;border-radius:13px}.pnlm-hotspot:hover{background-color:#fff3}.pnlm-hotspot.pnlm-info{background-position:0 -104px}.pnlm-hotspot.pnlm-scene{background-position:0 -130px}div.pnlm-tooltip span{visibility:hidden;position:absolute;border-radius:3px;background-color:#000000b3;color:#fff;text-align:center;max-width:200px;padding:5px 10px;margin-left:-220px;cursor:default}div.pnlm-tooltip:hover span{visibility:visible}div.pnlm-tooltip:hover span:after{content:"";position:absolute;width:0;height:0;border-width:10px;border-style:solid;border-color:rgba(0,0,0,.7) transparent transparent transparent;bottom:-20px;left:-10px;margin:0 50%}.pnlm-compass{position:absolute;width:50px;height:50px;right:4px;bottom:4px;border-radius:25px;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='50'%20width='50'%3e%3cpath%20d='m24.5078%206-3.2578%2018h7.5l-3.25781-18h-0.984376zm-3.2578%2020%203.2578%2018h0.9844l3.2578-18h-7.5zm1.19531%200.9941h5.10938l-2.5547%2014.1075-2.5547-14.1075z'/%3e%3c/svg%3e");cursor:default;display:none}.pnlm-world{position:absolute;left:50%;top:50%}.pnlm-face{position:absolute;transform-origin:0 0 0}.pnlm-dragfix,.pnlm-preview-img{position:absolute;height:100%;width:100%}.pnlm-preview-img{background-size:cover;background-position:center}.pnlm-lbar{width:150px;margin:0 auto;border:#fff 1px solid;height:6px}.pnlm-lbar-fill{background:#fff;height:100%;width:0}.pnlm-lmsg{font-size:12px}.pnlm-fade-img{position:absolute;top:0;left:0}.pnlm-pointer{cursor:pointer}#textInfo .tooltip-content{font-size:1.6em;position:absolute;left:-70px;bottom:80px;width:200px;pointer-events:none;background-color:#333;color:#fff;line-height:1.2em;padding:.8em;opacity:0;transform-origin:50% calc(100% + 6em);transform:rotate3d(0,0,1,15deg);transition:opacity .5s,transform .5s;transition-timing-function:ease,cubic-bezier(.17,.67,.4,1.39)}#textInfo:hover{z-index:3}#textInfo:hover .tooltip-content{opacity:1;pointer-events:all;transform:translateZ(0) rotate3d(0,0,0,0)}#textInfo .hotspot{cursor:pointer;box-sizing:border-box}#textInfo .hotspot .out:before{speak:none;font-size:48px;line-height:90px;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;display:block;-webkit-font-smoothing:antialiased}#textInfo .hotspot .out{width:60px;height:60px;border-radius:50%;border:5px solid rgba(255,255,255,.8);transition:transform ease-out .1s,border .2s;box-sizing:border-box}#textInfo .hotspot .in{width:40px;height:40px;position:absolute;top:10px;left:10px;background-color:#fffc;border-radius:50%;transition:transform ease-out .1s,background .2s}#textInfo .hotspot .out:after{top:0;left:0;padding:0;z-index:-1;box-shadow:0 0 0 2px #ffffff1a;opacity:0;pointer-events:none;position:absolute;width:100%;height:100%;border-radius:50%;content:"";box-sizing:content-box;transform:scale(.9)}#textInfo .hotspot:hover .out{border:5px solid rgba(255,255,255,1);transform:scale(.9);color:#fff}#textInfo .hotspot:hover .in{background-color:#fff;transform:scale(.8)}#textInfo .hotspot:hover .out:after{animation:sonarEffect 1.2s ease-out}@keyframes sonarEffect{0%{opacity:.5}20%{opacity:.8;box-shadow:0 0 0 2px #ffffff1a,0 0 10px 10px #25aae1cc,0 0 0 10px #ffffff80}to{box-shadow:0 0 0 2px #ffffff1a,0 0 10px 10px #25aae1cc,0 0 0 10px #ffffff80;transform:scale(1.5);opacity:0}}`;function Mi(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,o)=>`${n}-${o.toLowerCase()}`)}function Er(e){return Object.entries(e).reduce((t,[n,o])=>{if(o!==void 0){const s=Mi(n);t[s]=o.toString()}return t},{})}const Li=e=>c(Xe,{children:[c("style",{children:Ci}),c(wi,{...e})]}),ki=e=>Er(e),Ti=e=>Er(e),Ii=e=>Er(e);function Pi(e){return{render:function(t){Nn(t,e)},unmount:function(){On(e)}}}var Si=Object.defineProperty,Ni=(e,t,n)=>t in e?Si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qt=(e,t,n)=>(Ni(e,typeof t!="symbol"?t+"":t,n),n);const Ri={stringify:e=>e,parse:e=>e},Ai={stringify:e=>`${e}`,parse:e=>parseFloat(e)},Di={stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},zi={stringify:e=>e.name,parse:(e,t,n)=>{const o=(()=>{if(typeof window<"u"&&e in window)return window[e];if(typeof global<"u"&&e in global)return global[e]})();return typeof o=="function"?o.bind(n):void 0}},Oi={stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},Cr={string:Ri,number:Ai,boolean:Di,function:zi,json:Oi};function Hi(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,o)=>`${n}-${o.toLowerCase()}`)}const er=Symbol.for("r2wc.render"),tr=Symbol.for("r2wc.connected"),wt=Symbol.for("r2wc.context"),mt=Symbol.for("r2wc.props");function Fi(e,t,n){var o,s,l;t.props||(t.props=e.propTypes?Object.keys(e.propTypes):[]);const p=Array.isArray(t.props)?t.props.slice():Object.keys(t.props),r={},m={},h={};for(const d of p){r[d]=Array.isArray(t.props)?"string":t.props[d];const f=Hi(d);m[d]=f,h[f]=d}class M extends HTMLElement{constructor(){super(),Qt(this,o,!0),Qt(this,s),Qt(this,l,{}),Qt(this,"container"),t.shadow?this.container=this.attachShadow({mode:t.shadow}):this.container=this,this[mt].container=this.container;for(const f of p){const i=m[f],C=this.getAttribute(i),I=r[f],E=I?Cr[I]:null;E!=null&&E.parse&&C&&(this[mt][f]=E.parse(C,i,this))}}static get observedAttributes(){return Object.keys(h)}connectedCallback(){this[tr]=!0,this[er]()}disconnectedCallback(){this[tr]=!1,this[wt]&&n.unmount(this[wt]),delete this[wt]}attributeChangedCallback(f,i,C){const I=h[f],E=r[I],v=E?Cr[E]:null;I in r&&v!=null&&v.parse&&C&&(this[mt][I]=v.parse(C,f,this),this[er]())}[(o=tr,s=wt,l=mt,er)](){this[tr]&&(this[wt]?n.update(this[wt],this[mt]):this[wt]=n.mount(this.container,e,this[mt]))}}for(const d of p){const f=m[d],i=r[d];Object.defineProperty(M.prototype,d,{enumerable:!0,configurable:!0,get(){return this[mt][d]},set(C){this[mt][d]=C;const I=i?Cr[i]:null;if(I!=null&&I.stringify){const E=I.stringify(C,f,this);this.getAttribute(f)!==E&&this.setAttribute(f,E)}else this[er]()}})}return M}function Ui(e,t,n){const o=Pi(e),s=wr.createElement(t,n);return o.render(s),{root:o,ReactComponent:t}}function Vi({root:e,ReactComponent:t},n){const o=wr.createElement(t,n);e.render(o)}function Wi({root:e}){setTimeout(()=>{e.unmount()},0)}function Mr(e,t={}){return Fi(e,t,{mount:Ui,update:Vi,unmount:Wi})}const Bi=Mr(Li,{shadow:"closed",props:{compositionUrl:"string",hideCategoriesNav:"boolean",infiniteCarrousel:"boolean",permanentGallery:"boolean",minMediaWidth:"number",maxMediaWidth:"number",mediaLoadStrategy:"string",preloadRange:"number",autoLoad360:"boolean",autoLoadInterior360:"boolean",categoriesFilter:"string",extendBehavior:"string",eventPrefix:"string",demoSpin:"boolean",reverse360:"boolean"}}),Yi=Mr(yi,{shadow:"closed",props:{index:"number",thumbnailSrc:"string"}}),Xi=Mr(Ei,{shadow:"closed",props:{name:"string"}});function Zi(){customElements.define(lt,Bi),customElements.define(Ft,Yi),customElements.define(Ut,Xi)}function Gi(){Vr()||Zi()}Re.DEFAULT_EVENT_PREFIX=Ur,Re.EVENT_COMPOSITION_LOADED=Sr,Re.EVENT_COMPOSITION_LOADING=Pr,Re.EVENT_COMPOSITION_LOAD_ERROR=Nr,Re.EVENT_EXTEND_MODE_OFF=Dr,Re.EVENT_EXTEND_MODE_ON=Ar,Re.EVENT_GALLERY_CLOSE=Fr,Re.EVENT_GALLERY_OPEN=Hr,Re.EVENT_HOTSPOTS_OFF=Or,Re.EVENT_HOTSPOTS_ON=zr,Re.EVENT_ITEM_CHANGE=Rr,Re.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=Ft,Re.WEB_PLAYER_ICON_WC_TAG=Ut,Re.WEB_PLAYER_WC_TAG=lt,Re.checkCustomElementsDefinition=Vr,Re.ensureCustomElementsDefinition=Gi,Re.generateCompositionUrl=yo,Re.webPlayerCustomMediaPropsToAttributes=Ti,Re.webPlayerIconPropsToAttributes=Ii,Re.webPlayerPropsToAttributes=ki,Object.defineProperty(Re,Symbol.toStringTag,{value:"Module"})});
|