@car-cutter/wc-webplayer 3.1.3 → 3.2.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 +3140 -3128
- package/dist/index.umd.cjs +5 -5
- package/package.json +5 -5
package/dist/index.umd.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(Ye,ut){typeof exports=="object"&&typeof module<"u"?ut(exports):typeof define=="function"&&define.amd?define(["exports"],ut):(Ye=typeof globalThis<"u"?globalThis:Ye||self,ut(Ye.CarCutterWebplayerWC={}))})(this,(function(Ye){"use strict";const ut="cc-webplayer",Wt="cc-webplayer-custom-media",Bt="cc-webplayer-icon",Dn="composition-loading",zn="composition-loaded",On="composition-load-error",Fn="item-change",Hn="extend-mode-on",Un="extend-mode-off",on="hotspots-on",an="hotspots-off",Vn="gallery-open",Wn="gallery-close",xo="quality",bo="full_screen",Bn="cc-webplayer:",Co="ew-resize",Eo="cc-analytics:";function sn(){if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"){const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;const t=Array.from(e,n=>n.toString(16).padStart(2,"0")).join("");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Lo(e,t){return`https://cdn.car-cutter.com/gallery/${e}/${t}/composition_v3.json`}function Mo(e,t){const n=e.split("/"),o=n.pop();return[n.join("/"),t,o].join("/")}function Io(){const e="car-cutter-webplayer-browser-id",t=typeof window<"u"?window.localStorage.getItem(e):null;if(t)return t;const n=sn();return typeof window<"u"&&window.localStorage.setItem(e,n),n}function ko(){const e="car-cutter-webplayer-session-id",t=typeof window<"u"?window.sessionStorage.getItem(e):null;if(t)return t;const n=sn();return typeof window<"u"&&window.sessionStorage.setItem(e,n),n}function To(){return sn()}function Zn(){return!!customElements.get(ut)&&!!customElements.get(Wt)&&!!customElements.get(Bt)}var St,Me,Xn,wt,Yn,Gn,$n,jn,ln,cn,un,qn,Nt={},Kn=[],So=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pt=Array.isArray;function lt(e,t){for(var n in t)e[n]=t[n];return e}function dn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function dt(e,t,n){var o,s,i,u={};for(i in t)i=="key"?o=t[i]:i=="ref"?s=t[i]:u[i]=t[i];if(arguments.length>2&&(u.children=arguments.length>3?St.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)u[i]===void 0&&(u[i]=e.defaultProps[i]);return Rt(e,u,o,s,null)}function Rt(e,t,n,o,s){var i={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++Xn,__i:-1,__u:0};return s==null&&Me.vnode!=null&&Me.vnode(i),i}function No(){return{current:null}}function et(e){return e.children}function ct(e,t){this.props=e,this.context=t}function Et(e,t){if(t==null)return e.__?Et(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"?Et(e):null}function Jn(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 Jn(e)}}function fn(e){(!e.__d&&(e.__d=!0)&&wt.push(e)&&!Zt.__r++||Yn!=Me.debounceRendering)&&((Yn=Me.debounceRendering)||Gn)(Zt)}function Zt(){for(var e,t,n,o,s,i,u,r=1;wt.length;)wt.length>r&&wt.sort($n),e=wt.shift(),r=wt.length,e.__d&&(n=void 0,o=void 0,s=(o=(t=e).__v).__e,i=[],u=[],t.__P&&((n=lt({},o)).__v=o.__v+1,Me.vnode&&Me.vnode(n),pn(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[s]:null,i,s??Et(o),!!(32&o.__u),u),n.__v=o.__v,n.__.__k[n.__i]=n,rr(i,n,u),o.__e=o.__=null,n.__e!=s&&Jn(n)));Zt.__r=0}function Qn(e,t,n,o,s,i,u,r,g,m,L){var f,p,a,b,k,M,_,x=o&&o.__k||Kn,E=t.length;for(g=Po(n,t,x,g,E),f=0;f<E;f++)(a=n.__k[f])!=null&&(p=a.__i==-1?Nt:x[a.__i]||Nt,a.__i=f,M=pn(e,a,p,s,i,u,r,g,m,L),b=a.__e,a.ref&&p.ref!=a.ref&&(p.ref&&mn(p.ref,null,a),L.push(a.ref,a.__c||b,a)),k==null&&b!=null&&(k=b),(_=!!(4&a.__u))||p.__k===a.__k?g=er(a,g,e,_):typeof a.type=="function"&&M!==void 0?g=M:b&&(g=b.nextSibling),a.__u&=-7);return n.__e=k,g}function Po(e,t,n,o,s){var i,u,r,g,m,L=n.length,f=L,p=0;for(e.__k=new Array(s),i=0;i<s;i++)(u=t[i])!=null&&typeof u!="boolean"&&typeof u!="function"?(typeof u=="string"||typeof u=="number"||typeof u=="bigint"||u.constructor==String?u=e.__k[i]=Rt(null,u,null,null,null):Pt(u)?u=e.__k[i]=Rt(et,{children:u},null,null,null):u.constructor===void 0&&u.__b>0?u=e.__k[i]=Rt(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):e.__k[i]=u,g=i+p,u.__=e,u.__b=e.__b+1,r=null,(m=u.__i=Ro(u,n,g,f))!=-1&&(f--,(r=n[m])&&(r.__u|=2)),r==null||r.__v==null?(m==-1&&(s>L?p--:s<L&&p++),typeof u.type!="function"&&(u.__u|=4)):m!=g&&(m==g-1?p--:m==g+1?p++:(m>g?p--:p++,u.__u|=4))):e.__k[i]=null;if(f)for(i=0;i<L;i++)(r=n[i])!=null&&(2&r.__u)==0&&(r.__e==o&&(o=Et(r)),ar(r,r));return o}function er(e,t,n,o){var s,i;if(typeof e.type=="function"){for(s=e.__k,i=0;s&&i<s.length;i++)s[i]&&(s[i].__=e,t=er(s[i],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=Et(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ft(e,t){return t=t||[],e==null||typeof e=="boolean"||(Pt(e)?e.some(function(n){ft(n,t)}):t.push(e)),t}function Ro(e,t,n,o){var s,i,u,r=e.key,g=e.type,m=t[n],L=m!=null&&(2&m.__u)==0;if(m===null&&r==null||L&&r==m.key&&g==m.type)return n;if(o>(L?1:0)){for(s=n-1,i=n+1;s>=0||i<t.length;)if((m=t[u=s>=0?s--:i++])!=null&&(2&m.__u)==0&&r==m.key&&g==m.type)return u}return-1}function tr(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||So.test(t)?n:n+"px"}function Xt(e,t,n,o,s){var i,u;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||tr(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||tr(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(jn,"$1")),u=t.toLowerCase(),t=u in e||t=="onFocusOut"||t=="onFocusIn"?u.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?o?n.u=o.u:(n.u=ln,e.addEventListener(t,i?un:cn,i)):e.removeEventListener(t,i?un:cn,i);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 nr(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ln++;else if(t.t<n.u)return;return n(Me.event?Me.event(t):t)}}}function pn(e,t,n,o,s,i,u,r,g,m){var L,f,p,a,b,k,M,_,x,E,v,I,N,K,T,F,Y,P=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(g=!!(32&n.__u),i=[r=t.__e=n.__e]),(L=Me.__b)&&L(t);e:if(typeof P=="function")try{if(_=t.props,x="prototype"in P&&P.prototype.render,E=(L=P.contextType)&&o[L.__c],v=L?E?E.props.value:L.__:o,n.__c?M=(f=t.__c=n.__c).__=f.__E:(x?t.__c=f=new P(_,v):(t.__c=f=new ct(_,v),f.constructor=P,f.render=Do),E&&E.sub(f),f.state||(f.state={}),f.__n=o,p=f.__d=!0,f.__h=[],f._sb=[]),x&&f.__s==null&&(f.__s=f.state),x&&P.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=lt({},f.__s)),lt(f.__s,P.getDerivedStateFromProps(_,f.__s))),a=f.props,b=f.state,f.__v=t,p)x&&P.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),x&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(x&&P.getDerivedStateFromProps==null&&_!==a&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(_,v),t.__v==n.__v||!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(_,f.__s,v)===!1){for(t.__v!=n.__v&&(f.props=_,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(G){G&&(G.__=t)}),I=0;I<f._sb.length;I++)f.__h.push(f._sb[I]);f._sb=[],f.__h.length&&u.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(_,f.__s,v),x&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(a,b,k)})}if(f.context=v,f.props=_,f.__P=e,f.__e=!1,N=Me.__r,K=0,x){for(f.state=f.__s,f.__d=!1,N&&N(t),L=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__d=!1,N&&N(t),L=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++K<25);f.state=f.__s,f.getChildContext!=null&&(o=lt(lt({},o),f.getChildContext())),x&&!p&&f.getSnapshotBeforeUpdate!=null&&(k=f.getSnapshotBeforeUpdate(a,b)),F=L,L!=null&&L.type===et&&L.key==null&&(F=or(L.props.children)),r=Qn(e,Pt(F)?F:[F],t,n,o,s,i,u,r,g,m),f.base=t.__e,t.__u&=-161,f.__h.length&&u.push(f),M&&(f.__E=f.__=null)}catch(G){if(t.__v=null,g||i!=null)if(G.then){for(t.__u|=g?160:128;r&&r.nodeType==8&&r.nextSibling;)r=r.nextSibling;i[i.indexOf(r)]=null,t.__e=r}else{for(Y=i.length;Y--;)dn(i[Y]);hn(t)}else t.__e=n.__e,t.__k=n.__k,G.then||hn(t);Me.__e(G,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):r=t.__e=Ao(n.__e,t,n,o,s,i,u,g,m);return(L=Me.diffed)&&L(t),128&t.__u?void 0:r}function hn(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(hn)}function rr(e,t,n){for(var o=0;o<n.length;o++)mn(n[o],n[++o],n[++o]);Me.__c&&Me.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(i){i.call(s)})}catch(i){Me.__e(i,s.__v)}})}function or(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Pt(e)?e.map(or):lt({},e)}function Ao(e,t,n,o,s,i,u,r,g){var m,L,f,p,a,b,k,M=n.props||Nt,_=t.props,x=t.type;if(x=="svg"?s="http://www.w3.org/2000/svg":x=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),i!=null){for(m=0;m<i.length;m++)if((a=i[m])&&"setAttribute"in a==!!x&&(x?a.localName==x:a.nodeType==3)){e=a,i[m]=null;break}}if(e==null){if(x==null)return document.createTextNode(_);e=document.createElementNS(s,x,_.is&&_),r&&(Me.__m&&Me.__m(t,i),r=!1),i=null}if(x==null)M===_||r&&e.data==_||(e.data=_);else{if(i=i&&St.call(e.childNodes),!r&&i!=null)for(M={},m=0;m<e.attributes.length;m++)M[(a=e.attributes[m]).name]=a.value;for(m in M)if(a=M[m],m!="children"){if(m=="dangerouslySetInnerHTML")f=a;else if(!(m in _)){if(m=="value"&&"defaultValue"in _||m=="checked"&&"defaultChecked"in _)continue;Xt(e,m,null,a,s)}}for(m in _)a=_[m],m=="children"?p=a:m=="dangerouslySetInnerHTML"?L=a:m=="value"?b=a:m=="checked"?k=a:r&&typeof a!="function"||M[m]===a||Xt(e,m,a,M[m],s);if(L)r||f&&(L.__html==f.__html||L.__html==e.innerHTML)||(e.innerHTML=L.__html),t.__k=[];else if(f&&(e.innerHTML=""),Qn(t.type=="template"?e.content:e,Pt(p)?p:[p],t,n,o,x=="foreignObject"?"http://www.w3.org/1999/xhtml":s,i,u,i?i[0]:n.__k&&Et(n,0),r,g),i!=null)for(m=i.length;m--;)dn(i[m]);r||(m="value",x=="progress"&&b==null?e.removeAttribute("value"):b!=null&&(b!==e[m]||x=="progress"&&!b||x=="option"&&b!=M[m])&&Xt(e,m,b,M[m],s),m="checked",k!=null&&k!=e[m]&&Xt(e,m,k,M[m],s))}return e}function mn(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){Me.__e(s,n)}}function ar(e,t,n){var o,s;if(Me.unmount&&Me.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||mn(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(i){Me.__e(i,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&ar(o[s],t,n||typeof e.type!="function");n||dn(e.__e),e.__c=e.__=e.__e=void 0}function Do(e,t,n){return this.constructor(e,n)}function At(e,t,n){var o,s,i,u;t==document&&(t=document.documentElement),Me.__&&Me.__(e,t),s=(o=typeof n=="function")?null:n&&n.__k||t.__k,i=[],u=[],pn(t,e=(!o&&n||t).__k=dt(et,null,[e]),s||Nt,Nt,t.namespaceURI,!o&&n?[n]:s?null:t.firstChild?St.call(t.childNodes):null,i,!o&&n?n:s?s.__e:t.firstChild,o,u),rr(i,e,u)}function ir(e,t){At(e,t,ir)}function zo(e,t,n){var o,s,i,u,r=lt({},e.props);for(i in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)i=="key"?o=t[i]:i=="ref"?s=t[i]:r[i]=t[i]===void 0&&u!=null?u[i]:t[i];return arguments.length>2&&(r.children=arguments.length>3?St.call(arguments,2):n),Rt(e.type,r,o||e.key,s||e.ref,null)}function Dt(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(i){this.props.value!=i.value&&o.forEach(function(u){u.__e=!0,fn(u)})},this.sub=function(i){o.add(i);var u=i.componentWillUnmount;i.componentWillUnmount=function(){o&&o.delete(i),u&&u.call(i)}}),n.children}return t.__c="__cC"+qn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,o){return n.children(o)}).contextType=t,t}St=Kn.slice,Me={__e:function(e,t,n,o){for(var s,i,u;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(e)),u=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,o||{}),u=s.__d),u)return s.__E=s}catch(r){e=r}throw e}},Xn=0,ct.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=lt({},this.state),typeof e=="function"&&(e=e(lt({},n),this.props)),e&<(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),fn(this))},ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),fn(this))},ct.prototype.render=et,wt=[],Gn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$n=function(e,t){return e.__v.__b-t.__v.__b},Zt.__r=0,jn=/(PointerCapture)$|Capture$/i,ln=0,cn=nr(!1),un=nr(!0),qn=0;var Oo=0;function c(e,t,n,o,s,i){t||(t={});var u,r,g=t;if("ref"in g)for(r in g={},t)r=="ref"?u=t[r]:g[r]=t[r];var m={type:e,props:g,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Oo,__i:-1,__u:0,__source:s,__self:i};if(typeof e=="function"&&(u=e.defaultProps))for(r in u)g[r]===void 0&&(g[r]=u[r]);return Me.vnode&&Me.vnode(m),m}var mt,Ge,gn,sr,Lt=0,lr=[],$e=Me,cr=$e.__b,ur=$e.__r,dr=$e.diffed,fr=$e.__c,pr=$e.unmount,hr=$e.__;function Mt(e,t){$e.__h&&$e.__h(Ge,e,Lt||t),Lt=0;var n=Ge.__H||(Ge.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function xe(e){return Lt=1,vn(wr,e)}function vn(e,t,n){var o=Mt(mt++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):wr(void 0,t),function(r){var g=o.__N?o.__N[0]:o.__[0],m=o.t(g,r);g!==m&&(o.__N=[m,o.__[1]],o.__c.setState({}))}],o.__c=Ge,!Ge.__f)){var s=function(r,g,m){if(!o.__c.__H)return!0;var L=o.__c.__H.__.filter(function(p){return!!p.__c});if(L.every(function(p){return!p.__N}))return!i||i.call(this,r,g,m);var f=o.__c.props!==r;return L.forEach(function(p){if(p.__N){var a=p.__[0];p.__=p.__N,p.__N=void 0,a!==p.__[0]&&(f=!0)}}),i&&i.call(this,r,g,m)||f};Ge.__f=!0;var i=Ge.shouldComponentUpdate,u=Ge.componentWillUpdate;Ge.componentWillUpdate=function(r,g,m){if(this.__e){var L=i;i=void 0,s(r,g,m),i=L}u&&u.call(this,r,g,m)},Ge.shouldComponentUpdate=s}return o.__N||o.__}function pe(e,t){var n=Mt(mt++,3);!$e.__s&&wn(n.__H,t)&&(n.__=e,n.u=t,Ge.__H.__h.push(n))}function zt(e,t){var n=Mt(mt++,4);!$e.__s&&wn(n.__H,t)&&(n.__=e,n.u=t,Ge.__h.push(n))}function Ce(e){return Lt=5,ze(function(){return{current:e}},[])}function mr(e,t,n){Lt=6,zt(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 ze(e,t){var n=Mt(mt++,7);return wn(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function B(e,t){return Lt=8,ze(function(){return e},t)}function It(e){var t=Ge.context[e.__c],n=Mt(mt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Ge)),t.props.value):e.__}function gr(e,t){$e.useDebugValue&&$e.useDebugValue(t?t(e):e)}function vr(){var e=Mt(mt++,11);if(!e.__){for(var t=Ge.__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 Fo(){for(var e;e=lr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Yt),e.__H.__h.forEach(_n),e.__H.__h=[]}catch(t){e.__H.__h=[],$e.__e(t,e.__v)}}$e.__b=function(e){Ge=null,cr&&cr(e)},$e.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),hr&&hr(e,t)},$e.__r=function(e){ur&&ur(e),mt=0;var t=(Ge=e.__c).__H;t&&(gn===Ge?(t.__h=[],Ge.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Yt),t.__h.forEach(_n),t.__h=[],mt=0)),gn=Ge},$e.diffed=function(e){dr&&dr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(lr.push(t)!==1&&sr===$e.requestAnimationFrame||((sr=$e.requestAnimationFrame)||Ho)(Fo)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),gn=Ge=null},$e.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Yt),n.__h=n.__h.filter(function(o){return!o.__||_n(o)})}catch(o){t.some(function(s){s.__h&&(s.__h=[])}),t=[],$e.__e(o,n.__v)}}),fr&&fr(e,t)},$e.unmount=function(e){pr&&pr(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{Yt(o)}catch(s){t=s}}),n.__H=void 0,t&&$e.__e(t,n.__v))};var _r=typeof requestAnimationFrame=="function";function Ho(e){var t,n=function(){clearTimeout(o),_r&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);_r&&(t=requestAnimationFrame(n))}function Yt(e){var t=Ge,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Ge=t}function _n(e){var t=Ge;e.__c=e.__(),Ge=t}function wn(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function wr(e,t){return typeof t=="function"?t(e):t}function yr(e,t){for(var n in t)e[n]=t[n];return e}function yn(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 xr(e,t){var n=t(),o=xe({t:{__:n,u:t}}),s=o[0].t,i=o[1];return zt(function(){s.__=n,s.u=t,xn(s)&&i({t:s})},[e,n,t]),pe(function(){return xn(s)&&i({t:s}),e(function(){xn(s)&&i({t:s})})},[e]),n}function xn(e){var t,n,o=e.u,s=e.__;try{var i=o();return!((t=s)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function br(e){e()}function Cr(e){return e}function Er(){return[!1,br]}var Lr=zt;function bn(e,t){this.props=e,this.context=t}function Uo(e,t){function n(s){var i=this.props.ref,u=i==s.ref;return!u&&i&&(i.call?i(null):i.current=null),t?!t(this.props,s)||!u:yn(this.props,s)}function o(s){return this.shouldComponentUpdate=n,dt(e,s)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o.type=e,o}(bn.prototype=new ct).isPureReactComponent=!0,bn.prototype.shouldComponentUpdate=function(e,t){return yn(this.props,e)||yn(this.state,t)};var Mr=Me.__b;Me.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Mr&&Mr(e)};var Vo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ir(e){function t(n){var o=yr({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=Vo,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var kr=function(e,t){return e==null?null:ft(ft(e).map(t))},Wo={map:kr,forEach:kr,count:function(e){return e?ft(e).length:0},only:function(e){var t=ft(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ft},Bo=Me.__e;Me.__e=function(e,t,n,o){if(e.then){for(var s,i=t;i=i.__;)if((s=i.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Bo(e,t,n,o)};var Tr=Me.unmount;function Sr(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=yr({},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 Sr(o,t,n)})),e}function Nr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return Nr(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 Gt(){this.__u=0,this.o=null,this.__b=null}function Pr(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Zo(e){var t,n,o,s=null;function i(u){if(t||(t=e()).then(function(r){r&&(s=r.default||r),o=!0},function(r){n=r,o=!0}),n)throw n;if(!o)throw t;return s?dt(s,u):null}return i.displayName="Lazy",i.__f=!0,i}function Ot(){this.i=null,this.l=null}Me.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Tr&&Tr(e)},(Gt.prototype=new ct).__c=function(e,t){var n=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(n);var s=Pr(o.__v),i=!1,u=function(){i||o.__z||(i=!0,n.__R=null,s?s(g):g())};n.__R=u;var r=n.__P;n.__P=null;var g=function(){if(!--o.__u){if(o.state.__a){var m=o.state.__a;o.__v.__k[0]=Nr(m,m.__c.__P,m.__c.__O)}var L;for(o.setState({__a:o.__b=null});L=o.o.pop();)L.__P=r,L.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(u,u)},Gt.prototype.componentWillUnmount=function(){this.o=[]},Gt.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]=Sr(this.__b,n,o.__O=o.__P)}this.__b=null}var s=t.__a&&dt(et,null,e.fallback);return s&&(s.__u&=-33),[dt(et,null,t.__a?null:e.children),s]};var Rr=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 Xo(e){return this.getChildContext=function(){return e.context},e.children}function Yo(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){At(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var o=t.__v;o!==null&&!o.__m&&o.__!==null;)o=o.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:o.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(s,i){this.childNodes.push(s),t.h.insertBefore(s,i)},removeChild:function(s){this.childNodes.splice(this.childNodes.indexOf(s)>>>1,1),t.h.removeChild(s)}}}At(dt(Xo,{context:t.context},e.__v),t.v)}function Go(e,t){var n=dt(Yo,{__v:e,h:t});return n.containerInfo=t,n}(Ot.prototype=new ct).__a=function(e){var t=this,n=Pr(t.__v),o=t.l.get(e);return o[0]++,function(s){var i=function(){t.props.revealOrder?(o.push(s),Rr(t,e,o)):s()};n?n(i):i()}},Ot.prototype.render=function(e){this.i=null,this.l=new Map;var t=ft(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},Ot.prototype.componentDidUpdate=Ot.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Rr(e,n,t)})};var Ar=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,$o=/^(?: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]/,jo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,qo=/[A-Z0-9]/g,Ko=typeof document<"u",Jo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Dr(e,t,n){return t.__k==null&&(t.textContent=""),At(e,t),typeof n=="function"&&n(),e?e.__c:null}function Qo(e,t,n){return ir(e,t),typeof n=="function"&&n(),e?e.__c:null}ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var zr=Me.event;function ea(){}function ta(){return this.cancelBubble}function na(){return this.defaultPrevented}Me.event=function(e){return zr&&(e=zr(e)),e.persist=ea,e.isPropagationStopped=ta,e.isDefaultPrevented=na,e.nativeEvent=e};var Cn,ra={enumerable:!1,configurable:!0,get:function(){return this.class}},Or=Me.vnode;Me.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,o=t.type,s={},i=o.indexOf("-")===-1;for(var u in n){var r=n[u];if(!(u==="value"&&"defaultValue"in n&&r==null||Ko&&u==="children"&&o==="noscript"||u==="class"||u==="className")){var g=u.toLowerCase();u==="defaultValue"&&"value"in n&&n.value==null?u="value":u==="download"&&r===!0?r="":g==="translate"&&r==="no"?r=!1:g[0]==="o"&&g[1]==="n"?g==="ondoubleclick"?u="ondblclick":g!=="onchange"||o!=="input"&&o!=="textarea"||Jo(n.type)?g==="onfocus"?u="onfocusin":g==="onblur"?u="onfocusout":jo.test(u)&&(u=g):g=u="oninput":i&&$o.test(u)?u=u.replace(qo,"-$&").toLowerCase():r===null&&(r=void 0),g==="oninput"&&s[u=g]&&(u="oninputCapture"),s[u]=r}}o=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=ft(n.children).forEach(function(m){m.props.selected=s.value.indexOf(m.props.value)!=-1})),o=="select"&&s.defaultValue!=null&&(s.value=ft(n.children).forEach(function(m){m.props.selected=s.multiple?s.defaultValue.indexOf(m.props.value)!=-1:s.defaultValue==m.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",ra)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s})(e),e.$$typeof=Ar,Or&&Or(e)};var Fr=Me.__r;Me.__r=function(e){Fr&&Fr(e),Cn=e.__c};var Hr=Me.diffed;Me.diffed=function(e){Hr&&Hr(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),Cn=null};var oa={ReactCurrentDispatcher:{current:{readContext:function(e){return Cn.__n[e.__c].props.value},useCallback:B,useContext:It,useDebugValue:gr,useDeferredValue:Cr,useEffect:pe,useId:vr,useImperativeHandle:mr,useInsertionEffect:Lr,useLayoutEffect:zt,useMemo:ze,useReducer:vn,useRef:Ce,useState:xe,useSyncExternalStore:xr,useTransition:Er}}};function aa(e){return dt.bind(null,e)}function $t(e){return!!e&&e.$$typeof===Ar}function ia(e){return $t(e)&&e.type===et}function sa(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function la(e){return $t(e)?zo.apply(null,arguments):e}function Ur(e){return!!e.__k&&(At(null,e),!0)}function ca(e){return e&&(e.base||e.nodeType===1&&e)||null}var ua=function(e,t){return e(t)},da=function(e,t){return e(t)},fa=et,pa=$t,Vr={useState:xe,useId:vr,useReducer:vn,useEffect:pe,useLayoutEffect:zt,useInsertionEffect:Lr,useTransition:Er,useDeferredValue:Cr,useSyncExternalStore:xr,startTransition:br,useRef:Ce,useImperativeHandle:mr,useMemo:ze,useCallback:B,useContext:It,useDebugValue:gr,version:"18.3.1",Children:Wo,render:Dr,hydrate:Qo,unmountComponentAtNode:Ur,createPortal:Go,createElement:dt,createContext:Dt,createFactory:aa,cloneElement:la,createRef:No,Fragment:et,isValidElement:$t,isElement:pa,isFragment:ia,isMemo:sa,findDOMNode:ca,Component:ct,PureComponent:bn,memo:Uo,forwardRef:Ir,flushSync:da,unstable_batchedUpdates:ua,StrictMode:fa,Suspense:Gt,SuspenseList:Ot,lazy:Zo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:oa};async function ha(e){const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch composition: ${t.statusText}`);return await t.json()}const En=new Map,ma=e=>{const[t,n]=xe({status:"pending",isSuccess:!1});return pe(()=>{const o=i=>n({status:"success",data:i,isSuccess:!0}),s=En.get(e);if(s&&!(s instanceof Promise)){o(s);return}n({status:"fetching",isSuccess:!1}),(async function(){try{let i;if(s)i=await s;else{const u=ha(e);En.set(e,u),i=await u,En.set(e,i)}o(i)}catch(i){n({status:"error",isSuccess:!1,error:i})}})()},[e]),t},Wr=Dt(null),Je=()=>{const e=It(Wr);if(!e)throw new Error("useGlobalContext must be used within a GlobalContextProvider");return e},ga=({children:e,...t})=>c(Wr.Provider,{value:t,children:e}),Br=Dt(null),gt=()=>{const e=It(Br);if(!e)throw new Error("useCompositionContext must be used within a CompositionContextProvider");return e},va=({composition:e,children:t})=>{const{aspectRatio:n,categories:o,imageHdWidth:s,imageSubWidths:i}=e,{minMediaWidth:u,maxMediaWidth:r,categoriesFilter:g}=Je(),m=ze(()=>{if(g==="*")return o;function a(b){return g.split("|").some(k=>new RegExp(`^${k.replace(/\*/g,".*")}$`).test(b))}return o.filter(({id:b})=>a(b))},[o,g]),L=ze(()=>m.flatMap(({items:a})=>a),[m]),f={aspectRatio:n.replace(":"," / ")},p=ze(()=>{const a=i.concat(s),b=a.sort((M,_)=>M-_),k=b.filter(M=>M>=u&&M<=r);if(k.length===0){const M=(u+r)/2,_=a.reduce((x,E)=>Math.abs(E-M)<Math.abs(x-M)?E:x,s);return console.warn(`None of available media widths (${b.join("|")}) match the given constraints (${u>0?`${u} ≤ `:""}width${r<1/0?` ≤ ${r}`:""}).`,`Using the closest width instead (${_}).`),[_]}return k},[i,s,u,r]);return c(Br.Provider,{value:{...e,categories:m,items:L,aspectRatioStyle:f,usedMediaWidths:p},children:t})},Zr=500,yt=.75,vt=1+yt*2,Xr=()=>{const{isFullScreen:e,maxItemsShown:t,integration:n}=Je();return{effectiveMaxItemsShown:n&&e?1:t}};function ot(e,t,n){return Math.min(Math.max(e,t),n)}const jt=(e,t,n)=>e+(t-e)*n,Yr=(e,t,n,o,s,i=!1)=>{const u=ot(e,t,n);if(u===(i?n:t))return o;if(u===(i?t:n))return 1;const r=(u-t)/(n-t),m=1+(i?r:1-r)*(o-1),f=1+Math.round((m-1)/s)*s;return ot(f,1,o)},_a=(e,t)=>{if(t.includes(e))return e;let n=t[0],o=Math.abs(e-n);for(let s=1;s<t.length;s++){const i=Math.abs(e-t[s]);i<o&&(o=i,n=t[s])}return n},Gr=Dt(null),Ln=()=>It(Gr),Ft=()=>{const e=Ln();if(!e)throw new Error("useCustomizationContext must be used within a CustomizationContextProvider");return e},$r="*:size-full",jr="*:object-cover *:size-full",wa=({children:e})=>{const{compositionUrl:t}=Je(),n=B(()=>document.querySelector(`${ut}[composition-url="${t}"]`),[t]),o=B(b=>{const k=b.querySelectorAll(Bt),M=new Map;for(const _ of k){const x=_.getAttribute("name");if(!x){console.warn("Icon element is missing a name attribute");continue}const E=_.innerHTML,v=E?c("div",{className:$r,dangerouslySetInnerHTML:{__html:E}}):void 0;if(!v){console.warn(`Icon "${x}" customization is empty.`);continue}M.set(x,{Icon:v})}return M},[]),[s,i]=xe(()=>{const b=n();return b?o(b):new Map});pe(()=>{const b=n();if(!b)return;const k=new MutationObserver(()=>{i(o(b))});return k.observe(b,{childList:!0,subtree:!0}),()=>k.disconnect()},[o,n]);const u=B(b=>s.get(b),[s]),r=B((b,k)=>{i(M=>{const{Icon:_,...x}=k;return new Map(M.set(b,{...x,Icon:c("div",{className:$r,children:_})}))})},[]),g=B(b=>{i(k=>(k.delete(b),new Map(k)))},[]),m=B(b=>{const k=b.querySelectorAll(Wt),M=new Array;for(const _ of k){const x=_.innerHTML;if(!x){console.warn("Custom media element is empty");continue}const E=Number(_.getAttribute("index"));if(Number.isNaN(E)){console.warn("Custom media element is missing the 'index' attribute");continue}const v=_.getAttribute("thumbnail-src")??void 0,I=JSON.stringify({index:E,thumbnailSrc:v});M.push({id:I,Media:c("div",{className:jr,dangerouslySetInnerHTML:{__html:x}}),index:E,thumbnailSrc:v})}return M},[]),[L,f]=xe(()=>{const b=n();return b?m(b):[]});pe(()=>{const b=n();if(!b)return;const k=new MutationObserver(()=>{f(m(b))});return k.observe(b,{childList:!0,subtree:!0}),()=>k.disconnect()},[m,n]);const p=B(b=>{const{Media:k,...M}=b,_=c("div",{className:jr,children:k}),x=JSON.stringify(M);return f(E=>[...E,{id:x,Media:_,...M}]),x},[]),a=B(b=>{f(k=>k.filter(M=>M.id!==b))},[]);return c(Gr.Provider,{value:{getIconConfig:u,registerIconConfig:r,unregisterIconConfig:g,customMediaList:L,registerCustomMedia:p,unregisterCustomMedia:a},children:e})},qr=Dt(null),Qe=()=>{const e=It(qr);if(!e)throw new Error("useControlsContext must be used within a ControlsContextProvider");return e},ya=({children:e})=>{const{infiniteCarrousel:t,extendBehavior:n,integration:o,emitEvent:s,emitAnalyticsEvent:i,isFullScreen:u,requestFullscreen:r,exitFullscreen:g}=Je(),{customMediaList:m}=Ft(),{categories:L,items:f}=gt(),p=ze(()=>{const H=new Array(...f),le=m.slice().sort((A,me)=>A.index<0&&me.index<0?me.index-A.index:A.index<0?1:me.index<0?-1:A.index-me.index);for(const A of le){let me=A.index;me<0&&(me=H.length+me+1),H.splice(me,0,{type:"custom",...A})}return H},[f,m]),[a,b]=xe(p.map(()=>null));pe(()=>{b(p.map(()=>null))},[p]);const k=B((H,le)=>{b(A=>A.map((me,Ie)=>Ie===H?le:me))},[]),[M,_]=xe(0),[x,E]=xe(null),v=x??M,I=p[v],N=a[v],[K,T]=xe(null),F=!!K,Y=B(()=>T(null),[]),{effectiveMaxItemsShown:P}=Xr(),G=B(H=>{const le=Math.min(M,H),A=Math.max(M,H);a.slice(le,A+1).filter(Ie=>Ie===null).length>2&&T("instant"),E(H)},[M,a]),R=ze(()=>{let H;if(I.type==="custom"){const le=p.slice(0,v).reverse().find(A=>A.type!=="custom")??p.slice(v+1).find(A=>A.type!=="custom");if(!le)throw new Error("No non-custom item found");H=le}else H=I;for(const le of L)if(le.items.includes(H))return le.id;throw new Error("Current item not found in any category")},[L,I,p,v]),$=ze(()=>L.find(({id:H})=>H===R)?.title??"Unnamed Category",[L,R]),he=ze(()=>p.length,[p]),Z=B(H=>{const le=L.find(({id:me})=>me===H)?.items[0];if(le===void 0)throw new Error("Failed to find target category");const A=p.findIndex(me=>me===le);G(A)},[L,p,G]),D=B(()=>{if(F||x!==null)return;const H=M-1;if(H>=0)E(H);else if(t){T("first_to_last");const le=Math.ceil(P),A=p.length+(o&&!t&&P%1!==0?1:0),me=P>1?Math.max(0,A-le):p.length-1;E(me)}i({type:"interaction",current:{category_id:R,category_name:$,item_type:I.type,item_position:M},action:{name:"Item Navigation",field:"item_navigation",value:"prev"}})},[F,x,M,t,i,R,$,I.type,P,p.length,o]),j=B(()=>{if(F||x!==null)return;const H=M+1,le=Math.ceil(P),A=p.length+(o&&!t&&P%1!==0?1:0),me=P>1?Math.max(0,A-le):p.length-1;H<=me?E(H):t&&(T("last_to_first"),E(0)),i({type:"interaction",current:{category_id:R,category_name:$,item_type:I.type,item_position:M},action:{name:"Item Navigation",field:"item_navigation",value:"next"}})},[F,x,M,P,p.length,o,t,i,R,$,I.type]);pe(()=>{s(Fn,{index:v,item:I})},[I,s,v]),pe(()=>{if(F||x!==null)return;const H={type:"display",item:{category_id:R,category_name:$,item_type:I.type,item_position:M,items_count:he}},le=setTimeout(()=>i(H),0);return()=>clearTimeout(le)},[R,$,he,I.type,M,i,F,x]);const z=ze(()=>{if(o&&!u)return p.some(H=>{switch(H.type){case"image":return!!H.hotspots?.length;case"360":return H.images.some(le=>!!le.hotspots?.length);default:return!1}});switch(I.type){case"image":return!!I.hotspots?.length;case"360":return N==="running"&&I.images.some(H=>!!H.hotspots?.length);default:return!1}},[I,N,o,p,u]),[V,ie]=xe(!0),[O,ne]=xe({}),ae=ze(()=>o&&u?O[v]??!0:V,[o,u,O,v,V]),oe=B(()=>{if(o&&u){const le=!(O[v]??!0);ne(A=>({...A,[v]:le})),s(le?on:an),i({type:"interaction",current:{category_id:R,category_name:$,item_type:I.type,item_position:M},action:{name:"Hotspots Toggled",field:"hotspots_toggle_state",value:le}})}else{const H=!V;ie(H),s(H?on:an),i({type:"interaction",current:{category_id:R,category_name:$,item_type:I.type,item_position:M},action:{name:"Hotspots Toggled",field:"hotspots_toggle_state",value:H}})}},[o,u,O,v,s,i,R,$,I.type,M,V]),S=ze(()=>{switch(I.type){case"video":return N!=="running";default:return!0}},[I,N]),[be,q]=xe(!1),Ae=B(()=>{const H=!be;q(H),s(H?Vn:Wn),i({type:"interaction",current:{category_id:R,category_name:$,item_type:I.type,item_position:M},action:{name:"Gallery Toggled",field:"gallery_toggle_state",value:H}})},[be,s,i,R,$,I.type,M]),[Ke,je]=xe(null),we=B(()=>je(null),[]),h=!!Ke,w=ze(()=>{switch(I.type){case"image":return!0;case"interior-360":return N==="running";case"360":return N==="running";default:return!1}},[I.type,N]),[Q,re]=xe(1),ee=B(H=>{const le=typeof H=="function"?H(Q):H;Q!==le&&(re(le),i({type:"interaction",current:{category_id:R,category_name:$,item_type:I.type,item_position:M},action:{name:"Zoom Changed",field:"zoom_level",value:le}}))},[Q,i,R,$,I.type,M]),C=Q!==1,J=Q<vt,te=Q>1,_e=B(H=>{ee(le=>ot(le+H,1,vt))},[ee]),ue=B(()=>ee(1),[ee]),Xe=B(()=>_e(yt),[_e]),se=B(()=>_e(-yt),[_e]),ge=B(()=>{ue(),we()},[ue,we]),[ve,Ue]=xe(!1),[We,ke]=xe(),[Oe,De]=xe(!1),Te=B(async H=>{ge(),Ue(H),s(H?Hn:Un),i({type:"interaction",current:{category_id:R,category_name:$,item_type:I.type,item_position:M},action:{name:"Fake Fullscreen Toggled",field:"fake_fullscreen_toggle_state",value:H}})},[ge,s,i,R,$,I.type,M]),Se=B(()=>{clearTimeout(We);const H=setTimeout(()=>{ke(void 0)},Zr);ke(H)},[We]),Ve=B(async()=>{const H=await r();return H&&i({type:"interaction",current:{category_id:R,category_name:$,item_type:I.type,item_position:M},action:{name:"Fullscreen Toggled",field:"fullscreen_toggle_state",value:!0}}),H},[r,i,R,$,I.type,M]),Pe=B(async()=>{const H=await g();return H&&i({type:"interaction",current:{category_id:R,category_name:$,item_type:I.type,item_position:M},action:{name:"Fullscreen Toggled",field:"fullscreen_toggle_state",value:!1}}),H},[g,i,R,$,I.type,M]),Be=B(async()=>{if(Se(),n==="full_screen"){const H=await Ve();if(De(!H),H)return}Te(!0)},[n,Te,Ve,Se]),Ze=B(async()=>{Se(),!(n==="full_screen"&&(De(!1),await Pe()))&&Te(!1)},[n,Te,Pe,Se]),Ne=B(()=>{ve?Ze():Be()},[Ze,Be,ve]);return pe(()=>{n==="full_screen"&&(Oe&&ve||u!==ve&&(Se(),Te(u)))},[n,Te,ve,Oe,u,Se]),c(qr.Provider,{value:{items:p,setItemInteraction:k,slidable:p.length>1,carrouselItemIndex:M,setCarrouselItemIndex:_,itemIndexCommand:x,setItemIndexCommand:E,masterItemIndex:v,specialCommand:K,isRunningSpecialCommand:F,finishSpecialCommand:Y,prevItem:D,nextItem:j,scrollToItemIndex:G,displayedCategoryId:R,displayedCategoryName:$,changeCategory:Z,enableHotspotsControl:z,showHotspots:V,currentItemHotspotsVisible:ae,toggleHotspots:oe,showGalleryControls:S,showGallery:be,toggleGallery:Ae,shownDetails:Ke,isShowingDetails:h,setShownDetails:je,resetShownDetails:we,showZoomControls:w,zoom:Q,isZooming:C,setZoom:ee,resetZoom:ue,canZoomIn:J,zoomIn:Xe,canZoomOut:te,zoomOut:se,resetView:ge,extendMode:ve,enableExtendMode:Be,disableExtendMode:Ze,toggleExtendMode:Ne,extendTransition:!!We,fakeFullScreen:Oe},children:e})},Kr=["left","center","right","fullW"],Jr=["top","middle","bottom","fullH"],xa=[...Kr,...Jr,"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 ba(e){return Kr.includes(e)}function Ca(e){return Jr.includes(e)}function Ea(e){return xa.includes(e)}function La(e){if(!Ea(e))throw new Error(`Invalid position: ${e}`);return Ca(e)?[e,void 0]:ba(e)?[void 0,e]:e.split("-")}function de(...e){return e.filter(t=>!!t).map(t=>t.trim()).join(" ")}function Ma(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 Qr(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 Ia({positionX:e,positionY:t}){const n=new Array;return e&&n.push(Ma(e)),t&&n.push(Qr(t)),n.join(" ")}function kt(e){const[t,n]=La(e);return Ia({positionX:n,positionY:t})}const qe=({customizationKey:e,className:t,children:n})=>{const{getIconConfig:o}=Ft(),i=o(e)?.Icon;return i?t?c("div",{className:t,children:i}):i:n},ka=({className:e})=>c(qe,{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"})})}),Ta={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"}},Sa={button:"h-8 px-2",icon:"size-8 p-2"},rt=({variant:e="fill",shape:t="button",color:n="primary",className:o,children:s,...i})=>{const u=Ta[e][n],r=Sa[t];return c("button",{className:de("flex items-center justify-center rounded-ui text-sm transition-all disabled:opacity-60",u,r,o),...i,children:s})},Mn=e=>c(rt,{color:"neutral",shape:"icon",...e,children:c(ka,{className:"size-full"})}),qt=({text:e,className:t})=>c("div",{className:de("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})]}),Na={primary:"border-primary",foreground:"border-foreground",background:"border-background"},Pa={sm:"size-4 border",md:"size-8 border-2",lg:"size-12 border-4"},eo=({color:e="foreground",size:t="md"})=>{const n=Na[e],o=Pa[t];return c("div",{className:de("inline-block animate-rotation rounded-full border-b-transparent",o,n)})},st=Ir(({src:e,className:t,onLoad:n,imgInPlayerWidthRatio:o=1,onlyThumbnail:s,fadeIn:i,...u},r)=>{const{mediaLoadStrategy:g,playerInViewportWidthRatio:m}=Je(),{imageHdWidth:L,usedMediaWidths:f}=gt(),[p,a]=ze(()=>{const M=f.map(x=>`${x!==L?Mo(e,x):e} ${x}w`);let _;if(s)_=[`${f[0]}px`];else{const x=1/(o*m);switch(g){case"quality":{const E=[...f],v=E.pop();_=E.map(I=>`(max-width: ${x*I}px) ${I}px`),_.push(`${v}px`);break}case"balanced":{_=[];for(let E=0;E<f.length-1;E++){const v=f[E],I=f[E+1],N=Math.round((v+I)/2);_.push(`(max-width: ${x*N}px) ${v}px`)}_.push(`${f[f.length-1]}px`);break}case"speed":{const E=[...f],v=E.shift();_=E.reverse().map(I=>`(min-width: ${x*I}px) ${I}px`),_.push(`${v}px`);break}}}return[M.join(", "),_.join(", ")]},[L,o,g,s,m,e,f]),[b,k]=xe();return pe(()=>{if(b===!0)return;const M=setTimeout(()=>{k(_=>_??!1)},30);return()=>clearTimeout(M)},[b]),c("img",{ref:r,src:e,srcSet:p,sizes:a,className:de(t,i&&de(b!==void 0&&"transition-opacity duration-200",b===!1&&"opacity-0",b===!0&&"opacity-100")),onLoad:M=>{k(!0),n?.(M)},...u})});st.displayName="CdnImage";const to=({className:e})=>c(qe,{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"})})}),no=({className:e})=>c(qe,{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"})]})}),ro=({className:e})=>c(qe,{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"})})}),In=({className:e})=>c(qe,{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"})]})}),Ra=({src:e,withCdn:t})=>{const{permanentGallery:n}=Je();if(!e)return null;const o="size-full object-cover";return t?c(st,{className:o,src:e,onlyThumbnail:!0,fadeIn:!n}):c("img",{className:o,src:e})},Kt=({children:e})=>{const{extendMode:t}=Qe();return c("div",{className:de("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})},Aa=({item:e})=>{const{aspectRatioStyle:t}=gt(),{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 i=c(Ra,{src:o,withCdn:s});let u;switch(n){case"360":u=c(Kt,{children:c(In,{className:"size-full"})});break;case"interior-360":u=c(Kt,{children:c(no,{className:"size-full"})});break;case"video":u=c(Kt,{children:c(ro,{className:"size-full p-0.5 text-background"})});break;case"custom":u=o?null:c(Kt,{children:c(to,{className:"size-full p-0.5 text-background"})});break}return c("div",{className:"relative bg-foreground/30",style:t,children:[i,u&&c("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:u})]})},Da={primary:"bg-primary/50",neutral:"bg-neutral/50",background:"bg-background/50",foreground:"bg-foreground/50"},oo=({color:e="neutral",orientation:t="horizontal"})=>{const n=Da[e];return c("div",{className:de(n,t==="horizontal"?"h-px w-full":"w-px h-full")})},ao=({className:e="",containerClassName:t=""})=>{const{hideCategoriesNav:n,infiniteCarrousel:o,permanentGallery:s,isFullScreen:i,maxItemsShown:u}=Je(),{categories:r,aspectRatioStyle:g}=gt(),{emitAnalyticsEvent:m}=Je(),{items:L,extendMode:f,extendTransition:p,masterItemIndex:a,prevItem:b,nextItem:k,scrollToItemIndex:M,resetView:_,displayedCategoryId:x,displayedCategoryName:E}=Qe(),v=ze(()=>L[a].type,[L,a]),I=ze(()=>{if(n)return[];const D=new Array;let j=r[0];const z=V=>r.find(ie=>ie.items.some(O=>O===V));for(let V=0;V<L.length;V++){const ie=L[V],O=z(ie);O&&O!==j&&(D.push(V),j=O)}return D},[r,n,L]),N=Ce(null),K=B(()=>{if(!N.current)throw new Error("slider.current is null");return N.current},[]),T=Ce(!1),F=Ce(null),[Y,P]=xe(!1),G=B((D,j)=>{const z=K(),V=z.clientWidth,ie=z.scrollWidth/L.length,O=(D+1/2)*ie-V/2,ne=z.scrollWidth-z.clientWidth;z.scrollTo({left:ot(O,0,ne),behavior:j})},[L.length,K]);pe(()=>{const D=N.current;if(!D)return;const j=ie=>{ie.preventDefault(),T.current=!0,F.current={x:ie.pageX-D.offsetLeft,scrollLeft:D.scrollLeft}},z=ie=>{if(!T.current)return;if(F.current===null)throw new Error("[onMouseMove] scrollStart is null");const ne=ie.pageX-D.offsetLeft-F.current.x;if(!Y&&Math.abs(ne)<5)return;const ae=F.current.scrollLeft-ne;P(!0),requestAnimationFrame(()=>{D.scrollLeft=ae})},V=()=>{T.current&&(T.current=!1,requestAnimationFrame(()=>{P(!1)}))};return D.addEventListener("mousedown",j),document.addEventListener("mousemove",z),document.addEventListener("mouseleave",V),document.addEventListener("mouseup",V),document.addEventListener("contextmenu",V),()=>{D.removeEventListener("mousedown",j),document.removeEventListener("mousemove",z),document.removeEventListener("mouseleave",V),document.removeEventListener("mouseup",V),document.removeEventListener("contextmenu",V)}},[Y]);const R=Ce(a);pe(()=>{N.current&&(G(a,"smooth"),R.current=a)},[a,G]),pe(()=>{N.current&&G(R.current,"instant")},[G,i,f,p]);const $=B(D=>{m({type:"interaction",current:{category_id:x,category_name:E,item_type:v,item_position:a},action:{name:"Gallery Item Clicked",field:"gallery_item_clicked",value:D}})},[m,x,E,v,a]),he=B(D=>{if(!Y){if($(D),o&&D===L.length-1&&a===0)b();else if(o&&D===0&&a===L.length-1)k();else if(!i&&u!==1&&D===L.length-1){const j=Math.ceil(u),z=L.length+1,V=Math.max(0,z-j);M(V)}else M(D);_()}},[Y,$,o,L.length,a,_,b,k,i,u,M]),Z=B((D,j)=>u!==1?"after:opacity-0 hover:after:opacity-70":D===j?"after:opacity-100":"after:opacity-0 hover:after:opacity-70",[u]);return c("div",{ref:N,className:de("relative w-full overflow-x-auto no-scrollbar",Y?"cursor-grab":"cursor-grabbing",e),children:c("div",{className:de("flex h-10 w-fit gap-1 small:h-12 small:gap-2",f&&"large:h-20 large:gap-4",t),children:L.map((D,j)=>c(et,{children:[I.includes(j)&&c("div",{className:"my-2",children:c(oo,{color:s&&!i?"neutral":"background",orientation:"vertical"})}),c("div",{className:de("relative h-full overflow-hidden rounded-gallery transition-radius",!Y&&"cursor-pointer","after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-all",Z(j,a)),style:g,onClick:()=>he(j),children:c(Aa,{item:D})})]},j))})})},io=e=>1-Math.pow(1-e,2),za=({Media:e,itemIndex:t})=>{const{setItemInteraction:n}=Qe();return pe(()=>{n(t,"ready")},[t,n]),e},so=(e,t)=>Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2),Oa=({onlyPreload:e,...t})=>{const{zoom:n,isZooming:o,setZoom:s}=Qe(),i=Ce(null),u=Ce(null),r=B(E=>{if(!u.current)throw new Error(`[${E??"getTransformElementOrThrow"}] transformElementRef.current is null`);return u.current},[]),g=Ce(!1),m=Ce(null),L=Ce(new Map),f=Ce({x:0,y:0,scale:1}),p=Ce(null),a=B(E=>{const v=r("setTransformStyle"),{x:I,y:N,scale:K}={...f.current,...E},T=ot(K,1,vt),F=v.clientWidth,Y=v.clientHeight,P=F*T,G=Y*T,R=ot(I,-(P-F),0),$=ot(N,-(G-Y),0);f.current={x:R,y:$,scale:T},v.style.transform=`translate(${R}px, ${$}px) scale(${T})`},[r]),b=B((E,v)=>{const{x:I,y:N,scale:K}=f.current,{x:T,y:F,scale:Y}={...f.current,...E};p.current&&(cancelAnimationFrame(p.current),p.current=null);const P=()=>{a({x:T,y:F,scale:Y}),s(Y)},G=Math.abs(T-I)<1&&Math.abs(F-N)<1&&Math.abs(Y-K)<.005;if(!v||G){P();return}const R=new Date().getTime(),$=()=>{const he=()=>{const D=new Date().getTime()-R;if(D>=v){P(),p.current=null;return}const j=Math.min(D/v,1),z=io(j),V=jt(I,T,z),ie=jt(N,F,z),O=jt(K,Y,z);a({x:V,y:ie,scale:O}),$()};p.current=requestAnimationFrame(he)};$()},[a,s]),k=B((E,v)=>{let{x:I,y:N}=f.current;E.x&&(I+=E.x),E.y&&(N+=E.y),b({x:I,y:N},v)},[b]),M=B((E,v,I)=>{const N=f.current.scale,K=ot(E,1,vt),T=K/N,{x:F,y:Y}=f.current,{x:P,y:G}=v,R=-F+P,$=-Y+G,he=R*T,Z=$*T,D=he-P,j=Z-G,z=-D,V=-j;b({x:z,y:V,scale:K},I)},[b]),_=B(E=>{const v=r("shiftZoomFromButton"),I=v.clientWidth,N=v.clientHeight;M(E,{x:I/2,y:N/2},200)},[r,M]),x=B((E,v,I)=>{const{scale:N}=f.current;M(N+E,v,I)},[M]);return pe(()=>{e||u.current&&_(n)},[e,_,n]),pe(()=>{if(e||!o)return;const E=u.current;if(!E)return;const v=K=>{K.preventDefault(),K.stopPropagation(),g.current=!0,m.current={x:K.clientX,y:K.clientY}},I=K=>{if(!g.current)return;if(!m.current)throw new Error("mouseStartXY.current is null");K.stopPropagation();const T=K.clientX-m.current.x,F=K.clientY-m.current.y;k({x:T,y:F}),m.current={x:K.clientX,y:K.clientY}},N=()=>{g.current=!1};return E.addEventListener("mousedown",v),document.addEventListener("mousemove",I),document.addEventListener("mouseleave",N),document.addEventListener("mouseup",N),document.addEventListener("contextmenu",N),()=>{E.removeEventListener("mousedown",v),document.removeEventListener("mousemove",I),document.removeEventListener("mouseleave",N),document.removeEventListener("mouseup",N),document.removeEventListener("contextmenu",N)}},[o,k,e]),pe(()=>{if(e)return;const E=i.current;if(!E)return;const v=I=>{const{ctrlKey:N,clientX:K,clientY:T,deltaX:F,deltaY:Y}=I;if(N){if(!o&&Y>=0)return;const{left:P,top:G}=E.getBoundingClientRect(),R=K-P,$=T-G;x(-.01*Y,{x:R,y:$})}else{if(!o)return;k({x:-2*F,y:-2*Y})}I.preventDefault()};return E.addEventListener("wheel",v),()=>{E.removeEventListener("wheel",v)}},[o,k,x,e]),pe(()=>{const E=i.current,v=u.current;if(!E||!v)return;const I=L.current,N=F=>{for(let Y=0;Y<F.changedTouches.length;Y++){const P=F.changedTouches[Y];I.set(P.identifier,P)}},K=F=>{for(let Y=0;Y<F.changedTouches.length;Y++){const P=F.changedTouches[Y];I.delete(P.identifier)}},T=F=>{const Y=F.touches.length;if(Y===1){if(!o)return;F.preventDefault();const P=F.touches[0],G=I.get(P.identifier);if(!G)throw new Error("touchStart is null");const R=P.clientX-G.clientX,$=P.clientY-G.clientY;k({x:R,y:$}),I.set(P.identifier,P)}else if(Y===2){F.preventDefault();const[P,G]=F.touches,R=I.get(P.identifier),$=I.get(G.identifier);if(!R||!$)throw new Error("initialTouch1 or initialTouch2 is null");const he=so(R,$),D=so(P,G)/he,{left:j,top:z}=E.getBoundingClientRect();x(D-1,{x:(P.clientX+G.clientX)/2-j,y:(P.clientY+G.clientY)/2-z}),I.set(P.identifier,P),I.set(G.identifier,G)}};return v.addEventListener("touchstart",N),v.addEventListener("touchmove",T),v.addEventListener("touchend",K),v.addEventListener("touchcancel",K),()=>{v.removeEventListener("touchstart",N),v.removeEventListener("touchmove",T),v.removeEventListener("touchend",K),v.removeEventListener("touchcancel",K)}},[o,k,x]),c("div",{ref:i,className:`relative size-full overflow-hidden ${o?"z-zoomed-image cursor-move":""}`,children:c("div",{ref:u,className:"origin-top-left",children:c(st,{...t,imgInPlayerWidthRatio:e?1:n})})})},Fa=({className:e})=>c(qe,{className:e,customizationKey:"UI_WARNING",children:c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c("circle",{cx:"12",cy:"12",r:"10"}),c("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),c("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]})}),Ha=({hotspot:e,item:t,analyticsValue:n})=>{const{title:o,icon:s,description:i,position:u,detail:r,type:g}=e,{emitAnalyticsEvent:m}=Je(),{extendMode:L,setShownDetails:f,displayedCategoryId:p,displayedCategoryName:a}=Qe(),b=B($=>{const he=$==="click"?"Hotspot Clicked":"Hotspot Hovered",Z=$==="click"?"hotspot_clicked":"hotspot_hovered";m({type:"interaction",current:{category_id:p,category_name:a,item_type:t.item_type,item_position:t.item_position},action:{name:he,field:Z,value:n}})},[m,p,a,t,n]),k=B(()=>{b("click")},[b]),M=B(()=>{b("hover")},[b]),{getIconConfig:_}=Ft(),x=s?_(s):void 0,E=!!r,v=r?.type==="image",I=!!o||!!i,N=v?g==="damage"?c(Fa,{className:"size-4"}):c(to,{className:"size-4"}):c("div",{className:"size-1"}),K=()=>{k(),v&&f({src:r.src,title:o,text:i})},[T,F]=xe(!1),Y=B(()=>{T||(F(!0),M())},[T,F,M]),P=B(()=>{T&&F(!1)},[T,F]),R=B(()=>g==="damage"?"var(--hotspot-damage-color)":"var(--hotspot-feature-color)",[g])();return c("div",{className:de("group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",E?"cursor-pointer":"cursor-help"),style:{top:`${100*e.position.y}%`,left:`${100*e.position.x}%`},onClick:K,onMouseEnter:Y,onMouseLeave:P,children:[c("div",{className:"relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",style:{backgroundColor:R},children:[c("div",{className:"pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background bg-primary",style:{backgroundColor:R}}),c("div",{className:"p-1",children:x?.Icon?c("div",{className:"size-4",children:x.Icon}):N})]}),!v&&I&&c("div",{className:de("absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",L&&"large:max-w-56",u.y<.55?"-top-1":"-bottom-1",u.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:[o&&c("div",{className:"text-sm font-semibold small:text-base small:font-bold",children:o}),i&&c("div",{className:"text-xs text-foreground/65 small:text-sm",children:i})]})})]})},Ua=({hotspot:e,item:t})=>{const{detail:n,title:o,description:s,position:i}=e,u=ze(()=>o||s?{...o?{title:o}:{},...s?{description:s}:{}}:void 0,[o,s]),r=ze(()=>u||i?{...u?{text:u}:{},...i?{position:i}:{}}:void 0,[u,i]),g=ze(()=>({...r?{hotspot:r}:{},...n?{detail:n}:{}}),[r,n]),m=c(Ha,{hotspot:e,item:t,analyticsValue:g});switch(n?.type){case"link":case"pdf":return c("a",{href:n.src,target:"_blank",rel:"noreferrer",children:m});default:return m}},lo=({hotspots:e,itemIndex:t,className:n,onLoad:o,...s})=>{const{isShowingDetails:i,currentItemHotspotsVisible:u,setItemInteraction:r}=Qe();return c("div",{className:de("relative size-full overflow-hidden",n),children:c("div",{className:de("size-full duration-details",i?"scale-105":"scale-100"),children:[c(Oa,{className:"size-full object-cover",onLoad:g=>{t!==void 0&&t>=0&&r(t,"ready"),o?.(g)},...s}),u&&e?.map((g,m)=>c(Ua,{hotspot:g,item:{item_type:"image",item_position:t}},m))]})})},Va=100,Tt=100,Ht=50,Wa=0,Ba=0,Za=e=>{const[t,n]=xe(0),[o,s]=xe(!1);return pe(()=>{const i=XMLHttpRequest.prototype.open,u=XMLHttpRequest.prototype.send;let r=!1;return XMLHttpRequest.prototype.open=function(g,m,L=!0,f,p){return m.toString().includes(e)&&(r=!0,s(!0)),i.call(this,g,m,L,f||null,p||null)},XMLHttpRequest.prototype.send=function(g){return r&&(this.addEventListener("progress",m=>{if(m.lengthComputable){const L=Math.round(m.loaded/m.total*100);n(L)}}),this.addEventListener("loadend",()=>{r=!1,n(100),s(!1)})),u.call(this,g)},()=>{XMLHttpRequest.prototype.open=i,XMLHttpRequest.prototype.send=u}},[e]),[t,o]};window.libpannellum=(function(e,t,n){function o(L){var f=t.createElement("canvas");f.style.width=f.style.height="100%",L.appendChild(f);var p,a,b,k,M,_,x,E,v,I,N,K,T,F,Y,P;this.init=function(h,w,Q,re,ee,C,J,te){if(w===n&&(w="equirectangular"),w!="equirectangular"&&w!="cubemap"&&w!="multires")throw console.log("Error: invalid image type specified!"),{type:"config error"};if(I=w,v=h,N=Q,P=te||{},p){if(b&&(a.detachShader(p,b),a.deleteShader(b)),k&&(a.detachShader(p,k),a.deleteShader(k)),a.bindBuffer(a.ARRAY_BUFFER,null),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,null),p.texture&&a.deleteTexture(p.texture),p.nodeCache)for(var _e=0;_e<p.nodeCache.length;_e++)a.deleteTexture(p.nodeCache[_e].texture);a.deleteProgram(p),p=n}E=n;var ue,Xe=!1,se;if(I=="cubemap")for(ue=0;ue<6;ue++)v[ue].width>0?(se===n&&(se=v[ue].width),se!=v[ue].width&&console.log("Cube faces have inconsistent widths: "+se+" vs. "+v[ue].width)):Xe=!0;function ge(le){if(Xe){var A=le*le*4,me=new Uint8ClampedArray(A),Ie=te.backgroundColor?te.backgroundColor:[0,0,0];Ie[0]*=255,Ie[1]*=255,Ie[2]*=255;for(var Ee=0;Ee<A;Ee++)me[Ee++]=Ie[0],me[Ee++]=Ie[1],me[Ee++]=Ie[2];var Fe=new ImageData(me,le,le);for(ue=0;ue<6;ue++)v[ue].width==0&&(v[ue]=Fe)}}if(I=="cubemap"&&(se&se-1)!==0&&(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\./))||(a||(a=f.getContext("experimental-webgl",{alpha:!1,depth:!1})),a&&a.getError()==1286&&we()),!a&&(I=="multires"&&v.hasOwnProperty("fallbackPath")||I=="cubemap")&&("WebkitAppearance"in t.documentElement.style||navigator.userAgent.match(/Trident.*rv[ :]*11\./)||navigator.appVersion.indexOf("MSIE 10")!==-1)){_&&L.removeChild(_),_=t.createElement("div"),_.className="pnlm-world";var ve;v.basePath?ve=v.basePath+v.fallbackPath:ve=v.fallbackPath;var Ue=["f","r","b","l","u","d"],We=0,ke=function(){var A=t.createElement("canvas");A.className="pnlm-face pnlm-"+Ue[this.side]+"face",_.appendChild(A);var me=A.getContext("2d");A.style.width=this.width+4+"px",A.style.height=this.height+4+"px",A.width=this.width+4,A.height=this.height+4,me.drawImage(this,2,2);var Ie=me.getImageData(0,0,A.width,A.height),Ee=Ie.data,Fe,ce;for(Fe=2;Fe<A.width-2;Fe++)for(ce=0;ce<4;ce++)Ee[(Fe+A.width)*4+ce]=Ee[(Fe+A.width*2)*4+ce],Ee[(Fe+A.width*(A.height-2))*4+ce]=Ee[(Fe+A.width*(A.height-3))*4+ce];for(Fe=2;Fe<A.height-2;Fe++)for(ce=0;ce<4;ce++)Ee[(Fe*A.width+1)*4+ce]=Ee[(Fe*A.width+2)*4+ce],Ee[((Fe+1)*A.width-2)*4+ce]=Ee[((Fe+1)*A.width-3)*4+ce];for(ce=0;ce<4;ce++)Ee[(A.width+1)*4+ce]=Ee[(A.width*2+2)*4+ce],Ee[(A.width*2-2)*4+ce]=Ee[(A.width*3-3)*4+ce],Ee[(A.width*(A.height-2)+1)*4+ce]=Ee[(A.width*(A.height-3)+2)*4+ce],Ee[(A.width*(A.height-1)-2)*4+ce]=Ee[(A.width*(A.height-2)-3)*4+ce];for(Fe=1;Fe<A.width-1;Fe++)for(ce=0;ce<4;ce++)Ee[Fe*4+ce]=Ee[(Fe+A.width)*4+ce],Ee[(Fe+A.width*(A.height-1))*4+ce]=Ee[(Fe+A.width*(A.height-2))*4+ce];for(Fe=1;Fe<A.height-1;Fe++)for(ce=0;ce<4;ce++)Ee[Fe*A.width*4+ce]=Ee[(Fe*A.width+1)*4+ce],Ee[((Fe+1)*A.width-1)*4+ce]=Ee[((Fe+1)*A.width-2)*4+ce];for(ce=0;ce<4;ce++)Ee[ce]=Ee[(A.width+1)*4+ce],Ee[(A.width-1)*4+ce]=Ee[(A.width*2-2)*4+ce],Ee[A.width*(A.height-1)*4+ce]=Ee[(A.width*(A.height-2)+1)*4+ce],Ee[(A.width*A.height-1)*4+ce]=Ee[(A.width*(A.height-1)-2)*4+ce];me.putImageData(Ie,0,0),Oe.call(this)},Oe=function(){this.width>0?(M===n&&(M=this.width),M!=this.width&&console.log("Fallback faces have inconsistent widths: "+M+" vs. "+this.width)):Xe=!0,We++,We==6&&(M=this.width,L.appendChild(_),J())};for(Xe=!1,ue=0;ue<6;ue++){var De=new Image;De.crossOrigin=P.crossOrigin?P.crossOrigin:"anonymous",De.side=ue,De.onload=ke,De.onerror=Oe,I=="multires"?De.src=encodeURI(ve.replace("%s",Ue[ue])+"."+v.extension):De.src=encodeURI(v[ue].src)}ge(M);return}else if(!a)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"};I=="cubemap"&&ge(se),v.basePath?v.fullpath=v.basePath+v.path:v.fullpath=v.path,v.invTileResolution=1/v.tileResolution;var Te=D();for(x=[],ue=0;ue<6;ue++)x[ue]=Te.slice(ue*12,ue*12+12),Te=D();var Se=0,Ve=0;if(I=="equirectangular"?(Se=Math.max(v.width,v.height),Ve=a.getParameter(a.MAX_TEXTURE_SIZE)):I=="cubemap"&&(Se=se,Ve=a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE)),Se>Ve)throw console.log("Error: The image is too big; it's "+Se+"px wide, but this device's maximum supported size is "+Ve+"px."),{type:"webgl size error",width:Se,maxWidth:Ve};te!==n&&(te.horizonPitch!==n||te.horizonRoll!==n)&&(E=[te.horizonPitch==n?0:te.horizonPitch,te.horizonRoll==n?0:te.horizonRoll]);var Pe=a.TEXTURE_2D;a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),b=a.createShader(a.VERTEX_SHADER);var Be=s;I=="multires"&&(Be=i),a.shaderSource(b,Be),a.compileShader(b),k=a.createShader(a.FRAGMENT_SHADER);var Ze=g;I=="cubemap"?(Pe=a.TEXTURE_CUBE_MAP,Ze=r):I=="multires"&&(Ze=m),a.shaderSource(k,Ze),a.compileShader(k),p=a.createProgram(),a.attachShader(p,b),a.attachShader(p,k),a.linkProgram(p),a.getShaderParameter(b,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(b)),a.getShaderParameter(k,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(k)),a.getProgramParameter(p,a.LINK_STATUS)||console.log(a.getProgramInfoLog(p)),a.useProgram(p),p.drawInProgress=!1;var Ne=te.backgroundColor?te.backgroundColor:[0,0,0];a.clearColor(Ne[0],Ne[1],Ne[2],1),a.clear(a.COLOR_BUFFER_BIT),p.texCoordLocation=a.getAttribLocation(p,"a_texCoord"),a.enableVertexAttribArray(p.texCoordLocation),I!="multires"?(K||(K=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,K),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),a.STATIC_DRAW),a.vertexAttribPointer(p.texCoordLocation,2,a.FLOAT,!1,0,0),p.aspectRatio=a.getUniformLocation(p,"u_aspectRatio"),a.uniform1f(p.aspectRatio,a.drawingBufferWidth/a.drawingBufferHeight),p.psi=a.getUniformLocation(p,"u_psi"),p.theta=a.getUniformLocation(p,"u_theta"),p.f=a.getUniformLocation(p,"u_f"),p.h=a.getUniformLocation(p,"u_h"),p.v=a.getUniformLocation(p,"u_v"),p.vo=a.getUniformLocation(p,"u_vo"),p.rot=a.getUniformLocation(p,"u_rot"),a.uniform1f(p.h,re/(Math.PI*2)),a.uniform1f(p.v,ee/Math.PI),a.uniform1f(p.vo,C/Math.PI*2),I=="equirectangular"&&(p.backgroundColor=a.getUniformLocation(p,"u_backgroundColor"),a.uniform4fv(p.backgroundColor,Ne.concat([1]))),p.texture=a.createTexture(),a.bindTexture(Pe,p.texture),I=="cubemap"?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[2])):a.texImage2D(Pe,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v),a.texParameteri(Pe,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(Pe,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(Pe,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(Pe,a.TEXTURE_MAG_FILTER,a.LINEAR)):(p.vertPosLocation=a.getAttribLocation(p,"a_vertCoord"),a.enableVertexAttribArray(p.vertPosLocation),T||(T=a.createBuffer()),F||(F=a.createBuffer()),Y||(Y=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,F),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),a.STATIC_DRAW),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,Y),a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),a.STATIC_DRAW),p.perspUniform=a.getUniformLocation(p,"u_perspMatrix"),p.cubeUniform=a.getUniformLocation(p,"u_cubeMatrix"),p.level=-1,p.currentNodes=[],p.nodeCache=[],p.nodeCacheTimestamp=0);var H=a.getError();if(H!==0)throw console.log("Error: Something went wrong with WebGL!",H),{type:"webgl error"};J()},this.destroy=function(){if(L!==n&&(f!==n&&L.contains(f)&&L.removeChild(f),_!==n&&L.contains(_)&&L.removeChild(_)),a){var h=a.getExtension("WEBGL_lose_context");h&&h.loseContext()}},this.resize=function(){var h=e.devicePixelRatio||1;f.width=f.clientWidth*h,f.height=f.clientHeight*h,a&&(a.getError()==1286&&we(),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),I!="multires"&&a.uniform1f(p.aspectRatio,f.clientWidth/f.clientHeight))},this.resize(),this.setPose=function(h,w){E=[h,w]},this.render=function(h,w,Q,re){var ee,C,J,te=0;if(re===n&&(re={}),re.roll&&(te=re.roll),E!==n){var _e=E[0],ue=E[1],Xe=h,se=w,ge=Math.cos(ue)*Math.sin(h)*Math.sin(_e)+Math.cos(h)*(Math.cos(_e)*Math.cos(w)+Math.sin(ue)*Math.sin(_e)*Math.sin(w)),ve=-Math.sin(h)*Math.sin(ue)+Math.cos(h)*Math.cos(ue)*Math.sin(w),Ue=Math.cos(ue)*Math.cos(_e)*Math.sin(h)+Math.cos(h)*(-Math.cos(w)*Math.sin(_e)+Math.cos(_e)*Math.sin(ue)*Math.sin(w));h=Math.asin(Math.max(Math.min(Ue,1),-1)),w=Math.atan2(ve,ge);var We=[Math.cos(Xe)*(Math.sin(ue)*Math.sin(_e)*Math.cos(se)-Math.cos(_e)*Math.sin(se)),Math.cos(Xe)*Math.cos(ue)*Math.cos(se),Math.cos(Xe)*(Math.cos(_e)*Math.sin(ue)*Math.cos(se)+Math.sin(se)*Math.sin(_e))],ke=[-Math.cos(h)*Math.sin(w),Math.cos(h)*Math.cos(w)],Oe=Math.acos(Math.max(Math.min((We[0]*ke[0]+We[1]*ke[1])/(Math.sqrt(We[0]*We[0]+We[1]*We[1]+We[2]*We[2])*Math.sqrt(ke[0]*ke[0]+ke[1]*ke[1])),1),-1));We[2]<0&&(Oe=2*Math.PI-Oe),te+=Oe}if(!a&&(I=="multires"||I=="cubemap")){J=M/2;var De={f:"translate3d(-"+(J+2)+"px, -"+(J+2)+"px, -"+J+"px)",b:"translate3d("+(J+2)+"px, -"+(J+2)+"px, "+J+"px) rotateX(180deg) rotateZ(180deg)",u:"translate3d(-"+(J+2)+"px, -"+J+"px, "+(J+2)+"px) rotateX(270deg)",d:"translate3d(-"+(J+2)+"px, "+J+"px, -"+(J+2)+"px) rotateX(90deg)",l:"translate3d(-"+J+"px, -"+(J+2)+"px, "+(J+2)+"px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",r:"translate3d("+J+"px, -"+(J+2)+"px, -"+(J+2)+"px) rotateY(270deg)"};ee=1/Math.tan(Q/2);var Te=ee*f.clientWidth/2+"px",Se="perspective("+Te+") translateZ("+Te+") rotateX("+h+"rad) rotateY("+w+"rad) ",Ve=Object.keys(De);for(C=0;C<6;C++){var Pe=_.querySelector(".pnlm-"+Ve[C]+"face");Pe&&(Pe.style.webkitTransform=Se+De[Ve[C]],Pe.style.transform=Se+De[Ve[C]])}return}if(I!="multires"){var Be=2*Math.atan(Math.tan(Q*.5)/(a.drawingBufferWidth/a.drawingBufferHeight));ee=1/Math.tan(Be*.5),a.uniform1f(p.psi,w),a.uniform1f(p.theta,h),a.uniform1f(p.rot,te),a.uniform1f(p.f,ee),N===!0&&I=="equirectangular"&&(a.bindTexture(a.TEXTURE_2D,p.texture),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v)),a.drawArrays(a.TRIANGLES,0,6)}else{var Ze=O(Q,a.drawingBufferWidth/a.drawingBufferHeight,.1,100);be(Q);var Ne=j();Ne=z(Ne,-te,"z"),Ne=z(Ne,-h,"x"),Ne=z(Ne,w,"y"),Ne=V(Ne),a.uniformMatrix4fv(p.perspUniform,!1,new Float32Array(ie(Ze))),a.uniformMatrix4fv(p.cubeUniform,!1,new Float32Array(ie(Ne)));var H=q(Ze,Ne);if(p.nodeCache.sort(G),p.nodeCache.length>200&&p.nodeCache.length>p.currentNodes.length+50)for(var le=p.nodeCache.splice(200,p.nodeCache.length-200),C=0;C<le.length;C++)a.deleteTexture(le[C].texture);p.currentNodes=[];var A=["f","b","u","d","l","r"];for(J=0;J<6;J++){var me=new he(x[J],A[J],1,0,0,v.fullpath);Z(H,me,h,w)}for(p.currentNodes.sort(R),C=ae.length-1;C>=0;C--)p.currentNodes.indexOf(ae[C].node)===-1&&(ae[C].node.textureLoad=!1,ae.splice(C,1));if(ae.length===0)for(C=0;C<p.currentNodes.length;C++){var Ie=p.currentNodes[C];if(!Ie.texture&&!Ie.textureLoad){Ie.textureLoad=!0,setTimeout(S,0,Ie);break}}$()}if(re.returnImage!==n)return f.toDataURL("image/png")},this.isLoading=function(){if(a&&I=="multires"){for(var h=0;h<p.currentNodes.length;h++)if(!p.currentNodes[h].textureLoaded)return!0}return!1},this.getCanvas=function(){return f};function G(h,w){return h.level==1&&w.level!=1?-1:w.level==1&&h.level!=1?1:w.timestamp-h.timestamp}function R(h,w){return h.level!=w.level?h.level-w.level:h.diff-w.diff}function $(){if(!p.drawInProgress){p.drawInProgress=!0,a.clear(a.COLOR_BUFFER_BIT);for(var h=0;h<p.currentNodes.length;h++)p.currentNodes[h].textureLoaded>1&&(a.bindBuffer(a.ARRAY_BUFFER,T),a.bufferData(a.ARRAY_BUFFER,new Float32Array(p.currentNodes[h].vertices),a.STATIC_DRAW),a.vertexAttribPointer(p.vertPosLocation,3,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,F),a.vertexAttribPointer(p.texCoordLocation,2,a.FLOAT,!1,0,0),a.bindTexture(a.TEXTURE_2D,p.currentNodes[h].texture),a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0));p.drawInProgress=!1}}function he(h,w,Q,re,ee,C){this.vertices=h,this.side=w,this.level=Q,this.x=re,this.y=ee,this.path=C.replace("%s",w).replace("%l",Q).replace("%x",re).replace("%y",ee)}function Z(h,w,Q,re,ee){if(je(h,w.vertices)){var C=w.vertices,J=C[0]+C[3]+C[6]+C[9],te=C[1]+C[4]+C[7]+C[10],_e=C[2]+C[5]+C[8]+C[11],ue=Math.sqrt(J*J+te*te+_e*_e),Xe=Math.asin(_e/ue),se=Math.atan2(te,J),ge=se-re;ge+=ge>Math.PI?-2*Math.PI:ge<-Math.PI?2*Math.PI:0,ge=Math.abs(ge),w.diff=Math.acos(Math.sin(Q)*Math.sin(Xe)+Math.cos(Q)*Math.cos(Xe)*Math.cos(ge));for(var ve=!1,Ue=0;Ue<p.nodeCache.length;Ue++)if(p.nodeCache[Ue].path==w.path){ve=!0,p.nodeCache[Ue].timestamp=p.nodeCacheTimestamp++,p.nodeCache[Ue].diff=w.diff,p.currentNodes.push(p.nodeCache[Ue]);break}if(ve||(w.timestamp=p.nodeCacheTimestamp++,p.currentNodes.push(w),p.nodeCache.push(w)),w.level<p.level){var We=v.cubeResolution*Math.pow(2,w.level-v.maxLevel),ke=Math.ceil(We*v.invTileResolution)-1,Oe=We%v.tileResolution*2,De=We*2%v.tileResolution;De===0&&(De=v.tileResolution),Oe===0&&(Oe=v.tileResolution*2);var Te=.5;(w.x==ke||w.y==ke)&&(Te=1-v.tileResolution/(v.tileResolution+De));var Se=1-Te,Ve=[],Pe,Be,Ze=Te,Ne=Te,H=Te,le=Se,A=Se,me=Se;De<v.tileResolution&&(w.x==ke&&w.y!=ke?(Ne=.5,A=.5,(w.side=="d"||w.side=="u")&&(H=.5,me=.5)):w.x!=ke&&w.y==ke&&(Ze=.5,le=.5,(w.side=="l"||w.side=="r")&&(H=.5,me=.5))),Oe<=v.tileResolution&&(w.x==ke&&(Ze=0,le=1,(w.side=="l"||w.side=="r")&&(H=0,me=1)),w.y==ke&&(Ne=0,A=1,(w.side=="d"||w.side=="u")&&(H=0,me=1))),Pe=[C[0],C[1],C[2],C[0]*Ze+C[3]*le,C[1]*Te+C[4]*Se,C[2]*H+C[5]*me,C[0]*Ze+C[6]*le,C[1]*Ne+C[7]*A,C[2]*H+C[8]*me,C[0]*Te+C[9]*Se,C[1]*Ne+C[10]*A,C[2]*H+C[11]*me],Be=new he(Pe,w.side,w.level+1,w.x*2,w.y*2,v.fullpath),Ve.push(Be),w.x==ke&&Oe<=v.tileResolution||(Pe=[C[0]*Ze+C[3]*le,C[1]*Te+C[4]*Se,C[2]*H+C[5]*me,C[3],C[4],C[5],C[3]*Te+C[6]*Se,C[4]*Ne+C[7]*A,C[5]*H+C[8]*me,C[0]*Ze+C[6]*le,C[1]*Ne+C[7]*A,C[2]*H+C[8]*me],Be=new he(Pe,w.side,w.level+1,w.x*2+1,w.y*2,v.fullpath),Ve.push(Be)),!(w.x==ke&&Oe<=v.tileResolution)&&!(w.y==ke&&Oe<=v.tileResolution)&&(Pe=[C[0]*Ze+C[6]*le,C[1]*Ne+C[7]*A,C[2]*H+C[8]*me,C[3]*Te+C[6]*Se,C[4]*Ne+C[7]*A,C[5]*H+C[8]*me,C[6],C[7],C[8],C[9]*Ze+C[6]*le,C[10]*Te+C[7]*Se,C[11]*H+C[8]*me],Be=new he(Pe,w.side,w.level+1,w.x*2+1,w.y*2+1,v.fullpath),Ve.push(Be)),w.y==ke&&Oe<=v.tileResolution||(Pe=[C[0]*Te+C[9]*Se,C[1]*Ne+C[10]*A,C[2]*H+C[11]*me,C[0]*Ze+C[6]*le,C[1]*Ne+C[7]*A,C[2]*H+C[8]*me,C[9]*Ze+C[6]*le,C[10]*Te+C[7]*Se,C[11]*H+C[8]*me,C[9],C[10],C[11]],Be=new he(Pe,w.side,w.level+1,w.x*2,w.y*2+1,v.fullpath),Ve.push(Be));for(var Ie=0;Ie<Ve.length;Ie++)Z(h,Ve[Ie],Q,re)}}}function D(){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 z(h,w,Q){var re=Math.sin(w),ee=Math.cos(w);if(Q=="x")return[h[0],ee*h[1]+re*h[2],ee*h[2]-re*h[1],h[3],ee*h[4]+re*h[5],ee*h[5]-re*h[4],h[6],ee*h[7]+re*h[8],ee*h[8]-re*h[7]];if(Q=="y")return[ee*h[0]-re*h[2],h[1],ee*h[2]+re*h[0],ee*h[3]-re*h[5],h[4],ee*h[5]+re*h[3],ee*h[6]-re*h[8],h[7],ee*h[8]+re*h[6]];if(Q=="z")return[ee*h[0]+re*h[1],ee*h[1]-re*h[0],h[2],ee*h[3]+re*h[4],ee*h[4]-re*h[3],h[5],ee*h[6]+re*h[7],ee*h[7]-re*h[6],h[8]]}function V(h){return[h[0],h[1],h[2],0,h[3],h[4],h[5],0,h[6],h[7],h[8],0,0,0,0,1]}function ie(h){return[h[0],h[4],h[8],h[12],h[1],h[5],h[9],h[13],h[2],h[6],h[10],h[14],h[3],h[7],h[11],h[15]]}function O(h,w,Q,re){var ee=2*Math.atan(Math.tan(h/2)*a.drawingBufferHeight/a.drawingBufferWidth),C=1/Math.tan(ee/2);return[C/w,0,0,0,0,C,0,0,0,0,(re+Q)/(Q-re),2*re*Q/(Q-re),0,0,-1,0]}function ne(h,w){a.bindTexture(a.TEXTURE_2D,w),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,h),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.bindTexture(a.TEXTURE_2D,null)}var ae=[],oe=(function(){var h=4,w={},Q;function re(){var te=this;this.texture=this.callback=null,this.image=new Image,this.image.crossOrigin=Q||"anonymous";var _e=function(){te.image.width>0&&te.image.height>0?(ne(te.image,te.texture),te.callback(te.texture,!0)):te.callback(te.texture,!1),C(te)};this.image.addEventListener("load",_e),this.image.addEventListener("error",_e)}re.prototype.loadTexture=function(te,_e,ue){this.texture=_e,this.callback=ue,this.image.src=te};function ee(te,_e,ue,Xe){this.node=te,this.src=_e,this.texture=ue,this.callback=Xe}function C(te){if(ae.length){var _e=ae.shift();te.loadTexture(_e.src,_e.texture,_e.callback)}else w[h++]=te}for(var J=0;J<h;J++)w[J]=new re;return function(te,_e,ue,Xe){Q=Xe;var se=a.createTexture();return h?w[--h].loadTexture(_e,se,ue):ae.push(new ee(te,_e,se,ue)),se}})();function S(h){oe(h,encodeURI(h.path+"."+v.extension),function(w,Q){h.texture=w,h.textureLoaded=Q?2:1},P.crossOrigin)}function be(h){for(var w=1;w<v.maxLevel&&a.drawingBufferWidth>v.tileResolution*Math.pow(2,w-1)*Math.tan(h/2)*.707;)w++;p.level=w}function q(h,w){return[h[0]*w[0],h[0]*w[1],h[0]*w[2],0,h[5]*w[4],h[5]*w[5],h[5]*w[6],0,h[10]*w[8],h[10]*w[9],h[10]*w[10],h[11],-w[8],-w[9],-w[10],0]}function Ae(h,w){return[h[0]*w[0]+h[1]*w[1]+h[2]*w[2],h[4]*w[0]+h[5]*w[1]+h[6]*w[2],h[11]+h[8]*w[0]+h[9]*w[1]+h[10]*w[2],1/(h[12]*w[0]+h[13]*w[1]+h[14]*w[2])]}function Ke(h,w){var Q=Ae(h,w),re=Q[0]*Q[3],ee=Q[1]*Q[3],C=Q[2]*Q[3],J=[0,0,0];return re<-1&&(J[0]=-1),re>1&&(J[0]=1),ee<-1&&(J[1]=-1),ee>1&&(J[1]=1),(C<-1||C>1)&&(J[2]=1),J}function je(h,w){var Q=Ke(h,w.slice(0,3)),re=Ke(h,w.slice(3,6)),ee=Ke(h,w.slice(6,9)),C=Ke(h,w.slice(9,12)),J=Q[0]+re[0]+ee[0]+C[0];if(J==-4||J==4)return!1;var te=Q[1]+re[1]+ee[1]+C[1];if(te==-4||te==4)return!1;var _e=Q[2]+re[2]+ee[2]+C[2];return _e!=4}function we(){console.log("Reducing canvas size due to error 1286!"),f.width=Math.round(f.width/2),f.height=Math.round(f.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(""),i=["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(""),u=["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
|
-
`),
|
|
3
|
-
`),
|
|
4
|
-
`),m=["varying mediump vec2 v_texCoord;","uniform sampler2D u_sampler;","void main(void) {","gl_FragColor = texture2D(u_sampler, v_texCoord);","}"].join("");return{renderer:function(f,p,a,b){return new o(f)}}})(window,document),window.pannellum=(function(e,t,n){function o(s,i){var u=this,r,g,m,L=!1,f=Date.now(),p=0,a=0,b=-1,k=0,M=0,_=new Array(10),x=!1,E,v=!1,I=!1,N,K,T={yaw:0,pitch:0,hfov:0},F=!1,Y=!1,P=0,G,R=0,$,he,Z={},D={},j=[],z=!1,V=!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:A,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 O=t.createElement("div");O.className="pnlm-ui",s.appendChild(O);var ne=t.createElement("div");ne.className="pnlm-render-container",s.appendChild(ne);var ae=t.createElement("div");ae.className="pnlm-dragfix",O.appendChild(ae);var oe=t.createElement("span");oe.className="pnlm-about-msg",oe.innerHTML='<a href="https://pannellum.org/" target="_blank">Pannellum</a>',O.appendChild(oe),ae.addEventListener("contextmenu",J);var S={},be=t.createElement("div");be.className="pnlm-sprite pnlm-hot-spot-debug-indicator",O.appendChild(be),S.container=t.createElement("div"),S.container.className="pnlm-panorama-info",S.title=t.createElement("div"),S.title.className="pnlm-title-box",S.container.appendChild(S.title),S.author=t.createElement("div"),S.author.className="pnlm-author-box",S.container.appendChild(S.author),O.appendChild(S.container),S.load={},S.load.box=t.createElement("div"),S.load.box.className="pnlm-load-box",S.load.boxp=t.createElement("p"),S.load.box.appendChild(S.load.boxp),S.load.lbox=t.createElement("div"),S.load.lbox.className="pnlm-lbox",S.load.lbox.innerHTML='<div class="pnlm-loading"></div>',S.load.box.appendChild(S.load.lbox),S.load.lbar=t.createElement("div"),S.load.lbar.className="pnlm-lbar",S.load.lbarFill=t.createElement("div"),S.load.lbarFill.className="pnlm-lbar-fill",S.load.lbar.appendChild(S.load.lbarFill),S.load.box.appendChild(S.load.lbar),S.load.msg=t.createElement("p"),S.load.msg.className="pnlm-lmsg",S.load.box.appendChild(S.load.msg),O.appendChild(S.load.box),S.errorMsg=t.createElement("div"),S.errorMsg.className="pnlm-error-msg pnlm-info-box",O.appendChild(S.errorMsg);var q={};q.container=t.createElement("div"),q.container.className="pnlm-controls-container",O.appendChild(q.container),q.load=t.createElement("div"),q.load.className="pnlm-load-button",q.load.addEventListener("click",function(){Nn(),wo()}),O.appendChild(q.load),q.zoom=t.createElement("div"),q.zoom.className="pnlm-zoom-controls pnlm-controls",q.zoomIn=t.createElement("div"),q.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control",q.zoomIn.addEventListener("click",Ps),q.zoom.appendChild(q.zoomIn),q.zoomOut=t.createElement("div"),q.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control",q.zoomOut.addEventListener("click",Rs),q.zoom.appendChild(q.zoomOut),q.container.appendChild(q.zoom),q.fullscreen=t.createElement("div"),q.fullscreen.addEventListener("click",Pn),q.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)&&q.container.appendChild(q.fullscreen),q.orientation=t.createElement("div"),q.orientation.addEventListener("click",function(l){Y?Vt():rn()}),q.orientation.addEventListener("mousedown",function(l){l.stopPropagation()}),q.orientation.addEventListener("touchstart",function(l){l.stopPropagation()}),q.orientation.addEventListener("pointerdown",function(l){l.stopPropagation()}),q.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";var Ae,Ke=!1;function je(l){e.removeEventListener("deviceorientation",je),l&&l.alpha!==null&&l.beta!==null&&l.gamma!==null?(q.container.appendChild(q.orientation),Ae=!0,Ke&&rn()):Ae=!1}e.DeviceOrientationEvent?e.addEventListener("deviceorientation",je):Ae=!1;var we=t.createElement("div");we.className="pnlm-compass pnlm-controls pnlm-control",O.appendChild(we),i.firstScene?tn(i.firstScene):i.default&&i.default.firstScene?tn(i.default.firstScene):tn(null),Nn(!0);function h(){var l=t.createElement("div");if(l.innerHTML="<!--[if lte IE 9]><i></i><![endif]-->",l.getElementsByTagName("i").length==1){ee();return}$=r.hfov,he=r.pitch;var d,y;if(r.type=="cubemap"){for(N=[],d=0;d<6;d++)N.push(new Image),N[d].crossOrigin=r.crossOrigin;S.load.lbox.style.display="block",S.load.lbar.style.display="none"}else if(r.type=="multires"){var U=JSON.parse(JSON.stringify(r.multiRes));r.basePath&&r.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(r.multiRes.basePath)?U.basePath=r.basePath+r.multiRes.basePath:r.multiRes.basePath?U.basePath=r.multiRes.basePath:r.basePath&&(U.basePath=r.basePath),N=U}else if(r.dynamic===!0)N=r.panorama;else{if(r.panorama===n){ee(r.strings.noPanoramaError);return}N=new Image}if(r.type=="cubemap"){var X=6,W=function(){X--,X===0&&Q()},ye=function(He){var Re=t.createElement("a");Re.href=He.target.src,Re.textContent=Re.href,ee(r.strings.fileAccessError.replace("%s",Re.outerHTML))};for(d=0;d<N.length;d++)y=r.cubeMap[d],y=="null"?(console.log("Will use background instead of missing cubemap face "+d),W()):(r.basePath&&!w(y)&&(y=r.basePath+y),N[d].onload=W,N[d].onerror=ye,N[d].src=Ct(y))}else if(r.type=="multires")Q();else if(y="",r.basePath&&(y=r.basePath),r.dynamic!==!0){y=w(r.panorama)?r.panorama:y+r.panorama,N.onload=function(){e.URL.revokeObjectURL(this.src),Q()};var fe=new XMLHttpRequest;fe.onloadend=function(){if(fe.status!=200){var Le=t.createElement("a");Le.href=y,Le.textContent=Le.href,ee(r.strings.fileAccessError.replace("%s",Le.outerHTML))}var He=this.response;re(He),S.load.msg.innerHTML=""},fe.onprogress=function(Le){if(Le.lengthComputable){var He=Le.loaded/Le.total*100;S.load.lbarFill.style.width=He+"%";var Re,nt,tt;Le.total>1e6?(Re="MB",nt=(Le.loaded/1e6).toFixed(2),tt=(Le.total/1e6).toFixed(2)):Le.total>1e3?(Re="kB",nt=(Le.loaded/1e3).toFixed(1),tt=(Le.total/1e3).toFixed(1)):(Re="B",nt=Le.loaded,tt=Le.total),S.load.msg.innerHTML=nt+" / "+tt+" "+Re}else S.load.lbox.style.display="block",S.load.lbar.style.display="none"};try{fe.open("GET",y,!0)}catch{ee(r.strings.malformedURLError)}fe.responseType="blob",fe.setRequestHeader("Accept","image/*,*/*;q=0.9"),fe.withCredentials=r.crossOrigin==="use-credentials",fe.send()}r.draggable&&O.classList.add("pnlm-grab"),O.classList.remove("pnlm-grabbing")}function w(l){return new RegExp("^(?:[a-z]+:)?//","i").test(l)||l[0]=="/"||l.slice(0,5)=="blob:"}function Q(){g||(g=new libpannellum.renderer(ne)),I||(I=!0,ae.addEventListener("mousedown",_e,!1),t.addEventListener("mousemove",se,!1),t.addEventListener("mouseup",ge,!1),r.mouseZoom&&(O.addEventListener("mousewheel",Ve,!1),O.addEventListener("DOMMouseScroll",Ve,!1)),r.doubleClickZoom&&ae.addEventListener("dblclick",ue,!1),O.addEventListener("mozfullscreenchange",pt,!1),O.addEventListener("webkitfullscreenchange",pt,!1),O.addEventListener("msfullscreenchange",pt,!1),O.addEventListener("fullscreenchange",pt,!1),e.addEventListener("resize",me,!1),e.addEventListener("orientationchange",me,!1),r.disableKeyboardCtrl||(s.addEventListener("keydown",Pe,!1),s.addEventListener("keyup",Ze,!1),s.addEventListener("blur",Be,!1)),t.addEventListener("mouseleave",ge,!1),t.documentElement.style.pointerAction===""&&t.documentElement.style.touchAction===""?(ae.addEventListener("pointerdown",De,!1),ae.addEventListener("pointermove",Te,!1),ae.addEventListener("pointerup",Se,!1),ae.addEventListener("pointerleave",Se,!1)):(ae.addEventListener("touchstart",ve,!1),ae.addEventListener("touchmove",Ue,!1),ae.addEventListener("touchend",We,!1)),e.navigator.pointerEnabled&&(s.style.touchAction="none")),ks(),it(r.hfov),setTimeout(function(){},500)}function re(l){var d=new FileReader;d.addEventListener("loadend",function(){var y=d.result;if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)){var U=y.indexOf("ÿÂ");(U<0||U>65536)&&ee(r.strings.iOS8WebGLError)}var X=y.indexOf("<x:xmpmeta");if(X>-1&&r.ignoreGPanoXMP!==!0){var W=y.substring(X,y.indexOf("</x:xmpmeta>")+12),ye=function(He){var Re;return W.indexOf(He+'="')>=0?(Re=W.substring(W.indexOf(He+'="')+He.length+2),Re=Re.substring(0,Re.indexOf('"'))):W.indexOf(He+">")>=0&&(Re=W.substring(W.indexOf(He+">")+He.length+1),Re=Re.substring(0,Re.indexOf("<"))),Re!==n?Number(Re):null},fe={fullWidth:ye("GPano:FullPanoWidthPixels"),croppedWidth:ye("GPano:CroppedAreaImageWidthPixels"),fullHeight:ye("GPano:FullPanoHeightPixels"),croppedHeight:ye("GPano:CroppedAreaImageHeightPixels"),topPixels:ye("GPano:CroppedAreaTopPixels"),heading:ye("GPano:PoseHeadingDegrees"),horizonPitch:ye("GPano:PosePitchDegrees"),horizonRoll:ye("GPano:PoseRollDegrees")};fe.fullWidth!==null&&fe.croppedWidth!==null&&fe.fullHeight!==null&&fe.croppedHeight!==null&&fe.topPixels!==null&&(j.indexOf("haov")<0&&(r.haov=fe.croppedWidth/fe.fullWidth*360),j.indexOf("vaov")<0&&(r.vaov=fe.croppedHeight/fe.fullHeight*180),j.indexOf("vOffset")<0&&(r.vOffset=((fe.topPixels+fe.croppedHeight/2)/fe.fullHeight-.5)*-180),fe.heading!==null&&j.indexOf("northOffset")<0&&(r.northOffset=fe.heading,r.compass!==!1&&(r.compass=!0)),fe.horizonPitch!==null&&fe.horizonRoll!==null&&(j.indexOf("horizonPitch")<0&&(r.horizonPitch=fe.horizonPitch),j.indexOf("horizonRoll")<0&&(r.horizonRoll=fe.horizonRoll)))}N.src=e.URL.createObjectURL(l)}),d.readAsBinaryString!==n?d.readAsBinaryString(l):d.readAsText(l)}function ee(l){l===n&&(l=r.strings.genericWebGLError),S.errorMsg.innerHTML="<p>"+l+"</p>",q.load.style.display="none",S.load.box.style.display="none",S.errorMsg.style.display="table",v=!0,ne.style.display="none",ht("error",l)}function C(){v&&(S.load.box.style.display="none",S.errorMsg.style.display="none",v=!1,ht("errorcleared"))}function J(l){var d=te(l);oe.style.left=d.x+"px",oe.style.top=d.y+"px",clearTimeout(J.t1),clearTimeout(J.t2),oe.style.display="block",oe.style.opacity=1,J.t1=setTimeout(function(){oe.style.opacity=0},2e3),J.t2=setTimeout(function(){oe.style.display="none"},2500),l.preventDefault()}function te(l){var d=s.getBoundingClientRect(),y={};return y.x=l.clientX-d.left,y.y=l.clientY-d.top,y}function _e(l){if(l.preventDefault(),s.focus(),!(!E||!r.draggable)){var d=te(l);if(r.hotSpotDebug){var y=Xe(l);console.log("Pitch: "+y[0]+", Yaw: "+y[1]+", Center Pitch: "+r.pitch+", Center Yaw: "+r.yaw+", HFOV: "+r.hfov)}nn(),Vt(),r.roll=0,T.hfov=0,L=!0,f=Date.now(),p=d.x,a=d.y,k=r.yaw,M=r.pitch,O.classList.add("pnlm-grabbing"),O.classList.remove("pnlm-grab"),ht("mousedown",l),Ie()}}function ue(l){if(r.minHfov===r.hfov)u.setHfov($,1e3);else{var d=Xe(l);u.lookAt(d[0],d[1],r.minHfov,1e3)}}function Xe(l){var d=te(l),y=g.getCanvas(),U=y.clientWidth,X=y.clientHeight,W=d.x/U*2-1,ye=(1-d.y/X*2)*X/U,fe=1/Math.tan(r.hfov*Math.PI/360),Le=Math.sin(r.pitch*Math.PI/180),He=Math.cos(r.pitch*Math.PI/180),Re=fe*He-ye*Le,nt=Math.sqrt(W*W+Re*Re),tt=Math.atan((ye*He+fe*Le)/nt)*180/Math.PI,_t=Math.atan2(W/nt,Re/nt)*180/Math.PI+r.yaw;return _t<-180&&(_t+=360),_t>180&&(_t-=360),[tt,_t]}function se(l){if(L&&E){f=Date.now();var d=g.getCanvas(),y=d.clientWidth,U=d.clientHeight,X=te(l),W=(Math.atan(p/y*2-1)-Math.atan(X.x/y*2-1))*180/Math.PI*r.hfov/90+k;T.yaw=(W-r.yaw)%360*.2,r.yaw=W;var ye=2*Math.atan(Math.tan(r.hfov/360*Math.PI)*U/y)*180/Math.PI,fe=(Math.atan(X.y/U*2-1)-Math.atan(a/U*2-1))*180/Math.PI*ye/90+M;T.pitch=(fe-r.pitch)*.2,r.pitch=fe}}function ge(l){L&&(L=!1,Date.now()-f>15&&(T.pitch=T.yaw=0),O.classList.add("pnlm-grab"),O.classList.remove("pnlm-grabbing"),f=Date.now(),ht("mouseup",l))}function ve(l){if(!(!E||!r.draggable)){nn(),Vt(),r.roll=0,T.hfov=0;var d=te(l.targetTouches[0]);if(p=d.x,a=d.y,l.targetTouches.length==2){var y=te(l.targetTouches[1]);p+=(y.x-d.x)*.5,a+=(y.y-d.y)*.5,b=Math.sqrt((d.x-y.x)*(d.x-y.x)+(d.y-y.y)*(d.y-y.y))}L=!0,f=Date.now(),k=r.yaw,M=r.pitch,ht("touchstart",l),Ie()}}function Ue(l){if(r.draggable&&(l.preventDefault(),E&&(f=Date.now()),L&&E)){var d=te(l.targetTouches[0]),y=d.x,U=d.y;if(l.targetTouches.length==2&&b!=-1){var X=te(l.targetTouches[1]);y+=(X.x-d.x)*.5,U+=(X.y-d.y)*.5;var W=Math.sqrt((d.x-X.x)*(d.x-X.x)+(d.y-X.y)*(d.y-X.y));it(r.hfov+(b-W)*.1),b=W}var ye=r.hfov/360*r.touchPanSpeedCoeffFactor,fe=(p-y)*ye+k;T.yaw=(fe-r.yaw)%360*.2,r.yaw=fe;var Le=(U-a)*ye+M;T.pitch=(Le-r.pitch)*.2,r.pitch=Le}}function We(){L=!1,Date.now()-f>150&&(T.pitch=T.yaw=0),b=-1,f=Date.now(),ht("touchend",event)}var ke=[],Oe=[];function De(l){l.pointerType=="touch"&&(ke.push(l.pointerId),Oe.push({clientX:l.clientX,clientY:l.clientY}),l.targetTouches=Oe,ve(l),l.preventDefault())}function Te(l){if(l.pointerType=="touch"){for(var d=0;d<ke.length;d++)if(l.pointerId==ke[d]){Oe[d].clientX=l.clientX,Oe[d].clientY=l.clientY,l.targetTouches=Oe,Ue(l),l.preventDefault();return}}}function Se(l){if(l.pointerType=="touch"){for(var d=!1,y=0;y<ke.length;y++)l.pointerId==ke[y]&&(ke[y]=n),ke[y]&&(d=!0);d||(ke=[],Oe=[],We()),l.preventDefault()}}function Ve(l){!E||r.mouseZoom=="fullscreenonly"&&!x||(l.preventDefault(),nn(),f=Date.now(),l.wheelDeltaY?(it(r.hfov-l.wheelDeltaY*.05),T.hfov=l.wheelDelta<0?1:-1):l.wheelDelta?(it(r.hfov-l.wheelDelta*.05),T.hfov=l.wheelDelta<0?1:-1):l.detail&&(it(r.hfov+l.detail*1.5),T.hfov=l.detail>0?1:-1),Ie())}function Pe(l){nn(),f=Date.now(),Vt(),r.roll=0;var d=l.which||l.keycode;r.capturedKeyNumbers.indexOf(d)<0||(l.preventDefault(),d==27?x&&Pn():Ne(d,!0))}function Be(){for(var l=0;l<10;l++)_[l]=!1}function Ze(l){var d=l.which||l.keycode;r.capturedKeyNumbers.indexOf(d)<0||(l.preventDefault(),Ne(d,!1))}function Ne(l,d){var y=!1;switch(l){case 109:case 189:case 17:case 173:_[0]!=d&&(y=!0),_[0]=d;break;case 107:case 187:case 16:case 61:_[1]!=d&&(y=!0),_[1]=d;break;case 38:_[2]!=d&&(y=!0),_[2]=d;break;case 87:_[6]!=d&&(y=!0),_[6]=d;break;case 40:_[3]!=d&&(y=!0),_[3]=d;break;case 83:_[7]!=d&&(y=!0),_[7]=d;break;case 37:_[4]!=d&&(y=!0),_[4]=d;break;case 65:_[8]!=d&&(y=!0),_[8]=d;break;case 39:_[5]!=d&&(y=!0),_[5]=d;break;case 68:_[9]!=d&&(y=!0),_[9]=d}y&&d&&(typeof performance<"u"&&performance.now()?K=performance.now():K=Date.now(),Ie())}function H(){if(E){var l=!1,d=r.pitch,y=r.yaw,U=r.hfov,X;typeof performance<"u"&&performance.now()?X=performance.now():X=Date.now(),K===n&&(K=X);var W=(X-K)*r.hfov/1700;if(W=Math.min(W,1),_[0]&&r.keyboardZoom===!0&&(it(r.hfov+(T.hfov*.8+.5)*W),l=!0),_[1]&&r.keyboardZoom===!0&&(it(r.hfov+(T.hfov*.8-.2)*W),l=!0),(_[2]||_[6])&&(r.pitch+=(T.pitch*.8+.2)*W,l=!0),(_[3]||_[7])&&(r.pitch+=(T.pitch*.8-.2)*W,l=!0),(_[4]||_[8])&&(r.yaw+=(T.yaw*.8-.2)*W,l=!0),(_[5]||_[9])&&(r.yaw+=(T.yaw*.8+.2)*W,l=!0),l&&(f=Date.now()),r.autoRotate){if(X-K>.001){var ye=(X-K)/1e3,fe=(T.yaw/ye*W-r.autoRotate*.2)*ye;fe=(-r.autoRotate>0?1:-1)*Math.min(Math.abs(r.autoRotate*ye),Math.abs(fe)),r.yaw+=fe}r.autoRotateStopDelay&&(r.autoRotateStopDelay-=X-K,r.autoRotateStopDelay<=0&&(r.autoRotateStopDelay=!1,R=r.autoRotate,r.autoRotate=0))}if(Z.pitch&&(le("pitch"),d=r.pitch),Z.yaw&&(le("yaw"),y=r.yaw),Z.hfov&&(le("hfov"),U=r.hfov),W>0&&!r.autoRotate){var Le=.85;!_[4]&&!_[5]&&!_[8]&&!_[9]&&!Z.yaw&&(r.yaw+=T.yaw*W*Le),!_[2]&&!_[3]&&!_[6]&&!_[7]&&!Z.pitch&&(r.pitch+=T.pitch*W*Le),!_[0]&&!_[1]&&!Z.hfov&&it(r.hfov+T.hfov*W*Le)}if(K=X,W>0){T.yaw=T.yaw*.8+(r.yaw-y)/W*.2,T.pitch=T.pitch*.8+(r.pitch-d)/W*.2,T.hfov=T.hfov*.8+(r.hfov-U)/W*.2;var He=r.autoRotate?Math.abs(r.autoRotate):5;T.yaw=Math.min(He,Math.max(T.yaw,-He)),T.pitch=Math.min(He,Math.max(T.pitch,-He)),T.hfov=Math.min(He,Math.max(T.hfov,-He))}_[0]&&_[1]&&(T.hfov=0),(_[2]||_[6])&&(_[3]||_[7])&&(T.pitch=0),(_[4]||_[8])&&(_[5]||_[9])&&(T.yaw=0)}}function le(l){var d=Z[l],y=Math.min(1,Math.max((Date.now()-d.startTime)/1e3/(d.duration/1e3),0)),U=d.startPosition+r.animationTimingFunction(y)*(d.endPosition-d.startPosition);if(d.endPosition>d.startPosition&&U>=d.endPosition||d.endPosition<d.startPosition&&U<=d.endPosition||d.endPosition===d.startPosition){U=d.endPosition,T[l]=0;var X=Z[l].callback,W=Z[l].callbackArgs;delete Z[l],typeof X=="function"&&X(W)}r[l]=U}function A(l){return l<.5?2*l*l:-1+(4-2*l)*l}function me(){pt()}function Ie(){F||(F=!0,Ee())}function Ee(){if(Fe(),G&&clearTimeout(G),L||Y===!0)requestAnimationFrame(Ee);else if(_[0]||_[1]||_[2]||_[3]||_[4]||_[5]||_[6]||_[7]||_[8]||_[9]||r.autoRotate||Z.pitch||Z.yaw||Z.hfov||Math.abs(T.yaw)>.01||Math.abs(T.pitch)>.01||Math.abs(T.hfov)>.01)H(),r.autoRotateInactivityDelay>=0&&R&&Date.now()-f>r.autoRotateInactivityDelay&&!r.autoRotate&&(r.autoRotate=R,u.lookAt(he,n,$,3e3)),requestAnimationFrame(Ee);else if(g&&(g.isLoading()||r.dynamic===!0&&z))requestAnimationFrame(Ee);else{F=!1,K=n;var l=r.autoRotateInactivityDelay-(Date.now()-f);l>0?G=setTimeout(function(){r.autoRotate=R,u.lookAt(he,n,$,3e3),Ie()},l):r.autoRotateInactivityDelay>=0&&R&&(r.autoRotate=R,u.lookAt(he,n,$,3e3),Ie())}}function Fe(){var l;if(E){r.yaw>180?r.yaw-=360:r.yaw<-180&&(r.yaw+=360),l=r.yaw;var d=0;if(r.avoidShowingBackground){var Le=g.getCanvas(),y=r.hfov/2,U=Math.atan2(Math.tan(y/180*Math.PI),Le.width/Le.height)*180/Math.PI,X=r.vaov>r.haov;X?U*(1-Math.min(Math.cos((r.pitch-y)/180*Math.PI),Math.cos((r.pitch+y)/180*Math.PI))):d=y*(1-Math.min(Math.cos((r.pitch-U)/180*Math.PI),Math.cos((r.pitch+U)/180*Math.PI)))}var W=r.maxYaw-r.minYaw,ye=-180,fe=180;W<360&&(ye=r.minYaw+r.hfov/2+d,fe=r.maxYaw-r.hfov/2-d,W<r.hfov&&(ye=fe=(ye+fe)/2),r.yaw=Math.max(ye,Math.min(fe,r.yaw))),r.autoRotate!==!1&&l!=r.yaw&&K!==n&&(r.autoRotate*=-1);var Le=g.getCanvas(),He=2*Math.atan(Math.tan(r.hfov/180*Math.PI*.5)/(Le.width/Le.height))/Math.PI*180,Re=r.minPitch+He/2,nt=r.maxPitch-He/2,tt=r.maxPitch-r.minPitch;tt<He&&(Re=nt=(Re+nt)/2),isNaN(Re)&&(Re=-90),isNaN(nt)&&(nt=90),r.pitch=Math.max(Re,Math.min(nt,r.pitch)),g.render(r.pitch*Math.PI/180,r.yaw*Math.PI/180,r.hfov*Math.PI/180,{roll:r.roll*Math.PI/180}),vo(),r.compass&&(we.style.transform="rotate("+(-r.yaw-r.northOffset)+"deg)",we.style.webkitTransform="rotate("+(-r.yaw-r.northOffset)+"deg)"),r.onRender&&r.onRender()}}function ce(l,d,y,U){this.w=l,this.x=d,this.y=y,this.z=U}ce.prototype.multiply=function(l){return new ce(this.w*l.w-this.x*l.x-this.y*l.y-this.z*l.z,this.x*l.w+this.w*l.x+this.y*l.z-this.z*l.y,this.y*l.w+this.w*l.y+this.z*l.x-this.x*l.z,this.z*l.w+this.w*l.z+this.x*l.y-this.y*l.x)},ce.prototype.toEulerAngles=function(){var l=Math.atan2(2*(this.w*this.x+this.y*this.z),1-2*(this.x*this.x+this.y*this.y)),d=Math.asin(2*(this.w*this.y-this.z*this.x)),y=Math.atan2(2*(this.w*this.z+this.x*this.y),1-2*(this.y*this.y+this.z*this.z));return[l,d,y]};function Ms(l,d,y){var U=[d?d*Math.PI/180/2:0,y?y*Math.PI/180/2:0,l?l*Math.PI/180/2:0],X=[Math.cos(U[0]),Math.cos(U[1]),Math.cos(U[2])],W=[Math.sin(U[0]),Math.sin(U[1]),Math.sin(U[2])];return new ce(X[0]*X[1]*X[2]-W[0]*W[1]*W[2],W[0]*X[1]*X[2]-X[0]*W[1]*W[2],X[0]*W[1]*X[2]+W[0]*X[1]*W[2],X[0]*X[1]*W[2]+W[0]*W[1]*X[2])}function Is(l,d,y){var U=Ms(l,d,y);U=U.multiply(new ce(Math.sqrt(.5),-Math.sqrt(.5),0,0));var X=e.orientation?-e.orientation*Math.PI/180/2:0;return U.multiply(new ce(Math.cos(X),0,-Math.sin(X),0))}function ho(l){var d=Is(l.alpha,l.beta,l.gamma).toEulerAngles();typeof Y=="number"&&Y<10?Y+=1:Y===10?(P=d[2]/Math.PI*180+r.yaw,Y=!0,requestAnimationFrame(Ee)):(r.pitch=d[0]/Math.PI*180,r.roll=-d[1]/Math.PI*180,r.yaw=-d[2]/Math.PI*180+P)}function ks(){try{var l={};r.horizonPitch!==n&&(l.horizonPitch=r.horizonPitch*Math.PI/180),r.horizonRoll!==n&&(l.horizonRoll=r.horizonRoll*Math.PI/180),r.backgroundColor!==n&&(l.backgroundColor=r.backgroundColor),g.init(N,r.type,r.dynamic,r.haov*Math.PI/180,r.vaov*Math.PI/180,r.vOffset*Math.PI/180,Ts,l),r.dynamic!==!0&&(N=n)}catch(d){if(d.type=="webgl error"||d.type=="no webgl")ee();else if(d.type=="webgl size error")ee(r.strings.textureSizeError.replace("%s",d.width).replace("%s",d.maxWidth));else throw ee(r.strings.unknownError),d}}function Ts(){if(r.sceneFadeDuration&&g.fadeImg!==n){g.fadeImg.style.opacity=0;var l=g.fadeImg;delete g.fadeImg,setTimeout(function(){ne.removeChild(l),ht("scenechangefadedone")},r.sceneFadeDuration)}r.compass?we.style.display="inline":we.style.display="none",Ss(),S.load.box.style.display="none",m!==n&&(ne.removeChild(m),m=n),E=!0,ht("load"),Ie()}function mo(l){l.pitch=Number(l.pitch)||0,l.yaw=Number(l.yaw)||0;var d=t.createElement("div");d.className="pnlm-hotspot-base",l.cssClass?d.className+=" "+l.cssClass:d.className+=" pnlm-hotspot pnlm-sprite pnlm-"+bt(l.type);var y=t.createElement("span");l.text&&(y.innerHTML=bt(l.text));var U;if(l.video){var X=t.createElement("video"),W=l.video;r.basePath&&!w(W)&&(W=r.basePath+W),X.src=Ct(W),X.controls=!0,X.style.width=l.width+"px",ne.appendChild(d),y.appendChild(X)}else if(l.image){var W=l.image;r.basePath&&!w(W)&&(W=r.basePath+W),U=t.createElement("a"),U.href=Ct(l.URL?l.URL:W),U.target="_blank",y.appendChild(U);var ye=t.createElement("img");ye.src=Ct(W),ye.style.width=l.width+"px",ye.style.paddingTop="5px",ne.appendChild(d),U.appendChild(ye),y.style.maxWidth="initial"}else l.URL?(U=t.createElement("a"),U.href=Ct(l.URL),U.target="_blank",ne.appendChild(U),d.className+=" pnlm-pointer",y.className+=" pnlm-pointer",U.appendChild(d)):(l.sceneId&&(d.onclick=d.ontouchend=function(){return d.clicked||(d.clicked=!0,Rn(l.sceneId,l.targetPitch,l.targetYaw,l.targetHfov)),!1},d.className+=" pnlm-pointer",y.className+=" pnlm-pointer"),ne.appendChild(d));l.createTooltipFunc?l.createTooltipFunc(d,l.createTooltipArgs):(l.text||l.video||l.image)&&(d.classList.add("pnlm-tooltip"),d.appendChild(y),y.style.width=y.scrollWidth-20+"px",y.style.marginLeft=-(y.scrollWidth-d.offsetWidth)/2+"px",y.style.marginTop=-y.scrollHeight-12+"px"),l.clickHandlerFunc&&(d.addEventListener("click",function(fe){l.clickHandlerFunc(fe,l.clickHandlerArgs)},"false"),d.className+=" pnlm-pointer",y.className+=" pnlm-pointer"),l.div=d}function Ss(){V||(r.hotSpots?(r.hotSpots=r.hotSpots.sort(function(l,d){return l.pitch<d.pitch}),r.hotSpots.forEach(mo)):r.hotSpots=[],V=!0,vo())}function Ns(){var l=r.hotSpots;if(V=!1,delete r.hotSpots,l)for(var d=0;d<l.length;d++){for(var y=l[d].div;y.parentNode!=ne;)y=y.parentNode;ne.removeChild(y),delete l[d].div}}function go(l){var d=Math.sin(l.pitch*Math.PI/180),y=Math.cos(l.pitch*Math.PI/180),U=Math.sin(r.pitch*Math.PI/180),X=Math.cos(r.pitch*Math.PI/180),W=Math.cos((-l.yaw+r.yaw)*Math.PI/180),ye=d*U+y*W*X;if(l.yaw<=90&&l.yaw>-90&&ye<=0||(l.yaw>90||l.yaw<=-90)&&ye<=0)l.div.style.visibility="hidden";else{var fe=Math.sin((-l.yaw+r.yaw)*Math.PI/180),Le=Math.tan(r.hfov*Math.PI/360);l.div.style.visibility="visible";var He=g.getCanvas(),Re=He.clientWidth,nt=He.clientHeight,tt=[-Re/Le*fe*y/ye/2,-Re/Le*(d*X-y*W*U)/ye/2],_t=Math.sin(r.roll*Math.PI/180),yo=Math.cos(r.roll*Math.PI/180);tt=[tt[0]*yo-tt[1]*_t,tt[0]*_t+tt[1]*yo],tt[0]+=(Re-l.div.offsetWidth)/2,tt[1]+=(nt-l.div.offsetHeight)/2;var An="translate("+tt[0]+"px, "+tt[1]+"px) translateZ(9999px) rotate("+r.roll+"deg)";l.div.style.webkitTransform=An,l.div.style.MozTransform=An,l.div.style.transform=An}}function vo(){r.hotSpots.forEach(go)}function tn(l){r={};var d,y,U=["haov","vaov","vOffset","northOffset","horizonPitch","horizonRoll"];j=[];for(d in ie)ie.hasOwnProperty(d)&&(r[d]=ie[d]);for(d in i.default)if(i.default.hasOwnProperty(d))if(d=="strings")for(y in i.default.strings)i.default.strings.hasOwnProperty(y)&&(r.strings[y]=bt(i.default.strings[y]));else r[d]=i.default[d],U.indexOf(d)>=0&&j.push(d);if(l!==null&&l!==""&&i.scenes&&i.scenes[l]){var X=i.scenes[l];for(d in X)if(X.hasOwnProperty(d))if(d=="strings")for(y in X.strings)X.strings.hasOwnProperty(y)&&(r.strings[y]=bt(X.strings[y]));else r[d]=X[d],U.indexOf(d)>=0&&j.push(d);r.scene=l}for(d in i)if(i.hasOwnProperty(d))if(d=="strings")for(y in i.strings)i.strings.hasOwnProperty(y)&&(r.strings[y]=bt(i.strings[y]));else r[d]=i[d],U.indexOf(d)>=0&&j.push(d)}function Nn(l){if(l=l||!1,l&&"preview"in r){var d=r.preview;r.basePath&&!w(d)&&(d=r.basePath+d),m=t.createElement("div"),m.className="pnlm-preview-img",m.style.backgroundImage="url('"+As(d)+"')",ne.appendChild(m)}var y=r.title,U=r.author;l&&("previewTitle"in r&&(r.title=r.previewTitle),"previewAuthor"in r&&(r.author=r.previewAuthor)),r.hasOwnProperty("title")||(S.title.innerHTML=""),r.hasOwnProperty("author")||(S.author.innerHTML=""),!r.hasOwnProperty("title")&&!r.hasOwnProperty("author")&&(S.container.style.display="none"),q.load.innerHTML="<p>"+r.strings.loadButtonLabel+"</p>",S.load.boxp.innerHTML=r.strings.loadingLabel;for(var X in r)if(r.hasOwnProperty(X))switch(X){case"title":S.title.innerHTML=bt(r[X]),S.container.style.display="inline";break;case"author":S.author.innerHTML=r.strings.bylineLabel.replace("%s",bt(r[X])),S.container.style.display="inline";break;case"fallback":var W=t.createElement("a");W.href=Ct(r[X]),W.target="_blank",W.textContent="Click here to view this panorama in an alternative viewer.";var ye=t.createElement("p");ye.textContent="Your browser does not support WebGL.",ye.appendChild(t.createElement("br")),ye.appendChild(W),S.errorMsg.innerHTML="",S.errorMsg.appendChild(ye);break;case"hfov":it(Number(r[X]));break;case"autoLoad":r[X]===!0&&g===n&&(S.load.box.style.display="inline",q.load.style.display="none",h());break;case"showZoomCtrl":r[X]&&r.showControls!=!1?q.zoom.style.display="block":q.zoom.style.display="none";break;case"showFullscreenCtrl":r[X]&&r.showControls!=!1&&("fullscreen"in t||"mozFullScreen"in t||"webkitIsFullScreen"in t||"msFullscreenElement"in t)?q.fullscreen.style.display="block":q.fullscreen.style.display="none";break;case"hotSpotDebug":r[X]?be.style.display="block":be.style.display="none";break;case"showControls":r[X]||(q.orientation.style.display="none",q.zoom.style.display="none",q.fullscreen.style.display="none");break;case"orientationOnByDefault":r[X]&&(Ae===n?Ke=!0:Ae===!0&&rn());break}l&&(y?r.title=y:delete r.title,U?r.author=U:delete r.author)}function Pn(){if(E&&!v)if(x)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 pt(){var l=e.innerWidth==screen.width&&e.innerHeight==screen.height;t.fullscreen||t.mozFullScreen||t.webkitIsFullScreen||t.msFullscreenElement||l?(q.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),x=!0):(q.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),x=!1),g.resize(),it(r.hfov),Ie()}function Ps(){E&&(it(r.hfov-5),Ie())}function Rs(){E&&(it(r.hfov+5),Ie())}function _o(l){var d=r.minHfov;if(r.type=="multires"&&g&&(d=Math.min(d,g.getCanvas().width/(r.multiRes.cubeResolution/90*.9))),d>r.maxHfov)return console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),r.hfov;var y=r.hfov;if(l<d?y=d:l>r.maxHfov?y=r.maxHfov:y=l,r.avoidShowingBackground&&g){var U=g.getCanvas();y=Math.min(y,Math.atan(Math.tan((r.maxPitch-r.minPitch)/360*Math.PI)/U.height*U.width)*360/Math.PI)}return y}function it(l){r.hfov=_o(l)}function nn(){Z={},R=r.autoRotate?r.autoRotate:R,r.autoRotate=!1}function wo(){C(),E=!1,q.load.style.display="none",S.load.box.style.display="inline",h()}function Rn(l,d,y,U,X){E=!1,Z={};var W,ye,fe,Le;if(r.sceneFadeDuration&&!X){var He=g.render(r.pitch*Math.PI/180,r.yaw*Math.PI/180,r.hfov*Math.PI/180,{returnImage:!0});if(He!==n){W=new Image,W.className="pnlm-fade-img",W.style.transition="opacity "+r.sceneFadeDuration/1e3+"s",W.style.width="100%",W.style.height="100%",W.onload=function(){Rn(l,d,y,U,!0)},W.src=He,ne.appendChild(W),g.fadeImg=W;return}}d==="same"?ye=r.pitch:ye=d,y==="same"?fe=r.yaw:y==="sameAzimuth"?fe=r.yaw+(r.northOffset||0)-(i.scenes[l].northOffset||0):fe=y,U==="same"?Le=r.hfov:Le=U,Ns(),tn(l),T.yaw=T.pitch=T.hfov=0,Nn(),ye!==n&&(r.pitch=ye),fe!==n&&(r.yaw=fe),Le!==n&&(r.hfov=Le),ht("scenechange",l),wo()}function Vt(){e.removeEventListener("deviceorientation",ho),q.orientation.classList.remove("pnlm-orientation-button-active"),Y=!1}function rn(){Y=1,e.addEventListener("deviceorientation",ho),q.orientation.classList.add("pnlm-orientation-button-active")}function bt(l){return i.escapeHTML?String(l).split(/&/g).join("&").split('"').join(""").split("'").join("'").split("<").join("<").split(">").join(">").split("/").join("/").split(`
|
|
1
|
+
(function(Ze,ut){typeof exports=="object"&&typeof module<"u"?ut(exports):typeof define=="function"&&define.amd?define(["exports"],ut):(Ze=typeof globalThis<"u"?globalThis:Ze||self,ut(Ze.CarCutterWebplayerWC={}))})(this,(function(Ze){"use strict";const ut="cc-webplayer",Bt="cc-webplayer-custom-media",Vt="cc-webplayer-icon",On="composition-loading",Fn="composition-loaded",Hn="composition-load-error",Un="item-change",Wn="extend-mode-on",Bn="extend-mode-off",on="hotspots-on",an="hotspots-off",Vn="gallery-open",Xn="gallery-close",Eo="quality",Lo="full_screen",Zn="cc-webplayer:",sn="ew-resize",Mo="cc-analytics:";function ln(){if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"){const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;const t=Array.from(e,r=>r.toString(16).padStart(2,"0")).join("");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function ko(e,t){return`https://cdn.car-cutter.com/gallery/${e}/${t}/composition_v3.json`}function Io(e,t){const r=e.split("/"),o=r.pop();return[r.join("/"),t,o].join("/")}function To(){const e="car-cutter-webplayer-browser-id",t=typeof window<"u"?window.localStorage.getItem(e):null;if(t)return t;const r=ln();return typeof window<"u"&&window.localStorage.setItem(e,r),r}function So(){const e="car-cutter-webplayer-session-id",t=typeof window<"u"?window.sessionStorage.getItem(e):null;if(t)return t;const r=ln();return typeof window<"u"&&window.sessionStorage.setItem(e,r),r}function No(){return ln()}function Yn(){return!!customElements.get(ut)&&!!customElements.get(Bt)&&!!customElements.get(Vt)}var St,Me,Gn,wt,$n,jn,qn,Kn,cn,un,dn,Jn,Nt={},Qn=[],Po=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pt=Array.isArray;function lt(e,t){for(var r in t)e[r]=t[r];return e}function fn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function dt(e,t,r){var o,i,s,u={};for(s in t)s=="key"?o=t[s]:s=="ref"?i=t[s]:u[s]=t[s];if(arguments.length>2&&(u.children=arguments.length>3?St.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)u[s]===void 0&&(u[s]=e.defaultProps[s]);return Rt(e,u,o,i,null)}function Rt(e,t,r,o,i){var s={type:e,props:t,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Gn,__i:-1,__u:0};return i==null&&Me.vnode!=null&&Me.vnode(s),s}function Ro(){return{current:null}}function Ke(e){return e.children}function ct(e,t){this.props=e,this.context=t}function Et(e,t){if(t==null)return e.__?Et(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Et(e):null}function er(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return er(e)}}function pn(e){(!e.__d&&(e.__d=!0)&&wt.push(e)&&!Xt.__r++||$n!=Me.debounceRendering)&&(($n=Me.debounceRendering)||jn)(Xt)}function Xt(){for(var e,t,r,o,i,s,u,n=1;wt.length;)wt.length>n&&wt.sort(qn),e=wt.shift(),n=wt.length,e.__d&&(r=void 0,o=void 0,i=(o=(t=e).__v).__e,s=[],u=[],t.__P&&((r=lt({},o)).__v=o.__v+1,Me.vnode&&Me.vnode(r),hn(t.__P,r,o,t.__n,t.__P.namespaceURI,32&o.__u?[i]:null,s,i??Et(o),!!(32&o.__u),u),r.__v=o.__v,r.__.__k[r.__i]=r,ar(s,r,u),o.__e=o.__=null,r.__e!=i&&er(r)));Xt.__r=0}function tr(e,t,r,o,i,s,u,n,v,m,L){var f,p,a,b,I,k,g,x=o&&o.__k||Qn,E=t.length;for(v=Ao(r,t,x,v,E),f=0;f<E;f++)(a=r.__k[f])!=null&&(p=a.__i==-1?Nt:x[a.__i]||Nt,a.__i=f,k=hn(e,a,p,i,s,u,n,v,m,L),b=a.__e,a.ref&&p.ref!=a.ref&&(p.ref&&gn(p.ref,null,a),L.push(a.ref,a.__c||b,a)),I==null&&b!=null&&(I=b),(g=!!(4&a.__u))||p.__k===a.__k?v=nr(a,v,e,g):typeof a.type=="function"&&k!==void 0?v=k:b&&(v=b.nextSibling),a.__u&=-7);return r.__e=I,v}function Ao(e,t,r,o,i){var s,u,n,v,m,L=r.length,f=L,p=0;for(e.__k=new Array(i),s=0;s<i;s++)(u=t[s])!=null&&typeof u!="boolean"&&typeof u!="function"?(typeof u=="string"||typeof u=="number"||typeof u=="bigint"||u.constructor==String?u=e.__k[s]=Rt(null,u,null,null,null):Pt(u)?u=e.__k[s]=Rt(Ke,{children:u},null,null,null):u.constructor===void 0&&u.__b>0?u=e.__k[s]=Rt(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):e.__k[s]=u,v=s+p,u.__=e,u.__b=e.__b+1,n=null,(m=u.__i=Do(u,r,v,f))!=-1&&(f--,(n=r[m])&&(n.__u|=2)),n==null||n.__v==null?(m==-1&&(i>L?p--:i<L&&p++),typeof u.type!="function"&&(u.__u|=4)):m!=v&&(m==v-1?p--:m==v+1?p++:(m>v?p--:p++,u.__u|=4))):e.__k[s]=null;if(f)for(s=0;s<L;s++)(n=r[s])!=null&&(2&n.__u)==0&&(n.__e==o&&(o=Et(n)),sr(n,n));return o}function nr(e,t,r,o){var i,s;if(typeof e.type=="function"){for(i=e.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=e,t=nr(i[s],t,r,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=Et(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ft(e,t){return t=t||[],e==null||typeof e=="boolean"||(Pt(e)?e.some(function(r){ft(r,t)}):t.push(e)),t}function Do(e,t,r,o){var i,s,u,n=e.key,v=e.type,m=t[r],L=m!=null&&(2&m.__u)==0;if(m===null&&n==null||L&&n==m.key&&v==m.type)return r;if(o>(L?1:0)){for(i=r-1,s=r+1;i>=0||s<t.length;)if((m=t[u=i>=0?i--:s++])!=null&&(2&m.__u)==0&&n==m.key&&v==m.type)return u}return-1}function rr(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Po.test(t)?r:r+"px"}function Zt(e,t,r,o,i){var s,u;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)r&&t in r||rr(e.style,t,"");if(r)for(t in r)o&&r[t]==o[t]||rr(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Kn,"$1")),u=t.toLowerCase(),t=u in e||t=="onFocusOut"||t=="onFocusIn"?u.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=r,r?o?r.u=o.u:(r.u=cn,e.addEventListener(t,s?dn:un,s)):e.removeEventListener(t,s?dn:un,s);else{if(i=="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]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function or(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=cn++;else if(t.t<r.u)return;return r(Me.event?Me.event(t):t)}}}function hn(e,t,r,o,i,s,u,n,v,m){var L,f,p,a,b,I,k,g,x,E,_,M,N,$,T,U,Z,R=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(v=!!(32&r.__u),s=[n=t.__e=r.__e]),(L=Me.__b)&&L(t);e:if(typeof R=="function")try{if(g=t.props,x="prototype"in R&&R.prototype.render,E=(L=R.contextType)&&o[L.__c],_=L?E?E.props.value:L.__:o,r.__c?k=(f=t.__c=r.__c).__=f.__E:(x?t.__c=f=new R(g,_):(t.__c=f=new ct(g,_),f.constructor=R,f.render=Oo),E&&E.sub(f),f.state||(f.state={}),f.__n=o,p=f.__d=!0,f.__h=[],f._sb=[]),x&&f.__s==null&&(f.__s=f.state),x&&R.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=lt({},f.__s)),lt(f.__s,R.getDerivedStateFromProps(g,f.__s))),a=f.props,b=f.state,f.__v=t,p)x&&R.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),x&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(x&&R.getDerivedStateFromProps==null&&g!==a&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(g,_),t.__v==r.__v||!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(g,f.__s,_)===!1){for(t.__v!=r.__v&&(f.props=g,f.state=f.__s,f.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Y){Y&&(Y.__=t)}),M=0;M<f._sb.length;M++)f.__h.push(f._sb[M]);f._sb=[],f.__h.length&&u.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(g,f.__s,_),x&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(a,b,I)})}if(f.context=_,f.props=g,f.__P=e,f.__e=!1,N=Me.__r,$=0,x){for(f.state=f.__s,f.__d=!1,N&&N(t),L=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__d=!1,N&&N(t),L=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++$<25);f.state=f.__s,f.getChildContext!=null&&(o=lt(lt({},o),f.getChildContext())),x&&!p&&f.getSnapshotBeforeUpdate!=null&&(I=f.getSnapshotBeforeUpdate(a,b)),U=L,L!=null&&L.type===Ke&&L.key==null&&(U=ir(L.props.children)),n=tr(e,Pt(U)?U:[U],t,r,o,i,s,u,n,v,m),f.base=t.__e,t.__u&=-161,f.__h.length&&u.push(f),k&&(f.__E=f.__=null)}catch(Y){if(t.__v=null,v||s!=null)if(Y.then){for(t.__u|=v?160:128;n&&n.nodeType==8&&n.nextSibling;)n=n.nextSibling;s[s.indexOf(n)]=null,t.__e=n}else{for(Z=s.length;Z--;)fn(s[Z]);mn(t)}else t.__e=r.__e,t.__k=r.__k,Y.then||mn(t);Me.__e(Y,t,r)}else s==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):n=t.__e=zo(r.__e,t,r,o,i,s,u,v,m);return(L=Me.diffed)&&L(t),128&t.__u?void 0:n}function mn(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(mn)}function ar(e,t,r){for(var o=0;o<r.length;o++)gn(r[o],r[++o],r[++o]);Me.__c&&Me.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(s){s.call(i)})}catch(s){Me.__e(s,i.__v)}})}function ir(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Pt(e)?e.map(ir):lt({},e)}function zo(e,t,r,o,i,s,u,n,v){var m,L,f,p,a,b,I,k=r.props||Nt,g=t.props,x=t.type;if(x=="svg"?i="http://www.w3.org/2000/svg":x=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(m=0;m<s.length;m++)if((a=s[m])&&"setAttribute"in a==!!x&&(x?a.localName==x:a.nodeType==3)){e=a,s[m]=null;break}}if(e==null){if(x==null)return document.createTextNode(g);e=document.createElementNS(i,x,g.is&&g),n&&(Me.__m&&Me.__m(t,s),n=!1),s=null}if(x==null)k===g||n&&e.data==g||(e.data=g);else{if(s=s&&St.call(e.childNodes),!n&&s!=null)for(k={},m=0;m<e.attributes.length;m++)k[(a=e.attributes[m]).name]=a.value;for(m in k)if(a=k[m],m!="children"){if(m=="dangerouslySetInnerHTML")f=a;else if(!(m in g)){if(m=="value"&&"defaultValue"in g||m=="checked"&&"defaultChecked"in g)continue;Zt(e,m,null,a,i)}}for(m in g)a=g[m],m=="children"?p=a:m=="dangerouslySetInnerHTML"?L=a:m=="value"?b=a:m=="checked"?I=a:n&&typeof a!="function"||k[m]===a||Zt(e,m,a,k[m],i);if(L)n||f&&(L.__html==f.__html||L.__html==e.innerHTML)||(e.innerHTML=L.__html),t.__k=[];else if(f&&(e.innerHTML=""),tr(t.type=="template"?e.content:e,Pt(p)?p:[p],t,r,o,x=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,u,s?s[0]:r.__k&&Et(r,0),n,v),s!=null)for(m=s.length;m--;)fn(s[m]);n||(m="value",x=="progress"&&b==null?e.removeAttribute("value"):b!=null&&(b!==e[m]||x=="progress"&&!b||x=="option"&&b!=k[m])&&Zt(e,m,b,k[m],i),m="checked",I!=null&&I!=e[m]&&Zt(e,m,I,k[m],i))}return e}function gn(e,t,r){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(i){Me.__e(i,r)}}function sr(e,t,r){var o,i;if(Me.unmount&&Me.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||gn(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(s){Me.__e(s,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&sr(o[i],t,r||typeof e.type!="function");r||fn(e.__e),e.__c=e.__=e.__e=void 0}function Oo(e,t,r){return this.constructor(e,r)}function At(e,t,r){var o,i,s,u;t==document&&(t=document.documentElement),Me.__&&Me.__(e,t),i=(o=typeof r=="function")?null:r&&r.__k||t.__k,s=[],u=[],hn(t,e=(!o&&r||t).__k=dt(Ke,null,[e]),i||Nt,Nt,t.namespaceURI,!o&&r?[r]:i?null:t.firstChild?St.call(t.childNodes):null,s,!o&&r?r:i?i.__e:t.firstChild,o,u),ar(s,e,u)}function lr(e,t){At(e,t,lr)}function Fo(e,t,r){var o,i,s,u,n=lt({},e.props);for(s in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)s=="key"?o=t[s]:s=="ref"?i=t[s]:n[s]=t[s]===void 0&&u!=null?u[s]:t[s];return arguments.length>2&&(n.children=arguments.length>3?St.call(arguments,2):r),Rt(e.type,n,o||e.key,i||e.ref,null)}function Dt(e){function t(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&o.forEach(function(u){u.__e=!0,pn(u)})},this.sub=function(s){o.add(s);var u=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),u&&u.call(s)}}),r.children}return t.__c="__cC"+Jn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,o){return r.children(o)}).contextType=t,t}St=Qn.slice,Me={__e:function(e,t,r,o){for(var i,s,u;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),u=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,o||{}),u=i.__d),u)return i.__E=i}catch(n){e=n}throw e}},Gn=0,ct.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=lt({},this.state),typeof e=="function"&&(e=e(lt({},r),this.props)),e&<(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),pn(this))},ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),pn(this))},ct.prototype.render=Ke,wt=[],jn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,qn=function(e,t){return e.__v.__b-t.__v.__b},Xt.__r=0,Kn=/(PointerCapture)$|Capture$/i,cn=0,un=or(!1),dn=or(!0),Jn=0;var Ho=0;function c(e,t,r,o,i,s){t||(t={});var u,n,v=t;if("ref"in v)for(n in v={},t)n=="ref"?u=t[n]:v[n]=t[n];var m={type:e,props:v,key:r,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ho,__i:-1,__u:0,__source:i,__self:s};if(typeof e=="function"&&(u=e.defaultProps))for(n in u)v[n]===void 0&&(v[n]=u[n]);return Me.vnode&&Me.vnode(m),m}var mt,Ye,vn,cr,Lt=0,ur=[],$e=Me,dr=$e.__b,fr=$e.__r,pr=$e.diffed,hr=$e.__c,mr=$e.unmount,gr=$e.__;function Mt(e,t){$e.__h&&$e.__h(Ye,e,Lt||t),Lt=0;var r=Ye.__H||(Ye.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function be(e){return Lt=1,_n(xr,e)}function _n(e,t,r){var o=Mt(mt++,2);if(o.t=e,!o.__c&&(o.__=[r?r(t):xr(void 0,t),function(n){var v=o.__N?o.__N[0]:o.__[0],m=o.t(v,n);v!==m&&(o.__N=[m,o.__[1]],o.__c.setState({}))}],o.__c=Ye,!Ye.__f)){var i=function(n,v,m){if(!o.__c.__H)return!0;var L=o.__c.__H.__.filter(function(p){return!!p.__c});if(L.every(function(p){return!p.__N}))return!s||s.call(this,n,v,m);var f=o.__c.props!==n;return L.forEach(function(p){if(p.__N){var a=p.__[0];p.__=p.__N,p.__N=void 0,a!==p.__[0]&&(f=!0)}}),s&&s.call(this,n,v,m)||f};Ye.__f=!0;var s=Ye.shouldComponentUpdate,u=Ye.componentWillUpdate;Ye.componentWillUpdate=function(n,v,m){if(this.__e){var L=s;s=void 0,i(n,v,m),s=L}u&&u.call(this,n,v,m)},Ye.shouldComponentUpdate=i}return o.__N||o.__}function me(e,t){var r=Mt(mt++,3);!$e.__s&&yn(r.__H,t)&&(r.__=e,r.u=t,Ye.__H.__h.push(r))}function zt(e,t){var r=Mt(mt++,4);!$e.__s&&yn(r.__H,t)&&(r.__=e,r.u=t,Ye.__h.push(r))}function Ce(e){return Lt=5,ze(function(){return{current:e}},[])}function vr(e,t,r){Lt=6,zt(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}},r==null?r:r.concat(e))}function ze(e,t){var r=Mt(mt++,7);return yn(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function X(e,t){return Lt=8,ze(function(){return e},t)}function kt(e){var t=Ye.context[e.__c],r=Mt(mt++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Ye)),t.props.value):e.__}function _r(e,t){$e.useDebugValue&&$e.useDebugValue(t?t(e):e)}function wr(){var e=Mt(mt++,11);if(!e.__){for(var t=Ye.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function Uo(){for(var e;e=ur.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Yt),e.__H.__h.forEach(wn),e.__H.__h=[]}catch(t){e.__H.__h=[],$e.__e(t,e.__v)}}$e.__b=function(e){Ye=null,dr&&dr(e)},$e.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),gr&&gr(e,t)},$e.__r=function(e){fr&&fr(e),mt=0;var t=(Ye=e.__c).__H;t&&(vn===Ye?(t.__h=[],Ye.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Yt),t.__h.forEach(wn),t.__h=[],mt=0)),vn=Ye},$e.diffed=function(e){pr&&pr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ur.push(t)!==1&&cr===$e.requestAnimationFrame||((cr=$e.requestAnimationFrame)||Wo)(Uo)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),vn=Ye=null},$e.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Yt),r.__h=r.__h.filter(function(o){return!o.__||wn(o)})}catch(o){t.some(function(i){i.__h&&(i.__h=[])}),t=[],$e.__e(o,r.__v)}}),hr&&hr(e,t)},$e.unmount=function(e){mr&&mr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(o){try{Yt(o)}catch(i){t=i}}),r.__H=void 0,t&&$e.__e(t,r.__v))};var yr=typeof requestAnimationFrame=="function";function Wo(e){var t,r=function(){clearTimeout(o),yr&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(r,35);yr&&(t=requestAnimationFrame(r))}function Yt(e){var t=Ye,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Ye=t}function wn(e){var t=Ye;e.__c=e.__(),Ye=t}function yn(e,t){return!e||e.length!==t.length||t.some(function(r,o){return r!==e[o]})}function xr(e,t){return typeof t=="function"?t(e):t}function br(e,t){for(var r in t)e[r]=t[r];return e}function xn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function Cr(e,t){var r=t(),o=be({t:{__:r,u:t}}),i=o[0].t,s=o[1];return zt(function(){i.__=r,i.u=t,bn(i)&&s({t:i})},[e,r,t]),me(function(){return bn(i)&&s({t:i}),e(function(){bn(i)&&s({t:i})})},[e]),r}function bn(e){var t,r,o=e.u,i=e.__;try{var s=o();return!((t=i)===(r=s)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}function Er(e){e()}function Lr(e){return e}function Mr(){return[!1,Er]}var kr=zt;function Cn(e,t){this.props=e,this.context=t}function Bo(e,t){function r(i){var s=this.props.ref,u=s==i.ref;return!u&&s&&(s.call?s(null):s.current=null),t?!t(this.props,i)||!u:xn(this.props,i)}function o(i){return this.shouldComponentUpdate=r,dt(e,i)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o.type=e,o}(Cn.prototype=new ct).isPureReactComponent=!0,Cn.prototype.shouldComponentUpdate=function(e,t){return xn(this.props,e)||xn(this.state,t)};var Ir=Me.__b;Me.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ir&&Ir(e)};var Vo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Tr(e){function t(r){var o=br({},r);return delete o.ref,e(o,r.ref||null)}return t.$$typeof=Vo,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Sr=function(e,t){return e==null?null:ft(ft(e).map(t))},Xo={map:Sr,forEach:Sr,count:function(e){return e?ft(e).length:0},only:function(e){var t=ft(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ft},Zo=Me.__e;Me.__e=function(e,t,r,o){if(e.then){for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}Zo(e,t,r,o)};var Nr=Me.unmount;function Pr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=br({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return Pr(o,t,r)})),e}function Rr(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return Rr(o,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Gt(){this.__u=0,this.o=null,this.__b=null}function Ar(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Yo(e){var t,r,o,i=null;function s(u){if(t||(t=e()).then(function(n){n&&(i=n.default||n),o=!0},function(n){r=n,o=!0}),r)throw r;if(!o)throw t;return i?dt(i,u):null}return s.displayName="Lazy",s.__f=!0,s}function Ot(){this.i=null,this.l=null}Me.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Nr&&Nr(e)},(Gt.prototype=new ct).__c=function(e,t){var r=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(r);var i=Ar(o.__v),s=!1,u=function(){s||o.__z||(s=!0,r.__R=null,i?i(v):v())};r.__R=u;var n=r.__P;r.__P=null;var v=function(){if(!--o.__u){if(o.state.__a){var m=o.state.__a;o.__v.__k[0]=Rr(m,m.__c.__P,m.__c.__O)}var L;for(o.setState({__a:o.__b=null});L=o.o.pop();)L.__P=n,L.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(u,u)},Gt.prototype.componentWillUnmount=function(){this.o=[]},Gt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Pr(this.__b,r,o.__O=o.__P)}this.__b=null}var i=t.__a&&dt(Ke,null,e.fallback);return i&&(i.__u&=-33),[dt(Ke,null,t.__a?null:e.children),i]};var Dr=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Go(e){return this.getChildContext=function(){return e.context},e.children}function $o(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){At(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var o=t.__v;o!==null&&!o.__m&&o.__!==null;)o=o.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:o.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(i,s){this.childNodes.push(i),t.h.insertBefore(i,s)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}At(dt(Go,{context:t.context},e.__v),t.v)}function jo(e,t){var r=dt($o,{__v:e,h:t});return r.containerInfo=t,r}(Ot.prototype=new ct).__a=function(e){var t=this,r=Ar(t.__v),o=t.l.get(e);return o[0]++,function(i){var s=function(){t.props.revealOrder?(o.push(i),Dr(t,e,o)):i()};r?r(s):s()}},Ot.prototype.render=function(e){this.i=null,this.l=new Map;var t=ft(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Ot.prototype.componentDidUpdate=Ot.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Dr(e,r,t)})};var zr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,qo=/^(?: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]/,Ko=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Jo=/[A-Z0-9]/g,Qo=typeof document<"u",ea=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Or(e,t,r){return t.__k==null&&(t.textContent=""),At(e,t),typeof r=="function"&&r(),e?e.__c:null}function ta(e,t,r){return lr(e,t),typeof r=="function"&&r(),e?e.__c:null}ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Fr=Me.event;function na(){}function ra(){return this.cancelBubble}function oa(){return this.defaultPrevented}Me.event=function(e){return Fr&&(e=Fr(e)),e.persist=na,e.isPropagationStopped=ra,e.isDefaultPrevented=oa,e.nativeEvent=e};var En,aa={enumerable:!1,configurable:!0,get:function(){return this.class}},Hr=Me.vnode;Me.vnode=function(e){typeof e.type=="string"&&(function(t){var r=t.props,o=t.type,i={},s=o.indexOf("-")===-1;for(var u in r){var n=r[u];if(!(u==="value"&&"defaultValue"in r&&n==null||Qo&&u==="children"&&o==="noscript"||u==="class"||u==="className")){var v=u.toLowerCase();u==="defaultValue"&&"value"in r&&r.value==null?u="value":u==="download"&&n===!0?n="":v==="translate"&&n==="no"?n=!1:v[0]==="o"&&v[1]==="n"?v==="ondoubleclick"?u="ondblclick":v!=="onchange"||o!=="input"&&o!=="textarea"||ea(r.type)?v==="onfocus"?u="onfocusin":v==="onblur"?u="onfocusout":Ko.test(u)&&(u=v):v=u="oninput":s&&qo.test(u)?u=u.replace(Jo,"-$&").toLowerCase():n===null&&(n=void 0),v==="oninput"&&i[u=v]&&(u="oninputCapture"),i[u]=n}}o=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=ft(r.children).forEach(function(m){m.props.selected=i.value.indexOf(m.props.value)!=-1})),o=="select"&&i.defaultValue!=null&&(i.value=ft(r.children).forEach(function(m){m.props.selected=i.multiple?i.defaultValue.indexOf(m.props.value)!=-1:i.defaultValue==m.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",aa)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i})(e),e.$$typeof=zr,Hr&&Hr(e)};var Ur=Me.__r;Me.__r=function(e){Ur&&Ur(e),En=e.__c};var Wr=Me.diffed;Me.diffed=function(e){Wr&&Wr(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),En=null};var ia={ReactCurrentDispatcher:{current:{readContext:function(e){return En.__n[e.__c].props.value},useCallback:X,useContext:kt,useDebugValue:_r,useDeferredValue:Lr,useEffect:me,useId:wr,useImperativeHandle:vr,useInsertionEffect:kr,useLayoutEffect:zt,useMemo:ze,useReducer:_n,useRef:Ce,useState:be,useSyncExternalStore:Cr,useTransition:Mr}}};function sa(e){return dt.bind(null,e)}function $t(e){return!!e&&e.$$typeof===zr}function la(e){return $t(e)&&e.type===Ke}function ca(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ua(e){return $t(e)?Fo.apply(null,arguments):e}function Br(e){return!!e.__k&&(At(null,e),!0)}function da(e){return e&&(e.base||e.nodeType===1&&e)||null}var fa=function(e,t){return e(t)},pa=function(e,t){return e(t)},ha=Ke,ma=$t,Vr={useState:be,useId:wr,useReducer:_n,useEffect:me,useLayoutEffect:zt,useInsertionEffect:kr,useTransition:Mr,useDeferredValue:Lr,useSyncExternalStore:Cr,startTransition:Er,useRef:Ce,useImperativeHandle:vr,useMemo:ze,useCallback:X,useContext:kt,useDebugValue:_r,version:"18.3.1",Children:Xo,render:Or,hydrate:ta,unmountComponentAtNode:Br,createPortal:jo,createElement:dt,createContext:Dt,createFactory:sa,cloneElement:ua,createRef:Ro,Fragment:Ke,isValidElement:$t,isElement:ma,isFragment:la,isMemo:ca,findDOMNode:da,Component:ct,PureComponent:Cn,memo:Bo,forwardRef:Tr,flushSync:pa,unstable_batchedUpdates:fa,StrictMode:ha,Suspense:Gt,SuspenseList:Ot,lazy:Yo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ia};async function ga(e){const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch composition: ${t.statusText}`);return await t.json()}const Ln=new Map,va=e=>{const[t,r]=be({status:"pending",isSuccess:!1});return me(()=>{const o=s=>r({status:"success",data:s,isSuccess:!0}),i=Ln.get(e);if(i&&!(i instanceof Promise)){o(i);return}r({status:"fetching",isSuccess:!1}),(async function(){try{let s;if(i)s=await i;else{const u=ga(e);Ln.set(e,u),s=await u,Ln.set(e,s)}o(s)}catch(s){r({status:"error",isSuccess:!1,error:s})}})()},[e]),t},Xr=Dt(null),Je=()=>{const e=kt(Xr);if(!e)throw new Error("useGlobalContext must be used within a GlobalContextProvider");return e},_a=({children:e,...t})=>c(Xr.Provider,{value:t,children:e}),Zr=Dt(null),gt=()=>{const e=kt(Zr);if(!e)throw new Error("useCompositionContext must be used within a CompositionContextProvider");return e},wa=({composition:e,children:t})=>{const{aspectRatio:r,categories:o,imageHdWidth:i,imageSubWidths:s}=e,{minMediaWidth:u,maxMediaWidth:n,categoriesFilter:v}=Je(),m=ze(()=>{if(v==="*")return o;function a(b){return v.split("|").some(I=>new RegExp(`^${I.replace(/\*/g,".*")}$`).test(b))}return o.filter(({id:b})=>a(b))},[o,v]),L=ze(()=>m.flatMap(({items:a})=>a),[m]),f={aspectRatio:r.replace(":"," / ")},p=ze(()=>{const a=s.concat(i),b=a.sort((k,g)=>k-g),I=b.filter(k=>k>=u&&k<=n);if(I.length===0){const k=(u+n)/2,g=a.reduce((x,E)=>Math.abs(E-k)<Math.abs(x-k)?E:x,i);return console.warn(`None of available media widths (${b.join("|")}) match the given constraints (${u>0?`${u} ≤ `:""}width${n<1/0?` ≤ ${n}`:""}).`,`Using the closest width instead (${g}).`),[g]}return I},[s,i,u,n]);return c(Zr.Provider,{value:{...e,categories:m,items:L,aspectRatioStyle:f,usedMediaWidths:p},children:t})},Yr=500,yt=.75,vt=1+yt*2,Gr=()=>{const{isFullScreen:e,maxItemsShown:t,integration:r}=Je();return{effectiveMaxItemsShown:r&&e?1:t}};function ot(e,t,r){return Math.min(Math.max(e,t),r)}const jt=(e,t,r)=>e+(t-e)*r,$r=(e,t,r,o,i,s=!1)=>{const u=ot(e,t,r);if(u===(s?r:t))return o;if(u===(s?t:r))return 1;const n=(u-t)/(r-t),m=1+(s?n:1-n)*(o-1),f=1+Math.round((m-1)/i)*i;return ot(f,1,o)},ya=(e,t)=>{if(t.includes(e))return e;let r=t[0],o=Math.abs(e-r);for(let i=1;i<t.length;i++){const s=Math.abs(e-t[i]);s<o&&(o=s,r=t[i])}return r},jr=Dt(null),Mn=()=>kt(jr),Ft=()=>{const e=Mn();if(!e)throw new Error("useCustomizationContext must be used within a CustomizationContextProvider");return e},qr="*:size-full",Kr="*:object-cover *:size-full",xa=({children:e})=>{const{compositionUrl:t}=Je(),r=X(()=>document.querySelector(`${ut}[composition-url="${t}"]`),[t]),o=X(b=>{const I=b.querySelectorAll(Vt),k=new Map;for(const g of I){const x=g.getAttribute("name");if(!x){console.warn("Icon element is missing a name attribute");continue}const E=g.innerHTML,_=E?c("div",{className:qr,dangerouslySetInnerHTML:{__html:E}}):void 0;if(!_){console.warn(`Icon "${x}" customization is empty.`);continue}k.set(x,{Icon:_})}return k},[]),[i,s]=be(()=>{const b=r();return b?o(b):new Map});me(()=>{const b=r();if(!b)return;const I=new MutationObserver(()=>{s(o(b))});return I.observe(b,{childList:!0,subtree:!0}),()=>I.disconnect()},[o,r]);const u=X(b=>i.get(b),[i]),n=X((b,I)=>{s(k=>{const{Icon:g,...x}=I;return new Map(k.set(b,{...x,Icon:c("div",{className:qr,children:g})}))})},[]),v=X(b=>{s(I=>(I.delete(b),new Map(I)))},[]),m=X(b=>{const I=b.querySelectorAll(Bt),k=new Array;for(const g of I){const x=g.innerHTML;if(!x){console.warn("Custom media element is empty");continue}const E=Number(g.getAttribute("index"));if(Number.isNaN(E)){console.warn("Custom media element is missing the 'index' attribute");continue}const _=g.getAttribute("thumbnail-src")??void 0,M=JSON.stringify({index:E,thumbnailSrc:_});k.push({id:M,Media:c("div",{className:Kr,dangerouslySetInnerHTML:{__html:x}}),index:E,thumbnailSrc:_})}return k},[]),[L,f]=be(()=>{const b=r();return b?m(b):[]});me(()=>{const b=r();if(!b)return;const I=new MutationObserver(()=>{f(m(b))});return I.observe(b,{childList:!0,subtree:!0}),()=>I.disconnect()},[m,r]);const p=X(b=>{const{Media:I,...k}=b,g=c("div",{className:Kr,children:I}),x=JSON.stringify(k);return f(E=>[...E,{id:x,Media:g,...k}]),x},[]),a=X(b=>{f(I=>I.filter(k=>k.id!==b))},[]);return c(jr.Provider,{value:{getIconConfig:u,registerIconConfig:n,unregisterIconConfig:v,customMediaList:L,registerCustomMedia:p,unregisterCustomMedia:a},children:e})},Jr=Dt(null),Qe=()=>{const e=kt(Jr);if(!e)throw new Error("useControlsContext must be used within a ControlsContextProvider");return e},ba=({children:e})=>{const{infiniteCarrousel:t,extendBehavior:r,integration:o,emitEvent:i,emitAnalyticsEvent:s,isFullScreen:u,requestFullscreen:n,exitFullscreen:v}=Je(),{customMediaList:m}=Ft(),{categories:L,items:f}=gt(),p=ze(()=>{const z=new Array(...f),ie=m.slice().sort((A,he)=>A.index<0&&he.index<0?he.index-A.index:A.index<0?1:he.index<0?-1:A.index-he.index);for(const A of ie){let he=A.index;he<0&&(he=z.length+he+1),z.splice(he,0,{type:"custom",...A})}return z},[f,m]),[a,b]=be(p.map(()=>null));me(()=>{b(p.map(()=>null))},[p]);const I=X((z,ie)=>{b(A=>A.map((he,Ie)=>Ie===z?ie:he))},[]),[k,g]=be(0),[x,E]=be(null),_=x??k,M=p[_],N=a[_],[$,T]=be(null),U=!!$,Z=X(()=>T(null),[]),{effectiveMaxItemsShown:R}=Gr(),Y=X(z=>{const ie=Math.min(k,z),A=Math.max(k,z);a.slice(ie,A+1).filter(Ie=>Ie===null).length>2&&T("instant"),E(z)},[k,a]),O=ze(()=>{let z;if(M.type==="custom"){const ie=p.slice(0,_).reverse().find(A=>A.type!=="custom")??p.slice(_+1).find(A=>A.type!=="custom");if(!ie)throw new Error("No non-custom item found");z=ie}else z=M;for(const ie of L)if(ie.items.includes(z))return ie.id;throw new Error("Current item not found in any category")},[L,M,p,_]),j=ze(()=>L.find(({id:z})=>z===O)?.title??"Unnamed Category",[L,O]),pe=ze(()=>p.length,[p]),B=X(z=>{const ie=L.find(({id:he})=>he===z)?.items[0];if(ie===void 0)throw new Error("Failed to find target category");const A=p.findIndex(he=>he===ie);Y(A)},[L,p,Y]),D=X(()=>{if(U||x!==null)return;const z=k-1;if(z>=0)E(z);else if(t){T("first_to_last");const ie=Math.ceil(R),A=p.length+(o&&!t&&R%1!==0?1:0),he=R>1?Math.max(0,A-ie):p.length-1;E(he)}s({type:"interaction",current:{category_id:O,category_name:j,item_type:M.type,item_position:k},action:{name:"Item Navigation",field:"item_navigation",value:"prev"}})},[U,x,k,t,s,O,j,M.type,R,p.length,o]),q=X(()=>{if(U||x!==null)return;const z=k+1,ie=Math.ceil(R),A=p.length+(o&&!t&&R%1!==0?1:0),he=R>1?Math.max(0,A-ie):p.length-1;z<=he?E(z):t&&(T("last_to_first"),E(0)),s({type:"interaction",current:{category_id:O,category_name:j,item_type:M.type,item_position:k},action:{name:"Item Navigation",field:"item_navigation",value:"next"}})},[U,x,k,R,p.length,o,t,s,O,j,M.type]);me(()=>{i(Un,{index:_,item:M})},[M,i,_]),me(()=>{if(U||x!==null)return;const z={type:"display",item:{category_id:O,category_name:j,item_type:M.type,item_position:k,items_count:pe}},ie=setTimeout(()=>s(z),0);return()=>clearTimeout(ie)},[O,j,pe,M.type,k,s,U,x]);const P=ze(()=>{if(o&&!u)return p.some(z=>{switch(z.type){case"image":return!!z.hotspots?.length;case"360":return z.images.some(ie=>!!ie.hotspots?.length);case"next360":return z.images.some(ie=>!!ie.hotspots?.length);default:return!1}});switch(M.type){case"image":return!!M.hotspots?.length;case"360":return N==="running"&&M.images.some(z=>!!z.hotspots?.length);case"next360":return N==="running"&&M.images.some(z=>!!z.hotspots?.length);default:return!1}},[M,N,o,p,u]),[F,re]=be(!0),[H,oe]=be({}),J=ze(()=>o&&u?H[_]??!0:F,[o,u,H,_,F]),se=X(()=>{if(o&&u){const ie=!(H[_]??!0);oe(A=>({...A,[_]:ie})),i(ie?on:an),s({type:"interaction",current:{category_id:O,category_name:j,item_type:M.type,item_position:k},action:{name:"Hotspots Toggled",field:"hotspots_toggle_state",value:ie}})}else{const z=!F;re(z),i(z?on:an),s({type:"interaction",current:{category_id:O,category_name:j,item_type:M.type,item_position:k},action:{name:"Hotspots Toggled",field:"hotspots_toggle_state",value:z}})}},[o,u,H,_,i,s,O,j,M.type,k,F]),S=ze(()=>{switch(M.type){case"video":return N!=="running";default:return!0}},[M,N]),[de,K]=be(!1),Pe=X(()=>{const z=!de;K(z),i(z?Vn:Xn),s({type:"interaction",current:{category_id:O,category_name:j,item_type:M.type,item_position:k},action:{name:"Gallery Toggled",field:"gallery_toggle_state",value:z}})},[de,i,s,O,j,M.type,k]),[qe,je]=be(null),ye=X(()=>je(null),[]),h=!!qe,w=ze(()=>{switch(M.type){case"image":return!0;case"interior-360":return N==="running";case"360":case"next360":return N==="running";default:return!1}},[M.type,N]),[ee,ae]=be(1),te=X(z=>{const ie=typeof z=="function"?z(ee):z;ee!==ie&&(ae(ie),s({type:"interaction",current:{category_id:O,category_name:j,item_type:M.type,item_position:k},action:{name:"Zoom Changed",field:"zoom_level",value:ie}}))},[ee,s,O,j,M.type,k]),C=ee!==1,ne=ee<vt,Q=ee>1,ve=X(z=>{te(ie=>ot(ie+z,1,vt))},[te]),ue=X(()=>te(1),[te]),Ge=X(()=>ve(yt),[ve]),Ue=X(()=>ve(-yt),[ve]),ge=X(()=>{ue(),ye()},[ue,ye]),[_e,we]=be(!1),[Se,Ne]=be(),[We,Be]=be(!1),ke=X(async z=>{ge(),we(z),i(z?Wn:Bn),s({type:"interaction",current:{category_id:O,category_name:j,item_type:M.type,item_position:k},action:{name:"Fake Fullscreen Toggled",field:"fake_fullscreen_toggle_state",value:z}})},[ge,i,s,O,j,M.type,k]),Te=X(()=>{clearTimeout(Se);const z=setTimeout(()=>{Ne(void 0)},Yr);Ne(z)},[Se]),Ve=X(async()=>{const z=await n();return z&&s({type:"interaction",current:{category_id:O,category_name:j,item_type:M.type,item_position:k},action:{name:"Fullscreen Toggled",field:"fullscreen_toggle_state",value:!0}}),z},[n,s,O,j,M.type,k]),Oe=X(async()=>{const z=await v();return z&&s({type:"interaction",current:{category_id:O,category_name:j,item_type:M.type,item_position:k},action:{name:"Fullscreen Toggled",field:"fullscreen_toggle_state",value:!1}}),z},[v,s,O,j,M.type,k]),Xe=X(async()=>{if(Te(),r==="full_screen"){const z=await Ve();if(Be(!z),z)return}ke(!0)},[r,ke,Ve,Te]),De=X(async()=>{Te(),!(r==="full_screen"&&(Be(!1),await Oe()))&&ke(!1)},[r,ke,Oe,Te]),Re=X(()=>{_e?De():Xe()},[De,Xe,_e]);return me(()=>{r==="full_screen"&&(We&&_e||u!==_e&&(Te(),ke(u)))},[r,ke,_e,We,u,Te]),c(Jr.Provider,{value:{items:p,setItemInteraction:I,slidable:p.length>1,carrouselItemIndex:k,setCarrouselItemIndex:g,itemIndexCommand:x,setItemIndexCommand:E,masterItemIndex:_,specialCommand:$,isRunningSpecialCommand:U,finishSpecialCommand:Z,prevItem:D,nextItem:q,scrollToItemIndex:Y,displayedCategoryId:O,displayedCategoryName:j,changeCategory:B,enableHotspotsControl:P,showHotspots:F,currentItemHotspotsVisible:J,toggleHotspots:se,showGalleryControls:S,showGallery:de,toggleGallery:Pe,shownDetails:qe,isShowingDetails:h,setShownDetails:je,resetShownDetails:ye,showZoomControls:w,zoom:ee,isZooming:C,setZoom:te,resetZoom:ue,canZoomIn:ne,zoomIn:Ge,canZoomOut:Q,zoomOut:Ue,resetView:ge,extendMode:_e,enableExtendMode:Xe,disableExtendMode:De,toggleExtendMode:Re,extendTransition:!!Se,fakeFullScreen:We},children:e})},Qr=["left","center","right","fullW"],eo=["top","middle","bottom","fullH"],Ca=[...Qr,...eo,"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 Ea(e){return Qr.includes(e)}function La(e){return eo.includes(e)}function Ma(e){return Ca.includes(e)}function ka(e){if(!Ma(e))throw new Error(`Invalid position: ${e}`);return La(e)?[e,void 0]:Ea(e)?[void 0,e]:e.split("-")}function le(...e){return e.filter(t=>!!t).map(t=>t.trim()).join(" ")}function Ia(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 to(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 Ta({positionX:e,positionY:t}){const r=new Array;return e&&r.push(Ia(e)),t&&r.push(to(t)),r.join(" ")}function It(e){const[t,r]=ka(e);return Ta({positionX:r,positionY:t})}const et=({customizationKey:e,className:t,children:r})=>{const{getIconConfig:o}=Ft(),s=o(e)?.Icon;return s?t?c("div",{className:t,children:s}):s:r},Sa=({className:e})=>c(et,{className:e,customizationKey:"UI_CLOSE",children:c("svg",{className:e,viewBox:"0 0 12 12",fill:"none",children:c("path",{d:"M10.5209 0.520752L0.520874 10.5208M0.520874 0.520752L10.5209 10.5208",stroke:"currentColor",strokeWidth:"1.04167",strokeLinecap:"round",strokeLinejoin:"round"})})}),Na={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"}},Pa={button:"h-8 px-2",icon:"size-8 p-2"},rt=({variant:e="fill",shape:t="button",color:r="primary",className:o,children:i,...s})=>{const u=Na[e][r],n=Pa[t];return c("button",{className:le("flex items-center justify-center rounded-ui text-sm transition-all disabled:opacity-60",u,n,o),...s,children:i})},kn=e=>c(rt,{color:"neutral",shape:"icon",...e,children:c(Sa,{className:"size-full"})}),qt=({text:e,className:t})=>c("div",{className:le("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})]}),Ra={primary:"border-primary",foreground:"border-foreground",background:"border-background"},Aa={sm:"size-4 border",md:"size-8 border-2",lg:"size-12 border-4"},no=({color:e="foreground",size:t="md"})=>{const r=Ra[e],o=Aa[t];return c("div",{className:le("inline-block animate-rotation rounded-full border-b-transparent",o,r)})},st=Tr(({src:e,className:t,onLoad:r,imgInPlayerWidthRatio:o=1,onlyThumbnail:i,fadeIn:s,...u},n)=>{const{mediaLoadStrategy:v,playerInViewportWidthRatio:m}=Je(),{imageHdWidth:L,usedMediaWidths:f}=gt(),[p,a]=ze(()=>{const k=f.map(x=>`${x!==L?Io(e,x):e} ${x}w`);let g;if(i)g=[`${f[0]}px`];else{const x=1/(o*m);switch(v){case"quality":{const E=[...f],_=E.pop();g=E.map(M=>`(max-width: ${x*M}px) ${M}px`),g.push(`${_}px`);break}case"balanced":{g=[];for(let E=0;E<f.length-1;E++){const _=f[E],M=f[E+1],N=Math.round((_+M)/2);g.push(`(max-width: ${x*N}px) ${_}px`)}g.push(`${f[f.length-1]}px`);break}case"speed":{const E=[...f],_=E.shift();g=E.reverse().map(M=>`(min-width: ${x*M}px) ${M}px`),g.push(`${_}px`);break}}}return[k.join(", "),g.join(", ")]},[L,o,v,i,m,e,f]),[b,I]=be();return me(()=>{if(b===!0)return;const k=setTimeout(()=>{I(g=>g??!1)},30);return()=>clearTimeout(k)},[b]),c("img",{ref:n,src:e,srcSet:p,sizes:a,className:le(t,s&&le(b!==void 0&&"transition-opacity duration-200",b===!1&&"opacity-0",b===!0&&"opacity-100")),onLoad:k=>{I(!0),r?.(k)},...u})});st.displayName="CdnImage";const ro=({className:e})=>c(et,{className:e,customizationKey:"UI_IMAGE",children:c("svg",{className:e,viewBox:"0 0 14 14",fill:"none",children:c("path",{d:"M12.25 8.74997L10.4498 6.9498C10.2311 6.73108 9.93436 6.60822 9.625 6.60822C9.31564 6.60822 9.01895 6.73108 8.80017 6.9498L3.5 12.25M2.91667 1.75H11.0833C11.7277 1.75 12.25 2.27233 12.25 2.91667V11.0833C12.25 11.7277 11.7277 12.25 11.0833 12.25H2.91667C2.27233 12.25 1.75 11.7277 1.75 11.0833V2.91667C1.75 2.27233 2.27233 1.75 2.91667 1.75ZM6.41667 5.25C6.41667 5.89433 5.89433 6.41667 5.25 6.41667C4.60567 6.41667 4.08333 5.89433 4.08333 5.25C4.08333 4.60567 4.60567 4.08333 5.25 4.08333C5.89433 4.08333 6.41667 4.60567 6.41667 5.25Z",stroke:"currentColor",strokeWidth:"0.729167",strokeLinecap:"round",strokeLinejoin:"round"})})}),oo=({className:e})=>c(et,{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"})]})}),ao=({className:e})=>c(et,{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"})})}),In=({className:e})=>c(et,{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"})]})}),Da=({src:e,withCdn:t})=>{const{permanentGallery:r}=Je();if(!e)return null;const o="size-full object-cover";return t?c(st,{className:o,src:e,onlyThumbnail:!0,fadeIn:!r}):c("img",{className:o,src:e})},Kt=({children:e})=>{const{extendMode:t}=Qe();return c("div",{className:le("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})},za=({item:e})=>{const{aspectRatioStyle:t}=gt(),{type:r}=e;let o,i;switch(r){case"360":o=e.images[0].src,i=!0;break;case"next360":o=e.images[0].src,i=!0;break;case"interior-360":o=e.poster,i=!0;break;case"image":o=e.src,i=!0;break;case"video":o=e.poster,i=!0;break;case"custom":o=e.thumbnailSrc,i=!1;break;default:i=!1}const s=c(Da,{src:o,withCdn:i});let u;switch(r){case"360":u=c(Kt,{children:c(In,{className:"size-full"})});break;case"interior-360":u=c(Kt,{children:c(oo,{className:"size-full"})});break;case"video":u=c(Kt,{children:c(ao,{className:"size-full p-0.5 text-background"})});break;case"custom":u=o?null:c(Kt,{children:c(ro,{className:"size-full p-0.5 text-background"})});break}return c("div",{className:"relative bg-foreground/30",style:t,children:[s,u&&c("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:u})]})},Oa={primary:"bg-primary/50",neutral:"bg-neutral/50",background:"bg-background/50",foreground:"bg-foreground/50"},io=({color:e="neutral",orientation:t="horizontal"})=>{const r=Oa[e];return c("div",{className:le(r,t==="horizontal"?"h-px w-full":"w-px h-full")})},so=({className:e="",containerClassName:t=""})=>{const{hideCategoriesNav:r,infiniteCarrousel:o,permanentGallery:i,isFullScreen:s,maxItemsShown:u}=Je(),{categories:n,aspectRatioStyle:v}=gt(),{emitAnalyticsEvent:m}=Je(),{items:L,extendMode:f,extendTransition:p,masterItemIndex:a,prevItem:b,nextItem:I,scrollToItemIndex:k,resetView:g,displayedCategoryId:x,displayedCategoryName:E}=Qe(),_=ze(()=>L[a].type,[L,a]),M=ze(()=>{if(r)return[];const D=new Array;let q=n[0];const P=F=>n.find(re=>re.items.some(H=>H===F));for(let F=0;F<L.length;F++){const re=L[F],H=P(re);H&&H!==q&&(D.push(F),q=H)}return D},[n,r,L]),N=Ce(null),$=X(()=>{if(!N.current)throw new Error("slider.current is null");return N.current},[]),T=Ce(!1),U=Ce(null),[Z,R]=be(!1),Y=X((D,q)=>{const P=$(),F=P.clientWidth,re=P.scrollWidth/L.length,H=(D+1/2)*re-F/2,oe=P.scrollWidth-P.clientWidth;P.scrollTo({left:ot(H,0,oe),behavior:q})},[L.length,$]);me(()=>{const D=N.current;if(!D)return;const q=re=>{re.preventDefault(),T.current=!0,U.current={x:re.pageX-D.offsetLeft,scrollLeft:D.scrollLeft}},P=re=>{if(!T.current)return;if(U.current===null)throw new Error("[onMouseMove] scrollStart is null");const oe=re.pageX-D.offsetLeft-U.current.x;if(!Z&&Math.abs(oe)<5)return;const J=U.current.scrollLeft-oe;R(!0),requestAnimationFrame(()=>{D.scrollLeft=J})},F=()=>{T.current&&(T.current=!1,requestAnimationFrame(()=>{R(!1)}))};return D.addEventListener("mousedown",q),document.addEventListener("mousemove",P),document.addEventListener("mouseleave",F),document.addEventListener("mouseup",F),document.addEventListener("contextmenu",F),()=>{D.removeEventListener("mousedown",q),document.removeEventListener("mousemove",P),document.removeEventListener("mouseleave",F),document.removeEventListener("mouseup",F),document.removeEventListener("contextmenu",F)}},[Z]);const O=Ce(a);me(()=>{N.current&&(Y(a,"smooth"),O.current=a)},[a,Y]),me(()=>{N.current&&Y(O.current,"instant")},[Y,s,f,p]);const j=X(D=>{m({type:"interaction",current:{category_id:x,category_name:E,item_type:_,item_position:a},action:{name:"Gallery Item Clicked",field:"gallery_item_clicked",value:D}})},[m,x,E,_,a]),pe=X(D=>{if(!Z){if(j(D),o&&D===L.length-1&&a===0)b();else if(o&&D===0&&a===L.length-1)I();else if(!s&&u!==1&&D===L.length-1){const q=Math.ceil(u),P=L.length+1,F=Math.max(0,P-q);k(F)}else k(D);g()}},[Z,j,o,L.length,a,g,b,I,s,u,k]),B=X((D,q)=>u!==1?"after:opacity-0 hover:after:opacity-70":D===q?"after:opacity-100":"after:opacity-0 hover:after:opacity-70",[u]);return c("div",{ref:N,className:le("relative w-full overflow-x-auto no-scrollbar",Z?"cursor-grab":"cursor-grabbing",e),children:c("div",{className:le("flex h-10 w-fit gap-1 small:h-12 small:gap-2",f&&"large:h-20 large:gap-4",t),children:L.map((D,q)=>c(Ke,{children:[M.includes(q)&&c("div",{className:"my-2",children:c(io,{color:i&&!s?"neutral":"background",orientation:"vertical"})}),c("div",{className:le("relative h-full overflow-hidden rounded-gallery transition-radius",!Z&&"cursor-pointer","after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-all",B(q,a)),style:v,onClick:()=>pe(q),children:c(za,{item:D})})]},q))})})},lo=e=>1-Math.pow(1-e,2),Fa=({Media:e,itemIndex:t})=>{const{setItemInteraction:r}=Qe();return me(()=>{r(t,"ready")},[t,r]),e},co=(e,t)=>Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2),Ha=({onlyPreload:e,...t})=>{const{zoom:r,isZooming:o,setZoom:i}=Qe(),s=Ce(null),u=Ce(null),n=X(E=>{if(!u.current)throw new Error(`[${E??"getTransformElementOrThrow"}] transformElementRef.current is null`);return u.current},[]),v=Ce(!1),m=Ce(null),L=Ce(new Map),f=Ce({x:0,y:0,scale:1}),p=Ce(null),a=X(E=>{const _=n("setTransformStyle"),{x:M,y:N,scale:$}={...f.current,...E},T=ot($,1,vt),U=_.clientWidth,Z=_.clientHeight,R=U*T,Y=Z*T,O=ot(M,-(R-U),0),j=ot(N,-(Y-Z),0);f.current={x:O,y:j,scale:T},_.style.transform=`translate(${O}px, ${j}px) scale(${T})`},[n]),b=X((E,_)=>{const{x:M,y:N,scale:$}=f.current,{x:T,y:U,scale:Z}={...f.current,...E};p.current&&(cancelAnimationFrame(p.current),p.current=null);const R=()=>{a({x:T,y:U,scale:Z}),i(Z)},Y=Math.abs(T-M)<1&&Math.abs(U-N)<1&&Math.abs(Z-$)<.005;if(!_||Y){R();return}const O=new Date().getTime(),j=()=>{const pe=()=>{const D=new Date().getTime()-O;if(D>=_){R(),p.current=null;return}const q=Math.min(D/_,1),P=lo(q),F=jt(M,T,P),re=jt(N,U,P),H=jt($,Z,P);a({x:F,y:re,scale:H}),j()};p.current=requestAnimationFrame(pe)};j()},[a,i]),I=X((E,_)=>{let{x:M,y:N}=f.current;E.x&&(M+=E.x),E.y&&(N+=E.y),b({x:M,y:N},_)},[b]),k=X((E,_,M)=>{const N=f.current.scale,$=ot(E,1,vt),T=$/N,{x:U,y:Z}=f.current,{x:R,y:Y}=_,O=-U+R,j=-Z+Y,pe=O*T,B=j*T,D=pe-R,q=B-Y,P=-D,F=-q;b({x:P,y:F,scale:$},M)},[b]),g=X(E=>{const _=n("shiftZoomFromButton"),M=_.clientWidth,N=_.clientHeight;k(E,{x:M/2,y:N/2},200)},[n,k]),x=X((E,_,M)=>{const{scale:N}=f.current;k(N+E,_,M)},[k]);return me(()=>{e||u.current&&g(r)},[e,g,r]),me(()=>{if(e||!o)return;const E=u.current;if(!E)return;const _=$=>{$.preventDefault(),$.stopPropagation(),v.current=!0,m.current={x:$.clientX,y:$.clientY}},M=$=>{if(!v.current)return;if(!m.current)throw new Error("mouseStartXY.current is null");$.stopPropagation();const T=$.clientX-m.current.x,U=$.clientY-m.current.y;I({x:T,y:U}),m.current={x:$.clientX,y:$.clientY}},N=()=>{v.current=!1};return E.addEventListener("mousedown",_),document.addEventListener("mousemove",M),document.addEventListener("mouseleave",N),document.addEventListener("mouseup",N),document.addEventListener("contextmenu",N),()=>{E.removeEventListener("mousedown",_),document.removeEventListener("mousemove",M),document.removeEventListener("mouseleave",N),document.removeEventListener("mouseup",N),document.removeEventListener("contextmenu",N)}},[o,I,e]),me(()=>{if(e)return;const E=s.current;if(!E)return;const _=M=>{const{ctrlKey:N,clientX:$,clientY:T,deltaX:U,deltaY:Z}=M;if(N){if(!o&&Z>=0)return;const{left:R,top:Y}=E.getBoundingClientRect(),O=$-R,j=T-Y;x(-.01*Z,{x:O,y:j})}else{if(!o)return;I({x:-2*U,y:-2*Z})}M.preventDefault()};return E.addEventListener("wheel",_),()=>{E.removeEventListener("wheel",_)}},[o,I,x,e]),me(()=>{const E=s.current,_=u.current;if(!E||!_)return;const M=L.current,N=U=>{for(let Z=0;Z<U.changedTouches.length;Z++){const R=U.changedTouches[Z];M.set(R.identifier,R)}},$=U=>{for(let Z=0;Z<U.changedTouches.length;Z++){const R=U.changedTouches[Z];M.delete(R.identifier)}},T=U=>{const Z=U.touches.length;if(Z===1){if(!o)return;U.preventDefault();const R=U.touches[0],Y=M.get(R.identifier);if(!Y)throw new Error("touchStart is null");const O=R.clientX-Y.clientX,j=R.clientY-Y.clientY;I({x:O,y:j}),M.set(R.identifier,R)}else if(Z===2){U.preventDefault();const[R,Y]=U.touches,O=M.get(R.identifier),j=M.get(Y.identifier);if(!O||!j)throw new Error("initialTouch1 or initialTouch2 is null");const pe=co(O,j),D=co(R,Y)/pe,{left:q,top:P}=E.getBoundingClientRect();x(D-1,{x:(R.clientX+Y.clientX)/2-q,y:(R.clientY+Y.clientY)/2-P}),M.set(R.identifier,R),M.set(Y.identifier,Y)}};return _.addEventListener("touchstart",N),_.addEventListener("touchmove",T),_.addEventListener("touchend",$),_.addEventListener("touchcancel",$),()=>{_.removeEventListener("touchstart",N),_.removeEventListener("touchmove",T),_.removeEventListener("touchend",$),_.removeEventListener("touchcancel",$)}},[o,I,x]),c("div",{ref:s,className:`relative size-full overflow-hidden ${o?"z-zoomed-image cursor-move":""}`,children:c("div",{ref:u,className:"origin-top-left",children:c(st,{...t,imgInPlayerWidthRatio:e?1:r})})})},Tn=({className:e})=>c(et,{className:e,customizationKey:"UI_ARROW_RIGHT",children:c("svg",{className:e,viewBox:"0 0 20 20",fill:"none",children:c("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"currentColor",strokeWidth:"1.04167",strokeLinecap:"round",strokeLinejoin:"round"})})}),Ua=({className:e})=>c(et,{className:e,customizationKey:"UI_WARNING",children:c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c("circle",{cx:"12",cy:"12",r:"10"}),c("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),c("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]})}),Wa=({hotspot:e,item:t,analyticsValue:r})=>{const{title:o,icon:i,description:s,detail:u,type:n}=e,{emitAnalyticsEvent:v}=Je(),{extendMode:m,setShownDetails:L,displayedCategoryId:f,displayedCategoryName:p}=Qe(),a=X(F=>{const re=F==="click"?"Hotspot Clicked":"Hotspot Hovered",H=F==="click"?"hotspot_clicked":"hotspot_hovered";v({type:"interaction",current:{category_id:f,category_name:p,item_type:t.item_type,item_position:t.item_position},action:{name:re,field:H,value:r}})},[v,f,p,t,r]),b=X(()=>{a("click")},[a]),I=X(()=>{a("hover")},[a]),{getIconConfig:k}=Ft(),g=i?k(i):void 0,x=!!u?.src?.trim(),E=u?.type==="image"&&x,_=u?.type==="link"&&x,M=u?.type==="pdf"&&x,N=E||_||M,$=!!s||N,T=!!o,U=N?n==="damage"?c(Ua,{className:"size-4"}):c(ro,{className:"size-4"}):c("div",{className:"size-1"}),Z=()=>{$&&(b(),!(_||M)&&L({src:E?u.src:void 0,title:o,text:s}))},[R,Y]=be(!1),O=X(()=>{R||(Y(!0),I())},[R,Y,I]),j=X(()=>{R&&Y(!1)},[R,Y]),B=X(()=>n==="damage"?"var(--hotspot-damage-color)":"var(--hotspot-feature-color)",[n])(),D=le("group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",$?"cursor-pointer":"cursor-default"),q={top:`${100*e.position.y}%`,left:`${100*e.position.x}%`},P=c(Ke,{children:[c("div",{className:le("relative top-px flex shrink-0 items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",N?"left-[-5px] size-7":"-left-px size-4"),style:{backgroundColor:B},children:[c("div",{className:"pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-0 bg-primary",style:{backgroundColor:B}}),c("div",{className:le(N?"size-4 [&_*]:size-4":"size-1"),children:g?.Icon?g.Icon:U})]}),T&&c("div",{className:le("absolute bottom-0 left-0 -z-10 flex w-max max-w-60 items-center gap-1.5 rounded-t-full rounded-br-full bg-foreground py-1.5 text-background transition-[opacity,transform] duration-200 group-hover:translate-x-1 small:max-w-64",m&&"large:max-w-72",N?"rounded-bl-[10px] pl-6 small:pl-7":"rounded-bl-[8px] pl-5 small:pl-6","pr-2.5 small:pr-3","pointer-events-none opacity-0 group-hover:pointer-events-auto group-hover:opacity-100"),children:[c("div",{className:"truncate text-xs font-normal",children:o}),$&&c(Tn,{className:"size-5 shrink-0"})]})]});return _||M?c("a",{className:D,style:q,href:u.src,target:"_blank",rel:"noopener noreferrer","aria-label":o||"Open link",onClick:Z,onMouseEnter:O,onMouseLeave:j,children:P}):c("div",{className:D,style:q,onClick:Z,onMouseEnter:O,onMouseLeave:j,role:$?"button":void 0,tabIndex:$?0:void 0,"aria-label":$?o||"View details":void 0,children:P})},uo=({hotspot:e,item:t})=>{const{detail:r,title:o,description:i,position:s}=e,u=ze(()=>o||i?{...o?{title:o}:{},...i?{description:i}:{}}:void 0,[o,i]),n=ze(()=>u||s?{...u?{text:u}:{},...s?{position:s}:{}}:void 0,[u,s]),v=ze(()=>({...n?{hotspot:n}:{},...r?{detail:r}:{}}),[n,r]);return c(Wa,{hotspot:e,item:t,analyticsValue:v})},fo=({hotspots:e,itemIndex:t,className:r,onLoad:o,...i})=>{const{isShowingDetails:s,currentItemHotspotsVisible:u,setItemInteraction:n}=Qe();return c("div",{className:le("relative size-full overflow-hidden",r),children:c("div",{className:le("size-full duration-details",s?"scale-105":"scale-100"),children:[c(Ha,{className:"size-full object-cover",onLoad:v=>{t!==void 0&&t>=0&&n(t,"ready"),o?.(v)},...i}),u&&e?.map((v,m)=>c(uo,{hotspot:v,item:{item_type:"image",item_position:t}},m))]})})},Ba=100,Tt=100,Ht=50,Va=0,Xa=0,Za=e=>{const[t,r]=be(0),[o,i]=be(!1);return me(()=>{const s=XMLHttpRequest.prototype.open,u=XMLHttpRequest.prototype.send;let n=!1;return XMLHttpRequest.prototype.open=function(v,m,L=!0,f,p){return m.toString().includes(e)&&(n=!0,i(!0)),s.call(this,v,m,L,f||null,p||null)},XMLHttpRequest.prototype.send=function(v){return n&&(this.addEventListener("progress",m=>{if(m.lengthComputable){const L=Math.round(m.loaded/m.total*100);r(L)}}),this.addEventListener("loadend",()=>{n=!1,r(100),i(!1)})),u.call(this,v)},()=>{XMLHttpRequest.prototype.open=s,XMLHttpRequest.prototype.send=u}},[e]),[t,o]};window.libpannellum=(function(e,t,r){function o(L){var f=t.createElement("canvas");f.style.width=f.style.height="100%",L.appendChild(f);var p,a,b,I,k,g,x,E,_,M,N,$,T,U,Z,R;this.init=function(h,w,ee,ae,te,C,ne,Q){if(w===r&&(w="equirectangular"),w!="equirectangular"&&w!="cubemap"&&w!="multires")throw console.log("Error: invalid image type specified!"),{type:"config error"};if(M=w,_=h,N=ee,R=Q||{},p){if(b&&(a.detachShader(p,b),a.deleteShader(b)),I&&(a.detachShader(p,I),a.deleteShader(I)),a.bindBuffer(a.ARRAY_BUFFER,null),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,null),p.texture&&a.deleteTexture(p.texture),p.nodeCache)for(var ve=0;ve<p.nodeCache.length;ve++)a.deleteTexture(p.nodeCache[ve].texture);a.deleteProgram(p),p=r}E=r;var ue,Ge=!1,Ue;if(M=="cubemap")for(ue=0;ue<6;ue++)_[ue].width>0?(Ue===r&&(Ue=_[ue].width),Ue!=_[ue].width&&console.log("Cube faces have inconsistent widths: "+Ue+" vs. "+_[ue].width)):Ge=!0;function ge(ie){if(Ge){var A=ie*ie*4,he=new Uint8ClampedArray(A),Ie=Q.backgroundColor?Q.backgroundColor:[0,0,0];Ie[0]*=255,Ie[1]*=255,Ie[2]*=255;for(var Ee=0;Ee<A;Ee++)he[Ee++]=Ie[0],he[Ee++]=Ie[1],he[Ee++]=Ie[2];var Fe=new ImageData(he,ie,ie);for(ue=0;ue<6;ue++)_[ue].width==0&&(_[ue]=Fe)}}if(M=="cubemap"&&(Ue&Ue-1)!==0&&(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\./))||(a||(a=f.getContext("experimental-webgl",{alpha:!1,depth:!1})),a&&a.getError()==1286&&ye()),!a&&(M=="multires"&&_.hasOwnProperty("fallbackPath")||M=="cubemap")&&("WebkitAppearance"in t.documentElement.style||navigator.userAgent.match(/Trident.*rv[ :]*11\./)||navigator.appVersion.indexOf("MSIE 10")!==-1)){g&&L.removeChild(g),g=t.createElement("div"),g.className="pnlm-world";var _e;_.basePath?_e=_.basePath+_.fallbackPath:_e=_.fallbackPath;var we=["f","r","b","l","u","d"],Se=0,Ne=function(){var A=t.createElement("canvas");A.className="pnlm-face pnlm-"+we[this.side]+"face",g.appendChild(A);var he=A.getContext("2d");A.style.width=this.width+4+"px",A.style.height=this.height+4+"px",A.width=this.width+4,A.height=this.height+4,he.drawImage(this,2,2);var Ie=he.getImageData(0,0,A.width,A.height),Ee=Ie.data,Fe,ce;for(Fe=2;Fe<A.width-2;Fe++)for(ce=0;ce<4;ce++)Ee[(Fe+A.width)*4+ce]=Ee[(Fe+A.width*2)*4+ce],Ee[(Fe+A.width*(A.height-2))*4+ce]=Ee[(Fe+A.width*(A.height-3))*4+ce];for(Fe=2;Fe<A.height-2;Fe++)for(ce=0;ce<4;ce++)Ee[(Fe*A.width+1)*4+ce]=Ee[(Fe*A.width+2)*4+ce],Ee[((Fe+1)*A.width-2)*4+ce]=Ee[((Fe+1)*A.width-3)*4+ce];for(ce=0;ce<4;ce++)Ee[(A.width+1)*4+ce]=Ee[(A.width*2+2)*4+ce],Ee[(A.width*2-2)*4+ce]=Ee[(A.width*3-3)*4+ce],Ee[(A.width*(A.height-2)+1)*4+ce]=Ee[(A.width*(A.height-3)+2)*4+ce],Ee[(A.width*(A.height-1)-2)*4+ce]=Ee[(A.width*(A.height-2)-3)*4+ce];for(Fe=1;Fe<A.width-1;Fe++)for(ce=0;ce<4;ce++)Ee[Fe*4+ce]=Ee[(Fe+A.width)*4+ce],Ee[(Fe+A.width*(A.height-1))*4+ce]=Ee[(Fe+A.width*(A.height-2))*4+ce];for(Fe=1;Fe<A.height-1;Fe++)for(ce=0;ce<4;ce++)Ee[Fe*A.width*4+ce]=Ee[(Fe*A.width+1)*4+ce],Ee[((Fe+1)*A.width-1)*4+ce]=Ee[((Fe+1)*A.width-2)*4+ce];for(ce=0;ce<4;ce++)Ee[ce]=Ee[(A.width+1)*4+ce],Ee[(A.width-1)*4+ce]=Ee[(A.width*2-2)*4+ce],Ee[A.width*(A.height-1)*4+ce]=Ee[(A.width*(A.height-2)+1)*4+ce],Ee[(A.width*A.height-1)*4+ce]=Ee[(A.width*(A.height-1)-2)*4+ce];he.putImageData(Ie,0,0),We.call(this)},We=function(){this.width>0?(k===r&&(k=this.width),k!=this.width&&console.log("Fallback faces have inconsistent widths: "+k+" vs. "+this.width)):Ge=!0,Se++,Se==6&&(k=this.width,L.appendChild(g),ne())};for(Ge=!1,ue=0;ue<6;ue++){var Be=new Image;Be.crossOrigin=R.crossOrigin?R.crossOrigin:"anonymous",Be.side=ue,Be.onload=Ne,Be.onerror=We,M=="multires"?Be.src=encodeURI(_e.replace("%s",we[ue])+"."+_.extension):Be.src=encodeURI(_[ue].src)}ge(k);return}else if(!a)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"};M=="cubemap"&&ge(Ue),_.basePath?_.fullpath=_.basePath+_.path:_.fullpath=_.path,_.invTileResolution=1/_.tileResolution;var ke=D();for(x=[],ue=0;ue<6;ue++)x[ue]=ke.slice(ue*12,ue*12+12),ke=D();var Te=0,Ve=0;if(M=="equirectangular"?(Te=Math.max(_.width,_.height),Ve=a.getParameter(a.MAX_TEXTURE_SIZE)):M=="cubemap"&&(Te=Ue,Ve=a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE)),Te>Ve)throw console.log("Error: The image is too big; it's "+Te+"px wide, but this device's maximum supported size is "+Ve+"px."),{type:"webgl size error",width:Te,maxWidth:Ve};Q!==r&&(Q.horizonPitch!==r||Q.horizonRoll!==r)&&(E=[Q.horizonPitch==r?0:Q.horizonPitch,Q.horizonRoll==r?0:Q.horizonRoll]);var Oe=a.TEXTURE_2D;a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),b=a.createShader(a.VERTEX_SHADER);var Xe=i;M=="multires"&&(Xe=s),a.shaderSource(b,Xe),a.compileShader(b),I=a.createShader(a.FRAGMENT_SHADER);var De=v;M=="cubemap"?(Oe=a.TEXTURE_CUBE_MAP,De=n):M=="multires"&&(De=m),a.shaderSource(I,De),a.compileShader(I),p=a.createProgram(),a.attachShader(p,b),a.attachShader(p,I),a.linkProgram(p),a.getShaderParameter(b,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(b)),a.getShaderParameter(I,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(I)),a.getProgramParameter(p,a.LINK_STATUS)||console.log(a.getProgramInfoLog(p)),a.useProgram(p),p.drawInProgress=!1;var Re=Q.backgroundColor?Q.backgroundColor:[0,0,0];a.clearColor(Re[0],Re[1],Re[2],1),a.clear(a.COLOR_BUFFER_BIT),p.texCoordLocation=a.getAttribLocation(p,"a_texCoord"),a.enableVertexAttribArray(p.texCoordLocation),M!="multires"?($||($=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,$),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),a.STATIC_DRAW),a.vertexAttribPointer(p.texCoordLocation,2,a.FLOAT,!1,0,0),p.aspectRatio=a.getUniformLocation(p,"u_aspectRatio"),a.uniform1f(p.aspectRatio,a.drawingBufferWidth/a.drawingBufferHeight),p.psi=a.getUniformLocation(p,"u_psi"),p.theta=a.getUniformLocation(p,"u_theta"),p.f=a.getUniformLocation(p,"u_f"),p.h=a.getUniformLocation(p,"u_h"),p.v=a.getUniformLocation(p,"u_v"),p.vo=a.getUniformLocation(p,"u_vo"),p.rot=a.getUniformLocation(p,"u_rot"),a.uniform1f(p.h,ae/(Math.PI*2)),a.uniform1f(p.v,te/Math.PI),a.uniform1f(p.vo,C/Math.PI*2),M=="equirectangular"&&(p.backgroundColor=a.getUniformLocation(p,"u_backgroundColor"),a.uniform4fv(p.backgroundColor,Re.concat([1]))),p.texture=a.createTexture(),a.bindTexture(Oe,p.texture),M=="cubemap"?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,_[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,_[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,_[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,_[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,_[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,_[2])):a.texImage2D(Oe,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,_),a.texParameteri(Oe,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(Oe,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(Oe,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(Oe,a.TEXTURE_MAG_FILTER,a.LINEAR)):(p.vertPosLocation=a.getAttribLocation(p,"a_vertCoord"),a.enableVertexAttribArray(p.vertPosLocation),T||(T=a.createBuffer()),U||(U=a.createBuffer()),Z||(Z=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,U),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),a.STATIC_DRAW),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,Z),a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),a.STATIC_DRAW),p.perspUniform=a.getUniformLocation(p,"u_perspMatrix"),p.cubeUniform=a.getUniformLocation(p,"u_cubeMatrix"),p.level=-1,p.currentNodes=[],p.nodeCache=[],p.nodeCacheTimestamp=0);var z=a.getError();if(z!==0)throw console.log("Error: Something went wrong with WebGL!",z),{type:"webgl error"};ne()},this.destroy=function(){if(L!==r&&(f!==r&&L.contains(f)&&L.removeChild(f),g!==r&&L.contains(g)&&L.removeChild(g)),a){var h=a.getExtension("WEBGL_lose_context");h&&h.loseContext()}},this.resize=function(){var h=e.devicePixelRatio||1;f.width=f.clientWidth*h,f.height=f.clientHeight*h,a&&(a.getError()==1286&&ye(),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),M!="multires"&&a.uniform1f(p.aspectRatio,f.clientWidth/f.clientHeight))},this.resize(),this.setPose=function(h,w){E=[h,w]},this.render=function(h,w,ee,ae){var te,C,ne,Q=0;if(ae===r&&(ae={}),ae.roll&&(Q=ae.roll),E!==r){var ve=E[0],ue=E[1],Ge=h,Ue=w,ge=Math.cos(ue)*Math.sin(h)*Math.sin(ve)+Math.cos(h)*(Math.cos(ve)*Math.cos(w)+Math.sin(ue)*Math.sin(ve)*Math.sin(w)),_e=-Math.sin(h)*Math.sin(ue)+Math.cos(h)*Math.cos(ue)*Math.sin(w),we=Math.cos(ue)*Math.cos(ve)*Math.sin(h)+Math.cos(h)*(-Math.cos(w)*Math.sin(ve)+Math.cos(ve)*Math.sin(ue)*Math.sin(w));h=Math.asin(Math.max(Math.min(we,1),-1)),w=Math.atan2(_e,ge);var Se=[Math.cos(Ge)*(Math.sin(ue)*Math.sin(ve)*Math.cos(Ue)-Math.cos(ve)*Math.sin(Ue)),Math.cos(Ge)*Math.cos(ue)*Math.cos(Ue),Math.cos(Ge)*(Math.cos(ve)*Math.sin(ue)*Math.cos(Ue)+Math.sin(Ue)*Math.sin(ve))],Ne=[-Math.cos(h)*Math.sin(w),Math.cos(h)*Math.cos(w)],We=Math.acos(Math.max(Math.min((Se[0]*Ne[0]+Se[1]*Ne[1])/(Math.sqrt(Se[0]*Se[0]+Se[1]*Se[1]+Se[2]*Se[2])*Math.sqrt(Ne[0]*Ne[0]+Ne[1]*Ne[1])),1),-1));Se[2]<0&&(We=2*Math.PI-We),Q+=We}if(!a&&(M=="multires"||M=="cubemap")){ne=k/2;var Be={f:"translate3d(-"+(ne+2)+"px, -"+(ne+2)+"px, -"+ne+"px)",b:"translate3d("+(ne+2)+"px, -"+(ne+2)+"px, "+ne+"px) rotateX(180deg) rotateZ(180deg)",u:"translate3d(-"+(ne+2)+"px, -"+ne+"px, "+(ne+2)+"px) rotateX(270deg)",d:"translate3d(-"+(ne+2)+"px, "+ne+"px, -"+(ne+2)+"px) rotateX(90deg)",l:"translate3d(-"+ne+"px, -"+(ne+2)+"px, "+(ne+2)+"px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",r:"translate3d("+ne+"px, -"+(ne+2)+"px, -"+(ne+2)+"px) rotateY(270deg)"};te=1/Math.tan(ee/2);var ke=te*f.clientWidth/2+"px",Te="perspective("+ke+") translateZ("+ke+") rotateX("+h+"rad) rotateY("+w+"rad) ",Ve=Object.keys(Be);for(C=0;C<6;C++){var Oe=g.querySelector(".pnlm-"+Ve[C]+"face");Oe&&(Oe.style.webkitTransform=Te+Be[Ve[C]],Oe.style.transform=Te+Be[Ve[C]])}return}if(M!="multires"){var Xe=2*Math.atan(Math.tan(ee*.5)/(a.drawingBufferWidth/a.drawingBufferHeight));te=1/Math.tan(Xe*.5),a.uniform1f(p.psi,w),a.uniform1f(p.theta,h),a.uniform1f(p.rot,Q),a.uniform1f(p.f,te),N===!0&&M=="equirectangular"&&(a.bindTexture(a.TEXTURE_2D,p.texture),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,_)),a.drawArrays(a.TRIANGLES,0,6)}else{var De=H(ee,a.drawingBufferWidth/a.drawingBufferHeight,.1,100);de(ee);var Re=q();Re=P(Re,-Q,"z"),Re=P(Re,-h,"x"),Re=P(Re,w,"y"),Re=F(Re),a.uniformMatrix4fv(p.perspUniform,!1,new Float32Array(re(De))),a.uniformMatrix4fv(p.cubeUniform,!1,new Float32Array(re(Re)));var z=K(De,Re);if(p.nodeCache.sort(Y),p.nodeCache.length>200&&p.nodeCache.length>p.currentNodes.length+50)for(var ie=p.nodeCache.splice(200,p.nodeCache.length-200),C=0;C<ie.length;C++)a.deleteTexture(ie[C].texture);p.currentNodes=[];var A=["f","b","u","d","l","r"];for(ne=0;ne<6;ne++){var he=new pe(x[ne],A[ne],1,0,0,_.fullpath);B(z,he,h,w)}for(p.currentNodes.sort(O),C=J.length-1;C>=0;C--)p.currentNodes.indexOf(J[C].node)===-1&&(J[C].node.textureLoad=!1,J.splice(C,1));if(J.length===0)for(C=0;C<p.currentNodes.length;C++){var Ie=p.currentNodes[C];if(!Ie.texture&&!Ie.textureLoad){Ie.textureLoad=!0,setTimeout(S,0,Ie);break}}j()}if(ae.returnImage!==r)return f.toDataURL("image/png")},this.isLoading=function(){if(a&&M=="multires"){for(var h=0;h<p.currentNodes.length;h++)if(!p.currentNodes[h].textureLoaded)return!0}return!1},this.getCanvas=function(){return f};function Y(h,w){return h.level==1&&w.level!=1?-1:w.level==1&&h.level!=1?1:w.timestamp-h.timestamp}function O(h,w){return h.level!=w.level?h.level-w.level:h.diff-w.diff}function j(){if(!p.drawInProgress){p.drawInProgress=!0,a.clear(a.COLOR_BUFFER_BIT);for(var h=0;h<p.currentNodes.length;h++)p.currentNodes[h].textureLoaded>1&&(a.bindBuffer(a.ARRAY_BUFFER,T),a.bufferData(a.ARRAY_BUFFER,new Float32Array(p.currentNodes[h].vertices),a.STATIC_DRAW),a.vertexAttribPointer(p.vertPosLocation,3,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,U),a.vertexAttribPointer(p.texCoordLocation,2,a.FLOAT,!1,0,0),a.bindTexture(a.TEXTURE_2D,p.currentNodes[h].texture),a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0));p.drawInProgress=!1}}function pe(h,w,ee,ae,te,C){this.vertices=h,this.side=w,this.level=ee,this.x=ae,this.y=te,this.path=C.replace("%s",w).replace("%l",ee).replace("%x",ae).replace("%y",te)}function B(h,w,ee,ae,te){if(je(h,w.vertices)){var C=w.vertices,ne=C[0]+C[3]+C[6]+C[9],Q=C[1]+C[4]+C[7]+C[10],ve=C[2]+C[5]+C[8]+C[11],ue=Math.sqrt(ne*ne+Q*Q+ve*ve),Ge=Math.asin(ve/ue),Ue=Math.atan2(Q,ne),ge=Ue-ae;ge+=ge>Math.PI?-2*Math.PI:ge<-Math.PI?2*Math.PI:0,ge=Math.abs(ge),w.diff=Math.acos(Math.sin(ee)*Math.sin(Ge)+Math.cos(ee)*Math.cos(Ge)*Math.cos(ge));for(var _e=!1,we=0;we<p.nodeCache.length;we++)if(p.nodeCache[we].path==w.path){_e=!0,p.nodeCache[we].timestamp=p.nodeCacheTimestamp++,p.nodeCache[we].diff=w.diff,p.currentNodes.push(p.nodeCache[we]);break}if(_e||(w.timestamp=p.nodeCacheTimestamp++,p.currentNodes.push(w),p.nodeCache.push(w)),w.level<p.level){var Se=_.cubeResolution*Math.pow(2,w.level-_.maxLevel),Ne=Math.ceil(Se*_.invTileResolution)-1,We=Se%_.tileResolution*2,Be=Se*2%_.tileResolution;Be===0&&(Be=_.tileResolution),We===0&&(We=_.tileResolution*2);var ke=.5;(w.x==Ne||w.y==Ne)&&(ke=1-_.tileResolution/(_.tileResolution+Be));var Te=1-ke,Ve=[],Oe,Xe,De=ke,Re=ke,z=ke,ie=Te,A=Te,he=Te;Be<_.tileResolution&&(w.x==Ne&&w.y!=Ne?(Re=.5,A=.5,(w.side=="d"||w.side=="u")&&(z=.5,he=.5)):w.x!=Ne&&w.y==Ne&&(De=.5,ie=.5,(w.side=="l"||w.side=="r")&&(z=.5,he=.5))),We<=_.tileResolution&&(w.x==Ne&&(De=0,ie=1,(w.side=="l"||w.side=="r")&&(z=0,he=1)),w.y==Ne&&(Re=0,A=1,(w.side=="d"||w.side=="u")&&(z=0,he=1))),Oe=[C[0],C[1],C[2],C[0]*De+C[3]*ie,C[1]*ke+C[4]*Te,C[2]*z+C[5]*he,C[0]*De+C[6]*ie,C[1]*Re+C[7]*A,C[2]*z+C[8]*he,C[0]*ke+C[9]*Te,C[1]*Re+C[10]*A,C[2]*z+C[11]*he],Xe=new pe(Oe,w.side,w.level+1,w.x*2,w.y*2,_.fullpath),Ve.push(Xe),w.x==Ne&&We<=_.tileResolution||(Oe=[C[0]*De+C[3]*ie,C[1]*ke+C[4]*Te,C[2]*z+C[5]*he,C[3],C[4],C[5],C[3]*ke+C[6]*Te,C[4]*Re+C[7]*A,C[5]*z+C[8]*he,C[0]*De+C[6]*ie,C[1]*Re+C[7]*A,C[2]*z+C[8]*he],Xe=new pe(Oe,w.side,w.level+1,w.x*2+1,w.y*2,_.fullpath),Ve.push(Xe)),!(w.x==Ne&&We<=_.tileResolution)&&!(w.y==Ne&&We<=_.tileResolution)&&(Oe=[C[0]*De+C[6]*ie,C[1]*Re+C[7]*A,C[2]*z+C[8]*he,C[3]*ke+C[6]*Te,C[4]*Re+C[7]*A,C[5]*z+C[8]*he,C[6],C[7],C[8],C[9]*De+C[6]*ie,C[10]*ke+C[7]*Te,C[11]*z+C[8]*he],Xe=new pe(Oe,w.side,w.level+1,w.x*2+1,w.y*2+1,_.fullpath),Ve.push(Xe)),w.y==Ne&&We<=_.tileResolution||(Oe=[C[0]*ke+C[9]*Te,C[1]*Re+C[10]*A,C[2]*z+C[11]*he,C[0]*De+C[6]*ie,C[1]*Re+C[7]*A,C[2]*z+C[8]*he,C[9]*De+C[6]*ie,C[10]*ke+C[7]*Te,C[11]*z+C[8]*he,C[9],C[10],C[11]],Xe=new pe(Oe,w.side,w.level+1,w.x*2,w.y*2+1,_.fullpath),Ve.push(Xe));for(var Ie=0;Ie<Ve.length;Ie++)B(h,Ve[Ie],ee,ae)}}}function D(){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 q(){return[1,0,0,0,1,0,0,0,1]}function P(h,w,ee){var ae=Math.sin(w),te=Math.cos(w);if(ee=="x")return[h[0],te*h[1]+ae*h[2],te*h[2]-ae*h[1],h[3],te*h[4]+ae*h[5],te*h[5]-ae*h[4],h[6],te*h[7]+ae*h[8],te*h[8]-ae*h[7]];if(ee=="y")return[te*h[0]-ae*h[2],h[1],te*h[2]+ae*h[0],te*h[3]-ae*h[5],h[4],te*h[5]+ae*h[3],te*h[6]-ae*h[8],h[7],te*h[8]+ae*h[6]];if(ee=="z")return[te*h[0]+ae*h[1],te*h[1]-ae*h[0],h[2],te*h[3]+ae*h[4],te*h[4]-ae*h[3],h[5],te*h[6]+ae*h[7],te*h[7]-ae*h[6],h[8]]}function F(h){return[h[0],h[1],h[2],0,h[3],h[4],h[5],0,h[6],h[7],h[8],0,0,0,0,1]}function re(h){return[h[0],h[4],h[8],h[12],h[1],h[5],h[9],h[13],h[2],h[6],h[10],h[14],h[3],h[7],h[11],h[15]]}function H(h,w,ee,ae){var te=2*Math.atan(Math.tan(h/2)*a.drawingBufferHeight/a.drawingBufferWidth),C=1/Math.tan(te/2);return[C/w,0,0,0,0,C,0,0,0,0,(ae+ee)/(ee-ae),2*ae*ee/(ee-ae),0,0,-1,0]}function oe(h,w){a.bindTexture(a.TEXTURE_2D,w),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,h),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.bindTexture(a.TEXTURE_2D,null)}var J=[],se=(function(){var h=4,w={},ee;function ae(){var Q=this;this.texture=this.callback=null,this.image=new Image,this.image.crossOrigin=ee||"anonymous";var ve=function(){Q.image.width>0&&Q.image.height>0?(oe(Q.image,Q.texture),Q.callback(Q.texture,!0)):Q.callback(Q.texture,!1),C(Q)};this.image.addEventListener("load",ve),this.image.addEventListener("error",ve)}ae.prototype.loadTexture=function(Q,ve,ue){this.texture=ve,this.callback=ue,this.image.src=Q};function te(Q,ve,ue,Ge){this.node=Q,this.src=ve,this.texture=ue,this.callback=Ge}function C(Q){if(J.length){var ve=J.shift();Q.loadTexture(ve.src,ve.texture,ve.callback)}else w[h++]=Q}for(var ne=0;ne<h;ne++)w[ne]=new ae;return function(Q,ve,ue,Ge){ee=Ge;var Ue=a.createTexture();return h?w[--h].loadTexture(ve,Ue,ue):J.push(new te(Q,ve,Ue,ue)),Ue}})();function S(h){se(h,encodeURI(h.path+"."+_.extension),function(w,ee){h.texture=w,h.textureLoaded=ee?2:1},R.crossOrigin)}function de(h){for(var w=1;w<_.maxLevel&&a.drawingBufferWidth>_.tileResolution*Math.pow(2,w-1)*Math.tan(h/2)*.707;)w++;p.level=w}function K(h,w){return[h[0]*w[0],h[0]*w[1],h[0]*w[2],0,h[5]*w[4],h[5]*w[5],h[5]*w[6],0,h[10]*w[8],h[10]*w[9],h[10]*w[10],h[11],-w[8],-w[9],-w[10],0]}function Pe(h,w){return[h[0]*w[0]+h[1]*w[1]+h[2]*w[2],h[4]*w[0]+h[5]*w[1]+h[6]*w[2],h[11]+h[8]*w[0]+h[9]*w[1]+h[10]*w[2],1/(h[12]*w[0]+h[13]*w[1]+h[14]*w[2])]}function qe(h,w){var ee=Pe(h,w),ae=ee[0]*ee[3],te=ee[1]*ee[3],C=ee[2]*ee[3],ne=[0,0,0];return ae<-1&&(ne[0]=-1),ae>1&&(ne[0]=1),te<-1&&(ne[1]=-1),te>1&&(ne[1]=1),(C<-1||C>1)&&(ne[2]=1),ne}function je(h,w){var ee=qe(h,w.slice(0,3)),ae=qe(h,w.slice(3,6)),te=qe(h,w.slice(6,9)),C=qe(h,w.slice(9,12)),ne=ee[0]+ae[0]+te[0]+C[0];if(ne==-4||ne==4)return!1;var Q=ee[1]+ae[1]+te[1]+C[1];if(Q==-4||Q==4)return!1;var ve=ee[2]+ae[2]+te[2]+C[2];return ve!=4}function ye(){console.log("Reducing canvas size due to error 1286!"),f.width=Math.round(f.width/2),f.height=Math.round(f.height/2)}}var i=["attribute vec2 a_texCoord;","varying vec2 v_texCoord;","void main() {","gl_Position = vec4(a_texCoord, 0.0, 1.0);","v_texCoord = a_texCoord;","}"].join(""),s=["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(""),u=["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
|
+
`),n=u+["float cosphi = cos(phi);","gl_FragColor = textureCube(u_imageCube, vec3(cosphi*sin(lambda), sin(phi), cosphi*cos(lambda)));","}"].join(`
|
|
3
|
+
`),v=u+["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
|
+
`),m=["varying mediump vec2 v_texCoord;","uniform sampler2D u_sampler;","void main(void) {","gl_FragColor = texture2D(u_sampler, v_texCoord);","}"].join("");return{renderer:function(f,p,a,b){return new o(f)}}})(window,document),window.pannellum=(function(e,t,r){function o(i,s){var u=this,n,v,m,L=!1,f=Date.now(),p=0,a=0,b=-1,I=0,k=0,g=new Array(10),x=!1,E,_=!1,M=!1,N,$,T={yaw:0,pitch:0,hfov:0},U=!1,Z=!1,R=0,Y,O=0,j,pe,B={},D={},q=[],P=!1,F=!1,re={hfov:100,minHfov:50,maxHfov:120,pitch:0,minPitch:r,maxPitch:r,yaw:0,minYaw:-180,maxYaw:180,roll:0,haov:360,vaov:180,vOffset:0,autoRotate:!1,autoRotateInactivityDelay:-1,autoRotateStopDelay:r,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:A,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]};re.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."},i=typeof i=="string"?t.getElementById(i):i,i.classList.add("pnlm-container"),i.tabIndex=0;var H=t.createElement("div");H.className="pnlm-ui",i.appendChild(H);var oe=t.createElement("div");oe.className="pnlm-render-container",i.appendChild(oe);var J=t.createElement("div");J.className="pnlm-dragfix",H.appendChild(J);var se=t.createElement("span");se.className="pnlm-about-msg",se.innerHTML='<a href="https://pannellum.org/" target="_blank">Pannellum</a>',H.appendChild(se),J.addEventListener("contextmenu",ne);var S={},de=t.createElement("div");de.className="pnlm-sprite pnlm-hot-spot-debug-indicator",H.appendChild(de),S.container=t.createElement("div"),S.container.className="pnlm-panorama-info",S.title=t.createElement("div"),S.title.className="pnlm-title-box",S.container.appendChild(S.title),S.author=t.createElement("div"),S.author.className="pnlm-author-box",S.container.appendChild(S.author),H.appendChild(S.container),S.load={},S.load.box=t.createElement("div"),S.load.box.className="pnlm-load-box",S.load.boxp=t.createElement("p"),S.load.box.appendChild(S.load.boxp),S.load.lbox=t.createElement("div"),S.load.lbox.className="pnlm-lbox",S.load.lbox.innerHTML='<div class="pnlm-loading"></div>',S.load.box.appendChild(S.load.lbox),S.load.lbar=t.createElement("div"),S.load.lbar.className="pnlm-lbar",S.load.lbarFill=t.createElement("div"),S.load.lbarFill.className="pnlm-lbar-fill",S.load.lbar.appendChild(S.load.lbarFill),S.load.box.appendChild(S.load.lbar),S.load.msg=t.createElement("p"),S.load.msg.className="pnlm-lmsg",S.load.box.appendChild(S.load.msg),H.appendChild(S.load.box),S.errorMsg=t.createElement("div"),S.errorMsg.className="pnlm-error-msg pnlm-info-box",H.appendChild(S.errorMsg);var K={};K.container=t.createElement("div"),K.container.className="pnlm-controls-container",H.appendChild(K.container),K.load=t.createElement("div"),K.load.className="pnlm-load-button",K.load.addEventListener("click",function(){Rn(),bo()}),H.appendChild(K.load),K.zoom=t.createElement("div"),K.zoom.className="pnlm-zoom-controls pnlm-controls",K.zoomIn=t.createElement("div"),K.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control",K.zoomIn.addEventListener("click",P2),K.zoom.appendChild(K.zoomIn),K.zoomOut=t.createElement("div"),K.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control",K.zoomOut.addEventListener("click",R2),K.zoom.appendChild(K.zoomOut),K.container.appendChild(K.zoom),K.fullscreen=t.createElement("div"),K.fullscreen.addEventListener("click",An),K.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)&&K.container.appendChild(K.fullscreen),K.orientation=t.createElement("div"),K.orientation.addEventListener("click",function(l){Z?Wt():rn()}),K.orientation.addEventListener("mousedown",function(l){l.stopPropagation()}),K.orientation.addEventListener("touchstart",function(l){l.stopPropagation()}),K.orientation.addEventListener("pointerdown",function(l){l.stopPropagation()}),K.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";var Pe,qe=!1;function je(l){e.removeEventListener("deviceorientation",je),l&&l.alpha!==null&&l.beta!==null&&l.gamma!==null?(K.container.appendChild(K.orientation),Pe=!0,qe&&rn()):Pe=!1}e.DeviceOrientationEvent?e.addEventListener("deviceorientation",je):Pe=!1;var ye=t.createElement("div");ye.className="pnlm-compass pnlm-controls pnlm-control",H.appendChild(ye),s.firstScene?tn(s.firstScene):s.default&&s.default.firstScene?tn(s.default.firstScene):tn(null),Rn(!0);function h(){var l=t.createElement("div");if(l.innerHTML="<!--[if lte IE 9]><i></i><![endif]-->",l.getElementsByTagName("i").length==1){te();return}j=n.hfov,pe=n.pitch;var d,y;if(n.type=="cubemap"){for(N=[],d=0;d<6;d++)N.push(new Image),N[d].crossOrigin=n.crossOrigin;S.load.lbox.style.display="block",S.load.lbar.style.display="none"}else if(n.type=="multires"){var W=JSON.parse(JSON.stringify(n.multiRes));n.basePath&&n.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(n.multiRes.basePath)?W.basePath=n.basePath+n.multiRes.basePath:n.multiRes.basePath?W.basePath=n.multiRes.basePath:n.basePath&&(W.basePath=n.basePath),N=W}else if(n.dynamic===!0)N=n.panorama;else{if(n.panorama===r){te(n.strings.noPanoramaError);return}N=new Image}if(n.type=="cubemap"){var G=6,V=function(){G--,G===0&&ee()},xe=function(He){var Ae=t.createElement("a");Ae.href=He.target.src,Ae.textContent=Ae.href,te(n.strings.fileAccessError.replace("%s",Ae.outerHTML))};for(d=0;d<N.length;d++)y=n.cubeMap[d],y=="null"?(console.log("Will use background instead of missing cubemap face "+d),V()):(n.basePath&&!w(y)&&(y=n.basePath+y),N[d].onload=V,N[d].onerror=xe,N[d].src=Ct(y))}else if(n.type=="multires")ee();else if(y="",n.basePath&&(y=n.basePath),n.dynamic!==!0){y=w(n.panorama)?n.panorama:y+n.panorama,N.onload=function(){e.URL.revokeObjectURL(this.src),ee()};var fe=new XMLHttpRequest;fe.onloadend=function(){if(fe.status!=200){var Le=t.createElement("a");Le.href=y,Le.textContent=Le.href,te(n.strings.fileAccessError.replace("%s",Le.outerHTML))}var He=this.response;ae(He),S.load.msg.innerHTML=""},fe.onprogress=function(Le){if(Le.lengthComputable){var He=Le.loaded/Le.total*100;S.load.lbarFill.style.width=He+"%";var Ae,nt,tt;Le.total>1e6?(Ae="MB",nt=(Le.loaded/1e6).toFixed(2),tt=(Le.total/1e6).toFixed(2)):Le.total>1e3?(Ae="kB",nt=(Le.loaded/1e3).toFixed(1),tt=(Le.total/1e3).toFixed(1)):(Ae="B",nt=Le.loaded,tt=Le.total),S.load.msg.innerHTML=nt+" / "+tt+" "+Ae}else S.load.lbox.style.display="block",S.load.lbar.style.display="none"};try{fe.open("GET",y,!0)}catch{te(n.strings.malformedURLError)}fe.responseType="blob",fe.setRequestHeader("Accept","image/*,*/*;q=0.9"),fe.withCredentials=n.crossOrigin==="use-credentials",fe.send()}n.draggable&&H.classList.add("pnlm-grab"),H.classList.remove("pnlm-grabbing")}function w(l){return new RegExp("^(?:[a-z]+:)?//","i").test(l)||l[0]=="/"||l.slice(0,5)=="blob:"}function ee(){v||(v=new libpannellum.renderer(oe)),M||(M=!0,J.addEventListener("mousedown",ve,!1),t.addEventListener("mousemove",Ue,!1),t.addEventListener("mouseup",ge,!1),n.mouseZoom&&(H.addEventListener("mousewheel",Ve,!1),H.addEventListener("DOMMouseScroll",Ve,!1)),n.doubleClickZoom&&J.addEventListener("dblclick",ue,!1),H.addEventListener("mozfullscreenchange",pt,!1),H.addEventListener("webkitfullscreenchange",pt,!1),H.addEventListener("msfullscreenchange",pt,!1),H.addEventListener("fullscreenchange",pt,!1),e.addEventListener("resize",he,!1),e.addEventListener("orientationchange",he,!1),n.disableKeyboardCtrl||(i.addEventListener("keydown",Oe,!1),i.addEventListener("keyup",De,!1),i.addEventListener("blur",Xe,!1)),t.addEventListener("mouseleave",ge,!1),t.documentElement.style.pointerAction===""&&t.documentElement.style.touchAction===""?(J.addEventListener("pointerdown",Be,!1),J.addEventListener("pointermove",ke,!1),J.addEventListener("pointerup",Te,!1),J.addEventListener("pointerleave",Te,!1)):(J.addEventListener("touchstart",_e,!1),J.addEventListener("touchmove",we,!1),J.addEventListener("touchend",Se,!1)),e.navigator.pointerEnabled&&(i.style.touchAction="none")),I2(),it(n.hfov),setTimeout(function(){},500)}function ae(l){var d=new FileReader;d.addEventListener("loadend",function(){var y=d.result;if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)){var W=y.indexOf("ÿÂ");(W<0||W>65536)&&te(n.strings.iOS8WebGLError)}var G=y.indexOf("<x:xmpmeta");if(G>-1&&n.ignoreGPanoXMP!==!0){var V=y.substring(G,y.indexOf("</x:xmpmeta>")+12),xe=function(He){var Ae;return V.indexOf(He+'="')>=0?(Ae=V.substring(V.indexOf(He+'="')+He.length+2),Ae=Ae.substring(0,Ae.indexOf('"'))):V.indexOf(He+">")>=0&&(Ae=V.substring(V.indexOf(He+">")+He.length+1),Ae=Ae.substring(0,Ae.indexOf("<"))),Ae!==r?Number(Ae):null},fe={fullWidth:xe("GPano:FullPanoWidthPixels"),croppedWidth:xe("GPano:CroppedAreaImageWidthPixels"),fullHeight:xe("GPano:FullPanoHeightPixels"),croppedHeight:xe("GPano:CroppedAreaImageHeightPixels"),topPixels:xe("GPano:CroppedAreaTopPixels"),heading:xe("GPano:PoseHeadingDegrees"),horizonPitch:xe("GPano:PosePitchDegrees"),horizonRoll:xe("GPano:PoseRollDegrees")};fe.fullWidth!==null&&fe.croppedWidth!==null&&fe.fullHeight!==null&&fe.croppedHeight!==null&&fe.topPixels!==null&&(q.indexOf("haov")<0&&(n.haov=fe.croppedWidth/fe.fullWidth*360),q.indexOf("vaov")<0&&(n.vaov=fe.croppedHeight/fe.fullHeight*180),q.indexOf("vOffset")<0&&(n.vOffset=((fe.topPixels+fe.croppedHeight/2)/fe.fullHeight-.5)*-180),fe.heading!==null&&q.indexOf("northOffset")<0&&(n.northOffset=fe.heading,n.compass!==!1&&(n.compass=!0)),fe.horizonPitch!==null&&fe.horizonRoll!==null&&(q.indexOf("horizonPitch")<0&&(n.horizonPitch=fe.horizonPitch),q.indexOf("horizonRoll")<0&&(n.horizonRoll=fe.horizonRoll)))}N.src=e.URL.createObjectURL(l)}),d.readAsBinaryString!==r?d.readAsBinaryString(l):d.readAsText(l)}function te(l){l===r&&(l=n.strings.genericWebGLError),S.errorMsg.innerHTML="<p>"+l+"</p>",K.load.style.display="none",S.load.box.style.display="none",S.errorMsg.style.display="table",_=!0,oe.style.display="none",ht("error",l)}function C(){_&&(S.load.box.style.display="none",S.errorMsg.style.display="none",_=!1,ht("errorcleared"))}function ne(l){var d=Q(l);se.style.left=d.x+"px",se.style.top=d.y+"px",clearTimeout(ne.t1),clearTimeout(ne.t2),se.style.display="block",se.style.opacity=1,ne.t1=setTimeout(function(){se.style.opacity=0},2e3),ne.t2=setTimeout(function(){se.style.display="none"},2500),l.preventDefault()}function Q(l){var d=i.getBoundingClientRect(),y={};return y.x=l.clientX-d.left,y.y=l.clientY-d.top,y}function ve(l){if(l.preventDefault(),i.focus(),!(!E||!n.draggable)){var d=Q(l);if(n.hotSpotDebug){var y=Ge(l);console.log("Pitch: "+y[0]+", Yaw: "+y[1]+", Center Pitch: "+n.pitch+", Center Yaw: "+n.yaw+", HFOV: "+n.hfov)}nn(),Wt(),n.roll=0,T.hfov=0,L=!0,f=Date.now(),p=d.x,a=d.y,I=n.yaw,k=n.pitch,H.classList.add("pnlm-grabbing"),H.classList.remove("pnlm-grab"),ht("mousedown",l),Ie()}}function ue(l){if(n.minHfov===n.hfov)u.setHfov(j,1e3);else{var d=Ge(l);u.lookAt(d[0],d[1],n.minHfov,1e3)}}function Ge(l){var d=Q(l),y=v.getCanvas(),W=y.clientWidth,G=y.clientHeight,V=d.x/W*2-1,xe=(1-d.y/G*2)*G/W,fe=1/Math.tan(n.hfov*Math.PI/360),Le=Math.sin(n.pitch*Math.PI/180),He=Math.cos(n.pitch*Math.PI/180),Ae=fe*He-xe*Le,nt=Math.sqrt(V*V+Ae*Ae),tt=Math.atan((xe*He+fe*Le)/nt)*180/Math.PI,_t=Math.atan2(V/nt,Ae/nt)*180/Math.PI+n.yaw;return _t<-180&&(_t+=360),_t>180&&(_t-=360),[tt,_t]}function Ue(l){if(L&&E){f=Date.now();var d=v.getCanvas(),y=d.clientWidth,W=d.clientHeight,G=Q(l),V=(Math.atan(p/y*2-1)-Math.atan(G.x/y*2-1))*180/Math.PI*n.hfov/90+I;T.yaw=(V-n.yaw)%360*.2,n.yaw=V;var xe=2*Math.atan(Math.tan(n.hfov/360*Math.PI)*W/y)*180/Math.PI,fe=(Math.atan(G.y/W*2-1)-Math.atan(a/W*2-1))*180/Math.PI*xe/90+k;T.pitch=(fe-n.pitch)*.2,n.pitch=fe}}function ge(l){L&&(L=!1,Date.now()-f>15&&(T.pitch=T.yaw=0),H.classList.add("pnlm-grab"),H.classList.remove("pnlm-grabbing"),f=Date.now(),ht("mouseup",l))}function _e(l){if(!(!E||!n.draggable)){nn(),Wt(),n.roll=0,T.hfov=0;var d=Q(l.targetTouches[0]);if(p=d.x,a=d.y,l.targetTouches.length==2){var y=Q(l.targetTouches[1]);p+=(y.x-d.x)*.5,a+=(y.y-d.y)*.5,b=Math.sqrt((d.x-y.x)*(d.x-y.x)+(d.y-y.y)*(d.y-y.y))}L=!0,f=Date.now(),I=n.yaw,k=n.pitch,ht("touchstart",l),Ie()}}function we(l){if(n.draggable&&(l.preventDefault(),E&&(f=Date.now()),L&&E)){var d=Q(l.targetTouches[0]),y=d.x,W=d.y;if(l.targetTouches.length==2&&b!=-1){var G=Q(l.targetTouches[1]);y+=(G.x-d.x)*.5,W+=(G.y-d.y)*.5;var V=Math.sqrt((d.x-G.x)*(d.x-G.x)+(d.y-G.y)*(d.y-G.y));it(n.hfov+(b-V)*.1),b=V}var xe=n.hfov/360*n.touchPanSpeedCoeffFactor,fe=(p-y)*xe+I;T.yaw=(fe-n.yaw)%360*.2,n.yaw=fe;var Le=(W-a)*xe+k;T.pitch=(Le-n.pitch)*.2,n.pitch=Le}}function Se(){L=!1,Date.now()-f>150&&(T.pitch=T.yaw=0),b=-1,f=Date.now(),ht("touchend",event)}var Ne=[],We=[];function Be(l){l.pointerType=="touch"&&(Ne.push(l.pointerId),We.push({clientX:l.clientX,clientY:l.clientY}),l.targetTouches=We,_e(l),l.preventDefault())}function ke(l){if(l.pointerType=="touch"){for(var d=0;d<Ne.length;d++)if(l.pointerId==Ne[d]){We[d].clientX=l.clientX,We[d].clientY=l.clientY,l.targetTouches=We,we(l),l.preventDefault();return}}}function Te(l){if(l.pointerType=="touch"){for(var d=!1,y=0;y<Ne.length;y++)l.pointerId==Ne[y]&&(Ne[y]=r),Ne[y]&&(d=!0);d||(Ne=[],We=[],Se()),l.preventDefault()}}function Ve(l){!E||n.mouseZoom=="fullscreenonly"&&!x||(l.preventDefault(),nn(),f=Date.now(),l.wheelDeltaY?(it(n.hfov-l.wheelDeltaY*.05),T.hfov=l.wheelDelta<0?1:-1):l.wheelDelta?(it(n.hfov-l.wheelDelta*.05),T.hfov=l.wheelDelta<0?1:-1):l.detail&&(it(n.hfov+l.detail*1.5),T.hfov=l.detail>0?1:-1),Ie())}function Oe(l){nn(),f=Date.now(),Wt(),n.roll=0;var d=l.which||l.keycode;n.capturedKeyNumbers.indexOf(d)<0||(l.preventDefault(),d==27?x&&An():Re(d,!0))}function Xe(){for(var l=0;l<10;l++)g[l]=!1}function De(l){var d=l.which||l.keycode;n.capturedKeyNumbers.indexOf(d)<0||(l.preventDefault(),Re(d,!1))}function Re(l,d){var y=!1;switch(l){case 109:case 189:case 17:case 173:g[0]!=d&&(y=!0),g[0]=d;break;case 107:case 187:case 16:case 61:g[1]!=d&&(y=!0),g[1]=d;break;case 38:g[2]!=d&&(y=!0),g[2]=d;break;case 87:g[6]!=d&&(y=!0),g[6]=d;break;case 40:g[3]!=d&&(y=!0),g[3]=d;break;case 83:g[7]!=d&&(y=!0),g[7]=d;break;case 37:g[4]!=d&&(y=!0),g[4]=d;break;case 65:g[8]!=d&&(y=!0),g[8]=d;break;case 39:g[5]!=d&&(y=!0),g[5]=d;break;case 68:g[9]!=d&&(y=!0),g[9]=d}y&&d&&(typeof performance<"u"&&performance.now()?$=performance.now():$=Date.now(),Ie())}function z(){if(E){var l=!1,d=n.pitch,y=n.yaw,W=n.hfov,G;typeof performance<"u"&&performance.now()?G=performance.now():G=Date.now(),$===r&&($=G);var V=(G-$)*n.hfov/1700;if(V=Math.min(V,1),g[0]&&n.keyboardZoom===!0&&(it(n.hfov+(T.hfov*.8+.5)*V),l=!0),g[1]&&n.keyboardZoom===!0&&(it(n.hfov+(T.hfov*.8-.2)*V),l=!0),(g[2]||g[6])&&(n.pitch+=(T.pitch*.8+.2)*V,l=!0),(g[3]||g[7])&&(n.pitch+=(T.pitch*.8-.2)*V,l=!0),(g[4]||g[8])&&(n.yaw+=(T.yaw*.8-.2)*V,l=!0),(g[5]||g[9])&&(n.yaw+=(T.yaw*.8+.2)*V,l=!0),l&&(f=Date.now()),n.autoRotate){if(G-$>.001){var xe=(G-$)/1e3,fe=(T.yaw/xe*V-n.autoRotate*.2)*xe;fe=(-n.autoRotate>0?1:-1)*Math.min(Math.abs(n.autoRotate*xe),Math.abs(fe)),n.yaw+=fe}n.autoRotateStopDelay&&(n.autoRotateStopDelay-=G-$,n.autoRotateStopDelay<=0&&(n.autoRotateStopDelay=!1,O=n.autoRotate,n.autoRotate=0))}if(B.pitch&&(ie("pitch"),d=n.pitch),B.yaw&&(ie("yaw"),y=n.yaw),B.hfov&&(ie("hfov"),W=n.hfov),V>0&&!n.autoRotate){var Le=.85;!g[4]&&!g[5]&&!g[8]&&!g[9]&&!B.yaw&&(n.yaw+=T.yaw*V*Le),!g[2]&&!g[3]&&!g[6]&&!g[7]&&!B.pitch&&(n.pitch+=T.pitch*V*Le),!g[0]&&!g[1]&&!B.hfov&&it(n.hfov+T.hfov*V*Le)}if($=G,V>0){T.yaw=T.yaw*.8+(n.yaw-y)/V*.2,T.pitch=T.pitch*.8+(n.pitch-d)/V*.2,T.hfov=T.hfov*.8+(n.hfov-W)/V*.2;var He=n.autoRotate?Math.abs(n.autoRotate):5;T.yaw=Math.min(He,Math.max(T.yaw,-He)),T.pitch=Math.min(He,Math.max(T.pitch,-He)),T.hfov=Math.min(He,Math.max(T.hfov,-He))}g[0]&&g[1]&&(T.hfov=0),(g[2]||g[6])&&(g[3]||g[7])&&(T.pitch=0),(g[4]||g[8])&&(g[5]||g[9])&&(T.yaw=0)}}function ie(l){var d=B[l],y=Math.min(1,Math.max((Date.now()-d.startTime)/1e3/(d.duration/1e3),0)),W=d.startPosition+n.animationTimingFunction(y)*(d.endPosition-d.startPosition);if(d.endPosition>d.startPosition&&W>=d.endPosition||d.endPosition<d.startPosition&&W<=d.endPosition||d.endPosition===d.startPosition){W=d.endPosition,T[l]=0;var G=B[l].callback,V=B[l].callbackArgs;delete B[l],typeof G=="function"&&G(V)}n[l]=W}function A(l){return l<.5?2*l*l:-1+(4-2*l)*l}function he(){pt()}function Ie(){U||(U=!0,Ee())}function Ee(){if(Fe(),Y&&clearTimeout(Y),L||Z===!0)requestAnimationFrame(Ee);else if(g[0]||g[1]||g[2]||g[3]||g[4]||g[5]||g[6]||g[7]||g[8]||g[9]||n.autoRotate||B.pitch||B.yaw||B.hfov||Math.abs(T.yaw)>.01||Math.abs(T.pitch)>.01||Math.abs(T.hfov)>.01)z(),n.autoRotateInactivityDelay>=0&&O&&Date.now()-f>n.autoRotateInactivityDelay&&!n.autoRotate&&(n.autoRotate=O,u.lookAt(pe,r,j,3e3)),requestAnimationFrame(Ee);else if(v&&(v.isLoading()||n.dynamic===!0&&P))requestAnimationFrame(Ee);else{U=!1,$=r;var l=n.autoRotateInactivityDelay-(Date.now()-f);l>0?Y=setTimeout(function(){n.autoRotate=O,u.lookAt(pe,r,j,3e3),Ie()},l):n.autoRotateInactivityDelay>=0&&O&&(n.autoRotate=O,u.lookAt(pe,r,j,3e3),Ie())}}function Fe(){var l;if(E){n.yaw>180?n.yaw-=360:n.yaw<-180&&(n.yaw+=360),l=n.yaw;var d=0;if(n.avoidShowingBackground){var Le=v.getCanvas(),y=n.hfov/2,W=Math.atan2(Math.tan(y/180*Math.PI),Le.width/Le.height)*180/Math.PI,G=n.vaov>n.haov;G?W*(1-Math.min(Math.cos((n.pitch-y)/180*Math.PI),Math.cos((n.pitch+y)/180*Math.PI))):d=y*(1-Math.min(Math.cos((n.pitch-W)/180*Math.PI),Math.cos((n.pitch+W)/180*Math.PI)))}var V=n.maxYaw-n.minYaw,xe=-180,fe=180;V<360&&(xe=n.minYaw+n.hfov/2+d,fe=n.maxYaw-n.hfov/2-d,V<n.hfov&&(xe=fe=(xe+fe)/2),n.yaw=Math.max(xe,Math.min(fe,n.yaw))),n.autoRotate!==!1&&l!=n.yaw&&$!==r&&(n.autoRotate*=-1);var Le=v.getCanvas(),He=2*Math.atan(Math.tan(n.hfov/180*Math.PI*.5)/(Le.width/Le.height))/Math.PI*180,Ae=n.minPitch+He/2,nt=n.maxPitch-He/2,tt=n.maxPitch-n.minPitch;tt<He&&(Ae=nt=(Ae+nt)/2),isNaN(Ae)&&(Ae=-90),isNaN(nt)&&(nt=90),n.pitch=Math.max(Ae,Math.min(nt,n.pitch)),v.render(n.pitch*Math.PI/180,n.yaw*Math.PI/180,n.hfov*Math.PI/180,{roll:n.roll*Math.PI/180}),yo(),n.compass&&(ye.style.transform="rotate("+(-n.yaw-n.northOffset)+"deg)",ye.style.webkitTransform="rotate("+(-n.yaw-n.northOffset)+"deg)"),n.onRender&&n.onRender()}}function ce(l,d,y,W){this.w=l,this.x=d,this.y=y,this.z=W}ce.prototype.multiply=function(l){return new ce(this.w*l.w-this.x*l.x-this.y*l.y-this.z*l.z,this.x*l.w+this.w*l.x+this.y*l.z-this.z*l.y,this.y*l.w+this.w*l.y+this.z*l.x-this.x*l.z,this.z*l.w+this.w*l.z+this.x*l.y-this.y*l.x)},ce.prototype.toEulerAngles=function(){var l=Math.atan2(2*(this.w*this.x+this.y*this.z),1-2*(this.x*this.x+this.y*this.y)),d=Math.asin(2*(this.w*this.y-this.z*this.x)),y=Math.atan2(2*(this.w*this.z+this.x*this.y),1-2*(this.y*this.y+this.z*this.z));return[l,d,y]};function M2(l,d,y){var W=[d?d*Math.PI/180/2:0,y?y*Math.PI/180/2:0,l?l*Math.PI/180/2:0],G=[Math.cos(W[0]),Math.cos(W[1]),Math.cos(W[2])],V=[Math.sin(W[0]),Math.sin(W[1]),Math.sin(W[2])];return new ce(G[0]*G[1]*G[2]-V[0]*V[1]*V[2],V[0]*G[1]*G[2]-G[0]*V[1]*V[2],G[0]*V[1]*G[2]+V[0]*G[1]*V[2],G[0]*G[1]*V[2]+V[0]*V[1]*G[2])}function k2(l,d,y){var W=M2(l,d,y);W=W.multiply(new ce(Math.sqrt(.5),-Math.sqrt(.5),0,0));var G=e.orientation?-e.orientation*Math.PI/180/2:0;return W.multiply(new ce(Math.cos(G),0,-Math.sin(G),0))}function vo(l){var d=k2(l.alpha,l.beta,l.gamma).toEulerAngles();typeof Z=="number"&&Z<10?Z+=1:Z===10?(R=d[2]/Math.PI*180+n.yaw,Z=!0,requestAnimationFrame(Ee)):(n.pitch=d[0]/Math.PI*180,n.roll=-d[1]/Math.PI*180,n.yaw=-d[2]/Math.PI*180+R)}function I2(){try{var l={};n.horizonPitch!==r&&(l.horizonPitch=n.horizonPitch*Math.PI/180),n.horizonRoll!==r&&(l.horizonRoll=n.horizonRoll*Math.PI/180),n.backgroundColor!==r&&(l.backgroundColor=n.backgroundColor),v.init(N,n.type,n.dynamic,n.haov*Math.PI/180,n.vaov*Math.PI/180,n.vOffset*Math.PI/180,T2,l),n.dynamic!==!0&&(N=r)}catch(d){if(d.type=="webgl error"||d.type=="no webgl")te();else if(d.type=="webgl size error")te(n.strings.textureSizeError.replace("%s",d.width).replace("%s",d.maxWidth));else throw te(n.strings.unknownError),d}}function T2(){if(n.sceneFadeDuration&&v.fadeImg!==r){v.fadeImg.style.opacity=0;var l=v.fadeImg;delete v.fadeImg,setTimeout(function(){oe.removeChild(l),ht("scenechangefadedone")},n.sceneFadeDuration)}n.compass?ye.style.display="inline":ye.style.display="none",S2(),S.load.box.style.display="none",m!==r&&(oe.removeChild(m),m=r),E=!0,ht("load"),Ie()}function _o(l){l.pitch=Number(l.pitch)||0,l.yaw=Number(l.yaw)||0;var d=t.createElement("div");d.className="pnlm-hotspot-base",l.cssClass?d.className+=" "+l.cssClass:d.className+=" pnlm-hotspot pnlm-sprite pnlm-"+bt(l.type);var y=t.createElement("span");l.text&&(y.innerHTML=bt(l.text));var W;if(l.video){var G=t.createElement("video"),V=l.video;n.basePath&&!w(V)&&(V=n.basePath+V),G.src=Ct(V),G.controls=!0,G.style.width=l.width+"px",oe.appendChild(d),y.appendChild(G)}else if(l.image){var V=l.image;n.basePath&&!w(V)&&(V=n.basePath+V),W=t.createElement("a"),W.href=Ct(l.URL?l.URL:V),W.target="_blank",y.appendChild(W);var xe=t.createElement("img");xe.src=Ct(V),xe.style.width=l.width+"px",xe.style.paddingTop="5px",oe.appendChild(d),W.appendChild(xe),y.style.maxWidth="initial"}else l.URL?(W=t.createElement("a"),W.href=Ct(l.URL),W.target="_blank",oe.appendChild(W),d.className+=" pnlm-pointer",y.className+=" pnlm-pointer",W.appendChild(d)):(l.sceneId&&(d.onclick=d.ontouchend=function(){return d.clicked||(d.clicked=!0,Dn(l.sceneId,l.targetPitch,l.targetYaw,l.targetHfov)),!1},d.className+=" pnlm-pointer",y.className+=" pnlm-pointer"),oe.appendChild(d));l.createTooltipFunc?l.createTooltipFunc(d,l.createTooltipArgs):(l.text||l.video||l.image)&&(d.classList.add("pnlm-tooltip"),d.appendChild(y),y.style.width=y.scrollWidth-20+"px",y.style.marginLeft=-(y.scrollWidth-d.offsetWidth)/2+"px",y.style.marginTop=-y.scrollHeight-12+"px"),l.clickHandlerFunc&&(d.addEventListener("click",function(fe){l.clickHandlerFunc(fe,l.clickHandlerArgs)},"false"),d.className+=" pnlm-pointer",y.className+=" pnlm-pointer"),l.div=d}function S2(){F||(n.hotSpots?(n.hotSpots=n.hotSpots.sort(function(l,d){return l.pitch<d.pitch}),n.hotSpots.forEach(_o)):n.hotSpots=[],F=!0,yo())}function N2(){var l=n.hotSpots;if(F=!1,delete n.hotSpots,l)for(var d=0;d<l.length;d++){for(var y=l[d].div;y.parentNode!=oe;)y=y.parentNode;oe.removeChild(y),delete l[d].div}}function wo(l){var d=Math.sin(l.pitch*Math.PI/180),y=Math.cos(l.pitch*Math.PI/180),W=Math.sin(n.pitch*Math.PI/180),G=Math.cos(n.pitch*Math.PI/180),V=Math.cos((-l.yaw+n.yaw)*Math.PI/180),xe=d*W+y*V*G;if(l.yaw<=90&&l.yaw>-90&&xe<=0||(l.yaw>90||l.yaw<=-90)&&xe<=0)l.div.style.visibility="hidden";else{var fe=Math.sin((-l.yaw+n.yaw)*Math.PI/180),Le=Math.tan(n.hfov*Math.PI/360);l.div.style.visibility="visible";var He=v.getCanvas(),Ae=He.clientWidth,nt=He.clientHeight,tt=[-Ae/Le*fe*y/xe/2,-Ae/Le*(d*G-y*V*W)/xe/2],_t=Math.sin(n.roll*Math.PI/180),Co=Math.cos(n.roll*Math.PI/180);tt=[tt[0]*Co-tt[1]*_t,tt[0]*_t+tt[1]*Co],tt[0]+=(Ae-l.div.offsetWidth)/2,tt[1]+=(nt-l.div.offsetHeight)/2;var zn="translate("+tt[0]+"px, "+tt[1]+"px) translateZ(9999px) rotate("+n.roll+"deg)";l.div.style.webkitTransform=zn,l.div.style.MozTransform=zn,l.div.style.transform=zn}}function yo(){n.hotSpots.forEach(wo)}function tn(l){n={};var d,y,W=["haov","vaov","vOffset","northOffset","horizonPitch","horizonRoll"];q=[];for(d in re)re.hasOwnProperty(d)&&(n[d]=re[d]);for(d in s.default)if(s.default.hasOwnProperty(d))if(d=="strings")for(y in s.default.strings)s.default.strings.hasOwnProperty(y)&&(n.strings[y]=bt(s.default.strings[y]));else n[d]=s.default[d],W.indexOf(d)>=0&&q.push(d);if(l!==null&&l!==""&&s.scenes&&s.scenes[l]){var G=s.scenes[l];for(d in G)if(G.hasOwnProperty(d))if(d=="strings")for(y in G.strings)G.strings.hasOwnProperty(y)&&(n.strings[y]=bt(G.strings[y]));else n[d]=G[d],W.indexOf(d)>=0&&q.push(d);n.scene=l}for(d in s)if(s.hasOwnProperty(d))if(d=="strings")for(y in s.strings)s.strings.hasOwnProperty(y)&&(n.strings[y]=bt(s.strings[y]));else n[d]=s[d],W.indexOf(d)>=0&&q.push(d)}function Rn(l){if(l=l||!1,l&&"preview"in n){var d=n.preview;n.basePath&&!w(d)&&(d=n.basePath+d),m=t.createElement("div"),m.className="pnlm-preview-img",m.style.backgroundImage="url('"+A2(d)+"')",oe.appendChild(m)}var y=n.title,W=n.author;l&&("previewTitle"in n&&(n.title=n.previewTitle),"previewAuthor"in n&&(n.author=n.previewAuthor)),n.hasOwnProperty("title")||(S.title.innerHTML=""),n.hasOwnProperty("author")||(S.author.innerHTML=""),!n.hasOwnProperty("title")&&!n.hasOwnProperty("author")&&(S.container.style.display="none"),K.load.innerHTML="<p>"+n.strings.loadButtonLabel+"</p>",S.load.boxp.innerHTML=n.strings.loadingLabel;for(var G in n)if(n.hasOwnProperty(G))switch(G){case"title":S.title.innerHTML=bt(n[G]),S.container.style.display="inline";break;case"author":S.author.innerHTML=n.strings.bylineLabel.replace("%s",bt(n[G])),S.container.style.display="inline";break;case"fallback":var V=t.createElement("a");V.href=Ct(n[G]),V.target="_blank",V.textContent="Click here to view this panorama in an alternative viewer.";var xe=t.createElement("p");xe.textContent="Your browser does not support WebGL.",xe.appendChild(t.createElement("br")),xe.appendChild(V),S.errorMsg.innerHTML="",S.errorMsg.appendChild(xe);break;case"hfov":it(Number(n[G]));break;case"autoLoad":n[G]===!0&&v===r&&(S.load.box.style.display="inline",K.load.style.display="none",h());break;case"showZoomCtrl":n[G]&&n.showControls!=!1?K.zoom.style.display="block":K.zoom.style.display="none";break;case"showFullscreenCtrl":n[G]&&n.showControls!=!1&&("fullscreen"in t||"mozFullScreen"in t||"webkitIsFullScreen"in t||"msFullscreenElement"in t)?K.fullscreen.style.display="block":K.fullscreen.style.display="none";break;case"hotSpotDebug":n[G]?de.style.display="block":de.style.display="none";break;case"showControls":n[G]||(K.orientation.style.display="none",K.zoom.style.display="none",K.fullscreen.style.display="none");break;case"orientationOnByDefault":n[G]&&(Pe===r?qe=!0:Pe===!0&&rn());break}l&&(y?n.title=y:delete n.title,W?n.author=W:delete n.author)}function An(){if(E&&!_)if(x)t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen();else try{i.requestFullscreen?i.requestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.msRequestFullscreen?i.msRequestFullscreen():i.webkitRequestFullScreen()}catch{}}function pt(){var l=e.innerWidth==screen.width&&e.innerHeight==screen.height;t.fullscreen||t.mozFullScreen||t.webkitIsFullScreen||t.msFullscreenElement||l?(K.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),x=!0):(K.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),x=!1),v.resize(),it(n.hfov),Ie()}function P2(){E&&(it(n.hfov-5),Ie())}function R2(){E&&(it(n.hfov+5),Ie())}function xo(l){var d=n.minHfov;if(n.type=="multires"&&v&&(d=Math.min(d,v.getCanvas().width/(n.multiRes.cubeResolution/90*.9))),d>n.maxHfov)return console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),n.hfov;var y=n.hfov;if(l<d?y=d:l>n.maxHfov?y=n.maxHfov:y=l,n.avoidShowingBackground&&v){var W=v.getCanvas();y=Math.min(y,Math.atan(Math.tan((n.maxPitch-n.minPitch)/360*Math.PI)/W.height*W.width)*360/Math.PI)}return y}function it(l){n.hfov=xo(l)}function nn(){B={},O=n.autoRotate?n.autoRotate:O,n.autoRotate=!1}function bo(){C(),E=!1,K.load.style.display="none",S.load.box.style.display="inline",h()}function Dn(l,d,y,W,G){E=!1,B={};var V,xe,fe,Le;if(n.sceneFadeDuration&&!G){var He=v.render(n.pitch*Math.PI/180,n.yaw*Math.PI/180,n.hfov*Math.PI/180,{returnImage:!0});if(He!==r){V=new Image,V.className="pnlm-fade-img",V.style.transition="opacity "+n.sceneFadeDuration/1e3+"s",V.style.width="100%",V.style.height="100%",V.onload=function(){Dn(l,d,y,W,!0)},V.src=He,oe.appendChild(V),v.fadeImg=V;return}}d==="same"?xe=n.pitch:xe=d,y==="same"?fe=n.yaw:y==="sameAzimuth"?fe=n.yaw+(n.northOffset||0)-(s.scenes[l].northOffset||0):fe=y,W==="same"?Le=n.hfov:Le=W,N2(),tn(l),T.yaw=T.pitch=T.hfov=0,Rn(),xe!==r&&(n.pitch=xe),fe!==r&&(n.yaw=fe),Le!==r&&(n.hfov=Le),ht("scenechange",l),bo()}function Wt(){e.removeEventListener("deviceorientation",vo),K.orientation.classList.remove("pnlm-orientation-button-active"),Z=!1}function rn(){Z=1,e.addEventListener("deviceorientation",vo),K.orientation.classList.add("pnlm-orientation-button-active")}function bt(l){return s.escapeHTML?String(l).split(/&/g).join("&").split('"').join(""").split("'").join("'").split("<").join("<").split(">").join(">").split("/").join("/").split(`
|
|
5
5
|
`).join("<br>"):String(l).split(`
|
|
6
|
-
`).join("<br>")}function Ct(l){return l.trim().toLowerCase().indexOf("javascript:")===0?"about:blank":l}function As(l){return Ct(l).replace(/"/g,"%22").replace(/'/g,"%27")}this.isLoaded=function(){return!!E},this.getPitch=function(){return r.pitch},this.setPitch=function(l,d,y,U){return d=d==n?1e3:Number(d),d?Z.pitch={startTime:Date.now(),startPosition:r.pitch,endPosition:l,duration:d,callback:y,callbackArgs:U}:r.pitch=l,Ie(),this},this.getPitchBounds=function(){return[r.minPitch,r.maxPitch]},this.setPitchBounds=function(l){return r.minPitch=Math.max(-90,Math.min(l[0],90)),r.maxPitch=Math.max(-90,Math.min(l[1],90)),this},this.getYaw=function(){return r.yaw},this.setYaw=function(l,d,y,U){return d=d==n?1e3:Number(d),l=(l+180)%360-180,d?(r.yaw-l>180?l+=360:l-r.yaw>180&&(l-=360),Z.yaw={startTime:Date.now(),startPosition:r.yaw,endPosition:l,duration:d,callback:y,callbackArgs:U}):r.yaw=l,Ie(),this},this.getYawBounds=function(){return[r.minYaw,r.maxYaw]},this.setYawBounds=function(l){return r.minYaw=Math.max(-180,Math.min(l[0],180)),r.maxYaw=Math.max(-180,Math.min(l[1],180)),this},this.getHfov=function(){return r.hfov},this.setHfov=function(l,d,y,U){return d=d==n?1e3:Number(d),d?Z.hfov={startTime:Date.now(),startPosition:r.hfov,endPosition:_o(l),duration:d,callback:y,callbackArgs:U}:it(l),Ie(),this},this.getHfovBounds=function(){return[r.minHfov,r.maxHfov]},this.setHfovBounds=function(l){return r.minHfov=Math.max(0,l[0]),r.maxHfov=Math.max(0,l[1]),this},this.lookAt=function(l,d,y,U,X,W){return U=U==n?1e3:Number(U),l!==n&&(this.setPitch(l,U,X,W),X=n),d!==n&&(this.setYaw(d,U,X,W),X=n),y!==n&&this.setHfov(y,U,X,W),this},this.getNorthOffset=function(){return r.northOffset},this.setNorthOffset=function(l){return r.northOffset=Math.min(360,Math.max(0,l)),Ie(),this},this.getHorizonRoll=function(){return r.horizonRoll},this.setHorizonRoll=function(l){return r.horizonRoll=Math.min(90,Math.max(-90,l)),g.setPose(r.horizonPitch*Math.PI/180,r.horizonRoll*Math.PI/180),Ie(),this},this.getHorizonPitch=function(){return r.horizonPitch},this.setHorizonPitch=function(l){return r.horizonPitch=Math.min(90,Math.max(-90,l)),g.setPose(r.horizonPitch*Math.PI/180,r.horizonRoll*Math.PI/180),Ie(),this},this.startAutoRotate=function(l){return l=l||R||1,r.autoRotate=l,u.lookAt(he,n,$,3e3),Ie(),this},this.stopAutoRotate=function(){return R=r.autoRotate?r.autoRotate:R,r.autoRotate=!1,r.autoRotateInactivityDelay=-1,this},this.getRenderer=function(){return g},this.setUpdate=function(l){return z=l===!0,g===n?Q():Ie(),this},this.mouseEventToCoords=function(l){return Xe(l)},this.loadScene=function(l,d,y,U){return E!==!1&&Rn(l,d,y,U),this},this.getScene=function(){return r.scene},this.addScene=function(l,d){return i.scenes[l]=d,this},this.removeScene=function(l){return r.scene===l||!i.scenes.hasOwnProperty(l)?!1:(delete i.scenes[l],!0)},this.toggleFullscreen=function(){return Pn(),this},this.getConfig=function(){return r},this.getContainer=function(){return s},this.addHotSpot=function(l,d){if(d===n&&r.scene===n)r.hotSpots.push(l);else{var y=d!==n?d:r.scene;if(i.scenes.hasOwnProperty(y))i.scenes[y].hasOwnProperty("hotSpots")||(i.scenes[y].hotSpots=[],y==r.scene&&(r.hotSpots=i.scenes[y].hotSpots)),i.scenes[y].hotSpots.push(l);else throw"Invalid scene ID!"}return(d===n||r.scene==d)&&(mo(l),E&&go(l)),this},this.removeHotSpot=function(l,d){if(d===n||r.scene==d){if(!r.hotSpots)return!1;for(var y=0;y<r.hotSpots.length;y++)if(r.hotSpots[y].hasOwnProperty("id")&&r.hotSpots[y].id===l){for(var U=r.hotSpots[y].div;U.parentNode!=ne;)U=U.parentNode;return ne.removeChild(U),delete r.hotSpots[y].div,r.hotSpots.splice(y,1),!0}}else if(i.scenes.hasOwnProperty(d)){if(!i.scenes[d].hasOwnProperty("hotSpots"))return!1;for(var y=0;y<i.scenes[d].hotSpots.length;y++)if(i.scenes[d].hotSpots[y].hasOwnProperty("id")&&i.scenes[d].hotSpots[y].id===l)return i.scenes[d].hotSpots.splice(y,1),!0}else return!1},this.resize=function(){g&&me()},this.isLoaded=function(){return E},this.isOrientationSupported=function(){return Ae||!1},this.stopOrientation=function(){Vt()},this.startOrientation=function(){Ae&&rn()},this.isOrientationActive=function(){return!!Y},this.on=function(l,d){return D[l]=D[l]||[],D[l].push(d),this},this.off=function(l,d){if(!l)return D={},this;if(d){var y=D[l].indexOf(d);y>=0&&D[l].splice(y,1),D[l].length==0&&delete D[l]}else delete D[l];return this};function ht(l){if(l in D)for(var d=D[l].length;d>0;d--)D[l][D[l].length-d].apply(null,[].slice.call(arguments,1))}this.destroy=function(){g&&g.destroy(),I&&(ae.removeEventListener("mousedown",_e,!1),ae.removeEventListener("dblclick",ue,!1),t.removeEventListener("mousemove",se,!1),t.removeEventListener("mouseup",ge,!1),s.removeEventListener("mousewheel",Ve,!1),s.removeEventListener("DOMMouseScroll",Ve,!1),s.removeEventListener("mozfullscreenchange",pt,!1),s.removeEventListener("webkitfullscreenchange",pt,!1),s.removeEventListener("msfullscreenchange",pt,!1),s.removeEventListener("fullscreenchange",pt,!1),e.removeEventListener("resize",me,!1),e.removeEventListener("orientationchange",me,!1),s.removeEventListener("keydown",Pe,!1),s.removeEventListener("keyup",Ze,!1),s.removeEventListener("blur",Be,!1),t.removeEventListener("mouseleave",ge,!1),ae.removeEventListener("touchstart",ve,!1),ae.removeEventListener("touchmove",Ue,!1),ae.removeEventListener("touchend",We,!1),ae.removeEventListener("pointerdown",De,!1),ae.removeEventListener("pointermove",Te,!1),ae.removeEventListener("pointerup",Se,!1),ae.removeEventListener("pointerleave",Se,!1)),s.innerHTML="",s.classList.remove("pnlm-container"),O.classList.remove("pnlm-grab"),O.classList.remove("pnlm-grabbing")}}return{viewer:function(i,u){return new o(i,u)}}})(window,document),window.requestAnimationFrame||(window.requestAnimationFrame=(function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)}})());function Xa(e,t,n){const o=Ce(null),s=Ce(n);return s.current=n,pe(()=>{const i=e.current;if(!i)return;const u=window.pannellum;if(!u){console.error("[InteriorThreeSixty] pannellum global not available"),s.current.onError?.();return}const r=u.viewer(i,{type:"equirectangular",panorama:t.image,preview:t.preview,pitch:Wa,yaw:Ba,hfov:Va,maxHfov:Tt,minHfov:Ht,compass:!1,showControls:!1,keyboardZoom:!1,autoLoad:t.autoLoad});return o.current=r,r.on("load",()=>s.current.onLoad?.()),r.on("error",()=>s.current.onError?.()),r.on("mousedown",(...g)=>s.current.onMousedown?.(g[0])),r.on("mouseup",(...g)=>s.current.onMouseup?.(g[0])),r.on("touchstart",(...g)=>s.current.onTouchstart?.(g[0])),r.on("touchend",(...g)=>s.current.onTouchend?.(g[0])),()=>{o.current=null,r.destroy()}},[t.image,t.preview,t.autoLoad]),o}function Ya(e,t=50,n=200){let o=null,s=0;return(...i)=>{const u=Date.now();o&&(clearTimeout(o),o=null),u-s>=t&&(e(...i),s=u),o=setTimeout(()=>{e(...i)},n)}}const Ga=({className:e})=>c(qe,{className:e,customizationKey:"UI_INTERIOR_360_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"})})}),$a=({itemIndex:e,isPannellumLoaded:t,isLoading:n,progress:o,autoloadInterior360:s,loadScene:i})=>{const{emitAnalyticsEvent:u}=Je(),{displayedCategoryId:r,displayedCategoryName:g}=Qe(),m=B(f=>{u({type:"interaction",current:{category_id:r,category_name:g,item_type:"interior-360",item_position:e},action:{name:"Interior 360 Play",field:"interior_360_play",value:f}})},[u,r,g,e]),L=B(()=>{i(),m("click")},[i,m]);return pe(()=>{s&&(i(),m("auto"))},[s,i,m]),t?null: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(no,{className:"size-20"}),c(rt,{color:"neutral",shape:"icon",onClick:L,children:c(Ga,{className:"size-full"})}),c("div",{className:de("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",!n&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${o}%`}})})]})})},ja=e=>{const{itemIndex:t,src:n,poster:o,onLoaded:s,onError:i,onlyPreload:u}=e,{autoLoadInterior360:r}=Je(),{isShowingDetails:g,zoom:m,setZoom:L}=Qe(),[f,p]=Za(n),a=Ce(null),[b,k]=xe(!1),[M,_]=xe(r);pe(()=>{r&&_(!0)},[r]);const x=B(()=>{s?.(),k(!0)},[s]),E=B(N=>{N instanceof MouseEvent&&N.button!==0||(N.preventDefault(),N.stopPropagation(),N.stopImmediatePropagation())},[]),v=B(()=>{_(!0)},[]),I=Xa(a,{image:n,preview:o,autoLoad:M},{onLoad:x,onError:i,onMousedown:E,onMouseup:E,onTouchstart:E,onTouchend:E});return pe(()=>{if(u)return;const N=I.current;if(!N||!b)return;const K=1,T=ot((m-K)/(vt-K),0,1),F=ot(Tt-T*(Tt-Ht),Ht,Tt);N.setHfov(F)},[m,b,I,u]),pe(()=>{if(u)return;const N=a.current;if(!N||!b)return;const T=Ya(Y=>{Y.preventDefault();const P=I.current;if(!P)return;const G=Yr(P.getHfov(),Ht,Tt,vt,yt),$=(Y.deltaY<0?"zoom-in":"zoom-out")==="zoom-in"?Math.min(G+yt,vt):Math.max(G-yt,1);L($)},100,150),F=Y=>{Y.preventDefault();const P=I.current;if(!P)return;const G=Yr(P.getHfov(),Ht,Tt,vt,yt,!0);L(G)};return N.addEventListener("wheel",T),N.addEventListener("dblclick",F),()=>{N.removeEventListener("wheel",T),N.removeEventListener("dblclick",F)}},[b,L,I,u]),c("div",{className:de("relative aspect-[4/3] w-full overflow-hidden bg-transparent"),children:c("div",{className:de("size-full",g?"scale-105":"scale-100"),children:[c("div",{ref:a,className:"size-full"}),c($a,{isPannellumLoaded:b,isLoading:p,progress:f,autoloadInterior360:r,loadScene:v,itemIndex:t})]})})},qa=e=>{const{itemIndex:t}=e,{setItemInteraction:n}=Qe(),[o,s]=xe(),i=B(()=>{s("spin")},[]),u=B(()=>{s("error")},[]);return pe(()=>{o===null||o==="error"||n(t,o==="spin"?"running":"ready")},[t,n,o]),o==="error"?c(qt,{className:"text-background",text:"Interior Spin could not be loaded"}):c(ja,{...e,onLoaded:i,onError:u})},Ka={autonation:{playButton:{default:"data:image/svg+xml,%3csvg%20width='78'%20height='78'%20viewBox='0%200%2078%2078'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.36035%2038.4241C1.36035%2017.9895%2017.9258%201.42407%2038.3604%201.42407C58.7949%201.42407%2075.3604%2017.9895%2075.3604%2038.4241C75.3604%2058.8586%2058.7949%2075.4241%2038.3604%2075.4241C17.9258%2075.4241%201.36035%2058.8586%201.36035%2038.4241Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M63.6101%2047.2044L66.7877%2048.587L66.5803%2049.0636L63.8703%2047.8845L63.181%2049.4687L62.7134%2049.2653L63.6101%2047.2044ZM61.5503%2054.7756C61.7117%2054.8903%2061.8699%2054.9725%2062.025%2055.022C62.1809%2055.0762%2062.3281%2055.0999%2062.4666%2055.093C62.6077%2055.0881%2062.7369%2055.0545%2062.8542%2054.9921C62.9696%2054.9324%2063.0674%2054.8461%2063.1478%2054.7331C63.2281%2054.6201%2063.2775%2054.4994%2063.2961%2054.3708C63.3154%2054.2469%2063.3045%2054.1197%2063.2636%2053.9893C63.2227%2053.859%2063.151%2053.7291%2063.0487%2053.5996C62.9491%2053.4721%2062.8186%2053.3509%2062.6572%2053.2361C62.4958%2053.1214%2062.3372%2053.0369%2062.1813%2052.9828C62.0262%2052.9332%2061.8791%2052.9095%2061.7398%2052.9117C61.6013%2052.9185%2061.4744%2052.9518%2061.359%2053.0115C61.2418%2053.0739%2061.143%2053.1616%2061.0626%2053.2745C60.9823%2053.3875%2060.9325%2053.506%2060.9132%2053.6299C60.8946%2053.7585%2060.9058%2053.888%2060.9468%2054.0183C60.9858%2054.1514%2061.0551%2054.2817%2061.1548%2054.4092C61.2571%2054.5387%2061.3889%2054.6608%2061.5503%2054.7756ZM61.2514%2055.213C61.0308%2055.0561%2060.8515%2054.884%2060.7134%2054.6967C60.5779%2054.5113%2060.4839%2054.3189%2060.4313%2054.1195C60.3795%2053.9247%2060.3713%2053.7285%2060.4065%2053.5308C60.4418%2053.3332%2060.5235%2053.1443%2060.6517%2052.9641C60.7779%2052.7866%2060.9272%2052.6477%2061.0997%2052.5476C61.2748%2052.4494%2061.4629%2052.3928%2061.6639%2052.3778C61.8649%2052.3629%2062.0752%2052.3889%2062.2948%2052.456C62.5151%2052.5276%2062.7356%2052.6419%2062.9561%2052.7987C63.1767%2052.9556%2063.3547%2053.1267%2063.4901%2053.3121C63.6282%2053.4994%2063.7232%2053.6905%2063.775%2053.8853C63.8276%2054.0847%2063.8363%2054.2832%2063.801%2054.4808C63.7657%2054.6785%2063.685%2054.8661%2063.5587%2055.0436C63.4306%2055.2238%2063.2789%2055.363%2063.1038%2055.4612C62.9314%2055.5613%2062.7446%2055.6188%2062.5436%2055.6338C62.3426%2055.6488%2062.1319%2055.6205%2061.9116%2055.5488C61.692%2055.4818%2061.4719%2055.3698%2061.2514%2055.213ZM58.2673%2059.1725C58.324%2059.2057%2058.3876%2059.2416%2058.4581%2059.2803C58.5286%2059.3189%2058.5991%2059.3575%2058.6696%2059.3961C58.7376%2059.437%2058.8012%2059.4729%2058.8604%2059.5039C58.9193%2059.5396%2058.9647%2059.5676%2058.9963%2059.5879C58.9793%2059.5544%2058.9561%2059.5064%2058.9265%2059.4442C58.8992%2059.3844%2058.8686%2059.3186%2058.8349%2059.2468C58.8033%2059.1774%2058.7708%2059.1045%2058.7373%2059.028C58.7013%2058.9538%2058.6709%2058.8856%2058.646%2058.8236L58.3207%2058.0501L57.5273%2058.7669L58.2673%2059.1725ZM56.3301%2058.1139L57.0977%2058.5279L58.1262%2057.5986L57.7883%2056.7963L58.1887%2056.4346L59.5863%2059.8421L59.1786%2060.2105L55.9187%2058.4857L56.3301%2058.1139ZM52.6993%2062.9259C52.7889%2063.0838%2052.8889%2063.2168%2052.9995%2063.3248C53.1117%2063.4357%2053.2363%2063.515%2053.3732%2063.5625C53.5073%2063.6117%2053.6536%2063.6255%2053.8121%2063.6039C53.9677%2063.584%2054.1346%2063.5235%2054.3126%2063.4226L54.6829%2063.2127L53.4719%2061.0766L53.1016%2061.2866C52.9236%2061.3875%2052.7861%2061.4996%2052.689%2061.6229C52.5891%2061.7478%2052.5258%2061.8804%2052.4992%2062.0208C52.4696%2062.1627%2052.4728%2062.3089%2052.5087%2062.4592C52.5463%2062.6124%2052.6098%2062.768%2052.6993%2062.9259ZM52.2385%2063.1872C52.0872%2062.9202%2051.998%2062.6691%2051.9709%2062.4341C51.941%2062.2006%2051.9585%2061.9839%2052.0235%2061.784C52.0901%2061.5869%2052.1961%2061.4092%2052.3415%2061.2508C52.4841%2061.0941%2052.6544%2060.9596%2052.8525%2060.8473L53.6751%2060.381L55.3842%2063.3956L54.5616%2063.8619C54.3606%2063.9758%2054.1549%2064.0546%2053.9443%2064.098C53.7309%2064.1432%2053.5231%2064.1414%2053.3211%2064.0929C53.1206%2064.0471%2052.928%2063.9515%2052.743%2063.806C52.5581%2063.6604%2052.3899%2063.4542%2052.2385%2063.1872ZM43.3091%2065.6047C43.2474%2065.2537%2043.3126%2064.9674%2043.5049%2064.7459C43.6977%2064.5277%2043.9956%2064.3831%2044.3987%2064.3122C44.5189%2064.291%2044.6415%2064.2829%2044.7663%2064.2877C44.8912%2064.2926%2045.0131%2064.3097%2045.1322%2064.339C45.2481%2064.3688%2045.3575%2064.4099%2045.4605%2064.4622C45.5641%2064.5177%2045.6529%2064.5841%2045.7268%2064.6616L45.3951%2065.0618C45.2677%2064.9468%2045.1234%2064.87%2044.9625%2064.8313C44.8021%2064.7958%2044.6439%2064.7918%2044.4879%2064.8193C44.2148%2064.8673%2044.0317%2064.9498%2043.9383%2065.0668C43.8423%2065.1875%2043.8097%2065.3357%2043.8406%2065.5112C43.8714%2065.6867%2043.9525%2065.8048%2044.0839%2065.8655C44.2157%2065.9294%2044.3711%2065.9457%2044.5498%2065.9142L44.8668%2065.8584L44.9543%2066.3558L44.6422%2066.4107C44.4829%2066.4387%2044.3707%2066.5053%2044.3054%2066.6107C44.2402%2066.716%2044.219%2066.8336%2044.2419%2066.9636C44.2505%2067.0124%2044.2694%2067.0627%2044.2986%2067.1145C44.3278%2067.1663%2044.3708%2067.2107%2044.4276%2067.2476C44.4843%2067.2846%2044.5575%2067.3102%2044.6472%2067.3246C44.7342%2067.3428%2044.8411%2067.3408%2044.9678%2067.3185C45.1043%2067.2944%2045.223%2067.2451%2045.3238%2067.1704C45.4213%2067.0963%2045.5084%2067.0005%2045.5849%2066.8832L46.0287%2067.1771C45.9087%2067.3523%2045.7695%2067.4941%2045.6109%2067.6024C45.4497%2067.7146%2045.2618%2067.7895%2045.0473%2067.8272C44.888%2067.8553%2044.7332%2067.8607%2044.5827%2067.8436C44.4328%2067.8298%2044.299%2067.793%2044.1813%2067.7333C44.0635%2067.6736%2043.9635%2067.5907%2043.8811%2067.4845C43.7994%2067.3816%2043.7453%2067.2554%2043.719%2067.1059C43.683%2066.9011%2043.6956%2066.7347%2043.7568%2066.6067C43.8148%2066.4792%2043.8966%2066.3726%2044.0022%2066.287C43.8317%2066.2701%2043.683%2066.2058%2043.5561%2066.0941C43.4292%2065.9824%2043.3469%2065.8192%2043.3091%2065.6047ZM38.1161%2066.0627C38.1101%2066.2706%2038.1749%2066.4243%2038.3107%2066.524C38.4464%2066.627%2038.6379%2066.6822%2038.8853%2066.6894C39.1394%2066.6968%2039.3404%2066.6514%2039.4886%2066.5534C39.6366%2066.4587%2039.7136%2066.309%2039.7196%2066.1045C39.7221%2066.0187%2039.7079%2065.9374%2039.6772%2065.8606C39.6464%2065.7838%2039.5989%2065.7147%2039.5346%2065.6534C39.467%2065.5953%2039.3842%2065.5466%2039.2863%2065.5075C39.1883%2065.4716%2039.0749%2065.4518%2038.9463%2065.448C38.6824%2065.4403%2038.4795%2065.4906%2038.3377%2065.5987C38.1958%2065.7101%2038.1219%2065.8648%2038.1161%2066.0627ZM37.5913%2066.0573C37.5968%2065.8693%2037.6363%2065.7037%2037.7098%2065.5606C37.7833%2065.4174%2037.8825%2065.2998%2038.0073%2065.2077C38.1322%2065.1156%2038.2778%2065.0472%2038.4442%2065.0025C38.6106%2064.9579%2038.7895%2064.9383%2038.9808%2064.9439C39.1622%2064.9492%2039.3314%2064.9789%2039.4883%2065.033C39.6451%2065.0904%2039.7813%2065.1769%2039.8968%2065.2925C40.009%2065.408%2040.0971%2065.5542%2040.1613%2065.7311C40.2222%2065.9078%2040.2491%2066.1183%2040.242%2066.3624C40.2376%2066.5142%2040.2181%2066.6721%2040.1836%2066.8362C40.1491%2067.0002%2040.0966%2067.1605%2040.026%2067.3169C39.9521%2067.4732%2039.8586%2067.6224%2039.7455%2067.7644C39.6291%2067.9063%2039.4901%2068.031%2039.3285%2068.1385C39.1668%2068.2461%2038.9795%2068.3314%2038.7663%2068.3945C38.5499%2068.4576%2038.3046%2068.49%2038.0305%2068.492L38.0448%2068.0021C38.4444%2067.9972%2038.7805%2067.9063%2039.0531%2067.7293C39.3224%2067.5523%2039.5185%2067.284%2039.6412%2066.9244C39.5164%2067.0165%2039.3857%2067.082%2039.2492%2067.1209C39.1093%2067.1631%2038.9337%2067.1811%2038.7226%2067.1749C38.5643%2067.1703%2038.4165%2067.1429%2038.2793%2067.0927C38.1387%2067.0457%2038.0169%2066.9761%2037.9139%2066.8839C37.811%2066.7918%2037.7301%2066.6772%2037.6714%2066.5401C37.6126%2066.403%2037.5859%2066.2421%2037.5913%2066.0573ZM32.327%2065.9829C32.2844%2066.1594%2032.2608%2066.3269%2032.2565%2066.4854C32.2481%2066.6463%2032.264%2066.7911%2032.3042%2066.9197C32.3413%2067.0475%2032.4049%2067.1562%2032.4953%2067.246C32.5824%2067.335%2032.6998%2067.3973%2032.8473%2067.433C32.9949%2067.4687%2033.1278%2067.4668%2033.2459%2067.4275C33.3633%2067.3914%2033.4693%2067.3253%2033.5638%2067.2293C33.6543%2067.1358%2033.7326%2067.0155%2033.7987%2066.8685C33.8641%2066.7247%2033.9181%2066.5646%2033.9607%2066.3882C34.0034%2066.2117%2034.0289%2066.043%2034.0373%2065.8821C34.0416%2065.7235%2034.0253%2065.5804%2033.9883%2065.4526C33.9481%2065.324%2033.8844%2065.2153%2033.7973%2065.1263C33.7069%2065.0365%2033.588%2064.9738%2033.4404%2064.9381C33.2928%2064.9024%2033.1604%2064.9027%2033.043%2064.9388C32.9248%2064.9781%2032.8205%2065.0446%2032.7299%2065.1381C32.6354%2065.2341%2032.5555%2065.354%2032.4902%2065.4978C32.4241%2065.6448%2032.3697%2065.8065%2032.327%2065.9829ZM31.8146%2065.8692C31.8767%2065.6126%2031.9626%2065.3838%2032.0723%2065.1828C32.1812%2064.9851%2032.3105%2064.8228%2032.46%2064.696C32.6095%2064.5691%2032.7781%2064.4826%2032.9659%2064.4363C33.1496%2064.3924%2033.3506%2064.3969%2033.5687%2064.4496C33.7868%2064.5024%2033.9692%2064.5906%2034.1159%2064.7144C34.2585%2064.8405%2034.3678%2064.9926%2034.4436%2065.1705C34.5154%2065.3509%2034.5546%2065.5539%2034.5612%2065.7796C34.5645%2066.0045%2034.5352%2066.2452%2034.4731%2066.5019C34.4118%2066.7553%2034.3267%2066.9809%2034.2178%2067.1786C34.1081%2067.3796%2033.9785%2067.5435%2033.8289%2067.6703C33.6794%2067.7972%2033.5124%2067.8841%2033.3279%2067.9312C33.1401%2067.9774%2032.9372%2067.9742%2032.719%2067.9215C32.5009%2067.8687%2032.3205%2067.7793%2032.1778%2067.6531C32.0312%2067.5293%2031.922%2067.3773%2031.8501%2067.1969C31.7743%2067.019%2031.7351%2066.816%2031.7325%2066.5879C31.726%2066.3622%2031.7534%2066.1227%2031.8146%2065.8692ZM27.1159%2065.1708C27.0856%2065.2367%2027.0708%2065.3044%2027.0716%2065.3738C27.0681%2065.4448%2027.0784%2065.5131%2027.1027%2065.5788C27.1241%2065.6431%2027.1592%2065.701%2027.2082%2065.7525C27.2527%2065.8057%2027.3095%2065.8481%2027.3785%2065.8798C27.4475%2065.9115%2027.5181%2065.9276%2027.5905%2065.9282C27.6585%2065.9304%2027.7254%2065.9193%2027.791%2065.895C27.8537%2065.8693%2027.9123%2065.8327%2027.9668%2065.7851C28.017%2065.7391%2028.0572%2065.6832%2028.0875%2065.6172C28.1192%2065.5482%2028.1368%2065.4782%2028.1404%2065.4072C28.141%2065.3349%2028.1306%2065.2665%2028.1093%2065.2022C28.085%2065.1366%2028.0505%2065.0772%2028.0059%2065.024C27.957%2064.9725%2027.898%2064.9308%2027.829%2064.8992C27.7601%2064.8675%2027.6916%2064.8505%2027.6236%2064.8483C27.5512%2064.8478%2027.4837%2064.8603%2027.421%2064.886C27.3554%2064.9103%2027.2968%2064.947%2027.2452%2064.9959C27.1907%2065.0435%2027.1476%2065.1018%2027.1159%2065.1708ZM26.711%2064.9848C26.7689%2064.8588%2026.8458%2064.7507%2026.9418%2064.6604C27.0364%2064.5731%2027.1427%2064.5076%2027.2609%2064.4638C27.3791%2064.42%2027.5025%2064.4004%2027.6311%2064.4051C27.7597%2064.4097%2027.887%2064.4409%2028.013%2064.4988C28.139%2064.5567%2028.2456%2064.6329%2028.3329%2064.7275C28.4202%2064.8221%2028.4857%2064.9285%2028.5295%2065.0466C28.5702%2065.1634%2028.5898%2065.2868%2028.5882%2065.4168C28.5822%2065.5485%2028.5503%2065.6773%2028.4924%2065.8032C28.4359%2065.9262%2028.3604%2066.0313%2028.2658%2066.1186C28.1682%2066.2045%2028.0625%2066.2685%2027.9487%2066.3107C27.8305%2066.3544%2027.7071%2066.374%2027.5785%2066.3694C27.4485%2066.3678%2027.3205%2066.338%2027.1945%2066.2802C27.0686%2066.2223%2026.9627%2066.1446%2026.8767%2066.047C26.7894%2065.9524%2026.7239%2065.846%2026.6801%2065.7278C26.635%2065.6127%2026.6147%2065.4908%2026.6193%2065.3621C26.624%2065.2335%2026.6545%2065.1077%2026.711%2064.9848ZM21.0589%2058.281L21.4547%2058.6622L19.9168%2061.9925L19.5104%2061.601L20.5217%2059.5094C20.5441%2059.4623%2020.57%2059.4093%2020.5992%2059.3504C20.6262%2059.2939%2020.6543%2059.2385%2020.6836%2059.1843C20.7106%2059.1278%2020.7376%2059.0759%2020.7648%2059.0287C20.7872%2058.9816%2020.8064%2058.9451%2020.8222%2058.9191C20.7969%2058.9359%2020.7623%2058.9576%2020.7184%2058.9841C20.6699%2059.0107%2020.6191%2059.0396%2020.566%2059.0709C20.5105%2059.1%2020.4539%2059.1302%2020.3961%2059.1616C20.3384%2059.1931%2020.2864%2059.2209%2020.2401%2059.2451L18.1984%2060.3371L17.7991%2059.9524L21.0589%2058.281ZM18.1215%2055.3391L15.3278%2057.3893L15.0202%2056.9702L17.814%2054.92L18.1215%2055.3391ZM15.9886%2052.3007L12.8819%2053.836L11.8927%2051.8344L12.3454%2051.6107L13.1043%2053.1463L13.8721%2052.7668L13.4312%2051.8748L13.8839%2051.6511L14.3248%2052.5431L15.3056%2052.0584L14.5138%2050.4562L14.9665%2050.2325L15.9886%2052.3007ZM13.0654%2044.7145L13.187%2045.225L11.1353%2046.2685C11.108%2046.2818%2011.0745%2046.2982%2011.0351%2046.3178C10.9925%2046.3381%2010.9514%2046.3581%2010.912%2046.3777C10.8693%2046.398%2010.8299%2046.4176%2010.7936%2046.4364C10.7566%2046.452%2010.7289%2046.4637%2010.7104%2046.4715C10.7304%2046.4701%2010.7609%2046.4697%2010.8017%2046.4701C10.8417%2046.4674%2010.8854%2046.4654%2010.9326%2046.4644C10.9766%2046.464%2011.0223%2046.4634%2011.0695%2046.4623C11.1136%2046.462%2011.1508%2046.4616%2011.1812%2046.4611L13.4887%2046.4915L13.608%2046.9924L10.4011%2048.4841L10.2795%2047.9736L12.3116%2047.062C12.3366%2047.0527%2012.3675%2047.0402%2012.4045%2047.0246C12.4407%2047.0058%2012.479%2046.9882%2012.5192%2046.9719C12.5586%2046.9523%2012.5984%2046.9343%2012.6386%2046.918C12.6756%2046.9024%2012.7082%2046.8895%2012.7363%2046.8794C12.7067%2046.8831%2012.6718%2046.8863%2012.6318%2046.8891C12.5909%2046.8886%2012.5485%2046.8885%2012.5045%2046.8889C12.4605%2046.8892%2012.4184%2046.8907%2012.3784%2046.8935C12.3375%2046.893%2012.3035%2046.8926%2012.2763%2046.8923L10.0144%2046.8612L9.91119%2046.4278L11.9619%2045.3591C12.0038%2045.3355%2012.0614%2045.3066%2012.1346%2045.2722C12.2078%2045.2377%2012.2738%2045.2085%2012.3325%2045.1843C12.2652%2045.1867%2012.1915%2045.1907%2012.1114%2045.1962C12.0281%2045.2025%2011.9648%2045.2074%2011.9215%2045.2109L9.64731%2045.3202L9.53029%2044.829L13.0654%2044.7145ZM10.5555%2035.995C10.6605%2036.0061%2010.7553%2036.036%2010.8397%2036.0847C10.9246%2036.1302%2010.9978%2036.191%2011.0594%2036.2672C11.1182%2036.3397%2011.1624%2036.424%2011.1921%2036.5201C11.2188%2036.6125%2011.2269%2036.7096%2011.2161%2036.8113C11.2051%2036.9164%2011.1768%2037.0113%2011.1314%2037.0961C11.0826%2037.1806%2011.0218%2037.2538%2010.9489%2037.3158C10.8731%2037.3742%2010.7888%2037.4184%2010.696%2037.4485C10.6036%2037.4752%2010.5049%2037.4831%2010.3998%2037.472C10.2981%2037.4613%2010.2032%2037.433%2010.1151%2037.3872C10.0273%2037.3382%209.95408%2037.2773%209.89535%2037.2048C9.83369%2037.1286%209.78784%2037.0441%209.75779%2036.9513C9.72775%2036.8586%209.71826%2036.7597%209.72933%2036.6546C9.74005%2036.5529%209.76978%2036.4598%209.8185%2036.3753C9.86758%2036.2876%209.93003%2036.2145%2010.0059%2036.1561C10.0788%2036.0941%2010.1631%2036.0499%2010.2588%2036.0235C10.3548%2035.9938%2010.4537%2035.9843%2010.5555%2035.995ZM13.7648%2029.7157L10.6128%2028.2756L10.8288%2027.8028L13.517%2029.031L14.235%2027.4595L14.6988%2027.6714L13.7648%2029.7157ZM15.9499%2022.181C15.7902%2022.064%2015.6332%2021.9796%2015.4788%2021.9278C15.3237%2021.8714%2015.1769%2021.8456%2015.0383%2021.8505C14.8971%2021.8534%2014.7674%2021.8852%2014.6492%2021.9459C14.5331%2022.0039%2014.434%2022.0888%2014.352%2022.2006C14.2701%2022.3124%2014.2189%2022.4325%2014.1986%2022.5608C14.1775%2022.6844%2014.1865%2022.8117%2014.2256%2022.9427C14.2646%2023.0736%2014.3344%2023.2045%2014.4349%2023.3354C14.5327%2023.4644%2014.6614%2023.5874%2014.8211%2023.7045C14.9809%2023.8215%2015.1383%2023.9082%2015.2933%2023.9646C15.4477%2024.0164%2015.5945%2024.0422%2015.7338%2024.0419C15.8724%2024.0371%2015.9998%2024.0057%2016.116%2023.9476C16.2341%2023.8869%2016.3342%2023.8007%2016.4161%2023.6889C16.4981%2023.5771%2016.5496%2023.4593%2016.5706%2023.3356C16.591%2023.2074%2016.5817%2023.0777%2016.5426%2022.9468C16.5055%2022.8132%2016.438%2022.6819%2016.3402%2022.553C16.2397%2022.4221%2016.1097%2022.2981%2015.9499%2022.181ZM16.2551%2021.7479C16.4734%2021.9079%2016.6502%2022.0825%2016.7856%2022.2718C16.9184%2022.4591%2017.0097%2022.6529%2017.0594%2022.853C17.1084%2023.0485%2017.1139%2023.2448%2017.0758%2023.442C17.0377%2023.6391%2016.9533%2023.8268%2016.8226%2024.0052C16.6938%2024.1809%2016.5425%2024.3175%2016.3687%2024.4152C16.1922%2024.5108%2016.0033%2024.5647%2015.8021%2024.5769C15.6009%2024.589%2015.391%2024.56%2015.1724%2024.4898C14.9531%2024.4149%2014.7343%2024.2975%2014.516%2024.1376C14.2977%2023.9776%2014.1222%2023.8039%2013.9894%2023.6166C13.854%2023.4273%2013.7618%2023.2349%2013.7127%2023.0394C13.663%2022.8393%2013.6572%2022.6407%2013.6953%2022.4435C13.7334%2022.2464%2013.8168%2022.06%2013.9456%2021.8843C14.0763%2021.706%2014.2299%2021.5689%2014.4064%2021.4733C14.5802%2021.3756%2014.7678%2021.3208%2014.969%2021.3086C15.1702%2021.2965%2015.3804%2021.3279%2015.5998%2021.4027C15.8184%2021.4729%2016.0368%2021.588%2016.2551%2021.7479ZM19.3021%2017.8311C19.2459%2017.797%2019.1829%2017.76%2019.1131%2017.7202C19.0432%2017.6804%2018.9734%2017.6407%2018.9035%2017.6009C18.8362%2017.559%2018.7732%2017.522%2018.7145%2017.49C18.6562%2017.4533%2018.6113%2017.4246%2018.58%2017.4038C18.5964%2017.4376%2018.6189%2017.4859%2018.6474%2017.5486C18.6738%2017.6089%2018.7033%2017.6752%2018.7358%2017.7475C18.7662%2017.8174%2018.7975%2017.8908%2018.8298%2017.9678C18.8645%2018.0427%2018.8938%2018.1113%2018.9177%2018.1737L19.2303%2018.9525L20.0354%2018.2488L19.3021%2017.8311ZM21.2217%2018.9213L20.4609%2018.4949L19.4173%2019.4071L19.742%2020.2148L19.3357%2020.57L17.9942%2017.1399L18.408%2016.7782L21.6391%2018.5564L21.2217%2018.9213ZM24.9375%2014.1721C24.8509%2014.0126%2024.7534%2013.8778%2024.6448%2013.7677C24.5347%2013.6547%2024.4116%2013.5732%2024.2755%2013.5231C24.1424%2013.4715%2023.9964%2013.455%2023.8375%2013.4736C23.6815%2013.4906%2023.5136%2013.5479%2023.3338%2013.6455L22.9596%2013.8486L24.1307%2016.0068L24.5049%2015.8037C24.6847%2015.7061%2024.8243%2015.5966%2024.9236%2015.4751C25.0258%2015.3521%2025.0915%2015.2206%2025.1208%2015.0808C25.153%2014.9395%2025.1525%2014.7933%2025.1194%2014.6423C25.0847%2014.4884%2025.0241%2014.3317%2024.9375%2014.1721ZM25.4031%2013.9195C25.5495%2014.1893%2025.634%2014.4419%2025.6567%2014.6774C25.6822%2014.9114%2025.6607%2015.1277%2025.592%2015.3264C25.5218%2015.5222%2025.4125%2015.698%2025.2641%2015.8536C25.1187%2016.0076%2024.9459%2016.1389%2024.7457%2016.2475L23.9146%2016.6985L22.2619%2013.6527L23.0929%2013.2017C23.296%2013.0915%2023.5032%2013.0167%2023.7145%2012.9771C23.9287%2012.9359%2024.1364%2012.9415%2024.3375%2012.9938C24.5371%2013.0433%2024.728%2013.1425%2024.9102%2013.2914C25.0924%2013.4404%2025.2567%2013.6497%2025.4031%2013.9195ZM34.3617%2011.6339C34.4181%2011.9858%2034.3486%2012.2711%2034.153%2012.4896C33.9569%2012.7049%2033.6568%2012.845%2033.2527%2012.9098C33.1322%2012.9291%2033.0095%2012.9354%2032.8847%2012.9287C32.76%2012.922%2032.6383%2012.9031%2032.5197%2012.872C32.4043%2012.8403%2032.2955%2012.7976%2032.1933%2012.7438C32.0905%2012.6868%2032.0028%2012.619%2031.93%2012.5404L32.2677%2012.1453C32.3934%2012.2621%2032.5365%2012.3411%2032.6968%2012.3823C32.8566%2012.4201%2033.0148%2012.4265%2033.1712%2012.4014C33.4449%2012.3575%2033.6293%2012.2778%2033.7244%2012.1623C33.8223%2012.043%2033.8571%2011.8953%2033.8289%2011.7194C33.8007%2011.5434%2033.7214%2011.4241%2033.591%2011.3614C33.4601%2011.2955%2033.305%2011.2769%2033.1258%2011.3057L32.8081%2011.3567L32.7281%2010.8581L33.0409%2010.8079C33.2006%2010.7823%2033.3138%2010.7173%2033.3807%2010.613C33.4475%2010.5087%2033.4705%2010.3914%2033.4496%2010.261C33.4417%2010.2122%2033.4236%2010.1616%2033.3951%2010.1093C33.3667%2010.0571%2033.3244%2010.012%2033.2682%209.97426C33.212%209.93648%2033.1392%209.90972%2033.0497%209.89398C32.963%209.87446%2032.8562%209.8749%2032.7291%209.89528C32.5922%209.91724%2032.4728%209.9648%2032.3709%2010.038C32.2723%2010.1106%2032.1838%2010.205%2032.1055%2010.3212L31.6662%2010.0206C31.7888%209.84723%2031.9302%209.70756%2032.0903%209.60165C32.2532%209.49196%2032.4422%209.41986%2032.6573%209.38536C32.817%209.35975%2032.9719%209.35662%2033.1221%209.37599C33.2717%209.39209%2033.405%209.43088%2033.5218%209.49236C33.6386%209.55385%2033.7374%209.63828%2033.8181%209.74566C33.8983%209.84978%2033.9505%209.97679%2033.9745%2010.1267C34.0074%2010.332%2033.9923%2010.4982%2033.9291%2010.6253C33.8692%2010.7519%2033.7858%2010.8572%2033.679%2010.9412C33.8492%2010.9607%2033.997%2011.0272%2034.1221%2011.1409C34.2473%2011.2545%2034.3272%2011.4188%2034.3617%2011.6339ZM39.5621%2011.2542C39.5713%2011.0465%2039.5088%2010.8918%2039.3745%2010.79C39.2404%2010.685%2039.0497%2010.627%2038.8024%2010.616C38.5486%2010.6048%2038.3468%2010.6471%2038.1972%2010.7429C38.0478%2010.8353%2037.9685%2010.9838%2037.9595%2011.1882C37.9557%2011.2739%2037.9686%2011.3555%2037.9982%2011.4327C38.0278%2011.51%2038.0743%2011.5798%2038.1376%2011.6421C38.2044%2011.7012%2038.2864%2011.7511%2038.3837%2011.7917C38.4812%2011.8291%2038.5942%2011.8506%2038.7228%2011.8563C38.9865%2011.868%2039.1901%2011.8208%2039.3336%2011.7148C39.4772%2011.6056%2039.5533%2011.452%2039.5621%2011.2542ZM40.0868%2011.2675C40.0785%2011.4555%2040.0365%2011.6204%2039.9608%2011.7624C39.8851%2011.9044%2039.7842%2012.0206%2039.658%2012.1108C39.5318%2012.201%2039.3851%2012.2672%2039.2181%2012.3093C39.051%2012.3515%2038.8719%2012.3683%2038.6807%2012.3599C38.4993%2012.3518%2038.3306%2012.3196%2038.1745%2012.2631C38.0186%2012.2034%2037.8838%2012.1148%2037.77%2011.9975C37.6596%2011.8803%2037.5736%2011.7327%2037.5121%2011.5549C37.4539%2011.3773%2037.4302%2011.1664%2037.441%2010.9225C37.4477%2010.7708%2037.4696%2010.6132%2037.5066%2010.4496C37.5435%2010.2861%2037.5985%2010.1267%2037.6714%209.97132C37.7477%209.81613%2037.8434%209.6684%2037.9586%209.52815C38.0772%209.38803%2038.218%209.26543%2038.3813%209.16034C38.5445%209.05524%2038.7331%208.97274%2038.9472%208.91284C39.1646%208.85309%2039.4103%208.82432%2039.6844%208.82655L39.6627%209.31617C39.2631%209.31499%2038.9256%209.40081%2038.6504%209.57363C38.3784%209.74659%2038.1784%2010.0119%2038.0502%2010.3697C38.1765%2010.2794%2038.3081%2010.2159%2038.4452%2010.179C38.5857%2010.139%2038.7615%2010.1236%2038.9725%2010.133C39.1307%2010.14%2039.2781%2010.1696%2039.4145%2010.2219C39.5544%2010.2711%2039.6751%2010.3425%2039.7767%2010.4362C39.8783%2010.5299%2039.9574%2010.6457%2040.014%2010.7836C40.0707%2010.9216%2040.0949%2011.0829%2040.0868%2011.2675ZM45.3511%2011.4213C45.3964%2011.2455%2045.4225%2011.0784%2045.4292%2010.92C45.44%2010.7592%2045.4262%2010.6142%2045.388%2010.485C45.3529%2010.3567%2045.2908%2010.247%2045.2019%2010.1559C45.1161%2010.0656%2044.9997%2010.0015%2044.8527%209.9636C44.7057%209.9257%2044.5728%209.92553%2044.454%209.96309C44.3361%209.99745%2044.2292%2010.0619%2044.1332%2010.1565C44.0413%2010.2486%2043.9612%2010.3677%2043.8929%2010.5137C43.8254%2010.6565%2043.769%2010.8158%2043.7237%2010.9916C43.6784%2011.1673%2043.6503%2011.3356%2043.6396%2011.4964C43.6328%2011.6549%2043.647%2011.7983%2043.682%2011.9266C43.7203%2012.0558%2043.7824%2012.1655%2043.8682%2012.2558C43.9571%2012.3469%2044.0751%2012.4114%2044.2221%2012.4493C44.3692%2012.4871%2044.5016%2012.4889%2044.6195%2012.4546C44.7383%2012.417%2044.8436%2012.3521%2044.9355%2012.2599C45.0315%2012.1654%2045.1132%2012.0467%2045.1807%2011.9039C45.249%2011.7579%2045.3058%2011.5971%2045.3511%2011.4213ZM45.8617%2011.5427C45.7958%2011.7984%2045.7065%2012.0258%2045.5938%2012.2251C45.4819%2012.4212%2045.3502%2012.5816%2045.1988%2012.7061C45.0474%2012.8307%2044.8775%2012.9147%2044.6891%2012.9582C44.5047%2012.9992%2044.3038%2012.9918%2044.0865%2012.9357C43.8692%2012.8797%2043.6882%2012.7888%2043.5434%2012.6628C43.4026%2012.5345%2043.2957%2012.3808%2043.2226%2012.2018C43.1534%2012.0204%2043.1173%2011.8168%2043.1142%2011.5911C43.1142%2011.3661%2043.1472%2011.1258%2043.2131%2010.8702C43.2782%2010.6177%2043.3667%2010.3934%2043.4785%2010.1973C43.5913%209.99801%2043.7233%209.83608%2043.8747%209.71151C44.0261%209.58694%2044.1944%209.50252%2044.3797%209.45825C44.5681%209.4148%2044.771%209.42108%2044.9883%209.4771C45.2056%209.53312%2045.3846%209.62528%2045.5254%209.75359C45.6702%209.87952%2045.7771%2010.0332%2045.8462%2010.2146C45.9193%2010.3936%2045.9555%2010.5972%2045.9546%2010.8253C45.9578%2011.0511%2045.9268%2011.2902%2045.8617%2011.5427ZM50.5577%2012.3223C50.5892%2012.2569%2050.6052%2012.1895%2050.6057%2012.1201C50.6106%2012.0492%2050.6015%2011.9807%2050.5785%2011.9146C50.5584%2011.8499%2050.5243%2011.7913%2050.4763%2011.7389C50.4328%2011.6849%2050.3768%2011.6414%2050.3084%2011.6084C50.24%2011.5755%2050.1697%2011.558%2050.0973%2011.5561C50.0294%2011.5526%2049.9624%2011.5624%2049.8963%2011.5855C49.8331%2011.61%2049.7739%2011.6455%2049.7184%2011.6921C49.6674%2011.7371%2049.6261%2011.7923%2049.5946%2011.8577C49.5616%2011.9261%2049.5427%2011.9957%2049.5378%2012.0666C49.5358%2012.139%2049.5449%2012.2075%2049.565%2012.2722C49.5881%2012.3383%2049.6214%2012.3983%2049.665%2012.4523C49.713%2012.5048%2049.7712%2012.5475%2049.8395%2012.5805C49.9079%2012.6134%2049.9761%2012.6317%2050.044%2012.6351C50.1164%2012.637%2050.1841%2012.6258%2050.2472%2012.6012C50.3133%2012.5782%2050.3726%2012.5426%2050.4251%2012.4946C50.4805%2012.4481%2050.5247%2012.3906%2050.5577%2012.3223ZM50.959%2012.5158C50.8988%2012.6407%2050.8198%2012.7474%2050.7222%2012.8358C50.626%2012.9213%2050.5184%2012.9849%2050.3994%2013.0264C50.2804%2013.068%2050.1567%2013.0852%2050.0282%2013.0782C49.8997%2013.0712%2049.773%2013.0375%2049.6481%2012.9773C49.5233%2012.9171%2049.4181%2012.8389%2049.3326%2012.7427C49.2471%2012.6465%2049.1836%2012.5389%2049.142%2012.4199C49.1034%2012.3023%2049.0862%2012.1786%2049.0902%2012.0486C49.0987%2011.9172%2049.133%2011.789%2049.1933%2011.6641C49.2521%2011.5423%2049.3296%2011.4386%2049.4258%2011.3531C49.5249%2011.269%2049.6318%2011.207%2049.7464%2011.1669C49.8654%2011.1254%2049.9891%2011.1081%2050.1176%2011.1152C50.2476%2011.1192%2050.375%2011.1514%2050.4998%2011.2116C50.6247%2011.2718%2050.7291%2011.3515%2050.8132%2011.4507C50.8987%2011.5469%2050.9622%2011.6545%2051.0038%2011.7735C51.0468%2011.8895%2051.0647%2012.0117%2051.0577%2012.1402C51.0507%2012.2688%2051.0178%2012.394%2050.959%2012.5158ZM56.4961%2019.3123L56.1061%2018.9252L57.6939%2015.6184L58.0944%2016.016L57.0517%2018.0921C57.0286%2018.1389%2057.0019%2018.1915%2056.9718%2018.25C56.944%2018.3061%2056.915%2018.361%2056.8849%2018.4148C56.8571%2018.4709%2056.8293%2018.5223%2056.8014%2018.5691C56.7783%2018.6159%2056.7586%2018.6521%2056.7423%2018.6779C56.7679%2018.6614%2056.8029%2018.6403%2056.8471%2018.6145C56.896%2018.5886%2056.9473%2018.5604%2057.0008%2018.5299C57.0567%2018.5017%2057.1138%2018.4723%2057.172%2018.4418C57.2303%2018.4112%2057.2827%2018.3842%2057.3293%2018.3607L59.3872%2017.2996L59.7807%2017.6902L56.4961%2019.3123ZM59.3871%2022.2996L62.2211%2020.3055L62.5202%2020.7306L59.6862%2022.7247L59.3871%2022.2996ZM61.4608%2025.3785L64.59%2023.8895L65.5493%2025.9055L65.0934%2026.1225L64.3574%2024.5758L63.584%2024.9438L64.0116%2025.8423L63.5556%2026.0593L63.1281%2025.1608L62.1402%2025.6309L62.9081%2027.2446L62.4521%2027.4616L61.4608%2025.3785ZM64.2671%2033.0066L64.1536%2032.4942L66.2216%2031.4834C66.2491%2031.4706%2066.2828%2031.4547%2066.3226%2031.4357C66.3655%2031.4161%2066.4069%2031.3968%2066.4466%2031.3778C66.4896%2031.3582%2066.5293%2031.3392%2066.5659%2031.321C66.6031%2031.306%2066.631%2031.2947%2066.6497%2031.2872C66.6296%2031.2883%2066.5992%2031.2883%2066.5584%2031.2872C66.5183%2031.2893%2066.4746%2031.2905%2066.4274%2031.2908C66.3833%2031.2904%2066.3377%2031.2904%2066.2904%2031.2907C66.2464%2031.2903%2066.2092%2031.2901%2066.1787%2031.2901L63.872%2031.2231L63.7607%2030.7204L66.9909%2029.2798L67.1044%2029.7921L65.058%2030.6713C65.0329%2030.6803%2065.0018%2030.6922%2064.9645%2030.7072C64.928%2030.7255%2064.8895%2030.7424%2064.8491%2030.7582C64.8093%2030.7771%2064.7692%2030.7944%2064.7287%2030.8102C64.6915%2030.8252%2064.6587%2030.8375%2064.6305%2030.8472C64.6602%2030.844%2064.6951%2030.8413%2064.7352%2030.8392C64.776%2030.8403%2064.8184%2030.841%2064.8624%2030.8414C64.9065%2030.8418%2064.9485%2030.8409%2064.9886%2030.8388C65.0294%2030.8399%2065.0634%2030.8408%2065.0906%2030.8416L67.3517%2030.9086L67.4481%2031.3436L65.3806%2032.3796C65.3384%2032.4025%2065.2804%2032.4305%2065.2066%2032.4638C65.1328%2032.497%2065.0664%2032.5253%2065.0073%2032.5485C65.0746%2032.5471%2065.1484%2032.5443%2065.2286%2032.54C65.312%2032.5351%2065.3753%2032.5312%2065.4187%2032.5284L67.6943%2032.4553L67.8035%2032.9483L64.2671%2033.0066ZM66.6349%2041.7727C66.5302%2041.7592%2066.4362%2041.7272%2066.3528%2041.6765C66.2691%2041.6292%2066.1972%2041.5667%2066.1373%2041.4891C66.0803%2041.4153%2066.038%2041.33%2066.0105%2041.2333C65.9858%2041.1403%2065.98%2041.043%2065.993%2040.9415C66.0065%2040.8368%2066.0369%2040.7425%2066.0843%2040.6588C66.1349%2040.5754%2066.1974%2040.5036%2066.2717%2040.4433C66.3488%2040.3866%2066.4341%2040.3443%2066.5275%2040.3164C66.6205%2040.2918%2066.7194%2040.2862%2066.8242%2040.2996C66.9256%2040.3127%2067.0199%2040.3431%2067.1069%2040.3908C67.1935%2040.4419%2067.2654%2040.5044%2067.3224%2040.5782C67.3823%2040.6558%2067.4263%2040.7413%2067.4542%2040.8347C67.4821%2040.9282%2067.4894%2041.0273%2067.4759%2041.132C67.4629%2041.2335%2067.431%2041.3259%2067.3804%2041.4092C67.3293%2041.4958%2067.2652%2041.5675%2067.1881%2041.6241C67.1138%2041.6844%2067.0285%2041.7267%2066.9322%2041.751C66.8355%2041.7785%2066.7364%2041.7857%2066.6349%2041.7727Z'%20fill='white'/%3e%3crect%20x='18.6079'%20y='18.6716'%20width='39.505'%20height='39.505'%20rx='19.7525'%20stroke='white'%20stroke-opacity='0.1'%20stroke-width='0.49505'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.085%2032.379C33.0851%2031.5988%2033.9392%2031.1196%2034.6055%2031.5255L45.1846%2037.9718C45.8238%2038.3615%2045.8237%2039.29%2045.1846%2039.6798L34.6055%2046.1271C33.9392%2046.5327%2033.085%2046.0528%2033.085%2045.2726V32.379Z'%20fill='white'/%3e%3c/svg%3e"},cursor:{default:"data:image/svg+xml,%3csvg%20width='108'%20height='68'%20viewBox='0%200%20108%2068'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_d_73_2787)'%3e%3crect%20x='12'%20y='2'%20width='84'%20height='44'%20rx='22'%20fill='white'%20shape-rendering='crispEdges'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M39.7657%2017.2278C40.0781%2017.5315%2040.0781%2018.024%2039.7657%2018.3277L33.9314%2024L39.7657%2029.6723C40.0781%2029.976%2040.0781%2030.4685%2039.7657%2030.7722C39.4533%2031.0759%2038.9467%2031.0759%2038.6343%2030.7722L32.2343%2024.55C31.9219%2024.2462%2031.9219%2023.7538%2032.2343%2023.45L38.6343%2017.2278C38.9467%2016.9241%2039.4533%2016.9241%2039.7657%2017.2278Z'%20fill='%230F0F0F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M68.2343%2017.2278C68.5467%2016.9241%2069.0533%2016.9241%2069.3657%2017.2278L75.7657%2023.45C76.0781%2023.7538%2076.0781%2024.2462%2075.7657%2024.55L69.3657%2030.7722C69.0533%2031.0759%2068.5467%2031.0759%2068.2343%2030.7722C67.9219%2030.4685%2067.9219%2029.976%2068.2343%2029.6723L74.0686%2024L68.2343%2018.3277C67.9219%2018.024%2067.9219%2017.5315%2068.2343%2017.2278Z'%20fill='%230F0F0F'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_73_2787'%20x='0'%20y='0'%20width='108'%20height='68'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='10'/%3e%3cfeGaussianBlur%20stdDeviation='6'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.227451%200%200%200%200%200.227451%200%200%200%200%200.227451%200%200%200%200.08%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_73_2787'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_73_2787'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",leftSpin:"data:image/svg+xml,%3csvg%20width='84'%20height='44'%20viewBox='0%200%2084%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='84'%20height='44'%20rx='22'%20fill='white'/%3e%3cpath%20d='M0%2022C0%209.84974%209.84974%200%2022%200H42V44H22C9.84974%2044%200%2034.1503%200%2022Z'%20fill='%23F5F5F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.7657%2015.2278C28.0781%2015.5315%2028.0781%2016.024%2027.7657%2016.3277L21.9314%2022L27.7657%2027.6723C28.0781%2027.976%2028.0781%2028.4685%2027.7657%2028.7722C27.4533%2029.0759%2026.9467%2029.0759%2026.6343%2028.7722L20.2343%2022.55C19.9219%2022.2462%2019.9219%2021.7538%2020.2343%2021.45L26.6343%2015.2278C26.9467%2014.9241%2027.4533%2014.9241%2027.7657%2015.2278Z'%20fill='%230F0F0F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.2343%2015.2278C56.5467%2014.9241%2057.0533%2014.9241%2057.3657%2015.2278L63.7657%2021.45C64.0781%2021.7538%2064.0781%2022.2462%2063.7657%2022.55L57.3657%2028.7722C57.0533%2029.0759%2056.5467%2029.0759%2056.2343%2028.7722C55.9219%2028.4685%2055.9219%2027.976%2056.2343%2027.6723L62.0686%2022L56.2343%2016.3277C55.9219%2016.024%2055.9219%2015.5315%2056.2343%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/svg%3e",rightSpin:"data:image/svg+xml,%3csvg%20width='84'%20height='44'%20viewBox='0%200%2084%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='84'%20height='44'%20rx='22'%20fill='white'/%3e%3cg%20opacity='0.5'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.7657%2015.2278C28.0781%2015.5315%2028.0781%2016.024%2027.7657%2016.3277L21.9314%2022L27.7657%2027.6723C28.0781%2027.976%2028.0781%2028.4685%2027.7657%2028.7722C27.4533%2029.0759%2026.9467%2029.0759%2026.6343%2028.7722L20.2343%2022.55C19.9219%2022.2462%2019.9219%2021.7538%2020.2343%2021.45L26.6343%2015.2278C26.9467%2014.9241%2027.4533%2014.9241%2027.7657%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/g%3e%3cpath%20d='M42%200H62C74.1503%200%2084%209.84974%2084%2022C84%2034.1503%2074.1503%2044%2062%2044H42V0Z'%20fill='%23F5F5F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.2343%2015.2278C56.5467%2014.9241%2057.0533%2014.9241%2057.3657%2015.2278L63.7657%2021.45C64.0781%2021.7538%2064.0781%2022.2462%2063.7657%2022.55L57.3657%2028.7722C57.0533%2029.0759%2056.5467%2029.0759%2056.2343%2028.7722C55.9219%2028.4685%2055.9219%2027.976%2056.2343%2027.6723L62.0686%2022L56.2343%2016.3277C55.9219%2016.024%2055.9219%2015.5315%2056.2343%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/svg%3e"}}},Jt=e=>{if(e)return Ka[e]},co=({className:e})=>c(qe,{className:e,customizationKey:"UI_360_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"})})}),Ja=750,Qa=1250,ei=360,ti=480,ni=(e,t)=>({cursor:`url("${e}"), ${t}`}),ri=({images:e,onlyPreload:t})=>{const{demoSpin:n,reverse360:o,spinCursor:s,themeConfig:i}=Je(),{isShowingDetails:u,isZooming:r}=Qe(),g=ze(()=>Jt(i),[i]),m=r||u,L=Ce(null),f=Ce(null),[p,a]=xe(!1),[b,k]=xe("default"),M=s==="grab"&&p?"grabbing":s,_=g?.cursor?ni(g.cursor[b==="left"?"leftSpin":b==="right"?"rightSpin":"default"],M):{cursor:M},x=Ce(0),E=Ce(null),v=Ce(null),I=Ce(null),N=Ce(null),K=Ce(0),T=16,F=Ce({timestamps:new Float64Array(10),values:new Float64Array(10),index:0,count:0}),Y=Ce(n),P=Ce(null),G=B(()=>{P.current&&(clearTimeout(P.current),P.current=null)},[]),R=Ce(null),$=()=>{R.current&&(cancelAnimationFrame(R.current),R.current=null)},[he,Z]=xe(0);pe(()=>{x.current=he},[he]);const D=e.length,j=B(O=>{if(x.current===O)return;const ae=E.current;ae&&(ae.src=e[O].src),x.current=O},[e]),z=B(()=>{const O=(x.current+1)%D;j(O)},[D,j]),V=B(()=>{const O=(x.current-1+D)%D;j(O)},[D,j]),ie=B(()=>{Z(x.current)},[]);return pe(()=>{if(m){G();return}const O=L.current,ne=f.current;if(!O||!ne)return;Y.current&&(Y.current=!1,P.current=setTimeout(()=>{const se=Date.now(),ge=()=>{const ve=()=>{const We=(Date.now()-se)/Qa,Oe=Math.round((Te=>Te*(2-Te))(We)*D),De=ot(Oe%D,0,D-1);Z(De),!(Oe>=D)&&ge()};R.current=requestAnimationFrame(ve)};ge()},Ja));const ae=ei/D;let oe=null;const S=F.current,be=()=>{S.index=0,S.count=0},q=(se,ge)=>{const ve=S.index;S.timestamps[ve]=se,S.values[ve]=ge,S.index=(ve+1)%10,S.count<10&&S.count++},Ae=()=>{const se=(()=>{const Oe=Date.now(),{timestamps:De,values:Te,index:Se,count:Ve}=S;if(Ve<2)return 0;let Pe=-1,Be=-1;for(let Ne=0;Ne<Ve;Ne++){const H=(Se-1-Ne+10)%10;Oe-De[H]<50&&(Be===-1&&(Be=H),Pe=H)}if(Pe===-1||Be===-1||Pe===Be)return 0;const Ze=De[Be]-De[Pe];return Ze<=0?0:(Te[Be]-Te[Pe])/(Ze/1e3)})(),ge=Date.now();let ve=0,Ue=ge,We=ge;const ke=()=>{const Oe=()=>{const De=Date.now(),Te=(De-ge)/1e3,Se=Math.pow(.05,Te),Ve=se*Se,Pe=(De-Ue)/1e3;if(ve+=Ve*Pe,Math.abs(Ve)<5*ae&&Math.abs(ve)<ae){R.current=null,ie();return}const Be=De-We;Math.abs(ve)>=ae&&Be>=T&&(ve>0!==o?z():V(),ve=0,We=De),Ue=De,ke()};R.current=requestAnimationFrame(Oe)};ke()},Ke=()=>{G(),$()};a(!1);const je=se=>{if(se.button!==0)return;se.preventDefault(),se.stopPropagation(),Ke(),a(!0),k("default");const ge=se.clientX;oe=ge,be(),q(Date.now(),ge)},we=se=>{if(oe===null)return;se.stopPropagation();const{clientX:ge}=se;q(Date.now(),ge);const ve=ge-oe;ve!==0&&g?.cursor&&k(ve<0?"left":"right"),!(Math.abs(ve)<ae)&&(ve>0!==o?z():V(),oe=ge)},h=()=>{oe!==null&&(oe=null,a(!1),k("default"),Ae())};O.addEventListener("mousedown",je),document.addEventListener("mousemove",we),document.addEventListener("mouseleave",h),document.addEventListener("mouseup",h),document.addEventListener("contextmenu",h);const w=ti/D,Q=()=>ne.getBoundingClientRect().width,re=()=>ne.scrollWidth/2-Q()/2,ee=()=>{const se=re();ne.scrollLeft=se};ee();const C=()=>{const se=ne.scrollLeft-re();Math.abs(se)<w||(se<0!==o?z():V(),ee())};ne.addEventListener("scroll",C);let J=null;const te=()=>{v.current=null;const se=performance.now();if(se-K.current<T){v.current=requestAnimationFrame(te);return}K.current=se;const ge=I.current,ve=N.current;if(ge===null||ve===null)return;const Ue=ge-ve;Ue!==0&&g?.cursor&&k(Ue<0?"left":"right"),!(Math.abs(Ue)<ae)&&(Ue>0!==o?z():V(),N.current=ge,oe=ge)},_e=se=>{if(J!==null||se.changedTouches.length!==1)return;Ke(),a(!0),k("default"),v.current!==null&&(cancelAnimationFrame(v.current),v.current=null);const ge=se.changedTouches[0];J=ge.identifier;const ve=ge.clientX;oe=ve,N.current=ve,I.current=ve,be(),q(Date.now(),ve)},ue=se=>{if(oe===null)return;let ge=null;for(let Ue=0;Ue<se.changedTouches.length;Ue++)if(se.changedTouches[Ue].identifier===J){ge=se.changedTouches[Ue];break}if(!ge)return;se.preventDefault();const ve=ge.clientX;q(Date.now(),ve),I.current=ve,v.current===null&&(v.current=requestAnimationFrame(te))},Xe=se=>{if(oe===null)return;let ge=!1;for(let ve=0;ve<se.changedTouches.length;ve++)if(se.changedTouches[ve].identifier===J){ge=!0;break}ge&&(v.current!==null&&(cancelAnimationFrame(v.current),v.current=null),J=null,oe=null,N.current=null,I.current=null,a(!1),k("default"),Ae())};return ne.addEventListener("touchstart",_e,{passive:!1}),ne.addEventListener("touchmove",ue,{passive:!1}),ne.addEventListener("touchend",Xe),ne.addEventListener("touchcancel",Xe),()=>{$(),a(!1),v.current!==null&&(cancelAnimationFrame(v.current),v.current=null),O.removeEventListener("mousedown",je),document.removeEventListener("mousemove",we),document.removeEventListener("mouseleave",h),document.removeEventListener("mouseup",h),document.removeEventListener("contextmenu",h),ne.removeEventListener("scroll",C),ne.removeEventListener("touchstart",_e),ne.removeEventListener("touchmove",ue),ne.removeEventListener("touchend",Xe),ne.removeEventListener("touchcancel",Xe)}},[G,z,V,ie,m,o,g,D]),c("div",{ref:L,style:_,children:c("div",{ref:f,className:" overflow-x-scroll",children:[c("div",{className:"sticky left-0 top-0",children:c("img",{ref:E,src:e[he].src,className:"pointer-events-none size-full object-cover",alt:""})}),c("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},oi=({itemIndex:e,images:t,onPlaceholderImageLoaded:n,onSpinImagesLoaded:o,onError:s})=>{const{autoLoad360:i,emitAnalyticsEvent:u,themeConfig:r}=Je(),{displayedCategoryId:g,displayedCategoryName:m}=Qe(),L=ze(()=>Jt(r),[r]),f=ze(()=>t.map(({src:x})=>x),[t]),[p,a]=xe(null),b=p?[...p.values()].filter(x=>x).length/t.length*100:null,k=B(x=>{b===null&&(a(new Map(f.map(E=>[E,!1]))),u({type:"interaction",current:{category_id:g,category_name:m,item_type:"next360",item_position:e},action:{name:"Next 360 Play",field:"next360_play",value:x}}))},[b,f,u,g,m,e]),M=B(()=>{k("click")},[k]),_=B(x=>{a(E=>{const v=new Map(E);return v.set(x,!0),v})},[]);return pe(()=>{i&&k("auto")},[i,k]),pe(()=>{b===100&&o()},[b,o]),c("div",{className:"relative aspect-[4/3] w-full",children:[b!==null&&b!==100&&c("div",{className:"hidden",children:f.map(x=>c(st,{src:x,onLoad:()=>_(x),onError:s},x))}),c(st,{className:"size-full",src:f[0],onLoad:n}),c("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[c(In,{className:"size-20"}),c(rt,{"aria-label":"Play 360 view",className:L?.playButton?"size-[78px] border-0 bg-transparent p-0 shadow-none hover:bg-transparent":void 0,color:"neutral",shape:"icon",onClick:M,children:L?.playButton?c("img",{className:"size-full",src:L.playButton.default,alt:""}):c(co,{className:"size-full"})}),c("div",{className:de("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",b===null&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${b??0}%`}})})]})]})},ai=e=>{const{itemIndex:t}=e,{setItemInteraction:n}=Qe(),[o,s]=xe(null);return pe(()=>{o===null||o==="error"||n(t,o==="spin"?"running":"ready")},[t,n,o]),o==="error"?c(qt,{className:"text-background",text:"Spin could not be loaded"}):o!=="spin"?c(oi,{...e,onPlaceholderImageLoaded:()=>s(i=>i===null?"placeholder":i),onSpinImagesLoaded:()=>s("spin"),onError:()=>s("error")}):c(ri,{...e})},ii=750,si=1250,li=360,ci=480,ui=(e,t)=>({cursor:`url("${e}"), ${t}`}),di=({images:e,onlyPreload:t})=>{const{demoSpin:n,reverse360:o,spinCursor:s,themeConfig:i}=Je(),{isShowingDetails:u,isZooming:r}=Qe(),g=ze(()=>Jt(i),[i]),m=r||u,L=Ce(null),f=Ce(null),[p,a]=xe(!1),[b,k]=xe("default"),M=s==="grab"&&p?"grabbing":s,_=g?.cursor?ui(g.cursor[b==="left"?"leftSpin":b==="right"?"rightSpin":"default"],M):{cursor:M},x=Ce(n),E=Ce(null),v=B(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),I=Ce(null),N=()=>{I.current&&(cancelAnimationFrame(I.current),I.current=null)},[K,T]=xe(0),F=e.length,Y=B(()=>{T(G=>(G-1+F)%F)},[F]),P=B(()=>{T(G=>(G+1)%F)},[F]);return pe(()=>{if(m){v();return}const G=L.current,R=f.current;if(!G||!R)return;x.current&&(x.current=!1,E.current=setTimeout(()=>{const we=Date.now(),h=()=>{const w=()=>{const re=(Date.now()-we)/si,C=Math.round((te=>te*(2-te))(re)*F),J=ot(C%F,0,F-1);T(J),!(C>=F)&&h()};I.current=requestAnimationFrame(w)};h()},ii));const $=li/F;let he=null,Z=[];const D=we=>{Z.push(we),Z.length>20&&Z.shift()},j=()=>{const we=(()=>{const ee=Date.now(),C=Z.filter(_e=>ee-_e.timestamp<50);if(C.length<2)return 0;const J=C[0],te=C[C.length-1];return(te.value-J.value)/(.001*Math.max(te.timestamp-J.timestamp,1))})(),h=Date.now();let w=0,Q=h;const re=()=>{const ee=()=>{const C=Date.now(),J=(C-h)/1e3,te=Math.pow(.05,J),_e=we*te,ue=(C-Q)/1e3;if(w+=_e*ue,Math.abs(_e)<5*$&&Math.abs(w)<$){I.current=null;return}Math.abs(w)>=$&&(w>0!==o?P():Y(),w=0),Q=C,re()};I.current=requestAnimationFrame(ee)};re()},z=()=>{v(),N()};a(!1);const V=we=>{if(we.button!==0)return;we.preventDefault(),we.stopPropagation(),z(),a(!0),k("default");const h=we.clientX;he=h,Z=[{timestamp:Date.now(),value:h}]},ie=we=>{if(he===null)return;we.stopPropagation();const{clientX:h}=we;D({timestamp:Date.now(),value:h});const w=h-he;w!==0&&g?.cursor&&k(w<0?"left":"right"),!(Math.abs(w)<$)&&(w>0!==o?P():Y(),he=h)},O=()=>{he!==null&&(he=null,a(!1),k("default"),j())};G.addEventListener("mousedown",V),document.addEventListener("mousemove",ie),document.addEventListener("mouseleave",O),document.addEventListener("mouseup",O),document.addEventListener("contextmenu",O);const ne=ci/F,ae=()=>R.getBoundingClientRect().width,oe=()=>R.scrollWidth/2-ae()/2,S=()=>{const we=oe();R.scrollLeft=we};S();const be=()=>{const we=R.scrollLeft-oe();Math.abs(we)<ne||(we<0!==o?P():Y(),S())};R.addEventListener("scroll",be);let q=null;const Ae=we=>{if(q!==null||we.changedTouches.length!==1)return;z(),a(!0),k("default");const{identifier:h,clientX:w}=we.changedTouches[0];q=h,he=w,Z=[{timestamp:Date.now(),value:w}]},Ke=we=>{if(!he)return;const h=Array.from(we.changedTouches).find(({identifier:re})=>re===q);if(!h)return;we.preventDefault();const{clientX:w}=h;D({timestamp:Date.now(),value:w});const Q=w-he;Q!==0&&g?.cursor&&k(Q<0?"left":"right"),!(Math.abs(Q)<$)&&(Q>0!==o?P():Y(),he=w)},je=we=>{!he||!Array.from(we.changedTouches).some(({identifier:w})=>w===q)||(q=null,he=null,a(!1),k("default"),j())};return R.addEventListener("touchstart",Ae),R.addEventListener("touchmove",Ke),R.addEventListener("touchend",je),R.addEventListener("touchcancel",je),()=>{a(!1),G.removeEventListener("mousedown",V),document.removeEventListener("mousemove",ie),document.removeEventListener("mouseleave",O),document.removeEventListener("mouseup",O),document.removeEventListener("contextmenu",O),R.removeEventListener("scroll",be),R.removeEventListener("touchstart",Ae),R.removeEventListener("touchmove",Ke),R.removeEventListener("touchend",je),R.removeEventListener("touchcancel",je)}},[v,P,Y,m,o,g,F]),c("div",{ref:L,style:_,children:c("div",{ref:f,className:"overflow-x-scroll",children:[c("div",{className:"sticky left-0 top-0",children:[e.map(G=>c(st,{src:G.src,className:"pointer-events-none !absolute left-0 top-0 -z-10"},G.src)),c(lo,{...e[K],onlyPreload:t,itemIndex:-1})]}),c("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},fi=({itemIndex:e,images:t,onPlaceholderImageLoaded:n,onSpinImagesLoaded:o,onError:s})=>{const{autoLoad360:i,emitAnalyticsEvent:u,themeConfig:r}=Je(),{displayedCategoryId:g,displayedCategoryName:m}=Qe(),L=ze(()=>Jt(r),[r]),f=ze(()=>t.map(({src:x})=>x),[t]),[p,a]=xe(null),b=p?[...p.values()].filter(x=>x).length/t.length*100:null,k=B(x=>{b===null&&(a(new Map(f.map(E=>[E,!1]))),u({type:"interaction",current:{category_id:g,category_name:m,item_type:"exterior-360",item_position:e},action:{name:"Exterior 360 Play",field:"exterior_360_play",value:x}}))},[b,f,u,g,m,e]),M=B(()=>{k("click")},[k]),_=B(x=>{a(E=>{const v=new Map(E);return v.set(x,!0),v})},[]);return pe(()=>{i&&k("auto")},[i,k]),pe(()=>{b===100&&o()},[b,o]),c("div",{className:"relative aspect-[4/3] w-full",children:[b!==null&&b!==100&&c("div",{className:"hidden",children:f.map(x=>c(st,{src:x,onLoad:()=>_(x),onError:s},x))}),c(st,{className:"size-full",src:f[0],onLoad:n}),c("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[c(In,{className:"size-20"}),c(rt,{"aria-label":"Play 360 view",className:L?.playButton?"size-[78px] border-0 bg-transparent p-0 shadow-none hover:bg-transparent":void 0,color:"neutral",shape:"icon",onClick:M,children:L?.playButton?c("img",{className:"size-full",src:L.playButton.default,alt:""}):c(co,{className:"size-full"})}),c("div",{className:de("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",b===null&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${b??0}%`}})})]})]})},pi=e=>{const{itemIndex:t}=e,{setItemInteraction:n}=Qe(),[o,s]=xe();return pe(()=>{o===null||o==="error"||n(t,o==="spin"?"running":"ready")},[t,n,o]),o==="error"?c(qt,{className:"text-background",text:"Spin could not be loaded"}):o!=="spin"?c(fi,{...e,onPlaceholderImageLoaded:()=>s(i=>i===null?"placeholder":i),onSpinImagesLoaded:()=>s("spin"),onError:()=>s("error")}):c(di,{...e})},hi=e=>c(rt,{color:"neutral",shape:"icon",...e,children:c(ro,{className:"size-full"})}),mi=({className:e})=>c(qe,{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"})})}),gi=({className:e})=>c(qe,{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"})})}),vi=({className:e})=>c(qe,{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"})})}),uo=({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)}%)`}})}),_i=3e3,wi=({src:e,poster:t,itemIndex:n})=>{const{carrouselItemIndex:o,setItemInteraction:s}=Qe(),i=Ce(null),u=Ce(null),r=B(()=>{if(!u.current)throw new Error("videoRef.current is null");return u.current},[]);pe(()=>{s(n,"ready")},[n,s]);const g=B(()=>{r().play()},[r]),m=B(()=>{r().pause()},[r]);pe(()=>{o===n||m()},[o,n,m]);const[L,f]=xe(!1),[p,a]=xe(!0),b=()=>{f(!0),s(n,"running")},k=()=>{f(!1),s(n,"ready")},M=()=>{a(!1)},_=()=>{a(!0)},[x,E]=xe(null),v=Z=>{const D=r(),j=Z.currentTarget.getBoundingClientRect(),V=(Z.clientX-j.left)/j.width,ie=Math.min(1,Math.max(0,V));D.volume=ie,D.muted=!1},I=Z=>{const D=r();D.muted=Z};pe(()=>{const Z=u.current;if(!Z)return;const D=()=>{E({volume:Z.volume,isMuted:Z.muted})};return D(),Z.addEventListener("volumechange",D),()=>{Z.removeEventListener("volumechange",D)}},[]);const[N,K]=xe(null),T=N?N.currentTime/N.duration:0;pe(()=>{const Z=u.current;if(!Z)return;const D=()=>{const j=Z.currentTime,z=Z.duration;isNaN(j)||isNaN(z)||K({currentTime:j,duration:z})};return D(),Z.addEventListener("timeupdate",D),()=>{Z.removeEventListener("timeupdate",D)}},[]);const F=Z=>{const D=r(),j=Z.currentTarget.getBoundingClientRect(),V=(Z.clientX-j.left)/j.width,ie=D.duration*V;D.currentTime=ie},Y=Z=>{const D=Math.floor(Z%3600/60),j=Math.floor(Z%60);return`${D}:${j.toString().padStart(2,"0")}`},[P,G]=xe(!1),R=Ce(void 0),$=B(()=>clearTimeout(R.current),[]),he=B(()=>{$(),R.current=setTimeout(()=>{G(!1)},_i)},[$]);return pe(()=>{const Z=i.current,D=u.current;if(!Z||!D)return;const j=()=>{he(),G(!0)},z=()=>{$(),G(!1)};let V=!1;const ie=()=>{V=!0},O=()=>{V&&(V=!1,m())},ne=()=>{V=!1,j()},ae=oe=>{oe.preventDefault(),oe.touches.length===1&&(he(),G(be=>!be))};return Z.addEventListener("mousedown",ie),Z.addEventListener("mouseup",O),Z.addEventListener("mouseenter",j),Z.addEventListener("mousemove",ne),Z.addEventListener("mouseleave",z),D.addEventListener("touchstart",ae,{passive:!0}),()=>{Z.removeEventListener("mousedown",ie),Z.removeEventListener("mouseup",O),Z.removeEventListener("mouseenter",j),Z.removeEventListener("mousemove",j),Z.removeEventListener("mouseleave",z),D.removeEventListener("touchstart",ae)}},[$,m,he]),c("div",{ref:i,className:"relative aspect-[4/3] w-full",children:[c("video",{ref:u,className:"size-full",src:e,poster:t,disablePictureInPicture:!0,playsInline:!0,onPlay:b,onPause:k,onEnded:k,onCanPlay:M,onWaiting:_}),L?c(et,{children:[c("div",{className:de("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",P?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onMouseDownCapture:Z=>Z.stopPropagation(),children:[c("div",{className:"flex items-center justify-between text-background",children:[c("div",{className:"flex items-center gap-x-4",children:[c(rt,{shape:"icon",variant:"ghost",color:"neutral",onClick:m,children:c(mi,{className:"size-full"})}),N&&c("span",{className:"text-sm",children:[Y(N.currentTime)," /"," ",Y(N.duration)]})]}),x&&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 ${x.isMuted?"group-hover/volume:opacity-50":"group-hover/volume:opacity-100"}`,onClick:v,children:c(uo,{progress:x.volume})}),c("div",{className:"size-5 cursor-pointer",onClick:()=>I(!x.isMuted),children:x.isMuted?c(vi,{className:"size-full"}):c(gi,{className:"size-full"})})]})]}),c("div",{className:"cursor-pointer py-1",onClick:F,children:c(uo,{progress:T})})]}),p&&c("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",children:c(eo,{size:"lg",color:"background"})})]}):c("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:c(hi,{onClick:g})})]})},yi=({index:e,item:t,isShown:n})=>{const{type:o}=t;let s;switch(o){case"image":s=c(lo,{itemIndex:e,onlyPreload:!n,...t});break;case"video":s=c(wi,{itemIndex:e,...t});break;case"360":s=c(pi,{itemIndex:e,onlyPreload:!n,...t});break;case"next360":s=c(ai,{itemIndex:e,onlyPreload:!n,...t});break;case"interior-360":s=c(qa,{itemIndex:e,onlyPreload:!n,...t});break;case"custom":s=c(za,{itemIndex:e,...t})}return s=c("div",{className:"grid grid-cols-[repeat(var(--max-items),1fr)]",children:s}),s},xi=e=>{pe(()=>{const t=n=>{n.key==="Escape"&&e()};return addEventListener("keydown",t),()=>{removeEventListener("keydown",t)}},[e])};function bi(e){return e.target===e.currentTarget}const Ci=({className:e,children:t,isVisible:n,url:o,title:s,description:i,clickHandler:u,extendMode:r,variant:g,aspectRatioStyle:m,maxItemsShown:L=1})=>{const{isFullScreen:f,integration:p}=Je(),a=()=>g||(!p||f?"centered":"aside"),b=()=>!!(s||i),k=a(),M=_=>{if(!m)return{};switch(_){case"centered":return{...m,maxHeight:b()?"50%":"100%"};case"aside":return{...m,minHeight:0,flex:"1 1 auto"};case"fullwidth":return{...m,height:"85%"};default:return m}};return k==="centered"?c("div",{className:de(e,"absolute inset-0 z-overlay flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",n?"opacity-100":"pointer-events-none opacity-0"),onClick:u,children:c("div",{className:de("flex h-full flex-col bg-background transition-transform duration-details",n?"translate-x-0":"translate-x-full",b()?"max-w-[60%]":"w-full"),children:[t,n&&c(et,{children:[c(st,{className:de(b()?"max-h-[50%]":"h-full","w-full bg-foreground/65 object-contain"),src:o||"",style:M("centered"),imgInPlayerWidthRatio:.6}),b()&&c("div",{className:de("flex-1 space-y-1 overflow-y-auto px-2 py-1 small:p-3",r&&"large:p-4"),children:[s&&c("span",{className:de("text-sm font-semibold small:text-base small:font-bold",r&&"large:text-lg"),children:s}),i&&c("p",{className:de("text-xs text-foreground/65 small:text-sm",r&&"large:text-base"),children:i})]})]})]})}):k==="aside"?c("div",{className:de(e,"absolute inset-0 z-overlay flex items-center justify-center overflow-hidden bg-foreground/60 transition-opacity duration-details",n?"opacity-100":"pointer-events-none opacity-0"),onClick:u,children:c("div",{className:de("relative flex h-full flex-col bg-background transition-transform duration-details",n?"translate-y-0":"translate-y-full"),style:{width:p?`${100/(f?1:L)}%`:`${100/L}%`},children:[t,n&&c(et,{children:[c(st,{className:"min-h-0 w-full flex-1 bg-foreground/65 object-contain",src:o||"",style:M("aside"),imgInPlayerWidthRatio:.6}),c("div",{className:"min-h-[15%] shrink-0 space-y-1 p-2 small:p-3",children:[s&&c("span",{className:de("block text-xs font-semibold leading-tight small:text-base small:font-bold",r&&"large:text-lg"),children:s}),i&&c("p",{className:de("text-[10px] leading-tight text-foreground/65 small:text-sm",r&&"large:text-base"),children:i})]})]})]})}):c("div",{className:de(e,"absolute inset-0 z-overlay flex items-center justify-center overflow-hidden bg-foreground/60 transition-opacity duration-details",n?"opacity-100":"pointer-events-none opacity-0"),onClick:u,children:c("div",{className:de("relative flex aspect-[4/3] flex-col bg-background transition-transform duration-details",n?"translate-y-0":"translate-y-full"),style:{width:p?`${100/(f?1:L)}%`:`${100/L}%`},children:[t,n&&o&&c(et,{children:[c(st,{className:"h-[85%] w-full bg-foreground/65 object-contain",src:o,style:M("fullwidth"),imgInPlayerWidthRatio:.6}),c("div",{className:"h-[15%] space-y-1 overflow-y-auto px-2 py-1 small:p-3",children:[s&&c("span",{className:de("text-sm font-semibold small:text-base small:font-bold",r&&"large:text-lg"),children:s}),i&&c("p",{className:de("text-xs text-foreground/65 small:text-sm",r&&"large:text-base"),children:i})]})]})]})})},Ei=({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})]}),fo=({className:e})=>c(qe,{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"})})}),Li=({className:e})=>c(qe,{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"})})}),Mi=({className:e})=>c(qe,{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"})})}),Ii=({className:e})=>c(qe,{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"})})})]})}),ki=({className:e})=>c(qe,{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"})})}),Ti=({className:e})=>c(qe,{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"})})}),Si=({className:e})=>c(qe,{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"})})}),Ni=({enabled:e,onToggle:t,label:n,className:o,children:s})=>c("label",{className:de("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:de("flex h-5 w-8 items-center justify-center rounded-full transition-colors",e?"bg-primary":"bg-background/60"),children:c("div",{className:de("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})})]}),Pi=({className:e})=>c(qe,{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"})})}),Ri=({sharedClassName:e})=>{const{categories:t}=gt(),{displayedCategoryId:n,changeCategory:o}=Qe(),[s,i]=xe(!1),u=()=>{i(!s)},r=()=>{i(!1)};return c(et,{children:[s&&c("div",{className:de(e,"inset-0 small:hidden"),onClick:r}),c("div",{className:de(e,kt("top-left"),"flex gap-x-2 small:hidden"),children:[c(rt,{shape:"icon",color:s?"primary":"neutral",onClick:u,children:c(Pi,{})}),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:g,title:m})=>c("li",{className:de("cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-all hover:bg-primary/30",g===n&&"bg-primary/50"),onClick:()=>{o(g),i(!1)},children:m},g))})})]}),c("div",{className:de(e,Qr("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:g,title:m})=>c(rt,{variant:g===n?"fill":"ghost",onClick:()=>o(g),children:m},g))})})]})},Ai=()=>{const{hideCategoriesNav:e,infiniteCarrousel:t,permanentGallery:n,extendBehavior:o,maxItemsShown:s,isFullScreen:i,integration:u}=Je(),{aspectRatioStyle:r,categories:{length:g}}=gt(),{items:{length:m},slidable:L,carrouselItemIndex:f,masterItemIndex:p,prevItem:a,nextItem:b,showGalleryControls:k,enableHotspotsControl:M,currentItemHotspotsVisible:_,toggleHotspots:x,showGallery:E,toggleGallery:v,extendMode:I,toggleExtendMode:N,shownDetails:K,isShowingDetails:T,resetShownDetails:F,showZoomControls:Y,isZooming:P,canZoomIn:G,zoomIn:R,canZoomOut:$,zoomOut:he,resetView:Z}=Qe(),D=B(ie=>{bi(ie)&&F()},[F]);xi(F);const j="absolute z-overlay",z=()=>{if(s===1)return f;const O=Math.floor(s)-1;return f+O},V=()=>{if(!u)return p;const O=Math.floor(s)-1;return p+O};return c(et,{children:[!e&&g>1&&c(Ri,{sharedClassName:de(j,"transition-opacity",P?"!pointer-events-none opacity-0":"opacity-100")}),L&&!P&&c("div",{className:de(j,kt("top-right")),children:c(Ei,{currentIndex:!u||i?f:z(),maxIndex:m-1})}),L&&c(et,{children:[c(rt,{shape:"icon",color:"neutral",className:de(j,kt("middle-left"),P?"!pointer-events-none opacity-0":"opacity-100"),onClick:a,disabled:!t&&p<=0,children:c(qe,{customizationKey:"CONTROLS_PREV",children:c(fo,{className:"size-full -scale-x-100"})})}),c(rt,{shape:"icon",color:"neutral",className:de(j,kt("middle-right"),P?"!pointer-events-none opacity-0":"opacity-100"),onClick:b,disabled:!t&&V()>=m-1,children:c(qe,{customizationKey:"CONTROLS_NEXT",children:c(fo,{className:"size-full"})})})]}),c("div",{className:de(j,kt("bottom-fullW"),"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"),children:[!n&&L&&c(et,{children:[c(rt,{className:k&&!P?"opacity-100":"!pointer-events-none opacity-0",variant:"fill",color:E?"primary":"neutral",shape:"icon",onClick:v,children:c(Mi,{className:"size-full"})}),E&&c(ao,{className:de("transition-opacity",k&&!P?"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:[M&&c(Ni,{className:de("transition-opacity",P?"!pointer-events-none opacity-0":"opacity-100"),enabled:_,onToggle:x,children:c(Ii,{className:"size-full"})}),Y&&(!u||i)&&c("div",{className:"max-small:hidden",children:[c(rt,{className:"rounded-b-none",color:"neutral",shape:"icon",disabled:!G,onClick:R,children:c(Ti,{className:"size-full"})}),c(oo,{color:"background"}),c(rt,{className:"rounded-t-none",color:"neutral",shape:"icon",disabled:!$,onClick:he,children:c(ki,{className:"size-full"})})]}),o!=="none"&&c(rt,{variant:"fill",color:I?"primary":"neutral",shape:"icon",onClick:N,children:I?c(Si,{className:"size-full"}):c(Li,{className:"size-full"})})]})]}),c(Ci,{isVisible:T,className:j,url:K?.src,title:K?.title,description:K?.text,clickHandler:D,extendMode:I,maxItemsShown:s,aspectRatioStyle:r,children:c(Mn,{className:"absolute right-2 top-2 z-10",onClick:F})}),P&&c(Mn,{className:de(j,kt("top-right")),onClick:Z})]})},Di=({className:e=""})=>{const{infiniteCarrousel:t,preloadRange:n,isFullScreen:o,maxItemsShown:s,integration:i}=Je(),{aspectRatioStyle:u}=gt(),{items:r,slidable:g,carrouselItemIndex:m,setCarrouselItemIndex:L,itemIndexCommand:f,setItemIndexCommand:p,specialCommand:a,isRunningSpecialCommand:b,finishSpecialCommand:k,extendMode:M,extendTransition:_}=Qe(),{effectiveMaxItemsShown:x}=Xr(),E=Ce(null),v=B(z=>{if(!E.current)throw new Error(`[${z??"sliderOrThrow"}] slider.current is null`);return E.current},[]),I=Ce(!1),N=Ce(null),K=Ce(null),T=Ce(null),F=B(()=>{T.current&&cancelAnimationFrame(T.current)},[]),Y=B(()=>{const z=v("computeClosestSnapIndex"),V=Array.from(z.children),ie=z.scrollLeft;let O=0,ne=1/0;if(V.forEach((ae,oe)=>{const S=ae.offsetLeft,be=Math.abs(S-ie);be<ne&&(ne=be,O=oe)}),x>1){const ae=Math.ceil(x),oe=r.length+(i&&!t&&x%1!==0?1:0),S=Math.max(0,oe-ae);if(O=Math.min(O,S),i&&!t&&x%1!==0){const be=r.length-1;O=Math.min(O,be)}}return O},[v,x,r.length,t,i]),P=B(z=>{const V=v("setStyleCursor");V.style.cursor=z},[v]),G=B(z=>{const V=v("setStyleSnapState");z==="mandatory"?V.style.scrollSnapType="x mandatory":V.style.scrollSnapType="none"},[v]),R=B((z,V,ie)=>{F();const O=v("scrollToIndex"),ne=Array.from(O.children),ae=O.scrollLeft;let oe=ne[z].offsetLeft;const S=O.clientWidth,be=O.scrollWidth-S;if(x>1){const w=Math.ceil(x),Q=r.length+(i&&!t&&x%1!==0?1:0);z>=Q-w&&(oe=Math.min(oe,be))}const q=w=>{O.scrollTo({left:w,behavior:"instant"})},Ae=()=>{q(oe),G("mandatory"),ie?.()},Ke=Math.abs(ae-oe);if(Ke<1||V==="instant"){Ae();return}const je=ot(Ke/2.5,300,1e3),we=new Date().getTime();G("none");const h=()=>{const w=()=>{const re=new Date().getTime()-we;if(re>=je){Ae();return}const ee=Math.min(re/je,1),C=io(ee),J=jt(ae,oe,C);q(J),h()};T.current=requestAnimationFrame(w)};h()},[F,v,x,G,r.length,i,t]),[$,he]=xe(),Z=!!$;pe(()=>{const z=()=>{clearTimeout($);const V=setTimeout(()=>{he(void 0)},Zr);he(V)};return addEventListener("resize",z),document.addEventListener("fullscreenchange",z),()=>{removeEventListener("resize",z),document.removeEventListener("fullscreenchange",z)}},[$]),pe(()=>{if(a)return;const z=Y();Number.isNaN(z)||z!==m&&R(m,"instant")},[m,Y,R,a,r,$,o,M,_]),pe(()=>{if(!g||b){P("auto");return}const z=E.current;if(!z)return;P("grab"),G("mandatory");const V=ne=>{ne.button===0&&(ne.preventDefault(),ne.stopPropagation(),F(),I.current=!0,N.current=ne.pageX-z.offsetLeft,K.current=z.scrollLeft,P("grabbing"))},ie=ne=>{if(!I.current)return;if(N.current===null)throw new Error("[onMouseMove] startX is null");G("none");const oe=ne.pageX-z.offsetLeft-N.current;requestAnimationFrame(()=>{if(K.current===null)throw new Error("[onMouseMove] scrollLeft is null");let S=K.current-oe;if(!t){const be=z.scrollWidth-z.clientWidth;S>be&&(S=be)}z.scrollLeft=S})},O=()=>{if(!I.current)return;I.current=!1,P("grab");const ne=Y();R(ne,"smooth")};return z.addEventListener("mousedown",V),document.addEventListener("mousemove",ie),document.addEventListener("mouseleave",O),document.addEventListener("mouseup",O),document.addEventListener("contextmenu",O),()=>{z.removeEventListener("mousedown",V),document.removeEventListener("mousemove",ie),document.removeEventListener("mouseleave",O),document.removeEventListener("mouseup",O),document.removeEventListener("contextmenu",O)}},[F,Y,t,b,R,P,G,g]),pe(()=>{if(_||Z)return;const z=E.current;if(!z)return;const V=()=>{const ie=Y();Number.isNaN(ie)||(L(ie),ie===f&&p(null))};return z.addEventListener("scroll",V),()=>{z.removeEventListener("scroll",V)}},[Y,_,Z,f,s,L,p]),pe(()=>{if(f===null)return;const z=()=>{setTimeout(()=>{p(null),k()},75)};switch(a){case"first_to_last":{const V=Math.ceil(x),ie=r.length+(i&&!t&&x%1!==0?1:0),O=x>1?Math.max(0,ie-V):r.length-1;R(O,"instant",z);break}case"last_to_first":R(0,"instant",z);break;case"instant":R(f,"instant",z);break;default:R(f,"smooth");break}},[a,k,f,r.length,R,p,x,t,i]);const D=ze(()=>!i||o?u:{aspectRatio:"auto"},[i,o,u]),j=ze(()=>({...u,minWidth:`${100/x}%`,width:`${100/x}%`,flexShrink:0}),[u,x]);return c("div",{className:de("relative overflow-hidden rounded-carrousel transition-radius",e),style:D,children:[c("div",{ref:E,className:`flex size-full ${g?"overflow-x-auto no-scrollbar *:snap-start *:snap-always":"justify-center"}`,children:[r.map((z,V)=>{const ie=V===m,O=V===0,ne=V===r.length-1,ae=(()=>{const Ae=Math.ceil(x);if(a==="first_to_last"&&O)return{transform:`translateX(${100*r.length/Ae}%)`};if(a==="last_to_first"&&ne)return{transform:`translateX(-${100*r.length/Ae}%)`}})(),oe=Math.ceil(x),S=Math.max(n,oe);let be=Math.abs(V-m)<=S;be||=V===f,be||=V>=m&&V<m+oe,t&&(be||=m<S&&r.length-V<=S-m,be||=m>=r.length-S&&V<=S-(r.length-m));const q=(()=>{let Ae;switch(z.type){case"360":Ae=z.images[0].src;break;case"interior-360":Ae=z.poster??"interior-360";break;case"image":Ae=z.src;break;case"video":Ae=z.poster??"video";break;case"custom":Ae="custom";break;default:Ae="unknown"}return`${V}_${Ae}`})();return c("div",{className:de("h-full bg-foreground/35",m===V&&"z-1"),style:{...j,...ae},children:be&&c(yi,{index:V,item:z,isShown:ie})},q)}),i&&!t&&!o&&s%1!==0&&c("div",{className:"h-full",style:j},"empty-slide")]}),c(Ai,{})]})},zi=()=>{const{permanentGallery:e,integration:t}=Je(),{aspectRatioStyle:n}=gt(),{isShowingDetails:o,resetShownDetails:s,extendMode:i,disableExtendMode:u,isZooming:r,resetZoom:g,fakeFullScreen:m}=Qe(),L=Ce(null),f=Ce(null),p=Ce(null);return pe(()=>{if(!i)return;const a=L.current,b=f.current,k=p.current;if(!a||!b||!k)return;let M=!1;const _=v=>[a,b,k].includes(v.target),x=v=>{M=_(v)},E=v=>{M&&(_(v)&&u(),M=!1)};return a.addEventListener("mousedown",x),a.addEventListener("mouseup",E),()=>{a.removeEventListener("mousedown",x),a.removeEventListener("mouseup",E)}},[u,i]),pe(()=>{const a=b=>{b.key==="Escape"&&(r?g():o?s():u())};return addEventListener("keydown",a),()=>{removeEventListener("keydown",a)}},[u,o,r,s,g]),c("div",{ref:L,className:de("relative",i&&"flex size-full items-center justify-center",m&&"fixed inset-0 z-overlay bg-foreground/75"),children:[c("div",{ref:f,className:i?"flex size-full flex-col justify-center gap-y-2 small:gap-y-4":"space-y-2",children:[c("div",{ref:p,className:de(i&&"mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"),style:t?{}:n,children:c(Di,{className:de(i&&"h-full min-w-0")})}),e&&c(ao,{className:de(i&&"my-2 shrink-0 small:my-4")})]}),i&&c(Mn,{className:"absolute right-2 top-2 small:right-4 small:top-4",onClick:u})]})},Oi=()=>{const{emitEvent:e,emitAnalyticsEvent:t,compositionUrl:n}=Je(),{data:o,status:s,isSuccess:i,error:u}=ma(n);return pe(()=>{if(u){e(On,u);const r={type:"error",error:u instanceof Error?{name:u.name||"CompositionLoadError",message:u.message,stack:u.stack}:{name:"NonError",message:(()=>{try{return JSON.stringify(u)}catch{return String(u)}})()}};t(r)}else s==="fetching"?e(Dn,n):i&&e(zn,o)},[o,n,e,t,u,i,s]),u?c(qt,{className:"aspect-square text-foreground/70",text:"Player could not be loaded"}):i?c(va,{composition:o,children:c(ya,{children:c(zi,{})})}):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(eo,{color:"foreground"})]})},Fi={hideCategoriesNav:!0,infiniteCarrousel:!1,permanentGallery:!1},Hi=[1,1.5,2,2.5],Ui=()=>ze(()=>Io(),[]),Vi=()=>ze(()=>ko(),[]),Wi=()=>ze(()=>To(),[]),Bi="https://analytics.eu.car-cutter.com",Zi={load:"/webplayer/load",display:"/webplayer/display",interaction:"/webplayer/interaction",error:"/webplayer/error"},Xi=e=>{const t=Zi[e];return new URL(t,Bi).toString()},Yi=e=>{const t=new Headers;return t.append("Content-Type","application/json"),t.append("Authorization",`Bearer ${e}`),t},Gi=e=>{const{type:t,...n}=e;return JSON.stringify(n)},$i=1e4,ji=async(e,t=$i)=>{const{payload:n,compositionUrl:o}=e,s=Yi(o),i=Gi(n),u=Xi(n.type),r=new AbortController,g=setTimeout(()=>r.abort(),t);try{const m=await fetch(u,{method:"POST",headers:s,body:i,signal:r.signal});if(!m.ok)throw new Error(`Monitoring request failed: ${m.status} ${m.statusText} (${u})`)}finally{clearTimeout(g)}},qi=({compositionUrl:e,integration:t=!1,maxItemsShown:n=1,hideCategoriesNav:o=!1,infiniteCarrousel:s=!1,permanentGallery:i=!1,mediaLoadStrategy:u=xo,minMediaWidth:r=0,maxMediaWidth:g=1/0,preloadRange:m=1,autoLoad360:L=!1,autoLoadInterior360:f=!1,categoriesFilter:p="*",extendBehavior:a=bo,eventPrefix:b=Bn,demoSpin:k=!1,reverse360:M=!1,analyticsEventPrefix:_=Eo,analyticsUrl:x="",analyticsBearer:E="",analyticsSimpleRequestsOnly:v=!1,analyticsDryRun:I=!1,analyticsDebug:N=!1,spinCursor:K=Co,monitoring:T,themeConfig:F,children:Y})=>{const P=T!==void 0?T:!x;n=_a(n,Hi);const G=Ce(null),[R,$]=xe(.5),[he,Z]=xe(!1),D=B((oe,S)=>{const be=b+oe,q=new CustomEvent(be,{detail:S});document.dispatchEvent(q)},[b]),j=Ui(),z=Vi(),V=Wi(),ie=B(async oe=>{try{const S={instance_id:V,browser_id:j,session_id:z,from_url:window.location.href},be={...oe,timestamp:new Date().toISOString(),instance:S};if(I){console.log("[DRY RUN] AnalyticsEvent:",be);return}const q=_+oe.type,Ae=new CustomEvent(q,{detail:be});if(document.dispatchEvent(Ae),x||P){const Ke="POST",je=new Headers;v||(je.append("Content-Type","application/json"),je.append("Cache-Control","no-cache"),E&&je.append("Authorization",`Bearer ${E}`));const we=JSON.stringify(be);x&&await fetch(x,{method:Ke,headers:je,body:we}),P&&await ji({payload:be,compositionUrl:e})}}catch(S){if(!N)return;console.error("Error while sending analytics event:",S)}},[_,x,E,v,I,N,V,j,z,e,P]),[O]=xe({type:"load",config:{composition_url:e,integration:t,max_items_shown:n,hide_categories_nav:o,infinite_carrousel:s,permanent_gallery:i,media_load_strategy:u,min_media_width:r,preload_range:m,auto_load_360:L,auto_load_interior_360:f,categories_filter:p,extend_behavior:a,event_prefix:b,demo_spin:k,reverse_360:M}});pe(()=>{const oe=setTimeout(()=>ie(O),0);return()=>clearTimeout(oe)},[ie,O]),pe(()=>{if(he){$(1);return}if(!G.current)return;const oe=G.current,S=()=>{const be=window.innerWidth,q=oe.clientWidth;$(q/be)};return S(),addEventListener("resize",S),()=>{removeEventListener("resize",S)}},[he]),pe(()=>{if(a!=="full_screen")return;const oe=G.current;if(!oe)throw new Error("Wrapper not found");const S=()=>{const{fullscreenElement:be}=document;Z(be===oe||be?.localName===ut)};return document.addEventListener("fullscreenchange",S),()=>{document.removeEventListener("fullscreenchange",S)}},[a]);const ne=B(async()=>{const oe=G.current;if(!oe)throw new Error("Wrapper not found");try{return await oe.requestFullscreen(),!0}catch{return!1}},[]),ae=B(async()=>{try{return await document.exitFullscreen(),!0}catch{return!1}},[]);return c(ga,{compositionUrl:e,integration:t,hideCategoriesNav:o,infiniteCarrousel:s,permanentGallery:i,maxItemsShown:n,mediaLoadStrategy:u,minMediaWidth:r,maxMediaWidth:g,preloadRange:m,categoriesFilter:p,autoLoad360:L,autoLoadInterior360:f,extendBehavior:a,demoSpin:k,reverse360:M,spinCursor:K,themeConfig:F,emitEvent:D,emitAnalyticsEvent:ie,playerInViewportWidthRatio:R,isFullScreen:he,requestFullscreen:ne,exitFullscreen:ae,...t?Fi:{},children:c(wa,{children:[c("div",{ref:G,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)","--hotspot-damage-color":"hsl(var(--cc-webplayer-hotspot-damage-color, 37 89% 52%))","--hotspot-feature-color":"hsl(var(--cc-webplayer-hotspot-feature-color, var(--primary)))"},children:c(Oi,{})}),Y]})})},Ki=({children:e,index:t,thumbnailSrc:n})=>{const{registerCustomMedia:o,unregisterCustomMedia:s}=Ft();return pe(()=>{if(!e)return;const i=o({Media:e,index:t,thumbnailSrc:n});return()=>{s(i)}},[e,s,t,o,n]),null},Ji=e=>Ln()?c(Ki,{...e}):c("slot",{}),Qi=({name:e,children:t})=>{const{registerIconConfig:n,unregisterIconConfig:o}=Ft();return pe(()=>{if(t)return n(e,{Icon:t}),()=>{o(e)}},[t,e,n,o]),null},es=e=>Ln()?c(Qi,{...e}):c("slot",{}),ts=`*,: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: }*,: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]:where(:not([hidden=until-found])){display:none}.\\!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}.visible{visibility:visible}.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-10,.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}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-\\[4\\/3\\]{aspect-ratio:4/3}.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-\\[78px\\]{width:78px;height:78px}.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-\\[15\\%\\]{height:15%}.h-\\[85\\%\\]{height:85%}.h-full{height:100%}.h-px{height:1px}.max-h-\\[50\\%\\]{max-height:50%}.min-h-0{min-height:0}.min-h-\\[15\\%\\]{min-height:15%}.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}.max-w-\\[60\\%\\]{max-width:60%}.flex-1{flex:1 1 0%}.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))}.translate-y-0{--tw-translate-y: 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-y-full{--tw-translate-y: 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-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}.grid-cols-\\[repeat\\(var\\(--max-items\\)\\,1fr\\)\\]{grid-template-columns:repeat(var(--max-items),1fr)}.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-y-auto{overflow-y: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-0{border-width:0px}.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-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.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-\\[10px\\]{font-size:10px}.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}.leading-tight{line-height:1.25}.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))}.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)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.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,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%)}.pnlm-load-button,.pnlm-load-box{display:none!important}.pnlm-container{background-image:none!important}.pnlm-about-msg{width:0;height:0;padding:0;visibility:hidden}.pnlm-about-msg a{display:none;visibility:hidden}.\\*\\: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\\:bg-transparent:hover{background-color:transparent}.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 ns(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,o)=>`${n}-${o.toLowerCase()}`)}function kn(e){return Object.entries(e).reduce((t,[n,o])=>{if(o!==void 0){const s=ns(n);t[s]=o.toString()}return t},{})}const rs=e=>c(et,{children:[c("style",{children:ts}),c(qi,{...e})]}),os=e=>kn(e),as=e=>kn(e),is=e=>kn(e);function ss(e){return{render:function(t){Dr(t,e)},unmount:function(){Ur(e)}}}var ls=Object.defineProperty,cs=(e,t,n)=>t in e?ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qt=(e,t,n)=>cs(e,typeof t!="symbol"?t+"":t,n);const us={stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},ds={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}},fs={stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)};function ps(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,o)=>`${n}-${o.toLowerCase()}`)}function po(e){return e.replace(/[-:]([a-z])/g,(t,n)=>`${n.toUpperCase()}`)}const hs={stringify:e=>e.name,parse:(e,t,n)=>{const o=(()=>{const s=po(t);if(typeof n<"u"&&s in n.container)return n.container[s]})();return typeof o=="function"?o.bind(n):void 0}},ms={stringify:e=>`${e}`,parse:e=>parseFloat(e)},gs={stringify:e=>e,parse:e=>e},Tn={string:gs,number:ms,boolean:us,function:ds,method:hs,json:fs},Ut=Symbol.for("r2wc.render"),en=Symbol.for("r2wc.connected"),xt=Symbol.for("r2wc.context"),at=Symbol.for("r2wc.props");function vs(e,t,n){var o,s,i;t.props||(t.props=e.propTypes?Object.keys(e.propTypes):[]),t.events||(t.events=[]);const u=Array.isArray(t.props)?t.props.slice():Object.keys(t.props),r=Array.isArray(t.events)?t.events.slice():Object.keys(t.events),g={},m={},L={},f={};for(const a of u){g[a]=Array.isArray(t.props)?"string":t.props[a];const b=ps(a);L[a]=b,f[b]=a}for(const a of r)m[a]=Array.isArray(t.events)?{}:t.events[a];class p extends HTMLElement{constructor(){super(),Qt(this,i,!0),Qt(this,s),Qt(this,o,{}),Qt(this,"container"),t.shadow?this.container=this.attachShadow({mode:t.shadow}):this.container=this,this[at].container=this.container;for(const b of u){const k=L[b],M=this.getAttribute(k),_=g[b],x=_?Tn[_]:null;if(_==="method"){const E=po(k);Object.defineProperty(this[at].container,E,{enumerable:!0,configurable:!0,get(){return this[at][E]},set(v){this[at][E]=v,this[Ut]()}}),this[at][b]=x.parse(M,k,this)}x!=null&&x.parse&&M&&(this[at][b]=x.parse(M,k,this))}for(const b of r)this[at][b]=k=>{const M=b.replace(/^on/,"").toLowerCase();this.dispatchEvent(new CustomEvent(M,{detail:k,...m[b]}))}}static get observedAttributes(){return Object.keys(f)}connectedCallback(){this[en]=!0,this[Ut]()}disconnectedCallback(){this[en]=!1,this[xt]&&n.unmount(this[xt]),delete this[xt]}attributeChangedCallback(b,k,M){const _=f[b],x=g[_],E=x?Tn[x]:null;_ in g&&E!=null&&E.parse&&M&&(this[at][_]=E.parse(M,b,this),this[Ut]())}[(i=en,s=xt,o=at,Ut)](){this[en]&&(this[xt]?n.update(this[xt],this[at]):this[xt]=n.mount(this.container,e,this[at]))}}for(const a of u){const b=L[a],k=g[a];Object.defineProperty(p.prototype,a,{enumerable:!0,configurable:!0,get(){return this[at][a]},set(M){this[at][a]=M;const _=k?Tn[k]:null;if(_!=null&&_.stringify){const x=_.stringify(M,b,this);this.getAttribute(b)!==x&&this.setAttribute(b,x)}else this[Ut]()}})}return p}function _s(e,t,n){const o=ss(e),s=Vr.createElement(t,n);return o.render(s),{root:o,ReactComponent:t}}function ws({root:e,ReactComponent:t},n){const o=Vr.createElement(t,n);e.render(o)}function ys({root:e}){setTimeout(()=>{e.unmount()},0)}function Sn(e,t={}){return vs(e,t,{mount:_s,update:ws,unmount:ys})}const xs=Sn(rs,{shadow:"closed",props:{compositionUrl:"string",hideCategoriesNav:"boolean",infiniteCarrousel:"boolean",permanentGallery:"boolean",integration:"boolean",maxItemsShown:"number",minMediaWidth:"number",maxMediaWidth:"number",mediaLoadStrategy:"string",preloadRange:"number",autoLoad360:"boolean",autoLoadInterior360:"boolean",categoriesFilter:"string",extendBehavior:"string",eventPrefix:"string",demoSpin:"boolean",reverse360:"boolean",spinCursor:"string",analyticsEventPrefix:"string",analyticsUrl:"string",analyticsBearer:"string",analyticsSimpleRequestsOnly:"boolean",analyticsDryRun:"boolean",analyticsDebug:"boolean",monitoring:"boolean"}}),bs=Sn(Ji,{shadow:"closed",props:{index:"number",thumbnailSrc:"string"}}),Cs=Sn(es,{shadow:"closed",props:{name:"string"}});function Es(){customElements.define(ut,xs),customElements.define(Wt,bs),customElements.define(Bt,Cs)}function Ls(){Zn()||Es()}Ye.DEFAULT_EVENT_PREFIX=Bn,Ye.EVENT_COMPOSITION_LOADED=zn,Ye.EVENT_COMPOSITION_LOADING=Dn,Ye.EVENT_COMPOSITION_LOAD_ERROR=On,Ye.EVENT_EXTEND_MODE_OFF=Un,Ye.EVENT_EXTEND_MODE_ON=Hn,Ye.EVENT_GALLERY_CLOSE=Wn,Ye.EVENT_GALLERY_OPEN=Vn,Ye.EVENT_HOTSPOTS_OFF=an,Ye.EVENT_HOTSPOTS_ON=on,Ye.EVENT_ITEM_CHANGE=Fn,Ye.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=Wt,Ye.WEB_PLAYER_ICON_WC_TAG=Bt,Ye.WEB_PLAYER_WC_TAG=ut,Ye.checkCustomElementsDefinition=Zn,Ye.ensureCustomElementsDefinition=Ls,Ye.generateCompositionUrl=Lo,Ye.webPlayerCustomMediaPropsToAttributes=as,Ye.webPlayerIconPropsToAttributes=is,Ye.webPlayerPropsToAttributes=os,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})}));
|
|
6
|
+
`).join("<br>")}function Ct(l){return l.trim().toLowerCase().indexOf("javascript:")===0?"about:blank":l}function A2(l){return Ct(l).replace(/"/g,"%22").replace(/'/g,"%27")}this.isLoaded=function(){return!!E},this.getPitch=function(){return n.pitch},this.setPitch=function(l,d,y,W){return d=d==r?1e3:Number(d),d?B.pitch={startTime:Date.now(),startPosition:n.pitch,endPosition:l,duration:d,callback:y,callbackArgs:W}:n.pitch=l,Ie(),this},this.getPitchBounds=function(){return[n.minPitch,n.maxPitch]},this.setPitchBounds=function(l){return n.minPitch=Math.max(-90,Math.min(l[0],90)),n.maxPitch=Math.max(-90,Math.min(l[1],90)),this},this.getYaw=function(){return n.yaw},this.setYaw=function(l,d,y,W){return d=d==r?1e3:Number(d),l=(l+180)%360-180,d?(n.yaw-l>180?l+=360:l-n.yaw>180&&(l-=360),B.yaw={startTime:Date.now(),startPosition:n.yaw,endPosition:l,duration:d,callback:y,callbackArgs:W}):n.yaw=l,Ie(),this},this.getYawBounds=function(){return[n.minYaw,n.maxYaw]},this.setYawBounds=function(l){return n.minYaw=Math.max(-180,Math.min(l[0],180)),n.maxYaw=Math.max(-180,Math.min(l[1],180)),this},this.getHfov=function(){return n.hfov},this.setHfov=function(l,d,y,W){return d=d==r?1e3:Number(d),d?B.hfov={startTime:Date.now(),startPosition:n.hfov,endPosition:xo(l),duration:d,callback:y,callbackArgs:W}:it(l),Ie(),this},this.getHfovBounds=function(){return[n.minHfov,n.maxHfov]},this.setHfovBounds=function(l){return n.minHfov=Math.max(0,l[0]),n.maxHfov=Math.max(0,l[1]),this},this.lookAt=function(l,d,y,W,G,V){return W=W==r?1e3:Number(W),l!==r&&(this.setPitch(l,W,G,V),G=r),d!==r&&(this.setYaw(d,W,G,V),G=r),y!==r&&this.setHfov(y,W,G,V),this},this.getNorthOffset=function(){return n.northOffset},this.setNorthOffset=function(l){return n.northOffset=Math.min(360,Math.max(0,l)),Ie(),this},this.getHorizonRoll=function(){return n.horizonRoll},this.setHorizonRoll=function(l){return n.horizonRoll=Math.min(90,Math.max(-90,l)),v.setPose(n.horizonPitch*Math.PI/180,n.horizonRoll*Math.PI/180),Ie(),this},this.getHorizonPitch=function(){return n.horizonPitch},this.setHorizonPitch=function(l){return n.horizonPitch=Math.min(90,Math.max(-90,l)),v.setPose(n.horizonPitch*Math.PI/180,n.horizonRoll*Math.PI/180),Ie(),this},this.startAutoRotate=function(l){return l=l||O||1,n.autoRotate=l,u.lookAt(pe,r,j,3e3),Ie(),this},this.stopAutoRotate=function(){return O=n.autoRotate?n.autoRotate:O,n.autoRotate=!1,n.autoRotateInactivityDelay=-1,this},this.getRenderer=function(){return v},this.setUpdate=function(l){return P=l===!0,v===r?ee():Ie(),this},this.mouseEventToCoords=function(l){return Ge(l)},this.loadScene=function(l,d,y,W){return E!==!1&&Dn(l,d,y,W),this},this.getScene=function(){return n.scene},this.addScene=function(l,d){return s.scenes[l]=d,this},this.removeScene=function(l){return n.scene===l||!s.scenes.hasOwnProperty(l)?!1:(delete s.scenes[l],!0)},this.toggleFullscreen=function(){return An(),this},this.getConfig=function(){return n},this.getContainer=function(){return i},this.addHotSpot=function(l,d){if(d===r&&n.scene===r)n.hotSpots.push(l);else{var y=d!==r?d:n.scene;if(s.scenes.hasOwnProperty(y))s.scenes[y].hasOwnProperty("hotSpots")||(s.scenes[y].hotSpots=[],y==n.scene&&(n.hotSpots=s.scenes[y].hotSpots)),s.scenes[y].hotSpots.push(l);else throw"Invalid scene ID!"}return(d===r||n.scene==d)&&(_o(l),E&&wo(l)),this},this.removeHotSpot=function(l,d){if(d===r||n.scene==d){if(!n.hotSpots)return!1;for(var y=0;y<n.hotSpots.length;y++)if(n.hotSpots[y].hasOwnProperty("id")&&n.hotSpots[y].id===l){for(var W=n.hotSpots[y].div;W.parentNode!=oe;)W=W.parentNode;return oe.removeChild(W),delete n.hotSpots[y].div,n.hotSpots.splice(y,1),!0}}else if(s.scenes.hasOwnProperty(d)){if(!s.scenes[d].hasOwnProperty("hotSpots"))return!1;for(var y=0;y<s.scenes[d].hotSpots.length;y++)if(s.scenes[d].hotSpots[y].hasOwnProperty("id")&&s.scenes[d].hotSpots[y].id===l)return s.scenes[d].hotSpots.splice(y,1),!0}else return!1},this.resize=function(){v&&he()},this.isLoaded=function(){return E},this.isOrientationSupported=function(){return Pe||!1},this.stopOrientation=function(){Wt()},this.startOrientation=function(){Pe&&rn()},this.isOrientationActive=function(){return!!Z},this.on=function(l,d){return D[l]=D[l]||[],D[l].push(d),this},this.off=function(l,d){if(!l)return D={},this;if(d){var y=D[l].indexOf(d);y>=0&&D[l].splice(y,1),D[l].length==0&&delete D[l]}else delete D[l];return this};function ht(l){if(l in D)for(var d=D[l].length;d>0;d--)D[l][D[l].length-d].apply(null,[].slice.call(arguments,1))}this.destroy=function(){v&&v.destroy(),M&&(J.removeEventListener("mousedown",ve,!1),J.removeEventListener("dblclick",ue,!1),t.removeEventListener("mousemove",Ue,!1),t.removeEventListener("mouseup",ge,!1),i.removeEventListener("mousewheel",Ve,!1),i.removeEventListener("DOMMouseScroll",Ve,!1),i.removeEventListener("mozfullscreenchange",pt,!1),i.removeEventListener("webkitfullscreenchange",pt,!1),i.removeEventListener("msfullscreenchange",pt,!1),i.removeEventListener("fullscreenchange",pt,!1),e.removeEventListener("resize",he,!1),e.removeEventListener("orientationchange",he,!1),i.removeEventListener("keydown",Oe,!1),i.removeEventListener("keyup",De,!1),i.removeEventListener("blur",Xe,!1),t.removeEventListener("mouseleave",ge,!1),J.removeEventListener("touchstart",_e,!1),J.removeEventListener("touchmove",we,!1),J.removeEventListener("touchend",Se,!1),J.removeEventListener("pointerdown",Be,!1),J.removeEventListener("pointermove",ke,!1),J.removeEventListener("pointerup",Te,!1),J.removeEventListener("pointerleave",Te,!1)),i.innerHTML="",i.classList.remove("pnlm-container"),H.classList.remove("pnlm-grab"),H.classList.remove("pnlm-grabbing")}}return{viewer:function(s,u){return new o(s,u)}}})(window,document),window.requestAnimationFrame||(window.requestAnimationFrame=(function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)}})());function Ya(e,t,r){const o=Ce(null),i=Ce(r);return i.current=r,me(()=>{const s=e.current;if(!s)return;const u=window.pannellum;if(!u){console.error("[InteriorThreeSixty] pannellum global not available"),i.current.onError?.();return}const n=u.viewer(s,{type:"equirectangular",panorama:t.image,preview:t.preview,pitch:Va,yaw:Xa,hfov:Ba,maxHfov:Tt,minHfov:Ht,compass:!1,showControls:!1,keyboardZoom:!1,autoLoad:t.autoLoad});return o.current=n,n.on("load",()=>i.current.onLoad?.()),n.on("error",()=>i.current.onError?.()),n.on("mousedown",(...v)=>i.current.onMousedown?.(v[0])),n.on("mouseup",(...v)=>i.current.onMouseup?.(v[0])),n.on("touchstart",(...v)=>i.current.onTouchstart?.(v[0])),n.on("touchend",(...v)=>i.current.onTouchend?.(v[0])),()=>{o.current=null,n.destroy()}},[t.image,t.preview,t.autoLoad]),o}function Ga(e,t=50,r=200){let o=null,i=0;return(...s)=>{const u=Date.now();o&&(clearTimeout(o),o=null),u-i>=t&&(e(...s),i=u),o=setTimeout(()=>{e(...s)},r)}}const $a=({className:e})=>c(et,{className:e,customizationKey:"UI_INTERIOR_360_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"})})}),ja=({itemIndex:e,isPannellumLoaded:t,isLoading:r,progress:o,autoloadInterior360:i,loadScene:s})=>{const{emitAnalyticsEvent:u}=Je(),{displayedCategoryId:n,displayedCategoryName:v}=Qe(),m=X(f=>{u({type:"interaction",current:{category_id:n,category_name:v,item_type:"interior-360",item_position:e},action:{name:"Interior 360 Play",field:"interior_360_play",value:f}})},[u,n,v,e]),L=X(()=>{s(),m("click")},[s,m]);return me(()=>{i&&(s(),m("auto"))},[i,s,m]),t?null: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(oo,{className:"size-20"}),c(rt,{color:"neutral",shape:"icon",onClick:L,children:c($a,{className:"size-full"})}),c("div",{className:le("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",!r&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${o}%`}})})]})})},qa=e=>{const{itemIndex:t,src:r,poster:o,onLoaded:i,onError:s,onlyPreload:u}=e,{autoLoadInterior360:n}=Je(),{isShowingDetails:v,zoom:m,setZoom:L}=Qe(),[f,p]=Za(r),a=Ce(null),[b,I]=be(!1),[k,g]=be(n);me(()=>{n&&g(!0)},[n]);const x=X(()=>{i?.(),I(!0)},[i]),E=X(N=>{N instanceof MouseEvent&&N.button!==0||(N.preventDefault(),N.stopPropagation(),N.stopImmediatePropagation())},[]),_=X(()=>{g(!0)},[]),M=Ya(a,{image:r,preview:o,autoLoad:k},{onLoad:x,onError:s,onMousedown:E,onMouseup:E,onTouchstart:E,onTouchend:E});return me(()=>{if(u)return;const N=M.current;if(!N||!b)return;const $=1,T=ot((m-$)/(vt-$),0,1),U=ot(Tt-T*(Tt-Ht),Ht,Tt);N.setHfov(U)},[m,b,M,u]),me(()=>{if(u)return;const N=a.current;if(!N||!b)return;const T=Ga(Z=>{Z.preventDefault();const R=M.current;if(!R)return;const Y=$r(R.getHfov(),Ht,Tt,vt,yt),j=(Z.deltaY<0?"zoom-in":"zoom-out")==="zoom-in"?Math.min(Y+yt,vt):Math.max(Y-yt,1);L(j)},100,150),U=Z=>{Z.preventDefault();const R=M.current;if(!R)return;const Y=$r(R.getHfov(),Ht,Tt,vt,yt,!0);L(Y)};return N.addEventListener("wheel",T),N.addEventListener("dblclick",U),()=>{N.removeEventListener("wheel",T),N.removeEventListener("dblclick",U)}},[b,L,M,u]),c("div",{className:le("relative aspect-[4/3] w-full overflow-hidden bg-transparent"),children:c("div",{className:le("size-full",v?"scale-105":"scale-100"),children:[c("div",{ref:a,className:"size-full"}),c(ja,{isPannellumLoaded:b,isLoading:p,progress:f,autoloadInterior360:n,loadScene:_,itemIndex:t})]})})},Ka=e=>{const{itemIndex:t}=e,{setItemInteraction:r}=Qe(),[o,i]=be(),s=X(()=>{i("spin")},[]),u=X(()=>{i("error")},[]);return me(()=>{o===null||o==="error"||r(t,o==="spin"?"running":"ready")},[t,r,o]),o==="error"?c(qt,{className:"text-background",text:"Interior Spin could not be loaded"}):c(qa,{...e,onLoaded:s,onError:u})},po="data:image/svg+xml,%3csvg%20width='90'%20height='57'%20viewBox='0%200%20138%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='137.164'%20height='48'%20rx='24'%20fill='white'%20fill-opacity='0.65'/%3e%3cpath%20d='M31%2030L25%2024L31%2018'%20stroke='%231B5DF5'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M51.1368%2034C47.4684%2034%2045.2139%2032.4218%2044.3068%2030.5385C44.0934%2030.1008%2044%2029.6764%2044%2029.2785C44%2028.244%2044.667%2027.5942%2045.7742%2027.5942C46.5746%2027.5942%2047.0815%2027.9125%2047.4817%2028.6419C48.162%2029.9814%2049.2026%2030.7772%2051.2035%2030.7772C53.1779%2030.7772%2054.5385%2029.6366%2054.5385%2028.0451C54.5519%2026.1883%2053.1779%2025.1538%2050.8434%2025.1538H50.003C49.0291%2025.1538%2048.4689%2024.5836%2048.4689%2023.7215C48.4689%2022.8859%2049.0291%2022.3024%2050.003%2022.3024H50.79C52.8043%2022.3024%2054.1116%2021.2149%2054.1116%2019.6499C54.1116%2018.1114%2053.0711%2017.0902%2051.1235%2017.0902C49.496%2017.0902%2048.5089%2017.7666%2047.8819%2019.1194C47.4417%2020.0212%2046.9748%2020.3528%2046.0677%2020.3528C44.9471%2020.3528%2044.3735%2019.7029%2044.3735%2018.7347C44.3735%2018.2838%2044.4669%2017.8992%2044.667%2017.4483C45.5207%2015.5782%2047.7085%2014.0133%2051.1102%2014.0133C55.1788%2014.0133%2057.9269%2016.0159%2057.9269%2019.0796C57.9269%2021.5066%2056.1793%2023.0981%2053.9115%2023.5623V23.6419C56.7796%2023.9072%2058.6339%2025.5782%2058.6339%2028.2175C58.6339%2031.6923%2055.6057%2034%2051.1368%2034Z'%20fill='%231B5DF5'/%3e%3cpath%20d='M68.7388%2034C65.684%2034%2063.2561%2032.5809%2061.8421%2029.7692C61.1084%2028.2838%2060.7082%2026.3873%2060.7082%2024.1592C60.7082%2017.8196%2063.7497%2014%2068.7522%2014C71.9404%2014%2074.2349%2015.3395%2075.142%2017.13C75.3287%2017.5013%2075.4221%2017.8462%2075.4221%2018.2042C75.4221%2019.0928%2074.7951%2019.7825%2073.7413%2019.7825C72.9409%2019.7825%2072.4606%2019.4377%2071.8737%2018.7613C70.9933%2017.6605%2070.0595%2017.1698%2068.7388%2017.1698C65.9908%2017.1698%2064.5901%2019.7692%2064.5634%2023.8541V24.0531H64.6435C65.3905%2022.2759%2067.2848%2020.9761%2069.886%2020.9761C73.6079%2020.9761%2076.1558%2023.6154%2076.1558%2027.2095C76.1558%2031.1751%2073.0343%2034%2068.7388%2034ZM68.6855%2030.817C70.6598%2030.817%2072.2205%2029.305%2072.2339%2027.382C72.2339%2025.366%2070.7531%2023.9337%2068.7255%2023.9337C66.6845%2023.9337%2065.1637%2025.3528%2065.1637%2027.3024C65.1637%2029.2785%2066.7111%2030.817%2068.6855%2030.817Z'%20fill='%231B5DF5'/%3e%3cpath%20d='M85.3201%2034C80.4377%2034%2077.4629%2030.1671%2077.4629%2023.9735C77.4629%2017.7931%2080.4644%2014%2085.3201%2014C90.1758%2014%2093.164%2017.7798%2093.164%2023.9602C93.164%2030.1406%2090.2025%2034%2085.3201%2034ZM85.3201%2030.7905C87.6946%2030.7905%2089.0686%2028.3634%2089.0686%2023.9735C89.0686%2019.6101%2087.6813%2017.2095%2085.3201%2017.2095C82.9723%2017.2095%2081.5583%2019.6233%2081.5583%2023.9735C81.5583%2028.3634%2082.9456%2030.7905%2085.3201%2030.7905Z'%20fill='%231B5DF5'/%3e%3cpath%20d='M106.164%2030L112.164%2024L106.164%2018'%20stroke='%231B5DF5'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ja={autonation:{playButton:{default:"data:image/svg+xml,%3csvg%20width='78'%20height='78'%20viewBox='0%200%2078%2078'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.36035%2038.4241C1.36035%2017.9895%2017.9258%201.42407%2038.3604%201.42407C58.7949%201.42407%2075.3604%2017.9895%2075.3604%2038.4241C75.3604%2058.8586%2058.7949%2075.4241%2038.3604%2075.4241C17.9258%2075.4241%201.36035%2058.8586%201.36035%2038.4241Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M63.6101%2047.2044L66.7877%2048.587L66.5803%2049.0636L63.8703%2047.8845L63.181%2049.4687L62.7134%2049.2653L63.6101%2047.2044ZM61.5503%2054.7756C61.7117%2054.8903%2061.8699%2054.9725%2062.025%2055.022C62.1809%2055.0762%2062.3281%2055.0999%2062.4666%2055.093C62.6077%2055.0881%2062.7369%2055.0545%2062.8542%2054.9921C62.9696%2054.9324%2063.0674%2054.8461%2063.1478%2054.7331C63.2281%2054.6201%2063.2775%2054.4994%2063.2961%2054.3708C63.3154%2054.2469%2063.3045%2054.1197%2063.2636%2053.9893C63.2227%2053.859%2063.151%2053.7291%2063.0487%2053.5996C62.9491%2053.4721%2062.8186%2053.3509%2062.6572%2053.2361C62.4958%2053.1214%2062.3372%2053.0369%2062.1813%2052.9828C62.0262%2052.9332%2061.8791%2052.9095%2061.7398%2052.9117C61.6013%2052.9185%2061.4744%2052.9518%2061.359%2053.0115C61.2418%2053.0739%2061.143%2053.1616%2061.0626%2053.2745C60.9823%2053.3875%2060.9325%2053.506%2060.9132%2053.6299C60.8946%2053.7585%2060.9058%2053.888%2060.9468%2054.0183C60.9858%2054.1514%2061.0551%2054.2817%2061.1548%2054.4092C61.2571%2054.5387%2061.3889%2054.6608%2061.5503%2054.7756ZM61.2514%2055.213C61.0308%2055.0561%2060.8515%2054.884%2060.7134%2054.6967C60.5779%2054.5113%2060.4839%2054.3189%2060.4313%2054.1195C60.3795%2053.9247%2060.3713%2053.7285%2060.4065%2053.5308C60.4418%2053.3332%2060.5235%2053.1443%2060.6517%2052.9641C60.7779%2052.7866%2060.9272%2052.6477%2061.0997%2052.5476C61.2748%2052.4494%2061.4629%2052.3928%2061.6639%2052.3778C61.8649%2052.3629%2062.0752%2052.3889%2062.2948%2052.456C62.5151%2052.5276%2062.7356%2052.6419%2062.9561%2052.7987C63.1767%2052.9556%2063.3547%2053.1267%2063.4901%2053.3121C63.6282%2053.4994%2063.7232%2053.6905%2063.775%2053.8853C63.8276%2054.0847%2063.8363%2054.2832%2063.801%2054.4808C63.7657%2054.6785%2063.685%2054.8661%2063.5587%2055.0436C63.4306%2055.2238%2063.2789%2055.363%2063.1038%2055.4612C62.9314%2055.5613%2062.7446%2055.6188%2062.5436%2055.6338C62.3426%2055.6488%2062.1319%2055.6205%2061.9116%2055.5488C61.692%2055.4818%2061.4719%2055.3698%2061.2514%2055.213ZM58.2673%2059.1725C58.324%2059.2057%2058.3876%2059.2416%2058.4581%2059.2803C58.5286%2059.3189%2058.5991%2059.3575%2058.6696%2059.3961C58.7376%2059.437%2058.8012%2059.4729%2058.8604%2059.5039C58.9193%2059.5396%2058.9647%2059.5676%2058.9963%2059.5879C58.9793%2059.5544%2058.9561%2059.5064%2058.9265%2059.4442C58.8992%2059.3844%2058.8686%2059.3186%2058.8349%2059.2468C58.8033%2059.1774%2058.7708%2059.1045%2058.7373%2059.028C58.7013%2058.9538%2058.6709%2058.8856%2058.646%2058.8236L58.3207%2058.0501L57.5273%2058.7669L58.2673%2059.1725ZM56.3301%2058.1139L57.0977%2058.5279L58.1262%2057.5986L57.7883%2056.7963L58.1887%2056.4346L59.5863%2059.8421L59.1786%2060.2105L55.9187%2058.4857L56.3301%2058.1139ZM52.6993%2062.9259C52.7889%2063.0838%2052.8889%2063.2168%2052.9995%2063.3248C53.1117%2063.4357%2053.2363%2063.515%2053.3732%2063.5625C53.5073%2063.6117%2053.6536%2063.6255%2053.8121%2063.6039C53.9677%2063.584%2054.1346%2063.5235%2054.3126%2063.4226L54.6829%2063.2127L53.4719%2061.0766L53.1016%2061.2866C52.9236%2061.3875%2052.7861%2061.4996%2052.689%2061.6229C52.5891%2061.7478%2052.5258%2061.8804%2052.4992%2062.0208C52.4696%2062.1627%2052.4728%2062.3089%2052.5087%2062.4592C52.5463%2062.6124%2052.6098%2062.768%2052.6993%2062.9259ZM52.2385%2063.1872C52.0872%2062.9202%2051.998%2062.6691%2051.9709%2062.4341C51.941%2062.2006%2051.9585%2061.9839%2052.0235%2061.784C52.0901%2061.5869%2052.1961%2061.4092%2052.3415%2061.2508C52.4841%2061.0941%2052.6544%2060.9596%2052.8525%2060.8473L53.6751%2060.381L55.3842%2063.3956L54.5616%2063.8619C54.3606%2063.9758%2054.1549%2064.0546%2053.9443%2064.098C53.7309%2064.1432%2053.5231%2064.1414%2053.3211%2064.0929C53.1206%2064.0471%2052.928%2063.9515%2052.743%2063.806C52.5581%2063.6604%2052.3899%2063.4542%2052.2385%2063.1872ZM43.3091%2065.6047C43.2474%2065.2537%2043.3126%2064.9674%2043.5049%2064.7459C43.6977%2064.5277%2043.9956%2064.3831%2044.3987%2064.3122C44.5189%2064.291%2044.6415%2064.2829%2044.7663%2064.2877C44.8912%2064.2926%2045.0131%2064.3097%2045.1322%2064.339C45.2481%2064.3688%2045.3575%2064.4099%2045.4605%2064.4622C45.5641%2064.5177%2045.6529%2064.5841%2045.7268%2064.6616L45.3951%2065.0618C45.2677%2064.9468%2045.1234%2064.87%2044.9625%2064.8313C44.8021%2064.7958%2044.6439%2064.7918%2044.4879%2064.8193C44.2148%2064.8673%2044.0317%2064.9498%2043.9383%2065.0668C43.8423%2065.1875%2043.8097%2065.3357%2043.8406%2065.5112C43.8714%2065.6867%2043.9525%2065.8048%2044.0839%2065.8655C44.2157%2065.9294%2044.3711%2065.9457%2044.5498%2065.9142L44.8668%2065.8584L44.9543%2066.3558L44.6422%2066.4107C44.4829%2066.4387%2044.3707%2066.5053%2044.3054%2066.6107C44.2402%2066.716%2044.219%2066.8336%2044.2419%2066.9636C44.2505%2067.0124%2044.2694%2067.0627%2044.2986%2067.1145C44.3278%2067.1663%2044.3708%2067.2107%2044.4276%2067.2476C44.4843%2067.2846%2044.5575%2067.3102%2044.6472%2067.3246C44.7342%2067.3428%2044.8411%2067.3408%2044.9678%2067.3185C45.1043%2067.2944%2045.223%2067.2451%2045.3238%2067.1704C45.4213%2067.0963%2045.5084%2067.0005%2045.5849%2066.8832L46.0287%2067.1771C45.9087%2067.3523%2045.7695%2067.4941%2045.6109%2067.6024C45.4497%2067.7146%2045.2618%2067.7895%2045.0473%2067.8272C44.888%2067.8553%2044.7332%2067.8607%2044.5827%2067.8436C44.4328%2067.8298%2044.299%2067.793%2044.1813%2067.7333C44.0635%2067.6736%2043.9635%2067.5907%2043.8811%2067.4845C43.7994%2067.3816%2043.7453%2067.2554%2043.719%2067.1059C43.683%2066.9011%2043.6956%2066.7347%2043.7568%2066.6067C43.8148%2066.4792%2043.8966%2066.3726%2044.0022%2066.287C43.8317%2066.2701%2043.683%2066.2058%2043.5561%2066.0941C43.4292%2065.9824%2043.3469%2065.8192%2043.3091%2065.6047ZM38.1161%2066.0627C38.1101%2066.2706%2038.1749%2066.4243%2038.3107%2066.524C38.4464%2066.627%2038.6379%2066.6822%2038.8853%2066.6894C39.1394%2066.6968%2039.3404%2066.6514%2039.4886%2066.5534C39.6366%2066.4587%2039.7136%2066.309%2039.7196%2066.1045C39.7221%2066.0187%2039.7079%2065.9374%2039.6772%2065.8606C39.6464%2065.7838%2039.5989%2065.7147%2039.5346%2065.6534C39.467%2065.5953%2039.3842%2065.5466%2039.2863%2065.5075C39.1883%2065.4716%2039.0749%2065.4518%2038.9463%2065.448C38.6824%2065.4403%2038.4795%2065.4906%2038.3377%2065.5987C38.1958%2065.7101%2038.1219%2065.8648%2038.1161%2066.0627ZM37.5913%2066.0573C37.5968%2065.8693%2037.6363%2065.7037%2037.7098%2065.5606C37.7833%2065.4174%2037.8825%2065.2998%2038.0073%2065.2077C38.1322%2065.1156%2038.2778%2065.0472%2038.4442%2065.0025C38.6106%2064.9579%2038.7895%2064.9383%2038.9808%2064.9439C39.1622%2064.9492%2039.3314%2064.9789%2039.4883%2065.033C39.6451%2065.0904%2039.7813%2065.1769%2039.8968%2065.2925C40.009%2065.408%2040.0971%2065.5542%2040.1613%2065.7311C40.2222%2065.9078%2040.2491%2066.1183%2040.242%2066.3624C40.2376%2066.5142%2040.2181%2066.6721%2040.1836%2066.8362C40.1491%2067.0002%2040.0966%2067.1605%2040.026%2067.3169C39.9521%2067.4732%2039.8586%2067.6224%2039.7455%2067.7644C39.6291%2067.9063%2039.4901%2068.031%2039.3285%2068.1385C39.1668%2068.2461%2038.9795%2068.3314%2038.7663%2068.3945C38.5499%2068.4576%2038.3046%2068.49%2038.0305%2068.492L38.0448%2068.0021C38.4444%2067.9972%2038.7805%2067.9063%2039.0531%2067.7293C39.3224%2067.5523%2039.5185%2067.284%2039.6412%2066.9244C39.5164%2067.0165%2039.3857%2067.082%2039.2492%2067.1209C39.1093%2067.1631%2038.9337%2067.1811%2038.7226%2067.1749C38.5643%2067.1703%2038.4165%2067.1429%2038.2793%2067.0927C38.1387%2067.0457%2038.0169%2066.9761%2037.9139%2066.8839C37.811%2066.7918%2037.7301%2066.6772%2037.6714%2066.5401C37.6126%2066.403%2037.5859%2066.2421%2037.5913%2066.0573ZM32.327%2065.9829C32.2844%2066.1594%2032.2608%2066.3269%2032.2565%2066.4854C32.2481%2066.6463%2032.264%2066.7911%2032.3042%2066.9197C32.3413%2067.0475%2032.4049%2067.1562%2032.4953%2067.246C32.5824%2067.335%2032.6998%2067.3973%2032.8473%2067.433C32.9949%2067.4687%2033.1278%2067.4668%2033.2459%2067.4275C33.3633%2067.3914%2033.4693%2067.3253%2033.5638%2067.2293C33.6543%2067.1358%2033.7326%2067.0155%2033.7987%2066.8685C33.8641%2066.7247%2033.9181%2066.5646%2033.9607%2066.3882C34.0034%2066.2117%2034.0289%2066.043%2034.0373%2065.8821C34.0416%2065.7235%2034.0253%2065.5804%2033.9883%2065.4526C33.9481%2065.324%2033.8844%2065.2153%2033.7973%2065.1263C33.7069%2065.0365%2033.588%2064.9738%2033.4404%2064.9381C33.2928%2064.9024%2033.1604%2064.9027%2033.043%2064.9388C32.9248%2064.9781%2032.8205%2065.0446%2032.7299%2065.1381C32.6354%2065.2341%2032.5555%2065.354%2032.4902%2065.4978C32.4241%2065.6448%2032.3697%2065.8065%2032.327%2065.9829ZM31.8146%2065.8692C31.8767%2065.6126%2031.9626%2065.3838%2032.0723%2065.1828C32.1812%2064.9851%2032.3105%2064.8228%2032.46%2064.696C32.6095%2064.5691%2032.7781%2064.4826%2032.9659%2064.4363C33.1496%2064.3924%2033.3506%2064.3969%2033.5687%2064.4496C33.7868%2064.5024%2033.9692%2064.5906%2034.1159%2064.7144C34.2585%2064.8405%2034.3678%2064.9926%2034.4436%2065.1705C34.5154%2065.3509%2034.5546%2065.5539%2034.5612%2065.7796C34.5645%2066.0045%2034.5352%2066.2452%2034.4731%2066.5019C34.4118%2066.7553%2034.3267%2066.9809%2034.2178%2067.1786C34.1081%2067.3796%2033.9785%2067.5435%2033.8289%2067.6703C33.6794%2067.7972%2033.5124%2067.8841%2033.3279%2067.9312C33.1401%2067.9774%2032.9372%2067.9742%2032.719%2067.9215C32.5009%2067.8687%2032.3205%2067.7793%2032.1778%2067.6531C32.0312%2067.5293%2031.922%2067.3773%2031.8501%2067.1969C31.7743%2067.019%2031.7351%2066.816%2031.7325%2066.5879C31.726%2066.3622%2031.7534%2066.1227%2031.8146%2065.8692ZM27.1159%2065.1708C27.0856%2065.2367%2027.0708%2065.3044%2027.0716%2065.3738C27.0681%2065.4448%2027.0784%2065.5131%2027.1027%2065.5788C27.1241%2065.6431%2027.1592%2065.701%2027.2082%2065.7525C27.2527%2065.8057%2027.3095%2065.8481%2027.3785%2065.8798C27.4475%2065.9115%2027.5181%2065.9276%2027.5905%2065.9282C27.6585%2065.9304%2027.7254%2065.9193%2027.791%2065.895C27.8537%2065.8693%2027.9123%2065.8327%2027.9668%2065.7851C28.017%2065.7391%2028.0572%2065.6832%2028.0875%2065.6172C28.1192%2065.5482%2028.1368%2065.4782%2028.1404%2065.4072C28.141%2065.3349%2028.1306%2065.2665%2028.1093%2065.2022C28.085%2065.1366%2028.0505%2065.0772%2028.0059%2065.024C27.957%2064.9725%2027.898%2064.9308%2027.829%2064.8992C27.7601%2064.8675%2027.6916%2064.8505%2027.6236%2064.8483C27.5512%2064.8478%2027.4837%2064.8603%2027.421%2064.886C27.3554%2064.9103%2027.2968%2064.947%2027.2452%2064.9959C27.1907%2065.0435%2027.1476%2065.1018%2027.1159%2065.1708ZM26.711%2064.9848C26.7689%2064.8588%2026.8458%2064.7507%2026.9418%2064.6604C27.0364%2064.5731%2027.1427%2064.5076%2027.2609%2064.4638C27.3791%2064.42%2027.5025%2064.4004%2027.6311%2064.4051C27.7597%2064.4097%2027.887%2064.4409%2028.013%2064.4988C28.139%2064.5567%2028.2456%2064.6329%2028.3329%2064.7275C28.4202%2064.8221%2028.4857%2064.9285%2028.5295%2065.0466C28.5702%2065.1634%2028.5898%2065.2868%2028.5882%2065.4168C28.5822%2065.5485%2028.5503%2065.6773%2028.4924%2065.8032C28.4359%2065.9262%2028.3604%2066.0313%2028.2658%2066.1186C28.1682%2066.2045%2028.0625%2066.2685%2027.9487%2066.3107C27.8305%2066.3544%2027.7071%2066.374%2027.5785%2066.3694C27.4485%2066.3678%2027.3205%2066.338%2027.1945%2066.2802C27.0686%2066.2223%2026.9627%2066.1446%2026.8767%2066.047C26.7894%2065.9524%2026.7239%2065.846%2026.6801%2065.7278C26.635%2065.6127%2026.6147%2065.4908%2026.6193%2065.3621C26.624%2065.2335%2026.6545%2065.1077%2026.711%2064.9848ZM21.0589%2058.281L21.4547%2058.6622L19.9168%2061.9925L19.5104%2061.601L20.5217%2059.5094C20.5441%2059.4623%2020.57%2059.4093%2020.5992%2059.3504C20.6262%2059.2939%2020.6543%2059.2385%2020.6836%2059.1843C20.7106%2059.1278%2020.7376%2059.0759%2020.7648%2059.0287C20.7872%2058.9816%2020.8064%2058.9451%2020.8222%2058.9191C20.7969%2058.9359%2020.7623%2058.9576%2020.7184%2058.9841C20.6699%2059.0107%2020.6191%2059.0396%2020.566%2059.0709C20.5105%2059.1%2020.4539%2059.1302%2020.3961%2059.1616C20.3384%2059.1931%2020.2864%2059.2209%2020.2401%2059.2451L18.1984%2060.3371L17.7991%2059.9524L21.0589%2058.281ZM18.1215%2055.3391L15.3278%2057.3893L15.0202%2056.9702L17.814%2054.92L18.1215%2055.3391ZM15.9886%2052.3007L12.8819%2053.836L11.8927%2051.8344L12.3454%2051.6107L13.1043%2053.1463L13.8721%2052.7668L13.4312%2051.8748L13.8839%2051.6511L14.3248%2052.5431L15.3056%2052.0584L14.5138%2050.4562L14.9665%2050.2325L15.9886%2052.3007ZM13.0654%2044.7145L13.187%2045.225L11.1353%2046.2685C11.108%2046.2818%2011.0745%2046.2982%2011.0351%2046.3178C10.9925%2046.3381%2010.9514%2046.3581%2010.912%2046.3777C10.8693%2046.398%2010.8299%2046.4176%2010.7936%2046.4364C10.7566%2046.452%2010.7289%2046.4637%2010.7104%2046.4715C10.7304%2046.4701%2010.7609%2046.4697%2010.8017%2046.4701C10.8417%2046.4674%2010.8854%2046.4654%2010.9326%2046.4644C10.9766%2046.464%2011.0223%2046.4634%2011.0695%2046.4623C11.1136%2046.462%2011.1508%2046.4616%2011.1812%2046.4611L13.4887%2046.4915L13.608%2046.9924L10.4011%2048.4841L10.2795%2047.9736L12.3116%2047.062C12.3366%2047.0527%2012.3675%2047.0402%2012.4045%2047.0246C12.4407%2047.0058%2012.479%2046.9882%2012.5192%2046.9719C12.5586%2046.9523%2012.5984%2046.9343%2012.6386%2046.918C12.6756%2046.9024%2012.7082%2046.8895%2012.7363%2046.8794C12.7067%2046.8831%2012.6718%2046.8863%2012.6318%2046.8891C12.5909%2046.8886%2012.5485%2046.8885%2012.5045%2046.8889C12.4605%2046.8892%2012.4184%2046.8907%2012.3784%2046.8935C12.3375%2046.893%2012.3035%2046.8926%2012.2763%2046.8923L10.0144%2046.8612L9.91119%2046.4278L11.9619%2045.3591C12.0038%2045.3355%2012.0614%2045.3066%2012.1346%2045.2722C12.2078%2045.2377%2012.2738%2045.2085%2012.3325%2045.1843C12.2652%2045.1867%2012.1915%2045.1907%2012.1114%2045.1962C12.0281%2045.2025%2011.9648%2045.2074%2011.9215%2045.2109L9.64731%2045.3202L9.53029%2044.829L13.0654%2044.7145ZM10.5555%2035.995C10.6605%2036.0061%2010.7553%2036.036%2010.8397%2036.0847C10.9246%2036.1302%2010.9978%2036.191%2011.0594%2036.2672C11.1182%2036.3397%2011.1624%2036.424%2011.1921%2036.5201C11.2188%2036.6125%2011.2269%2036.7096%2011.2161%2036.8113C11.2051%2036.9164%2011.1768%2037.0113%2011.1314%2037.0961C11.0826%2037.1806%2011.0218%2037.2538%2010.9489%2037.3158C10.8731%2037.3742%2010.7888%2037.4184%2010.696%2037.4485C10.6036%2037.4752%2010.5049%2037.4831%2010.3998%2037.472C10.2981%2037.4613%2010.2032%2037.433%2010.1151%2037.3872C10.0273%2037.3382%209.95408%2037.2773%209.89535%2037.2048C9.83369%2037.1286%209.78784%2037.0441%209.75779%2036.9513C9.72775%2036.8586%209.71826%2036.7597%209.72933%2036.6546C9.74005%2036.5529%209.76978%2036.4598%209.8185%2036.3753C9.86758%2036.2876%209.93003%2036.2145%2010.0059%2036.1561C10.0788%2036.0941%2010.1631%2036.0499%2010.2588%2036.0235C10.3548%2035.9938%2010.4537%2035.9843%2010.5555%2035.995ZM13.7648%2029.7157L10.6128%2028.2756L10.8288%2027.8028L13.517%2029.031L14.235%2027.4595L14.6988%2027.6714L13.7648%2029.7157ZM15.9499%2022.181C15.7902%2022.064%2015.6332%2021.9796%2015.4788%2021.9278C15.3237%2021.8714%2015.1769%2021.8456%2015.0383%2021.8505C14.8971%2021.8534%2014.7674%2021.8852%2014.6492%2021.9459C14.5331%2022.0039%2014.434%2022.0888%2014.352%2022.2006C14.2701%2022.3124%2014.2189%2022.4325%2014.1986%2022.5608C14.1775%2022.6844%2014.1865%2022.8117%2014.2256%2022.9427C14.2646%2023.0736%2014.3344%2023.2045%2014.4349%2023.3354C14.5327%2023.4644%2014.6614%2023.5874%2014.8211%2023.7045C14.9809%2023.8215%2015.1383%2023.9082%2015.2933%2023.9646C15.4477%2024.0164%2015.5945%2024.0422%2015.7338%2024.0419C15.8724%2024.0371%2015.9998%2024.0057%2016.116%2023.9476C16.2341%2023.8869%2016.3342%2023.8007%2016.4161%2023.6889C16.4981%2023.5771%2016.5496%2023.4593%2016.5706%2023.3356C16.591%2023.2074%2016.5817%2023.0777%2016.5426%2022.9468C16.5055%2022.8132%2016.438%2022.6819%2016.3402%2022.553C16.2397%2022.4221%2016.1097%2022.2981%2015.9499%2022.181ZM16.2551%2021.7479C16.4734%2021.9079%2016.6502%2022.0825%2016.7856%2022.2718C16.9184%2022.4591%2017.0097%2022.6529%2017.0594%2022.853C17.1084%2023.0485%2017.1139%2023.2448%2017.0758%2023.442C17.0377%2023.6391%2016.9533%2023.8268%2016.8226%2024.0052C16.6938%2024.1809%2016.5425%2024.3175%2016.3687%2024.4152C16.1922%2024.5108%2016.0033%2024.5647%2015.8021%2024.5769C15.6009%2024.589%2015.391%2024.56%2015.1724%2024.4898C14.9531%2024.4149%2014.7343%2024.2975%2014.516%2024.1376C14.2977%2023.9776%2014.1222%2023.8039%2013.9894%2023.6166C13.854%2023.4273%2013.7618%2023.2349%2013.7127%2023.0394C13.663%2022.8393%2013.6572%2022.6407%2013.6953%2022.4435C13.7334%2022.2464%2013.8168%2022.06%2013.9456%2021.8843C14.0763%2021.706%2014.2299%2021.5689%2014.4064%2021.4733C14.5802%2021.3756%2014.7678%2021.3208%2014.969%2021.3086C15.1702%2021.2965%2015.3804%2021.3279%2015.5998%2021.4027C15.8184%2021.4729%2016.0368%2021.588%2016.2551%2021.7479ZM19.3021%2017.8311C19.2459%2017.797%2019.1829%2017.76%2019.1131%2017.7202C19.0432%2017.6804%2018.9734%2017.6407%2018.9035%2017.6009C18.8362%2017.559%2018.7732%2017.522%2018.7145%2017.49C18.6562%2017.4533%2018.6113%2017.4246%2018.58%2017.4038C18.5964%2017.4376%2018.6189%2017.4859%2018.6474%2017.5486C18.6738%2017.6089%2018.7033%2017.6752%2018.7358%2017.7475C18.7662%2017.8174%2018.7975%2017.8908%2018.8298%2017.9678C18.8645%2018.0427%2018.8938%2018.1113%2018.9177%2018.1737L19.2303%2018.9525L20.0354%2018.2488L19.3021%2017.8311ZM21.2217%2018.9213L20.4609%2018.4949L19.4173%2019.4071L19.742%2020.2148L19.3357%2020.57L17.9942%2017.1399L18.408%2016.7782L21.6391%2018.5564L21.2217%2018.9213ZM24.9375%2014.1721C24.8509%2014.0126%2024.7534%2013.8778%2024.6448%2013.7677C24.5347%2013.6547%2024.4116%2013.5732%2024.2755%2013.5231C24.1424%2013.4715%2023.9964%2013.455%2023.8375%2013.4736C23.6815%2013.4906%2023.5136%2013.5479%2023.3338%2013.6455L22.9596%2013.8486L24.1307%2016.0068L24.5049%2015.8037C24.6847%2015.7061%2024.8243%2015.5966%2024.9236%2015.4751C25.0258%2015.3521%2025.0915%2015.2206%2025.1208%2015.0808C25.153%2014.9395%2025.1525%2014.7933%2025.1194%2014.6423C25.0847%2014.4884%2025.0241%2014.3317%2024.9375%2014.1721ZM25.4031%2013.9195C25.5495%2014.1893%2025.634%2014.4419%2025.6567%2014.6774C25.6822%2014.9114%2025.6607%2015.1277%2025.592%2015.3264C25.5218%2015.5222%2025.4125%2015.698%2025.2641%2015.8536C25.1187%2016.0076%2024.9459%2016.1389%2024.7457%2016.2475L23.9146%2016.6985L22.2619%2013.6527L23.0929%2013.2017C23.296%2013.0915%2023.5032%2013.0167%2023.7145%2012.9771C23.9287%2012.9359%2024.1364%2012.9415%2024.3375%2012.9938C24.5371%2013.0433%2024.728%2013.1425%2024.9102%2013.2914C25.0924%2013.4404%2025.2567%2013.6497%2025.4031%2013.9195ZM34.3617%2011.6339C34.4181%2011.9858%2034.3486%2012.2711%2034.153%2012.4896C33.9569%2012.7049%2033.6568%2012.845%2033.2527%2012.9098C33.1322%2012.9291%2033.0095%2012.9354%2032.8847%2012.9287C32.76%2012.922%2032.6383%2012.9031%2032.5197%2012.872C32.4043%2012.8403%2032.2955%2012.7976%2032.1933%2012.7438C32.0905%2012.6868%2032.0028%2012.619%2031.93%2012.5404L32.2677%2012.1453C32.3934%2012.2621%2032.5365%2012.3411%2032.6968%2012.3823C32.8566%2012.4201%2033.0148%2012.4265%2033.1712%2012.4014C33.4449%2012.3575%2033.6293%2012.2778%2033.7244%2012.1623C33.8223%2012.043%2033.8571%2011.8953%2033.8289%2011.7194C33.8007%2011.5434%2033.7214%2011.4241%2033.591%2011.3614C33.4601%2011.2955%2033.305%2011.2769%2033.1258%2011.3057L32.8081%2011.3567L32.7281%2010.8581L33.0409%2010.8079C33.2006%2010.7823%2033.3138%2010.7173%2033.3807%2010.613C33.4475%2010.5087%2033.4705%2010.3914%2033.4496%2010.261C33.4417%2010.2122%2033.4236%2010.1616%2033.3951%2010.1093C33.3667%2010.0571%2033.3244%2010.012%2033.2682%209.97426C33.212%209.93648%2033.1392%209.90972%2033.0497%209.89398C32.963%209.87446%2032.8562%209.8749%2032.7291%209.89528C32.5922%209.91724%2032.4728%209.9648%2032.3709%2010.038C32.2723%2010.1106%2032.1838%2010.205%2032.1055%2010.3212L31.6662%2010.0206C31.7888%209.84723%2031.9302%209.70756%2032.0903%209.60165C32.2532%209.49196%2032.4422%209.41986%2032.6573%209.38536C32.817%209.35975%2032.9719%209.35662%2033.1221%209.37599C33.2717%209.39209%2033.405%209.43088%2033.5218%209.49236C33.6386%209.55385%2033.7374%209.63828%2033.8181%209.74566C33.8983%209.84978%2033.9505%209.97679%2033.9745%2010.1267C34.0074%2010.332%2033.9923%2010.4982%2033.9291%2010.6253C33.8692%2010.7519%2033.7858%2010.8572%2033.679%2010.9412C33.8492%2010.9607%2033.997%2011.0272%2034.1221%2011.1409C34.2473%2011.2545%2034.3272%2011.4188%2034.3617%2011.6339ZM39.5621%2011.2542C39.5713%2011.0465%2039.5088%2010.8918%2039.3745%2010.79C39.2404%2010.685%2039.0497%2010.627%2038.8024%2010.616C38.5486%2010.6048%2038.3468%2010.6471%2038.1972%2010.7429C38.0478%2010.8353%2037.9685%2010.9838%2037.9595%2011.1882C37.9557%2011.2739%2037.9686%2011.3555%2037.9982%2011.4327C38.0278%2011.51%2038.0743%2011.5798%2038.1376%2011.6421C38.2044%2011.7012%2038.2864%2011.7511%2038.3837%2011.7917C38.4812%2011.8291%2038.5942%2011.8506%2038.7228%2011.8563C38.9865%2011.868%2039.1901%2011.8208%2039.3336%2011.7148C39.4772%2011.6056%2039.5533%2011.452%2039.5621%2011.2542ZM40.0868%2011.2675C40.0785%2011.4555%2040.0365%2011.6204%2039.9608%2011.7624C39.8851%2011.9044%2039.7842%2012.0206%2039.658%2012.1108C39.5318%2012.201%2039.3851%2012.2672%2039.2181%2012.3093C39.051%2012.3515%2038.8719%2012.3683%2038.6807%2012.3599C38.4993%2012.3518%2038.3306%2012.3196%2038.1745%2012.2631C38.0186%2012.2034%2037.8838%2012.1148%2037.77%2011.9975C37.6596%2011.8803%2037.5736%2011.7327%2037.5121%2011.5549C37.4539%2011.3773%2037.4302%2011.1664%2037.441%2010.9225C37.4477%2010.7708%2037.4696%2010.6132%2037.5066%2010.4496C37.5435%2010.2861%2037.5985%2010.1267%2037.6714%209.97132C37.7477%209.81613%2037.8434%209.6684%2037.9586%209.52815C38.0772%209.38803%2038.218%209.26543%2038.3813%209.16034C38.5445%209.05524%2038.7331%208.97274%2038.9472%208.91284C39.1646%208.85309%2039.4103%208.82432%2039.6844%208.82655L39.6627%209.31617C39.2631%209.31499%2038.9256%209.40081%2038.6504%209.57363C38.3784%209.74659%2038.1784%2010.0119%2038.0502%2010.3697C38.1765%2010.2794%2038.3081%2010.2159%2038.4452%2010.179C38.5857%2010.139%2038.7615%2010.1236%2038.9725%2010.133C39.1307%2010.14%2039.2781%2010.1696%2039.4145%2010.2219C39.5544%2010.2711%2039.6751%2010.3425%2039.7767%2010.4362C39.8783%2010.5299%2039.9574%2010.6457%2040.014%2010.7836C40.0707%2010.9216%2040.0949%2011.0829%2040.0868%2011.2675ZM45.3511%2011.4213C45.3964%2011.2455%2045.4225%2011.0784%2045.4292%2010.92C45.44%2010.7592%2045.4262%2010.6142%2045.388%2010.485C45.3529%2010.3567%2045.2908%2010.247%2045.2019%2010.1559C45.1161%2010.0656%2044.9997%2010.0015%2044.8527%209.9636C44.7057%209.9257%2044.5728%209.92553%2044.454%209.96309C44.3361%209.99745%2044.2292%2010.0619%2044.1332%2010.1565C44.0413%2010.2486%2043.9612%2010.3677%2043.8929%2010.5137C43.8254%2010.6565%2043.769%2010.8158%2043.7237%2010.9916C43.6784%2011.1673%2043.6503%2011.3356%2043.6396%2011.4964C43.6328%2011.6549%2043.647%2011.7983%2043.682%2011.9266C43.7203%2012.0558%2043.7824%2012.1655%2043.8682%2012.2558C43.9571%2012.3469%2044.0751%2012.4114%2044.2221%2012.4493C44.3692%2012.4871%2044.5016%2012.4889%2044.6195%2012.4546C44.7383%2012.417%2044.8436%2012.3521%2044.9355%2012.2599C45.0315%2012.1654%2045.1132%2012.0467%2045.1807%2011.9039C45.249%2011.7579%2045.3058%2011.5971%2045.3511%2011.4213ZM45.8617%2011.5427C45.7958%2011.7984%2045.7065%2012.0258%2045.5938%2012.2251C45.4819%2012.4212%2045.3502%2012.5816%2045.1988%2012.7061C45.0474%2012.8307%2044.8775%2012.9147%2044.6891%2012.9582C44.5047%2012.9992%2044.3038%2012.9918%2044.0865%2012.9357C43.8692%2012.8797%2043.6882%2012.7888%2043.5434%2012.6628C43.4026%2012.5345%2043.2957%2012.3808%2043.2226%2012.2018C43.1534%2012.0204%2043.1173%2011.8168%2043.1142%2011.5911C43.1142%2011.3661%2043.1472%2011.1258%2043.2131%2010.8702C43.2782%2010.6177%2043.3667%2010.3934%2043.4785%2010.1973C43.5913%209.99801%2043.7233%209.83608%2043.8747%209.71151C44.0261%209.58694%2044.1944%209.50252%2044.3797%209.45825C44.5681%209.4148%2044.771%209.42108%2044.9883%209.4771C45.2056%209.53312%2045.3846%209.62528%2045.5254%209.75359C45.6702%209.87952%2045.7771%2010.0332%2045.8462%2010.2146C45.9193%2010.3936%2045.9555%2010.5972%2045.9546%2010.8253C45.9578%2011.0511%2045.9268%2011.2902%2045.8617%2011.5427ZM50.5577%2012.3223C50.5892%2012.2569%2050.6052%2012.1895%2050.6057%2012.1201C50.6106%2012.0492%2050.6015%2011.9807%2050.5785%2011.9146C50.5584%2011.8499%2050.5243%2011.7913%2050.4763%2011.7389C50.4328%2011.6849%2050.3768%2011.6414%2050.3084%2011.6084C50.24%2011.5755%2050.1697%2011.558%2050.0973%2011.5561C50.0294%2011.5526%2049.9624%2011.5624%2049.8963%2011.5855C49.8331%2011.61%2049.7739%2011.6455%2049.7184%2011.6921C49.6674%2011.7371%2049.6261%2011.7923%2049.5946%2011.8577C49.5616%2011.9261%2049.5427%2011.9957%2049.5378%2012.0666C49.5358%2012.139%2049.5449%2012.2075%2049.565%2012.2722C49.5881%2012.3383%2049.6214%2012.3983%2049.665%2012.4523C49.713%2012.5048%2049.7712%2012.5475%2049.8395%2012.5805C49.9079%2012.6134%2049.9761%2012.6317%2050.044%2012.6351C50.1164%2012.637%2050.1841%2012.6258%2050.2472%2012.6012C50.3133%2012.5782%2050.3726%2012.5426%2050.4251%2012.4946C50.4805%2012.4481%2050.5247%2012.3906%2050.5577%2012.3223ZM50.959%2012.5158C50.8988%2012.6407%2050.8198%2012.7474%2050.7222%2012.8358C50.626%2012.9213%2050.5184%2012.9849%2050.3994%2013.0264C50.2804%2013.068%2050.1567%2013.0852%2050.0282%2013.0782C49.8997%2013.0712%2049.773%2013.0375%2049.6481%2012.9773C49.5233%2012.9171%2049.4181%2012.8389%2049.3326%2012.7427C49.2471%2012.6465%2049.1836%2012.5389%2049.142%2012.4199C49.1034%2012.3023%2049.0862%2012.1786%2049.0902%2012.0486C49.0987%2011.9172%2049.133%2011.789%2049.1933%2011.6641C49.2521%2011.5423%2049.3296%2011.4386%2049.4258%2011.3531C49.5249%2011.269%2049.6318%2011.207%2049.7464%2011.1669C49.8654%2011.1254%2049.9891%2011.1081%2050.1176%2011.1152C50.2476%2011.1192%2050.375%2011.1514%2050.4998%2011.2116C50.6247%2011.2718%2050.7291%2011.3515%2050.8132%2011.4507C50.8987%2011.5469%2050.9622%2011.6545%2051.0038%2011.7735C51.0468%2011.8895%2051.0647%2012.0117%2051.0577%2012.1402C51.0507%2012.2688%2051.0178%2012.394%2050.959%2012.5158ZM56.4961%2019.3123L56.1061%2018.9252L57.6939%2015.6184L58.0944%2016.016L57.0517%2018.0921C57.0286%2018.1389%2057.0019%2018.1915%2056.9718%2018.25C56.944%2018.3061%2056.915%2018.361%2056.8849%2018.4148C56.8571%2018.4709%2056.8293%2018.5223%2056.8014%2018.5691C56.7783%2018.6159%2056.7586%2018.6521%2056.7423%2018.6779C56.7679%2018.6614%2056.8029%2018.6403%2056.8471%2018.6145C56.896%2018.5886%2056.9473%2018.5604%2057.0008%2018.5299C57.0567%2018.5017%2057.1138%2018.4723%2057.172%2018.4418C57.2303%2018.4112%2057.2827%2018.3842%2057.3293%2018.3607L59.3872%2017.2996L59.7807%2017.6902L56.4961%2019.3123ZM59.3871%2022.2996L62.2211%2020.3055L62.5202%2020.7306L59.6862%2022.7247L59.3871%2022.2996ZM61.4608%2025.3785L64.59%2023.8895L65.5493%2025.9055L65.0934%2026.1225L64.3574%2024.5758L63.584%2024.9438L64.0116%2025.8423L63.5556%2026.0593L63.1281%2025.1608L62.1402%2025.6309L62.9081%2027.2446L62.4521%2027.4616L61.4608%2025.3785ZM64.2671%2033.0066L64.1536%2032.4942L66.2216%2031.4834C66.2491%2031.4706%2066.2828%2031.4547%2066.3226%2031.4357C66.3655%2031.4161%2066.4069%2031.3968%2066.4466%2031.3778C66.4896%2031.3582%2066.5293%2031.3392%2066.5659%2031.321C66.6031%2031.306%2066.631%2031.2947%2066.6497%2031.2872C66.6296%2031.2883%2066.5992%2031.2883%2066.5584%2031.2872C66.5183%2031.2893%2066.4746%2031.2905%2066.4274%2031.2908C66.3833%2031.2904%2066.3377%2031.2904%2066.2904%2031.2907C66.2464%2031.2903%2066.2092%2031.2901%2066.1787%2031.2901L63.872%2031.2231L63.7607%2030.7204L66.9909%2029.2798L67.1044%2029.7921L65.058%2030.6713C65.0329%2030.6803%2065.0018%2030.6922%2064.9645%2030.7072C64.928%2030.7255%2064.8895%2030.7424%2064.8491%2030.7582C64.8093%2030.7771%2064.7692%2030.7944%2064.7287%2030.8102C64.6915%2030.8252%2064.6587%2030.8375%2064.6305%2030.8472C64.6602%2030.844%2064.6951%2030.8413%2064.7352%2030.8392C64.776%2030.8403%2064.8184%2030.841%2064.8624%2030.8414C64.9065%2030.8418%2064.9485%2030.8409%2064.9886%2030.8388C65.0294%2030.8399%2065.0634%2030.8408%2065.0906%2030.8416L67.3517%2030.9086L67.4481%2031.3436L65.3806%2032.3796C65.3384%2032.4025%2065.2804%2032.4305%2065.2066%2032.4638C65.1328%2032.497%2065.0664%2032.5253%2065.0073%2032.5485C65.0746%2032.5471%2065.1484%2032.5443%2065.2286%2032.54C65.312%2032.5351%2065.3753%2032.5312%2065.4187%2032.5284L67.6943%2032.4553L67.8035%2032.9483L64.2671%2033.0066ZM66.6349%2041.7727C66.5302%2041.7592%2066.4362%2041.7272%2066.3528%2041.6765C66.2691%2041.6292%2066.1972%2041.5667%2066.1373%2041.4891C66.0803%2041.4153%2066.038%2041.33%2066.0105%2041.2333C65.9858%2041.1403%2065.98%2041.043%2065.993%2040.9415C66.0065%2040.8368%2066.0369%2040.7425%2066.0843%2040.6588C66.1349%2040.5754%2066.1974%2040.5036%2066.2717%2040.4433C66.3488%2040.3866%2066.4341%2040.3443%2066.5275%2040.3164C66.6205%2040.2918%2066.7194%2040.2862%2066.8242%2040.2996C66.9256%2040.3127%2067.0199%2040.3431%2067.1069%2040.3908C67.1935%2040.4419%2067.2654%2040.5044%2067.3224%2040.5782C67.3823%2040.6558%2067.4263%2040.7413%2067.4542%2040.8347C67.4821%2040.9282%2067.4894%2041.0273%2067.4759%2041.132C67.4629%2041.2335%2067.431%2041.3259%2067.3804%2041.4092C67.3293%2041.4958%2067.2652%2041.5675%2067.1881%2041.6241C67.1138%2041.6844%2067.0285%2041.7267%2066.9322%2041.751C66.8355%2041.7785%2066.7364%2041.7857%2066.6349%2041.7727Z'%20fill='white'/%3e%3crect%20x='18.6079'%20y='18.6716'%20width='39.505'%20height='39.505'%20rx='19.7525'%20stroke='white'%20stroke-opacity='0.1'%20stroke-width='0.49505'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.085%2032.379C33.0851%2031.5988%2033.9392%2031.1196%2034.6055%2031.5255L45.1846%2037.9718C45.8238%2038.3615%2045.8237%2039.29%2045.1846%2039.6798L34.6055%2046.1271C33.9392%2046.5327%2033.085%2046.0528%2033.085%2045.2726V32.379Z'%20fill='white'/%3e%3c/svg%3e"},cursor:{default:"data:image/svg+xml,%3csvg%20width='108'%20height='68'%20viewBox='0%200%20108%2068'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_d_73_2787)'%3e%3crect%20x='12'%20y='2'%20width='84'%20height='44'%20rx='22'%20fill='white'%20shape-rendering='crispEdges'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M39.7657%2017.2278C40.0781%2017.5315%2040.0781%2018.024%2039.7657%2018.3277L33.9314%2024L39.7657%2029.6723C40.0781%2029.976%2040.0781%2030.4685%2039.7657%2030.7722C39.4533%2031.0759%2038.9467%2031.0759%2038.6343%2030.7722L32.2343%2024.55C31.9219%2024.2462%2031.9219%2023.7538%2032.2343%2023.45L38.6343%2017.2278C38.9467%2016.9241%2039.4533%2016.9241%2039.7657%2017.2278Z'%20fill='%230F0F0F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M68.2343%2017.2278C68.5467%2016.9241%2069.0533%2016.9241%2069.3657%2017.2278L75.7657%2023.45C76.0781%2023.7538%2076.0781%2024.2462%2075.7657%2024.55L69.3657%2030.7722C69.0533%2031.0759%2068.5467%2031.0759%2068.2343%2030.7722C67.9219%2030.4685%2067.9219%2029.976%2068.2343%2029.6723L74.0686%2024L68.2343%2018.3277C67.9219%2018.024%2067.9219%2017.5315%2068.2343%2017.2278Z'%20fill='%230F0F0F'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_73_2787'%20x='0'%20y='0'%20width='108'%20height='68'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='10'/%3e%3cfeGaussianBlur%20stdDeviation='6'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.227451%200%200%200%200%200.227451%200%200%200%200%200.227451%200%200%200%200.08%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_73_2787'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_73_2787'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",leftSpin:"data:image/svg+xml,%3csvg%20width='84'%20height='44'%20viewBox='0%200%2084%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='84'%20height='44'%20rx='22'%20fill='white'/%3e%3cpath%20d='M0%2022C0%209.84974%209.84974%200%2022%200H42V44H22C9.84974%2044%200%2034.1503%200%2022Z'%20fill='%23F5F5F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.7657%2015.2278C28.0781%2015.5315%2028.0781%2016.024%2027.7657%2016.3277L21.9314%2022L27.7657%2027.6723C28.0781%2027.976%2028.0781%2028.4685%2027.7657%2028.7722C27.4533%2029.0759%2026.9467%2029.0759%2026.6343%2028.7722L20.2343%2022.55C19.9219%2022.2462%2019.9219%2021.7538%2020.2343%2021.45L26.6343%2015.2278C26.9467%2014.9241%2027.4533%2014.9241%2027.7657%2015.2278Z'%20fill='%230F0F0F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.2343%2015.2278C56.5467%2014.9241%2057.0533%2014.9241%2057.3657%2015.2278L63.7657%2021.45C64.0781%2021.7538%2064.0781%2022.2462%2063.7657%2022.55L57.3657%2028.7722C57.0533%2029.0759%2056.5467%2029.0759%2056.2343%2028.7722C55.9219%2028.4685%2055.9219%2027.976%2056.2343%2027.6723L62.0686%2022L56.2343%2016.3277C55.9219%2016.024%2055.9219%2015.5315%2056.2343%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/svg%3e",rightSpin:"data:image/svg+xml,%3csvg%20width='84'%20height='44'%20viewBox='0%200%2084%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='84'%20height='44'%20rx='22'%20fill='white'/%3e%3cg%20opacity='0.5'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.7657%2015.2278C28.0781%2015.5315%2028.0781%2016.024%2027.7657%2016.3277L21.9314%2022L27.7657%2027.6723C28.0781%2027.976%2028.0781%2028.4685%2027.7657%2028.7722C27.4533%2029.0759%2026.9467%2029.0759%2026.6343%2028.7722L20.2343%2022.55C19.9219%2022.2462%2019.9219%2021.7538%2020.2343%2021.45L26.6343%2015.2278C26.9467%2014.9241%2027.4533%2014.9241%2027.7657%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/g%3e%3cpath%20d='M42%200H62C74.1503%200%2084%209.84974%2084%2022C84%2034.1503%2074.1503%2044%2062%2044H42V0Z'%20fill='%23F5F5F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.2343%2015.2278C56.5467%2014.9241%2057.0533%2014.9241%2057.3657%2015.2278L63.7657%2021.45C64.0781%2021.7538%2064.0781%2022.2462%2063.7657%2022.55L57.3657%2028.7722C57.0533%2029.0759%2056.5467%2029.0759%2056.2343%2028.7722C55.9219%2028.4685%2055.9219%2027.976%2056.2343%2027.6723L62.0686%2022L56.2343%2016.3277C55.9219%2016.024%2055.9219%2015.5315%2056.2343%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/svg%3e"}}},Jt=e=>{if(e)return Ja[e]},ho=({className:e})=>c(et,{className:e,customizationKey:"UI_360_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"})})}),Qa=750,ei=1250,ti=360,ni=480,ri=(e,t)=>({cursor:`url("${e}"), ${t}`}),oi=({images:e,itemIndex:t,onlyPreload:r})=>{const{demoSpin:o,reverse360:i,spinCursor:s,themeConfig:u}=Je(),{currentItemHotspotsVisible:n,isShowingDetails:v,isZooming:m}=Qe(),L=ze(()=>Jt(u),[u]),f=m||v,p=Ce(null),a=Ce(null),[b,I]=be(!1),[k,g]=be("default"),x=s==="grab"&&b?"grabbing":s,E=L?.cursor?ri(L.cursor[k==="left"?"leftSpin":k==="right"?"rightSpin":"default"],x):x===sn?{cursor:`url("${po}") 45 28, ew-resize`}:{cursor:x},_=Ce(0),M=Ce(null),[N,$]=be(0),T=Ce(null),U=Ce(null),Z=Ce(null),R=Ce(0),Y=16,O=Ce({timestamps:new Float64Array(10),values:new Float64Array(10),index:0,count:0}),j=Ce(o),pe=Ce(null),B=X(()=>{pe.current&&(clearTimeout(pe.current),pe.current=null)},[]),D=Ce(null),q=()=>{D.current&&(cancelAnimationFrame(D.current),D.current=null)},P=e.length,F=X(oe=>{const J=_.current;if(J===oe)return;const se=M.current;se&&(se.src=e[oe].src),_.current=oe;const S=!!e[J]?.hotspots?.length,de=!!e[oe]?.hotspots?.length;(S||de)&&$(oe)},[e]),re=X(()=>{const oe=(_.current+1)%P;F(oe)},[P,F]),H=X(()=>{const oe=(_.current-1+P)%P;F(oe)},[P,F]);return me(()=>{if(f){B();return}const oe=p.current,J=a.current;if(!oe||!J)return;j.current&&(j.current=!1,pe.current=setTimeout(()=>{const ge=Date.now(),_e=()=>{const we=()=>{const Ne=(Date.now()-ge)/ei,Be=Math.round((Te=>Te*(2-Te))(Ne)*P),ke=ot(Be%P,0,P-1);F(ke),!(Be>=P)&&_e()};D.current=requestAnimationFrame(we)};_e()},Qa));const se=ti/P;let S=null;const de=O.current,K=()=>{de.index=0,de.count=0},Pe=(ge,_e)=>{const we=de.index;de.timestamps[we]=ge,de.values[we]=_e,de.index=(we+1)%10,de.count<10&&de.count++},qe=()=>{const ge=(()=>{const Be=Date.now(),{timestamps:ke,values:Te,index:Ve,count:Oe}=de;if(Oe<2)return 0;let Xe=-1,De=-1;for(let z=0;z<Oe;z++){const ie=(Ve-1-z+10)%10;Be-ke[ie]<50&&(De===-1&&(De=ie),Xe=ie)}if(Xe===-1||De===-1||Xe===De)return 0;const Re=ke[De]-ke[Xe];return Re<=0?0:(Te[De]-Te[Xe])/(Re/1e3)})(),_e=Date.now();let we=0,Se=_e,Ne=_e;const We=()=>{const Be=()=>{const ke=Date.now(),Te=(ke-_e)/1e3,Ve=Math.pow(.05,Te),Oe=ge*Ve,Xe=(ke-Se)/1e3;if(we+=Oe*Xe,Math.abs(Oe)<5*se&&Math.abs(we)<se){D.current=null;return}const De=ke-Ne;Math.abs(we)>=se&&De>=Y&&(we>0!==i?re():H(),we=0,Ne=ke),Se=ke,We()};D.current=requestAnimationFrame(Be)};We()},je=()=>{B(),q()};I(!1);const ye=ge=>{if(ge.button!==0)return;ge.preventDefault(),ge.stopPropagation(),je(),I(!0),g("default");const _e=ge.clientX;S=_e,K(),Pe(Date.now(),_e)},h=ge=>{if(S===null)return;ge.stopPropagation();const{clientX:_e}=ge;Pe(Date.now(),_e);const we=_e-S;we!==0&&L?.cursor&&g(we<0?"left":"right"),!(Math.abs(we)<se)&&(we>0!==i?re():H(),S=_e)},w=()=>{S!==null&&(S=null,I(!1),g("default"),qe())};oe.addEventListener("mousedown",ye),document.addEventListener("mousemove",h),document.addEventListener("mouseleave",w),document.addEventListener("mouseup",w),document.addEventListener("contextmenu",w);const ee=ni/P,ae=()=>J.getBoundingClientRect().width,te=()=>J.scrollWidth/2-ae()/2,C=()=>{const ge=te();J.scrollLeft=ge};C();const ne=()=>{const ge=J.scrollLeft-te();Math.abs(ge)<ee||(ge<0!==i?re():H(),C())};J.addEventListener("scroll",ne);let Q=null;const ve=()=>{T.current=null;const ge=performance.now();if(ge-R.current<Y){T.current=requestAnimationFrame(ve);return}R.current=ge;const _e=U.current,we=Z.current;if(_e===null||we===null)return;const Se=_e-we;Se!==0&&L?.cursor&&g(Se<0?"left":"right"),!(Math.abs(Se)<se)&&(Se>0!==i?re():H(),Z.current=_e,S=_e)},ue=ge=>{if(Q!==null||ge.changedTouches.length!==1)return;je(),I(!0),g("default"),T.current!==null&&(cancelAnimationFrame(T.current),T.current=null);const _e=ge.changedTouches[0];Q=_e.identifier;const we=_e.clientX;S=we,Z.current=we,U.current=we,K(),Pe(Date.now(),we)},Ge=ge=>{if(S===null)return;let _e=null;for(let Se=0;Se<ge.changedTouches.length;Se++)if(ge.changedTouches[Se].identifier===Q){_e=ge.changedTouches[Se];break}if(!_e)return;ge.preventDefault();const we=_e.clientX;Pe(Date.now(),we),U.current=we,T.current===null&&(T.current=requestAnimationFrame(ve))},Ue=ge=>{if(S===null)return;let _e=!1;for(let we=0;we<ge.changedTouches.length;we++)if(ge.changedTouches[we].identifier===Q){_e=!0;break}_e&&(T.current!==null&&(cancelAnimationFrame(T.current),T.current=null),Q=null,S=null,Z.current=null,U.current=null,I(!1),g("default"),qe())};return J.addEventListener("touchstart",ue,{passive:!1}),J.addEventListener("touchmove",Ge,{passive:!1}),J.addEventListener("touchend",Ue),J.addEventListener("touchcancel",Ue),()=>{q(),I(!1),T.current!==null&&(cancelAnimationFrame(T.current),T.current=null),oe.removeEventListener("mousedown",ye),document.removeEventListener("mousemove",h),document.removeEventListener("mouseleave",w),document.removeEventListener("mouseup",w),document.removeEventListener("contextmenu",w),J.removeEventListener("scroll",ne),J.removeEventListener("touchstart",ue),J.removeEventListener("touchmove",Ge),J.removeEventListener("touchend",Ue),J.removeEventListener("touchcancel",Ue)}},[B,re,H,f,i,L,P,F]),c("div",{ref:p,style:E,children:c("div",{ref:a,className:" overflow-x-scroll",children:[c("div",{className:"sticky left-0 top-0",children:c("div",{className:"relative",children:[c("img",{ref:M,src:e[0].src,className:"pointer-events-none size-full object-cover",alt:""}),n&&e[N]?.hotspots?.map((oe,J)=>c(uo,{hotspot:oe,item:{item_type:"next360",item_position:t}},`${N}-${J}`))]})}),c("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},ai=({itemIndex:e,images:t,onPlaceholderImageLoaded:r,onSpinImagesLoaded:o,onError:i})=>{const{autoLoad360:s,emitAnalyticsEvent:u,themeConfig:n}=Je(),{displayedCategoryId:v,displayedCategoryName:m}=Qe(),L=ze(()=>Jt(n),[n]),f=ze(()=>t.map(({src:x})=>x),[t]),[p,a]=be(null),b=p?[...p.values()].filter(x=>x).length/t.length*100:null,I=X(x=>{b===null&&(a(new Map(f.map(E=>[E,!1]))),u({type:"interaction",current:{category_id:v,category_name:m,item_type:"next360",item_position:e},action:{name:"Next 360 Play",field:"next360_play",value:x}}))},[b,f,u,v,m,e]),k=X(()=>{I("click")},[I]),g=X(x=>{a(E=>{const _=new Map(E);return _.set(x,!0),_})},[]);return me(()=>{s&&I("auto")},[s,I]),me(()=>{b===100&&o()},[b,o]),c("div",{className:"relative aspect-[4/3] w-full",children:[b!==null&&b!==100&&c("div",{className:"hidden",children:f.map(x=>c(st,{src:x,onLoad:()=>g(x),onError:i},x))}),c(st,{className:"size-full",src:f[0],onLoad:r}),c("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[c(In,{className:"size-20"}),c(rt,{"aria-label":"Play 360 view",className:L?.playButton?"size-[78px] border-0 bg-transparent p-0 shadow-none hover:bg-transparent":void 0,color:"neutral",shape:"icon",onClick:k,children:L?.playButton?c("img",{className:"size-full",src:L.playButton.default,alt:""}):c(ho,{className:"size-full"})}),c("div",{className:le("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",b===null&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${b??0}%`}})})]})]})},ii=e=>{const{itemIndex:t}=e,{setItemInteraction:r}=Qe(),[o,i]=be(null);return me(()=>{o===null||o==="error"||r(t,o==="spin"?"running":"ready")},[t,r,o]),o==="error"?c(qt,{className:"text-background",text:"Spin could not be loaded"}):o!=="spin"?c(ai,{...e,onPlaceholderImageLoaded:()=>i(s=>s===null?"placeholder":s),onSpinImagesLoaded:()=>i("spin"),onError:()=>i("error")}):c(oi,{...e})},si=750,li=1250,ci=360,ui=480,di=(e,t)=>({cursor:`url("${e}"), ${t}`}),fi=({images:e,onlyPreload:t})=>{const{demoSpin:r,reverse360:o,spinCursor:i,themeConfig:s}=Je(),{isShowingDetails:u,isZooming:n}=Qe(),v=ze(()=>Jt(s),[s]),m=n||u,L=Ce(null),f=Ce(null),[p,a]=be(!1),[b,I]=be("default"),k=i==="grab"&&p?"grabbing":i,g=v?.cursor?di(v.cursor[b==="left"?"leftSpin":b==="right"?"rightSpin":"default"],k):k===sn?{cursor:`url("${po}") 45 28, ew-resize`}:{cursor:k},x=Ce(r),E=Ce(null),_=X(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),M=Ce(null),N=()=>{M.current&&(cancelAnimationFrame(M.current),M.current=null)},[$,T]=be(0),U=e.length,Z=X(()=>{T(Y=>(Y-1+U)%U)},[U]),R=X(()=>{T(Y=>(Y+1)%U)},[U]);return me(()=>{if(m){_();return}const Y=L.current,O=f.current;if(!Y||!O)return;x.current&&(x.current=!1,E.current=setTimeout(()=>{const ye=Date.now(),h=()=>{const w=()=>{const ae=(Date.now()-ye)/li,C=Math.round((Q=>Q*(2-Q))(ae)*U),ne=ot(C%U,0,U-1);T(ne),!(C>=U)&&h()};M.current=requestAnimationFrame(w)};h()},si));const j=ci/U;let pe=null,B=[];const D=ye=>{B.push(ye),B.length>20&&B.shift()},q=()=>{const ye=(()=>{const te=Date.now(),C=B.filter(ve=>te-ve.timestamp<50);if(C.length<2)return 0;const ne=C[0],Q=C[C.length-1];return(Q.value-ne.value)/(.001*Math.max(Q.timestamp-ne.timestamp,1))})(),h=Date.now();let w=0,ee=h;const ae=()=>{const te=()=>{const C=Date.now(),ne=(C-h)/1e3,Q=Math.pow(.05,ne),ve=ye*Q,ue=(C-ee)/1e3;if(w+=ve*ue,Math.abs(ve)<5*j&&Math.abs(w)<j){M.current=null;return}Math.abs(w)>=j&&(w>0!==o?R():Z(),w=0),ee=C,ae()};M.current=requestAnimationFrame(te)};ae()},P=()=>{_(),N()};a(!1);const F=ye=>{if(ye.button!==0)return;ye.preventDefault(),ye.stopPropagation(),P(),a(!0),I("default");const h=ye.clientX;pe=h,B=[{timestamp:Date.now(),value:h}]},re=ye=>{if(pe===null)return;ye.stopPropagation();const{clientX:h}=ye;D({timestamp:Date.now(),value:h});const w=h-pe;w!==0&&v?.cursor&&I(w<0?"left":"right"),!(Math.abs(w)<j)&&(w>0!==o?R():Z(),pe=h)},H=()=>{pe!==null&&(pe=null,a(!1),I("default"),q())};Y.addEventListener("mousedown",F),document.addEventListener("mousemove",re),document.addEventListener("mouseleave",H),document.addEventListener("mouseup",H),document.addEventListener("contextmenu",H);const oe=ui/U,J=()=>O.getBoundingClientRect().width,se=()=>O.scrollWidth/2-J()/2,S=()=>{const ye=se();O.scrollLeft=ye};S();const de=()=>{const ye=O.scrollLeft-se();Math.abs(ye)<oe||(ye<0!==o?R():Z(),S())};O.addEventListener("scroll",de);let K=null;const Pe=ye=>{if(K!==null||ye.changedTouches.length!==1)return;P(),a(!0),I("default");const{identifier:h,clientX:w}=ye.changedTouches[0];K=h,pe=w,B=[{timestamp:Date.now(),value:w}]},qe=ye=>{if(!pe)return;const h=Array.from(ye.changedTouches).find(({identifier:ae})=>ae===K);if(!h)return;ye.preventDefault();const{clientX:w}=h;D({timestamp:Date.now(),value:w});const ee=w-pe;ee!==0&&v?.cursor&&I(ee<0?"left":"right"),!(Math.abs(ee)<j)&&(ee>0!==o?R():Z(),pe=w)},je=ye=>{!pe||!Array.from(ye.changedTouches).some(({identifier:w})=>w===K)||(K=null,pe=null,a(!1),I("default"),q())};return O.addEventListener("touchstart",Pe),O.addEventListener("touchmove",qe),O.addEventListener("touchend",je),O.addEventListener("touchcancel",je),()=>{a(!1),Y.removeEventListener("mousedown",F),document.removeEventListener("mousemove",re),document.removeEventListener("mouseleave",H),document.removeEventListener("mouseup",H),document.removeEventListener("contextmenu",H),O.removeEventListener("scroll",de),O.removeEventListener("touchstart",Pe),O.removeEventListener("touchmove",qe),O.removeEventListener("touchend",je),O.removeEventListener("touchcancel",je)}},[_,R,Z,m,o,v,U]),c("div",{ref:L,style:g,children:c("div",{ref:f,className:"overflow-x-scroll",children:[c("div",{className:"sticky left-0 top-0",children:[e.map(Y=>c(st,{src:Y.src,className:"pointer-events-none !absolute left-0 top-0 -z-10"},Y.src)),c(fo,{...e[$],onlyPreload:t,itemIndex:-1})]}),c("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},pi=({itemIndex:e,images:t,onPlaceholderImageLoaded:r,onSpinImagesLoaded:o,onError:i})=>{const{autoLoad360:s,emitAnalyticsEvent:u,themeConfig:n}=Je(),{displayedCategoryId:v,displayedCategoryName:m}=Qe(),L=ze(()=>Jt(n),[n]),f=ze(()=>t.map(({src:x})=>x),[t]),[p,a]=be(null),b=p?[...p.values()].filter(x=>x).length/t.length*100:null,I=X(x=>{b===null&&(a(new Map(f.map(E=>[E,!1]))),u({type:"interaction",current:{category_id:v,category_name:m,item_type:"exterior-360",item_position:e},action:{name:"Exterior 360 Play",field:"exterior_360_play",value:x}}))},[b,f,u,v,m,e]),k=X(()=>{I("click")},[I]),g=X(x=>{a(E=>{const _=new Map(E);return _.set(x,!0),_})},[]);return me(()=>{s&&I("auto")},[s,I]),me(()=>{b===100&&o()},[b,o]),c("div",{className:"relative aspect-[4/3] w-full",children:[b!==null&&b!==100&&c("div",{className:"hidden",children:f.map(x=>c(st,{src:x,onLoad:()=>g(x),onError:i},x))}),c(st,{className:"size-full",src:f[0],onLoad:r}),c("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[c(In,{className:"size-20"}),c(rt,{"aria-label":"Play 360 view",className:L?.playButton?"size-[78px] border-0 bg-transparent p-0 shadow-none hover:bg-transparent":void 0,color:"neutral",shape:"icon",onClick:k,children:L?.playButton?c("img",{className:"size-full",src:L.playButton.default,alt:""}):c(ho,{className:"size-full"})}),c("div",{className:le("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",b===null&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${b??0}%`}})})]})]})},hi=e=>{const{itemIndex:t}=e,{setItemInteraction:r}=Qe(),[o,i]=be();return me(()=>{o===null||o==="error"||r(t,o==="spin"?"running":"ready")},[t,r,o]),o==="error"?c(qt,{className:"text-background",text:"Spin could not be loaded"}):o!=="spin"?c(pi,{...e,onPlaceholderImageLoaded:()=>i(s=>s===null?"placeholder":s),onSpinImagesLoaded:()=>i("spin"),onError:()=>i("error")}):c(fi,{...e})},mi=e=>c(rt,{color:"neutral",shape:"icon",...e,children:c(ao,{className:"size-full"})}),gi=({className:e})=>c(et,{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"})})}),vi=({className:e})=>c(et,{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"})})}),_i=({className:e})=>c(et,{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"})})}),mo=({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)}%)`}})}),wi=3e3,yi=({src:e,poster:t,itemIndex:r})=>{const{carrouselItemIndex:o,setItemInteraction:i}=Qe(),s=Ce(null),u=Ce(null),n=X(()=>{if(!u.current)throw new Error("videoRef.current is null");return u.current},[]);me(()=>{i(r,"ready")},[r,i]);const v=X(()=>{n().play()},[n]),m=X(()=>{n().pause()},[n]);me(()=>{o===r||m()},[o,r,m]);const[L,f]=be(!1),[p,a]=be(!0),b=()=>{f(!0),i(r,"running")},I=()=>{f(!1),i(r,"ready")},k=()=>{a(!1)},g=()=>{a(!0)},[x,E]=be(null),_=B=>{const D=n(),q=B.currentTarget.getBoundingClientRect(),F=(B.clientX-q.left)/q.width,re=Math.min(1,Math.max(0,F));D.volume=re,D.muted=!1},M=B=>{const D=n();D.muted=B};me(()=>{const B=u.current;if(!B)return;const D=()=>{E({volume:B.volume,isMuted:B.muted})};return D(),B.addEventListener("volumechange",D),()=>{B.removeEventListener("volumechange",D)}},[]);const[N,$]=be(null),T=N?N.currentTime/N.duration:0;me(()=>{const B=u.current;if(!B)return;const D=()=>{const q=B.currentTime,P=B.duration;isNaN(q)||isNaN(P)||$({currentTime:q,duration:P})};return D(),B.addEventListener("timeupdate",D),()=>{B.removeEventListener("timeupdate",D)}},[]);const U=B=>{const D=n(),q=B.currentTarget.getBoundingClientRect(),F=(B.clientX-q.left)/q.width,re=D.duration*F;D.currentTime=re},Z=B=>{const D=Math.floor(B%3600/60),q=Math.floor(B%60);return`${D}:${q.toString().padStart(2,"0")}`},[R,Y]=be(!1),O=Ce(void 0),j=X(()=>clearTimeout(O.current),[]),pe=X(()=>{j(),O.current=setTimeout(()=>{Y(!1)},wi)},[j]);return me(()=>{const B=s.current,D=u.current;if(!B||!D)return;const q=()=>{pe(),Y(!0)},P=()=>{j(),Y(!1)};let F=!1;const re=()=>{F=!0},H=()=>{F&&(F=!1,m())},oe=()=>{F=!1,q()},J=se=>{se.preventDefault(),se.touches.length===1&&(pe(),Y(de=>!de))};return B.addEventListener("mousedown",re),B.addEventListener("mouseup",H),B.addEventListener("mouseenter",q),B.addEventListener("mousemove",oe),B.addEventListener("mouseleave",P),D.addEventListener("touchstart",J,{passive:!0}),()=>{B.removeEventListener("mousedown",re),B.removeEventListener("mouseup",H),B.removeEventListener("mouseenter",q),B.removeEventListener("mousemove",q),B.removeEventListener("mouseleave",P),D.removeEventListener("touchstart",J)}},[j,m,pe]),c("div",{ref:s,className:"relative aspect-[4/3] w-full",children:[c("video",{ref:u,className:"size-full",src:e,poster:t,disablePictureInPicture:!0,playsInline:!0,onPlay:b,onPause:I,onEnded:I,onCanPlay:k,onWaiting:g}),L?c(Ke,{children:[c("div",{className:le("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",R?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onMouseDownCapture:B=>B.stopPropagation(),children:[c("div",{className:"flex items-center justify-between text-background",children:[c("div",{className:"flex items-center gap-x-4",children:[c(rt,{shape:"icon",variant:"ghost",color:"neutral",onClick:m,children:c(gi,{className:"size-full"})}),N&&c("span",{className:"text-sm",children:[Z(N.currentTime)," /"," ",Z(N.duration)]})]}),x&&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 ${x.isMuted?"group-hover/volume:opacity-50":"group-hover/volume:opacity-100"}`,onClick:_,children:c(mo,{progress:x.volume})}),c("div",{className:"size-5 cursor-pointer",onClick:()=>M(!x.isMuted),children:x.isMuted?c(_i,{className:"size-full"}):c(vi,{className:"size-full"})})]})]}),c("div",{className:"cursor-pointer py-1",onClick:U,children:c(mo,{progress:T})})]}),p&&c("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",children:c(no,{size:"lg",color:"background"})})]}):c("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:c(mi,{onClick:v})})]})},xi=({index:e,item:t,isShown:r})=>{const{type:o}=t;let i;switch(o){case"image":i=c(fo,{itemIndex:e,onlyPreload:!r,...t});break;case"video":i=c(yi,{itemIndex:e,...t});break;case"360":i=c(hi,{itemIndex:e,onlyPreload:!r,...t});break;case"next360":i=c(ii,{itemIndex:e,onlyPreload:!r,...t});break;case"interior-360":i=c(Ka,{itemIndex:e,onlyPreload:!r,...t});break;case"custom":i=c(Fa,{itemIndex:e,...t})}return i=c("div",{className:"grid grid-cols-[repeat(var(--max-items),1fr)]",children:i}),i},bi=e=>{me(()=>{const t=r=>{r.key==="Escape"&&e()};return addEventListener("keydown",t),()=>{removeEventListener("keydown",t)}},[e])};function Ci(e){return e.target===e.currentTarget}const Ei=({className:e,children:t,isVisible:r,url:o,title:i,description:s,clickHandler:u,extendMode:n,variant:v,aspectRatioStyle:m,maxItemsShown:L=1})=>{const{isFullScreen:f,integration:p}=Je(),a=()=>v||(!p||f?"centered":"aside"),b=()=>!!(i||s),I=()=>!!o,k=a(),g=x=>{if(!m)return{};switch(x){case"centered":return{...m,aspectRatio:"4 / 3",maxHeight:b()?"50%":"100%"};case"aside":return{...m,minHeight:0,flex:"1 1 auto"};case"fullwidth":return{...m,height:"85%"};default:return m}};return k==="centered"?c("div",{className:le(e,"absolute inset-0 z-overlay flex justify-end overflow-hidden bg-foreground/10 transition-opacity duration-details",r?"opacity-100":"pointer-events-none opacity-0"),onClick:u,children:c("div",{className:le("flex h-full flex-col bg-navy text-white transition-transform duration-details",r?"translate-x-0":"translate-x-full","w-3/5"),style:{containerType:"inline-size"},children:[t,r&&c(Ke,{children:[I()&&c(st,{className:le(b()?"max-h-[50%]":"h-full","w-full bg-foreground/65 object-cover"),src:o||"",style:g("centered"),imgInPlayerWidthRatio:.6}),b()&&c("div",{className:le("flex flex-1 flex-col gap-4 overflow-y-auto p-4 small:p-3",n&&"large:p-4"),children:[i&&c("h3",{className:le("text-[clamp(0.875rem,0.6rem+1.6cqw,1.125rem)] font-semibold text-white small:font-bold",n&&"large:text-lg"),children:i}),s&&c("p",{className:le("text-[clamp(0.75rem,0.55rem+1.3cqw,0.875rem)] text-white",n&&"large:text-sm"),children:s})]})]})]})}):k==="aside"?c("div",{className:le(e,"absolute inset-0 z-overlay flex items-center justify-center overflow-hidden bg-foreground/60 transition-opacity duration-details",r?"opacity-100":"pointer-events-none opacity-0"),onClick:u,children:c("div",{className:le("relative flex h-full flex-col bg-background transition-transform duration-details",r?"translate-y-0":"translate-y-full"),style:{containerType:"inline-size",width:p?`${100/(f?1:L)}%`:`${100/L}%`},children:[t,r&&c(Ke,{children:[I()&&c(st,{className:"min-h-0 w-full flex-1 bg-foreground/65 object-contain",src:o||"",style:g("aside"),imgInPlayerWidthRatio:.6}),c("div",{className:le("space-y-1 p-2 small:p-3",I()?"min-h-[15%] shrink-0":"flex-1 overflow-y-auto"),children:[i&&c("span",{className:le("block text-[clamp(0.75rem,0.45rem+1.8cqw,1.125rem)] font-semibold leading-tight small:font-bold",n&&"large:text-lg"),children:i}),s&&c("p",{className:le("text-[clamp(0.625rem,0.4rem+1.5cqw,0.875rem)] leading-tight text-foreground/65",n&&"large:text-sm"),children:s})]})]})]})}):c("div",{className:le(e,"absolute inset-0 z-overlay flex items-center justify-center overflow-hidden bg-foreground/60 transition-opacity duration-details",r?"opacity-100":"pointer-events-none opacity-0"),onClick:u,children:c("div",{className:le("relative flex aspect-[4/3] flex-col bg-background transition-transform duration-details",r?"translate-y-0":"translate-y-full"),style:{containerType:"inline-size",width:p?`${100/(f?1:L)}%`:`${100/L}%`},children:[t,r&&o&&c(Ke,{children:[c(st,{className:"h-[85%] w-full bg-foreground/65 object-contain",src:o,style:g("fullwidth"),imgInPlayerWidthRatio:.6}),c("div",{className:"h-[15%] space-y-1 overflow-y-auto px-2 py-1 small:p-3",children:[i&&c("span",{className:le("text-[clamp(0.75rem,0.45rem+1.8cqw,1.125rem)] font-semibold small:font-bold",n&&"large:text-lg"),children:i}),s&&c("p",{className:le("text-[clamp(0.625rem,0.4rem+1.5cqw,0.875rem)] text-foreground/65",n&&"large:text-sm"),children:s})]})]})]})})},Li=({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})]}),Mi=({className:e})=>c(et,{className:e,customizationKey:"UI_EXTEND",children:c("svg",{className:e,viewBox:"0 0 20 20",fill:"none",children:c("path",{d:"M2.5 5.83333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H5.83333M14.1667 2.5H15.8333C16.2754 2.5 16.6993 2.67559 17.0118 2.98816C17.3244 3.30072 17.5 3.72464 17.5 4.16667V5.83333M17.5 14.1667V15.8333C17.5 16.2754 17.3244 16.6993 17.0118 17.0118C16.6993 17.3244 16.2754 17.5 15.8333 17.5H14.1667M5.83333 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333V14.1667M6.66667 6.66667H13.3333C13.7936 6.66667 14.1667 7.03976 14.1667 7.5V12.5C14.1667 12.9602 13.7936 13.3333 13.3333 13.3333H6.66667C6.20643 13.3333 5.83333 12.9602 5.83333 12.5V7.5C5.83333 7.03976 6.20643 6.66667 6.66667 6.66667Z",stroke:"currentColor",strokeWidth:"1.04167",strokeLinecap:"round",strokeLinejoin:"round"})})}),ki=({className:e})=>c(et,{className:e,customizationKey:"UI_GALLERY",children:c("svg",{className:e,viewBox:"0 0 20 20",fill:"none",children:c("path",{d:"M15 18.3334H3.33335C2.89133 18.3334 2.4674 18.1578 2.15484 17.8453C1.84228 17.5327 1.66669 17.1088 1.66669 16.6667V5.00008M18.3334 10.8334L17.2534 9.75345C16.8767 9.37688 16.3659 9.16532 15.8334 9.16532C15.3008 9.16532 14.79 9.37688 14.4134 9.75345L9.16669 15.0001M11.6667 6.66675C11.6667 7.58722 10.9205 8.33342 10 8.33342C9.07955 8.33342 8.33335 7.58722 8.33335 6.66675C8.33335 5.74627 9.07955 5.00008 10 5.00008C10.9205 5.00008 11.6667 5.74627 11.6667 6.66675ZM6.66669 1.66675H16.6667C17.5872 1.66675 18.3334 2.41294 18.3334 3.33341V13.3334C18.3334 14.2539 17.5872 15.0001 16.6667 15.0001H6.66669C5.74621 15.0001 5.00002 14.2539 5.00002 13.3334V3.33341C5.00002 2.41294 5.74621 1.66675 6.66669 1.66675Z",stroke:"currentColor",strokeWidth:"1.04167",strokeLinecap:"round",strokeLinejoin:"round"})})}),Ii=({className:e})=>c(et,{className:e,customizationKey:"UI_HOTSPOTS",children:c("svg",{className:e,viewBox:"0 0 11 11",fill:"none",children:c("path",{d:"M0.400024 5.3999H1.90002M1.90002 5.3999C1.90002 7.3329 3.46703 8.8999 5.40002 8.8999M1.90002 5.3999C1.90002 3.46691 3.46703 1.8999 5.40002 1.8999M8.90002 5.3999H10.4M8.90002 5.3999C8.90002 7.3329 7.33302 8.8999 5.40002 8.8999M8.90002 5.3999C8.90002 3.46691 7.33302 1.8999 5.40002 1.8999M5.40002 0.399902V1.8999M5.40002 8.8999V10.3999M6.90002 5.3999C6.90002 6.22833 6.22845 6.8999 5.40002 6.8999C4.5716 6.8999 3.90002 6.22833 3.90002 5.3999C3.90002 4.57148 4.5716 3.8999 5.40002 3.8999C6.22845 3.8999 6.90002 4.57148 6.90002 5.3999Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})}),Ti=({className:e})=>c(et,{className:e,customizationKey:"UI_MINUS",children:c("svg",{className:e,viewBox:"0 0 13 2",fill:"none",children:c("path",{d:"M0.520874 0.520752H12.1875",stroke:"currentColor",strokeWidth:"1.04167",strokeLinecap:"round",strokeLinejoin:"round"})})}),Si=({className:e})=>c(et,{className:e,customizationKey:"UI_PLUS",children:c("svg",{className:e,viewBox:"0 0 13 13",fill:"none",children:c("path",{d:"M0.520874 6.35409H12.1875M6.35421 0.520752V12.1874",stroke:"currentColor",strokeWidth:"1.04167",strokeLinecap:"round",strokeLinejoin:"round"})})}),Ni=({enabled:e,onToggle:t,label:r,className:o,children:i})=>c("label",{className:le("flex cursor-pointer items-center justify-center gap-x-2",o),children:[c("input",{type:"checkbox",className:"sr-only",checked:e,onChange:t}),r&&c("div",{className:"text-xs text-background",children:r}),c("div",{className:le("flex h-5 w-8 items-center justify-center rounded-full transition-colors",e?"bg-primary":"bg-background/60"),children:c("div",{className:le("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:i})})]}),Pi=({className:e})=>c(et,{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"})})}),Ri=({sharedClassName:e})=>{const{categories:t}=gt(),{displayedCategoryId:r,changeCategory:o}=Qe(),[i,s]=be(!1),u=()=>{s(!i)},n=()=>{s(!1)};return c(Ke,{children:[i&&c("div",{className:le(e,"inset-0 small:hidden"),onClick:n}),c("div",{className:le(e,It("top-left"),"flex gap-x-2 small:hidden"),children:[c(rt,{shape:"icon",color:i?"primary":"neutral",onClick:u,children:c(Pi,{})}),i&&c("div",{className:"rounded-ui-md bg-background transition-radius",children:c("ul",{className:"space-y-0.5 p-1",children:t.map(({id:v,title:m})=>c("li",{className:le("cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-all hover:bg-primary/30",v===r&&"bg-primary/50"),onClick:()=>{o(v),s(!1)},children:m},v))})})]}),c("div",{className:le(e,to("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:v,title:m})=>c(rt,{variant:v===r?"fill":"ghost",onClick:()=>o(v),children:m},v))})})]})},Ai=()=>{const{hideCategoriesNav:e,infiniteCarrousel:t,permanentGallery:r,extendBehavior:o,maxItemsShown:i,isFullScreen:s,integration:u}=Je(),{aspectRatioStyle:n,categories:{length:v}}=gt(),{items:{length:m},slidable:L,carrouselItemIndex:f,masterItemIndex:p,prevItem:a,nextItem:b,showGalleryControls:I,enableHotspotsControl:k,currentItemHotspotsVisible:g,toggleHotspots:x,showGallery:E,toggleGallery:_,extendMode:M,toggleExtendMode:N,shownDetails:$,isShowingDetails:T,resetShownDetails:U,showZoomControls:Z,isZooming:R,canZoomIn:Y,zoomIn:O,canZoomOut:j,zoomOut:pe,resetView:B}=Qe(),D=X(re=>{Ci(re)&&U()},[U]);bi(U);const q="absolute z-overlay",P=()=>{if(i===1)return f;const H=Math.floor(i)-1;return f+H},F=()=>{if(!u)return p;const H=Math.floor(i)-1;return p+H};return c(Ke,{children:[!e&&v>1&&c(Ri,{sharedClassName:le(q,"transition-opacity",R?"!pointer-events-none opacity-0":"opacity-100")}),L&&!R&&c("div",{className:le(q,It("top-right")),children:c(Li,{currentIndex:!u||s?f:P(),maxIndex:m-1})}),L&&c(Ke,{children:[c(rt,{shape:"icon",color:"neutral",className:le(q,It("middle-left"),R?"!pointer-events-none opacity-0":"opacity-100"),onClick:a,disabled:!t&&p<=0,children:c(et,{customizationKey:"CONTROLS_PREV",children:c(Tn,{className:"size-full -scale-x-100"})})}),c(rt,{shape:"icon",color:"neutral",className:le(q,It("middle-right"),R?"!pointer-events-none opacity-0":"opacity-100"),onClick:b,disabled:!t&&F()>=m-1,children:c(et,{customizationKey:"CONTROLS_NEXT",children:c(Tn,{className:"size-full"})})})]}),c("div",{className:le(q,It("bottom-fullW"),"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"),children:[!r&&L&&c(Ke,{children:[c(rt,{className:I&&!R?"opacity-100":"!pointer-events-none opacity-0",variant:"fill",color:E?"primary":"neutral",shape:"icon",onClick:_,children:c(ki,{className:"size-full"})}),E&&c(so,{className:le("transition-opacity",I&&!R?"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:[k&&c(Ni,{className:le("transition-opacity",R?"!pointer-events-none opacity-0":"opacity-100"),enabled:g,onToggle:x,children:c(Ii,{className:"size-full"})}),Z&&(!u||s)&&c("div",{className:"max-small:hidden",children:[c(rt,{className:"rounded-b-none",color:"neutral",shape:"icon",disabled:!Y,onClick:O,children:c(Si,{className:"size-full"})}),c(io,{color:"background"}),c(rt,{className:"rounded-t-none",color:"neutral",shape:"icon",disabled:!j,onClick:pe,children:c(Ti,{className:"size-full"})})]}),o!=="none"&&c(rt,{variant:"fill",color:M?"primary":"neutral",shape:"icon",onClick:N,children:c(Mi,{className:"size-full"})})]})]}),c(Ei,{isVisible:T,className:q,url:$?.src,title:$?.title,description:$?.text,clickHandler:D,extendMode:M,maxItemsShown:i,aspectRatioStyle:n,children:c(kn,{className:"absolute right-2 top-2 z-10",onClick:U})}),R&&c(kn,{className:le(q,It("top-right")),onClick:B})]})},Di=({className:e=""})=>{const{infiniteCarrousel:t,preloadRange:r,isFullScreen:o,maxItemsShown:i,integration:s}=Je(),{aspectRatioStyle:u}=gt(),{items:n,slidable:v,carrouselItemIndex:m,setCarrouselItemIndex:L,itemIndexCommand:f,setItemIndexCommand:p,specialCommand:a,isRunningSpecialCommand:b,finishSpecialCommand:I,extendMode:k,extendTransition:g}=Qe(),{effectiveMaxItemsShown:x}=Gr(),E=Ce(null),_=X(P=>{if(!E.current)throw new Error(`[${P??"sliderOrThrow"}] slider.current is null`);return E.current},[]),M=Ce(!1),N=Ce(null),$=Ce(null),T=Ce(null),U=X(()=>{T.current&&cancelAnimationFrame(T.current)},[]),Z=X(()=>{const P=_("computeClosestSnapIndex"),F=Array.from(P.children),re=P.scrollLeft;let H=0,oe=1/0;if(F.forEach((J,se)=>{const S=J.offsetLeft,de=Math.abs(S-re);de<oe&&(oe=de,H=se)}),x>1){const J=Math.ceil(x),se=n.length+(s&&!t&&x%1!==0?1:0),S=Math.max(0,se-J);if(H=Math.min(H,S),s&&!t&&x%1!==0){const de=n.length-1;H=Math.min(H,de)}}return H},[_,x,n.length,t,s]),R=X(P=>{const F=_("setStyleCursor");F.style.cursor=P},[_]),Y=X(P=>{const F=_("setStyleSnapState");P==="mandatory"?F.style.scrollSnapType="x mandatory":F.style.scrollSnapType="none"},[_]),O=X((P,F,re)=>{U();const H=_("scrollToIndex"),oe=Array.from(H.children),J=H.scrollLeft;let se=oe[P].offsetLeft;const S=H.clientWidth,de=H.scrollWidth-S;if(x>1){const w=Math.ceil(x),ee=n.length+(s&&!t&&x%1!==0?1:0);P>=ee-w&&(se=Math.min(se,de))}const K=w=>{H.scrollTo({left:w,behavior:"instant"})},Pe=()=>{K(se),Y("mandatory"),re?.()},qe=Math.abs(J-se);if(qe<1||F==="instant"){Pe();return}const je=ot(qe/2.5,300,1e3),ye=new Date().getTime();Y("none");const h=()=>{const w=()=>{const ae=new Date().getTime()-ye;if(ae>=je){Pe();return}const te=Math.min(ae/je,1),C=lo(te),ne=jt(J,se,C);K(ne),h()};T.current=requestAnimationFrame(w)};h()},[U,_,x,Y,n.length,s,t]),[j,pe]=be(),B=!!j;me(()=>{const P=()=>{clearTimeout(j);const F=setTimeout(()=>{pe(void 0)},Yr);pe(F)};return addEventListener("resize",P),document.addEventListener("fullscreenchange",P),()=>{removeEventListener("resize",P),document.removeEventListener("fullscreenchange",P)}},[j]),me(()=>{if(a)return;const P=Z();Number.isNaN(P)||P!==m&&O(m,"instant")},[m,Z,O,a,n,j,o,k,g]),me(()=>{if(!v||b){R("auto");return}const P=E.current;if(!P)return;R("grab"),Y("mandatory");const F=oe=>{oe.button===0&&(oe.preventDefault(),oe.stopPropagation(),U(),M.current=!0,N.current=oe.pageX-P.offsetLeft,$.current=P.scrollLeft,R("grabbing"))},re=oe=>{if(!M.current)return;if(N.current===null)throw new Error("[onMouseMove] startX is null");Y("none");const se=oe.pageX-P.offsetLeft-N.current;requestAnimationFrame(()=>{if($.current===null)throw new Error("[onMouseMove] scrollLeft is null");let S=$.current-se;if(!t){const de=P.scrollWidth-P.clientWidth;S>de&&(S=de)}P.scrollLeft=S})},H=()=>{if(!M.current)return;M.current=!1,R("grab");const oe=Z();O(oe,"smooth")};return P.addEventListener("mousedown",F),document.addEventListener("mousemove",re),document.addEventListener("mouseleave",H),document.addEventListener("mouseup",H),document.addEventListener("contextmenu",H),()=>{P.removeEventListener("mousedown",F),document.removeEventListener("mousemove",re),document.removeEventListener("mouseleave",H),document.removeEventListener("mouseup",H),document.removeEventListener("contextmenu",H)}},[U,Z,t,b,O,R,Y,v]),me(()=>{if(g||B)return;const P=E.current;if(!P)return;const F=()=>{const re=Z();Number.isNaN(re)||(L(re),re===f&&p(null))};return P.addEventListener("scroll",F),()=>{P.removeEventListener("scroll",F)}},[Z,g,B,f,i,L,p]),me(()=>{if(f===null)return;const P=()=>{setTimeout(()=>{p(null),I()},75)};switch(a){case"first_to_last":{const F=Math.ceil(x),re=n.length+(s&&!t&&x%1!==0?1:0),H=x>1?Math.max(0,re-F):n.length-1;O(H,"instant",P);break}case"last_to_first":O(0,"instant",P);break;case"instant":O(f,"instant",P);break;default:O(f,"smooth");break}},[a,I,f,n.length,O,p,x,t,s]);const D=ze(()=>!s||o?u:{aspectRatio:"auto"},[s,o,u]),q=ze(()=>({...u,minWidth:`${100/x}%`,width:`${100/x}%`,flexShrink:0}),[u,x]);return c("div",{className:le("relative overflow-hidden rounded-carrousel transition-radius",e),style:D,children:[c("div",{ref:E,className:`flex size-full ${v?"overflow-x-auto no-scrollbar *:snap-start *:snap-always":"justify-center"}`,children:[n.map((P,F)=>{const re=F===m,H=F===0,oe=F===n.length-1,J=(()=>{const Pe=Math.ceil(x);if(a==="first_to_last"&&H)return{transform:`translateX(${100*n.length/Pe}%)`};if(a==="last_to_first"&&oe)return{transform:`translateX(-${100*n.length/Pe}%)`}})(),se=Math.ceil(x),S=Math.max(r,se);let de=Math.abs(F-m)<=S;de||=F===f,de||=F>=m&&F<m+se,t&&(de||=m<S&&n.length-F<=S-m,de||=m>=n.length-S&&F<=S-(n.length-m));const K=(()=>{let Pe;switch(P.type){case"360":Pe=P.images[0].src;break;case"interior-360":Pe=P.poster??"interior-360";break;case"image":Pe=P.src;break;case"video":Pe=P.poster??"video";break;case"custom":Pe="custom";break;default:Pe="unknown"}return`${F}_${Pe}`})();return c("div",{className:le("h-full bg-foreground/35",m===F&&"z-1"),style:{...q,...J},children:de&&c(xi,{index:F,item:P,isShown:re})},K)}),s&&!t&&!o&&i%1!==0&&c("div",{className:"h-full",style:q},"empty-slide")]}),c(Ai,{})]})},zi=()=>{const{permanentGallery:e,integration:t}=Je(),{aspectRatioStyle:r}=gt(),{isShowingDetails:o,resetShownDetails:i,extendMode:s,disableExtendMode:u,isZooming:n,resetZoom:v,fakeFullScreen:m}=Qe(),L=Ce(null),f=Ce(null),p=Ce(null);return me(()=>{if(!s)return;const a=L.current,b=f.current,I=p.current;if(!a||!b||!I)return;let k=!1;const g=_=>[a,b,I].includes(_.target),x=_=>{k=g(_)},E=_=>{k&&(g(_)&&u(),k=!1)};return a.addEventListener("mousedown",x),a.addEventListener("mouseup",E),()=>{a.removeEventListener("mousedown",x),a.removeEventListener("mouseup",E)}},[u,s]),me(()=>{const a=b=>{b.key==="Escape"&&(n?v():o?i():u())};return addEventListener("keydown",a),()=>{removeEventListener("keydown",a)}},[u,o,n,i,v]),c("div",{ref:L,className:le("relative",s&&"flex size-full items-center justify-center",m&&"fixed inset-0 z-overlay bg-foreground/75"),children:[c("div",{ref:f,className:s?"flex size-full flex-col justify-center gap-y-2 small:gap-y-4":"space-y-2",children:[c("div",{ref:p,className:le(s&&"mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"),style:t?{}:r,children:c(Di,{className:le(s&&"h-full min-w-0")})}),e&&c(so,{className:le(s&&"my-2 shrink-0 small:my-4")})]}),s&&c(kn,{className:"absolute right-2 top-2 small:right-4 small:top-4",onClick:u})]})},Oi=()=>{const{emitEvent:e,emitAnalyticsEvent:t,compositionUrl:r}=Je(),{data:o,status:i,isSuccess:s,error:u}=va(r);return me(()=>{if(u){e(Hn,u);const n={type:"error",error:u instanceof Error?{name:u.name||"CompositionLoadError",message:u.message,stack:u.stack}:{name:"NonError",message:(()=>{try{return JSON.stringify(u)}catch{return String(u)}})()}};t(n)}else i==="fetching"?e(On,r):s&&e(Fn,o)},[o,r,e,t,u,s,i]),u?c(qt,{className:"aspect-square text-foreground/70",text:"Player could not be loaded"}):s?c(wa,{composition:o,children:c(ba,{children:c(zi,{})})}):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(no,{color:"foreground"})]})},Fi={hideCategoriesNav:!0,infiniteCarrousel:!1,permanentGallery:!1},Hi=[1,1.5,2,2.5],Ui=()=>ze(()=>To(),[]),Wi=()=>ze(()=>So(),[]),Bi=()=>ze(()=>No(),[]),Vi="https://analytics.eu.car-cutter.com",Xi={load:"/webplayer/load",display:"/webplayer/display",interaction:"/webplayer/interaction",error:"/webplayer/error"},Zi=e=>{const t=Xi[e];return new URL(t,Vi).toString()},Yi=e=>{const t=new Headers;return t.append("Content-Type","application/json"),t.append("Authorization",`Bearer ${e}`),t},Gi=e=>{const{type:t,...r}=e;return JSON.stringify(r)},$i=1e4,ji=async(e,t=$i)=>{const{payload:r,compositionUrl:o}=e,i=Yi(o),s=Gi(r),u=Zi(r.type),n=new AbortController,v=setTimeout(()=>n.abort(),t);try{const m=await fetch(u,{method:"POST",headers:i,body:s,signal:n.signal});if(!m.ok)throw new Error(`Monitoring request failed: ${m.status} ${m.statusText} (${u})`)}finally{clearTimeout(v)}},qi=({compositionUrl:e,integration:t=!1,maxItemsShown:r=1,hideCategoriesNav:o=!1,infiniteCarrousel:i=!1,permanentGallery:s=!1,mediaLoadStrategy:u=Eo,minMediaWidth:n=0,maxMediaWidth:v=1/0,preloadRange:m=1,autoLoad360:L=!1,autoLoadInterior360:f=!1,categoriesFilter:p="*",extendBehavior:a=Lo,eventPrefix:b=Zn,demoSpin:I=!0,reverse360:k=!1,analyticsEventPrefix:g=Mo,analyticsUrl:x="",analyticsBearer:E="",analyticsSimpleRequestsOnly:_=!1,analyticsDryRun:M=!1,analyticsDebug:N=!1,spinCursor:$=sn,monitoring:T,themeConfig:U,children:Z})=>{const R=T!==void 0?T:!x;r=ya(r,Hi);const Y=Ce(null),[O,j]=be(.5),[pe,B]=be(!1),D=X((se,S)=>{const de=b+se,K=new CustomEvent(de,{detail:S});document.dispatchEvent(K)},[b]),q=Ui(),P=Wi(),F=Bi(),re=X(async se=>{try{const S={instance_id:F,browser_id:q,session_id:P,from_url:window.location.href},de={...se,timestamp:new Date().toISOString(),instance:S};if(M){console.log("[DRY RUN] AnalyticsEvent:",de);return}const K=g+se.type,Pe=new CustomEvent(K,{detail:de});if(document.dispatchEvent(Pe),x||R){const qe="POST",je=new Headers;_||(je.append("Content-Type","application/json"),je.append("Cache-Control","no-cache"),E&&je.append("Authorization",`Bearer ${E}`));const ye=JSON.stringify(de);x&&await fetch(x,{method:qe,headers:je,body:ye}),R&&await ji({payload:de,compositionUrl:e})}}catch(S){if(!N)return;console.error("Error while sending analytics event:",S)}},[g,x,E,_,M,N,F,q,P,e,R]),[H]=be({type:"load",config:{composition_url:e,integration:t,max_items_shown:r,hide_categories_nav:o,infinite_carrousel:i,permanent_gallery:s,media_load_strategy:u,min_media_width:n,preload_range:m,auto_load_360:L,auto_load_interior_360:f,categories_filter:p,extend_behavior:a,event_prefix:b,demo_spin:I,reverse_360:k}});me(()=>{const se=setTimeout(()=>re(H),0);return()=>clearTimeout(se)},[re,H]),me(()=>{if(pe){j(1);return}if(!Y.current)return;const se=Y.current,S=()=>{const de=window.innerWidth,K=se.clientWidth;j(K/de)};return S(),addEventListener("resize",S),()=>{removeEventListener("resize",S)}},[pe]),me(()=>{if(a!=="full_screen")return;const se=Y.current;if(!se)throw new Error("Wrapper not found");const S=()=>{const{fullscreenElement:de}=document;B(de===se||de?.localName===ut)};return document.addEventListener("fullscreenchange",S),()=>{document.removeEventListener("fullscreenchange",S)}},[a]);const oe=X(async()=>{const se=Y.current;if(!se)throw new Error("Wrapper not found");try{return await se.requestFullscreen(),!0}catch{return!1}},[]),J=X(async()=>{try{return await document.exitFullscreen(),!0}catch{return!1}},[]);return c(_a,{compositionUrl:e,integration:t,hideCategoriesNav:o,infiniteCarrousel:i,permanentGallery:s,maxItemsShown:r,mediaLoadStrategy:u,minMediaWidth:n,maxMediaWidth:v,preloadRange:m,categoriesFilter:p,autoLoad360:L,autoLoadInterior360:f,extendBehavior:a,demoSpin:I,reverse360:k,spinCursor:$,themeConfig:U,emitEvent:D,emitAnalyticsEvent:re,playerInViewportWidthRatio:O,isFullScreen:pe,requestFullscreen:oe,exitFullscreen:J,...t?Fi:{},children:c(xa,{children:[c("div",{ref:Y,className:"select-none text-foreground",style:{"--background":"var(--cc-webplayer-background, 0 0% 100%)","--details-background":"var(--cc-webplayer-details-background, 216 47% 11%)","--details-text":"var(--cc-webplayer-details-text, 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)","--hotspot-damage-color":"hsl(var(--cc-webplayer-hotspot-damage-color, 37 89% 52%))","--hotspot-feature-color":"hsl(var(--cc-webplayer-hotspot-feature-color, var(--primary)))"},children:c(Oi,{})}),Z]})})},Ki=({children:e,index:t,thumbnailSrc:r})=>{const{registerCustomMedia:o,unregisterCustomMedia:i}=Ft();return me(()=>{if(!e)return;const s=o({Media:e,index:t,thumbnailSrc:r});return()=>{i(s)}},[e,i,t,o,r]),null},Ji=e=>Mn()?c(Ki,{...e}):c("slot",{}),Qi=({name:e,children:t})=>{const{registerIconConfig:r,unregisterIconConfig:o}=Ft();return me(()=>{if(t)return r(e,{Icon:t}),()=>{o(e)}},[t,e,r,o]),null},e2=e=>Mn()?c(Qi,{...e}):c("slot",{}),t2=`*,: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: }*,: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]:where(:not([hidden=until-found])){display:none}.\\!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}.visible{visibility:visible}.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}.-left-px{left:-1px}.bottom-0{bottom:0}.bottom-1{bottom:4px}.left-0{left:0}.left-1{left:4px}.left-1\\/2{left:50%}.left-\\[-5px\\]{left:-5px}.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}.top-px{top:1px}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-1{z-index:1}.z-10,.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}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-\\[4\\/3\\]{aspect-ratio:4/3}.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-7{width:28px;height:28px}.size-8{width:32px;height:32px}.size-\\[78px\\]{width:78px;height:78px}.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-\\[15\\%\\]{height:15%}.h-\\[85\\%\\]{height:85%}.h-full{height:100%}.h-px{height:1px}.max-h-\\[50\\%\\]{max-height:50%}.min-h-0{min-height:0}.min-h-\\[15\\%\\]{min-height:15%}.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-60{max-width:240px}.max-w-\\[1600px\\]{max-width:1600px}.flex-1{flex:1 1 0%}.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))}.translate-y-0{--tw-translate-y: 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-y-full{--tw-translate-y: 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-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.grid-cols-\\[repeat\\(var\\(--max-items\\)\\,1fr\\)\\]{grid-template-columns:repeat(var(--max-items),1fr)}.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-1\\.5{gap:6px}.gap-4{gap:16px}.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-y-auto{overflow-y:auto}.overflow-x-scroll{overflow-x:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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-full{border-top-left-radius:9999px;border-top-right-radius:9999px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-bl-\\[10px\\]{border-bottom-left-radius:10px}.rounded-bl-\\[8px\\]{border-bottom-left-radius:8px}.rounded-br-full{border-bottom-right-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.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{background-color:hsl(var(--foreground))}.bg-foreground\\/10{background-color:hsl(var(--foreground) / .1)}.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-navy{background-color:hsl(var(--details-background))}.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-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.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}.py-1\\.5{padding-top:6px;padding-bottom:6px}.pl-5{padding-left:20px}.pl-6{padding-left:24px}.pr-12{padding-right:48px}.pr-2\\.5{padding-right:10px}.pt-8{padding-top:32px}.text-2xl{font-size:24px;line-height:32px}.text-\\[clamp\\(0\\.625rem\\,0\\.4rem\\+1\\.5cqw\\,0\\.875rem\\)\\]{font-size:clamp(.625rem,.4rem + 1.5cqw,.875rem)}.text-\\[clamp\\(0\\.75rem\\,0\\.45rem\\+1\\.8cqw\\,1\\.125rem\\)\\]{font-size:clamp(.75rem,.45rem + 1.8cqw,1.125rem)}.text-\\[clamp\\(0\\.75rem\\,0\\.55rem\\+1\\.3cqw\\,0\\.875rem\\)\\]{font-size:clamp(.75rem,.55rem + 1.3cqw,.875rem)}.text-\\[clamp\\(0\\.875rem\\,0\\.6rem\\+1\\.6cqw\\,1\\.125rem\\)\\]{font-size:clamp(.875rem,.6rem + 1.6cqw,1.125rem)}.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-normal{font-weight:400}.font-semibold{font-weight:600}.leading-tight{line-height:1.25}.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-white{color:hsl(var(--details-text))}.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)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.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,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;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%)}.pnlm-load-button,.pnlm-load-box{display:none!important}.pnlm-container{background-image:none!important}.pnlm-about-msg{width:0;height:0;padding:0;visibility:hidden}.pnlm-about-msg a{display:none;visibility:hidden}.\\*\\: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\\:bg-transparent:hover{background-color:transparent}.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:hover .group-hover\\:translate-x-1{--tw-translate-x: 4px;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))}.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-64{max-width:256px}.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-6{padding-left:24px}.small\\:pl-7{padding-left:28px}.small\\:pr-3{padding-right:12px}.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-72{max-width:288px}.large\\:gap-4{gap:16px}.large\\:p-2{padding:8px}.large\\:p-4{padding:16px}.large\\:text-lg{font-size:18px;line-height:28px}.large\\:text-sm{font-size:14px;line-height:20px}}.\\[\\&_\\*\\]\\:size-4 *{width:16px;height:16px}.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 n2(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,r,o)=>`${r}-${o.toLowerCase()}`)}function Sn(e){return Object.entries(e).reduce((t,[r,o])=>{if(o!==void 0){const i=n2(r);t[i]=o.toString()}return t},{})}const r2=e=>c(Ke,{children:[c("style",{children:t2}),c(qi,{...e})]}),o2=e=>Sn(e),a2=e=>Sn(e),i2=e=>Sn(e);function s2(e){return{render:function(t){Or(t,e)},unmount:function(){Br(e)}}}var l2=Object.defineProperty,c2=(e,t,r)=>t in e?l2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qt=(e,t,r)=>c2(e,typeof t!="symbol"?t+"":t,r);const u2={stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},d2={stringify:e=>e.name,parse:(e,t,r)=>{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(r):void 0}},f2={stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)};function p2(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,r,o)=>`${r}-${o.toLowerCase()}`)}function go(e){return e.replace(/[-:]([a-z])/g,(t,r)=>`${r.toUpperCase()}`)}const h2={stringify:e=>e.name,parse:(e,t,r)=>{const o=(()=>{const i=go(t);if(typeof r<"u"&&i in r.container)return r.container[i]})();return typeof o=="function"?o.bind(r):void 0}},m2={stringify:e=>`${e}`,parse:e=>parseFloat(e)},g2={stringify:e=>e,parse:e=>e},Nn={string:g2,number:m2,boolean:u2,function:d2,method:h2,json:f2},Ut=Symbol.for("r2wc.render"),en=Symbol.for("r2wc.connected"),xt=Symbol.for("r2wc.context"),at=Symbol.for("r2wc.props");function v2(e,t,r){var o,i,s;t.props||(t.props=e.propTypes?Object.keys(e.propTypes):[]),t.events||(t.events=[]);const u=Array.isArray(t.props)?t.props.slice():Object.keys(t.props),n=Array.isArray(t.events)?t.events.slice():Object.keys(t.events),v={},m={},L={},f={};for(const a of u){v[a]=Array.isArray(t.props)?"string":t.props[a];const b=p2(a);L[a]=b,f[b]=a}for(const a of n)m[a]=Array.isArray(t.events)?{}:t.events[a];class p extends HTMLElement{constructor(){super(),Qt(this,s,!0),Qt(this,i),Qt(this,o,{}),Qt(this,"container"),t.shadow?this.container=this.attachShadow({mode:t.shadow}):this.container=this,this[at].container=this.container;for(const b of u){const I=L[b],k=this.getAttribute(I),g=v[b],x=g?Nn[g]:null;if(g==="method"){const E=go(I);Object.defineProperty(this[at].container,E,{enumerable:!0,configurable:!0,get(){return this[at][E]},set(_){this[at][E]=_,this[Ut]()}}),this[at][b]=x.parse(k,I,this)}x!=null&&x.parse&&k&&(this[at][b]=x.parse(k,I,this))}for(const b of n)this[at][b]=I=>{const k=b.replace(/^on/,"").toLowerCase();this.dispatchEvent(new CustomEvent(k,{detail:I,...m[b]}))}}static get observedAttributes(){return Object.keys(f)}connectedCallback(){this[en]=!0,this[Ut]()}disconnectedCallback(){this[en]=!1,this[xt]&&r.unmount(this[xt]),delete this[xt]}attributeChangedCallback(b,I,k){const g=f[b],x=v[g],E=x?Nn[x]:null;g in v&&E!=null&&E.parse&&k&&(this[at][g]=E.parse(k,b,this),this[Ut]())}[(s=en,i=xt,o=at,Ut)](){this[en]&&(this[xt]?r.update(this[xt],this[at]):this[xt]=r.mount(this.container,e,this[at]))}}for(const a of u){const b=L[a],I=v[a];Object.defineProperty(p.prototype,a,{enumerable:!0,configurable:!0,get(){return this[at][a]},set(k){this[at][a]=k;const g=I?Nn[I]:null;if(g!=null&&g.stringify){const x=g.stringify(k,b,this);this.getAttribute(b)!==x&&this.setAttribute(b,x)}else this[Ut]()}})}return p}function _2(e,t,r){const o=s2(e),i=Vr.createElement(t,r);return o.render(i),{root:o,ReactComponent:t}}function w2({root:e,ReactComponent:t},r){const o=Vr.createElement(t,r);e.render(o)}function y2({root:e}){setTimeout(()=>{e.unmount()},0)}function Pn(e,t={}){return v2(e,t,{mount:_2,update:w2,unmount:y2})}const x2=Pn(r2,{shadow:"closed",props:{compositionUrl:"string",hideCategoriesNav:"boolean",infiniteCarrousel:"boolean",permanentGallery:"boolean",integration:"boolean",maxItemsShown:"number",themeConfig:"string",minMediaWidth:"number",maxMediaWidth:"number",mediaLoadStrategy:"string",preloadRange:"number",autoLoad360:"boolean",autoLoadInterior360:"boolean",categoriesFilter:"string",extendBehavior:"string",eventPrefix:"string",demoSpin:"boolean",reverse360:"boolean",spinCursor:"string",analyticsEventPrefix:"string",analyticsUrl:"string",analyticsBearer:"string",analyticsSimpleRequestsOnly:"boolean",analyticsDryRun:"boolean",analyticsDebug:"boolean",monitoring:"boolean"}}),b2=Pn(Ji,{shadow:"closed",props:{index:"number",thumbnailSrc:"string"}}),C2=Pn(e2,{shadow:"closed",props:{name:"string"}});function E2(){customElements.define(ut,x2),customElements.define(Bt,b2),customElements.define(Vt,C2)}function L2(){Yn()||E2()}Ze.DEFAULT_EVENT_PREFIX=Zn,Ze.EVENT_COMPOSITION_LOADED=Fn,Ze.EVENT_COMPOSITION_LOADING=On,Ze.EVENT_COMPOSITION_LOAD_ERROR=Hn,Ze.EVENT_EXTEND_MODE_OFF=Bn,Ze.EVENT_EXTEND_MODE_ON=Wn,Ze.EVENT_GALLERY_CLOSE=Xn,Ze.EVENT_GALLERY_OPEN=Vn,Ze.EVENT_HOTSPOTS_OFF=an,Ze.EVENT_HOTSPOTS_ON=on,Ze.EVENT_ITEM_CHANGE=Un,Ze.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=Bt,Ze.WEB_PLAYER_ICON_WC_TAG=Vt,Ze.WEB_PLAYER_WC_TAG=ut,Ze.checkCustomElementsDefinition=Yn,Ze.ensureCustomElementsDefinition=L2,Ze.generateCompositionUrl=ko,Ze.webPlayerCustomMediaPropsToAttributes=a2,Ze.webPlayerIconPropsToAttributes=i2,Ze.webPlayerPropsToAttributes=o2,Object.defineProperty(Ze,Symbol.toStringTag,{value:"Module"})}));
|