@clikvn/showroom-visualizer 0.0.2-dev → 0.0.3-dev

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/web.js CHANGED
@@ -1 +1 @@
1
- let e="showroom-visualizer";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o,i,r,s,a={exports:{}},l={},c={exports:{}},u={};function h(){var e,t,n,i,r,s,a,l,c,h,d,p,f,g,m,v,_,b,y,w,x,k,S;return o||(o=1,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={},O.prototype.isReactComponent={},O.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},O.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=O.prototype,(S=T.prototype=new E).constructor=T,g(S,O.prototype),S.isPureReactComponent=!0,v=Array.isArray,_=Object.prototype.hasOwnProperty,y={key:!0,ref:!0,__self:!0,__source:!0},w=/\/+/g,S={ReactCurrentDispatcher:x={current:null},ReactCurrentBatchConfig:k={transition:null},ReactCurrentOwner:b={current:null}},u.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(C(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},u.Component=O,u.Fragment=n,u.Profiler=r,u.PureComponent=T,u.StrictMode=i,u.Suspense=c,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,u.act=L,u.cloneElement=function(t,n,o){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=g({},t.props),r=t.key,s=t.ref,a=t._owner;if(null!=n)for(l in void 0!==n.ref&&(s=n.ref,a=b.current),void 0!==n.key&&(r=""+n.key),t.type&&t.type.defaultProps&&(c=t.type.defaultProps),n)_.call(n,l)&&!y.hasOwnProperty(l)&&(i[l]=(void 0===n[l]&&void 0!==c?c:n)[l]);var l=arguments.length-2;if(1===l)i.children=o;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:e,type:t.type,key:r,ref:s,props:i,_owner:a}},u.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},u.createElement=P,u.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:l,render:e}},u.isValidElement=C,u.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},u.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=k.transition;k.transition={};try{e()}finally{k.transition=t}},u.unstable_act=L,u.useCallback=function(e,t){return x.current.useCallback(e,t)},u.useContext=function(e){return x.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return x.current.useDeferredValue(e)},u.useEffect=function(e,t){return x.current.useEffect(e,t)},u.useId=function(){return x.current.useId()},u.useImperativeHandle=function(e,t,n){return x.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return x.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return x.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return x.current.useMemo(e,t)},u.useReducer=function(e,t,n){return x.current.useReducer(e,t,n)},u.useRef=function(e){return x.current.useRef(e)},u.useState=function(e){return x.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return x.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return x.current.useTransition()},u.version="18.3.1"),u;function O(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function E(){}function T(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function P(t,n,o){var i,r={},s=null,a=null;if(null!=n)for(i in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)_.call(n,i)&&!y.hasOwnProperty(i)&&(r[i]=n[i]);var l=arguments.length-2;if(1===l)r.children=o;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];r.children=c}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===r[i]&&(r[i]=l[i]);return{$$typeof:e,type:t,key:s,ref:a,props:r,_owner:b.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,n={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function $(n,o,i,r,s){var a,l,c=!1;if(null===(n="undefined"!=(h=typeof n)&&"boolean"!==h?n:null))c=!0;else switch(h){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case e:case t:c=!0}}if(c)return s=s(c=n),n=""===r?"."+N(c,0):r,v(s)?(i="",$(s,o,i=null!=n?n.replace(w,"$&/")+"/":i,"",function(e){return e})):null!=s&&(C(s)&&(l=i+(!(a=s).key||c&&c.key===s.key?"":(""+s.key).replace(w,"$&/")+"/")+n,s={$$typeof:e,type:a.type,key:l,ref:a.ref,props:a.props,_owner:a._owner}),o.push(s)),1;if(c=0,r=""===r?".":r+":",v(n))for(var u=0;u<n.length;u++){var h,d=r+N(h=n[u],u);c+=$(h,o,i,d,s)}else if("function"==typeof(d=null!==(l=n)&&"object"==typeof l&&"function"==typeof(l=p&&l[p]||l["@@iterator"])?l:null))for(n=d.call(n),u=0;!(h=n.next()).done;)c+=$(h=h.value,o,i,d=r+N(h,u++),s);else if("object"===h)throw o=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===o?"object with keys {"+Object.keys(n).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return c}function A(e,t,n){var o;return null==e||(o=0,$(e,e=[],"","",function(e){return t.call(n,e,o++)})),e}function M(e){var t;if(-1===e._status&&((t=(t=e._result)()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status)&&(e._status=0,e._result=t),1===e._status)return e._result.default;throw e._result}function L(){throw Error("act(...) is not supported in production builds of React.")}}function d(){return i||(i=1,c.exports=h()),c.exports}var p,f,g,m,v=(s||(s=1,a.exports=function(){var e,t,n,o,i,s;return r||(r=1,e=d(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0},l.Fragment=n,l.jsx=a,l.jsxs=a),l;function a(e,n,r){var a,l={},c=null,u=null;for(a in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)o.call(n,a)&&!s.hasOwnProperty(a)&&(l[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===l[a]&&(l[a]=n[a]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}}()),a.exports),_={exports:{}},b={},y={exports:{}},w={};function x(){return f||(f=1,y.exports=function(){var e,t,n,o,i,r,s,a,l,c,u,h,d,f,g,m,v,_,b,y,x,k,S;return p||(p=1,e=w,"object"==typeof performance&&"function"==typeof performance.now?(t=performance,e.unstable_now=function(){return t.now()}):(n=Date,o=n.now(),e.unstable_now=function(){return n.now()-o}),i=[],r=[],s=1,a=null,h=u=c=!(l=3),d="function"==typeof setTimeout?setTimeout:null,f="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null,"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling),b=!1,y=null,k=5,S=x=-1,m="function"==typeof g?function(){g(M)}:"undefined"!=typeof MessageChannel?(v=new MessageChannel,_=v.port2,v.port1.onmessage=M,function(){_.postMessage(null)}):function(){d(M,0)},e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){u||c||(u=!0,L($))},e.unstable_forceFrameRate=function(e){e<0||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return l},e.unstable_getFirstCallbackNode=function(){return E(i)},e.unstable_next=function(e){switch(l){case 1:case 2:case 3:var t=3;break;default:t=l}var n=l;l=t;try{return e()}finally{l=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=l;l=e;try{return t()}finally{l=n}},e.unstable_scheduleCallback=function(t,n,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,t){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return t={id:s++,callback:n,priorityLevel:t,startTime:o,expirationTime:l=o+l,sortIndex:-1},a<o?(t.sortIndex=o,O(r,t),null===E(i)&&t===E(r)&&(h?(f(x),x=-1):h=!0,D(N,o-a))):(t.sortIndex=l,O(i,t),u||c||(u=!0,L($))),t},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=l;return function(){var n=l;l=t;try{return e.apply(this,arguments)}finally{l=n}}}),w;function O(e,t){var n=e.length;for(e.push(t);0<n;){var o=n-1>>>1,i=e[o];if(!(0<P(i,t)))break;e[o]=t,e[n]=i,n=o}}function E(e){return 0===e.length?null:e[0]}function T(e){if(0!==e.length){var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var o=0,i=e.length,r=i>>>1;o<r;){var s=2*(o+1)-1,a=e[s],l=1+s,c=e[l];if(P(a,n)<0)o=l<i&&P(c,a)<0?(e[o]=c,e[l]=n,l):(e[o]=a,e[s]=n,s);else{if(!(l<i&&P(c,n)<0))break;e[o]=c,e[l]=n,o=l}}}}}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!=n?n:e.id-t.id}function C(e){for(var t=E(r);null!==t;){if(null===t.callback)T(r);else{if(!(t.startTime<=e))break;T(r),t.sortIndex=t.expirationTime,O(i,t)}t=E(r)}}function N(e){var t;h=!1,C(e),u||(null!==E(i)?(u=!0,L($)):null!==(t=E(r))&&D(N,t.startTime-e))}function $(t,n){u=!1,h&&(h=!1,f(x),x=-1),c=!0;var o=l;try{for(C(n),a=E(i);null!==a&&(!(a.expirationTime>n)||t&&!A());){var s,d=a.callback;"function"==typeof d?(a.callback=null,l=a.priorityLevel,s=d(a.expirationTime<=n),n=e.unstable_now(),"function"==typeof s?a.callback=s:a===E(i)&&T(i),C(n)):T(i),a=E(i)}var p;return null!==a||(null!==(p=E(r))&&D(N,p.startTime-n),!1)}finally{a=null,l=o,c=!1}}function A(){return!(e.unstable_now()-S<k)}function M(){if(null!==y){var t=e.unstable_now(),n=(S=t,!0);try{n=y(!0,t)}finally{n?m():(b=!1,y=null)}}else b=!1}function L(e){y=e,b||(b=!0,m())}function D(t,n){x=d(function(){t(e.unstable_now())},n)}}()),y.exports}function k(){if(!g){g=1;var e,t,n,o=d(),i=x(),r=new Set,s={},a=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},h={},p={},f=("children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){p[e]=new Bo(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];p[t]=new Bo(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){p[e]=new Bo(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){p[e]=new Bo(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){p[e]=new Bo(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){p[e]=new Bo(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){p[e]=new Bo(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){p[e]=new Bo(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){p[e]=new Bo(e,5,!1,e.toLowerCase(),null,!1,!1)}),/[\-:]([a-z])/g),m=(o=("accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(f,Yo);p[t]=new Bo(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(f,Yo);p[t]=new Bo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(f,Yo);p[t]=new Bo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){p[e]=new Bo(e,1,!1,e.toLowerCase(),null,!1,!1)}),p.xlinkHref=new Bo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){p[e]=new Bo(e,1,!1,e.toLowerCase(),null,!0,!0)}),o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED),Symbol.for("react.element")),v=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),S=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),$=Symbol.iterator,A=Object.assign,M=!1,L=Array.isArray,D=(n=function(e,n){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=n;else{for((t=t||document.createElement("div")).innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=t.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,o,i){MSApp.execUnsafeLocalFunction(function(){return n(e,t)})}:n),I={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},R=["Webkit","ms","Moz","O"],F=(Object.keys(I).forEach(function(e){R.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),I[t]=I[e]})}),A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0})),H=null,V=null,j=null,z=null,U=!1,B=!1;if(a)try{var Y={};Object.defineProperty(Y,"passive",{get:function(){B=!0}}),window.addEventListener("test",Y,Y),window.removeEventListener("test",Y,Y)}catch(Y){B=!1}for(var W,G,q,X,Q,Z,K,J,ee=!1,te=null,ne=!1,oe=null,ie={onError:function(e){ee=!0,te=e}},re=i.unstable_scheduleCallback,se=i.unstable_cancelCallback,ae=i.unstable_shouldYield,le=i.unstable_requestPaint,ce=i.unstable_now,ue=i.unstable_getCurrentPriorityLevel,he=i.unstable_ImmediatePriority,de=i.unstable_UserBlockingPriority,pe=i.unstable_NormalPriority,fe=i.unstable_LowPriority,ge=i.unstable_IdlePriority,me=null,ve=null,_e=Math.clz32||function(e){return 0==(e>>>=0)?32:31-(be(e)/ye|0)|0},be=Math.log,ye=Math.LN2,we=64,xe=4194304,ke=0,Se=!1,Oe=[],Ee=null,Te=null,Pe=null,Ce=new Map,Ne=new Map,$e=[],Ae="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),Me=o.ReactCurrentBatchConfig,Le=!0,De=null,Ie=null,Re=null,Fe=null,He=ir(Y={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0}),Ve=ir(it=A({},Y,{view:0,detail:0})),je=A({},it,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==J&&(K=J&&"mousemove"===e.type?(Z=e.screenX-J.screenX,e.screenY-J.screenY):Z=0,J=e),Z)},movementY:function(e){return"movementY"in e?e.movementY:K}}),ze=ir(je),Ue=ir(A({},je,{dataTransfer:0})),Be=ir(A({},it,{relatedTarget:0})),Ye=ir(A({},Y,{animationName:0,elapsedTime:0,pseudoElement:0})),We=ir(A({},Y,{clipboardData:function(e){return("clipboardData"in e?e:window).clipboardData}})),Ge=ir(A({},Y,{data:0})),qe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xe={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Qe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ze=ir(A({},it,{key:function(e){if(e.key){var t=qe[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Xe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sr,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Ke=ir(A({},je,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Je=ir(A({},it,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sr})),et=ir(A({},Y,{propertyName:0,elapsedTime:0,pseudoElement:0})),tt=ir(A({},je,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),nt=[9,13,27,32],ot=(a&&"CompositionEvent"in window),it=null,rt=(a&&"documentMode"in document&&(it=document.documentMode),a&&"TextEvent"in window&&!it),st=a&&(!ot||it&&8<it&&it<=11),at=String.fromCharCode(32),lt=!1,ct=!1,ut={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},ht=null,dt=null,pt=!1,ft=(a&&(it=a&&((Y="oninput"in document)||((je=document.createElement("div")).setAttribute("oninput","return;"),Y="function"==typeof je.oninput),Y),pt=it&&(!document.documentMode||9<document.documentMode)),"function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}),gt=(a&&"documentMode"in document&&document.documentMode<=11),mt=null,vt=null,_t=null,bt=!1,yt={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},wt={},xt={},kt=(a&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete yt.animationend.animation,delete yt.animationiteration.animation,delete yt.animationstart.animation),"TransitionEvent"in window||delete yt.transitionend.transition),Tr("animationend")),St=Tr("animationiteration"),Ot=Tr("animationstart"),Et=Tr("transitionend"),Tt=new Map,Pt="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "),Ct=0;Ct<Pt.length;Ct++){var Nt=Pt[Ct];Pr(Nt.toLowerCase(),"on"+(Nt[0].toUpperCase()+Nt.slice(1)))}Pr(kt,"onAnimationEnd"),Pr(St,"onAnimationIteration"),Pr(Ot,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Et,"onTransitionEnd"),Uo("onMouseEnter",["mouseout","mouseover"]),Uo("onMouseLeave",["mouseout","mouseover"]),Uo("onPointerEnter",["pointerout","pointerover"]),Uo("onPointerLeave",["pointerout","pointerover"]),zo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zo("onBeforeInput",["compositionend","keypress","textInput","paste"]),zo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $t="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),At=new Set("cancel close invalid load scroll toggle".split(" ").concat($t)),Mt="_reactListening"+Math.random().toString(36).slice(2),Lt=/\r\n?/g,Dt=/\u0000|\uFFFD/g,It=null,Rt=null,Ft="function"==typeof setTimeout?setTimeout:void 0,Ht="function"==typeof clearTimeout?clearTimeout:void 0,Vt="function"==typeof Promise?Promise:void 0,jt="function"==typeof queueMicrotask?queueMicrotask:void 0!==Vt?function(e){return Vt.resolve(null).then(e).catch(Br)}:Ft,zt="__reactFiber$"+(je=Math.random().toString(36).slice(2)),Ut="__reactProps$"+je,Bt="__reactContainer$"+je,Yt="__reactEvents$"+je,Wt="__reactListeners$"+je,Gt="__reactHandles$"+je,qt=[],Xt=-1,Qt={},Zt=Kr(Qt),Kt=Kr(!1),Jt=Qt,en=null,tn=!1,nn=!1,on=[],rn=0,sn=null,an=0,ln=[],cn=0,un=null,hn=1,dn="",pn=null,fn=null,gn=!1,mn=null,vn=o.ReactCurrentBatchConfig,_n=Es(!0),bn=Es(!1),yn=Kr(null),wn=null,xn=null,kn=null,Sn=null,On=!1,En={},Tn=Kr(En),Pn=Kr(En),Cn=Kr(En),Nn=Kr(0),$n=[],An=o.ReactCurrentDispatcher,Mn=o.ReactCurrentBatchConfig,Ln=0,Dn=null,In=null,Rn=null,Fn=!1,Hn=!1,Vn=0,jn=0,zn={readContext:$s,useCallback:Qs,useContext:Qs,useEffect:Qs,useImperativeHandle:Qs,useInsertionEffect:Qs,useLayoutEffect:Qs,useMemo:Qs,useReducer:Qs,useRef:Qs,useState:Qs,useDebugValue:Qs,useDeferredValue:Qs,useTransition:Qs,useMutableSource:Qs,useSyncExternalStore:Qs,useId:Qs,unstable_isNewReconciler:!1},Un={readContext:$s,useCallback:function(e,t){return ea().memoizedState=[e,void 0===t?null:t],e},useContext:$s,useEffect:va,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ga(4194308,4,wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ga(4194308,4,e,t)},useInsertionEffect:function(e,t){return ga(4,2,e,t)},useMemo:function(e,t){var n=ea();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=ea();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(o.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=function(e,t,n){var o=Nl(e);n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Pa(e)?Ca(t,n):null!==(n=Ms(e,t,n,o))&&($l(n,e,o,Cl()),Na(n,t,o))}.bind(null,Dn,e),[o.memoizedState,e]},useRef:function(e){return ea().memoizedState={current:e}},useState:da,useDebugValue:ka,useDeferredValue:function(e){return ea().memoizedState=e},useTransition:function(){var e=(t=da(!1))[0],t=function(e,t){var n=ke,o=(ke=0!==n&&n<4?n:4,e(!0),Mn.transition);Mn.transition={};try{e(!1),t()}finally{ke=n,Mn.transition=o}}.bind(null,t[1]);return[e,ea().memoizedState=t]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Dn,i=ea();if(gn){if(void 0===n)throw Error(jo(407));n=n()}else{if(n=t(),null===fo)throw Error(jo(349));!(30&Ln)&&aa(o,t,n)}var r={value:i.memoizedState=n,getSnapshot:t};return va(ca.bind(null,o,i.queue=r,e),[e]),o.flags|=2048,pa(9,la.bind(null,o,r,n,t),void 0,null),n},useId:function(){var e,t=ea(),n=fo.identifierPrefix;return gn?(e=dn,n=":"+n+"R"+(e=(hn&~(1<<32-_e(hn)-1)).toString(32)+e),0<(e=Vn++)&&(n+="H"+e.toString(32)),n+=":"):n=":"+n+"r"+(e=jn++).toString(32)+":",t.memoizedState=n},unstable_isNewReconciler:!1},Bn={readContext:$s,useCallback:Sa,useContext:$s,useEffect:_a,useImperativeHandle:xa,useInsertionEffect:ba,useLayoutEffect:ya,useMemo:Oa,useReducer:oa,useRef:fa,useState:function(){return oa(na)},useDebugValue:ka,useDeferredValue:function(e){return Ea(ta(),In.memoizedState,e)},useTransition:function(){return[oa(na)[0],ta().memoizedState]},useMutableSource:ra,useSyncExternalStore:sa,useId:Ta,unstable_isNewReconciler:!1},Yn={readContext:$s,useCallback:Sa,useContext:$s,useEffect:_a,useImperativeHandle:xa,useInsertionEffect:ba,useLayoutEffect:ya,useMemo:Oa,useReducer:ia,useRef:fa,useState:function(){return ia(na)},useDebugValue:ka,useDeferredValue:function(e){var t=ta();return null===In?t.memoizedState=e:Ea(t,In.memoizedState,e)},useTransition:function(){return[ia(na)[0],ta().memoizedState]},useMutableSource:ra,useSyncExternalStore:sa,useId:Ta,unstable_isNewReconciler:!1},Wn={isMounted:function(e){return!!(e=e._reactInternals)&&Ci(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=Cl(),i=Nl(e),r=Rs(o,i);r.payload=t,null!=n&&(r.callback=n),null!==(t=Fs(e,r,i))&&($l(t,e,i,o),Hs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=Cl(),i=Nl(e),r=Rs(o,i);r.tag=1,r.payload=t,null!=n&&(r.callback=n),null!==(t=Fs(e,r,i))&&($l(t,e,i,o),Hs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cl(),o=Nl(e),i=Rs(n,o);i.tag=2,null!=t&&(i.callback=t),null!==(t=Fs(e,i,o))&&($l(t,e,o,n),Hs(t,e,o))}},Gn="function"==typeof WeakMap?WeakMap:Map,qn=o.ReactCurrentOwner,Xn=!1,Qn={dehydrated:null,treeContext:null,retryLane:0},Zn=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n=(n.child.return=n).child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Kn=function(){},Jn=function(e,t,n,o){var i=e.memoizedProps;if(i!==o){e=t.stateNode,Us(Tn.current);var r,a=null;switch(n){case"input":i=ni(e,i),o=ni(e,o),a=[];break;case"select":i=A({},i,{value:void 0}),o=A({},o,{value:void 0}),a=[];break;case"textarea":i=ci(e,i),o=ci(e,o),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof o.onClick&&(e.onclick=zr)}for(u in _i(n,o),n=null,i)if(!o.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(r in l)l.hasOwnProperty(r)&&((n=n||{})[r]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a=a||[]:(a=a||[]).push(u,null));for(u in o){var c=o[u];l=null!=i?i[u]:void 0;if(o.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(r in l)!l.hasOwnProperty(r)||c&&c.hasOwnProperty(r)||((n=n||{})[r]="");for(r in c)c.hasOwnProperty(r)&&l[r]!==c[r]&&((n=n||{})[r]=c[r])}else n||(a=a||[]).push(u,n),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&$r("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},eo=function(e,t,n,o){n!==o&&(t.flags|=4)},to=!1,no=!1,oo="function"==typeof WeakSet?WeakSet:Set,io=null,ro=!1,so=null,ao=!1,lo=Math.ceil,co=o.ReactCurrentDispatcher,uo=o.ReactCurrentOwner,ho=o.ReactCurrentBatchConfig,po=0,fo=null,go=null,mo=0,vo=0,_o=Kr(0),bo=0,yo=null,wo=0,xo=0,ko=0,So=null,Oo=null,Eo=0,To=1/0,Po=null,Co=!1,No=null,$o=null,Ao=!1,Mo=null,Lo=0,Do=0,Io=null,Ro=-1,Fo=0,Ho=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Kt.current)Xn=!0;else{if(0==(e.lanes&n)&&!(128&t.flags)){Xn=!1;var o=e,i=t,r=n;switch(i.tag){case 3:el(i),ws();break;case 5:Ws(i);break;case 1:ns(i.type)&&ss(i);break;case 4:Bs(i,i.stateNode.containerInfo);break;case 10:var s=i.type._context,a=i.memoizedProps.value;es(yn,s._currentValue),s._currentValue=a;break;case 13:if(null!==(s=i.memoizedState))return null!==s.dehydrated?(es(Nn,1&Nn.current),i.flags|=128,null):0!=(r&i.child.childLanes)?ol(o,i,r):(es(Nn,1&Nn.current),null!==(o=ul(o,i,r))?o.sibling:null);es(Nn,1&Nn.current);break;case 19:if(s=0!=(r&i.childLanes),128&o.flags){if(s)return ll(o,i,r);i.flags|=128}if(null!==(a=i.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),es(Nn,Nn.current),s)break;return null;case 22:case 23:return i.lanes=0,Xa(o,i,r)}return ul(o,i,r)}Xn=!!(131072&e.flags)}else Xn=!1,gn&&1048576&t.flags&&hs(t,an,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type,c=(cl(e,t),e=t.pendingProps,ts(t,Zt.current)),u=(Ns(t,n),c=Ks(null,t,l,e,c,n),Js());return t.flags|=1,"object"==typeof c&&null!==c&&"function"==typeof c.render&&void 0===c.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ns(l)?(u=!0,ss(t)):u=!1,t.memoizedState=null!=c.state?c.state:null,Ds(t),c.updater=Wn,Ia((t.stateNode=c)._reactInternals=t,l,e,n),Ja(null,t,l,!0,u,n)):(t.tag=0,gn&&u&&ds(t),Ya(null,t,c,n),t.child);case 16:l=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,l=(c=l._init)(l._payload),t.type=l,c=t.tag=(e=>{if("function"==typeof e)return nc(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===P)return 14}return 2})(l),e=$a(l,e),c){case 0:t=Za(null,t,l,e,n);break e;case 1:t=Ka(null,t,l,e,n);break e;case 11:t=Wa(null,t,l,e,n);break e;case 14:t=Ga(null,t,l,$a(l.type,e),n);break e}throw Error(jo(306,l,""))}return t;case 0:return l=t.type,c=t.pendingProps,Za(e,t,l,c=t.elementType===l?c:$a(l,c),n);case 1:return l=t.type,c=t.pendingProps,Ka(e,t,l,c=t.elementType===l?c:$a(l,c),n);case 3:e:{if(el(t),null===e)throw Error(jo(387));l=t.pendingProps,c=(u=t.memoizedState).element,Is(e,t),js(t,l,null,n);l=(f=t.memoizedState).element;if(u.isDehydrated){if(u={element:l,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,256&t.flags){t=tl(e,t,l,n,c=Ra(Error(jo(423)),t));break e}if(l!==c){t=tl(e,t,l,n,c=Ra(Error(jo(424)),t));break e}for(fn=Wr(t.stateNode.containerInfo.firstChild),gn=!0,n=bn(pn=t,mn=null,l,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ws(),l===c){t=ul(e,t,n);break e}Ya(e,t,l,n)}t=t.child}return t;case 5:return Ws(t),null===e&&vs(t),l=t.type,c=t.pendingProps,u=null!==e?e.memoizedProps:null,f=c.children,Ur(l,c)?f=null:null!==u&&Ur(l,u)&&(t.flags|=32),Qa(e,t),Ya(e,t,f,n),t.child;case 6:return null===e&&vs(t),null;case 13:return ol(e,t,n);case 4:return Bs(t,t.stateNode.containerInfo),l=t.pendingProps,null===e?t.child=_n(t,null,l,n):Ya(e,t,l,n),t.child;case 11:return l=t.type,c=t.pendingProps,Wa(e,t,l,c=t.elementType===l?c:$a(l,c),n);case 7:return Ya(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ya(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(l=t.type._context,c=t.pendingProps,u=t.memoizedProps,f=c.value,es(yn,l._currentValue),l._currentValue=f,null!==u)if(ft(u.value,f)){if(u.children===c.children&&!Kt.current){t=ul(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var h=u.dependencies;if(null!==h)for(var d,p,f=u.child,g=h.firstContext;null!==g;){if(g.context===l){1===u.tag&&((g=Rs(-1,n&-n)).tag=2,null!==(d=u.updateQueue))&&(null===(p=(d=d.shared).pending)?g.next=g:(g.next=p.next,p.next=g),d.pending=g),u.lanes|=n,null!==(g=u.alternate)&&(g.lanes|=n),Cs(u.return,n,t),h.lanes|=n;break}g=g.next}else if(10===u.tag)f=u.type===t.type?null:u.child;else if(18===u.tag){if(null===(f=u.return))throw Error(jo(341));f.lanes|=n,null!==(h=f.alternate)&&(h.lanes|=n),Cs(f,n,t),f=u.sibling}else f=u.child;if(null!==f)f.return=u;else for(f=u;null!==f;){if(f===t){f=null;break}if(null!==(u=f.sibling)){u.return=f.return,f=u;break}f=f.return}u=f}Ya(e,t,c.children,n),t=t.child}return t;case 9:return c=t.type,l=t.pendingProps.children,Ns(t,n),l=l(c=$s(c)),t.flags|=1,Ya(e,t,l,n),t.child;case 14:return c=$a(l=t.type,t.pendingProps),Ga(e,t,l,c=$a(l.type,c),n);case 15:return qa(e,t,t.type,t.pendingProps,n);case 17:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:$a(l,c),cl(e,t),t.tag=1,ns(l)?(e=!0,ss(t)):e=!1,Ns(t,n),La(t,l,c),Ia(t,l,c,n),Ja(null,t,l,!0,e,n);case 19:return ll(e,t,n);case 22:return Xa(e,t,n)}throw Error(jo(156,t.tag))},Vo="function"==typeof reportError?reportError:function(e){console.error(e)};Y=(_c.prototype.render=vc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(jo(409));pc(e,t,null,null)},_c.prototype.unmount=vc.prototype.unmount=function(){var e,t=this._internalRoot;null!==t&&(this._internalRoot=null,e=t.containerInfo,Hl(function(){pc(null,t,null,null)}),e[Bt]=null)},_c.prototype.unstable_scheduleHydration=function(e){if(e){var t=X();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$e.length&&0!==t&&t<$e[n].priority;n++);$e.splice(n,0,e),0===n&&Ui(e)}},W=function(e){switch(e.tag){case 3:var t,n=e.stateNode;n.current.memoizedState.isDehydrated&&0!==(t=Mi(n.pendingLanes))&&(Hi(n,1|t),Al(n,ce()),!(6&po))&&(To=ce()+500,cs());break;case 13:Hl(function(){var t,n=Ls(e,1);null!==n&&(t=Cl(),$l(n,e,1,t))}),mc(e,1)}},G=function(e){var t;13===e.tag&&(null!==(t=Ls(e,134217728))&&$l(t,e,134217728,Cl()),mc(e,134217728))},q=function(e){var t,n;13===e.tag&&(null!==(n=Ls(e,t=Nl(e)))&&$l(n,e,t,Cl()),mc(e,t))},X=function(){return ke},Q=function(e,t){var n=ke;try{return ke=e,t()}finally{ke=n}},Oi=Hl,{usingClientEntryPoint:!(V=function(e,t,n){switch(t){case"input":if(ri(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=Zr(o);if(!i)throw Error(jo(90));ei(o),ri(o,i)}}}break;case"textarea":hi(e,n);break;case"select":null!=(t=n.value)&&li(e,!!n.multiple,t,!1)}}),Events:[Xr,Qr,Zr,xi,ki,Si=Fl]}),a={bundleType:(it={findFiberByHostInstance:qr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"}).bundleType,version:it.version,rendererPackageName:it.rendererPackageName,rendererConfig:it.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:o.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ai(e))?null:e.stateNode},findFiberByHostInstance:it.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&!(je=__REACT_DEVTOOLS_GLOBAL_HOOK__).isDisabled&&je.supportsFiber)try{me=je.inject(a),ve=je}catch(Y){}b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,b.createPortal=function(e,t){if(bc(t))return function(e,t,n,o){return{$$typeof:v,key:null==(o=3<arguments.length&&void 0!==o?o:null)?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null);throw Error(jo(200))},b.createRoot=function(e,t){var n,o,i;if(bc(e))return n=!1,o="",i=Vo,null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError)&&(i=t.onRecoverableError),t=uc(e,1,!1,null,0,n,0,o,i),e[Bt]=t.current,Mr(8===e.nodeType?e.parentNode:e),new vc(t);throw Error(jo(299))},b.findDOMNode=function(e){if(null==e)return null;if(1!==e.nodeType){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(jo(188));throw e=Object.keys(e).join(","),Error(jo(268,e))}e=null===(e=Ai(t))?null:e.stateNode}return e},b.flushSync=Hl,b.hydrate=function(e,t,n){if(yc(t))return xc(null,e,t,!0,n);throw Error(jo(200))},b.hydrateRoot=function(e,t,n){if(!bc(e))throw Error(jo(405));var o=null!=n&&n.hydratedSources||null,i=!1,r="",s=Vo;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError)&&(s=n.onRecoverableError),t=dc(t,null,e,1,null!=n?n:null,i,0,r,s),e[Bt]=t.current,Mr(e),o)for(e=0;e<o.length;e++)i=(i=(n=o[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new _c(t)},b.render=function(e,t,n){if(yc(t))return xc(null,e,t,!1,n);throw Error(jo(200))},b.unmountComponentAtNode=function(e){if(yc(e))return!!e._reactRootContainer&&(Hl(function(){xc(null,null,e,!1,function(){e._reactRootContainer=null,e[Bt]=null})}),!0);throw Error(jo(40))},b.unstable_batchedUpdates=Fl,b.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!yc(n))throw Error(jo(200));if(null==e||void 0===e._reactInternals)throw Error(jo(38));return xc(e,t,n,!1,o)},b.version="18.3.1-next-f1338f8080-20240426"}return b;function jo(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function zo(e,t){Uo(e,t),Uo(e+"Capture",t)}function Uo(e,t){for(s[e]=t,e=0;e<t.length;e++)r.add(t[e])}function Bo(e,t,n,o,i,r,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=s}function Yo(e){return e[1].toUpperCase()}function Wo(e,t,n,o){var i,r=p.hasOwnProperty(t)?p[t]:null;(null!==r?0!==r.type:o||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,o){if(null==t||((e,t,n,o)=>{if(null===n||0!==n.type)switch(typeof t){case"function":case"symbol":return 1;case"boolean":return o?void 0:null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return}})(e,t,n,o))return 1;if(!o&&null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}}(t,n,r,o)&&(n=null),o||null===r?(i=t,(l.call(h,i)||!l.call(u,i)&&(c.test(i)?h[i]=!0:void(u[i]=!0)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}function Go(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=$&&e[$]||e["@@iterator"])?e:null}function qo(t){if(void 0===e)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);e=n&&n[1]||""}return"\n"+e+t}function Xo(e,t){if(!e||M)return"";M=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(t){var o=t}Reflect.construct(e,[],t)}else{try{t.call()}catch(t){o=t}e.call(t.prototype)}else{try{throw Error()}catch(t){o=t}e()}}catch(t){if(t&&o&&"string"==typeof t.stack){for(var i,r=t.stack.split("\n"),s=o.stack.split("\n"),a=r.length-1,l=s.length-1;1<=a&&0<=l&&r[a]!==s[l];)l--;for(;1<=a&&0<=l;a--,l--)if(r[a]!==s[l]){if(1!==a||1!==l)do{if(a--,--l<0||r[a]!==s[l])return i="\n"+r[a].replace(" at new "," at "),i=e.displayName&&i.includes("<anonymous>")?i.replace("<anonymous>",e.displayName):i}while(1<=a&&0<=l);break}}}finally{M=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qo(e):""}function Qo(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(t){if(null!=t){if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case _:return"Fragment";case v:return"Portal";case w:return"Profiler";case y:return"StrictMode";case E:return"Suspense";case T:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case S:return(t.displayName||"Context")+".Consumer";case k:return(t._context.displayName||"Context")+".Provider";case O:var n=t.render;return(t=t.displayName)||(""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef");case P:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case C:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}}return null}(t);case 8:return t===y?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Zo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Ko(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Jo(e){e._valueTracker||(e._valueTracker=(e=>{var t,n,o=Ko(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,o),r=""+e[o];if(!e.hasOwnProperty(o)&&void 0!==i&&"function"==typeof i.get&&"function"==typeof i.set)return t=i.get,n=i.set,Object.defineProperty(e,o,{configurable:!0,get:function(){return t.call(this)},set:function(e){r=""+e,n.call(this,e)}}),Object.defineProperty(e,o,{enumerable:i.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[o]}}})(e))}function ei(e){var t,n,o;if(e)return(t=e._valueTracker)?(n=t.getValue(),o="",(e=o=e?Ko(e)?e.checked?"true":"false":e.value:o)!==n&&(t.setValue(e),1)):1}function ti(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ni(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function oi(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=Zo(null!=t.value?t.value:n);e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ii(e,t){null!=(t=t.checked)&&Wo(e,"checked",t,!1)}function ri(e,t){ii(e,t);var n=Zo(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?ai(e,t.type,n):t.hasOwnProperty("defaultValue")&&ai(e,t.type,Zo(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function si(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(("submit"===o||"reset"===o)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ai(e,t,n){"number"===t&&ti(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function li(e,t,n,o){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Zo(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(o&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ci(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(jo(91));return A({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ui(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(jo(92));if(L(n)){if(1<n.length)throw Error(jo(93));n=n[0]}t=n}n=t=null==t?"":t}e._wrapperState={initialValue:Zo(n)}}function hi(e,t){var n=Zo(t.value),o=Zo(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue)&&e.defaultValue!==n&&(e.defaultValue=n),null!=o&&(e.defaultValue=""+o)}function di(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function pi(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fi(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pi(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function gi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function mi(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||I.hasOwnProperty(e)&&I[e]?(""+t).trim():t+"px"}function vi(e,t){for(var n in e=e.style,t){var o,i;t.hasOwnProperty(n)&&(o=0===n.indexOf("--"),i=mi(n,t[n],o),"float"===n&&(n="cssFloat"),o?e.setProperty(n,i):e[n]=i)}}function _i(e,t){if(t){if(F[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(jo(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(jo(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(jo(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(jo(62))}}function bi(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function yi(e){return 3===(e=(e=e.target||e.srcElement||window).correspondingUseElement?e.correspondingUseElement:e).nodeType?e.parentNode:e}function wi(e){if(e=Xr(e)){if("function"!=typeof V)throw Error(jo(280));var t=e.stateNode;t&&(t=Zr(t),V(e.stateNode,e.type,t))}}function xi(e){j?z?z.push(e):z=[e]:j=e}function ki(){if(j){var e=j,t=z;if(z=j=null,wi(e),t)for(e=0;e<t.length;e++)wi(t[e])}}function Si(e,t){return e(t)}function Oi(){}function Ei(e,t,n){if(U)return e(t,n);U=!0;try{Si(e,t,n)}finally{U=!1,null===j&&null===z||(Oi(),ki())}}function Ti(e,t){var n=e.stateNode;if(null===n)return null;var o=Zr(n);if(null===o)return null;switch(n=o[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":e=!(o=(o=!o.disabled)?o:!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e));break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(jo(231,t,typeof n));return n}function Pi(e,t,n,o,i,r,s,a,l){ee=!1,te=null,function(e,t,n,o,i,r,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}.apply(ie,arguments)}function Ci(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else for(e=t;!!(4098&(t=e).flags)&&(n=t.return),e=t.return;);return 3===t.tag?n:null}function Ni(e){if(13===e.tag){var t=e.memoizedState;if(null!==(t=null===t&&null!==(e=e.alternate)?e.memoizedState:t))return t.dehydrated}return null}function $i(e){if(Ci(e)!==e)throw Error(jo(188))}function Ai(e){return null!==(e=(e=>{var t=e.alternate;if(!t){if(null===(t=Ci(e)))throw Error(jo(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var r=i.alternate;if(null===r){if(null===(o=i.return))break;n=o}else{if(i.child===r.child){for(r=i.child;r;){if(r===n)return $i(i),e;if(r===o)return $i(i),t;r=r.sibling}throw Error(jo(188))}if(n.return!==o.return)n=i,o=r;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,o=r;break}if(a===o){s=!0,o=i,n=r;break}a=a.sibling}if(!s){for(a=r.child;a;){if(a===n){s=!0,n=r,o=i;break}if(a===o){s=!0,o=r,n=i;break}a=a.sibling}if(!s)throw Error(jo(189))}}if(n.alternate!==o)throw Error(jo(190))}}if(3!==n.tag)throw Error(jo(188));return n.stateNode.current===n?e:t})(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var n=e(t);if(null!==n)return n;t=t.sibling}return null}(e):null}function Mi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Li(e,t){var n=e.pendingLanes;if(0===n)return 0;var o,i=0,r=e.suspendedLanes,s=e.pingedLanes,a=268435455&n;if(0!=a?0!=(o=a&~r)?i=Mi(o):0!==(s&=a)&&(i=Mi(s)):0!=(a=n&~r)?i=Mi(a):0!==s&&(i=Mi(s)),0===i)return 0;if(0!==t&&t!==i&&0==(t&r)&&((s=t&-t)<=(r=i&-i)||16===r&&4194240&s))return t;if(!!(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)i|=e[n=31-_e(t)],t&=~(r=1<<n);return i}function Di(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ii(){var e=we;return!(4194240&(we<<=1))&&(we=64),e}function Ri(e){for(var t=[],n=0;n<31;n++)t.push(e);return t}function Fi(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-_e(t)]=n}function Hi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-_e(n),i=1<<o;i&t|e[o]&t&&(e[o]|=t),n&=~i}}function Vi(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}function ji(e,t){switch(e){case"focusin":case"focusout":Ee=null;break;case"dragenter":case"dragleave":Te=null;break;case"mouseover":case"mouseout":Pe=null;break;case"pointerover":case"pointerout":Ce.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ne.delete(t.pointerId)}}function zi(e,t,n,o,i,r){return null===e||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:r,targetContainers:[i]},null!==t&&null!==(t=Xr(t))&&G(t)):(e.eventSystemFlags|=o,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i)),e}function Ui(e){var t=qr(e.target);if(null!==t){var n=Ci(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ni(n)))return e.blockedOn=t,void Q(e.priority,function(){q(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bi(e){if(null===e.blockedOn){for(var t=e.targetContainers;0<t.length;){var n=Ki(e.domEventName,0,t[0],e.nativeEvent);if(null!==n)return null!==(t=Xr(n))&&G(t),e.blockedOn=n,0;var o=new(n=e.nativeEvent).constructor(n.type,n);H=o,n.target.dispatchEvent(o),H=null,t.shift()}return 1}}function Yi(e,t,n){Bi(e)&&n.delete(t)}function Wi(){Se=!1,null!==Ee&&Bi(Ee)&&(Ee=null),null!==Te&&Bi(Te)&&(Te=null),null!==Pe&&Bi(Pe)&&(Pe=null),Ce.forEach(Yi),Ne.forEach(Yi)}function Gi(e,t){e.blockedOn===t&&(e.blockedOn=null,Se||(Se=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Wi)))}function qi(e){function t(t){return Gi(t,e)}if(0<Oe.length){Gi(Oe[0],e);for(var n=1;n<Oe.length;n++){var o=Oe[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Ee&&Gi(Ee,e),null!==Te&&Gi(Te,e),null!==Pe&&Gi(Pe,e),Ce.forEach(t),Ne.forEach(t),n=0;n<$e.length;n++)(o=$e[n]).blockedOn===e&&(o.blockedOn=null);for(;0<$e.length&&null===(n=$e[0]).blockedOn;)Ui(n),null===n.blockedOn&&$e.shift()}function Xi(e,t,n,o){var i=ke,r=Me.transition;Me.transition=null;try{ke=1,Zi(e,t,n,o)}finally{ke=i,Me.transition=r}}function Qi(e,t,n,o){var i=ke,r=Me.transition;Me.transition=null;try{ke=4,Zi(e,t,n,o)}finally{ke=i,Me.transition=r}}function Zi(e,t,n,o){if(Le){var i=Ki(e,0,0,o);if(null===i)Dr(e,t,o,De,n),ji(e,o);else if(((e,t,n,o,i)=>{switch(t){case"focusin":return Ee=zi(Ee,e,t,n,o,i),1;case"dragenter":return Te=zi(Te,e,t,n,o,i),1;case"mouseover":return Pe=zi(Pe,e,t,n,o,i),1;case"pointerover":var r=i.pointerId;return Ce.set(r,zi(Ce.get(r)||null,e,t,n,o,i)),1;case"gotpointercapture":return r=i.pointerId,Ne.set(r,zi(Ne.get(r)||null,e,t,n,o,i)),1}})(i,e,t,n,o))o.stopPropagation();else if(ji(e,o),4&t&&-1<Ae.indexOf(e)){for(;null!==i;){var r=Xr(i);if(null!==r&&W(r),null===(r=Ki(e,0,0,o))&&Dr(e,t,o,De,n),r===i)break;i=r}null!==i&&o.stopPropagation()}else Dr(e,t,o,null,n)}}function Ki(e,t,n,o){if((De=null)!==(e=qr(e=yi(o))))if(null===(t=Ci(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ni(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return De=e,null}function Ji(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ue()){case he:return 1;case de:return 4;case pe:case fe:return 16;case ge:return 536870912;default:return 16}default:return 16}}function er(){if(Fe)return Fe;for(var e=Re,t=e.length,n=("value"in Ie?Ie.value:Ie.textContent),o=n.length,i=0;i<t&&e[i]===n[i];i++);for(var r=t-i,s=1;s<=r&&e[t-s]===n[o-s];s++);return Fe=n.slice(i,1<s?1-s:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=(e=10===e?13:e)||13===e?e:0}function nr(){return!0}function or(){return!1}function ir(e){function t(t,n,o,i,r){for(var s in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=r,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nr:or,this.isPropagationStopped=or,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){},isPersistent:nr}),t}function rr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Qe[e])&&!!t[e]}function sr(){return rr}function ar(e,t){switch(e){case"keyup":return-1!==nt.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return 1;default:return}}function lr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?ut[e.type]:"textarea"===t}function ur(e,t,n,o){xi(o),0<(t=Rr(t,"onChange")).length&&(n=new He("onChange","change",null,n,o),e.push({event:n,listeners:t}))}function hr(e){Nr(e,0)}function dr(e){if(ei(Qr(e)))return e}function pr(e,t){if("change"===e)return t}function fr(){ht&&(ht.detachEvent("onpropertychange",gr),dt=ht=null)}function gr(e){var t;"value"===e.propertyName&&dr(dt)&&(ur(t=[],dt,e,yi(e)),Ei(hr,t))}function mr(e,t,n){"focusin"===e?(fr(),dt=n,(ht=t).attachEvent("onpropertychange",gr)):"focusout"===e&&fr()}function vr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return dr(dt)}function _r(e,t){if("click"===e)return dr(t)}function br(e,t){if("input"===e||"change"===e)return dr(t)}function yr(e,t){if(!ft(e,t)){if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var i=n[o];if(!l.call(t,i)||!ft(e[i],t[i]))return!1}}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xr(e,t){var n,o=wr(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&t<=n)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=wr(o)}}function kr(){for(var e=window,t=ti();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ti((e=t.contentWindow).document)}return t}function Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Or(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;bt||null==mt||mt!==ti(o)||(o="selectionStart"in(o=mt)&&Sr(o)?{start:o.selectionStart,end:o.selectionEnd}:{anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},_t&&yr(_t,o))||(_t=o,0<(o=Rr(vt,"onSelect")).length&&(t=new He("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=mt))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function Tr(e){if(wt[e])return wt[e];if(yt[e]){var t,n=yt[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return wt[e]=n[t]}return e}function Pr(e,t){Tt.set(e,t),zo(t,[e])}function Cr(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(){var e;Pi.apply(this,arguments),ee&&(e=te,ee=!1,te=null,ne||(ne=!0,oe=e))}(o,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var o=(i=e[n]).event,i=i.listeners;e:{var r=void 0;if(t)for(var s=i.length-1;0<=s;s--){var a=(c=i[s]).instance,l=c.currentTarget,c=c.listener;if(a!==r&&o.isPropagationStopped())break e;Cr(o,c,l),r=a}else for(s=0;s<i.length;s++){if(a=(c=i[s]).instance,l=c.currentTarget,c=c.listener,a!==r&&o.isPropagationStopped())break e;Cr(o,c,l),r=a}}}if(ne)throw e=oe,ne=!1,oe=null,e}function $r(e,t){var n=t[Yt],o=e+"__bubble";(n=void 0===n?t[Yt]=new Set:n).has(o)||(Lr(t,e,2,!1),n.add(o))}function Ar(e,t,n){var o=0;t&&(o|=4),Lr(n,e,o,t)}function Mr(e){var t;e[Mt]||(e[Mt]=!0,r.forEach(function(t){"selectionchange"!==t&&(At.has(t)||Ar(t,!1,e),Ar(t,!0,e))}),null===(t=9===e.nodeType?e:e.ownerDocument))||t[Mt]||Ar("selectionchange",!(t[Mt]=!0),t)}function Lr(e,t,n,o){switch(Ji(t)){case 1:var i=Xi;break;case 4:i=Qi;break;default:i=Zi}n=i.bind(null,t,n,e),i=!(!B||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t)||void 0,o?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Dr(e,t,n,o,i){var r=o;if(!(1&t||2&t||null===o))e:for(;;){if(null===o)return;var s=o.tag;if(3===s||4===s){var a=o.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=o.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=qr(a)))return;if(5===(l=s.tag)||6===l){o=r=s;continue e}a=a.parentNode}}o=o.return}Ei(function(){var o,i,s,a=r,l=yi(n),c=[];e:{var u=Tt.get(e);if(void 0!==u){var h=He,d=e;switch(e){case"keypress":if(0===tr(n))break e;case"keydown":case"keyup":h=Ze;break;case"focusin":d="focus",h=Be;break;case"focusout":d="blur",h=Be;break;case"beforeblur":case"afterblur":h=Be;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=ze;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Ue;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Je;break;case kt:case St:case Ot:h=Ye;break;case Et:h=et;break;case"scroll":h=Ve;break;case"wheel":h=tt;break;case"copy":case"cut":case"paste":h=We;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ke}for(var p=!(g=!!(4&t))&&"scroll"===e,f=g?null!==u?u+"Capture":null:u,g=[],m=a;null!==m;){var v,_=(v=m).stateNode;if(5===v.tag&&null!==_&&(v=_,null!==f)&&null!=(_=Ti(m,f))&&g.push(Ir(m,_,v)),p)break;m=m.return}0<g.length&&(u=new h(u,d,null,n,l),c.push({event:u,listeners:g}))}}if(!(7&t)){if(h="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===H||!(d=n.relatedTarget||n.fromElement)||!qr(d)&&!d[Bt])&&(h||u)&&(u=l.window===l?l:(u=l.ownerDocument)?u.defaultView||u.parentWindow:window,h?(h=a,null!==(d=(d=n.relatedTarget||n.toElement)?qr(d):null)&&(d!==(p=Ci(d))||5!==d.tag&&6!==d.tag)&&(d=null)):(h=null,d=a),h!==d)){if(g=ze,_="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(g=Ke,_="onPointerLeave",f="onPointerEnter",m="pointer"),p=null==h?u:Qr(h),v=null==d?u:Qr(d),(u=new g(_,m+"leave",h,n,l)).target=p,u.relatedTarget=v,_=null,qr(l)===a&&((g=new g(f,m+"enter",d,n,l)).target=v,g.relatedTarget=p,_=g),p=_,h&&d)e:{for(f=d,m=0,v=g=h;v;v=Fr(v))m++;for(v=0,_=f;_;_=Fr(_))v++;for(;0<m-v;)g=Fr(g),m--;for(;0<v-m;)f=Fr(f),v--;for(;m--;){if(g===f||null!==f&&g===f.alternate)break e;g=Fr(g),f=Fr(f)}g=null}else g=null;null!==h&&Hr(c,u,h,g,!1),null!==d&&null!==p&&Hr(c,p,d,g,!0)}switch("select"===(h=(u=a?Qr(a):window).nodeName&&u.nodeName.toLowerCase())||"input"===h&&"file"===u.type?o=pr:cr(u)?pt?o=br:(o=vr,i=mr):!(h=u.nodeName)||"input"!==h.toLowerCase()||"checkbox"!==u.type&&"radio"!==u.type||(o=_r),(o=o&&o(e,a))?ur(c,o,n,l):(i&&i(e,u,a),"focusout"===e&&(i=u._wrapperState)&&i.controlled&&"number"===u.type&&ai(u,"number",u.value)),i=a?Qr(a):window,e){case"focusin":!cr(i)&&"true"!==i.contentEditable||(mt=i,vt=a,_t=null);break;case"focusout":_t=vt=mt=null;break;case"mousedown":bt=!0;break;case"contextmenu":case"mouseup":case"dragend":bt=!1,Or(c,n,l);break;case"selectionchange":if(gt)break;case"keydown":case"keyup":Or(c,n,l)}if(ot)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else ct?ar(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(st&&"ko"!==n.locale&&(ct||"onCompositionStart"!==b?"onCompositionEnd"===b&&ct&&(s=er()):(Re="value"in(Ie=l)?Ie.value:Ie.textContent,ct=!0)),0<(i=Rr(a,b)).length)&&(b=new Ge(b,e,null,n,l),c.push({event:b,listeners:i}),s||null!==(s=lr(n)))&&(b.data=s),(s=(rt?(e,t)=>{switch(e){case"compositionend":return lr(t);case"keypress":return 32!==t.which?null:(lt=!0,at);case"textInput":return(e=t.data)===at&&lt?null:e;default:return null}}:(e,t)=>{if(ct)return"compositionend"===e||!ot&&ar(e,t)?(e=er(),Fe=Re=Ie=null,ct=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return st&&"ko"!==t.locale?null:t.data}})(e,n))&&0<(a=Rr(a,"onBeforeInput")).length&&(l=new Ge("onBeforeInput","beforeinput",null,n,l),c.push({event:l,listeners:a}),l.data=s)}Nr(c,t)})}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rr(e,t){for(var n=t+"Capture",o=[];null!==e;){var i=e,r=i.stateNode;5===i.tag&&null!==r&&(i=r,null!=(r=Ti(e,n))&&o.unshift(Ir(e,r,i)),null!=(r=Ti(e,t)))&&o.push(Ir(e,r,i)),e=e.return}return o}function Fr(e){if(null===e)return null;for(;(e=e.return)&&5!==e.tag;);return e||null}function Hr(e,t,n,o,i){for(var r=t._reactName,s=[];null!==n&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===o)break;5===a.tag&&null!==c&&(a=c,i?null!=(l=Ti(n,r))&&s.unshift(Ir(n,l,a)):null!=(l=Ti(n,r))&&s.push(Ir(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}function Vr(e){return("string"==typeof e?e:""+e).replace(Lt,"\n").replace(Dt,"")}function jr(e,t,n){if(t=Vr(t),Vr(e)!==t&&n)throw Error(jo(425))}function zr(){}function Ur(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function Br(e){setTimeout(function(){throw e})}function Yr(e,t){var n=t,o=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===o)return e.removeChild(i),void qi(t);o--}else"$"!==n&&"$?"!==n&&"$!"!==n||o++}while(n=i);qi(t)}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function qr(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bt]||n[zt]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[zt])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function Xr(e){return!(e=e[zt]||e[Bt])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Qr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(jo(33))}function Zr(e){return e[Ut]||null}function Kr(e){return{current:e}}function Jr(e){Xt<0||(e.current=qt[Xt],qt[Xt]=null,Xt--)}function es(e,t){qt[++Xt]=e.current,e.current=t}function ts(e,t){var n=e.type.contextTypes;if(!n)return Qt;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i,r={};for(i in n)r[i]=t[i];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function ns(e){return null!=e.childContextTypes}function os(){Jr(Kt),Jr(Zt)}function is(e,t,n){if(Zt.current!==Qt)throw Error(jo(168));es(Zt,t),es(Kt,n)}function rs(e,t,n){var o,i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(o in i=i.getChildContext())if(!(o in t))throw Error(jo(108,Qo(e)||"Unknown",o));return A({},n,i)}function ss(e){e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,Jt=Zt.current,es(Zt,e),es(Kt,Kt.current)}function as(e,t,n){var o=e.stateNode;if(!o)throw Error(jo(169));n?(e=rs(e,t,Jt),o.__reactInternalMemoizedMergedChildContext=e,Jr(Kt),Jr(Zt),es(Zt,e)):Jr(Kt),es(Kt,n)}function ls(e){null===en?en=[e]:en.push(e)}function cs(){if(!nn&&null!==en){nn=!0;var e=0,t=ke;try{var n=en;for(ke=1;e<n.length;e++)for(var o=n[e];null!==(o=o(!0)););en=null,tn=!1}catch(t){throw null!==en&&(en=en.slice(e+1)),re(he,cs),t}finally{ke=t,nn=!1}}return null}function us(e,t){on[rn++]=an,on[rn++]=sn,sn=e,an=t}function hs(e,t,n){ln[cn++]=hn,ln[cn++]=dn,ln[cn++]=un,un=e;var o,i=hn,r=(e=dn,32-_e(i)-1),s=(i&=~(1<<r),n+=1,32-_e(t)+r);dn=30<s?(s=(i&(1<<(o=r-r%5))-1).toString(32),i>>=o,r-=o,hn=1<<32-_e(t)+r|n<<r|i,s+e):(hn=1<<s|n<<r|i,e)}function ds(e){null!==e.return&&(us(e,1),hs(e,1,0))}function ps(e){for(;e===sn;)sn=on[--rn],on[rn]=null,an=on[--rn],on[rn]=null;for(;e===un;)un=ln[--cn],ln[cn]=null,dn=ln[--cn],ln[cn]=null,hn=ln[--cn],ln[cn]=null}function fs(e,t){var n=tc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,null===(t=(n.return=e).deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function gs(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,pn=e,fn=Wr(t.firstChild),1);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,pn=e,fn=null,1);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==un?{id:hn,overflow:dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=tc(18,null,null,0)).stateNode=t,(n.return=e).child=n,pn=e,fn=null,1);default:return}}function ms(e){return!(!(1&e.mode)||128&e.flags)}function vs(e){if(gn)if(fn){var t=fn;if(!gs(e,fn)){if(ms(e))throw Error(jo(418));var n=Wr(t.nextSibling),o=pn;n&&gs(e,n)?fs(o,t):(e.flags=-4097&e.flags|2,gn=!1,pn=e)}}else{if(ms(e))throw Error(jo(418));e.flags=-4097&e.flags|2,gn=!1,pn=e}}function _s(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;pn=e}function bs(e){if(e!==pn)return!1;if(!gn)return _s(e),!(gn=!0);var t;if(t=(t=(t=3!==e.tag)&&!(t=5!==e.tag)?"head"!==(t=e.type)&&"body"!==t&&!Ur(e.type,e.memoizedProps):t)&&fn){if(ms(e))throw ys(),Error(jo(418));for(;t;)fs(e,t),t=Wr(t.nextSibling)}if(_s(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(jo(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){fn=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}fn=null}}else fn=pn?Wr(e.stateNode.nextSibling):null;return!0}function ys(){for(var e=fn;e;)e=Wr(e.nextSibling)}function ws(){fn=pn=null,gn=!1}function xs(e){null===mn?mn=[e]:mn.push(e)}function ks(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(jo(309));var o=n.stateNode}var i,r;if(o)return i=o,r=""+e,null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=i.refs;null===e?delete t[r]:t[r]=e})._stringRef=r,t);throw Error(jo(147,e))}if("string"!=typeof e)throw Error(jo(284));if(!n._owner)throw Error(jo(290,e))}return e}function Ss(e,t){throw e=Object.prototype.toString.call(t),Error(jo(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Os(e){return(0,e._init)(e._payload)}function Es(e){function t(t,n){var o;e&&(null===(o=t.deletions)?(t.deletions=[n],t.flags|=16):o.push(n))}function n(n,o){if(e)for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=oc(e,t)).index=0,e.sibling=null,e}function r(t,n,o){if(t.index=o,e){if(null!==(o=t.alternate))return(o=o.index)<n?(t.flags|=2,n):o;t.flags|=2}else t.flags|=1048576;return n}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function a(e,t,n,o){return null===t||6!==t.tag?(t=ac(n,e.mode,o)).return=e:(t=i(t,n)).return=e,t}function l(e,t,n,o){var r=n.type;return r===_?u(e,t,n.props.children,o,n.key):(null!==t&&(t.elementType===r||"object"==typeof r&&null!==r&&r.$$typeof===C&&Os(r)===t.type)?(o=i(t,n.props)).ref=ks(0,t,n):(o=ic(n.type,n.key,n.props,null,e.mode,o)).ref=ks(0,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=lc(n,e.mode,o)).return=e:(t=i(t,n.children||[])).return=e,t}function u(e,t,n,o,r){return null===t||7!==t.tag?(t=rc(n,e.mode,o,r)).return=e:(t=i(t,n)).return=e,t}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ac(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case m:return(n=ic(t.type,t.key,t.props,null,e.mode,n)).ref=ks(0,null,t),n.return=e,n;case v:return(t=lc(t,e.mode,n)).return=e,t;case C:return h(e,(0,t._init)(t._payload),n)}if(L(t)||Go(t))return(t=rc(t,e.mode,n,null)).return=e,t;Ss(0,t)}return null}function d(e,t,n,o){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:a(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,o):null;case v:return n.key===i?c(e,t,n,o):null;case C:return d(e,t,(i=n._init)(n._payload),o)}if(L(n)||Go(n))return null!==i?null:u(e,t,n,o,null);Ss(0,n)}return null}function p(e,t,n,o,i){if("string"==typeof o&&""!==o||"number"==typeof o)return a(t,e=e.get(n)||null,""+o,i);if("object"==typeof o&&null!==o){switch(o.$$typeof){case m:return l(t,e=e.get(null===o.key?n:o.key)||null,o,i);case v:return c(t,e=e.get(null===o.key?n:o.key)||null,o,i);case C:return p(e,t,n,(0,o._init)(o._payload),i)}if(L(o)||Go(o))return u(t,e=e.get(n)||null,o,i,null);Ss(0,o)}return null}return function a(l,c,u,f){if("object"==typeof(u="object"==typeof u&&null!==u&&u.type===_&&null===u.key?u.props.children:u)&&null!==u){switch(u.$$typeof){case m:e:{for(var g=u.key,b=c;null!==b;){if(b.key===g){if((g=u.type)===_){if(7===b.tag){n(l,b.sibling),(c=i(b,u.props.children)).return=l,l=c;break e}}else if(b.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===C&&Os(g)===b.type){n(l,b.sibling),(c=i(b,u.props)).ref=ks(0,b,u),c.return=l,l=c;break e}n(l,b);break}t(l,b),b=b.sibling}l=u.type===_?((c=rc(u.props.children,l.mode,f,u.key)).return=l,c):((f=ic(u.type,u.key,u.props,null,l.mode,f)).ref=ks(0,c,u),f.return=l,f)}return s(l);case v:e:{for(b=u.key;null!==c;){if(c.key===b){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(c=i(c,u.children||[])).return=l,l=c;break e}n(l,c);break}t(l,c),c=c.sibling}(c=lc(u,l.mode,f)).return=l,l=c}return s(l);case C:return a(l,c,(b=u._init)(u._payload),f)}if(L(u)){for(var y=l,w=c,x=u,k=f,S=null,O=null,E=w,T=w=0,P=null;null!==E&&T<x.length;T++){E.index>T?(P=E,E=null):P=E.sibling;var N=d(y,E,x[T],k);if(null===N){null===E&&(E=P);break}e&&E&&null===N.alternate&&t(y,E),w=r(N,w,T),null===O?S=N:O.sibling=N,O=N,E=P}if(T===x.length)n(y,E);else if(null===E)for(;T<x.length;T++)null!==(E=h(y,x[T],k))&&(w=r(E,w,T),null===O?S=E:O.sibling=E,O=E);else{for(E=o(y,E);T<x.length;T++)null!==(P=p(E,y,T,x[T],k))&&(e&&null!==P.alternate&&E.delete(null===P.key?T:P.key),w=r(P,w,T),null===O?S=P:O.sibling=P,O=P);e&&E.forEach(function(e){return t(y,e)})}return gn&&us(y,T),S}if(Go(u)){var $=l,A=c,M=u,D=f,I=Go(M);if("function"!=typeof I)throw Error(jo(150));if(null==(M=I.call(M)))throw Error(jo(151));for(var R=I=null,F=A,H=A=0,V=null,j=M.next();null!==F&&!j.done;H++,j=M.next()){F.index>H?(V=F,F=null):V=F.sibling;var z=d($,F,j.value,D);if(null===z){null===F&&(F=V);break}e&&F&&null===z.alternate&&t($,F),A=r(z,A,H),null===R?I=z:R.sibling=z,R=z,F=V}if(j.done)n($,F);else if(null===F)for(;!j.done;H++,j=M.next())null!==(j=h($,j.value,D))&&(A=r(j,A,H),null===R?I=j:R.sibling=j,R=j);else{for(F=o($,F);!j.done;H++,j=M.next())null!==(j=p(F,$,H,j.value,D))&&(e&&null!==j.alternate&&F.delete(null===j.key?H:j.key),A=r(j,A,H),null===R?I=j:R.sibling=j,R=j);e&&F.forEach(function(e){return t($,e)})}return gn&&us($,H),I}Ss(0,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,(c=null!==c&&6===c.tag?(n(l,c.sibling),i(c,u)):(n(l,c),ac(u,l.mode,f))).return=l,s(l=c)):n(l,c)}}function Ts(){kn=xn=wn=null}function Ps(e){var t=yn.current;Jr(yn),e._currentValue=t}function Cs(e,t,n){for(;null!==e;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==o&&(o.childLanes|=t)):null!==o&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ns(e,t){(kn=xn=null)!==(e=(wn=e).dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Xn=!0),e.firstContext=null)}function $s(e){var t=e._currentValue;if(kn!==e)if(e={context:e,memoizedValue:t,next:null},null===xn){if(null===wn)throw Error(jo(308));xn=e,wn.dependencies={lanes:0,firstContext:e}}else xn=xn.next=e;return t}function As(e){null===Sn?Sn=[e]:Sn.push(e)}function Ms(e,t,n,o){var i=t.interleaved;return null===i?(n.next=n,As(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ls(e,o)}function Ls(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),e=(n=e).return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),e=(n=e).return;return 3===n.tag?n.stateNode:null}function Ds(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Is(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fs(e,t,n){var o,i=e.updateQueue;return null===i?null:(i=i.shared,2&po?(null===(o=i.pending)?t.next=t:(t.next=o.next,o.next=t),i.pending=t):(null===(o=i.interleaved)?(t.next=t,As(i)):(t.next=o.next,o.next=t),i.interleaved=t),Ls(e,n))}function Hs(e,t,n){var o;null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)&&(o=t.lanes,o&=e.pendingLanes,Hi(e,t.lanes=n|=o))}function Vs(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var i=null,r=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null}}while(null===r?i=r=s:r=r.next=s,null!==(n=n.next));null===r?i=r=t:r=r.next=t}else i=r=t;n={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:o.shared,effects:o.effects},e.updateQueue=n}else null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function js(e,t,n,o){var i,r,s=e.updateQueue,a=(On=!1,s.firstBaseUpdate),l=s.lastBaseUpdate;if(null!==(h=s.shared.pending)&&(s.shared.pending=null,r=(i=h).next,(i.next=null)===l?a=r:l.next=r,l=i,null!==(u=e.alternate))&&(h=(u=u.updateQueue).lastBaseUpdate)!==l&&(null===h?u.firstBaseUpdate=r:h.next=r,u.lastBaseUpdate=i),null!==a){for(var c=s.baseState,u=(l=0,r=i=null),h=a;;){var d=h.lane,p=h.eventTime;if((o&d)===d){null!==u&&(u=u.next={eventTime:p,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var f=e,g=h;d=t,p=n;switch(g.tag){case 1:if("function"==typeof(f=g.payload)){c=f.call(p,c,d);break e}c=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=g.payload)?f.call(p,c,d):f))break e;c=A({},c,d);break e;case 2:On=!0}}null!==h.callback&&0!==h.lane&&(e.flags|=64,null===(d=s.effects)?s.effects=[h]:d.push(h))}else p={eventTime:p,lane:d,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===u?(r=u=p,i=c):u=u.next=p,l|=d;if(null===(h=h.next)){if(null===(h=s.shared.pending))break;h=(d=h).next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}if(null===u&&(i=c),s.baseState=i,s.firstBaseUpdate=r,s.lastBaseUpdate=u,null!==(t=s.shared.interleaved))for(s=t;l|=s.lane,(s=s.next)!==t;);else null===a&&(s.shared.lanes=0);wo|=l,e.lanes=l,e.memoizedState=c}}function zs(e,t,n){if(e=t.effects,(t.effects=null)!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=n,"function"!=typeof i)throw Error(jo(191,i));i.call(o)}}}function Us(e){if(e===En)throw Error(jo(174));return e}function Bs(e,t){switch(es(Cn,t),es(Pn,e),es(Tn,En),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fi(null,"");break;default:t=fi(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Jr(Tn),es(Tn,t)}function Ys(){Jr(Tn),Jr(Pn),Jr(Cn)}function Ws(e){Us(Cn.current);var t=Us(Tn.current),n=fi(t,e.type);t!==n&&(es(Pn,e),es(Tn,n))}function Gs(e){Pn.current===e&&(Jr(Tn),Jr(Pn))}function qs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t=(t.child.return=t).child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Xs(){for(var e=0;e<$n.length;e++)$n[e]._workInProgressVersionPrimary=null;$n.length=0}function Qs(){throw Error(jo(321))}function Zs(e,t){if(null!==t){for(var n=0;n<t.length&&n<e.length;n++)if(!ft(e[n],t[n]))return;return 1}}function Ks(e,t,n,o,i,r){if(Ln=r,(Dn=t).memoizedState=null,t.updateQueue=null,t.lanes=0,An.current=null===e||null===e.memoizedState?Un:Bn,e=n(o,i),Hn){r=0;do{if(Hn=!1,Vn=0,25<=r)throw Error(jo(301))}while(r+=1,Rn=In=null,t.updateQueue=null,An.current=Yn,e=n(o,i),Hn)}if(An.current=zn,t=null!==In&&null!==In.next,Ln=0,Rn=In=Dn=null,Fn=!1,t)throw Error(jo(300));return e}function Js(){var e=0!==Vn;return Vn=0,e}function ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Rn?Dn.memoizedState=Rn=e:Rn=Rn.next=e,Rn}function ta(){e=null===In?null!==(e=Dn.alternate)?e.memoizedState:null:In.next;var e,t=null===Rn?Dn.memoizedState:Rn.next;if(null!==t)Rn=t,In=e;else{if(null===e)throw Error(jo(310));e={memoizedState:(In=e).memoizedState,baseState:In.baseState,baseQueue:In.baseQueue,queue:In.queue,next:null},null===Rn?Dn.memoizedState=Rn=e:Rn=Rn.next=e}return Rn}function na(e,t){return"function"==typeof t?t(e):t}function oa(e){var t=ta(),n=t.queue;if(null===n)throw Error(jo(311));n.lastRenderedReducer=e;var o,i=(s=In).baseQueue;if(null!==(r=n.pending)&&(null!==i&&(o=i.next,i.next=r.next,r.next=o),s.baseQueue=i=r,n.pending=null),null!==i){var r=i.next,s=s.baseState,a=o=null,l=null,c=r;do{var u,h=c.lane}while((Ln&h)===h?(null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),s=c.hasEagerState?c.eagerState:e(s,c.action)):(u={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===l?(a=l=u,o=s):l=l.next=u,Dn.lanes|=h,wo|=h),null!==(c=c.next)&&c!==r);null===l?o=s:l.next=a,ft(s,t.memoizedState)||(Xn=!0),t.memoizedState=s,t.baseState=o,t.baseQueue=l,n.lastRenderedState=s}if(null!==(e=n.interleaved))for(i=e;r=i.lane,Dn.lanes|=r,wo|=r,(i=i.next)!==e;);else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ia(e){var t=ta(),n=t.queue;if(null===n)throw Error(jo(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,r=t.memoizedState;if(null!==i){n.pending=null;for(var s=i=i.next;r=e(r,s.action),(s=s.next)!==i;);ft(r,t.memoizedState)||(Xn=!0),t.memoizedState=r,null===t.baseQueue&&(t.baseState=r),n.lastRenderedState=r}return[r,o]}function ra(){}function sa(e,t){var n=Dn,o=ta(),i=t(),r=!ft(o.memoizedState,i);if(r&&(o.memoizedState=i,Xn=!0),o=o.queue,_a(ca.bind(null,n,o,e),[e]),o.getSnapshot!==t||r||null!==Rn&&1&Rn.memoizedState.tag){if(n.flags|=2048,pa(9,la.bind(null,n,o,i,t),void 0,null),null===fo)throw Error(jo(349));!(30&Ln)&&aa(n,t,i)}return i}function aa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Dn.updateQueue)?(Dn.updateQueue=t={lastEffect:null,stores:null}).stores=[e]:null===(n=t.stores)?t.stores=[e]:n.push(e)}function la(e,t,n,o){t.value=n,t.getSnapshot=o,ua(t)&&ha(e)}function ca(e,t,n){return n(function(){ua(t)&&ha(e)})}function ua(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ft(e,n)}catch(e){return 1}}function ha(e){var t=Ls(e,1);null!==t&&$l(t,e,1,-1)}function da(e){var t=ea();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(t.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:e}).dispatch=function(e,t,n){var o=Nl(e),i={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pa(e))Ca(t,i);else{var r=e.alternate;if(0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{var s,a=t.lastRenderedState,l=r(a,n);if(i.hasEagerState=!0,i.eagerState=l,ft(l,a))return null===(s=t.interleaved)?(i.next=i,As(t)):(i.next=s.next,s.next=i),void(t.interleaved=i)}catch(e){}null!==(n=Ms(e,t,i,o))&&($l(n,e,o,i=Cl()),Na(n,t,o))}}.bind(null,Dn,e),[t.memoizedState,e]}function pa(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=Dn.updateQueue)?(Dn.updateQueue=t={lastEffect:null,stores:null}).lastEffect=e.next=e:null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,(n.next=e).next=o,t.lastEffect=e),e}function fa(){return ta().memoizedState}function ga(e,t,n,o){var i=ea();Dn.flags|=e,i.memoizedState=pa(1|t,n,void 0,void 0===o?null:o)}function ma(e,t,n,o){var i=ta(),r=void(o=void 0===o?null:o);if(null!==In){var s=In.memoizedState;r=s.destroy;if(null!==o&&Zs(o,s.deps))return void(i.memoizedState=pa(t,n,r,o))}Dn.flags|=e,i.memoizedState=pa(1|t,n,r,o)}function va(e,t){return ga(8390656,8,e,t)}function _a(e,t){return ma(2048,8,e,t)}function ba(e,t){return ma(4,2,e,t)}function ya(e,t){return ma(4,4,e,t)}function wa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xa(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,4,wa.bind(null,t,e),n)}function ka(){}function Sa(e,t){var n=ta(),o=(t=void 0===t?null:t,n.memoizedState);return null!==o&&null!==t&&Zs(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=ta(),o=(t=void 0===t?null:t,n.memoizedState);return null!==o&&null!==t&&Zs(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Ea(e,t,n){return 21&Ln?(ft(n,t)||(n=Ii(),Dn.lanes|=n,wo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Xn=!0),e.memoizedState=n)}function Ta(){return ta().memoizedState}function Pa(e){var t=e.alternate;return e===Dn||null!==t&&t===Dn}function Ca(e,t){Hn=Fn=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Na(e,t,n){var o;4194240&n&&(o=t.lanes,o&=e.pendingLanes,Hi(e,t.lanes=n|=o))}function $a(e,t){if(e&&e.defaultProps)for(var n in t=A({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function Aa(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}function Ma(e,t,n,o,i,r,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,r,s):!(t.prototype&&t.prototype.isPureReactComponent&&yr(n,o)&&yr(i,r))}function La(e,t,n){var o=!1,i=Qt,r=t.contextType;t=new t(n,r="object"==typeof r&&null!==r?$s(r):(i=ns(t)?Jt:Zt.current,(o=null!=(o=t.contextTypes))?ts(e,i):Qt)),e.memoizedState=null!=t.state?t.state:null,t.updater=Wn,(e.stateNode=t)._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=r)}function Da(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Wn.enqueueReplaceState(t,t.state,null)}function Ia(e,t,n,o){var i=e.stateNode,r=(i.props=n,i.state=e.memoizedState,i.refs={},Ds(e),t.contextType);"object"==typeof r&&null!==r?i.context=$s(r):(r=ns(t)?Jt:Zt.current,i.context=ts(e,r)),i.state=e.memoizedState,"function"==typeof(r=t.getDerivedStateFromProps)&&(Aa(e,0,r,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Wn.enqueueReplaceState(i,i.state,null),js(e,n,i,o),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Ra(e,t){try{for(var n="",o=t;n+=(e=>{switch(e.tag){case 5:return qo(e.type);case 16:return qo("Lazy");case 13:return qo("Suspense");case 19:return qo("SuspenseList");case 0:case 2:case 15:return Xo(e.type,!1);case 11:return Xo(e.type.render,!1);case 1:return Xo(e.type,!0);default:return""}})(o),o=o.return;);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function Fa(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Ha(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function Va(e,t,n){(n=Rs(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Co||(Co=!0,No=o),Ha(0,t)},n}function ja(e,t,n){(n=Rs(-1,n)).tag=3;var o,i=e.type.getDerivedStateFromError;return null!==(e=("function"==typeof i&&(o=t.value,n.payload=function(){return i(o)},n.callback=function(){Ha(0,t)}),e.stateNode))&&"function"==typeof e.componentDidCatch&&(n.callback=function(){Ha(0,t),"function"!=typeof i&&(null===$o?$o=new Set([this]):$o.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function za(e,t,n){var o,i=e.pingCache;null===i?(i=e.pingCache=new Gn,o=new Set,i.set(t,o)):void 0===(o=i.get(t))&&(o=new Set,i.set(t,o)),o.has(n)||(o.add(n),e=function(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=Cl(),e.pingedLanes|=e.suspendedLanes&n,fo===e&&(mo&n)===n&&(4===bo||3===bo&&(130023424&mo)===mo&&ce()-Eo<500?jl(e,0):ko|=n),Al(e,t)}.bind(null,e,t,n),t.then(e,e))}function Ua(e){do{var t;if(t=(t=13===e.tag)?null===(t=e.memoizedState)||null!==t.dehydrated:t)return e}while(null!==(e=e.return));return null}function Ba(e,t,n,o,i){if(!(1&e.mode))return e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Rs(-1,1)).tag=2,Fs(n,t,1))),n.lanes|=1);e.flags|=65536,e.lanes=i}function Ya(e,t,n,o){t.child=null===e?bn(t,null,n,o):_n(t,e.child,n,o)}function Wa(e,t,n,o,i){n=n.render;var r=t.ref;return Ns(t,i),o=Ks(e,t,n,o,r,i),n=Js(),null===e||Xn?(gn&&n&&ds(t),t.flags|=1,Ya(e,t,o,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ul(e,t,i))}function Ga(e,t,n,o,i){var r;if(null===e)return"function"!=typeof(r=n.type)||nc(r)||void 0!==r.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ic(n.type,null,o,t,t.mode,i)).ref=t.ref,(e.return=t).child=e):(t.tag=15,t.type=r,qa(e,t,r,o,i));if(r=e.child,0==(e.lanes&i)){var s=r.memoizedProps;if((n=null!==(n=n.compare)?n:yr)(s,o)&&e.ref===t.ref)return ul(e,t,i)}return t.flags|=1,(e=oc(r,o)).ref=t.ref,(e.return=t).child=e}function qa(e,t,n,o,i){if(null!==e){var r=e.memoizedProps;if(yr(r,o)&&e.ref===t.ref){if(Xn=!1,t.pendingProps=o=r,0==(e.lanes&i))return t.lanes=e.lanes,ul(e,t,i);131072&e.flags&&(Xn=!0)}}return Za(e,t,n,o,i)}function Xa(e,t,n){var o=t.pendingProps,i=o.children,r=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==r?r.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,es(_o,vo),vo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==r?r.baseLanes:n,es(_o,vo),vo|=o}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},es(_o,vo),vo|=n;else null!==r?(o=r.baseLanes|n,t.memoizedState=null):o=n,es(_o,vo),vo|=o;return Ya(e,t,i,n),t.child}function Qa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Za(e,t,n,o,i){var r=ts(t,ns(n)?Jt:Zt.current);return Ns(t,i),n=Ks(e,t,n,o,r,i),o=Js(),null===e||Xn?(gn&&o&&ds(t),t.flags|=1,Ya(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ul(e,t,i))}function Ka(e,t,n,o,i){var r,s,a,l,c,u,h,d,p,f;return ns(n)?(r=!0,ss(t)):r=!1,Ns(t,i),o=null===t.stateNode?(cl(e,t),La(t,n,o),Ia(t,n,o,i),!0):null===e?((s=t.stateNode).props=a=t.memoizedProps,d=s.context,l="object"==typeof(l=n.contextType)&&null!==l?$s(l):ts(t,l=ns(n)?Jt:Zt.current),(u="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||a===o&&d===l||Da(0,s,o,l),On=!1,s.state=h=t.memoizedState,js(t,o,s,i),d=t.memoizedState,a!==o||h!==d||Kt.current||On?("function"==typeof c&&(Aa(t,0,c,o),d=t.memoizedState),(a=On||Ma(t,n,a,o,h,d,l))?(u||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=d),s.props=o,s.state=d,s.context=l,a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),!1)):(s=t.stateNode,Is(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:$a(t.type,a),s.props=l,u=t.pendingProps,h=s.context,d="object"==typeof(d=n.contextType)&&null!==d?$s(d):ts(t,d=ns(n)?Jt:Zt.current),(c="function"==typeof(p=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||a===u&&h===d||Da(0,s,o,d),On=!1,s.state=h=t.memoizedState,js(t,o,s,i),f=t.memoizedState,a!==u||h!==f||Kt.current||On?("function"==typeof p&&(Aa(t,0,p,o),f=t.memoizedState),(l=On||Ma(t,n,l,o,h,f,d)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(o,f,d),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,f,d)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),s.props=o,s.state=f,s.context=d,l):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),!1)),Ja(e,t,n,o,r,i)}function Ja(e,t,n,o,i,r){Qa(e,t);var s=!!(128&t.flags);if(!o&&!s)return i&&as(t,n,!1),ul(e,t,r);o=t.stateNode,qn.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&s?(t.child=_n(t,e.child,null,r),t.child=_n(t,null,a,r)):Ya(e,t,a,r),t.memoizedState=o.state,i&&as(t,n,!0),t.child}function el(e){var t=e.stateNode;t.pendingContext?is(0,t.pendingContext,t.pendingContext!==t.context):t.context&&is(0,t.context,!1),Bs(e,t.containerInfo)}function tl(e,t,n,o,i){return ws(),xs(i),t.flags|=256,Ya(e,t,n,o),t.child}function nl(e){return{baseLanes:e,cachePool:null,transitions:null}}function ol(e,t,n){var o,i,r=t.pendingProps,s=Nn.current,a=!1,l=!!(128&t.flags);if((i=(i=l)||(null===e||null!==e.memoizedState)&&!!(2&s))?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),es(Nn,1&s),null===e)return vs(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,a?(r=t.mode,a=t.child,l={mode:"hidden",children:l},1&r||null===a?a=sc(l,r,0,null):(a.childLanes=0,a.pendingProps=l),e=rc(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=nl(n),t.memoizedState=Qn,e):il(t,l));if(null===(s=e.memoizedState)||null===(i=s.dehydrated))return a?(a=r.fallback,l=t.mode,i=(s=e.child).sibling,c={mode:"hidden",children:r.children},1&l||t.child===s?(r=oc(s,c)).subtreeFlags=14680064&s.subtreeFlags:((r=t.child).childLanes=0,r.pendingProps=c,t.deletions=null),null!==i?a=oc(i,a):(a=rc(a,l,n,null)).flags|=2,a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,l=null===(l=e.child.memoizedState)?nl(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},(a=t.child).memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Qn):(e=(a=e.child).sibling,r=oc(a,{mode:"visible",children:r.children}),!(1&t.mode)&&(r.lanes=n),r.return=t,(r.sibling=null)!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null),r;var c=e,u=(a=t,e=r,i);t=s,r=n;if(l)return 256&a.flags?(a.flags&=-257,rl(c,a,r,e=Fa(Error(jo(422))))):null!==a.memoizedState?(a.child=c.child,a.flags|=128,null):(t=e.fallback,u=a.mode,e=sc({mode:"visible",children:e.children},u,0,null),(t=rc(t,u,r,null)).flags|=2,e.return=a,t.return=a,e.sibling=t,a.child=e,!!(1&a.mode)&&_n(a,c.child,null,r),a.child.memoizedState=nl(r),a.memoizedState=Qn,t);if(!(1&a.mode))return rl(c,a,r,null);if("$!"===u.data)return e=o=(e=u.nextSibling&&u.nextSibling.dataset)?e.dgst:o,rl(c,a,r,e=Fa(t=Error(jo(419)),e,void 0));if(o=0!=(r&c.childLanes),Xn||o){if(null!==(e=fo)){switch(r&-r){case 4:u=2;break;case 16:u=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:u=32;break;case 536870912:u=268435456;break;default:u=0}0!==(u=0!=(u&(e.suspendedLanes|r))?0:u)&&u!==t.retryLane&&(t.retryLane=u,Ls(c,u),$l(e,c,u,-1))}return Bl(),rl(c,a,r,e=Fa(Error(jo(421))))}return"$?"===u.data?(a.flags|=128,a.child=c.child,a=function(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Kl(e,n)}.bind(null,c),u._reactRetry=a,null):(c=t.treeContext,fn=Wr(u.nextSibling),pn=a,gn=!0,(mn=null)!==c&&(ln[cn++]=hn,ln[cn++]=dn,ln[cn++]=un,hn=c.id,dn=c.overflow,un=a),(a=il(a,e.children)).flags|=4096,a)}function il(e,t){return((t=sc({mode:"visible",children:t},e.mode,0,null)).return=e).child=t}function rl(e,t,n,o){return null!==o&&xs(o),_n(t,e.child,null,n),(e=il(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function sl(e,t,n){e.lanes|=t;var o=e.alternate;null!==o&&(o.lanes|=t),Cs(e.return,t,n)}function al(e,t,n,o,i){var r=e.memoizedState;null===r?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=o,r.tail=n,r.tailMode=i)}function ll(e,t,n){var o=t.pendingProps,i=o.revealOrder,r=o.tail;if(Ya(e,t,o.children,n),2&(o=Nn.current))o=1&o|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&sl(e,n,t);else if(19===e.tag)sl(e,n,t);else if(null!==e.child){e=(e.child.return=e).child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(es(Nn,o),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===qs(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),al(t,!1,i,n,r);break;case"backwards":for(i=t.child,t.child=n=null;null!==i;){if(null!==(e=i.alternate)&&null===qs(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}al(t,!0,n,null,r);break;case"together":al(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function cl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ul(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),wo|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(jo(153));if(null!==t.child){for(n=oc(e=t.child,e.pendingProps),(t.child=n).return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function hl(e,t){if(!gn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function dl(e){var t=0,n=0;if(null!==e.alternate&&e.alternate.child===e.child)for(var o=e.child;null!==o;)t|=o.lanes|o.childLanes,n=(n|=14680064&o.subtreeFlags)|14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)t|=o.lanes|o.childLanes,n=(n|=o.subtreeFlags)|o.flags,o.return=e,o=o.sibling;e.subtreeFlags|=n,e.childLanes=t}function pl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Zl(e,t,n)}else n.current=null}function fl(e,t,n){try{n()}catch(n){Zl(e,t,n)}}function gl(e,t,n){var o=t.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var i,r=o=o.next;do{}while((r.tag&e)===e&&(i=r.destroy,(r.destroy=void 0)!==i)&&fl(t,n,i),(r=r.next)!==o)}}function ml(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n,o=t=t.next;do{}while((o.tag&e)===e&&(n=o.create,o.destroy=n()),(o=o.next)!==t)}}function vl(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function _l(e){return 5===e.tag||3===e.tag||4===e.tag}function bl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||_l(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e=(e.child.return=e).child}if(!(2&e.flags))return e.stateNode}}function yl(e,t,n){for(n=n.child;null!==n;)wl(e,t,n),n=n.sibling}function wl(e,t,n){if(ve&&"function"==typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(me,n)}catch(e){}switch(n.tag){case 5:no||pl(n,t);case 6:var o=so,i=ao;so=null,yl(e,t,n),ao=i,null!==(so=o)&&(ao?(e=so,n=n.stateNode,(8===e.nodeType?e.parentNode:e).removeChild(n)):so.removeChild(n.stateNode));break;case 18:null!==so&&(ao?(e=so,n=n.stateNode,8===e.nodeType?Yr(e.parentNode,n):1===e.nodeType&&Yr(e,n),qi(e)):Yr(so,n.stateNode));break;case 4:o=so,i=ao,so=n.stateNode.containerInfo,ao=!0,yl(e,t,n),so=o,ao=i;break;case 0:case 11:case 14:case 15:if(!no&&null!==(o=n.updateQueue)&&null!==(o=o.lastEffect)){i=o=o.next;do{var r=i.destroy,s=i.tag}while(void 0===r||!(2&s)&&!(4&s)||fl(n,t,r),(i=i.next)!==o)}yl(e,t,n);break;case 1:if(!no&&(pl(n,t),"function"==typeof(o=n.stateNode).componentWillUnmount))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(e){Zl(n,t,e)}yl(e,t,n);break;case 21:yl(e,t,n);break;case 22:1&n.mode?(no=(o=no)||null!==n.memoizedState,yl(e,t,n),no=o):yl(e,t,n);break;default:yl(e,t,n)}}function xl(e){var t,n=e.updateQueue;null!==n&&((e.updateQueue=null)===(t=e.stateNode)&&(t=e.stateNode=new oo),n.forEach(function(n){var o=function(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(jo(314))}null!==o&&o.delete(t),Kl(e,n)}.bind(null,e,n);t.has(n)||(t.add(n),n.then(o,o))}))}function kl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o];try{var r=e,s=t,a=s;e:for(;null!==a;){switch(a.tag){case 5:so=a.stateNode,ao=!1;break e;case 3:case 4:so=a.stateNode.containerInfo,ao=!0;break e}a=a.return}if(null===so)throw Error(jo(160));wl(r,s,i),so=null,ao=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){Zl(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Sl(t,e),t=t.sibling}function Sl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kl(t,e),Ol(e),4&o){try{gl(3,e,e.return),ml(3,e)}catch(t){Zl(e,e.return,t)}try{gl(5,e,e.return)}catch(t){Zl(e,e.return,t)}}break;case 1:kl(t,e),Ol(e),512&o&&null!==n&&pl(n,n.return);break;case 5:if(kl(t,e),Ol(e),512&o&&null!==n&&pl(n,n.return),32&e.flags){var i=e.stateNode;try{gi(i,"")}catch(t){Zl(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var r=e.memoizedProps,s=null!==n?n.memoizedProps:r,a=e.type,l=e.updateQueue;if((e.updateQueue=null)!==l)try{"input"===a&&"radio"===r.type&&null!=r.name&&ii(i,r),bi(a,s);var c=bi(a,r);for(s=0;s<l.length;s+=2){var u=l[s],h=l[s+1];"style"===u?vi(i,h):"dangerouslySetInnerHTML"===u?D(i,h):"children"===u?gi(i,h):Wo(i,u,h,c)}switch(a){case"input":ri(i,r);break;case"textarea":hi(i,r);break;case"select":var d=i._wrapperState.wasMultiple,p=(i._wrapperState.wasMultiple=!!r.multiple,r.value);null!=p?li(i,!!r.multiple,p,!1):d!==!!r.multiple&&(null!=r.defaultValue?li(i,!!r.multiple,r.defaultValue,!0):li(i,!!r.multiple,r.multiple?[]:"",!1))}i[Ut]=r}catch(t){Zl(e,e.return,t)}}break;case 6:if(kl(t,e),Ol(e),4&o){if(null===e.stateNode)throw Error(jo(162));i=e.stateNode,r=e.memoizedProps;try{i.nodeValue=r}catch(t){Zl(e,e.return,t)}}break;case 3:if(kl(t,e),Ol(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{qi(t.containerInfo)}catch(t){Zl(e,e.return,t)}break;case 4:default:kl(t,e),Ol(e);break;case 13:kl(t,e),Ol(e),8192&(i=e.child).flags&&(r=null!==i.memoizedState,!(i.stateNode.isHidden=r)||null!==i.alternate&&null!==i.alternate.memoizedState||(Eo=ce())),4&o&&xl(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(no=(c=no)||u,kl(t,e),no=c):kl(t,e),Ol(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(u=(io=e).child;null!==u;){for(h=io=u;null!==io;){switch(p=(d=io).child,d.tag){case 0:case 11:case 14:case 15:gl(4,d,d.return);break;case 1:pl(d,d.return);var f=d.stateNode;if("function"==typeof f.componentWillUnmount){n=(o=d).return;try{t=o,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(t){Zl(o,n,t)}}break;case 5:pl(d,d.return);break;case 22:if(null!==d.memoizedState){Tl(h);continue}}null!==p?(p.return=d,io=p):Tl(h)}u=u.sibling}e:for(u=null,h=e;;){if(5===h.tag){if(null===u){u=h;try{i=h.stateNode,c?"function"==typeof(r=i.style).setProperty?r.setProperty("display","none","important"):r.display="none":(a=h.stateNode,s=null!=(l=h.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,a.style.display=mi("display",s))}catch(t){Zl(e,e.return,t)}}}else if(6===h.tag){if(null===u)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){Zl(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h=(h.child.return=h).child;continue}if(h===e)break;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:kl(t,e),Ol(e),4&o&&xl(e);case 21:}}function Ol(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(_l(n)){var o=n;break e}n=n.return}throw Error(jo(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(gi(i,""),o.flags&=-33),function e(t,n,o){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?o.insertBefore(t,n):o.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,bl(e),i);break;case 3:case 4:var r=o.stateNode.containerInfo;!function e(t,n,o){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?(8===o.nodeType?o.parentNode:o).insertBefore(t,n):(8===o.nodeType?(n=o.parentNode).insertBefore(t,o):(n=o).appendChild(t),null==(o=o._reactRootContainer)&&null===n.onclick&&(n.onclick=zr));else if(4!==i&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,bl(e),r);break;default:throw Error(jo(161))}}catch(t){Zl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function El(e){for(;null!==io;){var t=io;if(8772&t.flags){var n,o,i,r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:no||ml(5,t);break;case 1:var s,a=t.stateNode,l=(4&t.flags&&!no&&(null===r?a.componentDidMount():(s=t.elementType===t.type?r.memoizedProps:$a(t.type,r.memoizedProps),a.componentDidUpdate(s,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate))),t.updateQueue);null!==l&&zs(0,l,a);break;case 3:var c=t.updateQueue;if(null!==c){if((r=null)!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}zs(0,c,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&r.focus();break;case"img":h.src&&(r.src=h.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:null===t.memoizedState&&null!==(n=t.alternate)&&null!==(o=n.memoizedState)&&null!==(i=o.dehydrated)&&qi(i);break;default:throw Error(jo(163))}no||512&t.flags&&vl(t)}catch(e){Zl(t,t.return,e)}}if(t===e){io=null;break}if(null!==(r=t.sibling)){r.return=t.return,io=r;break}io=t.return}}function Tl(e){for(;null!==io;){var t=io;if(t===e){io=null;break}var n=t.sibling;if(null!==n){n.return=t.return,io=n;break}io=t.return}}function Pl(e){for(;null!==io;){var t=io;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ml(4,t)}catch(e){Zl(t,n,e)}break;case 1:var o=t.stateNode;if("function"==typeof o.componentDidMount){var i=t.return;try{o.componentDidMount()}catch(e){Zl(t,i,e)}}var r=t.return;try{vl(t)}catch(e){Zl(t,r,e)}break;case 5:var s=t.return;try{vl(t)}catch(e){Zl(t,s,e)}}}catch(e){Zl(t,t.return,e)}if(t===e){io=null;break}var a=t.sibling;if(null!==a){a.return=t.return,io=a;break}io=t.return}}function Cl(){return 6&po?ce():-1!==Ro?Ro:Ro=ce()}function Nl(e){return 1&e.mode?2&po&&0!==mo?mo&-mo:null!==vn.transition?Fo=0===Fo?Ii():Fo:0===(e=ke)?void 0===(e=window.event)?16:Ji(e.type):e:1}function $l(e,t,n,o){if(50<Do)throw Do=0,Io=null,Error(jo(185));Fi(e,n,o),2&po&&e===fo||(e===fo&&(!(2&po)&&(xo|=n),4===bo)&&Il(e,mo),Al(e,o),1===n&&0===po&&!(1&t.mode)&&(To=ce()+500,tn)&&cs())}function Al(e,t){var n,o=e.callbackNode,i=(function(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes;0<r;){var s=31-_e(r),a=1<<s,l=i[s];-1===l?0!=(a&n)&&0==(a&o)||(i[s]=((e,t)=>{switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}})(a,t)):l<=t&&(e.expiredLanes|=a),r&=~a}}(e,t),Li(e,e===fo?mo:0));if(0===i)null!==o&&se(o),e.callbackNode=null,e.callbackPriority=0;else if(e.callbackPriority!==(t=i&-i)){if(null!=o&&se(o),1===t)0===e.tag?(n=Rl.bind(null,e),tn=!0,ls(n)):ls(Rl.bind(null,e)),jt(function(){!(6&po)&&cs()}),o=null;else{switch(Vi(i)){case 1:o=he;break;case 4:o=de;break;case 16:default:o=pe;break;case 536870912:o=ge}o=Jl(o,Ml.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function Ml(e,t){if(Ro=-1,(Fo=0)!=(6&po))throw Error(jo(327));var n=e.callbackNode;if(Xl()&&e.callbackNode!==n)return null;var o=Li(e,e===fo?mo:0);if(0===o)return null;if(30&o||0!=(o&e.expiredLanes)||t)t=Yl(e,o);else{t=o;var i=po,r=(po|=2,Ul());for(fo===e&&mo===t||(Po=null,To=ce()+500,jl(e,t));;)try{for(;null!==go&&!ae();)Wl(go);break}catch(t){zl(e,t)}Ts(),co.current=r,po=i,t=null!==go?0:(fo=null,mo=0,bo)}if(0!==t){if(1===(t=2===t&&0!==(i=Di(e))?Ll(e,o=i):t))throw n=yo,jl(e,0),Il(e,o),Al(e,ce()),n;if(6===t)Il(e,o);else{if(i=e.current.alternate,!(30&o||(e=>{for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var o=0;o<n.length;o++){var i=n[o],r=i.getSnapshot;i=i.value;try{if(!ft(r(),i))return}catch(e){return}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return 1;t=t.return}t.sibling.return=t.return,t=t.sibling}}return 1})(i)||1!==(t=2===(t=Yl(e,o))&&0!==(r=Di(e))?Ll(e,o=r):t)))throw n=yo,jl(e,0),Il(e,o),Al(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(jo(345));case 2:case 5:ql(e,Oo,Po);break;case 3:if(Il(e,o),(130023424&o)===o&&10<(t=Eo+500-ce())){if(0!==Li(e,0))break;if(((i=e.suspendedLanes)&o)!==o){Cl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ft(ql.bind(null,e,Oo,Po),t)}else ql(e,Oo,Po);break;case 4:if(Il(e,o),(4194240&o)!==o){for(t=e.eventTimes,i=-1;0<o;){var s=31-_e(o);r=1<<s;i<(s=t[s])&&(i=s),o&=~r}o=i,10<(o=((o=ce()-o)<120?120:o<480?480:o<1080?1080:o<1920?1920:o<3e3?3e3:o<4320?4320:1960*lo(o/1960))-o)?e.timeoutHandle=Ft(ql.bind(null,e,Oo,Po),o):ql(e,Oo,Po)}break;default:throw Error(jo(329))}}}return Al(e,ce()),e.callbackNode===n?Ml.bind(null,e):null}function Ll(e,t){var n=So;return e.current.memoizedState.isDehydrated&&(jl(e,t).flags|=256),2!==(e=Yl(e,t))&&(t=Oo,Oo=n,null!==t)&&Dl(t),e}function Dl(e){null===Oo?Oo=e:Oo.push.apply(Oo,e)}function Il(e,t){for(t=t&~ko&~xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_e(t),o=1<<n;e[n]=-1,t&=~o}}function Rl(e){if(6&po)throw Error(jo(327));Xl();var t=Li(e,0);if(1&t){var n,o=Yl(e,t);if(1===(o=0!==e.tag&&2===o&&0!==(n=Di(e))?Ll(e,t=n):o))throw o=yo,jl(e,0),Il(e,t),Al(e,ce()),o;if(6===o)throw Error(jo(345));e.finishedWork=e.current.alternate,e.finishedLanes=t,ql(e,Oo,Po)}return Al(e,ce()),null}function Fl(e,t){var n=po;po|=1;try{return e(t)}finally{0===(po=n)&&(To=ce()+500,tn)&&cs()}}function Hl(e){null!==Mo&&0===Mo.tag&&!(6&po)&&Xl();var t=po,n=(po|=1,ho.transition),o=ke;try{if(ho.transition=null,ke=1,e)return e()}finally{ke=o,ho.transition=n,!(6&(po=t))&&cs()}}function Vl(){vo=_o.current,Jr(_o)}function jl(e,t){e.finishedWork=null,e.finishedLanes=0;var n,o,i,r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Ht(r)),null!==go)for(r=go.return;null!==r;){var s=r;switch(ps(s),s.tag){case 1:null!=(s=s.type.childContextTypes)&&os();break;case 3:Ys(),Jr(Kt),Jr(Zt),Xs();break;case 5:Gs(s);break;case 4:Ys();break;case 13:case 19:Jr(Nn);break;case 10:Ps(s.type._context);break;case 22:case 23:Vl()}r=r.return}if(go=e=oc((fo=e).current,null),mo=vo=t,ko=xo=wo=bo=0,(Oo=So=yo=null)!==Sn){for(t=0;t<Sn.length;t++)null!==(s=(r=Sn[t]).interleaved)&&(r.interleaved=null,n=s.next,null!==(o=r.pending)&&(i=o.next,o.next=n,s.next=i),r.pending=s);Sn=null}return e}function zl(e,t){for(;;){var n=go;try{if(Ts(),An.current=zn,Fn){for(var o=Dn.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}Fn=!1}if(Rn=In=Dn=null,Hn=!1,Vn=Ln=0,(uo.current=null)===n||null===n.return){bo=1,yo=t,go=null;break}e:{var r=e,s=n.return,a=t;if(t=mo,(m=n).flags|=32768,null!==a&&"object"==typeof a&&"function"==typeof a.then){var l,c=a,u=m,h=u.tag,d=(!!(1&u.mode)||0!==h&&11!==h&&15!==h||((l=u.alternate)?(u.updateQueue=l.updateQueue,u.memoizedState=l.memoizedState,u.lanes=l.lanes):(u.updateQueue=null,u.memoizedState=null)),Ua(s));if(null!==d){d.flags&=-257,Ba(d,s,m,0,t),1&d.mode&&za(r,c,t);a=c;var p,f=(t=d).updateQueue;null===f?((p=new Set).add(a),t.updateQueue=p):f.add(a);break e}if(!(1&t)){za(r,c,t),Bl();break e}a=Error(jo(426))}else if(gn&&1&m.mode){var g=Ua(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),Ba(g,s,m,0,t),xs(Ra(a,m));break e}}r=a=Ra(a,m),4!==bo&&(bo=2),null===So?So=[r]:So.push(r),r=s;do{switch(r.tag){case 3:r.flags|=65536,t&=-t,r.lanes|=t,Vs(r,Va(0,a,t));break e;case 1:var m=a,v=r.type,_=r.stateNode;if(!(128&r.flags||"function"!=typeof v.getDerivedStateFromError&&(null===_||"function"!=typeof _.componentDidCatch||null!==$o&&$o.has(_)))){r.flags|=65536,t&=-t,r.lanes|=t,Vs(r,ja(r,m,t));break e}}}while(null!==(r=r.return))}Gl(n)}catch(e){t=e,go===n&&null!==n&&(go=n.return);continue}break}}function Ul(){var e=co.current;return co.current=zn,null===e?zn:e}function Bl(){0!==bo&&3!==bo&&2!==bo||(bo=4),null===fo||!(268435455&wo)&&!(268435455&xo)||Il(fo,mo)}function Yl(e,t){var n=po,o=(po|=2,Ul());for(fo===e&&mo===t||(Po=null,jl(e,t));;)try{for(;null!==go;)Wl(go);break}catch(t){zl(e,t)}if(Ts(),po=n,co.current=o,null!==go)throw Error(jo(261));return fo=null,mo=0,bo}function Wl(e){var t=Ho(e.alternate,e,vo);e.memoizedProps=e.pendingProps,null===t?Gl(e):go=t,uo.current=null}function Gl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=((e,t)=>{switch(ps(t),t.tag){case 1:return ns(t.type)&&os(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ys(),Jr(Kt),Jr(Zt),Xs(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Gs(t),null;case 13:if(Jr(Nn),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(jo(340));ws()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Jr(Nn),null;case 4:return Ys(),null;case 10:return Ps(t.type._context),null;case 22:case 23:return Vl(),null;default:return null}})(n,t)))return n.flags&=32767,void(go=n);if(null===e)return bo=6,void(go=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=((e,t,n)=>{var o=t.pendingProps;switch(ps(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dl(t),null;case 1:case 17:return ns(t.type)&&os(),dl(t),null;case 3:return o=t.stateNode,Ys(),Jr(Kt),Jr(Zt),Xs(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(bs(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==mn&&(Dl(mn),mn=null))),Kn(e,t),dl(t),null;case 5:Gs(t);var i,r=Us(Cn.current);if(n=t.type,null!==e&&null!=t.stateNode)Jn(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(jo(166));return dl(t),null}if(e=Us(Tn.current),bs(t)){o=t.stateNode,n=t.type;var a,l,c=t.memoizedProps;switch(o[zt]=t,o[Ut]=c,e=!!(1&t.mode),n){case"dialog":$r("cancel",o),$r("close",o);break;case"iframe":case"object":case"embed":$r("load",o);break;case"video":case"audio":for(r=0;r<$t.length;r++)$r($t[r],o);break;case"source":$r("error",o);break;case"img":case"image":case"link":$r("error",o),$r("load",o);break;case"details":$r("toggle",o);break;case"input":oi(o,c),$r("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},$r("invalid",o);break;case"textarea":ui(o,c),$r("invalid",o)}for(a in _i(n,c),r=null,c)c.hasOwnProperty(a)&&(l=c[a],"children"===a?"string"==typeof l?o.textContent!==l&&(!0!==c.suppressHydrationWarning&&jr(o.textContent,l,e),r=["children",l]):"number"==typeof l&&o.textContent!==""+l&&(!0!==c.suppressHydrationWarning&&jr(o.textContent,l,e),r=["children",""+l]):s.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&$r("scroll",o));switch(n){case"input":Jo(o),si(o,c,!0);break;case"textarea":Jo(o),di(o);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(o.onclick=zr)}o=r,null!==(t.updateQueue=o)&&(t.flags|=4)}else{a=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===(e="http://www.w3.org/1999/xhtml"===e?pi(n):e)?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=a.createElement(n,{is:o.is}):(e=a.createElement(n),"select"===n&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,n),e[zt]=t,e[Ut]=o,Zn(e,t,!1,!1),t.stateNode=e;e:{switch(a=bi(n,o),n){case"dialog":$r("cancel",e),$r("close",e),r=o;break;case"iframe":case"object":case"embed":$r("load",e),r=o;break;case"video":case"audio":for(r=0;r<$t.length;r++)$r($t[r],e);r=o;break;case"source":$r("error",e),r=o;break;case"img":case"image":case"link":$r("error",e),$r("load",e),r=o;break;case"details":$r("toggle",e),r=o;break;case"input":oi(e,o),r=ni(e,o),$r("invalid",e);break;case"option":default:r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=A({},o,{value:void 0}),$r("invalid",e);break;case"textarea":ui(e,o),r=ci(e,o),$r("invalid",e)}for(c in _i(n,r),l=r)l.hasOwnProperty(c)&&(i=l[c],"style"===c?vi(e,i):"dangerouslySetInnerHTML"===c?null!=(i=i?i.__html:void 0)&&D(e,i):"children"===c?"string"==typeof i?"textarea"===n&&""===i||gi(e,i):"number"==typeof i&&gi(e,""+i):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?null!=i&&"onScroll"===c&&$r("scroll",e):null!=i&&Wo(e,c,i,a)));switch(n){case"input":Jo(e),si(e,o,!1);break;case"textarea":Jo(e),di(e);break;case"option":null!=o.value&&e.setAttribute("value",""+Zo(o.value));break;case"select":e.multiple=!!o.multiple,null!=(c=o.value)?li(e,!!o.multiple,c,!1):null!=o.defaultValue&&li(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof r.onClick&&(e.onclick=zr)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return dl(t),null;case 6:if(e&&null!=t.stateNode)eo(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(jo(166));if(n=Us(Cn.current),Us(Tn.current),bs(t)){if(o=t.stateNode,n=t.memoizedProps,o[zt]=t,(c=o.nodeValue!==n)&&null!==(e=pn))switch(e.tag){case 3:jr(o.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&jr(o.nodeValue,n,!!(1&e.mode))}c&&(t.flags|=4)}else((o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[zt]=t).stateNode=o}return dl(t),null;case 13:if(Jr(Nn),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(gn&&null!==fn&&1&t.mode&&!(128&t.flags))ys(),ws(),t.flags|=98560,c=!1;else if(c=bs(t),null!==o&&null!==o.dehydrated){if(null===e){if(!c)throw Error(jo(318));if(!(c=null!==(c=t.memoizedState)?c.dehydrated:null))throw Error(jo(317));c[zt]=t}else ws(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;dl(t),c=!1}else null!==mn&&(Dl(mn),mn=null),c=!0;if(!c)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((o=null!==o)!=(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,!!(1&t.mode))&&(null===e||1&Nn.current?0===bo&&(bo=3):Bl()),null!==t.updateQueue&&(t.flags|=4),dl(t),null);case 4:return Ys(),Kn(e,t),null===e&&Mr(t.stateNode.containerInfo),dl(t),null;case 10:return Ps(t.type._context),dl(t),null;case 19:if(Jr(Nn),null===(c=t.memoizedState));else{if(o=!!(128&t.flags),null===(a=c.rendering))if(o)hl(c,!1);else{if(0!==bo||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=qs(e))){for(t.flags|=128,hl(c,!1),null!==(o=a.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;null!==n;)e=o,(c=n).flags&=14680066,null===(a=c.alternate)?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,c.type=a.type,e=a.dependencies,c.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return es(Nn,1&Nn.current|2),t.child}e=e.sibling}null!==c.tail&&ce()>To&&(t.flags|=128,hl(c,!(o=!0)),t.lanes=4194304)}else{if(!o)if(null!==(e=qs(a))){if(t.flags|=128,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),hl(c,!0),null===c.tail&&"hidden"===c.tailMode&&!a.alternate&&!gn)return dl(t),null}else 2*ce()-c.renderingStartTime>To&&1073741824!==n&&(t.flags|=128,hl(c,!(o=!0)),t.lanes=4194304);c.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=c.last)?n.sibling=a:t.child=a,c.last=a)}if(null!==c.tail)return t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=ce(),t.sibling=null,n=Nn.current,es(Nn,o?1&n|2:1&n),t}return dl(t),null;case 22:case 23:return Vl(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&vo)&&(dl(t),6&t.subtreeFlags)&&(t.flags|=8192):dl(t),null;case 24:case 25:return null}throw Error(jo(156,t.tag))})(n,t,vo)))return void(go=n);if(null!==(t=t.sibling))return void(go=t)}while(go=t=e,null!==t);0===bo&&(bo=5)}function ql(e,t,n){var o=ke,i=ho.transition;try{ho.transition=null,ke=1;for(var r=e,s=t,a=n,l=o;Xl(),null!==Mo;);if(6&po)throw Error(jo(327));a=r.finishedWork;var c=r.finishedLanes;if(null!==a){if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(jo(177));r.callbackNode=null,r.callbackPriority=0;var u,h,d=a.lanes|a.childLanes;if(((e,t)=>{var n=e.pendingLanes&~t,o=(e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements,e.eventTimes);for(e=e.expirationTimes;0<n;){var i=31-_e(n),r=1<<i;t[i]=0,o[i]=-1,e[i]=-1,n&=~r}})(r,d),r===fo&&(go=fo=null,mo=0),!(2064&a.subtreeFlags)&&!(2064&a.flags)||Ao||(Ao=!0,Jl(pe,function(){return Xl(),null})),d=!!(15990&a.flags),15990&a.subtreeFlags||d?(d=ho.transition,ho.transition=null,u=ke,ke=1,h=po,po|=4,uo.current=null,((e,t)=>{if(It=Le,Sr(e=kr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:if((r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection())&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode,r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var s,a=0,l=-1,c=-1,u=0,h=0,d=e,p=null;t:for(;;){for(;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(c=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(s=d.firstChild);)p=d,d=s;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++h===r&&(c=a),null!==(s=d.nextSibling))break;p=(d=p).parentNode}d=s}n=-1===l||-1===c?null:{start:l,end:c}}else n=null;n=n||{start:0,end:0}}else n=null;for(Le=!(Rt={focusedElem:e,selectionRange:n}),io=t;null!==io;)if(e=(t=io).child,1028&t.subtreeFlags&&null!==e)e.return=t,io=e;else for(;null!==io;){t=io;try{var f,g,m,v,_=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:null!==_&&(f=_.memoizedProps,g=_.memoizedState,v=(m=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?f:$a(t.type,f),g),m.__reactInternalSnapshotBeforeUpdate=v);break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(jo(163))}}catch(e){Zl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,io=e;break}io=t.return}_=ro,ro=!1})(r,a),Sl(a,r),function(e){var t,n,o,i=kr(),r=e.focusedElem,s=e.selectionRange;if(i!==r&&r&&r.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(r.ownerDocument.documentElement,r)){null!==s&&Sr(r)&&(i=s.start,void 0===(e=s.end)&&(e=i),"selectionStart"in r?(r.selectionStart=i,r.selectionEnd=Math.min(e,r.value.length)):(e=(i=r.ownerDocument||document)&&i.defaultView||window).getSelection&&(e=e.getSelection(),n=r.textContent.length,t=Math.min(s.start,n),s=void 0===s.end?t:Math.min(s.end,n),!e.extend&&s<t&&(n=s,s=t,t=n),n=xr(r,t),o=xr(r,s),n)&&o&&(1!==e.rangeCount||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((i=i.createRange()).setStart(n.node,n.offset),e.removeAllRanges(),s<t?(e.addRange(i),e.extend(o.node,o.offset)):(i.setEnd(o.node,o.offset),e.addRange(i)))),i=[];for(e=r;e=e.parentNode;)1===e.nodeType&&i.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<i.length;r++)(e=i[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(Rt),Le=!!It,Rt=It=null,function(e){!function e(t,n,o){for(var i=!!(1&t.mode);null!==io;){var r=io,s=r.child;if(22===r.tag&&i){var a=null!==r.memoizedState||to;if(!a){var l=r.alternate,c=null!==l&&null!==l.memoizedState||no,u=(l=to,no);if(to=a,(no=c)&&!u)for(io=r;null!==io;)c=(a=io).child,22===a.tag&&null!==a.memoizedState||null===c?Pl(r):(c.return=a,io=c);for(;null!==s;)e(io=s),s=s.sibling;io=r,to=l,no=u}El(t)}else 8772&r.subtreeFlags&&null!==s?(s.return=r,io=s):El(t)}}(io=e)}(r.current=a),le(),po=h,ke=u,ho.transition=d):r.current=a,Ao&&(Ao=!1,Mo=r,Lo=c),0===(d=r.pendingLanes)&&($o=null),(e=>{if(ve&&"function"==typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(me,e,void 0,!(128&~e.current.flags))}catch(e){}})(a.stateNode),Al(r,ce()),null!==s)for(l=r.onRecoverableError,a=0;a<s.length;a++)l((c=s[a]).value,{componentStack:c.stack,digest:c.digest});if(Co)throw Co=!1,r=No,No=null,r;!!(1&Lo)&&0!==r.tag&&Xl(),1&(d=r.pendingLanes)?r===Io?Do++:(Do=0,Io=r):Do=0,cs()}}finally{ho.transition=i,ke=o}return null}function Xl(){if(null!==Mo){var e=Vi(Lo),t=ho.transition,n=ke;try{if(ho.transition=null,ke=e<16?16:e,null===Mo)var o=!1;else{if(e=Mo,Mo=null,(Lo=0)!=(6&po))throw Error(jo(331));var i=po;for(po|=4,io=e.current;null!==io;){var r=io,s=r.child;if(16&io.flags){var a=r.deletions;if(null!==a){for(var l=0;l<a.length;l++){var c=a[l];for(io=c;null!==io;){switch((h=io).tag){case 0:case 11:case 15:gl(8,h,r)}var u=h.child;if(null!==u)u.return=h,io=u;else for(;null!==io;){var h,d=(h=io).sibling,p=h.return;if(function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&(delete n[zt],delete n[Ut],delete n[Yt],delete n[Wt],delete n[Gt]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(h),h===c){io=null;break}if(null!==d){d.return=p,io=d;break}io=p}}}var f=r.alternate;if(null!==f){var g=f.child;if(null!==g){f.child=null;do{var m=g.sibling}while((g.sibling=null)!==(g=m))}}io=r}}if(2064&r.subtreeFlags&&null!==s)s.return=r,io=s;else for(;null!==io;){if(2048&(r=io).flags)switch(r.tag){case 0:case 11:case 15:gl(9,r,r.return)}var v=r.sibling;if(null!==v){v.return=r.return,io=v;break}io=r.return}}var _=e.current;for(io=_;null!==io;){var b=(s=io).child;if(2064&s.subtreeFlags&&null!==b)b.return=s,io=b;else for(s=_;null!==io;){if(2048&(a=io).flags)try{switch(a.tag){case 0:case 11:case 15:ml(9,a)}}catch(e){Zl(a,a.return,e)}if(a===s){io=null;break}var y=a.sibling;if(null!==y){y.return=a.return,io=y;break}io=a.return}}if(po=i,cs(),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(me,e)}catch(e){}o=!0}return o}finally{ke=n,ho.transition=t}}}function Ql(e,t,n){e=Fs(e,t=Va(0,t=Ra(n,t),1),1),t=Cl(),null!==e&&(Fi(e,1,t),Al(e,t))}function Zl(e,t,n){if(3===e.tag)Ql(e,e,n);else for(;null!==t;){if(3===t.tag){Ql(t,e,n);break}if(1===t.tag){var o=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===$o||!$o.has(o))){t=Fs(t,e=ja(t,e=Ra(n,e),1),1),e=Cl(),null!==t&&(Fi(t,1,e),Al(t,e));break}}t=t.return}}function Kl(e,t){0===t&&(1&e.mode?(t=xe,!(130023424&(xe<<=1))&&(xe=4194304)):t=1);var n=Cl();null!==(e=Ls(e,t))&&(Fi(e,t,n),Al(e,n))}function Jl(e,t){return re(e,t)}function ec(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tc(e,t,n,o){return new ec(e,t,n,o)}function nc(e){return(e=e.prototype)&&e.isReactComponent}function oc(e,t){var n=e.alternate;return null===n?((n=tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,(n.alternate=e).alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ic(e,t,n,o,i,r){var s=2;if("function"==typeof(o=e))nc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return rc(n.children,i,r,t);case y:i|=s=8;break;case w:return(e=tc(12,n,t,2|i)).elementType=w,e.lanes=r,e;case E:return(e=tc(13,n,t,i)).elementType=E,e.lanes=r,e;case T:return(e=tc(19,n,t,i)).elementType=T,e.lanes=r,e;case N:return sc(n,i,r,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case S:s=9;break e;case O:s=11;break e;case P:s=14;break e;case C:s=16,o=null;break e}throw Error(jo(130,null==e?e:typeof e,""))}return(t=tc(s,n,t,i)).elementType=e,t.type=o,t.lanes=r,t}function rc(e,t,n,o){return(e=tc(7,e,o,t)).lanes=n,e}function sc(e,t,n,o){return(e=tc(22,e,o,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function ac(e,t,n){return(e=tc(6,e,null,t)).lanes=n,e}function lc(e,t,n){return(t=tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cc(e,t,n,o,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ri(0),this.expirationTimes=Ri(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ri(0),this.identifierPrefix=o,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uc(e,t,n,o,i,r,s,a,l){return e=new cc(e,t,0,a,l),1===t?(t=1,!0===r&&(t|=8)):t=0,r=tc(3,null,null,t),(e.current=r).stateNode=e,r.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ds(r),e}function hc(e){if(!e)return Qt;e:{if(Ci(e=e._reactInternals)!==e||1!==e.tag)throw Error(jo(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ns(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}}while(null!==(t=t.return));throw Error(jo(171))}if(1===e.tag){var n=e.type;if(ns(n))return rs(e,n,t)}return t}function dc(e,t,n,o,i,r,s,a,l){return(e=uc(n,o,!0,e,0,r,0,a,l)).context=hc(null),n=e.current,(r=Rs(o=Cl(),i=Nl(n))).callback=null!=t?t:null,Fs(n,r,i),e.current.lanes=i,Fi(e,i,o),Al(e,o),e}function pc(e,t,n,o){var i=t.current,r=Cl(),s=Nl(i);n=hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Rs(r,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),null!==(e=Fs(i,t,s))&&($l(e,i,s,r),Hs(e,i,s))}function fc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function gc(e,t){var n;null!==(e=e.memoizedState)&&null!==e.dehydrated&&(n=e.retryLane,e.retryLane=0!==n&&n<t?n:t)}function mc(e,t){gc(e,t),(e=e.alternate)&&gc(e,t)}function vc(e){this._internalRoot=e}function _c(e){this._internalRoot=e}function bc(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeType)}function yc(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeType||8===e.nodeType&&" react-mount-point-unstable "===e.nodeValue)}function wc(){}function xc(e,t,n,o,i){var r,s,a=n._reactRootContainer;return a?("function"==typeof i&&(s=i,i=function(){var e=fc(r);s.call(e)}),pc(t,r=a,e,i)):r=((e,t,n,o,i)=>{var r,s,a;if(i)return"function"==typeof o&&(r=o,o=function(){var e=fc(s);r.call(e)}),s=dc(t,o,e,0,null,!1,0,"",wc),e._reactRootContainer=s,e[Bt]=s.current,Mr(8===e.nodeType?e.parentNode:e),Hl(),s;for(;i=e.lastChild;)e.removeChild(i);"function"==typeof o&&(a=o,o=function(){var e=fc(l);a.call(e)});var l=uc(e,0,!1,null,0,!1,0,"",wc);return e._reactRootContainer=l,e[Bt]=l.current,Mr(8===e.nodeType?e.parentNode:e),Hl(function(){pc(t,l,n,o)}),l})(n,t,e,i,o),fc(r)}}var S,O,E,T,P,C,N,$,A,M,L,D,I,R,F,H,V,j,z,U,B,Y,W,G,q,X,Q,Z,K,J,ee,te,ne,oe,ie,re=(m||(m=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),_.exports=k()),_.exports),se=d(),ae=n(se);let le=ae.createContext({tour:void 0});function ce(e,t,n,o){return new(n=n||Promise)(function(i,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((o=o.apply(e,t||[])).next())})}let ue={MOVING:"MOVING",SOUND:"SOUND",INFO:"INFO",POPUP:"POPUP",PHOTO:"PHOTO",VIDEO:"VIDEO",ITEM_INFO:"ITEM_INFO",POLYGON:"POLYGON",LENSFLARE:"LENSFLARE",NADIR_LOGO:"NADIR_LOGO",PROMOTION:"PROMOTION",GALLERY:"GALLERY",TEXTURE:"TEXTURE"},he={SPACE_AND_SCENE:"SPACE_AND_SCENE",FEATURES:"FEATURES",PRODUCT_LIST:"PRODUCT_LIST",INFORMATION:"INFORMATION",BRAND:"BRAND",LOCATION:"LOCATION",FACILITY:"FACILITY",MULTIMEDIA:"MULTIMEDIA",SWAP_ELEMENT:"SWAP_ELEMENT",PROMOTION:"PROMOTION"},de="gyro2",pe="radar",fe="sound",ge=((St=S=S||{}).DEFAULT="DEFAULT",St.SIMPLE_CROSS_BLENDING="SIMPLE_CROSS_BLENDING",St.ZOOM_BLEND="ZOOM_BLEND",St.BLACK_OUT="BLACK_OUT",St.WHITE_FLASH="WHITE_FLASH",St.RIGHT_TO_LEFT="RIGHT_TO_LEFT",St.TOP_TO_BOTTOM="TOP_TO_BOTTOM",St.DIAGONAL="DIAGONAL",St.CIRCLE_OPEN="CIRCLE_OPEN",St.VERTICAL_OPEN="VERTICAL_OPEN",St.HORIZONTAL_OPEN="HORIZONTAL_OPEN",{FAST:.7,NORMAL:1,SLOW:1.5,SLOWEST:2}),me={FASTEST:.5,FAST:.7,NORMAL:1,SLOW:1.5,SLOWEST:2},ve={[S.DEFAULT]:ge.SLOW,[S.SIMPLE_CROSS_BLENDING]:ge.NORMAL,[S.ZOOM_BLEND]:ge.SLOWEST,[S.BLACK_OUT]:ge.SLOWEST,[S.WHITE_FLASH]:ge.NORMAL,[S.RIGHT_TO_LEFT]:ge.NORMAL,[S.TOP_TO_BOTTOM]:ge.NORMAL,[S.DIAGONAL]:ge.NORMAL,[S.CIRCLE_OPEN]:ge.NORMAL,[S.VERTICAL_OPEN]:ge.FAST,[S.HORIZONTAL_OPEN]:ge.NORMAL},_e={[S.DEFAULT]:"OPENBLEND({level}, 0.0, 0.6, 1.0, easeOutQuad)",[S.SIMPLE_CROSS_BLENDING]:"BLEND({level}, easeInCubic)",[S.ZOOM_BLEND]:"ZOOMBLEND({level}, 2.0, easeInOutSine)",[S.BLACK_OUT]:"COLORBLEND({level}, 0x000000, easeOutSine)",[S.WHITE_FLASH]:"LIGHTBLEND({level}, 0xFFFFFF, 2.0, linear)",[S.RIGHT_TO_LEFT]:"SLIDEBLEND({level}, 0.0, 0.2, linear)",[S.TOP_TO_BOTTOM]:"SLIDEBLEND({level}, 90.0, 0.01, linear)",[S.DIAGONAL]:"SLIDEBLEND({level}, 135.0, 0.4, linear)",[S.CIRCLE_OPEN]:"OPENBLEND({level}, 0.0, 0.2, 0.0, linear)",[S.VERTICAL_OPEN]:"OPENBLEND({level}, 1.0, 0.1, 0.0, linear)",[S.HORIZONTAL_OPEN]:"OPENBLEND({level}, -1.0, 0.3, 0.0, linear)"},be=((e=>{e[e.SSML_VOICE_GENDER_UNSPECIFIED=0]="SSML_VOICE_GENDER_UNSPECIFIED",e[e.MALE=1]="MALE",e[e.FEMALE=2]="FEMALE",e[e.NEUTRAL=3]="NEUTRAL",e[e.UNRECOGNIZED=4]="UNRECOGNIZED"})(O=O||{}),{MOVE_SCENE:"MOVE_SCENE",LOOK_AT:"LOOK_AT",ROTATE:"ROTATE",PLAY_SOUND:"PLAY_SOUND",SLEEP:"SLEEP",OPEN_FUNCTION_BUTTON:"OPEN_FUNCTION_BUTTON",SWITCH_SCENE:"SWITCH_SCENE",OPEN_MINIMAP:"OPEN_MINIMAP"}),ye=((e=>{e.AGT="AGT",e.SCENE="SPACE_AND_SCENE",e.PROMOTION="PROMOTION",e.FEATURES="FEATURES",e.PRODUCT_LIST="PRODUCT_LIST",e.INFORMATION="INFORMATION",e.BRAND="BRAND",e.LOCATION="LOCATION",e.FACILITY="FACILITY",e.MULTIMEDIA="MULTIMEDIA",e.SWAP_ELEMENT="SWAP_ELEMENT",e.DETAIL="DETAIL",e.TEMP="TEMP"})(E=E||{}),(e=>{e.EN="en",e.VI="vi",e.JP="jp"})(T=T||{}),"https://cdn3.clik.vn/clikvirtualtour"),we={GYRO2:ye+"/common/plugins/gyro2.js",SOUND_INTERFACE:ye+"/common/plugins/soundinterface.js?v2",RADAR:ye+"/common/plugins/radar.js",VIDEO_PLAYER:ye+"/common/plugins/videoplayer.js"},xe="/common/configs/flare-config.json",ke={MOVING:ye+"/common/media/vtourskin.png",INFO:ye+"/common/media/tag.png",POPUP:ye+"/common/media/vtourskin.png",PHOTO:ye+"/common/media/gallery.png",VIDEO:ye+"/common/media/hotspot_video_icon.png",PIN:ye+"/common/media/vtourskin.png",SOUND_PLAY:ye+"/common/media/play-solid.png",SOUND_PAUSE:ye+"/common/media/stop-solid.png",BACKGROUND:ye+"/common/media/bgshadow.png",PROMOTION:ye+"/common/media/promotion_lg.png",GALLERY:ye+"/common/media/gallery.png",TEXTURE:ye+"/common/media/vtourskin.png",FOCUSING_IMAGE_STRIP:ye+"/common/media/audio_shake.png",NAVIGATION_ARROW:ye+"/common/media/navigation.svg",NAVIGATION_HIGHLIGHT:ye+"/common/media/navigation-highlight.svg"},Se="NONE",Oe="LOCK_VIEW",Ee="NADIR_LOGO",Te="SNEAK_PEEK",Pe="LABEL",Ce="SNEAK_PEEK_AND_LABEL",Ne="NONE",$e="TOGGLE_UI",Ae="MOVE_TO_SCENE",Me="LABEL",Le="POPUP",De={NORTH:"NORTH",SOUTH:"SOUTH",EAST:"EAST",WEST:"WEST",NORTH_EAST:"NORTH_EAST",NORTH_WEST:"NORTH_WEST",SOUTH_EAST:"SOUTH_EAST",SOUTH_WEST:"SOUTH_WEST"},Ie=1,Re=((e=>{e[e.MIN=0]="MIN",e[e.BASE=1]="BASE",e[e.STANDARD=2]="STANDARD",e[e.FOCUSING_AREA=3]="FOCUSING_AREA",e[e.HOVERING_AREA=4]="HOVERING_AREA",e[e.HOVERING=5]="HOVERING",e[e.MAX=1e3]="MAX"})(P=P||{}),{NONE:"NONE",BOTTOM_LEFT_CORNER:"BOTTOM_LEFT_CORNER"}),Fe="NONE",He="RIGHT",Ve="TOP",je="BOTTOM",ze="LEFT",Ue="SMALL",Be="MEDIUM",Ye="LARGE",We={[Ue]:80,[Be]:160,[Ye]:240},Ge=[0,32,112,192],qe=32,Xe=8,Qe={NONE:{x:0,y:0},HORIZONTAL:{x:206,y:0},DYNAMIC_VERTICAL:e=>({x:0,y:e/2})},Ze="CLASSIC",Ke="NAMEPLATE",Je="NONE",et="PRODUCT",tt="BRAND",nt="LOCATION",ot="FACILITY",it="PRODUCT",rt="BRAND",st="LOCATION",at="ECOMMERCE_PRODUCT",lt="FACILITY",ct="NONE",ut="LABEL",ht=[ue.ITEM_INFO,ue.PROMOTION,ue.TEXTURE,ue.GALLERY],dt=[et,tt,nt,ot],pt="VIDEO",ft=((e=>{e.SQUARE_METER="㎡",e.CUBIC_METER="㎥",e.KILOGRAM="kg",e.CENTIMETER="cm",e.GRAM="g",e.LITER="Lít"})(C=C||{}),(e=>{e.IFRAME="IFRAME",e.NEW_TAB="NEW_TAB"})(N=N||{}),e=>{var t,n=Object.assign({},e);let o="";for(t in n){var i=n[t];i&&(""!=o&&(o+="&"),o+="view."+t+"="+i)}return o}),gt=e=>Math.round(e/1e3%1*1e3),mt=e=>ce(void 0,void 0,void 0,function*(){let{host:t,path:n,method:o="GET",params:i}=e,r=function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}(e,["host","path","method","params"]),s=new URL(""+t+n);return i&&Object.keys(i).forEach(e=>i[e]&&s.searchParams.append(e,i[e])),fetch(s,Object.assign({method:o},r))}),vt=se.createContext(void 0),_t=({children:e,config:t})=>{let[n,o]=se.useState(Object.assign({},t));return se.useEffect(()=>{var e;if(!t.apiHost)throw new Error("apiHost is required");let n=t.elementId;t.elementId||(n="virtual-tour-"+(null==(e=t.overrideConfigs)?void 0:e.tourCode)),o(Object.assign(Object.assign({},t),{elementId:n}))},[t]),v.jsx(vt.Provider,{value:n,children:e})},bt=()=>{var e=ae.useContext(vt);if(void 0===e)throw new Error("useConfiguration must be used within a ConfigurationProvider");return e},yt=se.createContext(void 0),wt=({children:e})=>{var[t,n]=se.useState(!1),[o,i]=se.useState(!0),[r,s]=se.useState(!0),[a,l]=se.useState(!1),[c,u]=se.useState(!1),[h,d]=se.useState(!1),[p,f]=se.useState(!1),[g,m]=se.useState(!1),[_,b]=se.useState(!1),[y,w]=se.useState(!1),[x,k]=se.useState(!1),[S,O]=se.useState(!1),[E,,]=se.useState(!1),[T,P]=se.useState(!1),[C,N]=se.useState(!1),[$,A]=se.useState(!1),[M,L]=se.useState(void 0),[D,I]=se.useState(void 0),[R,,]=se.useState(0),[F,H]=se.useState(null),[V,j]=se.useState(null),[z,U]=se.useState([]),[B,Y]=se.useState(null),[W,G]=se.useState(null),[q,X]=se.useState(null);let[Q,Z]=se.useState({});var[K,J]=se.useState(null),[ee,te]=se.useState(null),[ne,oe]=se.useState([]),[ie,re]=se.useState({});return v.jsx(yt.Provider,{value:{mobileDevice:t,canInitVisualizer:a,loading:o,loadingScene:r,soundReady:c,tourReady:h,tourSoundPlaying:p,backgroundSoundPlaying:g,showSplashScreen:_,activeScene:B,tourData:K,floorplans:ne,activeScenario:F,scenarioConfigCodes:z,metadata:ee,scenarios:ie,playingTempScenario:y,autoPlaying:x,playingHotspotSound:S,showSlideIn:E,activePoiCode:M,bottomSheetMiddleHeight:R,activeFloorplan:V,activePoi:W,focusingOnVisualizer:T,muted:C,activePoiCoords:q,plugin:Q,viewRotating:$,poiCodeNearestToCenter:D,setMobileDevice:n,setCanInitVisualizer:l,setLoading:i,setLoadingScene:s,setSoundReady:u,setTourReady:d,setTourSoundPlaying:f,setBackgroundSoundPlaying:m,setShowSplashScreen:b,setActiveScene:Y,setTourData:J,setFloorplans:oe,setActiveScenario:H,setScenarioConfigCodes:U,setMetadata:te,setScenarios:re,setPlayingTempScenario:w,setAutoPlaying:k,setPlayingHotspotSound:O,setActivePoiCode:L,setActiveFloorplan:j,setActivePoi:G,setFocusingOnVisualizer:P,setMuted:N,setActivePoiCoords:X,setActiveTourPlugin:e=>{var{pluginName:e,state:t}=e;e&&(e=Object.assign(Object.assign({},Q),{[e]:t}),Z(e))},setViewRotating:A,setPoiCodeNearestToCenter:I},children:e})},xt=()=>{var e=ae.useContext(yt);if(void 0===e)throw new Error("useTourState must be used within a TourStateProvider");return e},kt=()=>{let{apiHost:e,overrideConfigs:t={}}=bt(),{tourCode:n,language:o}=t,{scenarios:i,tourData:r,canInitVisualizer:s,setTourData:a,setScenarioConfigCodes:l,setMetadata:c,setActiveScenario:u,setScenarios:h,setFloorplans:d,setBackgroundSoundPlaying:p,setTourSoundPlaying:f,setCanInitVisualizer:g}=xt(),m=t=>ce(void 0,void 0,void 0,function*(){if(!n||!e)return null;var s=i[t];if(s&&!s.isSimplify)return s;try{var a=yield(e=>ce(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o,tourCodeOrAlias:i}=e;return yield(yield mt({host:t,path:`/v1/ext/tours/${i}/tour-scenarios/`+o,headers:{language:n}})).json()}))({apiHost:e,code:t,tourCodeOrAlias:n,language:o}),l=Object.assign(Object.assign({},r),{inSimplify:!1,steps:(a.steps||[]).sort((e,t)=>e&&t?(e.orderIndex||0)-(t.orderIndex||0):0).map(e=>e&&e.children&&e.children.length?Object.assign(Object.assign({},e),{children:(e.children||[]).sort((e,t)=>e&&t?(e.orderIndex||0)-(t.orderIndex||0):0)}):e)});return h(Object.assign(Object.assign({},i),{[t]:l})),l}catch(s){return console.error("getTourScenarioDetail",s),null}}),v=()=>ce(void 0,void 0,void 0,function*(){var t,i,r,s;if(n&&e)try{let c=yield(e=>ce(void 0,void 0,void 0,function*(){var t,{apiHost:t,language:n,code:o}=e;return(t=yield(yield mt({host:t,path:"/v1/ext/tours/"+o,headers:{language:n}})).json())&&t.scenes&&t.scenes.sort((e,t)=>gt(e.orderIndex||0)-gt(t.orderIndex||0)),t}))({apiHost:e,language:o,code:n});c&&(null!=(r=yield ce(void 0,void 0,void 0,function*(){var t,i;return n&&e&&null!=(t=yield(e=>ce(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o}=e;return yield(yield mt({host:t,path:"/v1/ext/tour-scenarios?tourCodeOrAlias="+o,headers:{language:n}})).json()}))({apiHost:e,language:o,code:n}))&&t.length?(i=t.reduce((e,t)=>(e[t.code||t.type]=Object.assign(Object.assign({},e),{isSimplify:!0}),e),{}),h(i),l(t.map(e=>e.code||e.type)),t):[]}))&&r.length&&c.tourScenario&&(i=r.find(e=>e.code===c.tourScenario.code))&&(c.tourScenario=i,t=c.tourScenario.code,ce(void 0,void 0,void 0,function*(){t||u(null);var e=yield m(t);return u(e),e})),s=!!c.bgSound&&!!c.bgSound.enable,c.bgSound&&(p(s),f(s)),(e=>ce(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o}=e;return yield(yield mt({host:t,path:`/v1/ext/tours/${o}/floorplans`,headers:{language:n}})).json()}))({apiHost:e,language:o,code:n}).then(e=>{d(e)})),a(c)}catch(i){console.error(i)}finally{setTimeout(()=>{g(!0)},500)}});se.useEffect(()=>{ce(void 0,void 0,void 0,function*(){try{var e=yield mt({host:ye,path:xe,headers:{"Content-Type":"application/json"}});return JSON.parse(yield e.text())||null}catch(e){return console.error(e),null}}).then(e=>{c(e)})},[]),se.useEffect(()=>{n&&e&&!s&&v()},[n,e,s])};var St;function Ot(){return A||(A=1,$=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}),$}function Et(){var e,n;return I||(I=1,n=function(){var e;return L||(L=1,e="object"==typeof t&&t&&t.Object===Object&&t,M=e),M}(),e="object"==typeof self&&self&&self.Object===Object&&self,n=n||e||Function("return this")(),D=n),D}function Tt(){var e,t;return z||(z=1,e=function(){var e;return V||(V=1,e=/\s/,H=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}),H}(),t=/^\s+/,j=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}),j}function Pt(){var e;return B||(B=1,e=Et().Symbol,U=e),U}function Ct(){var e,t,n,o;return Q||(Q=1,e=Pt(),t=function(){var e,t,n,o,i;return W||(W=1,e=Pt(),t=Object.prototype,n=t.hasOwnProperty,o=t.toString,i=e?e.toStringTag:void 0,Y=function(e){var t=n.call(e,i),r=e[i];try{var s=!(e[i]=void 0)}catch(e){}var a=o.call(e);return s&&(t?e[i]=r:delete e[i]),a}),Y}(),n=function(){var e;return q||(q=1,e=Object.prototype.toString,G=function(t){return e.call(t)}),G}(),o=e?e.toStringTag:void 0,X=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(o&&o in Object(e)?t:n)(e)}),X}function Nt(){var e,t;return ee||(ee=1,e=Ct(),K||(K=1,Z=function(e){return null!=e&&"object"==typeof e}),t=Z,J=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}),J}var $t,At,Mt,Lt,Dt,It,Rt,Ft,Ht,Vt,jt,zt,Ut,Bt=(ie||(ie=1,At=Ot(),Mt=function(){var e;return F||(F=1,e=Et(),R=function(){return e.Date.now()}),R}(),ne||(ne=1,Rt=Tt(),Ft=Ot(),Ht=Nt(),Vt=/^[-+]0x[0-9a-f]+$/i,jt=/^0b[01]+$/i,zt=/^0o[0-7]+$/i,Ut=parseInt,te=function(e){if("number"==typeof e)return e;if(Ht(e))return NaN;if(Ft(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=Ft(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=Rt(e);var t=jt.test(e);return t||zt.test(e)?Ut(e.slice(2),t?2:8):Vt.test(e)?NaN:+e}),Lt=te,Dt=Math.max,It=Math.min,oe=function(e,t,n){var o,i,r,s,a,l,c=0,u=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function f(e){var n=e-l;return void 0===l||t<=n||n<0||h&&r<=e-c}function g(){var e,n=Mt();if(f(n))return m(n);a=setTimeout(g,(e=t-(n-l),h?It(e,r-(n-c)):e))}function m(e){return a=void 0,d&&o?p(e):(o=i=void 0,s)}function v(){var e=Mt(),n=f(e);if(o=arguments,i=this,l=e,n){if(void 0===a)return c=e=l,a=setTimeout(g,t),u?p(e):s;if(h)return clearTimeout(a),a=setTimeout(g,t),p(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=Lt(t)||0,At(n)&&(u=!!n.leading,r=(h="maxWait"in n)?Dt(Lt(n.maxWait)||0,t):r,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==a&&clearTimeout(a),o=l=i=a=void(c=0)},v.flush=function(){return void 0===a?s:m(Mt())},v}),oe),Yt=n(Bt),Wt={exports:{}},Gt=Wt.exports;var qt,Xt=function(){var e,t,n;return $t||($t=1,e=Wt,t=Gt,r.prototype={VERSION:"1.0.0",memorize:!(o.prototype={active:!0,params:null,execute:function(e){var t;return this.active&&this._listener&&(e=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,e),this._isOnce)&&this.detach(),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}}),_shouldPropagate:!0,active:!0,_registerListener:function(e,t,n,i){var r,s=this._indexOfListener(e,n);if(-1!==s){if((r=this._bindings[s]).isOnce()!==t)throw new Error("You cannot add"+(t?"":"Once")+"() then add"+(t?"Once":"")+"() the same listener without removing the relationship first.")}else r=new o(this,e,t,n,i),this._addBinding(r);return this.memorize&&this._prevParams&&r.execute(this._prevParams),r},_addBinding:function(e){for(var t=this._bindings.length;this._bindings[--t]&&e._priority<=this._bindings[t]._priority;);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,o=this._bindings.length;o--;)if((n=this._bindings[o])._listener===e&&n.context===t)return o;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return i(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return i(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){return i(e,"remove"),-1!==(t=this._indexOfListener(e,t))&&(this._bindings[t]._destroy(),this._bindings.splice(t,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(e){if(this.active){var t,n=Array.prototype.slice.call(arguments),o=this._bindings.length;if(this.memorize&&(this._prevParams=n),o)for(t=this._bindings.slice(),this._shouldPropagate=!0;t[--o]&&this._shouldPropagate&&!1!==t[o].execute(n););}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}},(n=r).Signal=r,e.exports?e.exports=n:t.signals=n),Wt.exports;function o(e,t,n,o,i){this._listener=t,this._isOnce=n,this.context=o,this._signal=e,this._priority=i||0}function i(e,t){if("function"!=typeof e)throw new Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}function r(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){r.prototype.dispatch.apply(e,arguments)}}}();let Qt=360,Zt=e=>{if(e)return e},Kt=()=>{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})},Jt=e=>new Promise(t=>setTimeout(()=>{t()},e)),en=e=>{let t,n;var o=new Promise((o,i)=>{n=i,t=setTimeout(()=>{o()},e)});return o.abort=()=>{clearTimeout(t),n("aborted")},o},tn=e=>{let t;if(e.type===ue.ITEM_INFO){var n=e.props.itemInfo;switch(null==n?void 0:n.type){case at:t=he.PRODUCT_LIST;break;case it:t=null!=n.included?he.FEATURES:he.PRODUCT_LIST;break;case rt:t=he.BRAND;break;case st:t=he.LOCATION;break;case lt:t=he.FACILITY;break;default:t=""}}else switch(e.type){case ue.PROMOTION:t=he.PROMOTION;break;case ue.INFO:t=he.INFORMATION;break;case ue.GALLERY:t=he.MULTIMEDIA;break;case ue.TEXTURE:t=he.SWAP_ELEMENT;break;default:t=""}return t},nn=e=>1e3*e,on=e=>null!=e,rn=e=>e?e/1e3:0,sn=(e,t)=>(e=((e,t)=>{if(!e)return null;if(!e.responsive)return e;var{large:n,medium:o,small:i,thumbnail:r}=e.responsive;let s=1,a=(e.width&&e.height&&!t&&(s=e.width>e.height?e.height/e.width:e.width/e.height),0);return t?a=t:"object"==typeof window&&(a=window.innerWidth),1!==s&&(a/=s),0===a?null:1e3<a?e:1e3===Math.max(1e3,a)&&750===Math.min(750,a)?n||e:750===Math.max(750,a)&&500===Math.min(500,a)?o||e:500===Math.max(500,a)&&250===Math.min(250,a)?i||e:a<250?r||e:null})(e,t),e?e.url:null),an=((e=>{e.VFOV="VFOV",e.HFOV="HFOV",e.DFOV="DFOV",e.MFOV="MFOV",e.SFOV="SFOV"})(qt=qt||{}),e=>{let t=!1;var n,o;return e&&(n=e.get("device.mobile"),o=e.get("device.tablet"),e=e.get("device.touch"),t=n||o||e),t}),ln=e=>{var{url:t,theme:n,type:o,width:i,scale:r}=e,s=dn(e),i=i*r||void 0;let a;if(o===ue.PHOTO?(r=e.image)&&(a=sn(r,i)):o===ue.PROMOTION&&(r=e.promotion)&&(r=r.icon)&&(r.thumbnail||r.url)&&(a=sn(r,i)),!(a=!a&&s?s.imageStrip?s.file.url:sn(s.file,i):a)&&n&&n.poiIcons&&n.poiIcons.length){let t=o;o===ue.ITEM_INFO&&(r=e.itemInfo)&&(t=(o+"_"+r.type).toUpperCase()),s=n.poiIcons.find(e=>e.poiType===t),s&&s.icon&&(a=sn(s.icon.file,i))}return a?Zt(a):t?Zt(t):(e=>{switch(e.type){case ue.ITEM_INFO:return ke.PIN;case ue.INFO:return ke.INFO;case ue.MOVING:return ke.MOVING;case ue.POPUP:return ke.POPUP;case ue.SOUND:return ke.SOUND_PLAY;case ue.PROMOTION:return ke.PROMOTION;default:return ke.PIN}})(e)},cn=(e,t,n)=>ce(void 0,void 0,void 0,function*(){!e||t&&n||(yield new Promise(o=>{let i=new Image;i.onload=()=>{t=t||i.width,n=n||i.height,o()},i.onerror=()=>{o()},i.src=e}))}),un=e=>e+"_hover",hn=(e,t,n)=>{t=t.code,e.call(`tween(hotspot[${t}].alpha, ${n?0:1}, 0.2)`)},dn=e=>e.icon||(e=>{var t=e.theme,n=e.type;if(t&&t.poiIcons&&t.poiIcons.length){let o=n;if(n===ue.ITEM_INFO&&(e=e.itemInfo)&&(o=(n+"_"+e.type).toUpperCase()),n=t.poiIcons.find(e=>e.poiType===o),n&&n.icon)return n.icon}return null})(e),pn=e=>(null==e?void 0:e.position)!==Fe,fn=e=>{var t={fovtype:qt.MFOV,fov:90};return an(e)||(t.fovtype=qt.VFOV,t.fov=65),t},gn=e=>e*(Math.PI/180),mn=(e,t,n,o)=>{var i=gn(o-t);n=gn(n-e),e=Math.sin(i/2)*Math.sin(i/2)+Math.cos(gn(t))*Math.cos(gn(o))*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(e),Math.sqrt(1-e))*1e3},vn=(e,t,n,o)=>(e=_n(e-=n),n=_n(n=t-o),{h:Math.abs(e),v:Math.abs(n)}),_n=e=>{let t=e%360;return 180<t&&(t-=360),t<-180&&(t+=360),t},bn=(e,t)=>{var n=t.x-e.x,o=t.y-e.y;t=t.z-e.z;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2)+Math.pow(t,2))},yn=e=>e.get("device.mobile"),wn=(e,t)=>{var n,o,i,r;return t&&e?(({hlookat:n,vlookat:o}=e.getView()),({x:r,y:i}=e.spheretoscreen(n,o)),({x:e,y:r}=e.screentosphere(r+t.x,i+t.y)),{h:t.x&&_n(e-n),v:t.y&&_n(r-o)}):{h:0,v:0}},xn=(e,t)=>{var{ath:t,atv:n,position:o,popupSize:i="1",laserRange:r=Ie}=t,s={h:t,v:n,hfovExpand:0};if(0<r){var a=We[i]+Ge[r]+54||0;let l,c;switch(o){case Ve:l=0,c=-Math.round(a/2);break;case He:l=Math.round(a/2),c=0;break;case je:l=0,c=Math.round(a/2);break;case ze:l=-Math.round(a/2),c=0;break;default:l=0,c=0}i=wn(e,{x:l,y:c}),s.h=t+i.h,s.v=n+i.v}return s},kn=e=>{var t;return!!e&&(t=e.overviewPosition,(e=>!(!e||!ht.includes(e.type))&&(e.type!==ue.ITEM_INFO||(e=e.itemInfo,dt.includes(null==e?void 0:e.type))))(e))&&t===Re.BOTTOM_LEFT_CORNER};var Sn,On={exports:{}};var En,Tn=(Sn||(Sn=1,(En=On).exports=(()=>{var e,t;function n(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(r(e,t))return;return 1}function a(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){for(var n=[],o=e.length,i=0;i<o;++i)n.push(t(e[i],i));return n}function h(e,t){for(var n in t)r(t,n)&&(e[n]=t[n]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,o){return Et(e,t,n,o,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){var n,o,i=e._d&&!isNaN(e._d.getTime());return i&&(n=p(e),o=t.call(n.parsedDateParts,function(e){return null!=e}),i=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||(n.meridiem,o)),e._strict)&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function g(e){var t=d(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}t=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var m=n.momentProperties=[],v=!1;function _(e,t){var n,o,i,r=m.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)a(i=t[o=m[n]])||(e[o]=i);return e}function b(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,n.updateOffset(this),v=!1)}function y(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function w(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var o=!0;return h(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),o){for(var i,s,a=[],l=arguments.length,c=0;c<l;c++){if(i="","object"==typeof arguments[c]){for(s in i+="\n["+c+"] ",arguments[0])r(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[c];a.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),o=!1}return t.apply(this,arguments)},t)}var k,S={};function O(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),S[e]||(w(t),S[e]=!0)}function E(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,o=h({},e);for(n in t)r(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},h(o[n],e[n]),h(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)r(e,n)&&!r(t,n)&&i(e[n])&&(o[n]=h({},o[n]));return o}function P(e){null!=e&&this.set(e)}function C(e,t,n){var o=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-o.length)).toString().substr(1)+o}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,k=Object.keys||function(e){var t,n=[];for(t in e)r(e,t)&&n.push(t);return n};var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,$=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},M={};function L(e,t,n,o){var i="string"==typeof o?function(){return this[o]()}:o;e&&(M[e]=i),t&&(M[t[0]]=function(){return C(i.apply(this,arguments),t[1],t[2])}),n&&(M[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function D(e,t){return e.isValid()?(t=I(t,e.localeData()),A[t]=A[t]||(e=>{for(var t,n=e.match(N),o=0,i=n.length;o<i;o++)M[n[o]]?n[o]=M[n[o]]:n[o]=(t=n[o]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var o="",r=0;r<i;r++)o+=E(n[r])?n[r].call(t,e):n[r];return o}})(t),A[t](e)):e.localeData().invalidDate()}function I(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for($.lastIndex=0;0<=n&&$.test(e);)e=e.replace($,o),$.lastIndex=0,--n;return e}var R={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return"string"==typeof e?R[e]||R[e.toLowerCase()]:void 0}function H(e){var t,n,o={};for(n in e)r(e,n)&&(t=F(n))&&(o[t]=e[n]);return o}var V={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},j=/\d/,z=/\d\d/,U=/\d{3}/,B=/\d{4}/,Y=/[+-]?\d{6}/,W=/\d\d?/,G=/\d\d\d\d?/,q=/\d\d\d\d\d\d?/,X=/\d{1,3}/,Q=/\d{1,4}/,Z=/[+-]?\d{1,6}/,K=/\d+/,J=/[+-]?\d+/,ee=/Z|[+-]\d\d:?\d\d/gi,te=/Z|[+-]\d\d(?::?\d\d)?/gi,ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,ie=/^([1-9]\d|\d)/;function re(e,t,n){ue[e]=E(t)?t:function(e,o){return e&&n?n:t}}function se(e,t){return r(ue,e)?ue[e](t._strict,t._locale):new RegExp(ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,i){return t||n||o||i})))}function ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=0;return 0!=(e=+e)&&isFinite(e)?le(e):t}var ue={},he={};function de(e,t){var n,o,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=ce(e)}),o=e.length,n=0;n<o;n++)he[e[n]]=i}function pe(e,t){de(e,function(e,n,o,i){o._w=o._w||{},t(e,o._w,o,i)})}function fe(e){return e%4==0&&e%100!=0||e%400==0}var ge=0,me=1,ve=2,_e=3,be=4,ye=5,we=6,xe=7,ke=8;function Se(e){return fe(e)?366:365}L("Y",0,0,function(){var e=this.year();return e<=9999?C(e,4):"+"+e}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),re("Y",J),re("YY",W,z),re("YYYY",Q,B),re("YYYYY",Z,Y),re("YYYYYY",Z,Y),de(["YYYYY","YYYYYY"],ge),de("YYYY",function(e,t){t[ge]=2===e.length?n.parseTwoDigitYear(e):ce(e)}),de("YY",function(e,t){t[ge]=n.parseTwoDigitYear(e)}),de("Y",function(e,t){t[ge]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return ce(e)+(68<ce(e)?1900:2e3)};var Oe,Ee=Te("FullYear",!0);function Te(e,t){return function(o){return null!=o?(Ce(this,e,o),n.updateOffset(this,t),this):Pe(this,e)}}function Pe(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ce(e,t,n){var o,i,r;if(e.isValid()&&!isNaN(n)){switch(o=e._d,i=e._isUTC,t){case"Milliseconds":return i?o.setUTCMilliseconds(n):o.setMilliseconds(n);case"Seconds":return i?o.setUTCSeconds(n):o.setSeconds(n);case"Minutes":return i?o.setUTCMinutes(n):o.setMinutes(n);case"Hours":return i?o.setUTCHours(n):o.setHours(n);case"Date":return i?o.setUTCDate(n):o.setDate(n);case"FullYear":break;default:return}t=n,r=e.month(),e=29!==(e=e.date())||1!==r||fe(t)?e:28,i?o.setUTCFullYear(t,r,e):o.setFullYear(t,r,e)}}function Ne(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(e+=(t-(n=(t%(n=12)+n)%n))/12,1==n?fe(e)?29:28:31-n%7%2)}Oe=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),L("MMMM",0,0,function(e){return this.localeData().months(this,e)}),re("M",W,oe),re("MM",W,z),re("MMM",function(e,t){return t.monthsShortRegex(e)}),re("MMMM",function(e,t){return t.monthsRegex(e)}),de(["M","MM"],function(e,t){t[me]=ce(e)-1}),de(["MMM","MMMM"],function(e,t,n,o){null!=(o=n._locale.monthsParse(e,o,n._strict))?t[me]=o:p(n).invalidMonth=e});var $e="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ae="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Me=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Le=ne,De=ne;function Ie(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!l(t=e.localeData().monthsParse(t)))return;var n=(n=e.date())<29?n:Math.min(n,Ne(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function Re(e){return null!=e?(Ie(this,e),n.updateOffset(this,!0),this):Pe(this,"Month")}function Fe(){function e(e,t){return t.length-e.length}for(var t,n,o=[],i=[],r=[],s=0;s<12;s++)n=d([2e3,s]),t=ae(this.monthsShort(n,"")),n=ae(this.months(n,"")),o.push(t),i.push(n),r.push(n),r.push(t);o.sort(e),i.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function He(e,t,n,o,i,r,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,o,i,r,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,o,i,r,s),a}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function je(e,t,n){return(n=7+t-n)-(7+Ve(e,0,n).getUTCDay()-t)%7-1}function ze(e,t,n,o,i){var r;return n=(t=1+7*(t-1)+(7+n-o)%7+je(e,o,i))<=0?Se(r=e-1)+t:t>Se(e)?(r=e+1,t-Se(e)):(r=e,t),{year:r,dayOfYear:n}}function Ue(e,t,n){var o,i,r=je(e.year(),t,n);return(r=Math.floor((e.dayOfYear()-r-1)/7)+1)<1?o=r+Be(i=e.year()-1,t,n):r>Be(e.year(),t,n)?(o=r-Be(e.year(),t,n),i=e.year()+1):(i=e.year(),o=r),{week:o,year:i}}function Be(e,t,n){var o=je(e,t,n);return t=je(e+1,t,n),(Se(e)-o+t)/7}function Ye(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),re("w",W,oe),re("ww",W,z),re("W",W,oe),re("WW",W,z),pe(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=ce(e)}),L("d",0,"do","day"),L("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),L("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),L("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),re("d",W),re("e",W),re("E",W),re("dd",function(e,t){return t.weekdaysMinRegex(e)}),re("ddd",function(e,t){return t.weekdaysShortRegex(e)}),re("dddd",function(e,t){return t.weekdaysRegex(e)}),pe(["dd","ddd","dddd"],function(e,t,n,o){null!=(o=n._locale.weekdaysParse(e,o,n._strict))?t.d=o:p(n).invalidWeekday=e}),pe(["d","e","E"],function(e,t,n,o){t[o]=ce(e)});var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=ne,Qe=ne,Ze=ne;function Ke(){function e(e,t){return t.length-e.length}for(var t,n,o,i=[],r=[],s=[],a=[],l=0;l<7;l++)o=d([2e3,1]).day(l),t=ae(this.weekdaysMin(o,"")),n=ae(this.weekdaysShort(o,"")),o=ae(this.weekdays(o,"")),i.push(t),r.push(n),s.push(o),a.push(t),a.push(n),a.push(o);i.sort(e),r.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Je(){return this.hours()%12||12}function et(e,t){L(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,Je),L("k",["kk",2],0,function(){return this.hours()||24}),L("hmm",0,0,function(){return""+Je.apply(this)+C(this.minutes(),2)}),L("hmmss",0,0,function(){return""+Je.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+C(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)}),et("a",!0),et("A",!1),re("a",tt),re("A",tt),re("H",W,ie),re("h",W,oe),re("k",W,oe),re("HH",W,z),re("hh",W,z),re("kk",W,z),re("hmm",G),re("hmmss",q),re("Hmm",G),re("Hmmss",q),de(["H","HH"],_e),de(["k","kk"],function(e,t,n){e=ce(e),t[_e]=24===e?0:e}),de(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),de(["h","hh"],function(e,t,n){t[_e]=ce(e),p(n).bigHour=!0}),de("hmm",function(e,t,n){var o=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o)),p(n).bigHour=!0}),de("hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o,2)),t[ye]=ce(e.substr(i)),p(n).bigHour=!0}),de("Hmm",function(e,t,n){var o=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o))}),de("Hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o,2)),t[ye]=ce(e.substr(i))}),ne=Te("Hours",!0);var nt,ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:$e,monthsShort:Ae,week:{dow:0,doy:6},weekdays:We,weekdaysMin:qe,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function st(e){return e&&e.toLowerCase().replace("_","-")}function at(e){var t,n;if(void 0===it[e]&&En&&En.exports&&(n=e)&&n.match("^[^/\\\\]*$"))try{t=nt._abbr,function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}("./locale/"+e),lt(t)}catch(t){it[e]=null}return it[e]}function lt(e,t){return e&&((t=a(t)?ut(e):ct(e,t))?nt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ct(e,t){if(null===t)return delete it[e],null;var n,o=ot;if(t.abbr=e,null!=it[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])o=it[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;o=n._config}return it[e]=new P(T(o,t)),rt[e]&&rt[e].forEach(function(e){ct(e.name,e.config)}),lt(e),it[e]}function ut(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return nt;if(!o(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,o,i,r=0;r<e.length;){for(t=(i=st(e[r]).split("-")).length,n=(n=st(e[r+1]))?n.split("-"):null;0<t;){if(o=at(i.slice(0,t).join("-")))return o;if(n&&n.length>=t&&((e,t)=>{for(var n=Math.min(e.length,t.length),o=0;o<n;o+=1)if(e[o]!==t[o])return o;return n})(i,n)>=t-1)break;t--}r++}return nt}(e)}function ht(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[me]<0||11<t[me]?me:t[ve]<1||t[ve]>Ne(t[ge],t[me])?ve:t[_e]<0||24<t[_e]||24===t[_e]&&(0!==t[be]||0!==t[ye]||0!==t[we])?_e:t[be]<0||59<t[be]?be:t[ye]<0||59<t[ye]?ye:t[we]<0||999<t[we]?we:-1,p(e)._overflowDayOfYear&&(t<ge||ve<t)&&(t=ve),p(e)._overflowWeeks&&-1===t&&(t=xe),p(e)._overflowWeekday&&-1===t&&(t=ke),p(e).overflow=t),e}var dt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vt=/^\/?Date\((-?\d+)/i,_t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,n,o,i,r,s,a=e._i,l=dt.exec(a)||pt.exec(a),c=(a=gt.length,mt.length);if(l){for(p(e).iso=!0,t=0,n=a;t<n;t++)if(gt[t][1].exec(l[1])){i=gt[t][0],o=!1!==gt[t][2];break}if(null==i)e._isValid=!1;else{if(l[3]){for(t=0,n=c;t<n;t++)if(mt[t][1].exec(l[3])){r=(l[2]||" ")+mt[t][0];break}if(null==r)return void(e._isValid=!1)}if(o||null==r){if(l[4]){if(!ft.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(r||"")+(s||""),St(e)}else e._isValid=!1}}else e._isValid=!1}function wt(e){var t,n,o=_t.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=function(e,t,n,o,i,r){return e=[(e=>(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e)(e),Ae.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(i,10)],r&&e.push(parseInt(r,10)),e}(o[4],o[3],o[2],o[5],o[6],o[7]),((e,t,n)=>{if(!e||Ge.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;p(n).weekdayMismatch=!0,n._isValid=!1})(o[1],t,e)&&(e._a=t,e._tzm=(t=o[8],n=o[9],o=o[10],t?bt[t]:n?0:((t=parseInt(o,10))-(n=t%100))/100*60+n),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function xt(e,t,n){return null!=e?e:null!=t?t:n}function kt(e){var t,o,i,r,s,a,l,c,u,h,d,f=[];if(!e._d){for(i=e,r=new Date(n.now()),o=i._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],e._w&&null==e._a[ve]&&null==e._a[me]&&(null!=(r=(i=e)._w).GG||null!=r.W||null!=r.E?(c=1,u=4,s=xt(r.GG,i._a[ge],Ue(Tt(),1,4).year),a=xt(r.W,1),((l=xt(r.E,1))<1||7<l)&&(h=!0)):(c=i._locale._week.dow,u=i._locale._week.doy,d=Ue(Tt(),c,u),s=xt(r.gg,i._a[ge],d.year),a=xt(r.w,d.week),null!=r.d?((l=r.d)<0||6<l)&&(h=!0):null!=r.e?(l=r.e+c,(r.e<0||6<r.e)&&(h=!0)):l=c),a<1||a>Be(s,c,u)?p(i)._overflowWeeks=!0:null!=h?p(i)._overflowWeekday=!0:(d=ze(s,a,l,c,u),i._a[ge]=d.year,i._dayOfYear=d.dayOfYear)),null!=e._dayOfYear&&(r=xt(e._a[ge],o[ge]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),h=Ve(r,0,e._dayOfYear),e._a[me]=h.getUTCMonth(),e._a[ve]=h.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=f[t]=o[t];for(;t<7;t++)e._a[t]=f[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[be]&&0===e._a[ye]&&0===e._a[we]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?Ve:He).apply(null,f),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(p(e).weekdayMismatch=!0)}}function St(e){if(e._f===n.ISO_8601)yt(e);else if(e._f===n.RFC_2822)wt(e);else{e._a=[],p(e).empty=!0;for(var t,o,i,s,a,l=""+e._i,c=l.length,u=0,h=I(e._f,e._locale).match(N)||[],d=h.length,f=0;f<d;f++)o=h[f],(t=(l.match(se(o,e))||[])[0])&&(0<(i=l.substr(0,l.indexOf(t))).length&&p(e).unusedInput.push(i),l=l.slice(l.indexOf(t)+t.length),u+=t.length),M[o]?(t?p(e).empty=!1:p(e).unusedTokens.push(o),i=o,a=e,null!=(s=t)&&r(he,i)&&he[i](s,a._a,a,i)):e._strict&&!t&&p(e).unusedTokens.push(o);p(e).charsLeftOver=c-u,0<l.length&&p(e).unusedInput.push(l),e._a[_e]<=12&&!0===p(e).bigHour&&0<e._a[_e]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[_e]=((e,t,n)=>null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t)(e._locale,e._a[_e],e._meridiem),null!==(c=p(e).era)&&(e._a[ge]=e._locale.erasConvertYear(c,e._a[ge])),kt(e),ht(e)}}function Ot(e){var t,r,s,d=e._i,m=e._f;if(e._locale=e._locale||ut(e._l),null===d||void 0===m&&""===d)return g({nullInput:!0});if("string"==typeof d&&(e._i=d=e._locale.preparse(d)),y(d))return new b(ht(d));if(c(d))e._d=d;else if(o(m)){var v,w,x,k,S,O,E=e,T=!1,P=E._f.length;if(0===P)p(E).invalidFormat=!0,E._d=new Date(NaN);else{for(k=0;k<P;k++)S=0,O=!1,v=_({},E),null!=E._useUTC&&(v._useUTC=E._useUTC),v._f=E._f[k],St(v),f(v)&&(O=!0),S=(S+=p(v).charsLeftOver)+10*p(v).unusedTokens.length,p(v).score=S,T?S<x&&(x=S,w=v):(null==x||S<x||O)&&(x=S,w=v,O)&&(T=!0);h(E,w||v)}}else m?St(e):a(m=(d=e)._i)?d._d=new Date(n.now()):c(m)?d._d=new Date(m.valueOf()):"string"==typeof m?(r=d,null!==(t=vt.exec(r._i))?r._d=new Date(+t[1]):(yt(r),!1===r._isValid&&(delete r._isValid,wt(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:n.createFromInputFallback(r)))):o(m)?(d._a=u(m.slice(0),function(e){return parseInt(e,10)}),kt(d)):i(m)?(t=d)._d||(s=void 0===(r=H(t._i)).day?r.date:r.day,t._a=u([r.year,r.month,s,r.hour,r.minute,r.second,r.millisecond],function(e){return e&&parseInt(e,10)}),kt(t)):l(m)?d._d=new Date(m):n.createFromInputFallback(d);return f(e)||(e._d=null),e}function Et(e,t,n,r,a){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&s(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=e,l._f=t,l._strict=r,(a=new b(ht(Ot(a=l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Tt(e,t,n,o){return Et(e,t,n,o,!1)}function Pt(e,t){var n,i;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return Tt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}n.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){},G=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),q=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:g()});var Ct=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var t=(e=H(e)).year||0,n=e.quarter||0,o=e.month||0,i=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=(e=>{var t,n,o=!1,i=Ct.length;for(t in e)if(r(e,t)&&(-1===Oe.call(Ct,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Ct[n]]){if(o)return!1;parseFloat(e[Ct[n]])!==ce(e[Ct[n]])&&(o=!0)}return!0})(e),this._milliseconds=+u+1e3*c+6e4*l+1e3*a*60*60,this._days=+s+7*i,this._months=+o+3*n+12*t,this._data={},this._locale=ut(),this._bubble()}function $t(e){return e instanceof Nt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Mt(e,t){L(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+C(~~(e/60),2)+t+C(~~e%60,2)})}Mt("Z",":"),Mt("ZZ",""),re("Z",te),re("ZZ",te),de(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Dt(te,e)});var Lt=/([\+\-]|\d\d)/gi;function Dt(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+ce(e[2]))?0:"+"===e[0]?t:-t}function It(e,t){var o;return t._isUTC?(t=t.clone(),o=(y(e)||c(e)?e:Tt(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+o),n.updateOffset(t,!1),t):Tt(e).local()}function Rt(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Ht=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jt(e,t){var n,o=e;return $t(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(t=Ht.exec(e))?(n="-"===t[1]?-1:1,o={y:0,d:ce(t[ve])*n,h:ce(t[_e])*n,m:ce(t[be])*n,s:ce(t[ye])*n,ms:ce(At(1e3*t[we]))*n}):(t=Vt.exec(e))?(n="-"===t[1]?-1:1,o={y:zt(t[2],n),M:zt(t[3],n),w:zt(t[4],n),d:zt(t[5],n),h:zt(t[6],n),m:zt(t[7],n),s:zt(t[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(t=((e,t)=>{var n;return e.isValid()&&t.isValid()?(t=It(t,e),e.isBefore(t)?n=Ut(e,t):((n=Ut(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}})(Tt(o.from),Tt(o.to)),(o={}).ms=t.milliseconds,o.M=t.months),n=new Nt(o),$t(e)&&r(e,"_locale")&&(n._locale=e._locale),$t(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function zt(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function Ut(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Bt(e,t){return function(n,o){var i;return null===o||isNaN(+o)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),Yt(this,jt(n,o),e),this}}function Yt(e,t,o,i){var r=t._milliseconds,s=At(t._days);t=At(t._months),e.isValid()&&(i=null==i||i,t&&Ie(e,Pe(e,"Month")+t*o),s&&Ce(e,"Date",Pe(e,"Date")+s*o),r&&e._d.setTime(e._d.valueOf()+r*o),i)&&n.updateOffset(e,s||t)}function Wt(e){return"string"==typeof e||e instanceof String}function Gt(e,t){var n,o;return e.date()<t.date()?-Gt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(o=e.clone().add(n,"months"))<0?(t-o)/(o-e.clone().add(n-1,"months")):(t-o)/(e.clone().add(1+n,"months")-o)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=ut(e))&&(this._locale=e),this)}function Xt(){return this._locale}jt.fn=Nt.prototype,jt.invalid=function(){return jt(NaN)},$e=Bt(1,"add"),We=Bt(-1,"subtract"),n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",qe=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});var Qt,Zt=1e3,Kt=6e4,Jt=60*Kt,en=3506328*Jt;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e,t,n,o=[],i=[],r=[],s=[],a=this.eras(),l=0,c=a.length;l<c;++l)e=ae(a[l].name),t=ae(a[l].abbr),n=ae(a[l].narrow),i.push(e),o.push(t),r.push(n),s.push(e),s.push(t),s.push(n);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function an(e,t){L(0,[e,e.length],0,t)}function ln(e,t,n,o,i){var r;return null==e?Ue(this,o,i).year:(r=Be(e,o,i),function(e,t,n,o,i){return t=Ve((e=ze(e,t,n,o,i)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=r<t?r:t,n,o,i))}for(L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),re("N",rn),re("NN",rn),re("NNN",rn),re("NNNN",function(e,t){return t.erasNameRegex(e)}),re("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),de(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){(o=n._locale.erasParse(e,o,n._strict))?p(n).era=o:p(n).invalidEra=e}),re("y",K),re("yy",K),re("yyy",K),re("yyyy",K),re("yo",function(e,t){return t._eraYearOrdinalRegex||K}),de(["y","yy","yyy","yyyy"],ge),de(["yo"],function(e,t,n,o){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ge]=n._locale.eraYearOrdinalParse(e,i):t[ge]=parseInt(e,10)}),L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),re("G",J),re("g",J),re("GG",W,z),re("gg",W,z),re("GGGG",Q,B),re("gggg",Q,B),re("GGGGG",Z,Y),re("ggggg",Z,Y),pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=ce(e)}),pe(["gg","GG"],function(e,t,o,i){t[i]=n.parseTwoDigitYear(e)}),L("Q",0,"Qo","quarter"),re("Q",j),de("Q",function(e,t){t[me]=3*(ce(e)-1)}),L("D",["DD",2],"Do","date"),re("D",W,oe),re("DD",W,z),re("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),de(["D","DD"],ve),de("Do",function(e,t){t[ve]=ce(e.match(W)[0])}),Q=Te("Date",!0),L("DDD",["DDDD",3],"DDDo","dayOfYear"),re("DDD",X),re("DDDD",U),de(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ce(e)}),L("m",["mm",2],0,"minute"),re("m",W,ie),re("mm",W,z),de(["m","mm"],be),B=Te("Minutes",!1),L("s",["ss",2],0,"second"),re("s",W,ie),re("ss",W,z),de(["s","ss"],ye),Z=Te("Seconds",!1),L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return 10*this.millisecond()}),L(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),L(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),L(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),L(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),L(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),re("S",X,j),re("SS",X,z),re("SSS",X,U),Qt="SSSS";Qt.length<=9;Qt+="S")re(Qt,K);function cn(e,t){t[we]=ce(1e3*("0."+e))}for(Qt="S";Qt.length<=9;Qt+="S")de(Qt,cn);function un(e){return e}function hn(e,t,n,o){var i=ut();return o=d().set(o,t),i[n](o,e)}function dn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return hn(e,t,n,"month");for(var o=[],i=0;i<12;i++)o[i]=hn(e,i,n,"month");return o}function pn(e,t,n,o){"boolean"==typeof e?l(t)&&(n=t,t=void 0):(t=e,e=!1,l(n=t)&&(n=t,t=void 0)),t=t||"";var i,r=ut(),s=e?r._week.dow:0,a=[];if(null!=n)return hn(t,(n+s)%7,o,"day");for(i=0;i<7;i++)a[i]=hn(t,(i+s)%7,o,"day");return a}Y=Te("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName"),(oe=b.prototype).add=$e,oe.calendar=function(e,t){1===arguments.length&&(arguments[0]?function(e){return y(e)||c(e)||Wt(e)||l(e)||(e=>{var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!l(t)&&Wt(e)}).length),t&&n})(e)||(e=>{var t,n=i(e)&&!s(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=a.length;for(t=0;t<l;t+=1)o=o||r(e,a[t]);return n&&o})(e)||null==e}(arguments[0])?(e=arguments[0],t=void 0):(e=>{for(var t=i(e)&&!s(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a=0;a<o.length;a+=1)n=n||r(e,o[a]);return t&&n})(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var a=It(e=e||Tt(),this).startOf("day");return a=n.calendarFormat(this,a)||"sameElse",t=t&&(E(t[a])?t[a].call(this,e):t[a]),this.format(t||this.localeData().calendar(a,this,Tt(e)))},oe.clone=function(){return new b(this)},oe.diff=function(e,t,n){var o,i,r;if(!this.isValid())return NaN;if(!(o=It(e,this)).isValid())return NaN;switch(i=6e4*(o.utcOffset()-this.utcOffset()),t=F(t)){case"year":r=Gt(this,o)/12;break;case"month":r=Gt(this,o);break;case"quarter":r=Gt(this,o)/3;break;case"second":r=(this-o)/1e3;break;case"minute":r=(this-o)/6e4;break;case"hour":r=(this-o)/36e5;break;case"day":r=(this-o-i)/864e5;break;case"week":r=(this-o-i)/6048e5;break;default:r=this-o}return n?r:le(r)},oe.endOf=function(e){var t,o;if(void 0!==(e=F(e))&&"millisecond"!==e&&this.isValid()){switch(o=this._isUTC?on:nn,e){case"year":t=o(this.year()+1,0,1)-1;break;case"quarter":t=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=o(this.year(),this.month()+1,1)-1;break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Jt-tn(t+(this._isUTC?0:this.utcOffset()*Kt),Jt)-1;break;case"minute":t=this._d.valueOf(),t+=Kt-tn(t,Kt)-1;break;case"second":t=this._d.valueOf(),t+=Zt-tn(t,Zt)-1}this._d.setTime(t),n.updateOffset(this,!0)}return this},oe.format=function(e){return e=D(this,e=e||(this.isUtc()?n.defaultFormatUtc:n.defaultFormat)),this.localeData().postformat(e)},oe.from=function(e,t){return this.isValid()&&(y(e)&&e.isValid()||Tt(e).isValid())?jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oe.fromNow=function(e){return this.from(Tt(),e)},oe.to=function(e,t){return this.isValid()&&(y(e)&&e.isValid()||Tt(e).isValid())?jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oe.toNow=function(e){return this.to(Tt(),e)},oe.get=function(e){return E(this[e=F(e)])?this[e]():this},oe.invalidAt=function(){return p(this).overflow},oe.isAfter=function(e,t){return e=y(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},oe.isBefore=function(e,t){return e=y(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},oe.isBetween=function(e,t,n,o){return e=y(e)?e:Tt(e),t=y(t)?t:Tt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(o=o||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))},oe.isSame=function(e,t){return e=y(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},oe.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},oe.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},oe.isValid=function(){return f(this)},oe.lang=qe,oe.locale=qt,oe.localeData=Xt,oe.max=q,oe.min=G,oe.parsingFlags=function(){return h({},p(this))},oe.set=function(e,t){if("object"==typeof e)for(var n=(e=>{var t,n=[];for(t in e)r(e,t)&&n.push({unit:t,priority:V[t]});return n.sort(function(e,t){return e.priority-t.priority}),n})(e=H(e)),o=n.length,i=0;i<o;i++)this[n[i].unit](e[n[i].unit]);else if(E(this[e=F(e)]))return this[e](t);return this},oe.startOf=function(e){var t,o;if(void 0!==(e=F(e))&&"millisecond"!==e&&this.isValid()){switch(o=this._isUTC?on:nn,e){case"year":t=o(this.year(),0,1);break;case"quarter":t=o(this.year(),this.month()-this.month()%3,1);break;case"month":t=o(this.year(),this.month(),1);break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=o(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:this.utcOffset()*Kt),Jt);break;case"minute":t=this._d.valueOf(),t-=tn(t,Kt);break;case"second":t=this._d.valueOf(),t-=tn(t,Zt)}this._d.setTime(t),n.updateOffset(this,!0)}return this},oe.subtract=We,oe.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},oe.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},oe.toDate=function(){return new Date(this.valueOf())},oe.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?D(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",D(t,"Z")):D(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},oe.inspect=function(){var e,t,n;return this.isValid()?(t="moment",e="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(oe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),oe.toJSON=function(){return this.isValid()?this.toISOString():null},oe.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},oe.unix=function(){return Math.floor(this.valueOf()/1e3)},oe.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},oe.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},oe.eraName=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},oe.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},oe.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},oe.eraYear=function(){for(var e,t,o=this.localeData().eras(),i=0,r=o.length;i<r;++i)if(e=o[i].since<=o[i].until?1:-1,t=this.clone().startOf("day").valueOf(),o[i].since<=t&&t<=o[i].until||o[i].until<=t&&t<=o[i].since)return(this.year()-n(o[i].since).year())*e+o[i].offset;return this.year()},oe.year=Ee,oe.isLeapYear=function(){return fe(this.year())},oe.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},oe.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},oe.quarter=oe.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},oe.month=Re,oe.daysInMonth=function(){return Ne(this.year(),this.month())},oe.week=oe.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},oe.isoWeek=oe.isoWeeks=function(e){var t=Ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},oe.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},oe.weeksInWeekYear=function(){var e=this.localeData()._week;return Be(this.weekYear(),e.dow,e.doy)},oe.isoWeeksInYear=function(){return Be(this.year(),1,4)},oe.isoWeeksInISOWeekYear=function(){return Be(this.isoWeekYear(),1,4)},oe.date=Q,oe.day=oe.days=function(e){var t,n,o;return this.isValid()?(t=Pe(this,"Day"),null!=e?(n=e,o=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=o.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},oe.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},oe.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},oe.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},oe.hour=oe.hours=ne,oe.minute=oe.minutes=B,oe.second=oe.seconds=Z,oe.millisecond=oe.milliseconds=Y,oe.utcOffset=function(e,t,o){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Rt(this);if("string"==typeof e){if(null===(e=Dt(te,e)))return this}else Math.abs(e)<16&&!o&&(e*=60);return!this._isUTC&&t&&(i=Rt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Yt(this,jt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this},oe.utc=function(e){return this.utcOffset(0,e)},oe.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Rt(this),"m"),this},oe.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Dt(ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},oe.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},oe.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},oe.isLocal=function(){return!!this.isValid()&&!this._isUTC},oe.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},oe.isUtc=Ft,oe.isUTC=Ft,oe.zoneAbbr=function(){return this._isUTC?"UTC":""},oe.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},oe.dates=x("dates accessor is deprecated. Use date instead.",Q),oe.months=x("months accessor is deprecated. Use month instead",Re),oe.years=x("years accessor is deprecated. Use year instead",Ee),oe.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),oe.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(_(e={},this),(e=Ot(e))._a?(t=(e._isUTC?d:Tt)(e._a),this._isDSTShifted=this.isValid()&&0<((e,t)=>{for(var n=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,r=0;r<n;r++)ce(e[r])!==ce(t[r])&&i++;return i+o})(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted}),(ie=P.prototype).calendar=function(e,t,n){return E(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},ie.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},ie.invalidDate=function(){return this._invalidDate},ie.ordinal=function(e){return this._ordinal.replace("%d",e)},ie.preparse=un,ie.postformat=un,ie.relativeTime=function(e,t,n,o){var i=this._relativeTime[n];return E(i)?i(e,t,n,o):i.replace(/%d/i,e)},ie.pastFuture=function(e,t){return E(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},ie.set=function(e){var t,n;for(n in e)r(e,n)&&(E(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ie.eras=function(e,t){for(var o,i=this._eras||ut("en")._eras,r=0,s=i.length;r<s;++r)switch("string"==typeof i[r].since&&(o=n(i[r].since).startOf("day"),i[r].since=o.valueOf()),typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":o=n(i[r].until).startOf("day").valueOf(),i[r].until=o.valueOf()}return i},ie.erasParse=function(e,t,n){var o,i,r,s,a,l=this.eras();for(e=e.toUpperCase(),o=0,i=l.length;o<i;++o)if(r=l[o].name.toUpperCase(),s=l[o].abbr.toUpperCase(),a=l[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[o];break;case"NNNN":if(r===e)return l[o];break;case"NNNNN":if(a===e)return l[o]}else if(0<=[r,s,a].indexOf(e))return l[o]},ie.erasConvertYear=function(e,t){var o=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*o},ie.erasAbbrRegex=function(e){return r(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},ie.erasNameRegex=function(e){return r(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},ie.erasNarrowRegex=function(e){return r(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},ie.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Me).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},ie.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Me.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ie.monthsParse=function(e,t,n){var o,i;if(this._monthsParseExact)return function(e,t,n){var o,i,r;if(e=e.toLocaleLowerCase(),!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)r=d([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,e))?i:null:-1!==(i=Oe.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,e))||-1!==(i=Oe.call(this._longMonthsParse,e))?i:null:-1!==(i=Oe.call(this._longMonthsParse,e))||-1!==(i=Oe.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(i=d([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},ie.monthsRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ie.monthsShortRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=Le),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ie.week=function(e){return Ue(e,this._week.dow,this._week.doy).week},ie.firstDayOfYear=function(){return this._week.doy},ie.firstDayOfWeek=function(){return this._week.dow},ie.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ye(t,this._week.dow):e?t[e.day()]:t},ie.weekdaysMin=function(e){return!0===e?Ye(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},ie.weekdaysShort=function(e){return!0===e?Ye(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},ie.weekdaysParse=function(e,t,n){var o,i;if(this._weekdaysParseExact)return function(e,t,n){var o,i,r;if(e=e.toLocaleLowerCase(),!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)r=d([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,e))||-1!==(i=Oe.call(this._shortWeekdaysParse,e))||-1!==(i=Oe.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,e))||-1!==(i=Oe.call(this._weekdaysParse,e))||-1!==(i=Oe.call(this._minWeekdaysParse,e))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,e))||-1!==(i=Oe.call(this._weekdaysParse,e))||-1!==(i=Oe.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(i=d([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},ie.weekdaysRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ie.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ie.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ie.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ie.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},lt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),n.lang=x("moment.lang is deprecated. Use moment.locale instead.",lt),n.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ut);var fn=Math.abs;function gn(e,t,n,o){return t=jt(t,n),e._milliseconds+=o*t._milliseconds,e._days+=o*t._days,e._months+=o*t._months,e._bubble()}function mn(e){return e<0?Math.floor(e):Math.ceil(e)}function vn(e){return 4800*e/146097}function _n(e){return 146097*e/4800}function bn(e){return function(){return this.as(e)}}function yn(e){return function(){return this.isValid()?this._data[e]:NaN}}j=bn("ms"),z=bn("s"),X=bn("m"),U=bn("h"),$e=bn("d"),q=bn("w"),G=bn("M"),We=bn("Q"),ne=bn("y"),B=j,Z=yn("milliseconds"),Y=yn("seconds"),Q=yn("minutes"),Ee=yn("hours"),ie=yn("days");var wn=yn("months"),xn=yn("years"),kn=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},On=Math.abs;function Tn(e){return(0<e)-(e<0)||+e}function Pn(){var e,t,n,o,i,r,s,a,l,c,u;return this.isValid()?(e=On(this._milliseconds)/1e3,t=On(this._days),n=On(this._months),(a=this.asSeconds())?(o=le(e/60),i=le(o/60),e%=60,o%=60,r=le(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=Tn(this._months)!==Tn(a)?"-":"",c=Tn(this._days)!==Tn(a)?"-":"",u=Tn(this._milliseconds)!==Tn(a)?"-":"",(a<0?"-":"")+"P"+(r?l+r+"Y":"")+(n?l+n+"M":"")+(t?c+t+"D":"")+(i||o||e?"T":"")+(i?u+i+"H":"")+(o?u+o+"M":"")+(e?u+s+"S":"")):"P0D"):this.localeData().invalidDate()}var Cn=Nt.prototype;return Cn.isValid=function(){return this._isValid},Cn.abs=function(){var e=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),e.milliseconds=fn(e.milliseconds),e.seconds=fn(e.seconds),e.minutes=fn(e.minutes),e.hours=fn(e.hours),e.months=fn(e.months),e.years=fn(e.years),this},Cn.add=function(e,t){return gn(this,e,t,1)},Cn.subtract=function(e,t){return gn(this,e,t,-1)},Cn.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+o/864e5,n=this._months+vn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(_n(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Cn.asMilliseconds=j,Cn.asSeconds=z,Cn.asMinutes=X,Cn.asHours=U,Cn.asDays=$e,Cn.asWeeks=q,Cn.asMonths=G,Cn.asQuarters=We,Cn.asYears=ne,Cn.valueOf=B,Cn._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*mn(_n(n)+t),n=t=0),o.milliseconds=e%1e3,e=le(e/1e3),o.seconds=e%60,e=le(e/60),o.minutes=e%60,e=le(e/60),o.hours=e%24,t+=le(e/24),n+=e=le(vn(t)),t-=mn(_n(e)),e=le(n/12),n%=12,o.days=t,o.months=n,o.years=e,this},Cn.clone=function(){return jt(this)},Cn.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},Cn.milliseconds=Z,Cn.seconds=Y,Cn.minutes=Q,Cn.hours=Ee,Cn.days=ie,Cn.weeks=function(){return le(this.days()/7)},Cn.months=wn,Cn.years=xn,Cn.humanize=function(e,t){var n,o;return this.isValid()?(n=!1,o=Sn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(o=Object.assign({},Sn,t),null!=t.s)&&null==t.ss&&(o.ss=t.s-1),t=function(e,t,n,o){var i=jt(e).abs(),r=kn(i.as("s")),s=kn(i.as("m")),a=kn(i.as("h")),l=kn(i.as("d")),c=kn(i.as("M")),u=kn(i.as("w"));return i=kn(i.as("y")),r=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||(s<=1?["m"]:s<n.m&&["mm",s])||(a<=1?["h"]:a<n.h&&["hh",a])||(l<=1?["d"]:l<n.d&&["dd",l]),(r=(r=null!=n.w?r||(u<=1?["w"]:u<n.w&&["ww",u]):r)||(c<=1?["M"]:c<n.M&&["MM",c])||(i<=1?["y"]:["yy",i]))[2]=t,r[3]=0<+e,r[4]=o,function(e,t,n,o,i){return i.relativeTime(t||1,!!n,e,o)}.apply(null,r)}(this,!n,o,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},Cn.toISOString=Pn,Cn.toString=Pn,Cn.toJSON=Pn,Cn.locale=qt,Cn.localeData=Xt,Cn.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pn),Cn.lang=qe,L("X",0,0,"unix"),L("x",0,0,"valueOf"),re("x",J),re("X",/[+-]?\d+(\.\d{1,3})?/),de("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),de("x",function(e,t,n){n._d=new Date(ce(e))}),n.version="2.30.1",e=Tt,n.fn=oe,n.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},n.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=d,n.unix=function(e){return Tt(1e3*e)},n.months=function(e,t){return dn(e,t,"months")},n.isDate=c,n.locale=lt,n.invalid=g,n.duration=jt,n.isMoment=y,n.weekdays=function(e,t,n){return pn(e,t,n,"weekdays")},n.parseZone=function(){return Tt.apply(null,arguments).parseZone()},n.localeData=ut,n.isDuration=$t,n.monthsShort=function(e,t){return dn(e,t,"monthsShort")},n.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin")},n.defineLocale=ct,n.updateLocale=function(e,t){var n,o;return null!=t?(o=ot,null!=it[e]&&null!=it[e].parentLocale?it[e].set(T(it[e]._config,t)):(t=T(o=null!=(n=at(e))?n._config:o,t),null==n&&(t.abbr=e),(o=new P(t)).parentLocale=it[e],it[e]=o),lt(e)):null!=it[e]&&(null!=it[e].parentLocale?(it[e]=it[e].parentLocale,e===lt()&&lt(e)):null!=it[e]&&delete it[e]),it[e]},n.locales=function(){return k(it)},n.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort")},n.normalizeUnits=F,n.relativeTimeRounding=function(e){return void 0===e?kn:"function"==typeof e&&(kn=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==Sn[e]&&(void 0===t?Sn[e]:(Sn[e]=t,"s"===e&&(Sn.ss=t-1),!0))},n.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},n.prototype=oe,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})()),On.exports),Pn=n(Tn);let Cn=e=>e?e+"?nocache="+Math.random():"",Nn=e=>{var{itemInfo:e,hoverType:t}=e;if(!e)return!1;if(t)return t;let n;switch(t=e.type){case st:n=nt;break;case rt:n=tt;break;case it:case at:n=et;break;default:n=Je}return n},$n=(e,t)=>{if(0<t)return"0px";let n;switch(e){case Ve:n=(qe/2+Xe)/2;break;case He:n=-12;break;case je:n=-20;break;case ze:n=(qe+Xe)/2;break;default:n=0}return n+"px"},An=(e,t="vi",n)=>{var o=e.type;let i="",r="",s="",a="",l=!1;if(o===ue.ITEM_INFO||o===ue.POLYGON){var c=Nn(e),u=e.itemInfo,{icon:u,name:h,distance:d,distanceUnit:p,price:f,currencyUnit:g,unit:m}=u;switch(s=sn(u,150),i=h,c){case nt:r=d+" "+p;break;case ot:r="";break;case tt:a="unset";break;case et:f&&(r=((e,t,n)=>e+(t?" "+t:"")+(n?"/"+C[n]:""))((e=>{if(0===Number(e))return"0";e=e.toString();for(var t=/(-?\d+)(\d{3})/;t.test(e);)e=e.replace(t,"$1.$2");return""+e})(f),g,m));break;default:return console.warn(`Type[${c}] is not handled hover`),""}}else o===ue.PROMOTION?(u=e.promotion,({name:h,endDate:u,image:v}=u),u=Pn(u).format("DD/MM/YYYY"),i=h,r=`${t===T.VI?"đến":"to"} ${u} `,s=sn(v,150)):o===ue.GALLERY&&((null==(t=(h=e.gallery)[0])?void 0:t.type)===pt&&(l=!0),s=sn(null==(u=h[0])?void 0:u.file,150));var v=l?` \n [div class="popup__video" ]\n [video class="video__content" ]\n [source src=${s} type="video/mp4" /]\n [/video]\n [span class="icon-play_arrow_24x24 video__icon"] [/span]\n [/div]\n `:s&&`\n [img\n class="popup__image"\n style="height: ${a}"\n src = "${s}"\n /]`;return`\n [div class="cvtv-poi-laser-tooltip-content__popup cvtv-poi-laser-tooltip-content__popup--${(null==(o=null==e?void 0:e.popupSize)?void 0:o.toLowerCase())||"1"}" style="order: ${n}"]\n ${v||""} \n [div class="popup__info"]\n [div class="info__title"][span]${i||""}[/span][/div]\n [div class= "info__subtitle"][span]${r}[/span][/div]\n [/div]\n [/div]\n `},Mn=e=>{var{laserRange:t,position:n}=e;return`\n [div class="cvtv-poi-laser-tooltip-content__pin cvtv-poi-laser-tooltip-content__pin--${null==n?void 0:n.toLowerCase()}" style="--size-pin-content: ${Ge[t]}px"]\n [div class= "pin__content "][/div]\n [div class= "pin__icon " ]\n ${(e=>{var t,n,o=dn(e.props);return e=ln(e.props),o&&o.imageStrip?(({file:o,frameWidth:n,frameHeight:t}=o),n=n?(o.width||0)*(32/n):32,`[div class="icon__image-strip" style=" --height-image-trip: ${t?(o.height||0)*(32/t):32}px; --width-image-trip: ${n}px" ]\n [img class="image-strip__content" style="background-image: url(${e})" /]\n [/div]`):e?`\n [img\n class="icon__image"\n src="${e}"\n /]`:""})(e)}\n [/div]\n [/div]\n `},Ln=(e,t,n="vi")=>{if(!(e=>{if(e.type===ue.ITEM_INFO){if(!e.itemInfo)return!1;if(Nn(e)===Je)return!1}return!0})(t))return"";let o,i,r=0,s="",a="",l="row";var{position:c,overviewPosition:u,laserRange:h}=t;return u===Re.BOTTOM_LEFT_CORNER&&c===Fe?'\n [div class="cvtv-poi-laser-tooltip"]\n [div class="cvtv-poi-laser-tooltip__focusing-point"][/div]\n [/div]\n ':(c===Ve||c===je?(l="column",a="50%",o="-50%",i="0px",s="unset",r=0,c===je?(i=`calc(100% + ${$n(c,h)})`,r=1):i=""+$n(c,h)):(o=c===ze?`calc(-100% + ${$n(c,h)})`:(r=1,""+$n(c,h)),i="calc(50% - 4px)"),`\n [div class="cvtv-poi-laser-tooltip cvtv-poi-laser-tooltip cvtv-poi-laser-tooltip--${((e,t)=>{var{width:t=0,height:n=0,laserRange:o=Ie,scale:i=1,distorted:r=!1}=t;let s=(t+n)*Math.pow(i,2)/2/2;return r&&!an(e)&&(s*=Math.sqrt(2)),(t=Math.round(s*o))<500?t:500})(e,t)||"1"}"]\n [div class="cvtv-poi-laser-tooltip__point${0===h?" invisible":""}"][/div]\n [div class="cvtv-poi-laser-tooltip__body" style="left: ${a}; top: ${s}; transform: translate(${o}, ${i})"]\n [div class="cvtv-poi-laser-tooltip-content" style="flex-direction: ${l}"]\n ${An(t,n,r)}\n ${Mn(t)}\n [/div]\n [/div]\n [/div]\n `)},Dn=(e,t,n,o=!0)=>{e.call(`addhotspot(${t}); `),e.call(`\n set(hotspot[${t}].type, text);\n set(hotspot[${t}].renderer, css3d);\n set(hotspot[${t}].padding, 0);\n set(hotspot[${t}].bgalpha, 0);\n set(hotspot[${t}].autowidth, true);\n set(hotspot[${t}].autoheight, true);\n set(hotspot[${t}].visible, false);\n set(hotspot[${t}].rx, 0);\n set(hotspot[${t}].ry, 0);\n set(hotspot[${t}].rz, 0);\n set(hotspot[${t}].rotate, 0);\n set(hotspot[${t}].distorted, false);\n set(hotspot[${t}].handcursor, ${o});\n set(hotspot[${t}].css, font - family: Barlow; font - size: 14px; color: #ffffff;);\n `),e.set(`hotspot[${t}].html`,n)},In=(e,t,n,o=!0)=>{var i=un(t.code);Dn(e,i,n,o),e.set(`hotspot[${i}].atv`,t.atv),e.set(`hotspot[${i}].ath`,t.ath),e.set(`hotspot[${i}].zorder`,P.FOCUSING_AREA)},Rn=(e,t,n,o=!0)=>{if(n){var i=un(t.code);if(Dn(e,i,n,o),e.set(`hotspot[${i}].atv`,t.atv),e.set(`hotspot[${i}].ath`,t.ath),e.set(`hotspot[${i}].zorder`,(e=>e.type===ue.MOVING||e.type===ue.INFO?P.MIN:P.STANDARD)(t)),[ue.INFO,ue.MOVING,ue.POPUP].includes(t.type)&&e.set(`hotspot[${i}].scale`,t.scale<=1?t.scale:1),n){let n;n=t.type===ue.POLYGON?`\n if(hotspot[${t.code}]!=null,\n copy(ph_${i}, hotspot[${i}].pixelheight);\n if(ph_${i} != null,\n if(ph_${i} != 0,\n set(hotspot[${i}].oy, calc(((ph_${i}/2) + 10) * -1));\n set(needsUpdate_${i}, false);\n ,\n );\n ,\n );\n ,\n );\n `:`\n if(hotspot[${t.code}]!=null,\n copy(ph_${i}, hotspot[${i}].pixelheight);\n copy(ph_${t.code}, hotspot[${t.code}].pixelheight);\n copy(scl_${t.code}, hotspot[${t.code}].scale);\n\n if(ph_${i} != null,\n if(ph_${i} != 0,\n if(ph_${t.code} != null,\n if(ph_${t.code} != 0,\n set(h_${t.code}, calc(hotspot[${t.code}].height * scl_${t.code} - 0));\n set(hotspot[${i}].oy, calc(((ph_${i}/2) + (h_${t.code}/2) + 10 + 8) * -1));\n set(needsUpdate_${i}, false);\n ,\n );\n ,\n );\n ,\n );\n ,\n );\n );\n `,e.call(`\n set(hotspot[${i}].onloaded,\n copy(needsUpdate_${i}, true);\n\n asyncloop(needsUpdate_${i},\n ${n}\n );\n );\n `)}}},Fn=(e,t)=>ce(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=ln(t);return yield cn(i,n,o),e.call(`addhotspot(${t.code});`),e.set(`hotspot[${t.code}].html`,jn(t)),e.call(`\n set(hotspot[${t.code}].type, text);\n set(hotspot[${t.code}].renderer, css3d);\n set(hotspot[${t.code}].padding, 0);\n set(hotspot[${t.code}].bgalpha, 0);\n set(hotspot[${t.code}].autowidth, true);\n set(hotspot[${t.code}].autoheight, true);\n set(hotspot[${t.code}].atv, ${t.atv});\n set(hotspot[${t.code}].ath, ${t.ath}); \n set(hotspot[${t.code}].alpha,${t.alpha});\n set(hotspot[${t.code}].scale,${t.scale});\n set(hotspot[${t.code}].rotate,${t.rotate});\n set(hotspot[${t.code}].width,${n});\n set(hotspot[${t.code}].height,${o});\n set(hotspot[${t.code}].rx,${t.rx});\n set(hotspot[${t.code}].ry,${t.ry});\n set(hotspot[${t.code}].rz,${t.rz});\n set(hotspot[${t.code}].distorted,${t.distorted});\n set(hotspot[${t.code}].zorder, ${P.STANDARD});\n `),new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{e.set(`hotspot[${t.code}].visible`,t.visible),n()})})}),Hn=e=>{var t=e.code,n=dn(e);return n?`\n def(imageWidth_${t}, integer, get(hotspot[${t}].imagewidth));\n def(imageHeight_${t}, integer, get(hotspot[${t}].imageheight));\n def(frameWidth_${t}, integer, ${n.frameWidth});\n def(frameHeight_${t}, integer, ${n.frameHeight});\n def(frameRate_${t}, integer, ${e.frameRate});\n def(frame_${t}, integer, 0);\n \n calc(xFrames_${t}, (imageWidth_${t} / frameWidth_${t}) BOR 0);\n calc(frames_${t}, xFrames_${t} * ((imageHeight_${t} / frameHeight_${t}) BOR 0));\n calc(hotspot[${t}].crop, '0|0|' + frameWidth_${t} + '|' + frameHeight_${t});\n \n setinterval(crop_anim_${t}, calc(1.0 / frameRate_${t}),\n if(hotspot[${t}].loaded,\n inc(frame_${t});\n if(frame_${t} GE frames_${t}, set(frame_${t}, 0););\n mod(xPos_${t}, frame_${t}, xFrames_${t});\n div(yPos_${t}, frame_${t}, xFrames_${t});\n Math.floor(yPos_${t});\n mul(xPos_${t}, frameWidth_${t});\n mul(yPos_${t}, frameHeight_${t});\n calc(\n hotspot[${t}].crop,\n xPos_${t} + '|' + yPos_${t} + '|' + frameWidth_${t} + '|' + frameHeight_${t}\n );\n ,\n clearinterval(crop_anim_${t});\n );\n );\n `:""},Vn=(e,t)=>ce(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=Cn(ln(t));return yield cn(i,n,o),e.call(`\n addhotspot(${t.code});\n set(hotspot[${t.code}].url, ${i});\n set(hotspot[${t.code}].renderer, css3d);\n set(hotspot[${t.code}].bgalpha, 0);\n set(hotspot[${t.code}].ath, ${t.ath});\n set(hotspot[${t.code}].atv, ${t.atv});\n set(hotspot[${t.code}].alpha, ${t.alpha});\n set(hotspot[${t.code}].scale, ${t.scale});\n set(hotspot[${t.code}].rotate, ${t.rotate});\n set(hotspot[${t.code}].width, ${n});\n set(hotspot[${t.code}].height, ${o});\n set(hotspot[${t.code}].rx, ${t.rx});\n set(hotspot[${t.code}].ry, ${t.ry});\n set(hotspot[${t.code}].rz, ${t.rz});\n set(hotspot[${t.code}].distorted, ${t.distorted});\n set(hotspot[${t.code}].zorder, ${P.STANDARD});\n `),new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{e.call(Hn(t)),e.set(`hotspot[${t.code}].visible`,t.visible),n()})})}),jn=e=>{var t=ln(e);return`\n [div class="cvtv-product-info-poi__marker"]\n [img width="${e.width}" height="${e.height}" src="${t}"][/img]\n [/div]`},zn=e=>`[div class="cvtv-product-info-poi__marker cvtv-product-info-poi__marker--label cvtv-product-info-poi__marker--visible"]\n [div class="info-poi"]\n [div class="info-poi__icon" style="width: ${(e.width||0)*(e.scale||1)}px; height: ${(e.height||0)*(e.scale||1)}px"]\n [/div]\n [div class="info-poi__label"]\n [div class="text"]\n ${e&&e.itemInfo&&e.itemInfo.name}\n [/div]\n [i class="chevron icon-chevron_right_24x24"][/i]\n [/div]\n [/div]\n [/div]`,Un=(e,t)=>{var n=dn(t);return(n&&n.imageStrip?Vn:Fn)(e,t)},Bn=(e,t)=>ce(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=ln(t);yield cn(i,n,o),e.call(`addhotspot(${t.code});`),e.call(`\n set(hotspot[${t.code}].url, ${Cn(i)});\n set(hotspot[${t.code}].tx, ${t.tx});\n set(hotspot[${t.code}].ty, ${t.ty});\n set(hotspot[${t.code}].tz, ${t.tz});\n set(hotspot[${t.code}].alpha, ${t.alpha});\n set(hotspot[${t.code}].scale, ${t.scale});\n set(hotspot[${t.code}].width, ${n});\n set(hotspot[${t.code}].height, ${o});\n set(hotspot[${t.code}].rx, -90);\n set(hotspot[${t.code}].ry, ${t.rotate});\n set(hotspot[${t.code}].distorted, true);\n set(hotspot[${t.code}].vcenter, true);\n set(hotspot[${t.code}].depth, 0);\n set(hotspot[${t.code}].depthbuffer, true);\n set(hotspot[${t.code}].torigin, world);\n set(hotspot[${t.code}].rotationorder, xyz);\n set(hotspot[${t.code}].zorder, ${P.STANDARD});\n set(hotspot[${t.code}].visible, ${t.visible});\n `);let r=dn(t);return new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{r&&r.imageStrip&&e.call(Hn(t)),n()})})});function Yn(e,t){return function(){return e.apply(t,arguments)}}let Wn=Object.prototype.toString,Gn=Object.getPrototypeOf,{iterator:qn,toStringTag:Xn}=Symbol,Qn=(to=Object.create(null),e=>(e=Wn.call(e),to[e]||(to[e]=e.slice(8,-1).toLowerCase()))),Zn=e=>(e=e.toLowerCase(),t=>Qn(t)===e),Kn=e=>t=>typeof t===e,Jn=Array.isArray,eo=Kn("undefined");var to;function no(e){return null!==e&&!eo(e)&&null!==e.constructor&&!eo(e.constructor)&&ro(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let oo=Zn("ArrayBuffer");let io=Kn("string"),ro=Kn("function"),so=Kn("number"),ao=e=>null!==e&&"object"==typeof e,lo=e=>{var t;return"object"===Qn(e)&&!(null!==(t=Gn(e))&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Xn in e||qn in e)},co=Zn("Date"),uo=Zn("File"),ho=Zn("Blob"),po=Zn("FileList"),fo=Zn("URLSearchParams"),[go,mo,vo,_o]=["ReadableStream","Request","Response","Headers"].map(Zn);function bo(e,t,{allOwnKeys:n=!1}={}){if(null!=e){let a;var o;if("object"!=typeof e&&(e=[e]),Jn(e))for(a=0,o=e.length;a<o;a++)t.call(null,e[a],a,e);else if(!no(e)){var i,r=n?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;for(a=0;a<s;a++)i=r[a],t.call(null,e[i],i,e)}}}function yo(e,t){if(!no(e)){t=t.toLowerCase();var n,o=Object.keys(e);let i=o.length;for(;0<i--;)if(t===(n=o[i]).toLowerCase())return n}return null}let wo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,xo=e=>!eo(e)&&e!==wo;let ko=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Gn(Uint8Array)),So=Zn("HTMLFormElement"),Oo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Eo=Zn("RegExp"),To=(e,t)=>{var n=Object.getOwnPropertyDescriptors(e);let o={};bo(n,(n,i)=>{var r;!1!==(r=t(n,i,e))&&(o[i]=r||n)}),Object.defineProperties(e,o)};let Po=Zn("AsyncFunction"),Co=((e,t)=>{return e?setImmediate:t?(n="axios@"+Math.random(),o=[],wo.addEventListener("message",({source:e,data:t})=>{e===wo&&t===n&&o.length&&o.shift()()},!1),e=>{o.push(e),wo.postMessage(n,"*")}):e=>setTimeout(e);var n,o})("function"==typeof setImmediate,ro(wo.postMessage)),No="undefined"!=typeof queueMicrotask?queueMicrotask.bind(wo):"undefined"!=typeof process&&process.nextTick||Co;var $o={isArray:Jn,isArrayBuffer:oo,isBuffer:no,isFormData:e=>{var t;return e&&("function"==typeof FormData&&e instanceof FormData||ro(e.append)&&("formdata"===(t=Qn(e))||"object"===t&&ro(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&oo(e.buffer)},isString:io,isNumber:so,isBoolean:e=>!0===e||!1===e,isObject:ao,isPlainObject:lo,isEmptyObject:e=>{if(!ao(e)||no(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:go,isRequest:mo,isResponse:vo,isHeaders:_o,isUndefined:eo,isDate:co,isFile:uo,isBlob:ho,isRegExp:Eo,isFunction:ro,isStream:e=>ao(e)&&ro(e.pipe),isURLSearchParams:fo,isTypedArray:ko,isFileList:po,forEach:bo,merge:function e(){let t=(xo(this)&&this||{}).caseless,n={};var o=(o,i)=>{i=t&&yo(n,i)||i,lo(n[i])&&lo(o)?n[i]=e(n[i],o):lo(o)?n[i]=e({},o):Jn(o)?n[i]=o.slice():n[i]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&bo(arguments[e],o);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(bo(t,(t,o)=>{n&&ro(t)?e[o]=Yn(t,n):e[o]=t},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>65279===e.charCodeAt(0)?e.slice(1):e,inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{var i,r;let s;var a={};if(t=t||{},null!=e)do{for(s=(i=Object.getOwnPropertyNames(e)).length;0<s--;)r=i[s],o&&!o(r,e,t)||a[r]||(t[r]=e[r],a[r]=!0)}while((e=!1!==n&&Gn(e))&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Qn,kindOfTest:Zn,endsWith:(e,t,n)=>(e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length,-1!==(e=e.indexOf(t,n))&&e===n),toArray:e=>{if(!e)return null;if(Jn(e))return e;let t=e.length;if(!so(t))return null;for(var n=new Array(t);0<t--;)n[t]=e[t];return n},forEachEntry:(e,t)=>{for(var n=(e&&e[qn]).call(e);(o=n.next())&&!o.done;){var o=o.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{for(var n,o=[];null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:So,hasOwnProperty:Oo,hasOwnProp:Oo,reduceDescriptors:To,freezeMethods:e=>{To(e,(t,n)=>{if(ro(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var o=e[n];ro(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{let n={};var o=e=>{e.forEach(e=>{n[e]=!0})};return Jn(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:yo,global:wo,isContextDefined:xo,isSpecCompliantForm:function(e){return!!(e&&ro(e.append)&&"FormData"===e[Xn]&&e[qn])},toJSONObject:e=>{let t=new Array(10),n=(e,o)=>{if(ao(e)){if(0<=t.indexOf(e))return;if(no(e))return e;if(!("toJSON"in e)){t[o]=e;let i=Jn(e)?[]:{};return bo(e,(e,t)=>{e=n(e,o+1),eo(e)||(i[t]=e)}),t[o]=void 0,i}}return e};return n(e,0)},isAsyncFn:Po,isThenable:e=>e&&(ao(e)||ro(e))&&ro(e.then)&&ro(e.catch),setImmediate:Co,asap:No,isIterable:e=>null!=e&&ro(e[qn])};function Ao(e,t,n,o,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status||null)}$o.inherits(Ao,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$o.toJSONObject(this.config),code:this.code,status:this.status}}});let Mo=Ao.prototype,Lo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Lo[e]={value:e}}),Object.defineProperties(Ao,Lo),Object.defineProperty(Mo,"isAxiosError",{value:!0}),Ao.from=(e,t,n,o,i,r)=>{var s=Object.create(Mo);return $o.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Ao.call(s,e.message,t,n,o,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};function Do(e){return $o.isPlainObject(e)||$o.isArray(e)}function Io(e){return $o.endsWith(e,"[]")?e.slice(0,-2):e}function Ro(e,t,n){return e?e.concat(t).map(function(e,t){return e=Io(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let Fo=$o.toFlatObject($o,{},null,function(e){return/^is[A-Z]/.test(e)});function Ho(e,t,n){if(!$o.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;let o=(n=$o.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!$o.isUndefined(t[e])})).metaTokens,i=n.visitor||c,r=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&$o.isSpecCompliantForm(t);if(!$o.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if($o.isDate(e))return e.toISOString();if($o.isBoolean(e))return e.toString();if(!a&&$o.isBlob(e))throw new Ao("Blob is not supported. Use a Buffer instead.");return $o.isArrayBuffer(e)||$o.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let a=e;if(e&&!i&&"object"==typeof e)if($o.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if($o.isArray(e)&&function(e){return $o.isArray(e)&&!e.some(Do)}(e)||($o.isFileList(e)||$o.endsWith(n,"[]"))&&(a=$o.toArray(e)))return n=Io(n),a.forEach(function(e,o){$o.isUndefined(e)||null===e||t.append(!0===s?Ro([n],o,r):null===s?n:n+"[]",l(e))}),!1;return!!Do(e)||(t.append(Ro(i,n,r),l(e)),!1)}let u=[],h=Object.assign(Fo,{defaultVisitor:c,convertValue:l,isVisitable:Do});if($o.isObject(e))return function e(n,o){if(!$o.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+o.join("."));u.push(n),$o.forEach(n,function(n,r){!0===(!($o.isUndefined(n)||null===n)&&i.call(t,n,$o.isString(r)?r.trim():r,o,h))&&e(n,o?o.concat(r):[r])}),u.pop()}}(e),t;throw new TypeError("data must be an object")}function Vo(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function jo(e,t){this._pairs=[],e&&Ho(e,this,t)}let zo=jo.prototype;function Uo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bo(e,t,n){if(t){var o=n&&n.encode||Uo,i=(n=$o.isFunction(n)?{serialize:n}:n)&&n.serialize;let r;(r=i?i(t,n):$o.isURLSearchParams(t)?t.toString():new jo(t,n).toString(o))&&(-1!==(i=e.indexOf("#"))&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r)}return e}zo.append=function(e,t){this._pairs.push([e,t])};class Yo{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$o.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Wo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!(zo.toString=function(e){let t=e?function(t){return e.call(this,t,Vo)}:Vo;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")})},Go={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:jo,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let qo="undefined"!=typeof window&&"undefined"!=typeof document,Xo="object"==typeof navigator&&navigator||void 0,Qo=qo&&(!Xo||["ReactNative","NativeScript","NS"].indexOf(Xo.product)<0),Zo="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ko=qo&&window.location.href||"http://localhost";var Jo={...Object.freeze({__proto__:null,hasBrowserEnv:qo,hasStandardBrowserEnv:Qo,hasStandardBrowserWebWorkerEnv:Zo,navigator:Xo,origin:Ko}),...Go};function ei(e){if($o.isFormData(e)&&$o.isFunction(e.entries)){let t={};return $o.forEachEntry(e,(e,n)=>{!function e(t,n,o,i){var r,s,a;return"__proto__"===(a=t[i++])||(r=Number.isFinite(+a),s=i>=t.length,a=!a&&$o.isArray(o)?o.length:a,s?$o.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n:(o[a]&&$o.isObject(o[a])||(o[a]=[]),e(t,n,o[a],i)&&$o.isArray(o[a])&&(o[a]=function(e){var t={},n=Object.keys(e);let o;var i,r=n.length;for(o=0;o<r;o++)t[i=n[o]]=e[i];return t}(o[a]))),!r)}(function(e){return $o.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,t,0)}),t}return null}let ti={transitional:Wo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n=t.getContentType()||"",o=-1<n.indexOf("application/json"),i=$o.isObject(e),r=(i&&$o.isHTMLForm(e)&&(e=new FormData(e)),$o.isFormData(e));if(r)return o?JSON.stringify(ei(e)):e;if($o.isArrayBuffer(e)||$o.isBuffer(e)||$o.isStream(e)||$o.isFile(e)||$o.isBlob(e)||$o.isReadableStream(e))return e;if($o.isArrayBufferView(e))return e.buffer;if($o.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(-1<n.indexOf("application/x-www-form-urlencoded"))return function(e,t){return Ho(e,new Jo.classes.URLSearchParams,{visitor:function(e,t,n,o){return Jo.isNode&&$o.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((r=$o.isFileList(e))||-1<n.indexOf("multipart/form-data"))return Ho(r?{"files[]":e}:e,(n=this.env&&this.env.FormData)&&new n,this.formSerializer)}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if($o.isString(e))try{return(t||JSON.parse)(e),$o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ti.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(!$o.isResponse(e)&&!$o.isReadableStream(e)&&e&&$o.isString(e)&&(n&&!this.responseType||o)){n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Ao.from(e,Ao.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Jo.classes.FormData,Blob:Jo.classes.Blob},validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}},ni=($o.forEach(["delete","get","head","post","put","patch"],e=>{ti.headers[e]={}}),$o.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]));let oi=Symbol("internals");function ii(e){return e&&String(e).trim().toLowerCase()}function ri(e){return!1===e||null==e?e:$o.isArray(e)?e.map(ri):String(e)}function si(e,t,n,o,i){return $o.isFunction(o)?o.call(this,t,n):$o.isString(t=i?n:t)?$o.isString(o)?-1!==t.indexOf(o):$o.isRegExp(o)?o.test(t):void 0:void 0}let ai=class{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function i(e,t,n){var i=ii(t);if(!i)throw new Error("header name must be a non-empty string");(i=$o.findKey(o,i))&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=ri(e))}var r=(e,t)=>$o.forEach(e,(e,n)=>i(e,n,t));if($o.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if($o.isString(e)&&(e=e.trim())&&!(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))(e))r((e=>{let t,n,o,i={};return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),t=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!t||i[t]&&ni[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i})(e),t);else if($o.isObject(e)&&$o.isIterable(e)){var s,a,l={};for(a of e){if(!$o.isArray(a))throw TypeError("Object iterator must return a key-value pair");l[s=a[0]]=(s=l[s])?$o.isArray(s)?[...s,a[1]]:[s,a[1]]:a[1]}r(l,t)}else null!=e&&i(t,e,n);return this}get(e,t){if((e=ii(e))&&(e=$o.findKey(this,e))){var n=this[e];if(!t)return n;if(!0===t)return function(e){for(var t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=o.exec(e);)n[t[1]]=t[2];return n}(n);if($o.isFunction(t))return t.call(this,n,e);if($o.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}has(e,t){return!!(e=ii(e))&&!(!(e=$o.findKey(this,e))||void 0===this[e]||t&&!si(0,this[e],e,t))}delete(e,t){let n=this,o=!1;function i(e){(e=ii(e))&&(e=$o.findKey(n,e))&&(!t||si(0,n[e],e,t))&&(delete n[e],o=!0)}return $o.isArray(e)?e.forEach(i):i(e),o}clear(e){var t=Object.keys(this);let n=t.length,o=!1;for(;n--;){var i=t[n];e&&!si(0,this[i],i,e,!0)||(delete this[i],o=!0)}return o}normalize(e){let t=this,n={};return $o.forEach(this,(o,i)=>{var r=$o.findKey(n,i);r?(t[r]=ri(o),delete t[i]):((r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim())!==i&&delete t[i],t[r]=ri(o),n[r]=!0)}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return $o.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&$o.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[oi]=this[oi]={accessors:{}}).accessors,n=this.prototype;function o(e){var o=ii(e);t[o]||(function(e,t){let n=$o.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[o]=!0)}return $o.isArray(e)?e.forEach(o):o(e),this}};function li(e,t){let n=this||ti;var o=t||n;let i=ai.from(o.headers),r=o.data;return $o.forEach(e,function(e){r=e.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function ci(e){return!(!e||!e.__CANCEL__)}function ui(e,t,n){Ao.call(this,null==e?"canceled":e,Ao.ERR_CANCELED,t,n),this.name="CanceledError"}function hi(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Ao("Request failed with status code "+n.status,[Ao.ERR_BAD_REQUEST,Ao.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ai.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$o.reduceDescriptors(ai.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),$o.freezeMethods(ai),$o.inherits(ui,Ao,{__CANCEL__:!0});let di=(e,t,n=3)=>{let o=0,i=function(e,t){e=e||10;let n,o=new Array(e),i=new Array(e),r=0,s=0;return t=void 0!==t?t:1e3,function(a){var l=Date.now(),c=i[s];n=n||l,o[r]=a,i[r]=l;let u=s,h=0;for(;u!==r;)h+=o[u++],u%=e;return(r=(r+1)%e)===s&&(s=(s+1)%e),l-n<t||!(a=c&&l-c)?void 0:Math.round(1e3*h/a)}}(50,250);return function(e,t){let n,o,i=0,r=1e3/t,s=(t,r=Date.now())=>{i=r,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{var t=Date.now(),a=t-i;a>=r?s(e,t):(n=e,o=o||setTimeout(()=>{o=null,s(n)},r-a))},()=>n&&s(n)]}(n=>{var r=n.loaded,s=n.lengthComputable?n.total:void 0,a=i(l=r-o),l={loaded:o=r,total:s,progress:s?r/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&r<=s?(s-r)/a:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0};e(l)},n)},pi=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},fi=e=>(...t)=>$o.asap(()=>e(...t));var gi=Jo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Jo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Jo.origin),Jo.navigator&&/(msie|trident)/i.test(Jo.navigator.userAgent)):()=>!0,mi=Jo.hasStandardBrowserEnv?{write(e,t,n,o,i,r){e=[e+"="+encodeURIComponent(t)],$o.isNumber(n)&&e.push("expires="+new Date(n).toGMTString()),$o.isString(o)&&e.push("path="+o),$o.isString(i)&&e.push("domain="+i),!0===r&&e.push("secure"),document.cookie=e.join("; ")},read:e=>(e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)")))?decodeURIComponent(e[3]):null,remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function vi(e,t,n){var o=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}let _i=e=>e instanceof ai?{...e}:e;function bi(e,t){t=t||{};let n={};function o(e,t,n,o){return $o.isPlainObject(e)&&$o.isPlainObject(t)?$o.merge.call({caseless:o},e,t):$o.isPlainObject(t)?$o.merge({},t):$o.isArray(t)?t.slice():t}function i(e,t,n,i){return $o.isUndefined(t)?$o.isUndefined(e)?void 0:o(void 0,e,0,i):o(e,t,0,i)}function r(e,t){if(!$o.isUndefined(t))return o(void 0,t)}function s(e,t){return $o.isUndefined(t)?$o.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function a(n,i,r){return r in t?o(n,i):r in e?o(void 0,n):void 0}let l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>i(_i(e),_i(t),0,!0)};return $o.forEach(Object.keys({...e,...t}),function(o){var r=l[o]||i,s=r(e[o],t[o],o);$o.isUndefined(s)&&r!==a||(n[o]=s)}),n}var yi=e=>{var t,n=bi({},e);let{data:o,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:l}=n;return n.headers=a=ai.from(a),n.url=Bo(vi(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),$o.isFormData(o)&&(Jo.hasStandardBrowserEnv||Jo.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):!1!==(e=a.getContentType())&&([e,...t]=e?e.split(";").map(e=>e.trim()).filter(Boolean):[],a.setContentType([e||"multipart/form-data",...t].join("; ")))),Jo.hasStandardBrowserEnv&&((i=i&&$o.isFunction(i)?i(n):i)||!1!==i&&gi(n.url))&&(e=r&&s&&mi.read(s))&&a.set(r,e),n};var wi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o=yi(e);var i=o.data,r=ai.from(o.headers).normalize();let s,a,l,{responseType:c,onUploadProgress:u,onDownloadProgress:h}=o;function d(){a&&a(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let p=new XMLHttpRequest;function f(){var o;p&&(o=ai.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),hi(function(e){t(e),d()},function(e){n(e),d()},{data:c&&"text"!==c&&"json"!==c?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:o,config:e,request:p}),p=null)}p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout,"onloadend"in p?p.onloadend=f:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(f)},p.onabort=function(){p&&(n(new Ao("Request aborted",Ao.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new Ao("Network Error",Ao.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";var i=o.transitional||Wo;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Ao(t,i.clarifyTimeoutError?Ao.ETIMEDOUT:Ao.ECONNABORTED,e,p)),p=null},void 0===i&&r.setContentType(null),"setRequestHeader"in p&&$o.forEach(r.toJSON(),function(e,t){p.setRequestHeader(t,e)}),$o.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),c&&"json"!==c&&(p.responseType=o.responseType),h&&([r,l]=di(h,!0),p.addEventListener("progress",r)),u&&p.upload&&([r,a]=di(u),p.upload.addEventListener("progress",r),p.upload.addEventListener("loadend",a)),(o.cancelToken||o.signal)&&(s=t=>{p&&(n(!t||t.type?new ui(null,e,p):t),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal)&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)),r=function(e){return(e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e))&&e[1]||""}(o.url),r&&-1===Jo.protocols.indexOf(r)?n(new Ao("Unsupported protocol "+r+":",Ao.ERR_BAD_REQUEST,e)):p.send(i||null)})};let xi=(e,t)=>{var n=(e=e?e.filter(Boolean):[]).length;if(t||n){let o,i=new AbortController,r=function(e){o||(o=!0,a(),e=e instanceof Error?e:this.reason,i.abort(e instanceof Ao?e:new ui(e instanceof Error?e.message:e)))},s=t&&setTimeout(()=>{s=null,r(new Ao(`timeout ${t} of ms exceeded`,Ao.ETIMEDOUT))},t),a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};return e.forEach(e=>e.addEventListener("abort",r)),(n=i.signal).unsubscribe=()=>$o.asap(a),n}},ki=function*(e,t){var n,o=e.byteLength;if(o<t)yield e;else{let i=0;for(;i<o;)n=i+t,yield e.slice(i,n),i=n}},Si=async function*(e){if(e[Symbol.asyncIterator])yield*e;else{var t=e.getReader();try{for(;;){var{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}}},Oi=(e,t,n,o)=>{let i,r=async function*(e,t){for await(var n of Si(e))yield*ki(n,t)}(e,t),s=0,a=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{var t,o,{done:i,value:l}=await r.next();i?(a(),e.close()):(t=l.byteLength,n&&(o=s+=t,n(o)),e.enqueue(new Uint8Array(l)))}catch(e){throw a(e),e}},cancel:e=>(a(e),r.return())},{highWaterMark:2})},Ei="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ti=Ei&&"function"==typeof ReadableStream,Pi=Ei&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ci=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ni=Ti&&Ci(()=>{let e=!1;var t=new Request(Jo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$i=Ti&&Ci(()=>$o.isReadableStream(new Response("").body)),Ai={stream:$i&&(e=>e.body)},Mi=(Ei&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{Ai[t]||(Ai[t]=$o.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new Ao(`Response type '${t}' is not supported`,Ao.ERR_NOT_SUPPORT,n)})})})(new Response),async e=>null==e?0:$o.isBlob(e)?e.size:$o.isSpecCompliantForm(e)?(await new Request(Jo.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:$o.isArrayBufferView(e)||$o.isArrayBuffer(e)?e.byteLength:($o.isURLSearchParams(e)&&(e+=""),$o.isString(e)?(await Pi(e)).byteLength:void 0));var Li=Ei&&(async e=>{let t,n,{url:o,method:i,data:r,signal:s,cancelToken:a,timeout:l,onDownloadProgress:c,onUploadProgress:u,responseType:h,headers:d,withCredentials:p="same-origin",fetchOptions:f}=yi(e),g=(h=h?(h+"").toLowerCase():"text",xi([s,a&&a.toAbortSignal()],l)),m=g&&g.unsubscribe&&(()=>{g.unsubscribe()});try{if(u&&Ni&&"get"!==i&&"head"!==i&&0!==(n=await(async(e,t)=>null==(e=$o.toFiniteNumber(e.getContentLength()))?Mi(t):e)(d,r))){var v,_,b=new Request(o,{method:"POST",body:r,duplex:"half"});let e;$o.isFormData(r)&&(e=b.headers.get("content-type"))&&d.setContentType(e),b.body&&([v,_]=pi(n,di(fi(u))),r=Oi(b.body,65536,v,_))}$o.isString(p)||(p=p?"include":"omit");var y="credentials"in Request.prototype;t=new Request(o,{...f,signal:g,method:i.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:y?p:void 0});let s=await fetch(t,f);var w=$i&&("stream"===h||"response"===h);if($i&&(c||w&&m)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});var x=$o.toFiniteNumber(s.headers.get("content-length"));let[t,n]=c&&pi(x,di(fi(c),!0))||[];s=new Response(Oi(s.body,65536,t,()=>{n&&n(),m&&m()}),e)}h=h||"text";let a=await Ai[$o.findKey(Ai,h)||"text"](s,e);return!w&&m&&m(),await new Promise((n,o)=>{hi(n,o,{data:a,headers:ai.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(i){if(m&&m(),i&&"TypeError"===i.name&&/Load failed|fetch/i.test(i.message))throw Object.assign(new Ao("Network Error",Ao.ERR_NETWORK,e,t),{cause:i.cause||i});throw Ao.from(i,i&&i.code,e,t)}});let Di={http:null,xhr:wi,fetch:Li},Ii=($o.forEach(Di,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}),e=>"- "+e),Ri=e=>$o.isFunction(e)||null===e||!1===e;var Fi=e=>{var t,n=(e=$o.isArray(e)?e:[e]).length;let o;var i,r={};for(let i=0;i<n;i++){let n;if(o=t=e[i],!Ri(t)&&void 0===(o=Di[(n=String(t)).toLowerCase()]))throw new Ao(`Unknown adapter '${n}'`);if(o)break;r[n||"#"+i]=o}if(o)return o;throw i=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),new Ao("There is no suitable adapter to dispatch the request "+(n?1<i.length?"since :\n"+i.map(Ii).join("\n"):" "+Ii(i[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")};function Hi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ui(null,e)}function Vi(e){return Hi(e),e.headers=ai.from(e.headers),e.data=li.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Fi(e.adapter||ti.adapter)(e).then(function(t){return Hi(e),t.data=li.call(e,e.transformResponse,t),t.headers=ai.from(t.headers),t},function(t){return ci(t)||(Hi(e),t&&t.response&&(t.response.data=li.call(e,e.transformResponse,t.response),t.response.headers=ai.from(t.response.headers))),Promise.reject(t)})}let ji="1.11.0",zi={},Ui=(["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}),{});zi.transitional=function(e,t,n){function o(e,t){return"[Axios v"+ji+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,r)=>{if(!1===e)throw new Ao(o(i," has been removed"+(t?" in "+t:"")),Ao.ERR_DEPRECATED);return t&&!Ui[i]&&(Ui[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,r)}},zi.spelling=function(e){return(t,n)=>(console.warn(n+" is likely a misspelling of "+e),!0)};var Bi={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ao("options must be an object",Ao.ERR_BAD_OPTION_VALUE);var o=Object.keys(e);let i=o.length;for(;0<i--;){var r=o[i];if(s=t[r]){var s,a=e[r];if(!0!==(s=void 0===a||s(a,r,e)))throw new Ao("option "+r+" must be "+s,Ao.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ao("Unknown option "+r,Ao.ERR_BAD_OPTION)}},validators:zi};let Yi=Bi.validators,Wi=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Yo,response:new Yo}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error,e=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?e&&!String(n.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+e):n.stack=e}catch(t){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:o,headers:i}=t=bi(this.defaults,t);void 0!==n&&Bi.assertOptions(n,{silentJSONParsing:Yi.transitional(Yi.boolean),forcedJSONParsing:Yi.transitional(Yi.boolean),clarifyTimeoutError:Yi.transitional(Yi.boolean)},!1),null!=o&&($o.isFunction(o)?t.paramsSerializer={serialize:o}:Bi.assertOptions(o,{encode:Yi.function,serialize:Yi.function},!0)),void 0===t.allowAbsoluteUrls&&(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Bi.assertOptions(t,{baseUrl:Yi.spelling("baseURL"),withXsrfToken:Yi.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),e=i&&$o.merge(i.common,i[t.method]),i&&$o.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=ai.concat(e,i);let r=[],s=!0,a=(this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}),[]);this.interceptors.response.forEach(function(e){a.push(e.fulfilled,e.rejected)});let l,c,u=0;if(s){c=r.length;let n=t;for(u=0;u<c;){var h=r[u++],d=r[u++];try{n=h(n)}catch(e){d.call(this,e);break}}try{l=Vi.call(this,n)}catch(e){return Promise.reject(e)}for(u=0,c=a.length;u<c;)l=l.then(a[u++],a[u++])}else{var p=[Vi.bind(this),void 0];for(p.unshift(...r),p.push(...a),c=p.length,l=Promise.resolve(t);u<c;)l=l.then(p[u++],p[u++])}return l}getUri(e){return Bo(vi((e=bi(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}},Gi=($o.forEach(["delete","get","head","options"],function(e){Wi.prototype[e]=function(t,n){return this.request(bi(n||{},{method:e,url:t,data:(n||{}).data}))}}),$o.forEach(["post","put","patch"],function(e){function t(t){return function(n,o,i){return this.request(bi(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Wi.prototype[e]=t(),Wi.prototype[e+"Form"]=t(!0)}),class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t,n=(this.promise=new Promise(function(e){t=e}),this);this.promise.then(e=>{if(n._listeners){let t=n._listeners.length;for(;0<t--;)n._listeners[t](e);n._listeners=null}}),this.promise.then=e=>{let t;return(e=new Promise(e=>{n.subscribe(e),t=e}).then(e)).cancel=function(){n.unsubscribe(t)},e},e(function(e,o,i){n.reason||(n.reason=new ui(e,o,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){this._listeners&&-1!==(e=this._listeners.indexOf(e))&&this._listeners.splice(e,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}});let qi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qi).forEach(([e,t])=>{qi[t]=e});let Xi=function e(t){var n=new Wi(t),o=Yn(Wi.prototype.request,n);return $o.extend(o,Wi.prototype,n,{allOwnKeys:!0}),$o.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(bi(t,n))},o}(ti),{Axios:Qi,AxiosError:Zi,CanceledError:Ki,isCancel:Ji,CancelToken:er,VERSION:tr,all:nr,Cancel:or,isAxiosError:ir,spread:rr,toFormData:sr,AxiosHeaders:ar,HttpStatusCode:lr,formToJSON:cr,getAdapter:ur,mergeConfig:hr}=(Xi.Axios=Wi,Xi.CanceledError=ui,Xi.CancelToken=Gi,Xi.isCancel=ci,Xi.VERSION=ji,Xi.toFormData=Ho,Xi.AxiosError=Ao,Xi.Cancel=Xi.CanceledError,Xi.all=function(e){return Promise.all(e)},Xi.spread=function(e){return function(t){return e.apply(null,t)}},Xi.isAxiosError=function(e){return $o.isObject(e)&&!0===e.isAxiosError},Xi.mergeConfig=bi,Xi.AxiosHeaders=ai,Xi.formToJSON=e=>ei($o.isHTMLForm(e)?new FormData(e):e),Xi.getAdapter=Fi,Xi.HttpStatusCode=qi,Xi.default=Xi);var dr,pr={};function fr(){function e(e,t){return void 0===t&&(t=1),"rgba("+[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16),t].join(",")+")"}function t(t,n,o){switch(o){case"webvtt.font.color":case"webvtt.font.opacity":var i=Services.prefs.getCharPref("webvtt.font.color"),r=Services.prefs.getIntPref("webvtt.font.opacity")/100;g.fontSet=e(i,r);break;case"webvtt.font.scale":m=Services.prefs.getIntPref("webvtt.font.scale")/100;break;case"webvtt.bg.color":case"webvtt.bg.opacity":i=Services.prefs.getCharPref("webvtt.bg.color"),r=Services.prefs.getIntPref("webvtt.bg.opacity")/100,g.backgroundSet=e(i,r);break;case"webvtt.edge.color":case"webvtt.edge.type":i=Services.prefs.getIntPref("webvtt.edge.type"),r=Services.prefs.getCharPref("webvtt.edge.color"),g.edgeSet=["","0px 0px ","4px 4px 4px ","-2px -2px ","2px 2px "][i]+e(r)}}function n(){}function o(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function i(e){function t(e,t,n,o){return 3600*(0|e)+60*(0|t)+(0|n)+(0|o)/1e3}return(e=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/))?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59<e[1]?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function r(){this.values=v(null)}function s(e,t,n,o){var i,r,s=o?e.split(o):[e];for(i in s)"string"==typeof s[i]&&2===(r=s[i].split(n)).length&&t(r[0],r[1])}function a(e,t){function n(e){return _[e]}for(var o,r,s,a,l,c,u,h=e.document.createElement("div"),d=h,p=[];null!==(u=void 0,u=t?(u=(u=t.match(/^([^<]*)(<[^>]+>?)?/))[1]||u[2],t=t.substr(u.length),u):null);)"<"===u[0]?"/"===u[1]?p.length&&p[p.length-1]===u.substr(2).replace(">","")&&(p.pop(),d=d.parentNode):(s=i(u.substr(1,u.length-2)))?(o=e.document.createProcessingInstruction("timestamp",s),d.appendChild(o)):(r=u.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(s=r[1],a=r[3],c=l=void 0,o=(c=b[s])?((l=e.document.createElement(c)).localName=c,(c=y[s])&&a&&(l[c]=a.trim()),l):null)&&(s=d,w[(c=o).localName]&&w[c.localName]!==s.localName||(r[2]&&(o.className=r[2].substr(1).replace("."," ")),p.push(r[1]),d.appendChild(o),d=o)):d.appendChild(e.document.createTextNode((e=>{for(;r=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(r[0],n);return e})(u)));return h}function l(e){var t=[],n="";if(e&&e.childNodes)for(i(t,e);n=function e(t){var n,o,r;return t&&t.length?(o=(n=t.pop()).textContent||n.innerText)?(r=o.match(/^.*(\n|\r)/))?r[t.length=0]:o:"ruby"===n.tagName?e(t):n.childNodes?(i(t,n),e(t)):void 0:null}(t);)for(var o=0;o<n.length;o++)if((e=>{for(var t=0;t<x.length;t++){var n=x[t];if(e>=n[0]&&e<=n[1])return 1}})(n.charCodeAt(o)))return"rtl";return"ltr";function i(e,t){for(var n=t.childNodes.length-1;0<=n;n--)e.push(t.childNodes[n])}}function c(){}function u(e,t,n){var o="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",r="rgba(0, 0, 0, 0.8)",s="",u=(i=(void 0!==g&&(i=g.fontSet,r=g.backgroundSet,s=g.edgeSet),o&&(i="rgb(255, 255, 255)",r="rgb(0, 0, 0)"),c.call(this),this.cue=t,this.cueDiv=a(e,t.text),{color:i,backgroundColor:r,textShadow:s,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"}),o||(i.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",i.unicodeBidi="plaintext"),this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},o||(i.direction=l(this.cueDiv),i.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(i),this.div.appendChild(this.cueDiv),0);switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function h(e){var t,n,o,i,r="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent);e.div&&(t=e.div.offsetHeight,n=e.div.offsetWidth,o=e.div.offsetTop,i=(i=(i=e.div.childNodes)&&i[0])&&i.getClientRects&&i.getClientRects(),e=e.div.getBoundingClientRect(),i=i?Math.max(i[0]&&i[0].height||0,e.height/i.length):0),this.left=e.left,this.right=e.right,this.top=e.top||o,this.height=e.height||t,this.bottom=e.bottom||o+(e.height||t),this.width=e.width||n,this.lineHeight=void 0!==i?i:e.lineHeight,r&&!this.lineHeight&&(this.lineHeight=13)}function d(e,t,n,o){var i,r=new h(t),s=t.cue,a=(e=>{if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,o=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&o++;return-1*++o})(s),l=[];if(s.snapToLines){switch(s.vertical){case"":l=["+y","-y"],i="height";break;case"rl":l=["+x","-x"],i="width";break;case"lr":l=["-x","+x"],i="width"}var c=r.lineHeight,u=c*Math.round(a),d=n[i]+c,p=l[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/c)*c),a<0&&(u+=""===s.vertical?n.height:n.width,l=l.reverse()),r.move(p,u)}else{var f=r.lineHeight/n.height*100;switch(s.lineAlign){case"middle":a-=f/2;break;case"end":a-=f}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}l=["+y","-x","+x","-y"],r=new h(t)}d=((e,t)=>{for(var i,r=new h(e),s=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(n,t[a])||e.within(n)&&e.overlapsAny(o);)e.move(t[a]);if(e.within(n))return e;var l=e.intersectPercentage(n);l<s&&(i=new h(e),s=l),e=new h(r)}return i||r})(r,l),t.move(d.toCSSCompatValues(n))}function p(){}var f,g,m,v,_,b,y,w,x;return dr||(f=pr,m=dr=1,"undefined"!=typeof Services&&(g={},["webvtt.font.color","webvtt.font.opacity","webvtt.font.scale","webvtt.bg.color","webvtt.bg.opacity","webvtt.edge.color","webvtt.edge.type"].forEach(function(e){t(0,0,e),Services.prefs.addObserver(e,t,!1)})),v=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=e,new n},((o.prototype=v(Error.prototype)).constructor=o).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},r.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var o=0;o<n.length;++o)if(t===n[o]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}},_={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},b={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},y={v:"title",lang:"lang"},w={rt:"ruby"},x=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]],c.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},c.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(u.prototype=v(c.prototype)).constructor=u,h.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},h.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},h.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},h.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},h.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},h.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},h.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},h.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,o=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||o,height:e.height||t,bottom:e.bottom||o+(e.height||t),width:e.width||n}},p.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},p.convertCueToDOMTree=function(e,t){return e&&t?a(e,t):null},p.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var o=e.document.createElement("div");if(o.style.position="absolute",o.style.left="0",o.style.right="0",o.style.top="0",o.style.bottom="0",o.style.margin="1.5%",n.appendChild(o),(e=>{for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1})(t))for(var i,r,s=[],a=h.getSimpleBoxPosition(o),l={font:Math.round(.05*a.height*100)/100*m+"px sans-serif"},c=0;c<t.length;c++)i=new u(e,r=t[c],l),o.appendChild(i.div),d(0,i,a,s),r.displayState=i.div,s.push(h.getSimpleBoxPosition(i));else for(var p=0;p<t.length;p++)o.appendChild(t[p].displayState)},(p.Parser=function(e,t){this.window=e,this.state="INITIAL",this.buffer="",this.decoder=t||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof o))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var o=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),o}function a(e){s(e,function(e,n){var o;"Region"===e&&(e=n,o=new r,s(e,function(e,t){switch(e){case"id":o.set(e,t);break;case"width":o.percent(e,t);break;case"lines":o.integer(e,t);break;case"regionanchor":case"viewportanchor":var n,i=t.split(",");2===i.length&&((n=new r).percent("x",i[0]),n.percent("y",i[1]),n.has("x")&&n.has("y"))&&(o.set(e+"X",n.get("x")),o.set(e+"Y",n.get("y")));break;case"scroll":o.alt(e,t,["up"])}},/=/,/\s/),o.has("id"))&&((e=new t.window.VTTRegion).width=o.get("width",100),e.lines=o.get("lines",3),e.regionAnchorX=o.get("regionanchorX",0),e.regionAnchorY=o.get("regionanchorY",100),e.viewportAnchorX=o.get("viewportanchorX",0),e.viewportAnchorY=o.get("viewportanchorY",100),e.scroll=o.get("scroll",""),t.onregion&&t.onregion(e),t.regionList.push({id:o.get("id"),region:e}))},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var l,c=(l=n()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var u=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(u?u=!1:l=n(),t.state){case"HEADER":/:/.test(l)?a(l):l||(t.state="ID");continue;case"NOTE":l||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(l)){t.state="NOTE";break}if(!l)continue;if(t.cue=new t.window.VTTCue(0,0,""),t.state="CUE",-1===l.indexOf("--\x3e")){t.cue.id=l;continue}case"CUE":try{((e,t,n)=>{var a,l,c=e;function u(){var t=i(e);if(null===t)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+c);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function h(){e=e.replace(/^\s+/,"")}if(h(),t.startTime=u(),h(),"--\x3e"!==e.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+c);e=e.substr(3),h(),t.endTime=u(),h(),a=e,l=new r,s(a,function(e,t){switch(e){case"region":for(var o=n.length-1;0<=o;o--)if(n[o].id===t){l.set(e,n[o].region);break}break;case"vertical":l.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),r=i[0];l.integer(e,r),l.percent(e,r)&&l.set("snapToLines",!1),l.alt(e,r,["auto"]),2===i.length&&l.alt("lineAlign",i[1],["start","middle","end"]);break;case"position":i=t.split(","),l.percent(e,i[0]),2===i.length&&l.alt("positionAlign",i[1],["start","middle","end"]);break;case"size":l.percent(e,t);break;case"align":l.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),t.region=l.get("region",null),t.vertical=l.get("vertical",""),t.line=l.get("line","auto"),t.lineAlign=l.get("lineAlign","start"),t.snapToLines=l.get("snapToLines",!0),t.size=l.get("size",100),t.align=l.get("align","middle"),t.position=l.get("position","auto"),t.positionAlign=l.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)})(l,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==l.indexOf("--\x3e");if(!l||h&&(u=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=l;continue;case"BADCUE":l||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),!e.cue&&"HEADER"!==e.state||(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new o(o.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},f.WebVTT=p),pr}var gr,mr={exports:{}},vr={};var _r,br=mr.exports;function yr(){var e;return _r||(_r=1,mr.exports&&(br.VTTCue=br.VTTCue||function(){var e,t,n,o;return gr||(gr=1,e=vr,t="auto",n={"":!0,lr:!0,rl:!0},o={start:!0,middle:!0,end:!0,left:!0,right:!0},s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.VTTCue=e.VTTCue||s),vr;function i(e){return"string"==typeof e&&!!o[e.toLowerCase()]&&e.toLowerCase()}function r(e){for(var t=1;t<arguments.length;t++){var n,o=arguments[t];for(n in o)e[n]=o[n]}return e}function s(e,o,s){var a=this,l=/MSIE\s8\.0/.test(navigator.userAgent),c={},u=(l?a=document.createElement("custom"):c.enumerable=!0,a.hasBeenReset=!1,""),h=!1,d=e,p=o,f=s,g=null,m="",v=!0,_="auto",b="start",y=50,w="middle",x=50,k="middle";if(Object.defineProperty(a,"id",r({},c,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(a,"pauseOnExit",r({},c,{get:function(){return h},set:function(e){h=!!e}})),Object.defineProperty(a,"startTime",r({},c,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",r({},c,{get:function(){return p},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");p=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",r({},c,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",r({},c,{get:function(){return g},set:function(e){g=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",r({},c,{get:function(){return m},set:function(e){if(!1===(e="string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()))throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",r({},c,{get:function(){return v},set:function(e){v=!!e,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",r({},c,{get:function(){return _},set:function(e){if("number"!=typeof e&&e!==t)throw new SyntaxError("An invalid number or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",r({},c,{get:function(){return b},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",r({},c,{get:function(){return y},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",r({},c,{get:function(){return w},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",r({},c,{get:function(){return x},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",r({},c,{get:function(){return k},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");k=e,this.hasBeenReset=!0}})),a.displayState=void 0,l)return a}}().VTTCue),(e=br).VTTCue.prototype.toJSON=function(){var e={},t=this;return Object.keys(this).forEach(function(n){"getCueAsHTML"!==n&&"hasBeenReset"!==n&&"displayState"!==n&&(e[n]=t[n])}),e},e.VTTCue.create=function(t){if(!t.hasOwnProperty("startTime")||!t.hasOwnProperty("endTime")||!t.hasOwnProperty("text"))throw new Error("You must at least have start time, end time, and text.");var n,o=new e.VTTCue(t.startTime,t.endTime,t.text);for(n in t)o.hasOwnProperty(n)&&(o[n]=t[n]);return o},e.VTTCue.fromJSON=function(e){return this.create(JSON.parse(e))}),mr.exports}var wr,xr={exports:{}},kr={};var Sr,Or,Er,Tr=xr.exports;function Pr(){var e;return Sr||(Sr=1,xr.exports&&(Tr.VTTRegion=function(){var e;return wr||(wr=1,e={"":!0,up:!0},kr.VTTRegion=kr.VTTRegion||function(){var n=100,o=3,i=0,r=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(e){if(!t(e))throw new Error("Width must be between 0 and 100.");n=e}},lines:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");o=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!t(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!t(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!t(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!t(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(t){if(!1===(t="string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()))throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}),kr;function t(e){return"number"==typeof e&&0<=e&&e<=100}}().VTTRegion),(e=Tr).VTTRegion.create=function(t){var n,o=new e.VTTRegion;for(n in t)o.hasOwnProperty(n)&&(o[n]=t[n]);return o},e.VTTRegion.fromJSON=function(e){return this.create(JSON.parse(e))}),xr.exports}var Cr=(Er||(Er=1,Or={WebVTT:fr().WebVTT,VTTCue:yr().VTTCue,VTTRegion:Pr().VTTRegion}),Or),Nr=function(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){var o;"default"===n||n in e||(o=Object.getOwnPropertyDescriptor(t,n),Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}}))})}),Object.freeze(e)}({__proto__:null,default:n(Cr)},[Cr]);let $r=Nr.WebVTT;class Ar{constructor(e){this.vOffset=0,this.hOffset=0,this.call=e=>this.krpano.call(e),this.get=e=>this.krpano.get(e),this.set=(e,t)=>this.krpano.set(e,t),this.screentosphere=(e,t)=>this.krpano.screentosphere(e,t),this.spheretoscreen=(e,t)=>this.krpano.spheretoscreen(e,t),this.spheretospace=(e,t,n=1e3)=>{var o=Date.now();return{x:e=(this.krpano.set("sphere_h_"+o,e),this.krpano.set("sphere_v_"+o,t),this.krpano.set("sphere_d_"+o,n),this.krpano.call(`spheretospace('sphere_h_${o}', 'sphere_v_${o}', 'sphere_d_${o}', 'space_x_${o}', 'space_y_${o}', 'space_z_${o}')`),this.krpano.get("space_x_"+o)),y:this.krpano.get("space_y_"+o),z:this.krpano.get("space_z_"+o)}},this.spacetosphere=(e,t,n,o=1e3)=>{var i=Date.now();return{ath:e=(this.krpano.set("space_x_"+i,e),this.krpano.set("space_y_"+i,t),this.krpano.set("space_z_"+i,n),this.krpano.set("sphere_d_"+i,o),this.krpano.call(`spacetosphere('space_x_${i}', 'space_y_${i}', 'space_z_${i}', 'sphere_h_${i}', 'sphere_v_${i}', 'sphere_d_${i}')`),this.krpano.get("sphere_h_"+i)),atv:this.krpano.get("sphere_v_"+i)}},this.updateOffset=(e,t,n=!1)=>{var o,i;n&&(({hlookat:n,vlookat:o,fov:i}=this.get("view")),this.call(`delayedcall(0.2, lookto(${n+(e||-this.hOffset)},${o+(t||-this.vOffset)}, ${i}, smooth(720,-720,720), true, true););`)),this.hOffset=e||0,this.vOffset=t||0},this.getOffsets=()=>({hOffset:this.hOffset,vOffset:this.vOffset}),this.getView=()=>{var{hlookat:e,vlookat:t,fov:n,hfov:o,vfov:i}=this.get("view");return{hlookat:e-this.hOffset,vlookat:t-this.vOffset,fov:n,hfov:o,vfov:i}},this.getOriginalView=()=>{var{hlookat:e,vlookat:t}=this.get("view");return{hlookat:e,vlookat:t}},this.lookto=(e,t)=>{var n,o;on(e)&&on(t)&&!Number.isNaN(e)&&!Number.isNaN(t)&&(({hOffset:n=0,vOffset:o=0}=this.getOffsets()),this.krpano.call(`lookto(${e+n},${t+o});`))},this.krpano=e,this.onUpdateOffsets=new Xt.Signal,this.updateOffset=this.updateOffset.bind(this),this.onUpdateOffsets.add(this.updateOffset)}}class Mr{constructor(e){this.props=e,this.krpano=e.krpano,this.type=e.type||"image",this.url=e.url||"",this.keep=e.keep||!1,this.parent=e.parent||null,this.cursor=e.cursor||"poiter",this.maskchildren=e.maskchildren||!1,this.scalechildren=e.scalechildren||!1,this.zorder=e.zorder||void 0,this.align=e.align||"lefttop",this.edge=e.edge||this.align,this.x=e.x||null,this.y=e.y||null,this.rotate=e.rotate||0,this.width=e.width,this.height=e.height,this.scale=e.scale||1,this.alpha=e.alpha||1,this.crop=e.crop||null,this.onovercrop=e.onovercrop||null,this.ondowncrop=e.ondowncrop||null,this.bgcolor=e.bgcolor||0,this.bgalpha=e.bgalpha||0,this.bgborder=e.bgborder||0,this.bgroundedge=e.bgroundedge||0,this.bgshadow=e.bgshadow||null,this.bgcapture=e.bgcapture||!1,this.signals=e.signals,this.enabled=e.enabled||!1}}class Lr extends Mr{constructor(e){super(e),this.name=de,this.load=e=>{location&&"https:"!==location.protocol?(console.warn("HTTPS is required to use gyroscope plugin!"),e&&e(!1),this.signals.onLoadedPlugin.dispatch(this.name,!1)):(this.krpano.call(`\n addplugin(${this.name});\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].enabled, ${this.enabled});\n set(plugin[${this.name}].keep, true);\n set(plugin[${this.name}].devices, html5);\n set(plugin[${this.name}].softstart, 1);\n `),this.krpano.set(`plugin[${this.name}].onavailable`,()=>{e&&e(!0),this.signals.onLoadedPlugin.dispatch(this.name,!0)}),this.krpano.set(`plugin[${this.name}].onunavailable`,()=>{e&&e(!1),this.signals.onLoadedPlugin.dispatch(this.name,!1)}))},this.toggle=e=>{let t;return t=e||!this.krpano.get(`plugin[${this.name}].enabled`),this.krpano.call(`set(plugin[${this.name}].enabled, ${t})`),this.enabled=t},this.getEnabled=()=>this.enabled,this.destroy=()=>{},this.url=we.GYRO2}}class Dr extends Mr{constructor(e){super(e),this.wrapLayerId="",this.heading=0,this.headingoffset=90,this.fillcolor="0xffffff",this.fillalpha=.5,this.linewidth=0,this.linecolor="0xffffff",this.linealpha=.3,this.invert=!1,this.wrapLayer="",this.load=e=>{this.krpano.call(`\n addlayer(${this.wrapLayer});\n set(layer[${this.wrapLayer}].keep, ${this.keep});\n set(layer[${this.wrapLayer}].width, ${2*(this.width||0)});\n set(layer[${this.wrapLayer}].height, ${2*(this.height||0)});\n set(layer[${this.wrapLayer}].x, 0);\n set(layer[${this.wrapLayer}].y, 0);\n set(layer[${this.wrapLayer}].renderer, css3d);\n set(layer[${this.wrapLayer}].bgcapture, true);\n set(layer[${this.wrapLayer}].type, container);\n set(layer[${this.wrapLayer}].sprite.id, ${this.wrapLayerId});\n `),this.krpano.call(`\n addplugin(${this.name});\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].align, lefttop);\n set(plugin[${this.name}].edge, center);\n set(plugin[${this.name}].x, ${this.width});\n set(plugin[${this.name}].y, ${this.height});\n set(plugin[${this.name}].keep, ${this.keep});\n set(plugin[${this.name}].scale, ${this.scale});\n set(plugin[${this.name}].heading, ${this.heading});\n set(plugin[${this.name}].headingoffset, ${this.headingoffset});\n set(plugin[${this.name}].fillcolor, ${this.fillcolor});\n set(plugin[${this.name}].fillalpha, ${this.fillalpha});\n set(plugin[${this.name}].linewidth, ${this.linewidth});\n set(plugin[${this.name}].linecolor, ${this.linecolor});\n set(plugin[${this.name}].linealpha, ${this.linealpha});\n set(plugin[${this.name}].invert, ${this.invert});\n set(plugin[${this.name}].parent, "layer[${this.wrapLayer}]");\n `),e&&setTimeout(()=>{e()},500)},this.destroy=()=>{this.krpano.call(`removelayer(${this.wrapLayer}, true)`)},this.name=pe,this.wrapLayer="layer_"+this.name,this.wrapLayerId=`layer_${this.name}_wrapper`,this.heading=e.heading||0,this.headingoffset=e.headingoffset||0,this.fillcolor=e.fillcolor||"0xffffff",this.fillalpha=e.fillalpha||.5,this.linewidth=e.linewidth||0,this.linecolor=e.linecolor||"0xffffff",this.linealpha=e.linealpha||.3,this.invert=e.invert||!1,this.width=e.width||6,this.height=e.height||6,this.scale=e.scale||.25,this.updateHeading=this.updateHeading.bind(this)}updateHeading(e){this.heading=e,this.krpano.get(`plugin[${this.name}]`)&&this.krpano.call(`set(plugin[${this.name}].heading, ${this.heading});`)}}let Ir=class extends Mr{constructor(e){super(e),this.name=fe,this.timeout=null,this.url=we.SOUND_INTERFACE}load(e){this.krpano.call(`addplugin(${this.name});`),this.timeout=setInterval(()=>{var t=this.krpano.get(`plugin[${this.name}]`);t&&(this.timeout&&(clearInterval(this.timeout),this.timeout=null),t.onloaded=()=>{e&&e()},this.krpano.call(`\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].volume, 1.0);\n set(plugin[${this.name}].mute, false);\n set(plugin[${this.name}].panningmodel, simple);\n set(plugin[${this.name}].worldscale, 1.0);\n set(plugin[${this.name}].autopause, false);\n set(plugin[${this.name}].autounlock, true);\n `))},1e3/60)}destroy(){}};class Rr{constructor(e){this.language="vi",this.isMobileDevice=!1,this.isLookAt=!0,this.spheretoscreen=()=>this.krpano.spheretoscreen(this.ath,this.atv),this.props=e,this.icon=e.icon,this.signals=e.signals,this.krpano=e.krpano,this.isMobileDevice=an(this.krpano),this.metadata=e.metadata,this.id=e.id,this.code=e.code,this.focusingCode=(e=>e+"_focusing")(this.code),this.hoverCode=un(this.code),this.type=e.type,this.name=e.name||"hs"+(Date.now()+Math.random()|0),this.url=e.url||ke.MOVING,this.ath=e.ath||0,this.atv=e.atv||0,this.height=e.height||0,this.width=e.width||0,this.alpha=e.alpha||1,this.scale=e.scale||1,this.rotate=e.rotate||0,this.rx=e.rx||0,this.ry=e.ry||0,this.rz=e.rz||0,this.distorted=void 0!==e.distorted&&e.distorted,this.polyline=void 0!==e.polyline&&e.polyline,this.icon=e.icon,this.bgPoi=e.bgPoi,this.sceneCode=e.sceneCode,this.coordsOffset=e.coordsOffset||Qe.NONE,this.popupSize=e.popupSize||"1",this.laserRange=e.laserRange||Ie,this.position=e.position||Fe,this.overviewPosition=e.overviewPosition||Re.NONE,this.enabled=!0,this.visible=!0,this.visibleProp=!0,this.create=this.create.bind(this),this.onClick=this.onClick.bind(this),this.onOver=this.onOver.bind(this),this.onOut=this.onOut.bind(this),this.onHover=this.onHover.bind(this),this.getCenter=this.getCenter.bind(this),this.toggleVisibility=this.toggleVisibility.bind(this),this.isLabel=this.isLabel.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.getLookAtPosition=this.getLookAtPosition.bind(this)}getLookAtPosition(){return{ath:this.ath,atv:this.atv}}getLookAtPopupPosition(){return xn(this.krpano,this)}lookAt(){var{ath:e,atv:t}=this.getLookAtPosition(),{hOffset:n,vOffset:o}=this.krpano.getOffsets();this.krpano.call(`delayedcall(0.2, lookto(${e+n},${t+o}););`)}toggleVisibility(e,t=!1){t&&(this.visible=e)!==this.visibleProp&&(this.visibleProp=e),this.krpano.call(`if(hotspot[${this.code}]!=null,set(hotspot[${this.code}].visible, ${e});,);`)}onHover(){}create(e){this.krpano.call(`addhotspot(${this.code});`);var t=ln(this.props);(null!=t&&t.endsWith(".gif")||null!=t&&t.endsWith(".GIF"))&&this.krpano.call(`set(hotspot[${this.code}].renderer, css3d);`),this.krpano.call(`set(hotspot[${this.code}].url, ${Cn(t)});`),this.krpano.call(`set(hotspot[${this.code}].ath,${this.ath});`),this.krpano.call(`set(hotspot[${this.code}].atv,${this.atv});`),this.krpano.call(`set(hotspot[${this.code}].alpha,${this.alpha});`),this.krpano.call(`set(hotspot[${this.code}].scale,${this.scale});`),this.krpano.call(`set(hotspot[${this.code}].rotate,${this.rotate});`),this.krpano.call(`set(hotspot[${this.code}].width,${this.width});`),this.krpano.call(`set(hotspot[${this.code}].height,${this.height});`),this.krpano.call(`set(hotspot[${this.code}].rx,${this.rx});`),this.krpano.call(`set(hotspot[${this.code}].ry,${this.ry});`),this.krpano.call(`set(hotspot[${this.code}].rz,${this.rz});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`);let n=dn(this.props);this.krpano.call(`set(hotspot[${this.code}].polyline,${this.polyline});`),this.krpano.set(`hotspot[${this.code}].zorder`,P.STANDARD),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{n&&n.imageStrip&&this.krpano.call(Hn(this.props)),this.krpano.call(`set(hotspot[${this.code}].visible,${this.visible});`),this.addEvents(),e&&e(this)})}createFocusingHotspot(){this.krpano.call(`\n addhotspot(${this.focusingCode});\n set(hotspot[${this.focusingCode}].url, ${ke.FOCUSING_IMAGE_STRIP});\n set(hotspot[${this.focusingCode}].bgalpha, 0);\n set(hotspot[${this.focusingCode}].handcursor, false);\n set(hotspot[${this.focusingCode}].width, 36);\n set(hotspot[${this.focusingCode}].height, 36);\n set(hotspot[${this.focusingCode}].visible, false);\n set(hotspot[${this.focusingCode}].rx, 0);\n set(hotspot[${this.focusingCode}].ry, 0);\n set(hotspot[${this.focusingCode}].rz, 0);\n set(hotspot[${this.focusingCode}].rotate, 0);\n set(hotspot[${this.focusingCode}].enabled, true);\n set(hotspot[${this.focusingCode}].zorder, ${P.STANDARD});\n set(hotspot[${this.focusingCode}].ath, '${this.ath}');\n set(hotspot[${this.focusingCode}].atv, '${this.atv}');\n `),this.krpano.set(`hotspot[${this.focusingCode}].onloaded`,()=>{this.krpano.call(((e,t,n,o)=>`\n def(imageWidth_${e}, integer, get(hotspot[${e}].imagewidth));\n def(imageHeight_${e}, integer, get(hotspot[${e}].imageheight));\n def(frameWidth_${e}, integer, ${n});\n def(frameHeight_${e}, integer, ${o});\n def(frameRate_${e}, integer, ${t});\n def(frame_${e}, integer, 0);\n\n calc(xFrames_${e}, (imageWidth_${e} / frameWidth_${e}) BOR 0);\n calc(frames_${e}, xFrames_${e} * ((imageHeight_${e} / frameHeight_${e}) BOR 0));\n calc(hotspot[${e}].crop, '0|0|' + frameWidth_${e} + '|' + frameHeight_${e});\n \n setinterval(crop_anim_${e}, calc(1.0 / frameRate_${e}),\n if(hotspot[${e}].loaded,\n inc(frame_${e});\n if(frame_${e} GE frames_${e}, set(frame_${e}, 0););\n mod(xPos_${e}, frame_${e}, xFrames_${e});\n div(yPos_${e}, frame_${e}, xFrames_${e});\n Math.floor(yPos_${e});\n mul(xPos_${e}, frameWidth_${e});\n mul(yPos_${e}, frameHeight_${e});\n calc(\n hotspot[${e}].crop,\n xPos_${e} + '|' + yPos_${e} + '|' + frameWidth_${e} + '|' + frameHeight_${e}\n );\n ,\n clearinterval(crop_anim_${e});\n );\n );\n`)(this.focusingCode,60,72,72))})}activeFocusingHotspot(e){this.krpano.call(`\n set(hotspot[${this.focusingCode}].visible, ${e});\n `)}activeOverview(e){kn(this)&&(this.activeFocusingHotspot(e),this.krpano.call(`\n tween(hotspot[${this.code}].alpha, ${e?0:1}, 0.2);\n set(hotspot[${this.hoverCode}].visible, ${e});\n `))}getHoverHeight(){let e=this.height;e||(e=(t=this.krpano.get(`hotspot[${this.code}]`)).imageheight);var t=this.bgPoi?this.bgPoi.padding:0;return((e||0)+t)*(this.scale||1)}getCenter(){var{x:e,y:t,z:n}=this.spheretoscreen();return{x:e,y:t-this.getHoverHeight()/2,z:n}}isLabel(){return!(this.type===ue.PHOTO||this.type===ue.VIDEO||this.type===ue.MOVING||this.type===ue.LENSFLARE||this.type===ue.NADIR_LOGO)}hasDetailModal(){return[ue.POLYGON,ue.ITEM_INFO,ue.PROMOTION,ue.GALLERY,ue.VIDEO,ue.MOVING].includes(this.type)}isHideable(){return!0}addEvents(){this.isMobileDevice?this.addMobileEvents():this.addDesktopEvents()}addDesktopEvents(){this.krpano.set(`hotspot[${this.code}].onclick`,this.handleOnClick),this.krpano.set(`hotspot[${this.code}].onover`,this.onOver),this.krpano.set(`hotspot[${this.code}].onout`,this.onOut),this.krpano.set(`hotspot[${this.code}].onhover`,this.onHover),this.krpano.set(`hotspot[${this.code}].onup`,()=>{this.signals.poiMouseUp.dispatch()})}addMobileEvents(){this.krpano.set(`hotspot[${this.code}].onclick`,this.handleOnClick),this.krpano.set(`hotspot[${this.code}].onup`,()=>{this.signals.poiMouseUp.dispatch()})}onClick(){this.isLookAt&&this.lookAt(),this.signals.poiClicked.dispatch(this)}onOver(){this.signals.toggleFloorPoi.dispatch(!1)}onOut(){this.signals.toggleFloorPoi.dispatch(!0)}handleOnClick(){this.signals.stopScenario.dispatch(),this.onClick()}}class Fr extends Rr{constructor(e){super(e),this.info="",this.info=e.info,this.url=e.url||ke.INFO,this.type=ue.INFO,this.hovering=!1,this.hoverCode=un(this.code)}onClick(){super.onClick(),this.isMobileDevice&&(this.hovering?this.hide():(this.signals.toggleLabels.dispatch(this.hovering),this.show()))}onOver(){super.onOver()}onOut(){super.onOut(),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.hovering!==e&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),this.hovering=e)}show(){this.toggleHover(!0)}hide(){this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}getContentHover(){var e,t=(e=>!!e&&!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e))(this.info)&&(e=>!!e&&null!=e.match(/\.(jpeg|jpg|gif|png)$/))(this.info);let n="";return t?n=`[img class="box-wrapper__content-thumbnail" src="${this.info}" /]`:this.info&&(e=this.info.split("\n").reduce((e,t)=>e+`[div class="content__name"]${t}[/div]`,""),n=`[div class="box-wrapper__content"]${e}[/div]`),`\n [div class="cvtv-product-info-poi__wrapper"]\n [div class="product-info-poi__box-wrapper product-info-poi__box-wrapper--vertical ${t?"":"product-info-poi__box-wrapper--text"}"]\n ${n}\n [/div]\n [div class="product-info-poi__arrow-down"][/div]\n [/div]\n `}create(e){var t=this.getContentHover();Rn(this.krpano,this.props,t,!1),Un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)})}}class Hr extends Rr{constructor(e){var t;super(e),this.url=e.url||ke.PIN,this.type=ue.ITEM_INFO,this.hoverCode=un(this.code),this.hovering=!1,this.clickType=e.clickType,this.hoverType=e.hoverType,this.keepHover=!1,this.popupVisible=!1,this.keepPopupVisible=!1,this.focusType=e.focusType||ct,this.autoShow=e.autoShow||Me,this.itemInfo=e.itemInfo,this.itemInfoType=null==(t=this.itemInfo)?void 0:t.type,this.itemInfoCode=e.itemInfoCode||(null==(t=this.itemInfo)?void 0:t.code),this.isClickable=this.isClickable.bind(this),this.isHoverable=this.isHoverable.bind(this),this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.togglePopup=this.togglePopup.bind(this),this.hidePopup=this.hidePopup.bind(this),this.isProduct=this.isProduct.bind(this),this.getHoverContent=this.getHoverContent.bind(this)}getLookAtPosition(){var{h:e,v:t}=xn(this.krpano,this);return{ath:e,atv:t}}isProduct(){return this.itemInfo&&(this.itemInfo.type===it||this.itemInfo.type===at)}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.isClickable()&&(this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch(),this.itemInfo.type!==st)&&this.signals.stopScenario.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onClick(){if(super.onClick(),this.type===ue.ITEM_INFO){if(this.hoverType===Je)return this.isClickable()?(this.signals.poiClick.dispatch(this.props),void this.signals.poiOut.dispatch()):void 0;var e=!this.popupVisible;this.togglePopup(e),e&&(this.keepPopupVisible=!0,setTimeout(()=>{this.keepPopupVisible=!1},1e3))}}onOver(){this.isHoverable()&&(super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.HOVERING});`))}onOut(){this.isHoverable()&&(super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.STANDARD});`),this.krpano.get("device.desktop")&&this.hide(),this.signals.poiOut.dispatch())}onHover(){this.isHoverable()&&this.show()}toggleHover(e=!1){this.autoShow===Le&&this.togglePopup(e),this.autoShow===Me&&this.togglePopup(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e),e||this.togglePopup(e)}togglePopup(e=!1){this.popupVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){pn(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e))}hidePopup(){this.popupVisible&&!this.keepPopupVisible&&this.togglePopup(!1)}getHoverContent(){let e=this.hoverType;if(!e)switch(this.itemInfo.type){case rt:e=tt;break;case st:e=nt;break;case it:case at:e=et}var t={krpano:this.krpano,poi:this,lang:this.language};let n;switch(e){case nt:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return Ln(e,t,n)})(t);break;case et:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return Ln(e,t,n)})({krpano:this.krpano,poi:this,lang:this.language});break;case tt:case ot:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return Ln(e,t,n)})(t);break;default:console.warn(`Type[${e}] is not handled hover`)}return n}create(e){e&&(this.onDone=e),this.itemInfo&&(kn(this)&&this.createFocusingHotspot(),e=this.itemInfo,e=Object.assign(Object.assign({},this),{itemInfo:e,position:this.position,overviewPosition:this.overviewPosition}),(e=Ln(this.krpano,e,this.language))&&In(this.krpano,this.props,e),this.focusType===ut&&((e,t)=>{if(t.type===ue.ITEM_INFO){let o=(e=>e+"_focus")(t.code);var n=zn(t);Dn(e,o,n),e.set(`hotspot[${o}].atv`,t.atv),e.set(`hotspot[${o}].ath`,t.ath),e.set(`hotspot[${o}].onloaded`,()=>{var n=Number(e.get(`hotspot[${o}].width`));e.set(`hotspot[${o}].ox`,n/2-((t.width||0)*(t.scale||1)/2+11))})}})(this.krpano,this),Un(this.krpano,this.props).then(()=>{super.addEvents(),this.onDone&&this.onDone(this)}))}isHoverable(){return this.hoverType!==Je}isClickable(){return this.clickType!==Je}}var Vr,jr={};var zr,Ur,Br,Yr,Wr=function(){var e,n,o,i,r,s,a,l,c,u,h,d,p;return Vr||(Vr=1,e=jr,f.prototype={init:function(){var e=this||n;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||n;if(e=parseFloat(e),t.ctx||c(),void 0!==e&&0<=e&&e<=1){if(t._volume=e,!t._muted){t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var o=0;o<t._howls.length;o++)if(!t._howls[o]._webAudio)for(var i=t._howls[o]._getSoundIds(),r=0;r<i.length;r++){var s=t._howls[o]._soundById(i[r]);s&&s._node&&(s._node.volume=s._volume*e)}}return t}return t._volume},mute:function(e){var t=this||n;t.ctx||c(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,n.ctx.currentTime);for(var o=0;o<t._howls.length;o++)if(!t._howls[o]._webAudio)for(var i=t._howls[o]._getSoundIds(),r=0;r<i.length;r++){var s=t._howls[o]._soundById(i[r]);s&&s._node&&(s._node.muted=!!e||s._muted)}return t},stop:function(){for(var e=this||n,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||n,t=e._howls.length-1;0<=t;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,c()),e},codecs:function(e){return(this||n)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||n;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e,t,o,i,r=this||n,s=null;try{s="undefined"!=typeof Audio?new Audio:null}catch(e){return r}return s&&"function"==typeof s.canPlayType&&(e=s.canPlayType("audio/mpeg;").replace(/^no$/,""),t=(t=(o=r._navigator?r._navigator.userAgent:"").match(/OPR\/(\d+)/g))&&parseInt(t[0].split("/")[1],10)<33,i=-1!==o.indexOf("Safari")&&-1===o.indexOf("Chrome"),o=o.match(/Version\/(.*?) /),i=i&&o&&parseInt(o[1],10)<15,r._codecs={mp3:!(t||!e&&!s.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!e,opus:!!s.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!s.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!s.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(s.canPlayType('audio/wav; codecs="1"')||s.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!s.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!s.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(s.canPlayType("audio/x-m4a;")||s.canPlayType("audio/m4a;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(s.canPlayType("audio/x-m4b;")||s.canPlayType("audio/m4b;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(s.canPlayType("audio/x-mp4;")||s.canPlayType("audio/mp4;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(i||!s.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(i||!s.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!s.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(s.canPlayType("audio/x-flac;")||s.canPlayType("audio/flac;")).replace(/^no$/,"")}),r},_unlockAudio:function(){var e,t=this||n;if(!t._audioUnlocked&&t.ctx)return t._audioUnlocked=!1,t.autoUnlock=!1,t._mobileUnloaded||44100===t.ctx.sampleRate||(t._mobileUnloaded=!0,t.unload()),t._scratchBuffer=t.ctx.createBuffer(1,1,22050),e=function(n){for(;t._html5AudioPool.length<t.html5PoolSize;)try{var o=new Audio;o._unlocked=!0,t._releaseHtml5Audio(o)}catch(n){t.noAudio=!0;break}for(var i=0;i<t._howls.length;i++)if(!t._howls[i]._webAudio)for(var r=t._howls[i]._getSoundIds(),s=0;s<r.length;s++){var a=t._howls[i]._soundById(r[s]);a&&a._node&&!a._node._unlocked&&(a._node._unlocked=!0,a._node.load())}t._autoResume();var l=t.ctx.createBufferSource();l.buffer=t._scratchBuffer,l.connect(t.ctx.destination),void 0===l.start?l.noteOn(0):l.start(0),"function"==typeof t.ctx.resume&&t.ctx.resume(),l.onended=function(){l.disconnect(0),t._audioUnlocked=!0,document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",e,!0),document.removeEventListener("click",e,!0),document.removeEventListener("keydown",e,!0);for(var n=0;n<t._howls.length;n++)t._howls[n]._emit("unlock")}},document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",e,!0),document.addEventListener("click",e,!0),document.addEventListener("keydown",e,!0),t},_obtainHtml5Audio:function(){var e=this||n;return e._html5AudioPool.length?e._html5AudioPool.pop():((e=(new Audio).play())&&"undefined"!=typeof Promise&&(e instanceof Promise||"function"==typeof e.then)&&e.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio)},_releaseHtml5Audio:function(e){var t=this||n;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&n.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var o=0;o<e._howls[t]._sounds.length;o++)if(!e._howls[t]._sounds[o]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){var t;e.autoSuspend&&(e._suspendTimer=null,e.state="suspending",t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())},e.ctx.suspend().then(t,t))},3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&n.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}},n=new f,g.prototype={init:function(e){var t=this;return n.ctx||c(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!(!e.xhr||!e.xhr.withCredentials)&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=n.usingWebAudio&&!t._html5,void 0!==n.ctx&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e=this,t=null;if(n.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var i,s,a=0;a<e._src.length;a++){if(e._format&&e._format[a])i=e._format[a];else{if("string"!=typeof(s=e._src[a])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}i=(i=(i=/^data:audio\/([^;,]+);/i.exec(s))||/\.([^.]+)$/.exec(s.split("?",1)[0]))&&i[1].toLowerCase()}if(i||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),i&&n.codecs(i)){t=e._src[a];break}}if(t)return e._src=t,e._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new o(e),e._webAudio&&r(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var o=this,i=null;if("number"==typeof e)i=e,e=null;else{if("string"==typeof e&&"loaded"===o._state&&!o._sprite[e])return null;if(void 0===e&&(e="__default",!o._playLock)){for(var r=0,s=0;s<o._sounds.length;s++)o._sounds[s]._paused&&!o._sounds[s]._ended&&(r++,i=o._sounds[s]._id);1===r?e=null:i=null}}var a,l=i?o._soundById(i):o._inactiveSound();if(!l)return null;if(i&&!e&&(e=l._sprite||"__default"),"loaded"!==o._state)return l._sprite=e,l._ended=!1,a=l._id,o._queue.push({event:"play",action:function(){o.play(a)}}),a;if(i&&!l._paused)return t||o._loadQueue("play"),l._id;o._webAudio&&n._autoResume();var c,u,h,d,p=Math.max(0,0<l._seek?l._seek:o._sprite[e][0]/1e3),f=Math.max(0,(o._sprite[e][0]+o._sprite[e][1])/1e3-p),g=1e3*f/Math.abs(l._rate),m=o._sprite[e][0]/1e3,v=(o._sprite[e][0]+o._sprite[e][1])/1e3,_=(l._sprite=e,l._ended=!1,function(){l._paused=!1,l._seek=p,l._start=m,l._stop=v,l._loop=!(!l._loop&&!o._sprite[e][2])});if(!(v<=p))return c=l._node,o._webAudio?(h=function(){o._playLock=!1,_(),o._refreshBuffer(l);var e=l._muted||o._muted?0:l._volume;c.gain.setValueAtTime(e,n.ctx.currentTime),l._playStart=n.ctx.currentTime,void 0===c.bufferSource.start?l._loop?c.bufferSource.noteGrainOn(0,p,86400):c.bufferSource.noteGrainOn(0,p,f):l._loop?c.bufferSource.start(0,p,86400):c.bufferSource.start(0,p,f),g!==1/0&&(o._endTimers[l._id]=setTimeout(o._ended.bind(o,l),g)),t||setTimeout(function(){o._emit("play",l._id),o._loadQueue()},0)},"running"===n.state&&"interrupted"!==n.ctx.state?h():(o._playLock=!0,o.once("resume",h),o._clearTimer(l._id))):(u=function(){c.currentTime=p,c.muted=l._muted||o._muted||n._muted||c.muted,c.volume=l._volume*n.volume(),c.playbackRate=l._rate;try{var i=c.play();i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(o._playLock=!0,_(),i.then(function(){o._playLock=!1,c._unlocked=!0,t?o._loadQueue():o._emit("play",l._id)}).catch(function(){o._playLock=!1,o._emit("playerror",l._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),l._ended=!0,l._paused=!0})):t||(o._playLock=!1,_(),o._emit("play",l._id)),c.playbackRate=l._rate,c.paused?o._emit("playerror",l._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."):"__default"!==e||l._loop?o._endTimers[l._id]=setTimeout(o._ended.bind(o,l),g):(o._endTimers[l._id]=function(){o._ended(l),c.removeEventListener("ended",o._endTimers[l._id],!1)},c.addEventListener("ended",o._endTimers[l._id],!1))}catch(i){o._emit("playerror",l._id,i)}},"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===c.src&&(c.src=o._src,c.load()),h=window&&window.ejecta||!c.readyState&&n._navigator.isCocoonJS,3<=c.readyState||h?u():(o._playLock=!0,o._state="loading",d=function(){o._state="loaded",u(),c.removeEventListener(n._canPlayEvent,d,!1)},c.addEventListener(n._canPlayEvent,d,!1),o._clearTimer(l._id))),l._id;o._ended(l)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)t._queue.push({event:"pause",action:function(){t.pause(e)}});else for(var n=t._getSoundIds(e),o=0;o<n.length;o++){t._clearTimer(n[o]);var i=t._soundById(n[o]);if(i&&!i._paused&&(i._seek=t.seek(n[o]),i._rateSeek=0,i._paused=!0,t._stopFade(n[o]),i._node))if(t._webAudio){if(!i._node.bufferSource)continue;void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else isNaN(i._node.duration)&&i._node.duration!==1/0||i._node.pause();arguments[1]||t._emit("pause",i?i._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)n._queue.push({event:"stop",action:function(){n.stop(e)}});else for(var o=n._getSoundIds(e),i=0;i<o.length;i++){n._clearTimer(o[i]);var r=n._soundById(o[i]);r&&(r._seek=r._start||0,r._rateSeek=0,r._paused=!0,r._ended=!0,n._stopFade(o[i]),r._node&&(n._webAudio?r._node.bufferSource&&(void 0===r._node.bufferSource.stop?r._node.bufferSource.noteOff(0):r._node.bufferSource.stop(0),n._cleanBuffer(r._node)):isNaN(r._node.duration)&&r._node.duration!==1/0||(r._node.currentTime=r._start||0,r._node.pause(),r._node.duration===1/0&&n._clearSound(r._node))),t||n._emit("stop",r._id))}return n},mute:function(e,t){var o=this;if("loaded"!==o._state||o._playLock)o._queue.push({event:"mute",action:function(){o.mute(e,t)}});else{if(void 0===t){if("boolean"!=typeof e)return o._muted;o._muted=e}for(var i=o._getSoundIds(t),r=0;r<i.length;r++){var s=o._soundById(i[r]);s&&(s._muted=e,s._interval&&o._stopFade(s._id),o._webAudio&&s._node?s._node.gain.setValueAtTime(e?0:s._volume,n.ctx.currentTime):s._node&&(s._node.muted=!!n._muted||e),o._emit("mute",s._id))}}return o},volume:function(){var e,t,o=this,i=arguments;if(0===i.length)return o._volume;if(1===i.length||2===i.length&&void 0===i[1]?0<=o._getSoundIds().indexOf(i[0])?r=parseInt(i[0],10):e=parseFloat(i[0]):2<=i.length&&(e=parseFloat(i[0]),r=parseInt(i[1],10)),!(void 0!==e&&0<=e&&e<=1))return(t=r?o._soundById(r):o._sounds[0])?t._volume:0;if("loaded"!==o._state||o._playLock)o._queue.push({event:"volume",action:function(){o.volume.apply(o,i)}});else{void 0===r&&(o._volume=e);for(var r=o._getSoundIds(r),s=0;s<r.length;s++)(t=o._soundById(r[s]))&&(t._volume=e,i[2]||o._stopFade(r[s]),o._webAudio&&t._node&&!t._muted?t._node.gain.setValueAtTime(e,n.ctx.currentTime):t._node&&!t._muted&&(t._node.volume=e*n.volume()),o._emit("volume",t._id))}return o},fade:function(e,t,o,i){var r=this;if("loaded"!==r._state||r._playLock)r._queue.push({event:"fade",action:function(){r.fade(e,t,o,i)}});else{e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),o=parseFloat(o),r.volume(e,i);for(var s=r._getSoundIds(i),a=0;a<s.length;a++){var l,c,u=r._soundById(s[a]);u&&(i||r._stopFade(s[a]),r._webAudio&&!u._muted&&(c=(l=n.ctx.currentTime)+o/1e3,u._volume=e,u._node.gain.setValueAtTime(e,l),u._node.gain.linearRampToValueAtTime(t,c)),r._startFadeInterval(u,e,t,o,s[a],void 0===i))}}return r},_startFadeInterval:function(e,t,n,o,i,r){var s=this,a=t,l=n-t,c=Math.abs(l/.01),u=(c=Math.max(4,0<c?o/c:o),Date.now());e._fadeTo=n,e._interval=setInterval(function(){var i=(Date.now()-u)/o;u=Date.now(),a+=l*i,a=Math.round(100*a)/100,a=l<0?Math.max(n,a):Math.min(n,a),s._webAudio?e._volume=a:s.volume(a,e._id,!0),r&&(s._volume=a),(n<t&&a<=n||t<n&&n<=a)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,s.volume(n,e._id),s._emit("fade",e._id))},c)},_stopFade:function(e){var t=this._soundById(e);return t&&t._interval&&(this._webAudio&&t._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(t._interval),t._interval=null,this.volume(t._fadeTo,e),t._fadeTo=null,this._emit("fade",e)),this},loop:function(){var e,t,n,o=this,i=arguments;if(0===i.length)return o._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(n=o._soundById(parseInt(i[0],10)))&&n._loop;o._loop=e=i[0]}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var r=o._getSoundIds(t),s=0;s<r.length;s++)(n=o._soundById(r[s]))&&(n._loop=e,o._webAudio)&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e)&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,o.playing(r[s]))&&(o.pause(r[s],!0),o.play(r[s],!0));return o},rate:function(){var e,t=this,o=arguments;if(0===o.length?s=t._sounds[0]._id:1===o.length?0<=t._getSoundIds().indexOf(o[0])?s=parseInt(o[0],10):e=parseFloat(o[0]):2===o.length&&(e=parseFloat(o[0]),s=parseInt(o[1],10)),"number"!=typeof e)return((r=t._soundById(s))||t)._rate;if("loaded"!==t._state||t._playLock)t._queue.push({event:"rate",action:function(){t.rate.apply(t,o)}});else{void 0===s&&(t._rate=e);for(var i,r,s=t._getSoundIds(s),a=0;a<s.length;a++)(r=t._soundById(s[a]))&&(t.playing(s[a])&&(r._rateSeek=t.seek(s[a]),r._playStart=t._webAudio?n.ctx.currentTime:r._playStart),r._rate=e,t._webAudio&&r._node&&r._node.bufferSource?r._node.bufferSource.playbackRate.setValueAtTime(e,n.ctx.currentTime):r._node&&(r._node.playbackRate=e),i=t.seek(s[a]),i=1e3*((t._sprite[r._sprite][0]+t._sprite[r._sprite][1])/1e3-i)/Math.abs(r._rate),!t._endTimers[s[a]]&&r._paused||(t._clearTimer(s[a]),t._endTimers[s[a]]=setTimeout(t._ended.bind(t,r),i)),t._emit("rate",r._id))}return t},seek:function(){var e,t,o=this,i=arguments;if(0===i.length?o._sounds.length&&(t=o._sounds[0]._id):1===i.length?0<=o._getSoundIds().indexOf(i[0])?t=parseInt(i[0],10):o._sounds.length&&(t=o._sounds[0]._id,e=parseFloat(i[0])):2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),void 0===t)return 0;if("number"!=typeof e||"loaded"===o._state&&!o._playLock){var r,s,a,l,c,u=o._soundById(t);if(u){if(!("number"==typeof e&&0<=e))return o._webAudio?(l=o.playing(t)?n.ctx.currentTime-u._playStart:0,c=u._rateSeek?u._rateSeek-u._seek:0,u._seek+(c+l*Math.abs(u._rate))):u._node.currentTime;(r=o.playing(t))&&o.pause(t,!0),u._seek=e,u._ended=!1,o._clearTimer(t),o._webAudio||!u._node||isNaN(u._node.duration)||(u._node.currentTime=e),s=function(){r&&o.play(t,!0),o._emit("seek",t)},r&&!o._webAudio?(a=function(){o._playLock?setTimeout(a,0):s()},setTimeout(a,0)):s()}}else o._queue.push({event:"seek",action:function(){o.seek.apply(o,i)}});return o},playing:function(e){if("number"==typeof e)return!!(e=this._soundById(e))&&!e._paused;for(var t=0;t<this._sounds.length;t++)if(!this._sounds[t]._paused)return!0;return!1},duration:function(e){var t=this._duration;return(e=this._soundById(e))?this._sprite[e._sprite][1]/1e3:t},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,o=0;o<t.length;o++)t[o]._paused||e.stop(t[o]._id),e._webAudio||(e._clearSound(t[o]._node),t[o]._node.removeEventListener("error",t[o]._errorFn,!1),t[o]._node.removeEventListener(n._canPlayEvent,t[o]._loadFn,!1),t[o]._node.removeEventListener("ended",t[o]._endFn,!1),n._releaseHtml5Audio(t[o]._node)),delete t[o]._node,e._clearTimer(t[o]._id);var r=n._howls.indexOf(e),s=(0<=r&&n._howls.splice(r,1),!0);for(o=0;o<n._howls.length;o++)if(n._howls[o]._src===e._src||0<=e._src.indexOf(n._howls[o]._src)){s=!1;break}return i&&s&&delete i[e._src],n.noAudio=!1,e._state="unloaded",e._sounds=[],null},on:function(e,t,n,o){return e=this["_on"+e],"function"==typeof t&&e.push(o?{id:n,fn:t,once:o}:{id:n,fn:t}),this},off:function(e,t,n){var o=this["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<o.length;i++){var r=n===o[i].id;if(t===o[i].fn&&r||!t&&r){o.splice(i,1);break}}else if(e)this["_on"+e]=[];else{var s=Object.keys(this);for(i=0;i<s.length;i++)0===s[i].indexOf("_on")&&Array.isArray(this[s[i]])&&(this[s[i]]=[])}return this},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var o=this["_on"+e],i=o.length-1;0<=i;i--)o[i].id&&o[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(this,o[i].fn),0),o[i].once&&this.off(e,o[i].fn,o[i].id));return this._loadQueue(e),this},_loadQueue:function(e){var t;return 0<this._queue.length&&((t=this._queue[0]).event===e&&(this._queue.shift(),this._loadQueue()),e||t.action()),this},_ended:function(e){var t,o=this,i=e._sprite;return!o._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop?setTimeout(o._ended.bind(o,e),100):(i=!(!e._loop&&!o._sprite[i][2]),o._emit("end",e._id),!o._webAudio&&i&&o.stop(e._id,!0).play(e._id),o._webAudio&&i&&(o._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=n.ctx.currentTime,t=1e3*(e._stop-e._start)/Math.abs(e._rate),o._endTimers[e._id]=setTimeout(o._ended.bind(o,e),t)),o._webAudio&&!i&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,o._clearTimer(e._id),o._cleanBuffer(e._node),n._autoSuspend()),o._webAudio||i||o.stop(e._id,!0)),o},_clearTimer:function(e){var t;return this._endTimers[e]&&("function"!=typeof this._endTimers[e]?clearTimeout(this._endTimers[e]):(t=this._soundById(e))&&t._node&&t._node.removeEventListener("ended",this._endTimers[e],!1),delete this._endTimers[e]),this},_soundById:function(e){for(var t=0;t<this._sounds.length;t++)if(e===this._sounds[t]._id)return this._sounds[t];return null},_inactiveSound:function(){this._drain();for(var e=0;e<this._sounds.length;e++)if(this._sounds[e]._ended)return this._sounds[e].reset();return new o(this)},_drain:function(){var e=this,t=e._pool,n=0,o=0;if(!(e._sounds.length<t)){for(o=0;o<e._sounds.length;o++)e._sounds[o]._ended&&n++;for(o=e._sounds.length-1;0<=o;o--){if(n<=t)return;e._sounds[o]._ended&&(e._webAudio&&e._sounds[o]._node&&e._sounds[o]._node.disconnect(0),e._sounds.splice(o,1),n--)}}},_getSoundIds:function(e){if(void 0!==e)return[e];for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t},_refreshBuffer:function(e){return e._node.bufferSource=n.ctx.createBufferSource(),e._node.bufferSource.buffer=i[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,n.ctx.currentTime),this},_cleanBuffer:function(e){var t=n._navigator&&0<=n._navigator.vendor.indexOf("Apple");if(e.bufferSource){if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=n._scratchBuffer}catch(e){}e.bufferSource=null}return this},_clearSound:function(e){/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}},(o=function(e){this._parent=e,this.init()}).prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,o=n._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(o,n.ctx.currentTime),e._node.paused=!0,e._node.connect(n.masterGain)):n.noAudio||(e._node=n._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(n._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=o*n.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,e},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var e=this._parent;e._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),this._node.removeEventListener(n._canPlayEvent,this._loadFn,!1)},_endListener:function(){var e=this._parent;e._duration===1/0&&(e._duration=Math.ceil(10*this._node.duration)/10,e._sprite.__default[1]===1/0&&(e._sprite.__default[1]=1e3*e._duration),e._ended(this)),this._node.removeEventListener("ended",this._endFn,!1)}},i={},r=function(e){var t=e._src;if(i[t])e._duration=i[t].duration,l(e);else if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),o=new Uint8Array(n.length),r=0;r<n.length;++r)o[r]=n.charCodeAt(r);a(o.buffer,e)}else{var c=new XMLHttpRequest;c.open(e._xhr.method,t,!0),c.withCredentials=e._xhr.withCredentials,c.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(t){c.setRequestHeader(t,e._xhr.headers[t])}),c.onload=function(){var t=(c.status+"")[0];"0"!==t&&"2"!==t&&"3"!==t?e._emit("loaderror",null,"Failed loading audio file with status: "+c.status+"."):a(c.response,e)},c.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete i[t],e.load())},s(c)}},s=function(e){try{e.send()}catch(t){e.onerror()}},a=function(e,t){function o(){t._emit("loaderror",null,"Decoding audio data failed.")}function r(e){e&&0<t._sounds.length?(i[t._src]=e,l(t,e)):o()}"undefined"!=typeof Promise&&1===n.ctx.decodeAudioData.length?n.ctx.decodeAudioData(e).then(r).catch(o):n.ctx.decodeAudioData(e,r,o)},l=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},c=function(){if(n.usingWebAudio){try{"undefined"!=typeof AudioContext?n.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch(e){n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),t=(t=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))?parseInt(t[1],10):null;e&&t&&t<9&&(e=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase()),n._navigator)&&!e&&(n.usingWebAudio=!1),n.usingWebAudio&&(n.masterGain=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}},e.Howler=n,e.Howl=g,void 0!==t?(t.HowlerGlobal=f,t.Howler=n,t.Howl=g,t.Sound=o):"undefined"!=typeof window&&(window.HowlerGlobal=f,window.Howler=n,window.Howl=g,window.Sound=o),HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){if(this.ctx&&this.ctx.listener)for(var t=this._howls.length-1;0<=t;t--)this._howls[t].stereo(e);return this},HowlerGlobal.prototype.pos=function(e,t,n){var o=this;if(o.ctx&&o.ctx.listener){if(t="number"!=typeof t?o._pos[1]:t,n="number"!=typeof n?o._pos[2]:n,"number"!=typeof e)return o._pos;o._pos=[e,t,n],void 0!==o.ctx.listener.positionX?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2])}return o},HowlerGlobal.prototype.orientation=function(e,t,n,o,i,r){var s=this;if(s.ctx&&s.ctx.listener){var a=s._orientation;if(t="number"!=typeof t?a[1]:t,n="number"!=typeof n?a[2]:n,o="number"!=typeof o?a[3]:o,i="number"!=typeof i?a[4]:i,r="number"!=typeof r?a[5]:r,"number"!=typeof e)return a;s._orientation=[e,t,n,o,i,r],void 0!==s.ctx.listener.forwardX?(s.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),s.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),s.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),s.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),s.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),s.ctx.listener.upZ.setTargetAtTime(r,Howler.ctx.currentTime,.1)):s.ctx.listener.setOrientation(e,t,n,o,i,r)}return s},Howl.prototype.init=(u=Howl.prototype.init,function(e){return this._orientation=e.orientation||[1,0,0],this._stereo=e.stereo||null,this._pos=e.pos||null,this._pannerAttr={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:360,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:360,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:0,distanceModel:void 0!==e.distanceModel?e.distanceModel:"inverse",maxDistance:void 0!==e.maxDistance?e.maxDistance:1e4,panningModel:void 0!==e.panningModel?e.panningModel:"HRTF",refDistance:void 0!==e.refDistance?e.refDistance:1,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:1},this._onstereo=e.onstereo?[{fn:e.onstereo}]:[],this._onpos=e.onpos?[{fn:e.onpos}]:[],this._onorientation=e.onorientation?[{fn:e.onorientation}]:[],u.call(this,e)}),Howl.prototype.stereo=function(e,t){var n=this;if(n._webAudio)if("loaded"!==n._state)n._queue.push({event:"stereo",action:function(){n.stereo(e,t)}});else{var o=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===t){if("number"!=typeof e)return n._stereo;n._stereo=e,n._pos=[e,0,0]}for(var i=n._getSoundIds(t),r=0;r<i.length;r++){var s=n._soundById(i[r]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||p(s,o),"spatial"==o?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),n._emit("stereo",s._id)}}}return n},Howl.prototype.pos=function(e,t,n,o){var i=this;if(i._webAudio)if("loaded"!==i._state)i._queue.push({event:"pos",action:function(){i.pos(e,t,n,o)}});else{if(t="number"!=typeof t?0:t,n="number"!=typeof n?-.5:n,void 0===o){if("number"!=typeof e)return i._pos;i._pos=[e,t,n]}for(var r=i._getSoundIds(o),s=0;s<r.length;s++){var a=i._soundById(r[s]);if(a){if("number"!=typeof e)return a._pos;a._pos=[e,t,n],a._node&&(a._panner&&!a._panner.pan||p(a,"spatial"),void 0!==a._panner.positionX?(a._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),a._panner.positionY.setValueAtTime(t,Howler.ctx.currentTime),a._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):a._panner.setPosition(e,t,n)),i._emit("pos",a._id)}}}return i},Howl.prototype.orientation=function(e,t,n,o){var i=this;if(i._webAudio)if("loaded"!==i._state)i._queue.push({event:"orientation",action:function(){i.orientation(e,t,n,o)}});else{if(t="number"!=typeof t?i._orientation[1]:t,n="number"!=typeof n?i._orientation[2]:n,void 0===o){if("number"!=typeof e)return i._orientation;i._orientation=[e,t,n]}for(var r=i._getSoundIds(o),s=0;s<r.length;s++){var a=i._soundById(r[s]);if(a){if("number"!=typeof e)return a._orientation;a._orientation=[e,t,n],a._node&&(a._panner||(a._pos||(a._pos=i._pos||[0,0,-.5]),p(a,"spatial")),void 0!==a._panner.orientationX?(a._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),a._panner.orientationY.setValueAtTime(t,Howler.ctx.currentTime),a._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):a._panner.setOrientation(e,t,n)),i._emit("orientation",a._id)}}}return i},Howl.prototype.pannerAttr=function(){var e,t,n=this,o=arguments;if(n._webAudio){if(0===o.length)return n._pannerAttr;if(1===o.length){if("object"!=typeof o[0])return((s=n._soundById(parseInt(o[0],10)))||n)._pannerAttr;e=o[0],void 0===t&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),n._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:n._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:n._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:n._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:n._panningModel})}else 2===o.length&&(e=o[0],t=parseInt(o[1],10));for(var i,r,s,a=n._getSoundIds(t),l=0;l<a.length;l++)(s=n._soundById(a[l]))&&(i=s._pannerAttr,i={coneInnerAngle:(void 0!==e.coneInnerAngle?e:i).coneInnerAngle,coneOuterAngle:(void 0!==e.coneOuterAngle?e:i).coneOuterAngle,coneOuterGain:(void 0!==e.coneOuterGain?e:i).coneOuterGain,distanceModel:(void 0!==e.distanceModel?e:i).distanceModel,maxDistance:(void 0!==e.maxDistance?e:i).maxDistance,refDistance:(void 0!==e.refDistance?e:i).refDistance,rolloffFactor:(void 0!==e.rolloffFactor?e:i).rolloffFactor,panningModel:(void 0!==e.panningModel?e:i).panningModel},(r=s._panner)||(s._pos||(s._pos=n._pos||[0,0,-.5]),p(s,"spatial"),r=s._panner),r.coneInnerAngle=i.coneInnerAngle,r.coneOuterAngle=i.coneOuterAngle,r.coneOuterGain=i.coneOuterGain,r.distanceModel=i.distanceModel,r.maxDistance=i.maxDistance,r.refDistance=i.refDistance,r.rolloffFactor=i.rolloffFactor,r.panningModel=i.panningModel)}return n},Sound.prototype.init=(h=Sound.prototype.init,function(){var e=this,t=e._parent;e._orientation=t._orientation,e._stereo=t._stereo,e._pos=t._pos,e._pannerAttr=t._pannerAttr,h.call(this),e._stereo?t.stereo(e._stereo):e._pos&&t.pos(e._pos[0],e._pos[1],e._pos[2],e._id)}),Sound.prototype.reset=(d=Sound.prototype.reset,function(){var e=this,t=e._parent;return e._orientation=t._orientation,e._stereo=t._stereo,e._pos=t._pos,e._pannerAttr=t._pannerAttr,e._stereo?t.stereo(e._stereo):e._pos?t.pos(e._pos[0],e._pos[1],e._pos[2],e._id):e._panner&&(e._panner.disconnect(0),e._panner=void 0,t._refreshBuffer(e)),d.call(this)}),p=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}),jr;function f(){this.init()}function g(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")}}();class Gr extends Rr{constructor(e){super(e),this.onClick=()=>{super.onClick(),this.ready&&(this.paused?this.play():this.pause())},this.started=!1,this.paused=!0,this.ready=!1,this.stopped=!1,this.play=this.play.bind(this),this.stop=this.stop.bind(this),this.pause=this.pause.bind(this),this.onReady=this.onReady.bind(this),this.onPlay=this.onPlay.bind(this),this.onPause=this.onPause.bind(this)}onOut(){}onOver(){}play(){}stop(){}pause(){}onReady(){this.ready=!0}onPlay(){this.started=!0,this.paused=!1,this.stopped=!1,this.signals.poiMediaPlayed.dispatch(this.code)}onPause(){this.started=!1,this.paused=!0,this.stopped||this.signals.poiMediaPaused.dispatch(this.code)}toggleVisibility(e,t=!1){this.pause(),super.toggleVisibility(e,t)}}class qr extends Gr{constructor(e){super(e),this.loop=!1,this.volume=50,this.range=220,this.audioObject=null,this.unloadAudio=()=>{this.audioObject&&(this.audioObject.unload(),this.audioObject=null)},this.sound=e.sound,this.url=e.url||ke.SOUND_PLAY,this.altUrl=e.url||ke.SOUND_PAUSE,this.type=ue.SOUND;var{volume:e,range:t,loop:n}=e;this.volume=void 0!==e?e/100:.5,this.range=void 0!==t?t:220,this.loop=void 0!==n&&n}mute(e,t){var n;null!=(n=this.audioObject)&&n.mute(e,t)}stop(){return ce(this,void 0,void 0,function*(){this.ready&&!this.paused&&(this.audioObject&&this.audioObject.stop(),this.unloadAudio())})}pause(){return ce(this,void 0,void 0,function*(){this.ready&&!this.paused&&this.audioObject&&this.audioObject.pause()})}play(){return ce(this,void 0,void 0,function*(){var e;this.ready&&!this.started&&(this.audioObject?this.audioObject.playing()||this.audioObject.play():((e=new Wr.Howl({src:[""+this.sound.url],loop:this.loop,volume:this.volume,html5:!0,onend:()=>{this.onPause(),this.unloadAudio()},onplay:()=>{this.onPlay()},onpause:()=>{this.onPause()},onstop:()=>{this.stopped=!0,this.onPause()}})).play(),this.audioObject=e))})}create(e){super.create(e),this.sound&&this.sound.url&&!this.ready&&(new Audio(this.sound.url),this.onReady())}onPause(){super.onPause();var e,t=this.krpano.get(`hotspot[${this.code}]`);t&&(e=ln(this.props),t.url=Cn(e),t=dn(this.props))&&t.imageStrip&&this.krpano.call(`set(hotspot[${this.code}].onloaded, ${Hn(this.props)})`)}onPlay(){super.onPlay();var e=this.krpano.get(`hotspot[${this.code}]`);e&&(e.url=this.altUrl,((e,t)=>{e.call(`set(hotspot[${t}].onloaded, '')`),e.call(`clearinterval(crop_anim_${t}); \n set(hotspot[${t}].crop, '');`)})(this.krpano,this.code))}}class Xr extends Gr{constructor(e){super(e),this.image=e.image,this.video=e.video,this.url=e.image?e.image.url:ke.VIDEO,this.type=ue.VIDEO,this.started=!1,this.paused=!0,this.ready=!1}play(){this.ready&&!this.started&&this.krpano.call(`hotspot[${this.code}].play()`)}stop(){this.ready&&!this.paused&&(this.stopped=!0,this.pause())}pause(){this.ready&&!this.paused&&this.krpano.call(`hotspot[${this.code}].pause()`)}create(e){var t,n,o;this.video&&(t=we.VIDEO_PLAYER,n=this.video.url,o=this.video.url.replace("mp4","webm"),this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].url, ${t});`),this.krpano.call(`set(hotspot[${this.code}].videourl, ${n+"#t=3"}|${o});`),this.image&&this.krpano.call(`set(hotspot[${this.code}].posterurl, ${Zt(sn(this.image,(this.width||0)*(this.scale||1)))});`),this.krpano.call(`set(hotspot[${this.code}].html5preload, 'metadata');`),this.krpano.call(`set(hotspot[${this.code}].loop, true);`),this.krpano.call(`set(hotspot[${this.code}].pausedonstart, true);`),this.krpano.call(`set(hotspot[${this.code}].edge, center);`),this.krpano.call(`set(hotspot[${this.code}].ath,${this.ath});`),this.krpano.call(`set(hotspot[${this.code}].atv,${this.atv});`),this.krpano.call(`set(hotspot[${this.code}].alpha,${this.alpha});`),this.krpano.call(`set(hotspot[${this.code}].scale,${this.scale});`),this.krpano.call(`set(hotspot[${this.code}].rotate,${this.rotate});`),this.krpano.call(`set(hotspot[${this.code}].width,${this.width});`),this.krpano.call(`set(hotspot[${this.code}].height,${this.height});`),this.krpano.call(`set(hotspot[${this.code}].rx,${this.rx});`),this.krpano.call(`set(hotspot[${this.code}].ry,${this.ry});`),this.krpano.call(`set(hotspot[${this.code}].rz,${this.rz});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.set(`hotspot[${this.code}].onvideoready`,()=>{this.onReady()}),this.krpano.set(`hotspot[${this.code}].onvideoplay`,()=>{this.onPlay()}),this.krpano.set(`hotspot[${this.code}].onvideopaused`,()=>{this.onPause()}),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{this.krpano.set(`hotspot[${this.code}].visible`,this.visible),super.addEvents(),e&&e(this)}))}}class Qr{constructor(e){this.code="bg"+(Date.now()+Math.random()|0),this.url=ke.BACKGROUND,this.krpano=e.krpano,this.padding=20}create(e){this.krpano.call(`addhotspot(${this.code});`),this.krpano.set(`hotspot[${this.code}].visible`,"false"),this.krpano.set(`hotspot[${this.code}].url`,Cn(this.url)),e&&e(this)}update(e){var t;this.krpano.set(`hotspot[${this.code}].ath`,e.ath),this.krpano.set(`hotspot[${this.code}].atv`,e.atv),this.krpano.set(`hotspot[${this.code}].scale`,e.scale),this.krpano.set(`hotspot[${this.code}].rotate`,e.rotate),this.krpano.set(`hotspot[${this.code}].rx`,e.rx),this.krpano.set(`hotspot[${this.code}].ry`,e.ry),this.krpano.set(`hotspot[${this.code}].rz`,e.rz),this.krpano.set(`hotspot[${this.code}].distorted`,e.distorted),e.width?(this.krpano.set(`hotspot[${this.code}].width`,e.width+20),this.krpano.set(`hotspot[${this.code}].height`,e.height+20)):(t=this.krpano.get(`hotspot[${e.code}]`),this.krpano.set(`hotspot[${e.code}].width`,t.imagewidth+20),this.krpano.set(`hotspot[${e.code}].height`,t.imageheight+20))}show(){this.krpano.set(`hotspot[${this.code}].visible`,"true")}hide(){this.krpano.set(`hotspot[${this.code}].visible`,"false")}}class Zr{constructor(e){this.name="floorspot"+(Date.now()+Math.random()|0),this.krpano=e.krpano,this.signals=e.signals,this.onPointerMove=e.onPointerMove,this.visible=!1,this.allowVisibility=!0,this.timeout=null,this.placeHotspotAtMouse=this.placeHotspotAtMouse.bind(this),this.trackMouse=this.trackMouse.bind(this),this.onClick=this.onClick.bind(this),this.toggleVisible=this.toggleVisible.bind(this)}onClick(){this.signals.floorPoiClick.dispatch()}trackMouse(){var e,t,n;this.onPointerMove&&this.onPointerMove(),this.allowVisibility?(n=this.krpano.get("mouse"),({x:n,y:t}=this.krpano.screentosphere(n.x,n.y)),t<0?(this.krpano.set(`hotspot[${this.name}].alpha`,0),this.toggleVisible(!1)):(this.krpano.set("sphere_x",n),this.krpano.set("sphere_y",t),this.krpano.set("sphere_z",1),this.krpano.call("spheretospace('sphere_x', 'sphere_y', 'sphere_z', 'space_x', 'space_y', 'space_z')"),n=300*(n=this.krpano.get("space_x"))/(t=this.krpano.get("space_y")),e=300*(e=this.krpano.get("space_z"))/t,this.krpano.set(`hotspot[${this.name}].tx`,n),this.krpano.set(`hotspot[${this.name}].tz`,e),this.krpano.set(`hotspot[${this.name}].ty`,300),n=(t=Math.sqrt(n*n+e*e))<1e3?1:1-(t-1e3)/100,n=Math.max(n,0),this.krpano.set(`hotspot[${this.name}].alpha`,n),this.toggleVisible(!!n))):this.toggleVisible(!1)}placeHotspotAtMouse(){this.timeout=setInterval(this.trackMouse,1e3/60)}stopPlacingHotspotAtMouse(){this.timeout&&(clearInterval(this.timeout),this.timeout=null)}create(e){this.timeout=setTimeout(()=>{this.krpano.call(`addhotspot(${this.name});`),this.krpano.call(`\n set(hotspot[${this.name}].type, text);\n set(hotspot[${this.name}].devices, mouse);\n set(hotspot[${this.name}].css, font-size:80px;text-align:center;);\n set(hotspot[${this.name}].vcenter, true);\n set(hotspot[${this.name}].width, 200);\n set(hotspot[${this.name}].height, 200);\n set(hotspot[${this.name}].scale, 0.2);\n set(hotspot[${this.name}].bgalpha, 0.3);\n set(hotspot[${this.name}].bgroundedge, 100);\n set(hotspot[${this.name}].bgshadow, '0 0 5 0xFFFFFF 1.0');\n set(hotspot[${this.name}].oversampling, 2);\n set(hotspot[${this.name}].mipmapping, true);\n set(hotspot[${this.name}].zorder, ${P.BASE});\n set(hotspot[${this.name}].distorted, true);\n set(hotspot[${this.name}].depth, 0);\n set(hotspot[${this.name}].depthbuffer, true);\n set(hotspot[${this.name}].torigin, world);\n set(hotspot[${this.name}].rotationorder, xyz);\n set(hotspot[${this.name}].rx, -90);\n set(hotspot[${this.name}].capture, false);\n set(hotspot[${this.name}].capturefocus, false);\n set(hotspot[${this.name}].handcursor, false);\n set(hotspot[${this.name}].autoalpha, true);\n set(hotspot[${this.name}].visible, true);\n `),this.krpano.set(`hotspot[${this.name}].onloaded`,()=>{this.placeHotspotAtMouse(),this.krpano.set(`hotspot[${this.name}].onclick`,this.onClick),this.krpano.set(`hotspot[${this.name}].onup`,()=>{this.signals.poiMouseUp.dispatch()}),this.signals.toggleFloorPoi.add(e=>{this.toggleVisible(e)})})},500)}toggleVisible(e){this.visible=e,this.krpano.set(`hotspot[${this.name}].visible`,e&&this.allowVisibility)}toggleAllowVisibility(e){this.allowVisibility=e,this.trackMouse()}getVisible(){return this.visible&&this.allowVisibility}}let Kr=.32;class Jr{constructor(e){this.scale=.2,this.ox=0,this.oy=0,this.ry=0,this.width=0,this.height=0,this.north=0,this.alpha=Kr,this.hovering=!1,this.krpano=e.krpano,this.signals=e.signals,this.visible=!0,this.timeout=null,this.direction=e.direction;var t=`nav_${Kt()}_`+this.direction.toLowerCase();this.name=t+"_arrow",this.lblName=t+"_label",t=e.label||"",this.label=t.slice(0,39),t.length>39&&(this.label=this.label+"..."),this.sceneCode=e.sceneCode,this.north=e.north||0,this.ry=this.north,this.width=100,this.height=60,this.url=ke.NAVIGATION_ARROW,this.hoverUrl=ke.NAVIGATION_HIGHLIGHT,yn(this.krpano)&&(this.scale=.4),t=200*this.scale;switch(this.oy=-t,this.direction){case De.NORTH:break;case De.SOUTH:this.ry+=180;break;case De.EAST:this.ry+=90;break;case De.WEST:this.ry+=-90;break;case De.NORTH_EAST:this.ry+=45;break;case De.NORTH_WEST:this.ry+=-45;break;case De.SOUTH_EAST:this.ry+=135;break;case De.SOUTH_WEST:this.ry+=-135}this.trackView=this.trackView.bind(this),this.onClick=this.onClick.bind(this),this.onHover=this.onHover.bind(this),this.onOut=this.onOut.bind(this)}onClick(){this.signals.navigationPoiClick.dispatch(this.direction)}onHover(){this.hovering=!0,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, 1);,);`),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].alpha, 1);,);`)}onOut(){this.hovering=!1,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, ${this.alpha});,);`),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].alpha, ${this.alpha});,);`)}trackView(e,t,n){this.krpano.set(`hotspot[${this.name}].tx`,e),this.krpano.set(`hotspot[${this.name}].ty`,t),this.krpano.set(`hotspot[${this.name}].tz`,n),this.krpano.set(`hotspot[${this.lblName}].tx`,e),this.krpano.set(`hotspot[${this.lblName}].ty`,t),this.krpano.set(`hotspot[${this.lblName}].tz`,n)}createArrowHotspot(){this.isInActiveScene()&&(this.krpano.call(`addhotspot(${this.name});`),this.krpano.call(`\n set(hotspot[${this.name}].type, text);\n set(hotspot[${this.name}].devices, mouse);\n set(hotspot[${this.name}].url, ${this.url});\n set(hotspot[${this.name}].vcenter, true);\n set(hotspot[${this.name}].width, ${this.width});\n set(hotspot[${this.name}].height, ${this.height});\n set(hotspot[${this.name}].scale, ${this.scale});\n set(hotspot[${this.name}].ox, ${this.ox});\n set(hotspot[${this.name}].oy, ${this.oy});\n set(hotspot[${this.name}].oref, 1);\n set(hotspot[${this.name}].oversampling, 2);\n set(hotspot[${this.name}].mipmapping, true);\n set(hotspot[${this.name}].zorder, ${P.STANDARD});\n set(hotspot[${this.name}].distorted, true);\n set(hotspot[${this.name}].depth, 0);\n set(hotspot[${this.name}].depthbuffer, true);\n set(hotspot[${this.name}].torigin, world);\n set(hotspot[${this.name}].rotationorder, xyz);\n set(hotspot[${this.name}].rx, -90);\n set(hotspot[${this.name}].ry, ${this.ry});\n set(hotspot[${this.name}].capture, false);\n set(hotspot[${this.name}].capturefocus, true);\n set(hotspot[${this.name}].handcursor, true);\n set(hotspot[${this.name}].cursor, pointer);\n set(hotspot[${this.name}].autoalpha, true);\n set(hotspot[${this.name}].alpha, ${this.alpha});\n `))}createLabel(){var e;this.label&&this.isInActiveScene()&&(this.krpano.call(`addhotspot(${this.lblName});`),e=-Math.abs((this.ox||this.oy)/this.scale)-100,this.krpano.call(`\n set(hotspot[${this.lblName}].type, text);\n set(hotspot[${this.lblName}].devices, mouse);\n set(hotspot[${this.lblName}].renderer, css3d);\n set(hotspot[${this.lblName}].css, font-size:28px;text-align:center;color:#fff;text-shadow: 3px 3px #000;transform:translate(0, ${e}px));\n set(hotspot[${this.lblName}].vcenter, true);\n set(hotspot[${this.lblName}].bgalpha, 0);\n set(hotspot[${this.lblName}].width, 800);\n set(hotspot[${this.lblName}].height, 800);\n set(hotspot[${this.lblName}].scale, ${this.scale});\n set(hotspot[${this.lblName}].oref, 2);\n set(hotspot[${this.lblName}].oversampling, 2);\n set(hotspot[${this.lblName}].mipmapping, true);\n set(hotspot[${this.lblName}].zorder, ${P.STANDARD});\n set(hotspot[${this.lblName}].distorted, true);\n set(hotspot[${this.lblName}].depth, 0);\n set(hotspot[${this.lblName}].depthbuffer, true);\n set(hotspot[${this.lblName}].torigin, world);\n set(hotspot[${this.lblName}].rotationorder, xyz);\n set(hotspot[${this.lblName}].rx, -90);\n set(hotspot[${this.lblName}].ry, ${this.ry});\n set(hotspot[${this.lblName}].capture, false);\n set(hotspot[${this.lblName}].capturefocus, false);\n set(hotspot[${this.lblName}].alpha, ${this.alpha});\n `),this.krpano.set(`hotspot[${this.lblName}].html`,`[div]${this.label}[/div]`),this.krpano.set(`hotspot[${this.lblName}].onloaded`,()=>{this.isInActiveScene()?this.krpano.set(`hotspot[${this.lblName}].visible`,!1):this.krpano.call(`removehotspot(${this.lblName})`)}))}create(e){this.hovering=!1,this.alpha=Kr,setTimeout(()=>{this.isInActiveScene()?(this.createArrowHotspot(),this.createLabel(),this.krpano.set(`hotspot[${this.name}].onloaded`,()=>{this.isInActiveScene()?(this.krpano.set(`hotspot[${this.name}].visible`,this.visible),this.krpano.set(`hotspot[${this.name}].onclick`,this.onClick),this.krpano.set(`hotspot[${this.name}].onhover`,this.onHover),this.krpano.set(`hotspot[${this.name}].onout`,this.onOut),this.krpano.set(`hotspot[${this.name}].onup`,()=>{this.signals.poiMouseUp.dispatch()}),e&&e(this)):this.krpano.call(`removehotspot(${this.name})`)})):e&&e(this)},500)}toggle(e,t=!1){t||(this.visible=e);let n=e;this.visible||(n=this.visible),this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].visible, ${n});,);`),n||this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].visible, ${n});,);`)}fade(e){let t=!e;this.visible||(t=!1),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].visible, ${t});,);`),this.visible&&!this.hovering&&(this.alpha=e?Kr:.64,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, ${this.alpha});,);`))}isInActiveScene(){return(this.krpano.get("xml.scene")||"").toLowerCase()===(this.sceneCode||"").toLowerCase()}}class es extends Rr{constructor(e){super(e),this.url=e.url||ke.GALLERY,this.type=ue.GALLERY,this.gallery=e.gallery,this.hoverCode=un(this.code),this.hovering=!1,this.keepHover=!1,this.bannerVisible=!1,this.keepBannerVisible=!1,this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.toggleBanner=this.toggleBanner.bind(this),this.hideBanner=this.hideBanner.bind(this),this.handleOnLoaded=this.handleOnLoaded.bind(this)}getLookAtPosition(){var{h:e,v:t}=xn(this.krpano,this);return{ath:e,atv:t}}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onOver(){super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.HOVERING});`)}onOut(){super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.STANDARD});`),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e)}hideBanner(){this.bannerVisible&&!this.keepBannerVisible&&this.toggleBanner(!1)}handleOnLoaded(){var e=this.krpano.get(`hotspot[${this.hoverCode}]`),t=e.sprite.style.transform;e.sprite.style.transform=`${t} translateY(calc(-50% - ${(this.height||0)*(this.scale||1)/2}px))`}renderLaserTooltip(){var e=Object.assign(Object.assign({},this),{position:this.position,overviewPosition:this.overviewPosition});e=Ln(this.krpano,e,this.language);In(this.krpano,this.props,e)}create(e){e&&(this.onDone=e),kn(this)&&this.createFocusingHotspot(),this.renderLaserTooltip(),Un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)})}}class ts extends Rr{constructor(e){super(e),this.toggleDustEffect=e=>`\n if(${this.showDustEffect} AND !hide_all_lensflares AND view.fisheye LT 1,\n set(layer[blink_fl_lt_${this.code}].alpha, ${e});\n set(layer[blink_fl_rt_${this.code}].alpha, ${e});\n set(layer[blink_fl_rb_${this.code}].alpha, ${e});\n set(layer[blink_fl_lb_${this.code}].alpha, ${e});\n );\n `,this.updateFlares=e=>{var t="xposh_"+e,n="yposh_"+e;return`\n if(${n} LT 0 OR !${n},\n set(ukryj_gora_${e}, true);\n ,\n set(ukryj_gora_${e}, false);\n );\n\n if(${n} GT stageheight OR !${n},\n set(ukryj_dol_${e}, true);\n ,\n set(ukryj_dol_${e}, false);\n );\n\n set(zero_lewo_123, 0);\n copy(zero_prawo_123, stagewidth);\n\n if(fwebvr.isenabled,\n set(zero_lewo_123, 360);\n set(zero_prawo_123, calc(stagewidth-360));\n );\n\n if(${t} LT zero_lewo_123 OR !${t},\n set(ukryj_lewo_${e}, true);\n ,\n set(ukryj_lewo_${e}, false);\n );\n\n if(${t} GT zero_prawo_123 OR !${t},\n set(ukryj_prawo_${e}, true);\n ,\n set(ukryj_prawo_${e}, false);\n );\n\n getlooktodistance(re_${e}, view.hlookat, view.vlookat, ath, atv);\n\n if((!ukryj_gora_${e} AND !ukryj_dol_${e} AND !ukryj_lewo_${e} AND !ukryj_prawo_${e} AND re_${e} LT 90) AND view.fisheye LT 1,\n set(visible, true);\n ,\n set(visible, false);\n );\n `},this.krpano=e.krpano,this.url=e.url||ke.MOVING,this.metadata=e.metadata,this.type=ue.LENSFLARE,this.flareStyle=e.flareStyle||"DAY_LIGHT_1",this.showDustEffect="boolean"!=typeof e.showDustEffect||e.showDustEffect,this.desktopOnly="boolean"!=typeof e.desktopOnly||e.desktopOnly,this.ath=e.ath||0,this.atv=e.atv||0}create(){this.metadata?this.preview():console.warn("metadata empty")}preview(){this.clear();var e=this.krpano.get("device.mobile");this.desktopOnly&&e||(this.createDustLayers(),this.addSingleFlare())}clear(){var e;this.metadata&&(e=this.metadata.flares[this.flareStyle])&&(Object.values(e).forEach((e,t)=>{e=e.name,e=`f1_${this.code}_${e}_`+t,this.krpano.get(`hotspot[${e}]`)&&this.krpano.call(`removehotspot(${e})`)}),(this.metadata.dusts||[]).forEach(e=>{e=e.name+"_"+this.code,this.krpano.get(`removelayer[${e}]`)&&this.krpano.call(`removelayer(${e})`)}))}createDustLayers(){this.metadata&&this.metadata.dusts.forEach(e=>{var t=e.name+"_"+this.code;this.krpano.call(`\n addlayer(${t});\n copy(dustLayer, layer[${t}]);\n ${Object.entries(e).map(([e,t])=>`set(dustLayer.${e}, ${t});`).join("\n")}\n set(dustLayer.enabled, false);\n `)})}addSingleFlare(){var e;this.metadata&&(e=this.metadata.flares[this.flareStyle])&&Object.values(e).forEach((e,t)=>{var{name:e,url:n,vars:o}=e,i=`f1_${this.code}_${e}_`+t,[o,r,s,a,l,c,u,h,d,p,f]=(e=`f1_${this.code}_${e}_0`,o.split("|"));this.krpano.call(`\n set(hide_all_lensflares, false);\n addhotspot(${i});\n copy(hfla, hotspot[${i}]);\n\n set(hfla.distrored, true);\n set(hfla.enabled, false);\n set(hfla.alpha, 0);\n set(hfla.zorder, ${P.MAX});\n set(hfla.depth, 1000);\n set(hfla.edge, center);\n set(hfla.ox, 0);\n set(hfla.oy, 0);\n set(hfla.width, 440);\n set(hfla.height, 440);\n set(hfla.keep, false);\n\n set(hfla.url, ${n});\n set(hfla.ath, ${this.ath});\n set(hfla.atv, ${this.atv});\n set(hfla.dusteffect, ${this.showDustEffect});\n set(hfla.move, ${o});\n set(hfla.rmove, ${d});\n copy(hfla.athbazowy, hotspot[${e}].ath);\n copy(hfla.atvbazowy, hotspot[${e}].atv);\n set(hfla.flying, ${l});\n set(hfla.scale, ${r});\n set(hfla.alpha, ${s});\n set(hfla._alpha, ${s});\n set(hfla.rscale, ${c});\n set(hfla.ralpha, ${u});\n set(hfla.ralphaminus, ${h});\n set(hfla.zorder, ${a});\n set(hfla.invr, ${p});\n set(hfla.blendmode, ${f});\n set(scaleTemp_${i}, ${r});\n\n set(hfla.onloaded,\n if(webvr.isenabled, if(!invr, if(hotspot[${i}].loaded, removehotspot(${i}));));\n\n asyncloop(loaded,\n spheretoscreen(ath, atv, xposh_${i}, yposh_${i});\n div(xpos_${i}, stagewidth, 2);\n div(ypos_${i}, stageheight, 2);\n sub(xposg_${i}, xposh_${i}, xpos_${i});\n sub(yposg_${i}, yposh_${i}, ypos_${i});\n div(ox, xposg_${i}, calc(move*1.4/(rmove*12)));\n div(oy, yposg_${i}, calc(move*1.4/(rmove*12)));\n\n getlooktodistance(scal_${i}, view.hlookat, view.vlookat, ath, atv);\n\n spheretoscreen(athbazowy, atvbazowy, px_${i}, py_${i});\n sub(a_${i}, px_${i}, xpos_${i});\n sub(b_${i}, ypos_${i}, py_${i});\n Math.atan2(angle_${i}, a_${i}, b_${i});\n mul(angle_${i}, 180);\n div(angle_${i}, Math.PI);\n add(angle_${i}, 270);\n mod(angle_${i}, 360);\n roundval(angle_${i});\n copy(rz, angle_${i});\n\n if(ralpha,\n set(alpha_${i}, calc((scal_${i}/70)-ralphaminus));\n if(alpha_${i} LE 0, set(alpha_${i}, 0));\n if(webVr.isenabled,\n set(hotspot[${i}].alpha, calc(alpha_${i}/3));\n ,\n set(hotspot[${i}].alpha, calc(alpha_${i}));\n if(hotspot[${i}].alpha GT 1, set(hotspot[${i}].alpha, 1));\n );\n ,\n set(hotspot[${i}].alpha, ${s})\n );\n if(rscale != 1,\n set(valsc_${i}, calc((rscale*scal_${i})/10+scaleTemp_${i}));\n if(webVr.isenabled,\n set(scale, calc(valsc_${i}/2));\n ,\n copy(scale, valsc_${i});\n );\n );\n \n if(${t} == '1',\n getlooktodistance(result_${i}, view.hlookat, view.vlookat, ath, atv);\n div(result1_${i}, result_${i}, 10);\n clamp(result1_${i}, 0.0, 1.0);\n mod(result2_${i}, result1_${i}, 100);\n sub(result2_${i},1);\n mul(result2_${i},-1);\n\n copy(alpha, result2_${i});\n sub(alpha, 0.3);\n if(result_${i} LT 7,\n ${this.toggleDustEffect(`get(result2_${i})`)}\n );\n if(result_${i} GT 7 AND result_${i} LT 20,\n ${this.toggleDustEffect(0)}\n );\n );\n ${this.updateFlares(i)}\n );\n );\n `)})}}class ns extends Rr{constructor(e){super(e),this.label="",this.spheretoscreen=()=>{var{ath:e,atv:t}=this.getHoverPosition();return this.krpano.spheretoscreen(e,t)},this.moveToScene=e.moveToScene,this.moveToFloorplan=e.moveToFloorplan,this.url=e.url||ke.MOVING,this.type=ue.MOVING,this.isLookAt=!1,this.previewType=e.previewType||Te,this.label=e.label||"",this.previewType===Pe?this.alwaysShowLabel=void 0===e.alwaysShow||e.alwaysShow:this.alwaysShowLabel=!1,this.alwaysOnFloor=e.alwaysOnFloor||!1,this.tx=e.tx||0,this.ty=e.ty||0,this.tz=e.tz||0,this.displayType=e.displayType||Ze,this.bgColor=e.bgColor||"#333333",this.color=e.color||"#ffffff",this.fontSize=e.fontSize||"12pt",this.precision=void 0===e.precision||e.precision,this.lookWhenMoving=!1,this.showingLabel=!1,this.hovering=!1,this.hoverCode=un(this.code),this.dispatchClick=this.dispatchClick.bind(this),this.createOnFloor=this.createOnFloor.bind(this),this.updateAlpha=this.updateAlpha.bind(this),this.revertAlpha=this.revertAlpha.bind(this),this.updateHovering=this.updateHovering.bind(this),this.getHoverPosition=this.getHoverPosition.bind(this)}dispatchClick(){var e=this.moveToScene&&this.moveToScene.code,t=this.moveToFloorplan&&this.moveToFloorplan.code;e&&this.signals.movingPoiClick.dispatch(e,t,this.ath,this.atv,{lookWhenMoving:this.lookWhenMoving})}onClick(){super.onClick(),!this.isMobileDevice||this.previewType===Te||this.alwaysShowLabel?this.dispatchClick():this.showingLabel?(this.dispatchClick(),this.hideLabel()):(this.signals.toggleLabels.dispatch(!1),this.showLabel(),this.isMobileDevice&&setTimeout(()=>{this.dispatchClick()},1e3))}onOver(){this.updateHovering(!0),super.onOver(),this.signals.poiOver.dispatch({poiData:this.props,coords:this.getCenter()})}onOut(){this.updateHovering(!1),super.onOut(),this.signals.poiOut.dispatch(),this.isMobileDevice||this.hideLabel()}onHover(){this.updateHovering(!0),this.signals.poiHover.dispatch(this.getCenter()),this.showLabel()}toggleLabel(e=!1,t=!1){this.previewType!==Te&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),t||!this.alwaysShowLabel||this.alwaysShowLabel&&e)&&(this.showingLabel=e)}showLabel(){this.toggleLabel(!0),this.isMobileDevice&&!this.alwaysShowLabel&&this.previewType===Pe&&(this.timeOut=setTimeout(()=>{this.hideLabel()},2e3))}hideLabel(){this.timeOut&&(clearTimeout(this.timeOut),this.timeOut=void 0),this.alwaysShowLabel||this.toggleLabel(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),(this.showingLabel||this.alwaysShowLabel&&e)&&this.toggleLabel(e,!0)}updateAlpha(e){this.hovering||this.isMobileDevice?this.revertAlpha():this.krpano.set(`hotspot[${this.code}].alpha`,e)}revertAlpha(){this.krpano.set(`hotspot[${this.code}].alpha`,this.alpha)}updateHovering(e){this.isMobileDevice||(this.hovering=e)}getHoverContent(){return`\n [div class="cvtv-moving-label-poi"]\n [div class="cvtv-moving-label-poi__inner"]${this.label}[/div]\n [div class="cvtv-moving-label-poi__arrow"]\n [span class="cvtv-moving-label-poi__arrow__content" /]\n [/div]\n [/div]\n `}createRoomNameCard(e){this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`\n set(hotspot[${this.code}].type, text);\n set(hotspot[${this.code}].renderer, css3d);\n set(hotspot[${this.code}].bgalpha, 0);\n set(hotspot[${this.code}].visible, true);\n set(hotspot[${this.code}].autowidth, true);\n set(hotspot[${this.code}].autoheight, true);\n set(hotspot[${this.code}].scale, ${this.scale});\n set(hotspot[${this.code}].ath, ${this.ath});\n set(hotspot[${this.code}].atv, ${this.atv});\n set(hotspot[${this.code}].rx, ${this.rx});\n set(hotspot[${this.code}].ry, ${this.ry});\n set(hotspot[${this.code}].rz, ${this.rz});\n set(hotspot[${this.code}].rotate, ${this.rotate});\n set(hotspot[${this.code}].distorted, ${this.distorted});\n set(hotspot[${this.code}].handcursor, true);\n set(hotspot[${this.code}].css, font-family:Barlow; font-size:14px; padding: 3rem;);\n `),this.krpano.set(`hotspot[${this.code}].html`,`\n [div]\n [div style="\n background-color: ${this.bgColor};\n padding: 0.5rem 1rem;\n display: flex;\n gap: 0.5rem;\n align-items: center;\n "]\n [img\n width="${this.width}"\n height="${this.height}"\n src="${Cn(ln(this.props))}"\n /]\n ${this.previewType===Te?"":`[span style="color: ${this.color}; font-size: ${this.fontSize}"]${this.label}[/span]`}\n [/div]\n [/div]\n `),setTimeout(()=>{super.addEvents()},500),e&&e(this)}createOnFloor(e){Bn(this.krpano,this.props),setTimeout(()=>{super.addEvents()},500),e&&e(this)}create(e){if(this.displayType===Ke)this.createRoomNameCard(e);else if(this.previewType===Te||this.previewType===Ce)this.alwaysOnFloor?this.createOnFloor(e):super.create(e);else{var t=this.getHoverContent(),n=Object.assign(Object.assign({},this.props),this.getHoverPosition());let o;Rn(this.krpano,n,t,!1),(o=(this.alwaysOnFloor?Bn:Un)(this.krpano,n)).then(()=>{this.alwaysShowLabel&&this.showLabel(),super.addEvents(),e&&e(this)})}}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.dispatchClick()})}getHoverPosition(){return this.alwaysOnFloor?this.krpano.spacetosphere(this.tx,this.ty,this.tz):{ath:this.ath,atv:this.atv}}isHideable(){return this.displayType!==Ke}}class os extends Rr{constructor(e){super(e),this.image=e.image,this.url=this.image?this.image.url:void 0,this.rotatewithview=e.rotatewithview||!1,this.type=ue.NADIR_LOGO,this.zenith=e.zenith||!1}create(e){if(this.url&&this.visible&&this.enabled){let o=this.props.rz||0;this.zenith&&(o+=180);var t=this.props.width||100,n=this.props.height||100;this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].type, 'image');`),this.krpano.call(`set(hotspot[${this.code}].url, ${this.url});`),this.krpano.call(`set(hotspot[${this.code}].ath, 0);`),this.krpano.call(`set(hotspot[${this.code}].atv, ${this.zenith?-90:90});`),this.krpano.call(`set(hotspot[${this.code}].width, ${t});`),this.krpano.call(`set(hotspot[${this.code}].height, ${n});`),this.krpano.call(`set(hotspot[${this.code}].rz, ${o});`),this.krpano.call(`set(hotspot[${this.code}].distorted, true);`),this.krpano.call(`set(hotspot[${this.code}].handcursor, false);`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.call(`set(hotspot[${this.code}].capturefocus, false);`),this.krpano.call(`set(hotspot[${this.code}].rotatewithview, ${this.rotatewithview});`),this.krpano.call(`set(hotspot[${this.code}].cursor, 'none');`),this.krpano.call(`set(hotspot[${this.code}].visible, true);`),this.krpano.call(`set(hotspot[${this.code}].enabled, true);`),e&&e(this)}}}class is extends Rr{constructor(e){super(e),this.image=e.image,this.url=e.image?e.image.url:ke.PHOTO,this.type=ue.PHOTO}create(e){super.create(e),this.krpano.call(`set(hotspot[${this.code}].capture,false);`)}onOut(){}onOver(){}isHideable(){return!1}}class rs extends Hr{constructor(e){super(e),this.type=ue.POLYGON,this.fillColor=e.fillColor||255,this.fillAlpha=e.fillAlpha||.2,this.borderWidth=e.borderWidth||3,this.borderColor=e.borderColor||255,this.borderAlpha=e.borderAlpha||1,this.zorder=e.zorder||1,this.points=e.points||[],this.mouseOver=!1}addDesktopEvents(){super.addDesktopEvents(),!this.isMobileDevice&&this.isHoverable()&&(this.krpano.set(`hotspot[${this.hoverCode}].onover`,()=>{this.mouseOver=!0}),this.krpano.set(`hotspot[${this.hoverCode}].onout`,()=>{this.mouseOver=!1,this.onOut()}))}onClick(){super.onClick(),this.isClickable()&&(this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch())}onOver(){this.isHoverable()&&super.onOver()}onOut(){this.isHoverable()&&!this.mouseOver&&super.onOut()}onHover(){this.isHoverable()&&this.show()}show(){this.krpano.set(`hotspot[${this.hoverCode}].visible`,"true"),this.hovering=!0}hide(){this.krpano.set(`hotspot[${this.hoverCode}].visible`,"false"),this.hovering=!1}toggleVisibility(e){this.hovering&&this.krpano.set(`hotspot[${this.hoverCode}].visible`,""+e)}getPolygonCenter(){var e=this.krpano.get(`hotspot[${this.code}]`);if(e)return e.getcenter()}getLookAtPosition(){var{x:e,y:t}=this.getPolygonCenter();return{ath:e,atv:t}}create(e){var t;e&&(this.onDone=e),this.itemInfo&&(this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].fillcolor,${this.fillColor});`),this.krpano.call(`set(hotspot[${this.code}].fillalpha,${this.fillAlpha});`),this.krpano.call(`set(hotspot[${this.code}].borderwidth,${this.borderWidth});`),this.krpano.call(`set(hotspot[${this.code}].bordercolor,${this.borderColor});`),this.krpano.call(`set(hotspot[${this.code}].borderalpha,${this.borderAlpha});`),this.krpano.call(`set(hotspot[${this.code}].zorder,${this.zorder});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{this.krpano.set(`hotspot[${this.code}].visible`,this.visible)}),this.points.forEach(e=>{var{code:e,ath:t,atv:n}=e;this.krpano.call(`set(hotspot[${this.code}], point[${e}].ath=${t}, point[${e}].atv=${n});`)}),(e=this.getPolygonCenter())&&(this.ath=e.x,this.atv=e.y),(e=this.getHoverContent())&&(t=Object.assign(Object.assign({},this.props),{ath:this.ath,atv:this.atv,height:0}),Rn(this.krpano,t,e)),setTimeout(()=>{this.addEvents()},200),this.onDone)&&this.onDone(this)}}class ss extends Rr{constructor(e){super(e),this.text=void 0,this.image=void 0,this.iframe=void 0,this.webRotateCode=void 0,this.iframeSize=void 0,this.url=e.url||ke.POPUP,this.type=ue.POPUP,this.text=e.text,this.image=e.image,this.iframe=e.iframe,this.webRotateCode=e.webRotateCode,this.label=e.label||"",this.hoverCode=un(this.code),this.iframeSize=e.iframeSize}onClick(){super.onClick(),this.signals.poiClick.dispatch(this.props)}onOver(){super.onOver()}onOut(){super.onOut()}onHover(){}getHoverContent(){return this.label?`\n [div class="bg-[rgba(0,0,0,0.6)] rounded shadow-[0_1px_2px_-2px_rgba(0,0,0,0.16),0_3px_6px_0_rgba(0,0,0,0.12),0_5px_12px_4px_rgba(0,0,0,0.09)] text-white cursor-pointer text-base font-normal leading-5 min-w-[60px] pointer-events-auto text-center px-3 py-2"]\n [div class="h-full overflow-hidden w-full rounded-md"]${this.label}[/div]\n [div class="bottom-[-14.14213562373095px] h-[14.14213562373095px] left-[calc(50%_-_7.07px)] overflow-hidden absolute w-[14.14213562373095px] z-0"]\n [span class="bg-[rgba(0,0,0,0.6)] block h-2.5 relative rotate-45 -translate-x-2/4 translate-y-0 w-2.5 left-[5px] -top-0.5" /]\n [/div]\n [/div]\n `:""}create(e){var t=this.getHoverContent(),n=Object.assign(Object.assign({},this.props),{ath:this.ath,atv:this.atv});Rn(this.krpano,n,t,!1),this.krpano.set(`hotspot[${this.hoverCode}].visible`,!0),Un(this.krpano,n).then(()=>{super.addEvents(),e&&e(this)})}}(e=>{e.NEW_TAB="NEW_TAB",e.IFRAME="IFRAME",e.BUILD_IN="BUILD_IN"})(zr=zr||{});class as extends Rr{constructor(e){super(e),this.url=e.url||ke.PROMOTION,this.type=ue.PROMOTION,this.promotion=e.promotion,this.hoverCode=un(this.code),this.hovering=!1,this.keepHover=!1,this.bannerVisible=!1,this.keepBannerVisible=!1,this.promotionCode=e.promotionCode,this.lineHeight=40,this.bannerSize=150,this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.toggleBanner=this.toggleBanner.bind(this),this.hideBanner=this.hideBanner.bind(this),this.handleOnLoaded=this.handleOnLoaded.bind(this)}getLookAtPosition(){var{h:e,v:t}=xn(this.krpano,this);return{ath:e,atv:t}}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onClick(){super.onClick();var e=!this.bannerVisible;this.toggleBanner(e),e&&(this.keepBannerVisible=!0,setTimeout(()=>{this.keepBannerVisible=!1},1e3))}onOver(){super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.HOVERING});`)}onOut(){super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.STANDARD});`),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){pn(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e))}hideBanner(){this.bannerVisible&&!this.keepBannerVisible&&this.toggleBanner(!1)}handleOnLoaded(){var e=this.krpano.get(`hotspot[${this.hoverCode}]`),t=e.sprite.style.transform;e.sprite.style.transform=`${t} translateY(calc(-50% - ${(this.height||0)*(this.scale||1)/2}px))`}renderLaserTooltip(){var e=Ln(this.krpano,this,this.language);In(this.krpano,this.props,e)}create(e){var t,n,o;e&&(this.onDone=e),this.promotion&&(({image:t,endDate:n,startDate:o}=this.promotion),t)&&t.url&&Pn(o).isBefore(new Date)&&Pn(n).isAfter(new Date)&&(kn(this)&&this.createFocusingHotspot(),(e=>ce(void 0,void 0,void 0,function*(){return e?new Promise(t=>{let n=new Image;n.onload=()=>{var{width:e,height:o}=n;t({width:e,height:o})},n.onerror=()=>{t(null)},n.src=e}):null}))(o=Zt(sn(t,(this.width||0)*(this.scale||1)))).then(t=>{t&&(this.renderLaserTooltip(),Un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)}))}))}hasDetailModal(){return this.promotion&&this.promotion.openType===zr.BUILD_IN}}(e=>{e.NONE="NONE",e.SEMICIRCLE="SEMICIRCLE",e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"})(Ur=Ur||{});class ls extends Rr{constructor(e){super(e),this.menuStyle=Ur.NONE,this.hoverTimeout=null,this.setTextureIndex=e=>{this.textureIndex=e,this.changeVisibleTexture()},this.getElementName=e=>this.code+"_texture_"+e,this.onOutMenuContextMask=()=>{this.toggleContext(!1)},this.onOverMenuContextMask=()=>{this.toggleContext(!0)},this.antiFlicking=(e,t)=>{this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),t?this.hoverTimeout=setTimeout(()=>{e()},t):e()},this.toggleContext=(e=!1)=>{this.antiFlicking(()=>{this.hovering=e;var{x:t,y:n}=this.krpano.spheretoscreen(this.ath,this.atv);this.signals.texturePoiHover.dispatch({poi:e?this:null,coords:{x:t,y:n}}),this.krpano.set(`hotspot[${this.menuContextMask}].visible`,e),this.krpano.set(`hotspot[${this.code}].zorder`,e?P.HOVERING:P.STANDARD)},e?0:.2)},this.textures=e.textures,this.textureIndex=e.textureIndex||0,this.menuStyle=e.menuStyle,this.url=ke.TEXTURE,this.type=ue.TEXTURE,this.menuContextMask=this.code+"_context_mask",this.bannerVisible=!1,this.keepHover=!1,this.hovering=!1,this.isLookAt=kn(this),this.hoverTimeout=null,this.hoverCode=un(this.code)}changeVisibleTexture(){this.textures&&0!==this.textures.length&&this.textures.forEach((e,t)=>{t===this.textureIndex?this.krpano.call(`tween(hotspot[${this.getElementName(t)}].alpha, 1.0, 0.5);`):this.krpano.call(`tween(hotspot[${this.getElementName(t)}].alpha, 0, 0.5);`)})}createTexture(e,t,n=0){var{hfov:t,yaw:o,pitch:i,roll:r}=t,s=57.295779;this.krpano.call(`\n addhotspot(${this.getElementName(n)});\n set(hotspot[${this.getElementName(n)}].url, ${e});\n set(hotspot[${this.getElementName(n)}].distorted, true);\n set(hotspot[${this.getElementName(n)}].enabled, false);\n set(hotspot[${this.getElementName(n)}].alpha, ${n===this.textureIndex?1:0});\n set(hotspot[${this.getElementName(n)}].width, 0);\n set(hotspot[${this.getElementName(n)}].height, 0);\n set(hotspot[${this.getElementName(n)}].rx,0);\n set(hotspot[${this.getElementName(n)}].ry,0);\n set(hotspot[${this.getElementName(n)}].rz,0);\n set(hotspot[${this.getElementName(n)}].onloaded, '\n div(hfov_${this.getElementName(n)}, ${t}, ${s});\n div(yaw_${this.getElementName(n)}, ${o}, -${s});\n div(pitch_${this.getElementName(n)}, ${i}, ${s});\n div(roll_${this.getElementName(n)}, ${r}, -${s});\n mul(hfov_${this.getElementName(n)}, 0.5);\n Math.tan(hfov_${this.getElementName(n)});\n mul(hotspot[${this.getElementName(n)}].width, hfov_${this.getElementName(n)}, 1000);\n set(hotspot[${this.getElementName(n)}].height, prop);\n Math.cos(ch_${this.getElementName(n)}, yaw_${this.getElementName(n)});\n Math.sin(sh_${this.getElementName(n)}, yaw_${this.getElementName(n)});\n Math.cos(ca_${this.getElementName(n)}, pitch_${this.getElementName(n)});\n Math.sin(sa_${this.getElementName(n)}, pitch_${this.getElementName(n)});\n Math.cos(cb_${this.getElementName(n)}, roll_${this.getElementName(n)});\n Math.sin(sb_${this.getElementName(n)}, roll_${this.getElementName(n)});\n mul(m0_${this.getElementName(n)}, ca_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, cb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, sb_${this.getElementName(n)}, sh_${this.getElementName(n)});\n add(m3_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m4_${this.getElementName(n)}, cb_${this.getElementName(n)}, ca_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, cb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, sh_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, sb_${this.getElementName(n)}, ch_${this.getElementName(n)});\n sub(m5n_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m5n_${this.getElementName(n)}, -1);\n mul(tmp_${this.getElementName(n)}, sb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, cb_${this.getElementName(n)}, sh_${this.getElementName(n)});\n sub(m6n_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m6n_${this.getElementName(n)}, -1);\n Math.atan2(yaw_${this.getElementName(n)}, m6n_${this.getElementName(n)}, m0_${this.getElementName(n)});\n Math.atan2(roll_${this.getElementName(n)}, m5n_${this.getElementName(n)}, m4_${this.getElementName(n)});\n Math.asin(pitch_${this.getElementName(n)}, m3_${this.getElementName(n)});\n mul(hotspot[${this.getElementName(n)}].ath, yaw_${this.getElementName(n)}, ${s});\n mul(hotspot[${this.getElementName(n)}].atv, pitch_${this.getElementName(n)}, ${s});\n mul(hotspot[${this.getElementName(n)}].rotate, roll_${this.getElementName(n)}, ${s});\n ');\n `)}create(e){var t;super.create(e),this.krpano.call(`set(hotspot[${this.code}].zorder,' ${P.STANDARD}');`),this.overviewPosition!==Re.NONE&&(kn(this)&&this.createFocusingHotspot(),e=Ln(this.krpano,this,this.language),In(this.krpano,this.props,e)),this.textures&&0!==this.textures.length&&(this.textures.forEach((e,t)=>{var n=e.image;n=Cn(n.file.url);this.createTexture(n,e,t)}),this.menuStyle!==Ur.NONE)&&(e=[Ur.HORIZONTAL].includes(this.menuStyle)?800:320,t=[Ur.HORIZONTAL].includes(this.menuStyle)?96:320,e=this.width<e?e:this.width+32,t=this.height<t?t:this.height+32,this.krpano.call(`\n addhotspot(${this.menuContextMask});\n set(hotspot[${this.menuContextMask}].type, 'text');\n set(hotspot[${this.menuContextMask}].bgalpha, 0);\n set(hotspot[${this.menuContextMask}].handcursor, false);\n set(hotspot[${this.menuContextMask}].width, ${e});\n set(hotspot[${this.menuContextMask}].height, ${t});\n set(hotspot[${this.menuContextMask}].visible, false);\n set(hotspot[${this.menuContextMask}].rx, 0);\n set(hotspot[${this.menuContextMask}].ry, 0);\n set(hotspot[${this.menuContextMask}].rz, 0);\n set(hotspot[${this.menuContextMask}].rotate, 0);\n set(hotspot[${this.menuContextMask}].distorted, true);\n set(hotspot[${this.menuContextMask}].enabled, true);\n set(hotspot[${this.menuContextMask}].zorder, ${P.HOVERING_AREA});\n set(hotspot[${this.menuContextMask}].ath, '${this.ath}');\n set(hotspot[${this.menuContextMask}].atv, '${this.atv}');\n `))}addDesktopEvents(){super.addDesktopEvents(),this.onOutMenuContextMask&&this.krpano.set(`hotspot[${this.menuContextMask}].onout`,this.onOutMenuContextMask),this.onOverMenuContextMask&&this.krpano.set(`hotspot[${this.menuContextMask}].onover`,this.onOverMenuContextMask)}onOut(){this.toggleContext(!1)}onOver(){super.onOver(),this.toggleContext(!0)}onClick(){var e,t;super.onClick(),kn(this)||(this.textures&&0!==this.textures.length&&(this.textureIndex=++this.textureIndex%this.textures.length,this.changeVisibleTexture()),this.isMobileDevice?(({x:e,y:t}=this.krpano.spheretoscreen(this.ath,this.atv)),this.signals.texturePoiTouched.dispatch({poi:this,coords:{x:e,y:t}})):this.signals.texturePoiClick.dispatch({poi:this}))}toggleHoverPoi(e=!1){kn(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e))}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}}class cs{constructor(e){this.navPois={},this.orderIndex=0,this.north=0,this.tags=[],this.showNavigationHotspots=!1,this.showNavigationWithoutMovingHotspot=!1,this.showNavigationHotspotLabels=!1,this.debounceAutoShowHotspot=Yt(()=>{this.autoShowHotspots()},300),this.nearestMovingPoi=null,this.movingHotspotsHidden=!1,this.centerPoi=null,this.isMobileDevice=!1,this.autoShowType=Le,this.renderPreview=(e,t,n=!0)=>{n&&this.isMobileDevice||embedpano({xml:this.sourceFolder.url+"/pano.xml",target:e,id:"scene_preview_"+this.code,onready:n=>{this.krpanoPreview=n,this.previewHtmlElementId=e,t&&t(),n.call("\n delayedcall(0,\n set(view.fisheye, 1);\n set(view.stereographic, true);\n set(view.fov, 155);\n set(view.fovtype, MFOV);\n set(view.fovmax, 150);\n set(view.hlookat, 0);\n set(view.vlookat, 90);\n set(view.architectural, 0);\n );\n "),n.call("\n delayedcall(0.2,\n tween(view.hlookat, 0, 1.0, easeInOutQuad);\n tween(view.vlookat, 0, 1.0, easeInOutQuad);\n tween(view.fov, 100, 1.0, easeInOutQuad);\n tween(view.fisheye, 0.0, 1.0, easeInOutQuad);\n set(view.fovmax, 180);\n tween(view.pannini, 1.0, distance(2.0,0.8));\n\n delayedcall(2,\n tween(view.hlookat, 10000000, distance(100,10));\n tween(view.vlookat, 0, 5);\n );\n )\n ")},onerror:console.error})},this.destroyPreview=()=>{if(!this.isMobileDevice)try{removepano("scene_preview_"+this.code)}catch(e){console.warn("Destroy scene preview error")}},this.load=(e=0,t,n)=>{var o,i=this.krpano.getView(),r=fn(this.krpano);let s=this.hlookat,a=this.vlookat;t&&(({hChanged:t,vChanged:l,ignoreNorth:o=!1}=t),a=l,s=o?t:_n(this.north+t));var l=ft({hlookat:s,vlookat:a,fov:r.fov||i.fov,fovtype:r.fovtype});this.krpano.call(`\n delayedcall(${e},loadscene(${this.code},${l},${this.flags},${n||this.blend}););\n `)},this.togglePoisVisibility=e=>{this.allPoiVisible=e,(this.pois||[]).forEach(t=>{t.isHideable()&&(t.isLabel()?t.toggleVisibility(this.isVisiblePoi(t)&&this.allPoiVisible,!0):t.toggleVisibility(e))})},this.setViewLimit=()=>{let{coverMode:e,vlookatmax:t,vlookatmin:n,hlookatmax:o,hlookatmin:i,hlookat:r,vlookat:s}=this.viewLimitConfig;if(e===Oe){let e=n||-90,a=t||90,l=i||-360,c=o||Qt;this.setOnViewChangeEvents(()=>{this.krpano.call(`clamp(view.vlookat,${s+e},${s+a})`),-360===Math.round(l)&&Math.round(c)===Qt||this.krpano.call(`clamp(view.hlookat,${r+l},${r+c})`)},!0)}},this.showHotspotNearestToCenter=()=>{if(this.allPoiVisible&&this.allLabelVisible&&this.pois.length){let{hlookat:t,vlookat:n,hfov:o}=this.krpano.getView(),i=[ue.PROMOTION,ue.ITEM_INFO,ue.POLYGON,ue.GALLERY,ue.TEXTURE];var e=this.pois.map(e=>{if(e.visible&&i.includes(e.type)&&(e.itemInfo||e.promotion||e.gallery)){try{var r,s=this.getHorizontalDisplayDeg(e,o),a=this.krpano.spheretospace(t,n);if(vn(t,n,e.ath,e.atv).h<s)return r=this.krpano.spheretospace(e.ath,e.atv),{poi:e,dist:bn(a,r)}}catch(e){console.error(e)}e.hide(!0)}return null}).filter(e=>!!e).sort((e,t)=>null===e.dist?1:null===t.dist?-1:e.dist-t.dist);e.forEach((e,t)=>{var{poi:e,dist:n}=e,o=e;0===t&&null!==n&&this.isVisiblePoi(e)?(this.signals.toggleHotspotNearestToCenter.dispatch(o.code),(this.centerPoi=o).show(!0)):o.hide(!0)}),null!=e&&e.length||(this.signals.toggleHotspotNearestToCenter.dispatch(null),this.centerPoi=null)}else this.signals.toggleHotspotNearestToCenter.dispatch(null),this.centerPoi=null},this.buildNavigationHotspots=()=>{if(this.showNavigationHotspots){let e=this.floorMovingPois.map(e=>this.movingPoisMap[e]);Object.values(De).forEach(t=>{var n=(e=>{switch(e){case De.NORTH:return[{min:-23,max:23}];case De.NORTH_EAST:return[{min:24,max:67}];case De.EAST:return[{min:68,max:113}];case De.SOUTH_EAST:return[{min:114,max:157}];case De.NORTH_WEST:return[{max:-24,min:-67}];case De.WEST:return[{max:-68,min:-113}];case De.SOUTH_WEST:return[{max:-114,min:-157}];case De.SOUTH:return[{max:-158,min:-180},{min:158,max:180}]}return null})(t);if(n){var o=[];for(let t=e.length-1;0<=t;t--){var i=e[t],r=_n(Math.round(i.ath||0));let s=Math.round(r-this.north);s<-180?s+=360:180<s&&(s-=360),n.some(({max:e,min:t})=>s>=t&&s<=e)&&(o.push(i),e.splice(t,1))}if(o.length){var s=o.reduce((e,t)=>{var{poi:n,distance:o}=e,i=mn(t.ath,90,t.ath,t.atv);return!n||i<o?{poi:t,distance:i}:e},{poi:null,distance:0}).poi;if(s){let e;this.movingPoiByDirection[t]=s,this.navPois||(this.navPois={}),this.canShowMovingHotspotLabel(s)&&({label:e}=s),this.navPois[t]=new Jr({krpano:this.krpano,signals:this.signals,direction:t,north:this.north,label:e,sceneCode:this.code})}}}})}},this.toggleNavigationHotspots=(e=!0,t=!1)=>{this.showNavigationHotspots&&this.navPois&&Object.keys(this.navPois).length&&(Object.values(this.navPois).forEach(n=>{n.toggle(e,t)}),e)&&this.trackViewNavigationHotspots()},this.moveWithNavigationPoi=e=>{(e=this.movingPoiByDirection[e])&&e.dispatchClick()},this.moveToClosestPoi=()=>{this.floorPoi||this.updateNearestMovingHotspotToMouse(),this.nearestMovingPoi&&this.canMoveToNearestPOI()&&this.nearestMovingPoi.dispatchClick()},this.toggleFloorPoiVisibility=e=>{this.floorPoi&&this.floorPoi.toggleAllowVisibility(e)},this.getHotspotDistanceFromView=e=>{e=this.krpano.get(`hotspot[${e.code}]`);var t,n,o=this.krpano.getView();return o&&e?(({hlookat:o,vlookat:t}=o),({ath:e,atv:n}=e),vn(o,t,e,n)):null},this.showIfHotspotInRange=e=>{var t=this.krpano.getView().hfov,n=this.getHotspotDistanceFromView(e);return n?((n=n.h<this.getHorizontalDisplayDeg(e,t))?e.show(!0):e.hide(!0),n):(e.hide(!0),!1)},this.clearTimeout=()=>{this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},this.getHorizontalDisplayDeg=(e,t)=>t/3/2,this.showHotspotsInRange=()=>{this.allPoiVisible&&this.allLabelVisible&&this.pois.length&&this.pois.forEach(e=>{e.visible&&(e.type===ue.ITEM_INFO&&this.showIfHotspotInRange(e),e.type===ue.PROMOTION&&this.showIfHotspotInRange(e),e.type===ue.GALLERY)&&this.showIfHotspotInRange(e)})},this.isMovingHotspotWithNamePlate=e=>e.type===ue.MOVING&&e.displayType===Ke,this.updateNearestMovingHotspotToMouse=()=>{if(this.nearestMovingPoi=null,this.floorMovingPois&&this.floorMovingPois.length&&!this.movingHotspotsHidden){var[e]=this.floorMovingPois,{x:t,y:n}=this.krpano.get("mouse");let{x:o,y:i}=this.krpano.screentosphere(t,n);t=this.movingPoisMap[e],n=mn(o,i,t.ath,t.atv),this.isMovingHotspotWithNamePlate(t)||t.updateAlpha(.2),1===this.floorMovingPois.length&&n<1e3?(this.nearestMovingPoi=t,this.isFloorPoiVisible()&&t.revertAlpha()):(e=this.floorMovingPois.reduce((e,t)=>{var{poi:n,distance:r}=e;return(t=this.movingPoisMap[t]).code===n.code?e:(this.isMovingHotspotWithNamePlate(t)||t.updateAlpha(.2),(n=mn(o,i,t.ath,t.atv))<r?{poi:t,distance:n}:e)},{poi:t,distance:n})).distance<1e3&&(this.nearestMovingPoi=e.poi,this.isFloorPoiVisible())&&this.nearestMovingPoi.revertAlpha()}},this.trackViewNavigationHotspots=()=>{if(this.navPois&&Object.keys(this.navPois).length){let a=1;(e=>e.get("device.tablet"))(this.krpano)?a=.75:yn(this.krpano)&&(a=.5);var e=250/a,t=500/a,n=this.krpano.getView(),o=_n(Math.round(n.vlookat))+25,i=n.hlookat,r=_n(Math.round(i-103)),s=_n(Math.round(i+103));let l=[];s<r?r<0?(l.push({min:r,max:0}),l.push({min:0,max:180}),l.push({min:-180,max:s})):0<s?(l.push({min:r,max:180}),l.push({min:-180,max:0}),l.push({min:0,max:s})):(l.push({min:r,max:180}),l.push({min:-180,max:s})):l.push({min:r,max:s}),r=_n(Math.round(i-30)),s=_n(Math.round(i+30));let c=[];s<r?(c.push({min:r,max:180}),c.push({min:-180,max:s})):c.push({min:r,max:s}),i=Math.max(22,o),this.krpano.set("sphere_x",n.hlookat),this.krpano.set("sphere_y",i),this.krpano.set("sphere_z",1),this.krpano.call("spheretospace('sphere_x', 'sphere_y', 'sphere_z', 'space_x', 'space_y', 'space_z')"),r=this.krpano.get("space_x"),s=this.krpano.get("space_y"),o=this.krpano.get("space_z");let u=t-(90-i)/68*(t-e),h=r*u/s,d=o*u/s;Object.values(De).forEach(e=>{var t,n;this.navPois[e]&&(t=!!(n=(e=>{switch(e){case De.NORTH:return[0];case De.NORTH_EAST:return[45];case De.EAST:return[90];case De.SOUTH_EAST:return[135];case De.NORTH_WEST:return[-45];case De.WEST:return[-90];case De.SOUTH_WEST:return[-135];case De.SOUTH:return[180,-180]}return null})(e))&&n.some(e=>{let t=_n(Math.round(e+this.north));return l.some(({min:e,max:n})=>t>=e&&t<=n)}),n=!!n&&n.some(e=>{let t=_n(Math.round(e+this.north));return c.some(({min:e,max:n})=>t>=e&&t<=n)}),this.navPois[e].toggle(t,!0),this.navPois[e].fade(!n),this.navPois[e].trackView(h,u,d))})}},this.canShowMovingHotspotLabel=e=>this.showNavigationHotspotLabels&&(e.previewType===Pe||e.previewType===Ce)&&!!e.label,this.loadNavigationHotspots=()=>{if(this.showNavigationHotspots&&this.navPois&&Object.keys(this.navPois).length){let e=[];Object.keys(this.navPois).forEach(t=>{var n=new Promise(e=>{this.navPois[t].create(()=>{e()})});e.push(n)}),Promise.all(e).then(()=>{this.trackViewNavigationHotspots()}),this.setOnViewChangeEvents(this.trackViewNavigationHotspots)}},this.isFloorPoiVisible=()=>this.floorPoi&&this.floorPoi.getVisible(),this.canMoveToNearestPOI=()=>{var e;return this.isMobileDevice?(e=this.krpano.get("mouse"),0<=(e=this.krpano.screentosphere(e.x,e.y).y)):this.isFloorPoiVisible()},this.props=e,this.id=""+e.id,this.name=e.name,this.code=e.code,this.krpano=e.krpano,this.signals=e.signals,this.pois=[],this.sourceFolder=e.sourceFolder,this.hlookat=e.hlookat||0,this.vlookat=e.vlookat||0,this.orderIndex=e.orderIndex||0,this.allPoiVisible=void 0===e.allPoiVisible||e.allPoiVisible,this.allLabelVisible=!0,this.labelInvisibleArray=[],this.singleClick=e.singleClick,this.viewLimitConfig={coverMode:e.coverMode||Se,hlookat:e.hlookat,vlookat:e.vlookat,vlookatmax:e.vlookatmax,vlookatmin:e.vlookatmin,hlookatmax:e.hlookatmax,hlookatmin:e.hlookatmin},this.north=e.northX||0,this.blend=e.blend||_e.DEFAULT,this.showNavigationHotspots=e.showNavigationHotspots||!1,this.showNavigationWithoutMovingHotspot=e.showNavigationWithoutMovingHotspot||!1,this.showNavigationHotspotLabels=e.showNavigationHotspotLabels||!1,this.movingHotspotsHidden=this.showNavigationHotspots&&this.showNavigationWithoutMovingHotspot,this.isMobileDevice=an(this.krpano),this.vars=null,this.flags=null,this.tourName=e.tourName,this.tourCode=e.tourCode,this.movingPoiByDirection={},this.floorMovingPois=[],this.movingPoisMap={},e.pois&&(this.pois=[],e.pois.forEach(t=>{let n;var o=Object.assign(Object.assign({},t),{krpano:e.krpano,signals:e.signals,tourUrl:e.tourUrl,bgPoi:this.bgPoi,theme:e.theme,metadata:e.metadata,sceneCode:e.code,tourName:e.tourName,tourCode:e.tourCode});switch(t.type){case ue.MOVING:n=new ns(o);var i=Kt();(this.movingPoisMap[i]=n).precision||this.floorMovingPois.push(i);break;case ue.INFO:n=new Fr(o);break;case ue.SOUND:n=new qr(o);break;case ue.POPUP:n=new ss(o);break;case ue.PHOTO:n=new is(o);break;case ue.VIDEO:n=new Xr(o);break;case ue.ITEM_INFO:(i=o).autoShow=this.autoShowType,n=new Hr(i);break;case ue.POLYGON:n=new rs(i=o);break;case ue.LENSFLARE:n=new ts(i=o);break;case ue.NADIR_LOGO:(i=o).zenith?this.zenithLogo=new os(i):this.nadirLogo=new os(i);break;case ue.PROMOTION:n=new as(i=o);break;case ue.GALLERY:n=new es(i=o);break;case ue.TEXTURE:n=new ls(i=o)}this.movingHotspotsHidden&&t.type===ue.MOVING&&!n.precision||n&&this.pois.push(n)})),this.bgPoi=new Qr({krpano:this.krpano}),this.buildNavigationHotspots(),this.isMobileDevice||(this.floorPoi=new Zr({krpano:this.krpano,signals:this.signals,onPointerMove:this.updateNearestMovingHotspotToMouse}))}setOnViewChangeEvents(e,t=!1){this.signals.updateViewChangedEvents.dispatch({handler:e,skipCheck:t})}getPoiByCode(e){return this.pois.find(t=>t.code===e)||null}loadNadirLogos(e){this.viewLimitConfig.coverMode===Ee&&(this.nadirLogo&&this.nadirLogo.create(e),this.zenithLogo&&this.zenithLogo.create(e),this.zenithLogo||this.nadirLogo)&&this.setOnViewChangeEvents(()=>{var e,t=this.krpano.getView().hlookat;this.nadirLogo&&(e=this.nadirLogo.code,this.krpano.call(`if(hotspot[${e}].rotatewithview,set(hotspot[${e}].rotate,${t}));`)),this.zenithLogo&&(e=this.zenithLogo.code,this.krpano.call(`if(hotspot[${e}].rotatewithview,set(hotspot[${e}].rotate,${-t}));`))})}isVisiblePoi(e){if(e){let t=tn(e);return this.allLabelVisible&&!this.labelInvisibleArray.some(e=>e===t)}return this.allLabelVisible}loadPois(e){this.bgPoi.create(),this.loadNadirLogos(e),this.pois.forEach(t=>{t.create(n=>{t.isLabel()&&t.toggleVisibility(this.isVisiblePoi(t),!0),e&&e(n)})}),this.setOnViewChangeEvents(this.debounceAutoShowHotspot),this.autoShowHotspots(),this.floorPoi&&this.singleClick===Ae&&this.floorPoi.create(),this.loadNavigationHotspots()}toggleLabelVisibility(e){if(this.labelInvisibleArray=e||[],null!=e&&e.length){let t=[],n=[];this.pois.forEach(o=>{o.isLabel()&&(e.includes(tn(o))?n:t).push(o)}),t.forEach(e=>{e.toggleVisibility(!0,!0)}),n.forEach(e=>{e.toggleVisibility(!1,!0)})}}autoShowHotspots(){this.autoShowType===Me?this.showHotspotsInRange():this.autoShowType===Le&&this.showHotspotNearestToCenter()}}let us=2e3,hs=(e,t,n,o,i=!1)=>{if(!n)return!1;if(1===n.length)switch(n[0]){case ue.ITEM_INFO:var{itemInfo:r,itemInfoCode:s=""}=e;return!(!r||-1===(o||[]).indexOf(r.type)||!i&&t.includes(s))&&(t.push(s),!0);case ue.PROMOTION:return!(!(r=e.promotionCode)||t.includes(r))&&(t.push(r),!0);case ue.INFO:case ue.TEXTURE:return e.type===n[0];default:return!1}else if(1<n.length)return n.some(t=>t===e.type)},ds=e=>{let{tour:t,poiTypes:n,itemTypes:o,showDetail:i=!1}=e,r=[];var s=e.scenes||t.scenes;s.sort((e,t)=>e.orderIndex-t.orderIndex);let a=[],l=[];return s.forEach(t=>{var s,c=[],u=(c.push({type:be.SLEEP,sleepTime:2e3}),e.pois?e.pois.filter(e=>e.sceneCode===t.code):t.pois);for(let t=0;t<u.length;t++){var h,d,p,f=u[t];hs(f,r,n,o,!!e.pois)&&(({ath:p,atv:h}=f.getLookAtPosition()),d=(null==e?void 0:e.sleepTime)||us,c.push({poiCode:f.type===ue.ITEM_INFO?f.code:void 0,type:be.LOOK_AT,position:{ath:p,atv:h},speed:60,showDetail:i,viewHotspotDuration:i?1e3:void 0,showDetailDuration:Math.max(d-1e3,us)}),(p=fs(n,f))&&c.push(p),i||c.push({type:be.SLEEP,sleepTime:us}),a.push(f))}c.length&&(c.unshift({type:be.MOVE_SCENE,toScene:t.props}),s=c.reduce((e,t,n)=>(e.push({orderIndex:n,actions:[t]}),e),[]),s={orderIndex:l.length,children:s},l.push(s))}),l.sort((e,t)=>e.orderIndex-t.orderIndex),{steps:l,pois:a}},ps=(e,t)=>{var n,o=[];for(let i=0;i<t.length;i++){let r=t[i];o.some(e=>e.code===r.sceneCode)||(n=e.scenes.find(e=>e.code===r.sceneCode))&&o.push(n)}return o},fs=(e,t)=>{let n,o,i;switch(t.type){case ue.ITEM_INFO:case ue.POLYGON:e.includes(ue.ITEM_INFO)&&null!=(n=t.itemInfo)&&n.sound&&(i=t.itemInfo.sound);break;case ue.PROMOTION:e.includes(ue.PROMOTION)&&null!=(o=t.promotion)&&o.sound&&(i=t.promotion.sound)}return i?{type:be.PLAY_SOUND,volume:50,sound:i,sleepTime:0}:null};class gs{constructor(e){this.audioObject=null,this.trackingSubtitleInterval=null,this.soundEnabled=!0,this.play=e=>{this.playAudio(e)},this.stop=()=>{this.stopAudio()},this.trackKrpanoSoundCueChange=()=>{if(this.subtitle&&this.subtitle.data){let n=this.krpano.get(`sound[${this.soundId}]`);var e,t;n&&(t=this.subtitle.data.cues)&&t.length&&(e=t.findIndex(e=>n.position<=e.endTime&&n.position>=e.startTime),t=t[e],this.onSubtitleTextChange)&&this.onSubtitleTextChange(t?t.text:"")}},this.playKrpanoSound=e=>{this.krpano.call(`streamsound(${this.soundId}, ${this.file.url},false,1,);`);var t=this.krpano.get(`sound[${this.soundId}]`);t.oncomplete=()=>{this.clearTrackingInterval(),e()},this.subtitle&&(t.onplay=()=>{this.subtitle&&(this.trackingSubtitleInterval=window.setInterval(()=>{this.trackKrpanoSoundCueChange()},500),this.trackKrpanoSoundCueChange())},t.onpause=this.clearTrackingInterval,t.onstop=this.clearTrackingInterval)},this.stopKrpanoSound=()=>{this.krpano.get(`sound[${this.soundId}]`)&&(this.krpano.call(`stopsound(${this.soundId})`),this.destroyKrpanoSound())},this.destroyKrpanoSound=()=>{this.krpano.get(`sound[${this.soundId}]`)&&this.krpano.call(`destroysound(${this.soundId})`)},this.trackAudioCueChange=()=>{if(this.subtitle&&this.audioObject&&this.subtitle.data&&((t=this.subtitle.data.cues)&&t.length)){let n=this.audioObject.seek();var e=t.findIndex(e=>n<=e.endTime&&n>=e.startTime),t=t[e];this.onSubtitleTextChange&&this.onSubtitleTextChange(t?t.text:"")}},this.playAudio=e=>{if(this.audioObject)this.audioObject.playing()||this.audioObject.play();else{var t=!this.soundEnabled||this.muted;let n=this.background;(t=new Wr.Howl({src:[""+this.file.url],loop:n,volume:1,html5:!0,mute:t,onend:()=>{n||(this.clearTrackingInterval(),this.unloadAudio(),e())},onplay:()=>{this.subtitle&&!this.background&&(this.trackingSubtitleInterval=window.setInterval(()=>this.trackAudioCueChange(),500),this.trackAudioCueChange())},onpause:this.clearTrackingInterval,onstop:()=>{this.clearTrackingInterval(),n&&this.unloadAudio()}})).play(),this.audioObject=t}},this.stopAudio=()=>{this.audioObject&&this.audioObject.stop(),this.unloadAudio()},this.unloadAudio=()=>{this.audioObject&&(this.audioObject.unload(),this.audioObject=null)},this.clearTrackingInterval=()=>{null!==this.trackingSubtitleInterval&&(window.clearInterval(this.trackingSubtitleInterval),this.trackingSubtitleInterval=null)},this.props=e,this.krpano=e.krpano,this.soundId=e.soundId,this.subtitle=e.subtitle,this.file=e.sound,this.soundEnabled=!!e.soundEnabled,this.background=e.background||!1,this.onSubtitleTextChange=e.onSubtitleTextChange,this.muted=!0,this.setSoundState=this.setSoundState.bind(this),this.mute=this.mute.bind(this)}mute(e,t){var n;this.muted=e,null!=(n=this.audioObject)&&n.mute(e,t)}setSoundState(e){e=!(this.soundEnabled=e)||this.muted,this.audioObject&&this.audioObject.mute(e)}}class ms{constructor(e){this.type="",this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.id=e.id||-1,this.orderIndex=e.orderIndex||0,this.execute=this.execute.bind(this),this.stop=this.stop.bind(this),this.getDuration=this.getDuration.bind(this),this.run=this.run.bind(this)}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){})}execute(){return ce(this,arguments,void 0,function*({language:e,duration:t}={language:"vi"}){this.runningPromise=(e=>{let t;var n=new Promise((n,o)=>{t=o,e.then(e=>{n(e)})});return n.abort=e=>{t("aborted: "+e)},n})(this.run({language:e,duration:t})),yield this.runningPromise})}stop(){return ce(this,void 0,void 0,function*(){this.runningPromise&&(this.runningPromise.abort("action "+this.type),this.runningPromise=null)})}getDuration(){return ce(this,arguments,void 0,function*({}={language:"vi"}){return 0})}abortPromise(e){e&&e.abort()}standby(e,t){return ce(this,void 0,void 0,function*(){t&&(yield en(t))})}}class vs extends ms{constructor(e){super(e),this.soundDuration=null,this.soundEnabled=!0,this.addMuteSoundSignal=()=>{var e;this.tour.signals.muteSound.add(null==(e=this.soundObject)?void 0:e.mute)},this.volume=on(e.volume)?e.volume:50,this.soundEnabled=!!e.soundEnabled,this.setSoundState=this.setSoundState.bind(this),this.intervalSubtitleTextChangedCallback=this.intervalSubtitleTextChangedCallback.bind(this),this.playSound=this.playSound.bind(this),this.stopSound=this.stopSound.bind(this),this.getSoundDuration=this.getSoundDuration.bind(this),this.preload=this.preload.bind(this),this.props.sound&&(this.sound=Object.assign(Object.assign({soundId:Kt()},this.props.sound),{background:this.props.background,soundEnabled:this.soundEnabled,onSubtitleTextChange:this.intervalSubtitleTextChangedCallback}),this.sound.subtitle?(e=>ce(void 0,void 0,void 0,function*(){return new Promise(t=>{let n=new $r.Parser(window,$r.StringDecoder()),o=[],i=[];Xi.get(e).then(e=>{e=e.data,n.oncue=e=>{o.push(e)},n.onregion=e=>{i.push(e)},n.parse(e),n.flush(),t({cues:o,regions:i})})})}))(this.sound.subtitle.url).then(e=>{this.sound.subtitle=Object.assign(Object.assign({},this.sound.subtitle),{data:e}),this.soundObject=new gs(this.sound),this.addMuteSoundSignal()}):(this.soundObject=new gs(this.sound),this.addMuteSoundSignal()))}playSound(e){this.soundObject?(this.tour.signals.playingSoundActionExecuted.dispatch(),this.soundObject.play(()=>{this.tour.signals.playingSoundActionStopped.dispatch(),e&&e()})):(this.tour.signals.playingSoundActionStopped.dispatch(),e&&e())}stopSound(){this.soundObject&&this.soundObject.stop(),this.tour.signals.playingSoundActionStopped.dispatch()}getSoundDuration(){return ce(this,void 0,void 0,function*(){let e=this.soundDuration;return on(this.soundDuration)||(this.sound&&this.sound.sound&&this.sound.sound.url?this.soundDuration=yield(e=>ce(void 0,void 0,void 0,function*(){return new Promise(t=>{let n=new Audio;n.onloadedmetadata=()=>{t(1e3*(n.duration||0))},n.onerror=()=>{t(0)},n.src=e})}))(this.sound.sound.url):this.soundDuration=0,e=this.soundDuration),e})}setSoundState(e){e=e.isEnabled,this.soundEnabled=e,this.soundObject&&this.soundObject.setSoundState(e)}preload(e){return ce(this,void 0,void 0,function*(){})}intervalSubtitleTextChangedCallback(e){this.tour.signals.setSubtitleText.dispatch(e)}}class _s extends vs{constructor(e){super(e),this.speed=30,this.playHotspotSound=!1,this.type=be.LOOK_AT,this.ath=e.position.ath,this.atv=e.position.atv,this.fov=e.position.fov,this.delayZoom=e.delayZoom,this.speed=e.speed||30,this.poiCode=e.poiCode,this.playHotspotSound=!(!this.poiCode||!e.playHotspotSound),this.showDetail=e.showDetail||!1,this.viewHotspotDuration=e.viewHotspotDuration||0,this.showDetailDuration=e.showDetailDuration||1e3,this.zoomScale=e.zoomScale||1,this.abortPromise=this.abortPromise.bind(this),this.executeShowDetail=this.executeShowDetail.bind(this),this.executePlaySound=this.executePlaySound.bind(this),this.canPlaySound=this.canPlaySound.bind(this)}executeZoom(){return ce(this,void 0,void 0,function*(){var e,t,n=this.krpano.get("view"),{fov:o,fovmin:i,fovmax:r}=n,s=o/this.zoomScale;o&&o!==s&&(e=Math.abs(s-o)/this.speed,t=nn(e)+200,this.cachingFov={fov:o,fovmax:r,fovmin:i},n.fovmin=0,n.fovmax=179,this.krpano.call(`zoomto(${s}, tween(linear, ${e}));`),this.zoomDelayPromise=en(t),yield this.zoomDelayPromise,this.zoomDelayPromise=null,this.delayZoom&&(this.delayZoomPromise=en(this.delayZoom),yield this.delayZoomPromise,this.delayZoomPromise=null),this.krpano.call(`zoomto(${this.cachingFov.fov}, tween(linear, ${e}));`),this.revertZoomDelayPromise=en(t),yield this.revertZoomDelayPromise,this.revertZoomDelayPromise=null,n.fovmin=this.cachingFov.fovmin,n.fovmax=this.cachingFov.fovmax,this.cachingFov=null)})}run(){return ce(this,arguments,void 0,function*({duration:e}={language:"vi"}){let t=this.ath,n=this.atv;this.poiCode&&(i=this.tour.getPoiByCodeFromScenes(this.poiCode))&&i.type===ue.MOVING&&i.alwaysOnFloor&&(({tx:i,ty:r,tz:o}=i),({ath:t,atv:n}=this.krpano.spacetosphere(i,r,o)));var o=((i=e&&0!==e)||(this.krpano.call(`getlooktodistance(distance_${this.id},${t},${n});`),r=this.krpano.get("distance_"+this.id),e=Math.abs(r/this.speed)),this.krpano.get("view")),i=o.fov,r=(this.krpano.call(`lookto(${t},${n},${i},tween(linear, ${e}),true,true);`),1e3*e);this.delayLookToPromise=en(r),yield this.delayLookToPromise,this.delayLookToPromise=null,this.showDetailDelayPromise=en(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,yield this.executeZoom(),yield Promise.all([this.executeShowDetail(),this.executePlaySound()])})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.stopSound(),this.playSoundDelayPromise=null,this.abortPromise(this.delayLookToPromise),this.abortPromise(this.zoomDelayPromise),this.abortPromise(this.revertZoomDelayPromise),this.abortPromise(this.delayZoomPromise),this.abortPromise(this.showDetailDelayPromise),this.abortPromise(this.closeDetailDelayPromise),this.abortPromise(this.afterCloseDelayPromise),this.abortPromise(this.afterShowDelayPromise),yield this.krpano.call("stoplookto();")})}getDuration(){return ce(this,void 0,void 0,function*(){var e=1e3*Math.abs(90/this.speed)+200;let t=0,n=(this.tour.getPoiByCode(this.poiCode)&&(t=this.showDetail?this.viewHotspotDuration+this.showDetailDuration:this.viewHotspotDuration),0);return this.canPlaySound()&&(n=(yield this.getSoundDuration())||0),e+Math.max(t,n)})}canPlaySound(){return this.playHotspotSound&&this.sound}preload(e){return ce(this,void 0,void 0,function*(){this.canPlaySound()&&(this.executePlaySound(),yield Jt(50),yield this.stop())})}executeShowDetail(){return ce(this,void 0,void 0,function*(){var e;this.showDetail&&this.poiCode&&(e=this.tour.getPoiByCode(this.poiCode))&&(this.tour.signals.poiClick.dispatch(e),this.afterShowDelayPromise=en(500),yield this.afterShowDelayPromise,this.afterShowDelayPromise=null,this.closeDetailDelayPromise=en(this.showDetailDuration),yield this.closeDetailDelayPromise,this.closeDetailDelayPromise=null,this.tour.signals.poiClick.dispatch(null),this.afterCloseDelayPromise=en(500),yield this.afterCloseDelayPromise,this.afterCloseDelayPromise=null)})}executePlaySound(){return ce(this,void 0,void 0,function*(){this.canPlaySound()&&(this.soundObject&&(this.playSoundDelayPromise=new Promise(e=>{this.playSound(()=>{e(1)})})),this.playSoundDelayPromise)&&(yield this.playSoundDelayPromise,this.playSoundDelayPromise=null)})}}class bs extends ms{constructor(e){super(e),this.type=be.MOVE_SCENE,this.toScene=e.toScene,this.hlookat=e.hlookat,this.vlookat=e.vlookat,this.blend=e.blend||"OPENBLEND(1.0, 0.0, 0.6, 1.0, easeOutQuad)"}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){if(this.toScene.code!==this.tour.getActiveScene().code){var e=!this.hlookat&&0!==this.hlookat||!this.vlookat&&0!==this.vlookat?null:{hChanged:this.hlookat,vChanged:this.vlookat,ignoreNorth:!0};this.tour.loadScene(this.toScene.code,void 0,e);let t=this.toScene.blend||_e.DEFAULT;e=Object.keys(_e).find(e=>_e[e]===t),e=ve[e],this.delayPromise=en(nn(e)),yield this.delayPromise,this.delayPromise=null}})}getDuration(){return ce(this,void 0,void 0,function*(){return this.toScene.code!==this.tour.getActiveScene().code?500:0})}}class ys extends ms{constructor(e){super(e),this.functionButtonCode="",this.type=be.OPEN_FUNCTION_BUTTON,this.viewHotspotDuration=e.viewHotspotDuration||0,e.functionButtonCode&&(this.functionButtonCode=e.functionButtonCode),this.abortPromise=this.abortPromise.bind(this),this.executeShowDetail=this.executeShowDetail.bind(this),this.executePlaySound=this.executePlaySound.bind(this)}abortPromise(e){e&&e.abort()}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){this.functionButtonCode&&(this.tour.signals.openFunctionButton.dispatch(this.functionButtonCode),this.showDetailDelayPromise=en(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,this.tour.signals.openFunctionButton.dispatch(null)),yield Promise.all([this.executeShowDetail(),this.executePlaySound()])})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this)})}getDuration(){return ce(this,void 0,void 0,function*(){return this.viewHotspotDuration||0})}executeShowDetail(){return ce(this,void 0,void 0,function*(){})}executePlaySound(){return ce(this,void 0,void 0,function*(){})}}class ws extends ms{constructor(e){super(e),this.type=be.OPEN_MINIMAP,this.viewHotspotDuration=e.viewHotspotDuration||0,this.abortPromise=this.abortPromise.bind(this)}abortPromise(e){e&&e.abort()}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){this.tour.signals.openMinimap.dispatch(!0),this.showDetailDelayPromise=en(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,this.tour.signals.openMinimap.dispatch(!1)})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this)})}getDuration(){return ce(this,void 0,void 0,function*(){return this.viewHotspotDuration||0})}}class xs extends vs{constructor(e){super(e),this.background=!1,this.duration=null,this.type=be.PLAY_SOUND,this.language=e.language||"vi",this.background=this.props.background||!1}run(){return ce(this,arguments,void 0,function*({}={language:T.VI}){this.soundObject&&(this.delayPromise=new Promise(e=>{this.playSound(()=>{e(1)})})),this.delayPromise&&(yield this.delayPromise,this.delayPromise=null)})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),yield Jt(500),this.delayPromise&&(this.delayPromise=null),this.stopSound()})}getDuration(){return ce(this,arguments,void 0,function*({}={language:"vi"}){return!this.background&&(this.duration||(this.duration=yield this.getSoundDuration(),this.duration))||0})}preload(e){return ce(this,void 0,void 0,function*(){this.execute({language:e}),yield Jt(50),yield this.stop()})}}class ks extends ms{constructor(e){super(e),this.type=be.ROTATE,this.angle=e.angle||0,this.speed=e.speed||15,this.delayPromise=null}run(){return ce(this,arguments,void 0,function*({duration:e}={language:"vi"}){var t=e&&0!==e,{hlookat:n,fov:o}=this.krpano.get("view"),n=n+this.angle;let i=this.speed;t&&(i=this.angle/e),this.krpano.call(`lookto(${n},0, ${o}, linear(${i}),false,true);`),t=this.angle/i*1e3,this.delayPromise=en(Math.abs(t)+2e3),yield this.delayPromise,this.delayPromise=null})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null),yield this.krpano.call("stoplookto();")})}getDuration(){return ce(this,void 0,void 0,function*(){var e=this.angle/this.speed*1e3;return Math.abs(e)+2e3})}}class Ss extends ms{constructor(e){super(e),this.type=be.SLEEP,this.sleepTime=e.sleepTime||0,this.delayPromise=null}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){this.delayPromise=en(this.sleepTime),yield this.delayPromise,this.delayPromise=null})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null)})}getDuration(){return ce(this,void 0,void 0,function*(){return this.sleepTime})}}class Os extends ms{constructor(e){var t;super(e),this.type=be.SWITCH_SCENE,this.sceneCode=(null==(t=e.toScene)?void 0:t.code)||"",this.sceneGroupCode=e.sceneGroupCode||"",this.keep=e.keepSwitchScene||!1,this.preSwitchDuration=e.preSwitchSceneDuration||0,this.duration=e.switchSceneDuration||0}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){yield this.standby(this.preSwitchPromise,this.preSwitchDuration),this.tour.switchScene(this.sceneCode),yield this.standby(this.switchScenePromise,700),!this.keep&&this.stepSceneCode&&(yield this.standby(this.postSwitchPromise,this.duration),this.tour.switchScene(this.stepSceneCode),yield this.standby(this.switchBackPromise,700))})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.abortPromise(this.preSwitchPromise),this.abortPromise(this.switchScenePromise),this.abortPromise(this.postSwitchPromise),this.abortPromise(this.switchBackPromise)})}getDuration(){return ce(this,void 0,void 0,function*(){return 0})}}class Es{constructor(e){var t;this.hasSoundActions=[],this.childrenPlayer=null,this.movingAction=null,this.duration=0,this.showProgressBar=!1,this.sound=null,this.playing=!1,this.movingSceneAction=null,this.soundEnabled=!0,this.delayPromise=null,this.skipSoundAction=!1,this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.orderIndex=e.orderIndex||0,this.showProgressBar=e.showProgressBar||!1,this.scene=e.scene,this.soundEnabled=e.soundEnabled,this.language=e.language,this.skipSoundAction=e.skipSoundAction||!1,this.hlookat=e.hlookat,this.vlookat=e.vlookat,e.sound&&(t={type:be.PLAY_SOUND,volume:50,sound:e.sound,sleepTime:0,krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language},this.sound={data:e.sound,soundObject:new xs(t)},this.skipSoundAction=!0),this.duration=e.duration,this.children=(e.children||[]).map(t=>((t=new Es(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,showProgressBar:this.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,itemInfoPois:this.props.itemInfoPois,promotionPois:this.props.promotionPois,tourSignals:this.props.tourSignals,parent:this,playHotspotSound:e.playHotspotSound,skipSoundAction:this.skipSoundAction}))).hasSoundActions&&!this.hasSoundActions&&(this.hasSoundActions=t.hasSoundActions),t.movingAction&&!this.movingAction&&(this.movingAction=t.movingAction),t)),null!=(t=this.children)&&t.length&&(this.children.sort((e,t)=>e.orderIndex-t.orderIndex),this.childrenPlayer={playingStep:null,playing:!1}),this.actions=e.actions?(e.actions||[]).map(e=>{switch(e.type){case be.MOVE_SCENE:var t=new bs(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));return this.movingAction||(this.movingAction=t),t;case be.ROTATE:return new ks(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case be.PLAY_SOUND:t=new xs(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language}));return this.hasSoundActions.push(t),t;case be.LOOK_AT:return(t=new _s(Object.assign(Object.assign({},e),{sound:this.skipSoundAction?void 0:e.sound,krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language}))).canPlaySound()&&!this.skipSoundAction&&this.hasSoundActions.push(t),t;case be.SLEEP:return new Ss(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case be.OPEN_FUNCTION_BUTTON:return new ys(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case be.SWITCH_SCENE:return new Os(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour,stepSceneCode:null==(t=this.scene)?void 0:t.code}));case be.OPEN_MINIMAP:return new ws(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));default:return new ms(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}))}}):[],this.execute=this.execute.bind(this),this.stop=this.stop.bind(this),this.preloadSoundStep=this.preloadSoundStep.bind(this),this.setSoundState=this.setSoundState.bind(this),this.playStepSound=this.playStepSound.bind(this)}preloadSoundStep(e){return ce(this,arguments,void 0,function*({language:e="vi"}){var t;null!=(t=this.sound)&&t.soundObject?(this.sound.soundObject.execute({language:e}),yield Jt(50),yield this.sound.soundObject.stop()):this.hasSoundActions.length&&(yield Promise.all(this.hasSoundActions.map(t=>t.preload(e))))})}getDuration(){return ce(this,arguments,void 0,function*({language:e,checkDuration:t}={language:"vi",checkDuration:!1}){if(!t)return 0;if(this.duration)return this.duration;let n=0,o=(null!=(t=this.actions)&&t.length&&(t=this.actions.map(t=>t.getDuration({language:e})),t=yield Promise.all(t),n=Math.max(...t)),0);return null!=(t=this.children)&&t.length&&(t=this.children.map(t=>t.getDuration({language:e,checkDuration:!0})),o=(t=yield Promise.all(t)).reduce((e,t)=>e+t,0)),Math.max(n,o)})}setSoundState(e){let t,{isEnabled:n,language:o=T.VI}=e;this.soundEnabled=n,null!=(t=this.sound)&&t.soundObject?this.sound.soundObject.setSoundState({isEnabled:n,language:o}):this.children&&this.children.length?this.children.forEach(e=>{e.hasSoundActions&&e.setSoundState({isEnabled:n,language:o})}):this.actions&&this.actions.length&&this.actions.forEach(e=>{on(e.setSoundState)&&e.setSoundState({isEnabled:n,language:o})})}playStepSound(){var e;null!=(e=this.sound)&&e.soundObject&&(this.sound.soundPromise=this.sound.soundObject.execute({language:this.language}))}stop(){return ce(this,void 0,void 0,function*(){var e;if(this.rejector&&(this.rejector("aborted "+this.props.name),this.rejector=null),this.playing=!1,this.movingSceneAction&&(this.movingSceneAction.stop(),this.movingSceneAction=null),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null),null!=(e=this.sound)&&e.soundObject&&(this.sound.soundObject.stop(),this.sound.soundPromise=null),this.actions&&this.actions.length){let e=[];this.actions.forEach(t=>e.push(t.stop())),yield Promise.all(e)}this.childrenPlayer&&null!=(e=this.children)&&e.length&&(this.childrenPlayer.playing=!1,this.childrenPlayer.playingStep)&&(yield this.childrenPlayer.playingStep.stop(),this.childrenPlayer.playingStep=null)})}execute(e){return ce(this,arguments,void 0,function*({language:e="vi",skipActionSound:t=!1,checkDuration:n=!1}){return new Promise((o,i)=>ce(this,void 0,void 0,function*(){this.rejector=i,this.playing=!0;var r=(new Date).getTime(),s=this.children&&this.children.length,a=n;if(s){if(n=!(null==(s=this.sound)||!s.soundObject),this.childrenPlayer){this.childrenPlayer.playing=!0;for(let t=0;t<this.children.length;t++){if(!this.childrenPlayer.playing||!this.playing)return void(this.childrenPlayer.playing=!1);var l=this.children[t],c=(this.childrenPlayer.playingStep=l,this.tour.getTourScenario());c&&c.fireEvent("on-step-change"),yield l.execute({language:e,skipActionSound:n,checkDuration:a}),0===t&&this.playStepSound()}}null!=(s=this.sound)&&s.soundPromise&&(yield this.sound.soundPromise,this.sound.soundPromise=null)}else{let n=this.duration;if(this.scene&&(this.movingSceneAction=new bs({type:be.MOVE_SCENE,toScene:this.scene,krpano:this.krpano,tour:this.tour,hlookat:this.hlookat,vlookat:this.vlookat}),yield this.movingSceneAction.execute({language:e}),s=yield this.movingSceneAction.getDuration(),n&&0!==n&&(n-=s),this.movingSceneAction=null),null!=(s=this.actions)&&s.length){let o=[],i=[];this.actions.forEach(r=>{if(this.playing){if(r.type===be.PLAY_SOUND){var s=r;if(s.background)return i.push(s),void r.execute({language:e,duration:rn(n)});if(t)return}o.push(r.execute({language:e,duration:rn(n)}))}}),yield Promise.all(o),i.length&&(yield Promise.all(i.map(e=>e.stop())))}}if(s=(new Date).getTime()-r,0<(r=(yield this.getDuration({language:e,checkDuration:a}))-s)){if(!this.playing)return;this.delayPromise=en(r),yield this.delayPromise,this.delayPromise=null}this.rejector=null,o()}))})}}let Ts={onplay:null,onpause:null,onstop:null,onreplay:null,"on-step-change":null,"on-tracking-replay":null};class Ps{constructor(e){var t;this.playDelay=e=>ce(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n}=e;yield Jt(500),this.play({language:t,splashScreenStatus:n})}),this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.id=e.id,this.name=e.name,this.code=e.code,this.showProgressBar=!1,this.soundEnabled=!!e.soundEnabled,this.language=e.language||"vi",this.autoReplay=!!e.autoReplay,on(e.autoReplay)||(this.autoReplay=this.tour.autoplayReplay||!1),this.onStop=e.onStop,this.player={playing:!1,playingStep:null,lastScene:null,lastView:null},this.steps=null==(t=null==e?void 0:e.steps)?void 0:t.map(t=>new Es(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,showProgressBar:this.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,itemInfoPois:this.props.itemInfoPois,promotionPois:this.props.promotionPois,tourSignals:this.tour.signals,playHotspotSound:e.hotspotSoundPlayable}))),null!=(t=this.steps)&&t.sort((e,t)=>e.orderIndex-t.orderIndex),this.listeners=Ts,this.run=this.run.bind(this),this.next=this.next.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.stop=this.stop.bind(this),this.saveLastView=this.saveLastView.bind(this),this.saveLastScene=this.saveLastScene.bind(this),this.applyLastScene=this.applyLastScene.bind(this),this.getPlayingStep=this.getPlayingStep.bind(this),this.revertLastView=this.revertLastView.bind(this),this.addEventListener=this.addEventListener.bind(this),this.removeEventListener=this.removeEventListener.bind(this),this.fireEvent=this.fireEvent.bind(this),this.goPrev=this.goPrev.bind(this),this.goNext=this.goNext.bind(this),this.goToSpecifyStep=this.goToSpecifyStep.bind(this),this.setSoundState=this.setSoundState.bind(this),this.setAutoPlay=this.setAutoPlay.bind(this)}fireEvent(e){(e=this.listeners[e])&&e()}addEventListener(e,t){this.listeners[e]=t}removeEventListener(){this.stop(),this.listeners=Ts}revertLastView(e){e=e.krpano.get("view");var{fov:t,fovmax:n,fovmin:o}=this.player.lastView;e.fov=t,e.fovmax=n,e.fovmin=o,this.player.lastView=null}saveLastView(e){var{fov:e,fovmax:t,fovmin:n}=e.krpano.get("view");this.player.lastView={fov:e,fovmax:t,fovmin:n}}applyLastScene(e){var{playingStep:t,lastScene:n}=this.player;!n||n.code===e.getActiveScene().code||t&&t.scene||e.loadScene(n.code)}saveLastScene(){var e;this.getPlayingStep()?(e=this.getPlayingStep().movingAction)&&(this.player.lastScene=e.toScene):console.warn("currently, dont have any step that is playing")}getPlayingStep(){return this.player.playingStep}run(e){let t,{language:n="vi",splashScreenStatus:o,goToSpecifyStep:i=!1,playFromSlideIn:r=!1}=e;if(this.player.playing&&this.tour){let e=this.getPlayingStep();!e&&0<(null==(t=this.steps)?void 0:t.length)&&(e=this.steps[0],this.player.playingStep=e),e&&(this.fireEvent("on-step-change"),this.saveLastScene(),e.execute({language:n}).then(()=>{this.player.playing&&this.next({language:n,splashScreenStatus:o,goToSpecifyStep:i,playFromSlideIn:r})}))}}next(e){var{language:e="vi",splashScreenStatus:t,goToSpecifyStep:n=!1,playFromSlideIn:o=!1}=e;if(this.tour){let s=this.player.playingStep;if(s){var i=this.steps,r=i.findIndex(e=>e===s);let a=r+1;if(r===i.length-1){if(!this.autoReplay)return this.stop(),void(this.onStop&&setTimeout(()=>{this.onStop()},100));a=0,this.fireEvent("onreplay")}this.player.playingStep=i[a],this.run({language:e,splashScreenStatus:t,goToSpecifyStep:n,playFromSlideIn:o})}}}play(e){var{language:e="vi",splashScreenStatus:t,goToSpecifyStep:n=!1,playFromSlideIn:o=!1}=e,i=this.tour;i&&!this.player.playing&&(this.player.playing=!0,this.saveLastView(i),this.applyLastScene(i),this.fireEvent("onplay"),i.toggleNavigationHotspotsInAGT(!1),this.run({language:e,splashScreenStatus:t,goToSpecifyStep:n,playFromSlideIn:o}))}pause(e){var{stopCallback:e,preventFireEvent:t=!1}=e||{},n=this.tour;n&&this.player.playing&&(this.player.playing=!1,t||this.fireEvent("onpause"),null!=(t=null==(t=this.player)?void 0:t.playingStep)&&t.stop(),this.revertLastView(n),n.toggleNavigationHotspotsInAGT(!0),e)&&e()}stop(){this.pause({stopCallback:()=>{this.player.playingStep=null}}),this.fireEvent("onstop")}goPrev(e){return ce(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n,preventFireEvent:o=!1}=e;if(this.tour){let e=this.getPlayingStep();if(e){this.pause({preventFireEvent:o});var o,i=(o=this.steps).findIndex(t=>t===e);let t=i-1;0===i&&(t=o.length-1,this.fireEvent("on-tracking-replay")),this.player.playingStep=o[t]}return this.playDelay({language:t,splashScreenStatus:n})}})}goNext(e){return ce(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n,preventFireEvent:o=!1}=e;if(this.tour){let e=this.getPlayingStep();if(!e)return this.play({language:t,splashScreenStatus:n});this.pause({preventFireEvent:o});var o,i=(o=this.steps).findIndex(t=>t===e);let r=i+1;return i===o.length-1&&(r=0,this.fireEvent("on-tracking-replay")),this.player.playingStep=o[r],this.playDelay({language:t,splashScreenStatus:n})}})}goToSpecifyStep(e){let{id:t,language:n="vi",splashScreenStatus:o}=e;this.tour&&(this.getPlayingStep()&&this.pause(),e=null==(e=this.steps)?void 0:e.find(e=>e.props.id===t))&&(this.player.playingStep=e,this.play({language:n,splashScreenStatus:o,goToSpecifyStep:!0}))}setSoundState(e){let{isEnabled:t,language:n=T.VI}=e;this.soundEnabled=t,this.steps&&this.steps.length&&this.steps.forEach(e=>{var o;(null!=(o=e.hasSoundActions)&&o.length||e.sound)&&e.setSoundState({isEnabled:t,language:n})})}setAutoPlay(e){this.autoReplay=e}getAutoPlay(){return this.autoReplay}}class Cs{constructor(e){this.playlist=[],this.itemInfoPois=[],this.promotionPois=[],this.featurePois=[],this.productPois=[],this.infoPois=[],this.brandPois=[],this.locationPois=[],this.facilityPois=[],this.swapElementPois=[],this.soundEnabled=!0,this.toggleLookAtStepStartView=!1,this.getActiveScenario=e=>{var t;return e||this.activeScenarioCode?null!=(t=this.playlist.find(t=>t.code===(e||this.activeScenarioCode)))&&t.scenario?t.scenario:(console.warn("Cannot get active scenario with key or code "+(e||this.activeScenarioCode)),null):null},this.setSplashScreenStatus=e=>{this.splashScreenStatus=e},this.setActiveScenarioCode=(e,t=!1)=>{var n;e!==this.activeScenarioCode&&this.activeScenarioCode&&(n=this.getActiveScenario(this.activeScenarioCode))&&n.removeEventListener(),this.activeScenarioCode=e,this.signals.onSwitchKeyReady.dispatch({playAfterReady:t})},this.startScenario=(...e)=>ce(this,[...e],void 0,function*(e=!1){var t,n,o,i,r=this.getActiveScenario();r&&(!this.toggleLookAtStepStartView&&(n=this.tour.getActiveScene(),o=null==(o=r.steps)?void 0:o[0])&&(null!=(i=o.children)&&i.length?null!=(t=(i=o.children[0]).scene)&&t.id&&Number(n.id)===Number(null==(t=i.scene)?void 0:t.id)&&(this.lookAtStepStartView(i),yield Jt(300)):null!=(t=o.scene)&&t.id&&Number(n.id)===Number(null==(i=o.scene)?void 0:i.id)&&(this.lookAtStepStartView(o),yield Jt(300))),r.play({language:this.language,splashScreenStatus:this.splashScreenStatus,playFromSlideIn:e}),this.tour.toggleFloorPois(!1))}),this.pauseScenario=()=>{var e;this.removeTemporaryScenario()||(e=this.getActiveScenario())&&(e.pause(),this.tour.toggleFloorPois(!0))},this.stopScenario=()=>{var e;this.removeTemporaryScenario()||(e=this.getActiveScenario())&&(e.stop(),this.tour.toggleFloorPois(!0))},this.togglePlayStepByStepId=e=>{var t,n=this.getActiveScenario();n&&((t=n.getPlayingStep())&&t.props&&t.props.id===e&&n.player.playing?n.pause():n.goToSpecifyStep({id:e,language:this.language,splashScreenStatus:this.splashScreenStatus}))},this.handleAutoPlaySkip=(e=!1)=>{var t=this.getActiveScenario();if(t)return e?t.goPrev({language:this.language,splashScreenStatus:this.splashScreenStatus,preventFireEvent:!0}):t.goNext({language:this.language,splashScreenStatus:this.splashScreenStatus,preventFireEvent:!0})},this.fireOnSwitchKeyReady=e=>{this.signals.onSwitchKeyReady.add(e)},this.createScenarioFeatures=()=>{if(!this.checkScriptAlreadyCreated(E.FEATURES)){var e=null==(e=this.props.scenarios)?void 0:e.find(e=>e.type===E.FEATURES);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.FEATURES,e),this.featurePois=t}return this.featurePois},this.createScenarioProductList=()=>{if(!this.checkScriptAlreadyCreated(E.PRODUCT_LIST)){var e=null==(e=this.props.scenarios)?void 0:e.find(e=>e.type===E.PRODUCT_LIST);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.PRODUCT_LIST,e),this.productPois=t}return this.productPois},this.createScenarioBrands=()=>{if(!this.checkScriptAlreadyCreated(E.BRAND)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.BRAND);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.BRAND,e),this.brandPois=t}return this.brandPois},this.createScenarioLocations=()=>{if(!this.checkScriptAlreadyCreated(E.LOCATION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.LOCATION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.LOCATION,e),this.locationPois=t}return this.locationPois},this.createScenarioPromotions=()=>{if(!this.checkScriptAlreadyCreated(E.PROMOTION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.PROMOTION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.PROMOTION,e),this.promotionPois=t}return this.promotionPois},this.createScenarioInfo=()=>{if(!this.checkScriptAlreadyCreated(E.INFORMATION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.INFORMATION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.INFORMATION,e),this.infoPois=t}return this.infoPois},this.createScenarioFacilities=()=>{if(!this.checkScriptAlreadyCreated(E.FACILITY)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.FACILITY);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.FACILITY,e),this.facilityPois=t}return this.facilityPois},this.createScenarioMultiMedia=()=>{var e;this.checkScriptAlreadyCreated(E.MULTIMEDIA)||(e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.MULTIMEDIA))&&this.createNewScenario(E.MULTIMEDIA,e)},this.createScenarioSwapElement=()=>{if(!this.checkScriptAlreadyCreated(E.SWAP_ELEMENT)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.SWAP_ELEMENT);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.SWAP_ELEMENT,e),this.swapElementPois=t}return this.swapElementPois},this.updateAGTActiveScenario=e=>{e&&(-1===this.playlist.findIndex(t=>t.key===E.AGT&&t.id===e.id)&&(e.id?this.createNewScenario(E.AGT,e):this.checkScriptAlreadyCreated(e.type)||this.updatePlayList(e.type,e)),this.setActiveScenarioCode(e.code))},this.updateAGTScenario=(e,t)=>{this.updateAGTActiveScenario(e),this.signals.onSwitchKeyReady.dispatch({playAfterReady:!t}),t&&this.togglePlayStepByStepId(t)},this.setSoundStateForActiveScenario=e=>{this.soundEnabled=e;var t=this.getActiveScenario();t&&t.setSoundState({isEnabled:e,language:this.language})},this.playScenarioPoi=e=>{if(this.tour){let i,r=!1;var t,n=this.tour.getActiveScene();if(n)for(let t=0;t<n.pois.length;t++){var o=n.pois[t];if((o.type===ue.ITEM_INFO||o.type===ue.POLYGON)&&o.itemInfoCode===e){i=o;break}if(o.type===ue.PROMOTION&&o.code===e){i=o,r=!0;break}}(i=i||(this.itemInfoPois||[]).find(t=>t.itemInfoCode===e))||(i=(this.promotionPois||[]).find(t=>t.code===e),r=!0),i&&(t=this.getScenarioPoiSteps(i,r),this.createNewScenario(E.DETAIL,Object.assign(Object.assign({},{steps:t,onStop:()=>{this.removeTemporaryScenario(!1)}}),{code:E.DETAIL}),{autoReplay:!1}),this.prevActiveScenarioCode=this.activeScenarioCode,this.setActiveScenarioCode(E.DETAIL))}},this.lookAtStepStartView=e=>{var t=e.hlookat,n=(e=e.vlookat,this.krpano.getView()),o=Math.round(n.hlookat),i=Math.round(n.vlookat);(t&&o!==t||e&&i!==e)&&this.krpano&&(this.toggleLookAtStepStartView=!0,this.krpano.call(`lookto(${t}, ${e}, ${n.fov}, tween(linear, 0.2}));`))},this.getPoisFromScenarioData=e=>{let t=((null==e?void 0:e.steps)||[]).flatMap(e=>e.children).flatMap(e=>e.actions).filter(e=>e.type===be.LOOK_AT&&!!e.poiCode).map(e=>e.poiCode);return this.tour.scenes.flatMap(e=>e.pois).filter(e=>t.includes(e.code))},this.getScenarioPoiSteps=(e,t)=>{let n;return({steps:n}=ds(t?{tour:this.tour,poiTypes:[ue.PROMOTION],scenes:ps(this.tour,[e]),pois:[e]}:{tour:this.tour,poiTypes:[ue.ITEM_INFO],scenes:ps(this.tour,[e]),pois:[e],itemTypes:[e.itemInfo.type]})),n},this.removeTemporaryScenario=(e=!0)=>{var t,n=this.playlist.find(e=>e.code===this.activeScenarioCode);return((null==n?void 0:n.key)===E.DETAIL||(null==n?void 0:n.key)===E.TEMP)&&!((n=this.playlist.findIndex(e=>e.key===E.DETAIL||e.key===E.TEMP))<0||(t=this.playlist[n].scenario,e&&(t.stop(),this.tour.toggleFloorPois(!0)),this.playlist.splice(n,1),this.setActiveScenarioCode(this.prevActiveScenarioCode),this.prevActiveScenarioCode=void 0))},this.fireOnStopScenarioWithPoiInteractive=e=>{this.tourSignals.stopScenario.add(e)},this.getTourItemInfoAndPromotionPois=()=>{var e=this.tour;if(e&&e.scenes&&e.scenes.length){e.scenes.sort((e,t)=>e.orderIndex-t.orderIndex);let t=[],n=[];e.scenes.forEach(e=>{if(e.pois)for(let i=0;i<e.pois.length;i++){var o=e.pois[i];o.type===ue.ITEM_INFO&&o.itemInfoCode&&t.push(o),o.type===ue.PROMOTION&&o.promotionCode&&n.push(o)}}),this.itemInfoPois=t,this.promotionPois=n}},this.createNewScenario=(e,t,n={})=>{t&&this.playlist.push({key:e,scenario:new Ps(Object.assign(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,playlist:this,showProgressBar:!this.disabledAGTProgressBar&&t.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,tourSignals:e===E.AGT?this.tourSignals:void 0,promotionPois:this.promotionPois||[],itemInfoPois:this.itemInfoPois||[],hotspotSoundPlayable:e===E.AGT,autoReplay:this.tour.autoplayReplay}),n)),code:t.code,id:t.id})},this.createScenarioAGT=e=>{!this.isPrepareDefaultAGT||(this.isPrepareDefaultAGT,this.tour.props.tourScenario)?(e||this.tour.props.tourScenario)&&this.createNewScenario(E.AGT,e||this.tour.props.tourScenario):this.createScenarioScenes(E.AGT)},this.createScenarioScenes=e=>{if(n=this.tour){let o=n.getActiveScene();var t=((n=[...n.scenes]).sort((e,t)=>e.orderIndex-t.orderIndex),o&&(t=n.findIndex(e=>e.id===o.id),t=n.splice(0,t),n.push(...t)),null==(t=null==(t=this.props)?void 0:t.scenarios)?void 0:t.find(e=>e.type===E.SCENE)),n=this.createScenarioDataFromScenes(n);this.createNewScenario(e||E.SCENE,Object.assign(Object.assign({},n),t))}},this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.tourSignals=e.signals,this.playlist=[],this.language=e.language,this.isPrepareDefaultAGT=!!e.isPrepareDefaultAGT,this.disabledAGTProgressBar=!!e.disabledAGTProgressBar,this.soundEnabled=!!e.soundEnabled,this.getActiveScenario=this.getActiveScenario.bind(this),this.setSplashScreenStatus=this.setSplashScreenStatus.bind(this),this.setActiveScenarioCode=this.setActiveScenarioCode.bind(this),this.startScenario=this.startScenario.bind(this),this.pauseScenario=this.pauseScenario.bind(this),this.stopScenario=this.stopScenario.bind(this),this.togglePlayStepByStepId=this.togglePlayStepByStepId.bind(this),this.handleAutoPlaySkip=this.handleAutoPlaySkip.bind(this),this.fireOnSwitchKeyReady=this.fireOnSwitchKeyReady.bind(this),this.getPoisFromScenarioData=this.getPoisFromScenarioData.bind(this),this.createScenarioFeatures=this.createScenarioFeatures.bind(this),this.createScenarioProductList=this.createScenarioProductList.bind(this),this.createScenarioBrands=this.createScenarioBrands.bind(this),this.createScenarioLocations=this.createScenarioLocations.bind(this),this.createScenarioPromotions=this.createScenarioPromotions.bind(this),this.createScenarioInfo=this.createScenarioInfo.bind(this),this.createScenarioFacilities=this.createScenarioFacilities.bind(this),this.createScenarioMultiMedia=this.createScenarioMultiMedia.bind(this),this.createScenarioSwapElement=this.createScenarioSwapElement.bind(this),this.updateAGTScenario=this.updateAGTScenario.bind(this),this.setSoundStateForActiveScenario=this.setSoundStateForActiveScenario.bind(this),this.getTourItemInfoAndPromotionPois=this.getTourItemInfoAndPromotionPois.bind(this),this.createNewScenario=this.createNewScenario.bind(this),this.createScenarioAGT=this.createScenarioAGT.bind(this),this.createScenarioScenes=this.createScenarioScenes.bind(this),this.playScenarioPoi=this.playScenarioPoi.bind(this),this.getScenarioPoiSteps=this.getScenarioPoiSteps.bind(this),this.removeTemporaryScenario=this.removeTemporaryScenario.bind(this),this.createScenarioDataFromScenes=this.createScenarioDataFromScenes.bind(this),this.checkScriptAlreadyCreated=this.checkScriptAlreadyCreated.bind(this),this.signals={onSwitchKeyReady:new Xt.Signal},this.getTourItemInfoAndPromotionPois(),this.fireOnStopScenarioWithPoiInteractive(()=>this.pauseScenario())}playProductPois(e,t,n=!1){e=ds({tour:this.tour,poiTypes:[ue.ITEM_INFO],scenes:e,pois:t,itemTypes:[it],sleepTime:7e3,showDetail:n}).steps,this.createNewScenario(E.TEMP,Object.assign(Object.assign({},{steps:e,onStop:()=>{this.removeTemporaryScenario(!1)}}),{code:E.TEMP}),{autoReplay:!1}),this.setActiveScenarioCode(E.TEMP),this.prevActiveScenarioCode=this.activeScenarioCode}isPlaying(){var e=this.getActiveScenario();return!!e&&e.player&&e.player.playing}updatePlayList(e,t){if(e){this.props.scenarios||(this.props.scenarios=[]);var n=null==(n=this.props.scenarios)?void 0:n.findIndex(t=>t.type===e);if(!(-1<n))switch(null!=(n=this.props.scenarios)&&n.push(t),e){case E.FEATURES:this.createScenarioFeatures();break;case E.PRODUCT_LIST:this.createScenarioProductList();break;case E.BRAND:this.createScenarioBrands();break;case E.LOCATION:this.createScenarioLocations();break;case E.PROMOTION:this.createScenarioPromotions();break;case E.INFORMATION:this.createScenarioInfo();break;case E.FACILITY:this.createScenarioFacilities();break;case E.MULTIMEDIA:this.createScenarioMultiMedia();break;case E.SWAP_ELEMENT:this.createScenarioSwapElement();break;case E.SCENE:this.createScenarioScenes()}}}createScenarioDataFromScenes(e){let t=[];return e.forEach((e,n)=>{t.push({scene:e.props,hlookat:e.hlookat,vlookat:e.vlookat,orderIndex:n,actions:[{type:be.ROTATE,angle:360,speed:15,orderIndex:0}]})}),t.sort((e,t)=>e.orderIndex-t.orderIndex),{steps:t}}checkScriptAlreadyCreated(e){return!!e&&!!this.playlist.find(t=>t.key===e)}}let Ns="new",$s="played",As="paused",Ms="stopped",Ls="completed";class Ds{constructor(e){this.duration=0,this.position=0,this.speed=0,this.loop=!1,this.volume=0,this.range=0,this.enable=!0,this.streaming=!1,this.trackDuration=!1,this.progressInterval=null,this.soundObject=null,this.preload=()=>{(e=>e.get("device.ios"))(this.krpano)&&new Audio(this.sound.url)},this.getSoundObject=()=>this.soundObject,this.handlePlayingChange=()=>{this.onPlayingChange&&this.onPlayingChange(this.isPlaying())},this.handleProgressChange=()=>{this.onProgressChange&&(this.duration&&0!==this.duration||(this.duration=this.getDuration()),this.onProgressChange({position:this.getPosition(),duration:this.duration}))},this.resetProgressInterval=()=>{this.progressInterval&&clearInterval(this.progressInterval),this.progressInterval=null},this.initProgressInterval=()=>{this.progressInterval=setInterval(()=>{this.handleProgressChange()},300)},this.unloadAudio=()=>{this.soundObject&&(this.soundObject.unload(),this.soundObject=null)},this.props=e,this.id=e.id,this.code=e.code,this.name=e.name,this.sound=e.sound,this.signals=e.signals,this.krpano=e.krpano,this.duration=e.duration,this.position=e.position,this.speed=e.speed,this.enable=e.enable||!1,this.status=Ns,this.soundEnabled=e.soundEnabled||!1,this.muted=!0;var{volume:t,range:n,loop:o}=this.props;this.volume=void 0!==t?t/100:.5,this.range=void 0!==n?n:220,this.loop=void 0!==o&&o,this.streaming=void 0!==e.streaming&&e.streaming,this.stop=this.stop.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.getSoundObject=this.getSoundObject.bind(this),this.toggle=this.toggle.bind(this),this.changeVolume=this.changeVolume.bind(this),this.preload=this.preload.bind(this),this.isPlaying=this.isPlaying.bind(this),this.isPaused=this.isPaused.bind(this),this.updateSoundState=this.updateSoundState.bind(this),this.onPlayError=this.onPlayError.bind(this)}mute(e,t){var n;this.muted=e,null!=(n=this.soundObject)&&n.mute(e,t)}updateSoundState(e){this.soundEnabled=e,this.soundEnabled?this.play():this.pause()}getDuration(){return this.soundObject?this.soundObject.duration():0}getPosition(){return this.soundObject?this.soundObject.pos()[0]:0}pause(){return ce(this,arguments,void 0,function*(e=!1){this.soundObject&&this.soundObject.pause(),!0===e&&this.setPosition(0)})}play(){return ce(this,void 0,void 0,function*(){if(this.soundEnabled)if(this.soundObject)this.soundObject.playing()||this.soundObject.play();else{let e=new Wr.Howl({src:[""+this.sound.url],loop:this.loop,volume:this.volume,autoplay:!0,mute:this.muted,onend:()=>{this.status=Ls,this.handlePlayingChange(),e.loop||this.unloadAudio(),this.resetProgressInterval()},onplay:()=>{this.status=$s,this.handlePlayingChange(),this.trackDuration&&this.initProgressInterval()},onpause:()=>{this.status=As,this.handlePlayingChange(),this.resetProgressInterval()},onstop:()=>{this.status=Ms,this.handlePlayingChange(),this.resetProgressInterval()},onplayerror:this.onPlayError});e.play(),this.soundObject=e}})}onPlayError(){this.soundObject&&this.soundObject.once("unlock",this.play)}stop(){return ce(this,void 0,void 0,function*(){this.soundObject&&this.soundObject.stop(),this.unloadAudio()})}toggle(){return ce(this,arguments,void 0,function*(e=!1){this.isPlaying()?this.pause(e):this.play()})}changeVolume(e=1){e=this.volume*e,this.soundObject&&this.soundObject.fade(this.volume,e,1e3)}isPlaying(){return this.status===$s}isPaused(){return this.status===As}setPosition(e){var t=this.getSoundObject();t&&t.seek(e)}}class Is extends Ds{constructor(e){super(e),this.type="TOUR_BG",this.autoStart=!0,this.onPlayingChange=e=>{this.signals.backgroundSoundClick.dispatch(e)},this.startAuto=this.startAuto.bind(this)}startAuto(){return ce(this,void 0,void 0,function*(){this.play()})}}class Rs{constructor(e){var t;this.scenarioPlayer=null,this.scenes=[],this.autoplayReplay=!1,this.draggingMouse=!1,this.viewVLookAt=0,this.viewHLookAt=0,this.canChangeScene=!0,this.keepViewOnSceneChanged=!1,this.showNavigationHotspotLabels=!1,this.showLabel=!1,this.zoomable=!1,this.mwheel=!0,this.allPoiVisible=!0,this.singleClick=$e,this.loadingScene=!1,this.webGLSupported=!1,this.showNavigationHotspots=!1,this.showNavigationWithoutMovingHotspot=!1,this.navigationHotspotsVisible=!0,this.disabledAGTProgressBar=!1,this.startingSceneLoaded=!1,this.soundEnabled=!0,this.moveToClosestSceneDisabled=!1,this.backgroundVolumeDuringAGT=0,this.timeout=null,this.onViewChangeFuncs=[],this.onPreCheckViewChangeFuncs=[],this.hiddenLabelTypes=[],this.poiMap={},this.getBlendValue=()=>{let e=_e.DEFAULT,t=me.NORMAL;return this.blendSpeed&&me[this.blendSpeed]&&(t=me[this.blendSpeed]),this.blendMode&&_e[this.blendMode]?_e[this.blendMode].replace("{level}",t.toString()):e},this.setCanChangeScene=e=>{!this.canChangeScene&&e?setTimeout(()=>{this.canChangeScene=!0},1e3):this.canChangeScene=!1},this.getMouse=()=>this.krpano?this.krpano.get("mouse"):null,this.getPoi=(e,t)=>(e=this.getSceneById(e))?e.getPoiByCode(t):null,this.getPoiOfCurrentScene=e=>{var t=this.getActiveScene();return t?t.getPoiByCode(e):null},this.getSceneById=e=>this.scenes.find(t=>t.id===""+e)||null,this.getSceneByCode=e=>this.scenes.find(t=>t.code===e)||null,this.getActiveScene=()=>{if(!this.krpano)return null;let e=this.krpano.get("xml.scene");return e&&this.scenes.find(t=>t.code.toLowerCase()===e.toLowerCase())||null},this.fireOnSceneCompleted=e=>{if(this.krpano){let t=()=>{var e,t,n;this.krpano&&(this.signals.finishLoadingScene.dispatch(),this.startingSceneLoaded=!0,e=this.getActiveScene())&&((t=this.krpano.get("view"))&&(n=fn(this.krpano),t.fovtype=n.fovtype,t.fov=n.fov,this.krpano.set("display.framebufferscale",1)),e.setViewLimit(),e.loadPois(),this.toggleLabels(this.showLabel,e.code),this.krpano.set("view.maxpixelzoom",2),this.krpano.set("view.fovmax",e.props.fovmax||120),this.zoomable||this.krpano.set("control.fovspeed",0))};this.krpano.set("events.onblendcomplete",()=>{this.startingSceneLoaded&&t()}),this.krpano.set("events.onloadcomplete",()=>{e&&e(),this.handleOnSceneLoaded&&(this.handleOnSceneLoaded(),this.handleOnSceneLoaded=void 0),this.startingSceneLoaded||t()}),this.krpano.set("events.keep",!0)}},this.stopCurrentSceneMedia=e=>{var t=this.getActiveScene();t&&t.pois.forEach(t=>{e&&e===t.code||!(t instanceof qr||t instanceof Xr)||t.stop()})},this.pauseCurrentSceneMedia=()=>{var e=this.getActiveScene();e&&e.pois.forEach(e=>{(e instanceof qr||e instanceof Xr)&&e.pause()})},this.pauseBackgroundSound=()=>{this.backgroundSound&&this.backgroundSound.isPlaying()&&this.backgroundSound.pause()},this.resumeBackgroundSound=()=>{this.backgroundSound&&!this.backgroundSound.isPlaying()&&this.backgroundSound.isPaused()&&this.backgroundSound.play()},this.getViewChangedValues=(e,t)=>{var n=this.getActiveScene();if(n)return{hChanged:e-n.north,vChanged:t}},this.switchScene=e=>{this.moveToScene(e,{keepViewAfterMoving:!0,blendMode:"BLEND(0.5, easeInCubic)",useNonOffsetView:!0})},this.moveToScene=(e,t)=>{if(this.krpano){let i,r,s,a=0;if(void 0!==(null==t?void 0:t.hLookAt)&&null!==(null==t?void 0:t.hLookAt)&&void 0!==(null==t?void 0:t.vLookAt)&&null!==(null==t?void 0:t.vLookAt)&&(r=null==t?void 0:t.hLookAt,s=null==t?void 0:t.vLookAt,null!=t&&t.lookAtBeforeMoving)){var n=this.krpano.getView();let e=n.hlookat<0?n.hlookat+360:n.hlookat;var o=(null==t?void 0:t.hLookAt)<0?(null==t?void 0:t.hLookAt)+360:null==t?void 0:t.hLookAt;o=Math.abs(e-o);a=(o=Math.max(Math.min(Math.round(o/60),1),.5))+.2,this.krpano.call(`lookto(${null==t?void 0:t.hLookAt}, ${null==t?void 0:t.vLookAt}, ${n.fov}, tween(linear, ${o}));`)}null!=t&&t.lookAtBeforeMoving||(n=null!=t&&t.useNonOffsetView?this.krpano.getOriginalView():this.krpano.getView())&&(r=n.hlookat,s=n.vlookat),(null!=t&&t.keepViewAfterMoving||this.keepViewOnSceneChanged)&&void 0!==r&&void 0!==s&&(i=this.getViewChangedValues(r,s)),this.loadScene(e,a,i,null==t?void 0:t.blendMode)}},this.setupSoundPlugin=()=>{var e=!!this.props.scenes.find(e=>!!e.pois.find(e=>e.type===ue.SOUND));this.props.bgSound&&this.props.bgSound.enable||this.props.tourScenario||e?(this.plugins.sound=new Ir({krpano:this.krpano,signals:this.signals}),this.plugins.sound.load(this.handleOnSoundPluginLoaded)):this.signals.soundReady.dispatch()},this.handleOnMouseUp=()=>{var e;this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.draggingMouse&&(this.signals.backgroundGrab.dispatch(!0),(e=this.getActiveScene())&&e.autoShowHotspots(),setTimeout(()=>{this.draggingMouse=!1},500))},this.handleOnMouseDown=()=>{this.toggleLabels(!1),this.allPoiVisible&&(this.timeout=setTimeout(()=>{this.draggingMouse=!0,this.timeout=null,this.signals.backgroundGrab.dispatch(!1)},500))},this.moveToClosestScene=()=>{var e;!this.draggingMouse&&this.canChangeScene&&(e=this.getActiveScene())&&e.moveToClosestPoi()},this.moveByDirection=e=>{var t;this.draggingMouse||(t=this.getActiveScene())&&t.moveWithNavigationPoi(e)},this.configMouseEvents=()=>{if(this.krpano){if(this.singleClick!==Ne){let e;switch(this.singleClick){case $e:break;case Ae:e=()=>{this.moveToClosestSceneDisabled?this.moveToClosestSceneDisabled=!1:this.moveToClosestScene()}}e&&(this.krpano.set("events.onsingleclick",()=>{e()}),this.signals.floorPoiClick.add(()=>{e()}))}this.signals.toggleLabels.add(this.toggleLabels),this.krpano.set("events.onmousedown",this.handleOnMouseDown),this.krpano.set("events.onmouseup",this.handleOnMouseUp),this.signals.poiMouseUp.add(this.handleOnMouseUp),this.signals.navigationPoiClick.add(this.moveByDirection)}},this.isViewChanged=e=>{var{hlookat:e,vlookat:t,haschanged:n}=e;return(n||Math.round(e)!==Math.round(this.viewHLookAt)||Math.round(t)!==Math.round(this.viewVLookAt))&&(this.viewHLookAt=e,this.viewVLookAt=t,!0)},this.configViewSignals=()=>{this.krpano&&(this.signals.updateViewChangedEvents.add(e=>{this.onViewChangeFuncs||(this.onViewChangeFuncs=[]),this.onPreCheckViewChangeFuncs||(this.onPreCheckViewChangeFuncs=[]),(e.skipCheck?this.onPreCheckViewChangeFuncs:this.onViewChangeFuncs).push(e.handler)}),this.krpano.set("events.onviewchange",()=>{(this.onPreCheckViewChangeFuncs||[]).forEach(e=>{e()});var e=this.krpano.getView(),{hlookat:t,vlookat:n}=e;this.isViewChanged(e)&&(this.signals.onViewChanged.dispatch({hlookat:t,vlookat:n}),(this.onViewChangeFuncs||[]).forEach(e=>{e()}))}))},this.toggleNavigationHotspotsVisibility=e=>{e=null==e?this.navigationHotspotsVisible:e,this.navigationHotspotsVisible=e,this.toggleNavigationHotspots(e)},this.toggleNavigationHotspotsInAGT=(e=!0)=>{this.toggleNavigationHotspots(e)},this.toggleNavigationHotspots=(e=!0)=>{!this.showNavigationHotspots||!this.navigationHotspotsVisible&&e||this.scenes.forEach(t=>{t.toggleNavigationHotspots(e)})},this.load=e=>{let{elementId:t,onLoaded:n,startscene:o,hlookat:i,vlookat:r}=e,s=this.mapKrpanoVars(o,i,r),a=(this.startingScene=s.startscene,{preserveDrawingBuffer:!1,depth:!0,stencil:!0});this.elementId=t,((e,t=()=>{})=>{var n=document.createElement("script");let o=e;o?(o.startsWith("./")&&(o=o.slice(1)),n.src=o.startsWith("http")?""+o:""+origin+o,n.onload=t,document.head.appendChild(n)):t()})(this.props.sourceFolder.url+"/tour.js",()=>{var e=this.props.sourceFolder.url+"/tour.swf",t=""+Cn(this.props.sourceXml.url);embedpano({swf:e,xml:t,target:this.elementId,id:this.code,mwheel:this.mwheel,vars:s,consolelog:!1,webglsettings:a,onready:e=>{this.krpano=new Ar(e),this.webGLSupported=this.krpano.get("device.webGL"),this.scenes=this.props.scenes.map(e=>((e=new cs(Object.assign(Object.assign({},e),{krpano:this.krpano,tourUrl:this.props.sourceFolder.url,signals:this.signals,theme:this.props.theme,metadata:this.props.metadata,allPoiVisible:this.allPoiVisible,singleClick:this.singleClick,autoShow:this.hotspotAutoDisplayType,tourName:this.name,tourCode:this.code,showNavigationHotspots:this.showNavigationHotspots,showNavigationWithoutMovingHotspot:this.showNavigationWithoutMovingHotspot,showNavigationHotspotLabels:this.showNavigationHotspotLabels,blend:this.getBlendValue()}))).pois.forEach(e=>{e.hasDetailModal()&&(this.poiMap[e.code]=e)}),e)),this.configHotspotSignals(),this.configMouseEvents(),this.configOnBackgroundGrabbedSignal(),this.configSceneSignals(),this.configViewSignals(),this.setupSoundPlugin(),setTimeout(()=>{this.updateContextMenu(),this.setupNonSoundPlugins()},500),n&&n()},onerror:e=>{throw new Error(e)}})})},this.destroy=()=>{try{removepano(this.props.id)}catch(e){console.warn("Unmount error",e)}},this.toggleFullscreen=e=>{e?(e=>{e&&(e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.msRequestFullscreen?e.msRequestFullscreen():e.webkitEnterFullscreen&&e.webkitEnterFullscreen())})(document.getElementById("tour-layout")):document.fullscreenElement&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()),this.signals.toggleFullscreen.dispatch(e)},this.updateRadar=e=>{let t=e;(t=e?t:this.getActiveScene()||void 0)&&this.plugins.radar&&this.plugins.radar.updateHeading(-t.north)},this.fireOnPoiOver=e=>{this.signals.poiOver.add(e)},this.fireOnPoiHover=e=>{this.signals.poiHover.add(e)},this.fireOnPoiOut=e=>{this.signals.poiOut.add(e)},this.fireOnPoiClick=e=>{this.signals.poiClick.add(e)},this.fireOnRootPoiClick=e=>{this.signals.poiClicked.add(e)},this.fireOnMovingPoiClicked=e=>{this.signals.movingPoiClick.add(e)},this.fireOnPoiMediaStarted=e=>{this.signals.poiMediaPlayed.add(e)},this.fireOnPoiMediaPaused=e=>{this.signals.poiMediaPaused.add(e)},this.fireOnToggleFullScreen=e=>{this.signals.toggleFullscreen.add(e)},this.fireOnAutoRotateOneRound=e=>{this.signals.autoRotateOneRound.add(e)},this.fireOnBackgroundSoundClick=e=>{this.signals.backgroundSoundClick.add(e)},this.fireOnBackgroundGrab=e=>{this.signals.backgroundGrab.add(e)},this.fireOnLoadedPlugin=e=>{this.signals.onLoadedPlugin.add(e)},this.fireOnStartLoadingScene=e=>{this.signals.startLoadingScene.add(e)},this.fireOnFinishLoadingScene=e=>{this.signals.finishLoadingScene.add(e)},this.fireOnViewChanged=e=>{this.signals.onViewChanged.add(e)},this.fireOnToggleFloorPoi=e=>{this.signals.toggleFloorPoi.add(e)},this.fireOnSoundPlayable=e=>{this.signals.soundReady.add(e)},this.fireOnTexturePoiHover=e=>{this.signals.texturePoiHover.add(e)},this.fireOnTexturePoiClick=e=>{this.signals.texturePoiClick.add(e)},this.fireOnTexturePoiTouched=e=>{this.signals.texturePoiTouched.add(e)},this.fireOnToggleHotspotsVisibility=e=>{this.signals.toggleHotspotsVisibility.add(e)},this.fireOnHotspotNearestToCenter=e=>{this.signals.toggleHotspotNearestToCenter.add(e)},this.fireOnSetSubtitleText=e=>{this.signals.setSubtitleText.add(e)},this.fireOnOpenFuncButton=e=>{this.signals.openFunctionButton.add(e)},this.fireOnOpenMinimap=e=>{this.signals.openMinimap.add(e)},this.fireOnMovingPoiClick=e=>{this.signals.movingPoiClick.add(e)},this.stopCurrentSceneEvents=()=>{var e=this.getActiveScene();e&&(this.onPreCheckViewChangeFuncs=[],this.onViewChangeFuncs=[],e.floorPoi&&e.floorPoi.stopPlacingHotspotAtMouse(),e.toggleNavigationHotspots(!1,!0))},this.getRadarColorParams=e=>({color:"0x"+(null==(e=null==(e=null==e?void 0:e.split("#"))?void 0:e.pop())?void 0:e.slice(0,6)),opacity:e?parseInt(null==e?void 0:e.slice(6),16)/255:0}),this.updateViewOffsets=(e,t,n=!1)=>{var o,i;this.krpano&&(e||t?(({h:o,v:i}=wn(this.krpano,{x:e||0,y:t||0})),this.krpano.updateOffset(e&&o,t&&i,n)):this.krpano.updateOffset(0,0,n))},this.toggleZoom=(e=!0)=>{this.zoomable&&this.krpano&&this.krpano.set("control.touchzoom",e)},this.createScenarioPlayer=(e={})=>{this.scenarioPlayer=new Cs(Object.assign({krpano:this.krpano,tour:this,signals:this.signals,language:this.language,isPrepareDefaultAGT:this.isPrepareDefaultAGT,disabledAGTProgressBar:this.disabledAGTProgressBar,soundEnabled:this.soundEnabled},e))},this.getTourScenario=()=>this.scenarioPlayer?this.scenarioPlayer.getActiveScenario():null,this.togglePlayStepByStepId=e=>{this.scenarioPlayer&&this.scenarioPlayer.togglePlayStepByStepId(e)},this.handleOnSoundPluginLoaded=()=>{this.krpano&&(this.props.bgSound&&this.props.bgSound.enable&&this.props.bgSound.sound&&(this.backgroundSound=new Is(Object.assign(Object.assign({},this.props.bgSound),{soundEnabled:this.soundEnabled,krpano:this.krpano,signals:this.signals,delayAutoStart:this.props.autoplayOnStart,streaming:!0})),this.signals.playingSoundActionExecuted.add(()=>ce(this,void 0,void 0,function*(){this.backgroundSound.changeVolume(this.backgroundVolumeDuringAGT/100)})),this.signals.playingSoundActionStopped.add(()=>ce(this,void 0,void 0,function*(){this.backgroundSound.changeVolume(1)})),this.setupOnBackgroundSoundClickedSignal()),this.signals.soundReady.dispatch())},this.configHotspotSignals=()=>{this.krpano&&(this.fireOnMovingPoiClicked((e,t,n,o,i)=>{let r,s,a,l=0;if(null!=n&&null!=o&&(s=n,a=o,i)){var c=this.krpano.getView();let e=c.hlookat<0?c.hlookat+360:c.hlookat;var u=Math.abs(e-(n<0?n+360:n));l=(u=Math.max(Math.min(Math.round(u/60),1),.5))+.2,this.krpano.call(`lookto(${n}, ${o}, ${c.fov}, tween(linear, ${u}));`)}i||(n=this.krpano.getView())&&(s=n.hlookat,a=n.vlookat),this.keepViewOnSceneChanged&&void 0!==s&&void 0!==a&&(r=this.getViewChangedValues(s,a)),this.loadScene(e,l,r)}),this.fireOnPoiMediaStarted(e=>{this.stopCurrentSceneMedia(e),this.pauseBackgroundSound()}),this.fireOnPoiMediaPaused(this.resumeBackgroundSound))},this.setupOnBackgroundSoundClickedSignal=()=>{this.signals.backgroundSoundClick.add(e=>{e&&this.pauseCurrentSceneMedia()})},this.configOnBackgroundGrabbedSignal=()=>{this.signals.backgroundGrab.add(e=>{this.allPoiVisible=e,this.togglePoisVisibility(e)})},this.togglePoisVisibility=e=>{var t=this.getActiveScene();t&&t.togglePoisVisibility(e)},this.configSceneSignals=()=>{this.signals.startLoadingScene.add(()=>{this.loadingScene=!0}),this.signals.finishLoadingScene.add(()=>{this.loadingScene=!1})},this.mapKrpanoVars=(e,t,n)=>{let o;var i={startscene:null==(o=e?this.props.scenes.find(t=>t.code===e):o)?void 0:o.code,"view.hlookat":null==o?void 0:o.hlookat,"view.vlookat":null==o?void 0:o.vlookat,"view.fov":null==o?void 0:o.fov,"view.fovmax":null==o?void 0:o.fovmax,"view.fovmin":null==o?void 0:o.fovmin,"display.loadwhilemoving":!0};return Number.isNaN(Number(t))||Number.isNaN(Number(n))||(i["view.hlookat"]=Number(t),i["view.vlookat"]=Number(n)),i.startscene||([o]=this.props.scenes,o&&(i.startscene=o.code,i["view.fov"]=o.fov||0,i["view.fovmax"]=o.fovmax||0,i["view.fovmin"]=o.fovmin||0,Number.isNaN(Number(t))||Number.isNaN(Number(n)))&&(i["view.hlookat"]=o.hlookat||0,i["view.vlookat"]=o.vlookat||0)),i},this.props=e,this.name=e.name,this.code=e.code,this.metadata=e.metadata,this.activeMarkerColor=e.activeMarkerColor,this.language=e.language,this.isPrepareDefaultAGT=!!e.isPrepareDefaultAGT,this.krpano=void 0,this.scenes=[],this.elementId=void 0,this.backgroundSound=void 0,this.hotspotLabelsHidden=!0,this.hotspotAutoDisplayType=e.autoShow||Le,this.keepViewOnSceneChanged=e.keepView||!1,this.soundEnabled=null==(t=e.soundEnabled)||t,this.backgroundVolumeDuringAGT=null!=(t=e.bgVolumeDuringAGT)?t:0,this.zoomable=!0,void 0!==e.mwheel&&(this.mwheel=e.mwheel),void 0!==e.allPoiVisible&&(this.allPoiVisible=e.allPoiVisible),void 0!==e.singleClick&&(this.singleClick=e.singleClick),this.blendMode=e.blendMode||S.DEFAULT,this.blendSpeed=e.blendSpeed||"NORMAL",this.autoplayReplay=e.autoplayReplay,this.showNavigationHotspots=e.showNavigationHotspots||!1,this.showNavigationWithoutMovingHotspot=e.showNavigationWithoutMovingHotspot||!1,this.showNavigationHotspotLabels=e.showNavigationHotspotLabels||!1,this.disabledAGTProgressBar=e.disabledAGTProgressBar||!1,this.plugins={radar:null,gyro:null,sound:null},this.signals={toggleFullscreen:new Xt.Signal,backgroundSoundClick:new Xt.Signal,autoRotateOneRound:new Xt.Signal,autoRotateStart:new Xt.Signal,autoRotateStop:new Xt.Signal,backgroundGrab:new Xt.Signal,onLoadedPlugin:new Xt.Signal,startLoadingScene:new Xt.Signal,finishLoadingScene:new Xt.Signal,onViewChanged:new Xt.Signal,soundReady:new Xt.Signal,toggleHotspotsVisibility:new Xt.Signal,toggleHotspotNearestToCenter:new Xt.Signal,setSubtitleText:new Xt.Signal,playingSoundActionExecuted:new Xt.Signal,playingSoundActionStopped:new Xt.Signal,openFunctionButton:new Xt.Signal,muteSound:new Xt.Signal,openMinimap:new Xt.Signal,updateViewChangedEvents:new Xt.Signal,poiOver:new Xt.Signal,poiOut:new Xt.Signal,poiHover:new Xt.Signal,poiClick:new Xt.Signal,poiClicked:new Xt.Signal,movingPoiClick:new Xt.Signal,poiMediaPlayed:new Xt.Signal,poiMediaPaused:new Xt.Signal,poiMouseUp:new Xt.Signal,floorPoiClick:new Xt.Signal,navigationPoiClick:new Xt.Signal,texturePoiHover:new Xt.Signal,texturePoiClick:new Xt.Signal,texturePoiTouched:new Xt.Signal,toggleLabels:new Xt.Signal,toggleFloorPoi:new Xt.Signal,stopScenario:new Xt.Signal}}loadScene(e,t,n,o){return ce(this,void 0,void 0,function*(){var i;!this.krpano||(i=this.krpano.get("xml.scene"))&&e&&i.toLowerCase()===e.toLowerCase()||((i=this.getSceneByCode(e))?(this.stopCurrentSceneMedia(),this.stopCurrentSceneEvents(),this.resumeBackgroundSound(),this.signals.startLoadingScene.dispatch(),i.load(t,n,o),t&&(yield Jt(1e3*t)),this.updateRadar(i)):console.error("cannot find scene by code: "+e))})}toggleLabels(e=!1,t){let n=this.getActiveScene();t&&(n=this.getSceneByCode(t)),this.showLabel=e,n&&n.pois&&n.pois.length&&n.pois.forEach(e=>{(e instanceof Hr||e instanceof Fr)&&e.show&&(this.showLabel?e.show():e.hide())})}screenshot(e=0,t=0,n=!1,o="jpeg",i=1){this.webGLSupported&&this.krpano&&(e=this.krpano.get("global").webGL.makeScreenshot(e,t,n,o,i),(t=document.createElement("a")).href=e,t.download=`screenshot-${(new Date).getTime()}.`+o,t.click())}toggleFloorPois(e){this.scenes.forEach(t=>t.toggleFloorPoiVisibility(e))}getPoiByCodeFromScenes(e){try{return this.scenes.flatMap(e=>e.pois).find(t=>t.code===e)}catch(t){return console.error("Cannot find poi by code "+e),null}}initializeRadarPlugin(e){var t;this.krpano&&(t=this.getRadarColorParams(this.activeMarkerColor).color,e)&&0<e.length&&e.some(e=>!!e.enabledRadar)&&(this.plugins.radar=new Dr({krpano:this.krpano,url:we.RADAR,keep:!0,fillcolor:t,linecolor:t,signals:this.signals}),this.updateRadar())}toggleLabelVisibility(e=!0,t){t?e?this.hiddenLabelTypes=this.hiddenLabelTypes.filter(e=>e!==t):this.hiddenLabelTypes.push(t):this.hiddenLabelTypes=e?[]:[...Object.keys(he)],this.scenes.forEach(e=>{var t;null!=(t=e.toggleLabelVisibility)&&t.call(e,this.hiddenLabelTypes)}),(e=this.getActiveScene())&&e.showHotspotNearestToCenter()}getPoiByCode(e){return this.poiMap[e]}getView(){var e;return null==(e=this.krpano)?void 0:e.getView()}goToProduct(e){return ce(this,void 0,void 0,function*(){var t;if(!e)return!1;let n=this.getActiveScene();if(!n)return!1;var o,i=[...this.scenes],r=i.findIndex(e=>e.code===n.code),s=(0!==r&&(i.splice(r,1),i.unshift(n)),e.toUpperCase());let a=null,l=null;for(o of i)for(var c of o.pois)if(c.type===ue.ITEM_INFO){if(c.itemInfoCode&&s===c.itemInfoCode.toUpperCase()){a=c,l=o;break}if(null!=(t=c.itemInfo)&&t.name&&s===c.itemInfo.name.toUpperCase()){a=c,l=o;break}}return!(!a||!l||(n.code!==l.code&&(yield this.loadScene(l.code,.2)),a.lookAt(),this.signals.poiClick.dispatch(a.props),0))})}updateContextMenu(){this.krpano&&this.krpano.call("\n set(contextmenu.fullscreen, false);\n set(contextmenu.versioninfo, false);\n ")}setupNonSoundPlugins(){this.plugins.gyro=new Lr({krpano:this.krpano,signals:this.signals}),this.plugins.gyro.load()}}let Fs=()=>{(()=>{let e,{elementId:t,listeners:n,overrideConfigs:o={}}=bt(),{language:i="vi"}=o,{mobileDevice:r,tourData:s,metadata:a,tourSoundPlaying:l,activeScenario:c,soundReady:u,showSplashScreen:h,autoPlaying:d,playingTempScenario:p,playingHotspotSound:f,showSlideIn:g,bottomSheetMiddleHeight:m,activePoiCode:v,activePoi:_,tourReady:b,focusingOnVisualizer:y,backgroundSoundPlaying:w,muted:x,viewRotating:k,floorplans:S,setActiveScene:O,setLoading:E,setBackgroundSoundPlaying:T,setSoundReady:P,setTourReady:C,setActiveFloorplan:N,setActivePoi:$,setActivePoiCoords:A,setLoadingScene:M,setPoiCodeNearestToCenter:L,setViewRotating:D,setActiveTourPlugin:I}=xt(),[R,F]=se.useState(!1),[H,V]=se.useState(!1),[j,z]=se.useState(!1),[U,B]=se.useState(null),Y=se.useRef(null),W=se.useRef(!1),G=d&&!p,q=()=>{if(U){let t=U.getActiveScene();var e;t&&(null!=n&&n.onSceneChanged&&n.onSceneChanged(t),t.showHotspotNearestToCenter(),O(t),R||(e=S.find(e=>e.markers&&e.markers.find(e=>e.toScene&&e.toScene.code===t.code)))&&N(e),F(!0))}},X=(e=!0)=>{if(!U)return!1;var t=r?Qe.DYNAMIC_VERTICAL(m):Qe.HORIZONTAL;g?U.updateViewOffsets(t.x,t.y,e):U.updateViewOffsets(0,0,e)},Q=()=>{U&&(U.fireOnSceneCompleted(q),setTimeout(()=>{ce(void 0,void 0,void 0,function*(){if(U&&s)try{let e=U.startingScene;s.scenes.find(t=>t.code===e)}catch(e){console.error("Preloading start scene failed")}finally{V(!0)}else V(!0)}),U.fireOnPoiOver(({poiData:e,coords:t})=>{$(e),A(t)}),U.fireOnPoiHover(e=>{A(e)}),U.fireOnPoiOut(()=>{$(null),A(null)}),U.fireOnPoiClick(e=>{if(null!=n&&n.onPoiClicked&&n.onPoiClicked(),e)switch(e.type){case ue.VIDEO:case ue.GALLERY:case ue.MOVING:case ue.PROMOTION:break;case ue.ITEM_INFO:null!=e&&e.itemInfo,$(null),A(null)}}),U.fireOnBackgroundSoundClick(e=>{T(e)}),U.fireOnBackgroundGrab(e=>{}),U.fireOnLoadedPlugin((e,t)=>{I({pluginName:e,state:!!t})}),U.fireOnMovingPoiClick((e,t)=>{var n=S.find(e=>e.code===t);n&&N(n)}),U.fireOnStartLoadingScene(()=>{M(!0),W.current=!0}),U.fireOnFinishLoadingScene(()=>{M(!1),W.current=!1}),U.fireOnViewChanged(e=>{k||D(!0),Z(U.getView())}),U.fireOnTexturePoiHover(e=>{}),U.fireOnTexturePoiTouched(e=>{}),U.fireOnTexturePoiClick(e=>{}),U.fireOnHotspotNearestToCenter(e=>{L(e)}),U.fireOnSetSubtitleText(e=>{}),U.fireOnOpenFuncButton(e=>{}),U.fireOnOpenMinimap(e=>{}),U.initializeRadarPlugin(S),null!=n&&n.onTourLoaded&&n.onTourLoaded(U),E(!1)},500))},Z=Yt(e=>{},500);se.useEffect(()=>{if(s&&t){let e=new Rs(Object.assign(Object.assign({},s),{language:i,metadata:a||void 0,soundEnabled:l}));e.fireOnSoundPlayable(()=>{var t=s.tourScenario,n=t&&c&&c.code===t?null:c;e.createScenarioPlayer({defaultScenario:n||t,defaultScenarioCode:null==n?void 0:n.code}),P(!0)}),B(e)}},[s,t]),se.useEffect(()=>{if(U){U.load({elementId:t,onLoaded:Q});let n=e=>{e.touches.length||U.handleOnMouseUp()};var e;return r&&(e=document.getElementById(t))&&e.addEventListener("touchend",n,{passive:!1}),()=>{var e;U&&U.destroy(),r&&(e=document.getElementById(t))&&e.removeEventListener("touchend",n)}}},[U]),se.useEffect(()=>{if(G)try{Y.current&&clearTimeout(Y.current),W.current=!0,Y.current=setTimeout(()=>{W.current=!1},300)}catch(e){console.error("PreventedUpdateTourView has error",e)}},[G]),se.useEffect(()=>{G||f?X(!1):null!=Y&&Y.current?X(!!v):setTimeout(()=>{X()},200)},[G,f,g]),se.useEffect(()=>{R&&u&&H&&C(!0)},[R,u,H]),se.useEffect(()=>{!h&&u&&U&&U.backgroundSound&&U.backgroundSound.startAuto()},[h,u,U]),se.useEffect(()=>{var e;U&&_&&!d&&(e=U.getPoiByCode(null==_?void 0:_.code))&&(null==e?void 0:e.type)===ue.MOVING&&null!=e&&e.onOut()},[d,U]),se.useEffect(()=>{var e;b&&U&&(e=U.getActiveScene())&&e.autoShowHotspots()},[b,U]),se.useEffect(()=>{var e;b&&!j&&c&&(null!=(e=null==U?void 0:U.scenarioPlayer)&&e.updateAGTScenario(c,1),z(!0))},[b,c]),se.useEffect(()=>{U&&(U.scenarioPlayer&&U.scenarioPlayer.setSoundStateForActiveScenario(l),U.backgroundSound)&&U.backgroundSound.updateSoundState(l)},[l,U]),se.useEffect(()=>{var e;U&&(y?(U.signals.poiMediaPaused.active=!0,l&&null!=(e=U.backgroundSound)&&e.isPaused()&&null!=(e=U.backgroundSound)&&e.play()):(U.signals.poiMediaPaused.active=!1,U.pauseCurrentSceneMedia(),d&&null!=(e=U.scenarioPlayer)&&e.pauseScenario(),w&&null!=(e=U.backgroundSound)&&e.pause()))},[y]),se.useEffect(()=>{var e;null!=(e=null==U?void 0:U.backgroundSound)&&e.mute&&U.backgroundSound.mute(x)},[x]);var K=null==(e=null==U?void 0:U.getTourScenario())?void 0:e.code;se.useEffect(()=>{setTimeout(()=>{var e;null!=(e=null==U?void 0:U.signals)&&e.muteSound&&U.signals.muteSound.dispatch(x)})},[x,K])})();var e=bt().elementId;return v.jsx("div",{className:"w-full h-full",id:e})},Hs=()=>{kt();var e=xt().canInitVisualizer;return v.jsx(v.Fragment,{children:e&&v.jsx(Fs,{})})},Vs=e=>v.jsx(_t,{config:{apiHost:e.apiHost,elementId:e.elementId,overrideConfigs:e.config,listeners:{onTourLoaded:e.onTourLoaded,onPoiClicked:e.onPoiClicked}},children:v.jsx(wt,{children:v.jsx(Hs,{})})});var js=function(){var e,n,o,i,r,s,a,l,c,u,h,d,p,f;return Yr||(Yr=1,e=NaN,n="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),h=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return u.Date.now()},Br=function(e,t,n){var o,i,r,s,a,l,c=0,u=!1,h=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function _(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function b(e){var n=e-l;return void 0===l||t<=n||n<0||h&&r<=e-c}function y(){var e,n=f();if(b(n))return w(n);a=setTimeout(y,(e=t-(n-l),h?p(e,r-(n-c)):e))}function w(e){return a=void 0,v&&o?_(e):(o=i=void 0,s)}function x(){var e=f(),n=b(e);if(o=arguments,i=this,l=e,n){if(void 0===a)return c=e=l,a=setTimeout(y,t),u?_(e):s;if(h)return a=setTimeout(y,t),_(l)}return void 0===a&&(a=setTimeout(y,t)),s}return t=m(t)||0,g(n)&&(u=!!n.leading,r=(h="maxWait"in n)?d(m(n.maxWait)||0,t):r,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==a&&clearTimeout(a),o=l=i=a=void(c=0)},x.flush=function(){return void 0===a?s:w(f())},x}),Br;function g(e){var t=typeof e;return e&&("object"==t||"function"==t)}function m(t){if("number"==typeof t)return t;if("symbol"==typeof(c=t)||(l=c)&&"object"==typeof l&&h.call(c)==n)return e;var l;if("string"!=typeof(t=g(t)?g(l="function"==typeof t.valueOf?t.valueOf():t)?l+"":l:t))return 0===t?t:+t;t=t.replace(o,"");var c=r.test(t);return c||s.test(t)?a(t.slice(2),c?2:8):i.test(t)?e:+t}}(),zs=n(js),Us="undefined"!=typeof window?se.useLayoutEffect:se.useEffect;function Bs(e,t=500,n){let o=se.useRef();!function(e){let t=se.useRef(e);t.current=e,se.useEffect(()=>()=>{t.current()},[])}(()=>{o.current&&o.current.cancel()});var i=se.useMemo(()=>{let i=zs(e,t,n);var r=(...e)=>i(...e);return r.cancel=()=>{i.cancel()},r.isPending=()=>!!o.current,r.flush=()=>i.flush(),r},[e,t,n]);return se.useEffect(()=>{o.current=zs(e,t,n)},[e,t,n]),i}var Ys,Ws="undefined"==typeof window;function Gs(e={}){let{initializeWithValue:t=!0}=e,[n,o]=(Ws&&(t=!1),se.useState(()=>t?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0})),i=Bs(o,e.debounceDelay);function r(){(e.debounceDelay?i:o)({width:window.innerWidth,height:window.innerHeight})}return function(e,t,n,o){let i=se.useRef(t);Us(()=>{i.current=t},[t]),se.useEffect(()=>{let t=window;if(t&&t.addEventListener){let n=e=>{i.current(e)};return t.addEventListener(e,n,o),()=>{t.removeEventListener(e,n,o)}}},[e,n,o])}("resize",r),Us(()=>{r()},[]),n}(e=>{e.IFRAME="IFRAME",e.NEW_TAB="NEW_TAB"})(Ys=Ys||{});let qs={key:"NAVIGATION_ARROWS"},Xs={key:"SIMULATION_VR"},Qs={key:"SOUND"},Zs={key:"FULLSCREEN"},Ks={key:"HOTSPOT"},Js={key:"SHARE"},ea={key:"SEARCH"},ta=se.createContext(void 0),na=({children:e,config:t})=>{var[n,o]=se.useState(!1),[i,r]=se.useState(!1),[s,a]=se.useState(!1);let[l,c]=se.useState(!1),[u,h]=se.useState(!1),[d,p]=se.useState(!1),[f,g]=se.useState(!1);var[m,_]=se.useState(!1);let[b,y]=se.useState(!1),[w,x]=se.useState(!1),[k,S]=se.useState(!1);var[O,E]=se.useState(!1),[T,P]=se.useState([]),[C,N]=se.useState(void 0),[$,A]=se.useState(void 0),M=se.useMemo(()=>({[Zs.key]:f,[Ks.key]:u,[qs.key]:l,[Xs.key]:b,[Qs.key]:d,[ea.key]:w,[Js.key]:k}),[f,u,l,b,w,d,k]);return v.jsx(ta.Provider,{value:{mobile:t.mobile,soundPlaying:d,showGuide:i,activeFunctionButtonCode:C,showChatBtn:n,showFloorplan:s,showNavigationArrows:l,showHotspotLabels:u,setShowFloorplan:a,setActiveFunctionButtonCode:N,setShowChatBtn:o,setShowNavigationArrows:c,setShowGuide:r,setSoundPlaying:p,setShowHotspotLabels:h,hiddenPoiLabelTypes:T,setHiddenPoiLabelTypes:P,fullscreen:f,setFullscreen:g,showChatbox:m,setShowChatbox:_,setCanUseGyroscope:y,visibleActions:M,setMenuOpened:x,setShowShareLink:S,canUseGyroscope:b,menuOpened:w,showShareLink:k,playingAgt:O,setPlayingAgt:E,gallery:$,setGallery:A},children:e})},oa=()=>{var e=se.useContext(le).tour,t=(()=>{var e=ae.useContext(ta);if(void 0===e)throw new Error("useLayout must be used within a LayoutProvider");return e})().mobile,n=Gs().width,o=se.useMemo(()=>"calc(var(--screen-width) / 2 - 16px)",[]);e=null==e?void 0:e.props;return v.jsxs("div",{className:"cvtv-ui-layout__tour-logo",style:{"--tour-logo-max-width":o,"--screen-width":n?n+"px":"100%"},children:[(null==e?void 0:e.tourLogo)&&v.jsx("img",{src:e.tourLogo.file.url,alt:"logo"}),!(null==e||!e.showTourName)&&!t&&v.jsx("span",{children:e.name})]})},ia=()=>{var{}=se.useContext(le),[,,]=se.useState(null),[,,]=se.useState(!1);return v.jsxs(v.Fragment,{children:[v.jsx(oa,{}),v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"cvtc-beta-tour__group-action"}),v.jsx("div",{className:"cvtc-beta-tour__group-pin-action"})]})]})},ra=se.createContext(void 0),sa=({children:e,config:t})=>{let[n,o]=se.useState(Object.assign({},t));return se.useEffect(()=>{var e;if(!t.apiHost)throw new Error("apiHost is required");let n=t.elementId;t.elementId||(n="virtual-tour-"+(null==(e=t.overrideConfigs)?void 0:e.tourCode)),o(Object.assign(Object.assign({},t),{elementId:n}))},[t]),v.jsx(ra.Provider,{value:n,children:e})},aa=e=>v.jsx(sa,{config:{apiHost:e.apiHost,elementId:e.elementId,overrideConfigs:e.config},children:e.tourLoaded&&v.jsx(na,{config:{mobile:e.mobile},children:v.jsx(ia,{})})}),la=e=>{let t=se.useContext(le),[n,o]=se.useState(!1);return v.jsxs("div",{className:"w-full h-full",children:[v.jsx("style",{children:'*,::backdrop,:after,:before{--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:#3b82f680;--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: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Be Vietnam Pro,sans-serif;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-feature-settings:normal;font-family:Be Vietnam Pro,sans-serif;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height: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:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--color-yellow:#f1c40f;--color-blue-on-dark:#3498db;--color-blue-on-light:#2980b9;--color-blue-on-white:#244385;--color-blue-primary:#3585f7;--color-blue-navy:#244385b8;--color-white-8:#ffffff14;--color-white-16:#ffffff29;--color-white-24:#ffffff3d;--color-white-32:#ffffff52;--color-white-48:#ffffff7a;--color-white-64:#ffffffa3;--color-white-72:#ffffffb8;--color-white-88:#ffffffe0;--color-white:#fff;--color-black-0:#0000;--color-black-4:#0000000a;--color-black-8:#00000014;--color-black-16:#00000029;--color-black-24:#0000003d;--color-black-32:#00000052;--color-black-36:#0000005c;--color-black-48:#0000007a;--color-black-64:#000000a3;--color-black-72:#000000b8;--color-black-80:#000c;--color-black:#000;--color-orange-on-light:#e67e22;--color-orange-on-dark:#f39c12;--color-green-on-light:#27ae60;--color-green-on-dark:#2ecc71;--color-green-72-on-dark:#2ecc71b8;--color-red-on-light:#c0392b;--color-red-on-dark:#e74c3c;--color-purple-on-light:#8e44ad;--color-purple-on-dark:#9b59b6;--color-cyan-on-light:#0095c4;--color-cyan-on-dark:#49a8db;--color-gray-1:#1d1d1d;--color-gray-2:#333;--color-gray-3:#ebebeb;--color-gray-4:#666;--color-gray-5:#999;--color-gray-6:#d6d6d6;--color-gold-on-light:#a48456;--color-gold-on-dark:#d1ba83;--color-pink:#ed2e7e;--color-pink-on-light:#c30052;--color-turquoise-on-light:#16a085;--color-turquoise-on-dark:#1abc9c;--color-mint:#00dfe0;--space-2:2px;--space-4:4px;--space-8:8px;--space-10:10px;--space-12:12px;--space-13:13px;--space-14:14px;--space-16:16px;--space-18:18px;--space-20:20px;--space-22:22px;--space-24:24px;--space-28:28px;--space-32:32px;--space-36:36px;--space-40:40px;--space-48:48px;--space-56:56px;--space-60:60px;--space-64:64px;--space-72:72px;--space-80:80px;--space-88:88px;--space-150:150px;--space-limit:640px;--space-infinity:9999px;--number-infinity:9999;--font-family:"Be Vietnam Pro",sans-serif;--font-size-10:10px;--font-size-12:12px;--font-size-13:13px;--font-size-14:14px;--font-size-15:15px;--font-size-16:16px;--font-size-18:18px;--font-size-20:20px;--font-size-24:24px;--font-size-28:28px;--font-size-32:32px;--font-size-34:34px;--font-size-40:40px;--font-size-48:48px;--font-size-54:54px;--font-size-64:64px;--font-style-italic:italic;--font-style-not-italic:normal;--font-weight-hairline:100;--font-weight-thin:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--line-height-13:13px;--line-height-14:14px;--line-height-15:15px;--line-height-16:16px;--line-height-18:18px;--line-height-20:20px;--line-height-22:22px;--line-height-24:24px;--line-height-26:26px;--line-height-28:28px;--line-height-32:32px;--line-height-36:36px;--line-height-40:40px;--line-height-42:42px;--line-height-48:48px;--line-height-60:60px;--letter-spacing-1:1px;--text-shadow:1px 1px 1px var(--color-black);--z-order-mask:1072;--z-order-modal-on-mask:1073;--z-order-action-on-mask:1074;--tour-logo-max-width:0}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.absolute{position:absolute}.relative{position:relative}.-top-0\\.5{top:-2px}.bottom-\\[-14\\.14213562373095px\\]{bottom:-14.14213562373095px}.left-\\[5px\\]{left:5px}.left-\\[calc\\(50\\%_-_7\\.07px\\)\\]{left:calc(50% - 7.07px)}.z-0{z-index:0}.block{display:block}.flex{display:flex}.h-2\\.5{height:10px}.h-\\[14\\.14213562373095px\\]{height:14.14213562373095px}.h-full{height:100%}.w-2\\.5{width:10px}.w-\\[14\\.14213562373095px\\]{width:14.14213562373095px}.w-full{width:100%}.min-w-\\[60px\\]{min-width:60px}.-translate-x-2\\/4{--tw-translate-x:-50%}.-translate-x-2\\/4,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(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:0px}.rotate-45{--tw-rotate:45deg}.rotate-45,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.overflow-hidden{overflow:hidden}.rounded{border-radius:4px}.rounded-md{border-radius:6px}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.6\\)\\]{background-color:#0009}.px-3{padding-left:12px;padding-right:12px}.py-2{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-base{font-size:16px;line-height:24px}.font-normal{font-weight:400}.leading-5{line-height:20px}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.shadow-\\[0_1px_2px_-2px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.16\\)\\2c 0_3px_6px_0_rgba\\(0\\2c 0\\2c 0\\2c 0\\.12\\)\\2c 0_5px_12px_4px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.09\\)\\]{--tw-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017;--tw-shadow-colored:0 1px 2px -2px var(--tw-shadow-color),0 3px 6px 0 var(--tw-shadow-color),0 5px 12px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.invert{--tw-invert:invert(100%)}.filter,.invert{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)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.paused{animation-play-state:paused}'}),v.jsx("style",{children:'@font-face{font-display:block;font-family:icomoon;font-style:normal;font-weight:400;src:local("icomoon"),url(fonts/icomoon.eot?o0athh#iefix) format("embedded-opentype"),url(fonts/icomoon.ttf?o0athh) format("truetype"),url(fonts/icomoon.woff?o0athh) format("woff"),url(fonts/icomoon.svg?o0athh#icomoon) format("svg")}[class*=" icon-"],[class^=icon-]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icomoon!important;font-size:24px;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}[class*=" icon-"]:before,[class^=icon-]:before{color:#1d1d1d;font-size:1em}'}),v.jsx("style",{children:'.icon-person-pin-circle-off_24x24:before{color:#fff;content:"\\eb55"}.icon-clik-rotation-on_24x24:before{content:"\\eb4e"}.icon-clik-rotation-off_24x24:before{content:"\\eb4f"}.icon-map:before{content:"\\eb4d"}.icon-person_pin_circle_24x24:before{content:"\\eb4a"}.icon-vrpano-galery_24x24:before{content:"\\eb4b"}.icon-union_24x24:before{content:"\\eb4c"}.icon-logo-clik-white-64x64:before{color:#fff;content:"\\eb48"}.icon-joystick_24x24:before{color:#007aff;content:"\\eb47"}.icon-door_24x24:before{content:"\\eb49"}.icon-new-bulb_24x24:before{color:#fff;content:"\\eb46"}.icon-show-ai_24x24:before{content:"\\eb45"}.icon-language-cn-circle_24x24 .path1:before{color:#ee1c25;content:"\\eb17"}.icon-language-cn-circle_24x24 .path2:before{color:#ff0;content:"\\eb18";margin-left:-1em}.icon-language-cn-circle_24x24 .path3:before{color:#ff0;content:"\\eb19";margin-left:-1em}.icon-language-cn-circle_24x24 .path4:before{color:#ff0;content:"\\eb1a";margin-left:-1em}.icon-language-cn-circle_24x24 .path5:before{color:#ff0;content:"\\eb1b";margin-left:-1em}.icon-language-cn-circle_24x24 .path6:before{color:#ff0;content:"\\eb1c";margin-left:-1em}.icon-language-en-circle_24x24 .path1:before{color:#fff;content:"\\eb1d"}.icon-language-en-circle_24x24 .path2:before{color:#012169;content:"\\eb1e";margin-left:-1em}.icon-language-en-circle_24x24 .path3:before{color:#012169;content:"\\eb1f";margin-left:-1em}.icon-language-en-circle_24x24 .path4:before{color:#012169;content:"\\eb20";margin-left:-1em}.icon-language-en-circle_24x24 .path5:before{color:#012169;content:"\\eb21";margin-left:-1em}.icon-language-en-circle_24x24 .path6:before{color:#012169;content:"\\eb22";margin-left:-1em}.icon-language-en-circle_24x24 .path7:before{color:#012169;content:"\\eb23";margin-left:-1em}.icon-language-en-circle_24x24 .path8:before{color:#012169;content:"\\eb24";margin-left:-1em}.icon-language-en-circle_24x24 .path9:before{color:#012169;content:"\\eb25";margin-left:-1em}.icon-language-en-circle_24x24 .path10:before{color:#c8102e;content:"\\eb26";margin-left:-1em}.icon-language-en-circle_24x24 .path11:before{color:#c8102e;content:"\\eb27";margin-left:-1em}.icon-language-en-circle_24x24 .path12:before{color:#c8102e;content:"\\eb28";margin-left:-1em}.icon-language-en-circle_24x24 .path13:before{color:#c8102e;content:"\\eb29";margin-left:-1em}.icon-language-en-circle_24x24 .path14:before{color:#c8102e;content:"\\eb2a";margin-left:-1em}.icon-language-jp-circle_24x24 .path1:before{color:#fff;content:"\\eb2b"}.icon-language-jp-circle_24x24 .path2:before{color:#bc002d;content:"\\eb2c";margin-left:-1em}.icon-language-kr-circle_24x24 .path1:before{color:#fff;content:"\\eb2d"}.icon-language-kr-circle_24x24 .path2:before{color:#cd2e3a;content:"\\eb2e";margin-left:-1em}.icon-language-kr-circle_24x24 .path3:before{color:#0047a0;content:"\\eb2f";margin-left:-1em}.icon-language-kr-circle_24x24 .path4:before{color:#cd2e3a;content:"\\eb30";margin-left:-1em}.icon-language-kr-circle_24x24 .path5:before{color:#181b34;content:"\\eb31";margin-left:-1em}.icon-language-kr-circle_24x24 .path6:before{color:#181b34;content:"\\eb32";margin-left:-1em}.icon-language-kr-circle_24x24 .path7:before{color:#181b34;content:"\\eb33";margin-left:-1em}.icon-language-kr-circle_24x24 .path8:before{color:#181b34;content:"\\eb34";margin-left:-1em}.icon-language-kr-circle_24x24 .path9:before{color:#181b34;content:"\\eb35";margin-left:-1em}.icon-language-kr-circle_24x24 .path10:before{color:#181b34;content:"\\eb36";margin-left:-1em}.icon-language-kr-circle_24x24 .path11:before{color:#181b34;content:"\\eb37";margin-left:-1em}.icon-language-kr-circle_24x24 .path12:before{color:#181b34;content:"\\eb38";margin-left:-1em}.icon-language-kr-circle_24x24 .path13:before{color:#181b34;content:"\\eb39";margin-left:-1em}.icon-language-kr-circle_24x24 .path14:before{color:#181b34;content:"\\eb3a";margin-left:-1em}.icon-language-kr-circle_24x24 .path15:before{color:#181b34;content:"\\eb3b";margin-left:-1em}.icon-language-kr-circle_24x24 .path16:before{color:#181b34;content:"\\eb3c";margin-left:-1em}.icon-language-kr-circle_24x24 .path17:before{color:#181b34;content:"\\eb3d";margin-left:-1em}.icon-language-kr-circle_24x24 .path18:before{color:#181b34;content:"\\eb3e";margin-left:-1em}.icon-language-kr-circle_24x24 .path19:before{color:#181b34;content:"\\eb3f";margin-left:-1em}.icon-language-kr-circle_24x24 .path20:before{color:#181b34;content:"\\eb40";margin-left:-1em}.icon-language-kr-circle_24x24 .path21:before{color:#181b34;content:"\\eb41";margin-left:-1em}.icon-language-kr-circle_24x24 .path22:before{color:#181b34;content:"\\eb42";margin-left:-1em}.icon-language-vn-circle_24x24 .path1:before{color:#da251d;content:"\\eb43"}.icon-language-vn-circle_24x24 .path2:before{color:#ff0;content:"\\eb44";margin-left:-1em}.icon-action_open_with_close_24x24:before{content:"\\eb16"}.icon-action_open_with_24x24:before{content:"\\eb14"}.icon-action_translate_24x24:before{content:"\\eb15"}.icon-clik-expand-arrow-up:before{content:"\\eb13"}.icon-volume_off_round-24x24:before{content:"\\eb08"}.icon-volume_up_round-24x24:before{content:"\\eb09"}.icon-clik_share_ios_outlined-24x24:before{content:"\\eb0a"}.icon-hotspot_video_on_outlined-24x24:before{content:"\\eb0b"}.icon-hotspot_facility_on_outlined-24x24:before{content:"\\eb0c"}.icon-hotspot_location_on_outlined-24x24:before{content:"\\eb0d"}.icon-hotspot_brand_on_outlined-24x24:before{content:"\\eb0e"}.icon-hotspot_feature_on_outlined-24x24:before{content:"\\eb0f"}.icon-hotspot_scene_on_outlined-24x24:before{content:"\\eb10"}.icon-functions_others_view_hotspot__off_outlined-24x24:before{content:"\\eb11"}.icon-functions_others_view_hotspot__on_outlined-24x24:before{content:"\\eb12"}.icon-play_youtube_24x24:before{content:"\\eb07"}.icon-grid_on_24x24:before{content:"\\eb05"}.icon-grid_off_24x24:before{content:"\\eb06"}.icon-subtitles_24x24:before{content:"\\eb03"}.icon-subtitles_off_24x24:before{content:"\\eb04"}.icon-push_pin_24x24:before{content:"\\eaff"}.icon-push_pin_outline_24x24:before{content:"\\eb00"}.icon-layout_off_24x24:before{content:"\\eb01"}.icon-layout_on_24x24:before{content:"\\eb02"}.icon-remove_red_eye_24x24:before{content:"\\eafc"}.icon-visibility_off_24x24:before{content:"\\eafd"}.icon-remove_red_eye_filled_24x24:before{content:"\\eafe"}.icon-loyalty_24x24:before{content:"\\eaf2"}.icon-local_activity_outline_24x24:before{content:"\\eaf9"}.icon-arrow_back_24x24:before{content:"\\eafa"}.icon-playlist_play_24x24:before{content:"\\eafb"}.icon-navigation_24x24:before{content:"\\eaf5"}.icon-deblur_24x24:before{content:"\\eaf6"}.icon-palette_24x24:before{content:"\\eaf7"}.icon-slideshow_24x24:before{content:"\\eaf8"}.icon-widgets_24x24:before{content:"\\eaf4"}.icon-gift_24x24:before{content:"\\eaf3"}.icon-closed_caption_disabled_24x24:before{content:"\\eaf1"}.icon-logo_clik_123x40:before{content:"\\eaee"}.icon-3D_24x24:before{content:"\\eaed"}.icon-floor_plan_24x24:before{content:"\\eaec"}.icon-camera_24x24:before{content:"\\eaeb"}.icon-device_screen_lock_rotation_24x24:before{content:"\\eae5"}.icon-device_screen_rotation_24x24:before{content:"\\eae6"}.icon-action_label_off_24x24:before{content:"\\eae7"}.icon-action_label_24x24:before{content:"\\eae8"}.icon-image_music_off_24x24:before{content:"\\eae9"}.icon-image_music_note_24x24:before{content:"\\eaea"}.icon-image_burst_mode_24x24:before{content:"\\eae1"}.icon-av_playlist_add_check_24x24:before{content:"\\eae2"}.icon-communication_list-alt_24x24:before{content:"\\eae3"}.icon-communication_support_24x24:before{content:"\\eae4"}.icon-navigation_fullscreen_exit_24x24:before{content:"\\eae0"}.icon-gyro_100x100:before{content:"\\eadf"}.icon-navigation_fullscreen_24x24:before{content:"\\eade"}.icon-slow_motion_video_24x24:before{content:"\\eadc"}.icon-directions_walk_24X24:before{content:"\\eadd"}.icon-toggle_star_24x24:before{content:"\\ead9"}.icon-toggle_star_half_24x24:before{content:"\\eada"}.icon-toggle_star_outline_24x24:before{content:"\\eadb"}.icon-home_finance_24x24:before{content:"\\ead8"}.icon-logo_clik_60x68 .path1:before{color:#1e6eb4;content:"\\ead6"}.icon-logo_clik_60x68 .path2:before{color:#28c8f0;content:"\\ead7";margin-left:-.8828125em}.icon-home_compass_25x25:before{content:"\\ead5"}.icon-home_assets_air_24x24:before{content:"\\eac7"}.icon-home_assets_area_24x24:before{content:"\\eac8"}.icon-home_assets_bath_tub_24x24:before{content:"\\eac9"}.icon-home_assets_bed_24x24:before{content:"\\eaca"}.icon-home_assets_ceiling_24x24:before{content:"\\eacb"}.icon-home_assets_door_24x24:before{content:"\\eacc"}.icon-home_assets_electrical_24x24:before{content:"\\eacd"}.icon-home_assets_floor_24x24:before{content:"\\eace"}.icon-home_assets_layout_24x24:before{content:"\\eacf"}.icon-home_assets_smart_home_24x24:before{content:"\\ead0"}.icon-home_assets_sofa_single_24x24:before{content:"\\ead1"}.icon-home_assets_wall_24x24:before{content:"\\ead2"}.icon-home_room_dinning_room_24x24:before{content:"\\ead3"}.icon-home_room_kitchen_24x24:before{content:"\\ead4"}.icon-iphone_rotate_300x300:before{content:"\\eac6"}.icon-ipad_rotate_300x300:before{content:"\\eac5"}.icon-flag_en_512x512 .path1:before{color:#f0f0f0;content:"\\eab5"}.icon-flag_en_512x512 .path2:before{color:#0052b4;content:"\\eab6";margin-left:-1em}.icon-flag_en_512x512 .path3:before{color:#0052b4;content:"\\eab7";margin-left:-1em}.icon-flag_en_512x512 .path4:before{color:#0052b4;content:"\\eab8";margin-left:-1em}.icon-flag_en_512x512 .path5:before{color:#0052b4;content:"\\eab9";margin-left:-1em}.icon-flag_en_512x512 .path6:before{color:#0052b4;content:"\\eaba";margin-left:-1em}.icon-flag_en_512x512 .path7:before{color:#0052b4;content:"\\eabb";margin-left:-1em}.icon-flag_en_512x512 .path8:before{color:#0052b4;content:"\\eabc";margin-left:-1em}.icon-flag_en_512x512 .path9:before{color:#0052b4;content:"\\eabd";margin-left:-1em}.icon-flag_en_512x512 .path10:before{color:#d80027;content:"\\eabe";margin-left:-1em}.icon-flag_en_512x512 .path11:before{color:#d80027;content:"\\eabf";margin-left:-1em}.icon-flag_en_512x512 .path12:before{color:#d80027;content:"\\eac0";margin-left:-1em}.icon-flag_en_512x512 .path13:before{color:#d80027;content:"\\eac1";margin-left:-1em}.icon-flag_en_512x512 .path14:before{color:#d80027;content:"\\eac2";margin-left:-1em}.icon-flag_vi_512x512 .path1:before{color:#d80027;content:"\\eac3"}.icon-flag_vi_512x512 .path2:before{color:#ffda44;content:"\\eac4";margin-left:-1em}.icon-toggle_background_32x120:before{content:"\\eab4"}.icon-logo_clik_44x18:before{content:"\\e900"}.icon-marker_pick_11x18:before{content:"\\eab2"}.icon-marker_close_14x14:before{content:"\\ea3b"}.icon-marker_pin_12x24:before{content:"\\ea3c"}.icon-sound-off_24x24:before{content:"\\e901"}.icon-pause_circle_outline_24x24:before{content:"\\e902"}.icon-skip_next_24x24:before{content:"\\e903"}.icon-cast_24x24:before{content:"\\e904"}.icon-sound-on_24x24:before{content:"\\e905"}.icon-play_circle_filled_24x24:before{content:"\\e906"}.icon-skip_previous_24x24:before{content:"\\e907"}.icon-shuffle_24x24:before{content:"\\e908"}.icon-pause_circle_filled_24x24 .path1:before{color:#000;content:"\\e909"}.icon-pause_circle_filled_24x24 .path2:before{color:#fff;content:"\\eab3";margin-left:-1em}.icon-fast_forward_24x24:before{content:"\\e90a"}.icon-fast_rewind_24x24:before{content:"\\e90b"}.icon-play_arrow_24x24:before{content:"\\e90c"}.icon-repeat_24x24:before{content:"\\e90d"}.icon-pause_single_24x24:before{content:"\\e90e"}.icon-airplay_24x24:before{content:"\\e90f"}.icon-play_circle_outline_24x24:before{content:"\\e910"}.icon-search_small_minus_24x24:before{content:"\\e911"}.icon-search_small_plus_24x24:before{content:"\\e912"}.icon-text_align_center_24x24:before{content:"\\e913"}.icon-plus_circle_outline_24x24:before{content:"\\e914"}.icon-search_24x24:before{content:"\\e915"}.icon-minus_24x24:before{content:"\\e916"}.icon-plus_24x24:before{content:"\\e917"}.icon-edit_compass_en_24x24:before{content:"\\e918"}.icon-text_align_right_24x24:before{content:"\\e919"}.icon-list_check_24x24:before{content:"\\e91a"}.icon-text_align_justify_24x24:before{content:"\\e91b"}.icon-minus_circle_outline_24x24:before{content:"\\e91c"}.icon-show_24x24:before{content:"\\e91d"}.icon-copy_24x24:before{content:"\\e91e"}.icon-add_to_queue_24x24:before{content:"\\e91f"}.icon-comment_minus_24x24:before{content:"\\e920"}.icon-select_multiple_24x24:before{content:"\\e921"}.icon-list_ol_24x24:before{content:"\\e922"}.icon-minus_circle_24x24:before{content:"\\e923"}.icon-move_24x24:before{content:"\\e924"}.icon-comment_plus_24x24:before{content:"\\e925"}.icon-hide_24x24:before{content:"\\e926"}.icon-move_horizontal_24x24:before{content:"\\e927"}.icon-text_align_left_24x24:before{content:"\\e928"}.icon-search_small_24x24:before{content:"\\e929"}.icon-move_vertical_24x24:before{content:"\\e92a"}.icon-minus_square_24x24:before{content:"\\e92b"}.icon-edit_24x24:before{content:"\\e92c"}.icon-comment_check_24x24:before{content:"\\e92d"}.icon-plus_circle_24x24:before{content:"\\e92e"}.icon-comment_24x24:before{content:"\\e92f"}.icon-list_ul_24x24:before{content:"\\e930"}.icon-plus_square_24x24:before{content:"\\e931"}.icon-list_plus_24x24:before{content:"\\e932"}.icon-list_minus_24x24:before{content:"\\e933"}.icon-device_monitor_24x24:before{content:"\\e934"}.icon-device_mobile_alt_24x24:before{content:"\\e935"}.icon-devices:before{content:"\\e936"}.icon-device_tablet_24x24:before{content:"\\e937"}.icon-device_mobile_24x24:before{content:"\\e938"}.icon-device_laptop_24x24:before{content:"\\e939"}.icon-home_building_24x24:before{content:"\\e93a"}.icon-home_alt_fill_24x24:before{content:"\\e93b"}.icon-home_heart_24x24:before{content:"\\e93c"}.icon-home_check_24x24:before{content:"\\e93d"}.icon-home_plus_24x24:before{content:"\\e93e"}.icon-home_alt_minus_24x24:before{content:"\\e93f"}.icon-home_x_24x24:before{content:"\\e940"}.icon-home_outline_24x24:before{content:"\\e941"}.icon-home_alt_plus_24x24:before{content:"\\e942"}.icon-home_alt_x_24x24:before{content:"\\e943"}.icon-home_alt_outline_24x24:before{content:"\\e944"}.icon-home_alt_check_24x24:before{content:"\\e945"}.icon-home_minus_24x24:before{content:"\\e946"}.icon-home_heart-1_24x24:before{content:"\\e947"}.icon-home_fill_24x24:before{content:"\\e948"}.icon-transfer_24x24:before{content:"\\e949"}.icon-cylinder_24x24:before{content:"\\e94a"}.icon-bar_right_24x24:before{content:"\\e94b"}.icon-window_check_24x24:before{content:"\\e94c"}.icon-data_24x24:before{content:"\\e94d"}.icon-window_sidebar_24x24:before{content:"\\e94e"}.icon-window_terminal_24x24:before{content:"\\e94f"}.icon-bar_left_24x24:before{content:"\\e950"}.icon-code_24x24:before{content:"\\e951"}.icon-window_close_24x24:before{content:"\\e952"}.icon-window_24x24:before{content:"\\e953"}.icon-bar_bottom_24x24:before{content:"\\e954"}.icon-window_code_block_24x24:before{content:"\\e955"}.icon-bar_top_24x24:before{content:"\\e956"}.icon-terminal_24x24:before{content:"\\e957"}.icon-user_id_card_24x24:before{content:"\\e958"}.icon-user_x_24x24:before{content:"\\e959"}.icon-user_minus_24x24:before{content:"\\e95a"}.icon-user_circle_24x24:before{content:"\\e95b"}.icon-user_plus_24x24:before{content:"\\e95c"}.icon-user_voice_24x24:before{content:"\\e95d"}.icon-user_24x24:before{content:"\\e95e"}.icon-user_check_24x24:before{content:"\\e95f"}.icon-user_pin_24x24:before{content:"\\e960"}.icon-calendar_event_24x24:before{content:"\\e961"}.icon-calendar_x_24x24:before{content:"\\e962"}.icon-calendar_minus_24x24:before{content:"\\e963"}.icon-calendar_week_24x24:before{content:"\\e964"}.icon-calendar_calendar_24x24:before{content:"\\e965"}.icon-calendar_edit_24x24:before{content:"\\e966"}.icon-calendar_plus_24x24:before{content:"\\e967"}.icon-calendar_check_24x24:before{content:"\\e968"}.icon-calendar_24x24:before{content:"\\e969"}.icon-bar_chart_alt_24x24:before{content:"\\e96a"}.icon-pie_chart_outline_24x24:before{content:"\\e96b"}.icon-trending_down_24x24:before{content:"\\e96c"}.icon-line_chart_down_24x24:before{content:"\\e96d"}.icon-pie_chart_25_24x24:before{content:"\\e96e"}.icon-pie_chart_75_24x24:before{content:"\\e96f"}.icon-doughnut_chart_24x24:before{content:"\\e970"}.icon-pie_chart_outline_25_24x24:before{content:"\\e971"}.icon-bar_chart_square_24x24:before{content:"\\e972"}.icon-bar_chart_24x24:before{content:"\\e973"}.icon-bar_chart_horizontal_24x24:before{content:"\\e974"}.icon-trending_up_24x24:before{content:"\\e975"}.icon-line_chart_up_24x24:before{content:"\\e976"}.icon-pie_chart_50_24x24:before{content:"\\e977"}.icon-menu_more_vertical_24x24:before{content:"\\e978"}.icon-grid_big_round_24x24:before{content:"\\e979"}.icon-grid_small_24x24:before{content:"\\e97a"}.icon-menu_duo_24x24:before{content:"\\e97b"}.icon-grid_small_round_24x24:before{content:"\\e97c"}.icon-navigation_slide_stick_24x24:before{content:"\\e97d"}.icon-menu_close_big_24x24:before{content:"\\e97e"}.icon-grid_dashboard_24x24:before{content:"\\e97f"}.icon-grid_big_24x24:before{content:"\\e980"}.icon-menu_add_collapse_24x24:before{content:"\\e981"}.icon-menu_alt_01_24x24:before{content:"\\e982"}.icon-grid_dashboard_02_24x24:before{content:"\\e983"}.icon-grid_round_24x24:before{content:"\\e984"}.icon-menu_close_small_24x24:before{content:"\\e985"}.icon-grid_horizontal_24x24:before{content:"\\e986"}.icon-menu_alt_04_24x24:before{content:"\\e987"}.icon-menu_more_horizontal_24x24:before{content:"\\e988"}.icon-menu_alt_02_24x24:before{content:"\\e989"}.icon-menu_add_expand_24x24:before{content:"\\e98a"}.icon-menu_hamburger_24x24:before{content:"\\e98b"}.icon-grid_vertical_24x24:before{content:"\\e98c"}.icon-menu_alt_05_24x24:before{content:"\\e98d"}.icon-grid_horizontal_round_24x24:before{content:"\\e98e"}.icon-grid_24x24:before{content:"\\e98f"}.icon-menu_alt_03_24x24:before{content:"\\e990"}.icon-grid_vertical_round_24x24:before{content:"\\e991"}.icon-warning_outline_24x24:before{content:"\\e992"}.icon-error_outline_24x24:before{content:"\\e993"}.icon-warning_24x24:before{content:"\\e994"}.icon-info_circle_24x24:before{content:"\\e995"}.icon-info_square_24x24:before{content:"\\e996"}.icon-info_square_outline_24x24:before{content:"\\e997"}.icon-info_circle_outline_24x24:before{content:"\\e998"}.icon-error_24x24:before{content:"\\e999"}.icon-notification_24x24:before{content:"\\e99a"}.icon-notification_active_24x24:before{content:"\\e99b"}.icon-notification_deactivated_24x24:before{content:"\\e99c"}.icon-notification_dot_24x24:before{content:"\\e99d"}.icon-notification_minus_24x24:before{content:"\\e99e"}.icon-notification_outline_24x24:before{content:"\\e99f"}.icon-notification_outline_dot_24x24:before{content:"\\e9a0"}.icon-notification_outline_minus_24x24:before{content:"\\e9a1"}.icon-notification_outline_plus_24x24:before{content:"\\e9a2"}.icon-notification_plus_24x24:before{content:"\\e9a3"}.icon-dot_03_m_24x24:before{content:"\\e9a4"}.icon-dot_05_xl_24x24:before{content:"\\e9a5"}.icon-line_sx_24x24:before{content:"\\e9a6"}.icon-dot_04_l_24x24:before{content:"\\e9a7"}.icon-line_l_24x24:before{content:"\\e9a8"}.icon-dot_02_s_24x24:before{content:"\\e9a9"}.icon-line_m_24x24:before{content:"\\e9aa"}.icon-dot_01_xs_24x24:before{content:"\\e9ab"}.icon-line_xl_24x24:before{content:"\\e9ac"}.icon-line_s_24x24:before{content:"\\e9ad"}.icon-google_24x24:before{content:"\\e9ae"}.icon-reddit_24x24:before{content:"\\e9af"}.icon-linkedIn_24x24:before{content:"\\e9b0"}.icon-zalo_24x24:before{content:"\\e9b1"}.icon-messenger_24x24:before{content:"\\e9b2"}.icon-css3_24x24:before{content:"\\e9b3"}.icon-instagram_24x24:before{content:"\\e9b4"}.icon-dropbox_24x24:before{content:"\\e9b5"}.icon-unsplash_24x24:before{content:"\\e9b6"}.icon-behance_24x24:before{content:"\\e9b7"}.icon-adobe_xd_24x24:before{content:"\\e9b8"}.icon-slack_24x24:before{content:"\\e9b9"}.icon-javascript_24x24:before{content:"\\e9ba"}.icon-figma_24x24:before{content:"\\e9bb"}.icon-discord_24x24:before{content:"\\e9bc"}.icon-github_24x24:before{content:"\\e9bd"}.icon-spotify_24x24:before{content:"\\e9be"}.icon-paypal_24x24:before{content:"\\e9bf"}.icon-app_store_24x24:before{content:"\\e9c0"}.icon-spectrum_24x24:before{content:"\\e9c1"}.icon-twitter_24x24:before{content:"\\e9c2"}.icon-facebook_24x24:before{content:"\\e9c3"}.icon-apple_24x24:before{content:"\\e9c4"}.icon-trello_24x24:before{content:"\\e9c5"}.icon-linkpath_24x24:before{content:"\\e9c6"}.icon-play_store_24x24:before{content:"\\e9c7"}.icon-html5_24x24:before{content:"\\e9c8"}.icon-stack_overflow_24x24:before{content:"\\e9c9"}.icon-dribbble_24x24:before{content:"\\e9ca"}.icon-invision_24x24:before{content:"\\e9cb"}.icon-snapchat_24x24:before{content:"\\e9cc"}.icon-youtube_24x24:before{content:"\\e9cd"}.icon-sketch_24x24:before{content:"\\e9ce"}.icon-coolicons_24x24:before{content:"\\e9cf"}.icon-file_image_24x24:before{content:"\\e9d0"}.icon-file_blank_outline_24x24:before{content:"\\e9d1"}.icon-note_24x24:before{content:"\\e9d2"}.icon-cloud_close_24x24:before{content:"\\e9d3"}.icon-cloud_up_24x24:before{content:"\\e9d4"}.icon-file_js_24x24:before{content:"\\e9d5"}.icon-file_png_24x24:before{content:"\\e9d6"}.icon-file_find_24x24:before{content:"\\e9d7"}.icon-folder_open_24x24:before{content:"\\e9d8"}.icon-file_jpg_24x24:before{content:"\\e9d9"}.icon-file_pdf_24x24:before{content:"\\e9da"}.icon-folder_plus_24x24:before{content:"\\e9db"}.icon-file_html_24x24:before{content:"\\e9dc"}.icon-cloud_check_24x24:before{content:"\\e9dd"}.icon-file_new_24x24:before{content:"\\e9de"}.icon-cloud_down_24x24:before{content:"\\e9df"}.icon-folder_24x24:before{content:"\\e9e0"}.icon-file_css_24x24:before{content:"\\e9e1"}.icon-file_archive_24x24:before{content:"\\e9e2"}.icon-cloud_off_24x24:before{content:"\\e9e3"}.icon-file_svg_24x24:before{content:"\\e9e4"}.icon-file_blank_fill_24x24:before{content:"\\e9e5"}.icon-cloud_24x24:before{content:"\\e9e6"}.icon-cloud_outline_24x24:before{content:"\\e9e7"}.icon-file_minus_24x24:before{content:"\\e9e8"}.icon-folder_minus_24x24:before{content:"\\e9e9"}.icon-clock_24x24:before{content:"\\e9ea"}.icon-refresh_02_24x24:before{content:"\\e9eb"}.icon-download_done_24x24:before{content:"\\e9ec"}.icon-layers_alt_24x24:before{content:"\\e9ed"}.icon-slider_01_24x24:before{content:"\\e9ee"}.icon-trash_empty_24x24:before{content:"\\e9ef"}.icon-location_outline_24x24:before{content:"\\e9f0"}.icon-log_out_24x24:before{content:"\\e9f1"}.icon-help_circle_outline_24x24:before{content:"\\e9f2"}.icon-settings_24x24:before{content:"\\e9f3"}.icon-done_all_24x24:before{content:"\\e9f4"}.icon-location_map_24x24:before{content:"\\e9f5"}.icon-off_outline_close_24x24:before{content:"\\e9f6"}.icon-alarm_24x24:before{content:"\\e9f7"}.icon-checkbox_24x24:before{content:"\\e9f8"}.icon-tag-outline_24x24:before{content:"\\e9f9"}.icon-flag_fill_24x24:before{content:"\\e9fa"}.icon-cookie_24x24:before{content:"\\e9fb"}.icon-color_24x24:before{content:"\\e9fc"}.icon-share_24x24:before{content:"\\e9fd"}.icon-map_24x24:before{content:"\\e9fe"}.icon-radio_filled_24x24:before{content:"\\e9ff"}.icon-briefcase_24x24:before{content:"\\ea00"}.icon-settings_filled_24x24:before{content:"\\ea01"}.icon-mail_24x24:before{content:"\\ea02"}.icon-flag_outline_24x24:before{content:"\\ea03"}.icon-radio_24x24:before{content:"\\ea04"}.icon-external_link_24x24:before{content:"\\ea05"}.icon-trash_full_24x24:before{content:"\\ea06"}.icon-unlink_24x24:before{content:"\\ea07"}.icon-slider_03_24x24:before{content:"\\ea08"}.icon-circle_check_outline_24x24:before{content:"\\ea09"}.icon-sad_24x24:before{content:"\\ea0a"}.icon-happy_24x24:before{content:"\\ea0b"}.icon-layers_24x24:before{content:"\\ea0c"}.icon-help_circle_24x24:before{content:"\\ea0d"}.icon-settings_future_24x24:before{content:"\\ea0e"}.icon-stopwatch_24x24:before{content:"\\ea0f"}.icon-off_close_24x24:before{content:"\\ea10"}.icon-tag_24x24:before{content:"\\ea11"}.icon-location_24x24:before{content:"\\ea12"}.icon-credit_card_24x24:before{content:"\\ea13"}.icon-exit_24x24:before{content:"\\ea14"}.icon-circle_checked_24x24:before{content:"\\ea15"}.icon-command_24x24:before{content:"\\ea16"}.icon-circle_check_24x24:before{content:"\\ea17"}.icon-path_24x24:before{content:"\\ea18"}.icon-phone_24x24:before{content:"\\ea19"}.icon-label_24x24:before{content:"\\ea1a"}.icon-checkbox_square_24x24:before{content:"\\ea1b"}.icon-slider_02_24x24:before{content:"\\ea1c"}.icon-mail_open_24x24:before{content:"\\ea1d"}.icon-confused_24x24:before{content:"\\ea1e"}.icon-image_alt_24x24:before{content:"\\ea1f"}.icon-heart_outline_24x24:before{content:"\\ea20"}.icon-download_24x24:before{content:"\\ea21"}.icon-share_outline_24x24:before{content:"\\ea22"}.icon-loading_24x24:before{content:"\\ea23"}.icon-bulb_24x24:before{content:"\\ea24"}.icon-heart_fill_24x24:before{content:"\\ea25"}.icon-link_24x24:before{content:"\\ea26"}.icon-refresh_24x24:before{content:"\\ea27"}.icon-checkbox_checked_24x24:before{content:"\\ea28"}.icon-done_24x24:before{content:"\\ea29"}.icon-alarm_add_24x24:before{content:"\\ea2a"}.icon-credit_card_alt_24x24:before{content:"\\ea2b"}.icon-help_questionmark_24x24:before{content:"\\ea2c"}.icon-link_02_24x24:before{content:"\\ea2d"}.icon-deg_720_24x24:before{content:"\\ea2e"}.icon-ar_24x24:before{content:"\\ea2f"}.icon-image_slide_24x24:before{content:"\\ea30"}.icon-info_24x24:before{content:"\\ea31"}.icon-language_24x24:before{content:"\\ea32"}.icon-layout_24x24:before{content:"\\ea33"}.icon-money_24x24:before{content:"\\ea34"}.icon-navigator_24x24:before{content:"\\ea35"}.icon-panorama_24x24:before{content:"\\ea36"}.icon-rental_24x24:before{content:"\\ea38"}.icon-deg_360_24x24:before{content:"\\ea37"}.icon-mode_2D_24x24:before{content:"\\ea39"}.icon-mode_3D_24x24:before{content:"\\ea3a"}.icon-click_24x24:before{content:"\\ea3d"}.icon-touch_24x24:before{content:"\\ea3e"}.icon-number_1_24x24:before{content:"\\ea3f"}.icon-number_2_24x24:before{content:"\\ea40"}.icon-number_3_24x24:before{content:"\\ea41"}.icon-number_4_24x24:before{content:"\\ea42"}.icon-number_5_24x24:before{content:"\\ea43"}.icon-number_6_24x24:before{content:"\\ea44"}.icon-number_7_24x24:before{content:"\\ea45"}.icon-number_8_24x24:before{content:"\\ea46"}.icon-number_9_24x24:before{content:"\\ea47"}.icon-sport_24x24:before{content:"\\ea48"}.icon-gym_24x24:before{content:"\\ea49"}.icon-shopping_center_24x24:before{content:"\\ea4a"}.icon-bridge_24x24:before{content:"\\ea4b"}.icon-kid_playground_24x24:before{content:"\\ea4c"}.icon-yacht_24x24:before{content:"\\ea4d"}.icon-hospital_24x24:before{content:"\\ea4e"}.icon-culture_24x24:before{content:"\\ea4f"}.icon-museum_24x24:before{content:"\\ea50"}.icon-club_house_24x24:before{content:"\\ea51"}.icon-tree_24x24:before{content:"\\ea52"}.icon-hotel_24x24:before{content:"\\ea53"}.icon-swimming_pool_24x24:before{content:"\\ea54"}.icon-building_24x24:before{content:"\\ea55"}.icon-community_24x24:before{content:"\\ea56"}.icon-city_24x24:before{content:"\\ea57"}.icon-water_24x24:before{content:"\\ea58"}.icon-villa_24x24:before{content:"\\ea59"}.icon-golf_24x24:before{content:"\\ea5a"}.icon-school_24x24:before{content:"\\ea5b"}.icon-wooden_floor_24x24:before{content:"\\ea5c"}.icon-grocery_24x24:before{content:"\\ea5d"}.icon-park_24x24:before{content:"\\ea5e"}.icon-coffee_24x24:before{content:"\\ea5f"}.icon-hotspot_collapse_24x24:before{content:"\\ea60"}.icon-walk_24x24:before{content:"\\ea61"}.icon-parking_24x24:before{content:"\\ea62"}.icon-airpot_24x24:before{content:"\\ea63"}.icon-restaurant_24x24:before{content:"\\ea64"}.icon-market_24x24:before{content:"\\ea65"}.icon-scene_day_24x24:before{content:"\\ea66"}.icon-view_aerial_24x24:before{content:"\\ea67"}.icon-stair_up_24x24:before{content:"\\ea68"}.icon-elevator_up_24x24:before{content:"\\ea69"}.icon-elevator_normal_24x24:before{content:"\\ea6a"}.icon-scene_night_24x24:before{content:"\\ea6b"}.icon-stair_down_24x24:before{content:"\\ea6c"}.icon-view_walking_24x24:before{content:"\\ea6d"}.icon-elevator_down_24x24:before{content:"\\ea6e"}.icon-hotspot_place_24x24:before{content:"\\ea6f"}.icon-transport_motorbike_24x24:before{content:"\\ea70"}.icon-transport_car_24x24:before{content:"\\ea71"}.icon-transport_bicycle_24x24:before{content:"\\ea72"}.icon-transport_bus_24x24:before{content:"\\ea73"}.icon-transport_walk_24x24:before{content:"\\ea74"}.icon-small_long_down_24x24:before{content:"\\ea75"}.icon-thin_long_left_24x24:before{content:"\\ea76"}.icon-circle_chevron_right_24x24:before{content:"\\ea77"}.icon-long_down_24x24:before{content:"\\ea78"}.icon-short_up_24x24:before{content:"\\ea79"}.icon-thin_long_02_down_24x24:before{content:"\\ea7a"}.icon-chevron_big_right_24x24:before{content:"\\ea7b"}.icon-thin_long_up_24x24:before{content:"\\ea7c"}.icon-long_up_left_24x24:before{content:"\\ea7d"}.icon-chevron_down_24x24:before{content:"\\ea7e"}.icon-thin_long_02_left_24x24:before{content:"\\ea7f"}.icon-long_bottom_down_24x24:before{content:"\\ea80"}.icon-chevron_right_24x24:before{content:"\\ea81"}.icon-chevron_left_24x24:before{content:"\\ea82"}.icon-small_long_left_24x24:before{content:"\\ea83"}.icon-chevron_up_24x24:before{content:"\\ea84"}.icon-thin_long_down_24x24:before{content:"\\ea85"}.icon-long_left_24x24:before{content:"\\ea86"}.icon-circle_chevron_down_24x24:before{content:"\\ea87"}.icon-shrink_24x24:before{content:"\\ea88"}.icon-thin_long_02_up_24x24:before{content:"\\ea89"}.icon-chevron_duo_left_24x24:before{content:"\\ea8a"}.icon-sub_right_24x24:before{content:"\\ea8b"}.icon-thin_big_up_24x24:before{content:"\\ea8c"}.icon-caret_right_24x24:before{content:"\\ea8d"}.icon-chevron_duo_up_24x24:before{content:"\\ea8e"}.icon-chevron_duo_down_24x24:before{content:"\\ea8f"}.icon-short_right_24x24:before{content:"\\ea90"}.icon-caret_up_24x24:before{content:"\\ea91"}.icon-circle_chevron_left_24x24:before{content:"\\ea92"}.icon-circle_right_24x24:before{content:"\\ea93"}.icon-chevron_duo_right_24x24:before{content:"\\ea94"}.icon-circle_down_24x24:before{content:"\\ea95"}.icon-short_left_24x24:before{content:"\\ea96"}.icon-small_long_right_24x24:before{content:"\\ea97"}.icon-circle_chevron_up_24x24:before{content:"\\ea98"}.icon-chevron_big_up_24x24:before{content:"\\ea99"}.icon-rotate_24x24:before{content:"\\ea9a"}.icon-chevron_big_down_24x24:before{content:"\\ea9b"}.icon-long_up_24x24:before{content:"\\ea9c"}.icon-long_up_right_24x24:before{content:"\\ea9d"}.icon-caret_down_24x24:before{content:"\\ea9e"}.icon-thin_long_02_right_24x24:before{content:"\\ea9f"}.icon-long_bottom_up_24x24:before{content:"\\eaa0"}.icon-long_right_24x24:before{content:"\\eaa1"}.icon-caret_left_24x24:before{content:"\\eaa2"}.icon-small_long_up_24x24:before{content:"\\eaa3"}.icon-circle_up_24x24:before{content:"\\eaa4"}.icon-short_down_24x24:before{content:"\\eaa5"}.icon-circle_left_24x24:before{content:"\\eaa6"}.icon-chevron_big_left_24x24:before{content:"\\eaa7"}.icon-first_page_24x24:before{content:"\\eaa8"}.icon-unfold_more_24x24:before{content:"\\eaa9"}.icon-sub_left_24x24:before{content:"\\eaaa"}.icon-thin_big_left_24x24:before{content:"\\eaab"}.icon-last_page_24x24:before{content:"\\eaac"}.icon-thin_big_right_24x24:before{content:"\\eaad"}.icon-expand_24x24:before{content:"\\eaae"}.icon-unfold_less_24x24:before{content:"\\eaaf"}.icon-thin_big_down_24x24:before{content:"\\eab0"}.icon-thin_long_right_24x24:before{content:"\\eab1"}.icon-near-me_24x24:before{content:"\\eaef"}.icon-near-me-disabled_24x24:before{content:"\\eaf0"}.icon-video_library_24x24:before{content:"\\eb50"}.icon-clik-sound_24x24:before{content:"\\eb51"}.icon-repeat-off_24x24:before{content:"\\eb52"}.icon-pause_circle_24x24:before{content:"\\eb53"}.icon-ar:before{content:"\\eb54"}.icon-clik-sound:before{content:"\\eb56"}'}),v.jsx("style",{children:".cvtv-moving-label-poi{--tw-text-opacity:1;--tw-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017;--tw-shadow-colored:0 1px 2px -2px var(--tw-shadow-color),0 3px 6px 0 var(--tw-shadow-color),0 5px 12px 4px var(--tw-shadow-color);background-color:#0009;border-radius:4px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity,1));cursor:pointer;font-size:16px;font-weight:400;line-height:20px;min-width:60px;padding:8px 12px;pointer-events:auto;text-align:center}.cvtv-moving-label-poi__inner{border-radius:6px;height:100%;overflow:hidden;width:100%}.cvtv-moving-label-poi__arrow{bottom:-14.14213562373095px;height:14.14213562373095px;left:calc(50% - 7.07px);overflow:hidden;position:absolute;width:14.14213562373095px;z-index:0}.cvtv-moving-label-poi__arrow__content{--tw-translate-x:-50%;--tw-translate-y:0px;--tw-rotate:45deg;background-color:#0009;display:block;height:10px;left:5px;position:relative;top:-7px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));width:10px}.cvtv-product-info-poi__marker{background-color:#0000;border:1px solid #0000;border-radius:100px;position:relative}.cvtv-product-info-poi__marker--label{padding:11px}.cvtv-product-info-poi__marker .info-poi{align-items:center;display:flex;justify-content:center;position:relative;width:0}.cvtv-product-info-poi__marker .info-poi__icon{left:-11px;position:absolute;top:0}.cvtv-product-info-poi__marker .info-poi__label{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative;width:0}.cvtv-product-info-poi__marker .info-poi__label .text{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-family:bold;font-size:14px;line-height:20px;max-width:200px;overflow:hidden;padding-left:20px;text-overflow:ellipsis;white-space:nowrap}.cvtv-product-info-poi__marker .info-poi__label .chevron{padding-left:20px}.cvtv-product-info-poi__marker .info-poi__label .chevron:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));content:var(--tw-content)}.cvtv-product-info-poi__marker--visible{--tw-backdrop-blur:blur(24px);--tw-backdrop-brightness:brightness(1);--tw-backdrop-opacity:opacity(1);animation:poi-item-info-bg-animation .5s ease 0s 1 normal forwards;animation-duration:1s;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);background-color:#0000003d;transition-duration:1s;transition-property:background;transition-timing-function:cubic-bezier(.4,0,.2,1)}.cvtv-product-info-poi__marker--visible .info-poi{animation:poi-item-info-animation .5s ease 0s 1 normal forwards;overflow:hidden}.cvtv-product-info-poi__marker--visible .info-poi__icon{position:static}.cvtv-product-info-poi__marker--visible .info-poi__label{width:auto}@keyframes pin-poi-animation{0%{opacity:0}to{opacity:1}}@keyframes poi-item-info-bg-animation{0%{background-color:#0000}to{background-color:#0000007a}}@keyframes poi-item-info-animation{0%{width:0}to{width:100%}}"}),v.jsx("style",{children:'.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow,.cvtv-poi-laser-tooltip .cvtv-poi-laser-tooltip__line-wrap__slash-line{animation:slash-pop-animation .15s linear 0s forwards;-webkit-animation:slash-pop-animation .15s linear 0s forwards}.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__straight-line,.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{animation:straight-pop-animation .15s linear .15s forwards;-webkit-animation:straight-pop-animation .15s linear .15s forwards;left:212px;top:-213px}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header,.cvtv-poi-laser-tooltip-content__image{animation:animation-of-content + .2s .2s ease .15s forwards;opacity:0;width:150px}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__footer [class*=icon-]:before,.cvtv-poi-laser-tooltip-content__header{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.cvtv-poi-laser-tooltip-content__body__main,.cvtv-poi-laser-tooltip-content__body__sub,.cvtv-poi-laser-tooltip-content__header{-webkit-box-orient:vertical;-webkit-line-clamp:5;display:-webkit-box;max-height:16px * 5;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap;word-break:break-word}.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header{text-transform:uppercase}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header{--tw-translate-y:4px;font-size:12px;line-height:16px;text-shadow:1px 1px 1px #000;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:normal}.cvtv-poi-laser-tooltip-content__header{margin-bottom:4px;margin-left:2px}.cvtv-poi-laser-tooltip-content__image{--tw-shadow:0 1px 8px #0000003d;--tw-shadow-colored:0 1px 8px var(--tw-shadow-color);background-color:#ffffff7a;border-radius:8px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);max-height:640px;object-fit:contain;pointer-events:auto;width:150px}.cvtv-poi-laser-tooltip-content__body{margin-bottom:4px;padding:4px 0 8px 2px}.cvtv-poi-laser-tooltip-content__body__main,.cvtv-poi-laser-tooltip-content__body__sub{padding:4px 0 0}.cvtv-poi-laser-tooltip-content__body__main{font-weight:700;text-transform:uppercase}.cvtv-poi-laser-tooltip-content__footer{align-items:center;display:flex;display:-ms-flexbox;font-weight:700;height:20px;justify-content:end;padding:4px 0 0 16px}.cvtv-poi-laser-tooltip-content__footer__icon,.cvtv-poi-laser-tooltip-content__footer__text{pointer-events:auto}.cvtv-poi-laser-tooltip-content__footer__icon{font-size:14px;line-height:20px;margin-top:2px}.cvtv-poi-laser-tooltip-content .bds-poi-gallery{display:flex;flex-wrap:wrap;height:150px - 2px;pointer-events:auto;position:relative;width:150px - 2px}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));height:100%;width:100%}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item img,.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item video{--tw-bg-opacity:1;background-color:rgb(214 214 214/var(--tw-bg-opacity,1));height:100%;object-fit:cover;width:100%}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__mask{align-items:center;background-color:#0000007a;bottom:0;display:flex;font-size:20px;height:50%;justify-content:center;line-height:28px;position:absolute;right:0;width:33.33%;z-index:1}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-next,.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-prev{--tw-translate-y:-50%;cursor:pointer;position:absolute;text-shadow:none;top:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-prev{left:0}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-next{right:0}.cvtv-poi-laser-tooltip{--tw-translate-x:-0.5px;--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip__focusing-point,.cvtv-poi-laser-tooltip__point{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));border-radius:9999px}.cvtv-poi-laser-tooltip__point{--tw-shadow:0 0 1px #000;--tw-shadow-colored:0 0 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);height:7px;width:7px}.cvtv-poi-laser-tooltip__focusing-point{height:11px;width:11px}.cvtv-poi-laser-tooltip__body{animation-duration:.5s;animation-timing-function:cubic-bezier(.4,0,.2,1);bottom:0;left:0;pointer-events:none;position:absolute;text-shadow:0 1px 4px #00000040;transition-duration:.5s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.cvtv-poi-laser-tooltip__line-wrap{bottom:2px;left:2px;position:absolute;width:100%}.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow,.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{--tw-shadow:0 0 1px #000;--tw-shadow-colored:0 0 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)}.cvtv-poi-laser-tooltip__line-wrap__slash-line,.cvtv-poi-laser-tooltip__line-wrap__straight-line{z-index:1}.cvtv-poi-laser-tooltip__line-wrap__slash-line,.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow{--tw-rotate:-45deg;background:#fff;height:1px;left:1px;position:absolute;top:-1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform-origin:left bottom;width:0}.cvtv-poi-laser-tooltip__line-wrap__straight-line,.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{background:linear-gradient(90deg,#fff,#ffffff1a);height:1px;position:absolute;width:0}.cvtv-poi-laser-tooltip-content{align-items:center;display:flex;gap:12px;justify-content:center;pointer-events:auto;position:relative}.cvtv-poi-laser-tooltip-content__popup{animation:animation-popup-content 1s linear forwards;-webkit-animation:animation-popup-content 1s linear forwards;display:flex;flex-direction:column;pointer-events:auto;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__image{margin-bottom:8px}.cvtv-poi-laser-tooltip-content__popup .popup__image,.cvtv-poi-laser-tooltip-content__popup .popup__video{--tw-shadow:0 1px 8px #0000003d;--tw-shadow-colored:0 1px 8px var(--tw-shadow-color);border-radius:16px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__video{filter:drop-shadow(0 1px 8px rgba(0,0,0,.32));position:relative}.cvtv-poi-laser-tooltip-content__popup .popup__video .video__content{border-radius:16px;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__video .video__icon{--tw-translate-x:-50%;--tw-translate-y:-50%;left:50%;position:absolute;top:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__popup\n.popup__video>[class^=icon-]:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.cvtv-poi-laser-tooltip-content__popup .popup__info{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__info .info__title{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-size:12px;font-weight:700;line-height:15px;margin-bottom:2px;text-shadow:1px 1px 1px #000;white-space:normal}.cvtv-poi-laser-tooltip-content__popup .popup__info .info__subtitle{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-size:10px;font-weight:500;line-height:13px;text-shadow:1px 1px 1px #000;white-space:normal}.cvtv-poi-laser-tooltip-content__popup--small{align-items:center;display:flex;flex-direction:column;justify-content:center;width:116px}.cvtv-poi-laser-tooltip-content__popup--small .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:80px}.cvtv-poi-laser-tooltip-content__popup--small .popup__video{width:80px}.cvtv-poi-laser-tooltip-content__popup--medium .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:160px}.cvtv-poi-laser-tooltip-content__popup--medium .popup__video{width:160px}.cvtv-poi-laser-tooltip-content__popup--large .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:240px}.cvtv-poi-laser-tooltip-content__popup--large .popup__video{width:240px}.cvtv-poi-laser-tooltip-content__pin{align-items:center;display:flex;justify-content:center;position:relative}.cvtv-poi-laser-tooltip-content__pin .pin__content{border-radius:4px;display:flex;overflow:hidden;position:relative}.cvtv-poi-laser-tooltip-content__pin .pin__content:after{--tw-content:"";border-radius:4px;content:var(--tw-content);left:0;position:absolute;top:0}.cvtv-poi-laser-tooltip-content__pin .pin__icon{--tw-shadow:0px 1px 8px #00000052;--tw-shadow-colored:0px 1px 8px var(--tw-shadow-color);animation:animation-icon 1s linear;-webkit-animation:animation-icon 1s linear;border-radius:50%;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:flex;height:32px;overflow:hidden;width:32px}.cvtv-poi-laser-tooltip-content__pin .pin__icon .icon__image,.cvtv-poi-laser-tooltip-content__pin .pin__icon .icon__image-strip{height:100%;width:100%}.cvtv-poi-laser-tooltip-content__pin\n.pin__icon\n.icon__image-strip\n.image-strip__content{background-size:var(--width-image-trip) var(--height-image-trip);height:100%;width:100%}.cvtv-poi-laser-tooltip-content__pin--bottom,.cvtv-poi-laser-tooltip-content__pin--top{flex-direction:column}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content,.cvtv-poi-laser-tooltip-content__pin--top .pin__content{height:var(--size-pin-content);width:1px}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content:after,.cvtv-poi-laser-tooltip-content__pin--top .pin__content:after{animation:animation-pin-vertical .5s linear forwards;-webkit-animation:animation-pin-vertical .5s linear forwards;height:0;width:100%}.cvtv-poi-laser-tooltip-content__pin--left,.cvtv-poi-laser-tooltip-content__pin--right{flex-direction:row}.cvtv-poi-laser-tooltip-content__pin--left .pin__content,.cvtv-poi-laser-tooltip-content__pin--right .pin__content{height:1px;width:var(--size-pin-content)}.cvtv-poi-laser-tooltip-content__pin--left .pin__content:after,.cvtv-poi-laser-tooltip-content__pin--right .pin__content:after{animation:animation-pin-horizontal .5s linear forwards;-webkit-animation:animation-pin-horizontal .5s linear forwards;height:100%;width:0}.cvtv-poi-laser-tooltip-content__pin--left .pin__content,.cvtv-poi-laser-tooltip-content__pin--top .pin__content{--tw-rotate:180deg;order:2;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__pin--left .pin__icon,.cvtv-poi-laser-tooltip-content__pin--top .pin__icon{order:1}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content,.cvtv-poi-laser-tooltip-content__pin--right .pin__content{--tw-rotate:0deg;order:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__icon,.cvtv-poi-laser-tooltip-content__pin--right .pin__icon{order:2}@keyframes straight-pop-animation{0%{width:0}to{width:100%}}@keyframes slash-pop-animation{0%{width:0}to{width:300px}}@keyframes animation-pin-horizontal{0%{background-color:#ffffff3d;width:0}to{background-color:#fff;width:100%}}@keyframes animation-pin-vertical{0%{background-color:#ffffff3d;height:0}to{background-color:#fff;height:100%}}@keyframes animation-popup-content{0%{opacity:0}50%{opacity:0}to{opacity:1}}@keyframes animation-of-content{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes animation-icon{0%{opacity:0;transform:scale(1)}30%{opacity:0;transform:scale(1)}50%{opacity:0;transform:scale(1)}70%{opacity:.4;transform:scale(1)}75%{opacity:.5;transform:scale(1.2)}80%{opacity:.6;transform:scale(.8)}90%{opacity:.8;transform:scale(1.2)}to{opacity:1;transform:scale(1)}}'}),v.jsx("style",{children:".ant-btn{--tw-shadow:0 2px 0 rgba(0,0,0,.015);--tw-shadow-colored:0 2px 0 var(--tw-shadow-color);animation-duration:.3s;animation-timing-function:cubic-bezier(.4,0,.2,1);background-color:#0000003d;background-image:none;border:1px solid #0000;border-radius:25px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:#000000d9;cursor:pointer;display:inline-block;font-size:13px;font-weight:400;height:32px;line-height:1.5715;padding:4.8px 15px;position:relative;text-align:center;touch-action:manipulation;transition-duration:.3s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;white-space:nowrap}.ant-btn:hover{background:var(--color-black-24)}.ant-btn:hover,.ant-btn:not([disabled]):hover{text-decoration:none}.ant-btn-icon-only{border-radius:25px;font-size:15px;height:32px;padding:3.2px 0;vertical-align:-1px;width:32px}"}),v.jsx("style",{children:".cvtv-ui-layout__tour-logo{align-items:center;display:flex;filter:drop-shadow(0 var(--space-2) var(--space-16) var(--color-black-16));left:var(--space-16);max-width:var(--tour-logo-max-width);position:absolute;top:var(--space-16);z-index:1}.cvtv-ui-layout__tour-logo span{color:var(--color-white);overflow:hidden;padding:var(--space-2) var(--space-8);text-overflow:ellipsis;text-shadow:0 2px 8px var(--color-black-72);text-transform:uppercase;white-space:nowrap}.cvtv-ui-layout__tour-logo img{max-height:40px;max-width:120px}.cvtc-beta-tour__group-pin-action\n.cvtc-auto-play-menu-bar,.cvtc-beta-tour__group-pin-action\n.cvtc-pin-actions,.cvtc-beta-tour__group-pin-action\n.cvtc-show-ai-menu-bar{pointer-events:auto}.cvtc-pin-actions,.cvtc-pin-actions__button{align-items:center;display:flex;justify-content:center}.cvtc-pin-actions__button{background:#0000;box-shadow:unset;height:40px;transition:all .3s ease-in-out;width:40px}.cvtc-pin-actions__button:hover{border-color:#0000}.cvtc-pin-actions__button>[class^=icon-]:before{color:var(--color-white);text-shadow:0 2px 8px var(--color-black-64)}.cvtc-beta-tour__group-pin-action,.cvtc-pin-actions{flex-direction:column;gap:var(--space-8)}.cvtc-beta-tour__group-pin-action{align-items:end;bottom:var(--space-16);display:flex;pointer-events:none;position:absolute;right:var(--space-16)}"}),v.jsx(Vs,Object.assign({},e,{onTourLoaded:n=>{t.tour=n,o(!0),e.onLoaded&&(n={goToProduct:n.goToProduct,goToScene:n.loadScene},e.onLoaded(n))}})),v.jsx(aa,Object.assign({},e,{tourLoaded:n}))]})};class ca extends HTMLElement{constructor(){super(),this.mobile=!1,this.updateAttributes=this.updateAttributes.bind(this)}updateAttributes(e){this.elementId=e.elementId,this.apiHost=e.apiHost,this.config=e.config,this.mobile=e.mobile||!1,this.onLoaded=e.onLoaded,this.onPoiClicked=e.onPoiClicked,this.render()}connectedCallback(){this.apiHost&&this.render()}render(){re.render(v.jsx(la,{elementId:this.elementId,apiHost:this.apiHost||"",config:this.config||{tourCode:""},mobile:this.mobile,onLoaded:this.onLoaded,onPoiClicked:this.onPoiClicked}),this)}}let ua=t=>{var n=t.id?document.getElementById(t.id):document.querySelector(e);if(!n)throw new Error(e+" element not found.");customElements.get(e)?n.updateAttributes(t):(Object.assign(n,t),"undefined"==typeof window||customElements.get(e)||customElements.define(e,ca))},ha={initVisualizer:ua,destroy:()=>{}};(e=>{"undefined"!=typeof window&&(window.ShowroomVisualizer=Object.assign({},e))})(ha);export{ha as default};
1
+ let e="showroom-visualizer";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o,i,r,s,a={exports:{}},l={},c={exports:{}},u={};function h(){var e,t,n,i,r,s,a,l,c,h,d,p,f,g,m,v,_,b,y,w,x,k,S;return o||(o=1,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={},O.prototype.isReactComponent={},O.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},O.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=O.prototype,(S=T.prototype=new E).constructor=T,g(S,O.prototype),S.isPureReactComponent=!0,v=Array.isArray,_=Object.prototype.hasOwnProperty,y={key:!0,ref:!0,__self:!0,__source:!0},w=/\/+/g,S={ReactCurrentDispatcher:x={current:null},ReactCurrentBatchConfig:k={transition:null},ReactCurrentOwner:b={current:null}},u.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(C(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},u.Component=O,u.Fragment=n,u.Profiler=r,u.PureComponent=T,u.StrictMode=i,u.Suspense=c,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,u.act=L,u.cloneElement=function(t,n,o){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=g({},t.props),r=t.key,s=t.ref,a=t._owner;if(null!=n)for(l in void 0!==n.ref&&(s=n.ref,a=b.current),void 0!==n.key&&(r=""+n.key),t.type&&t.type.defaultProps&&(c=t.type.defaultProps),n)_.call(n,l)&&!y.hasOwnProperty(l)&&(i[l]=(void 0===n[l]&&void 0!==c?c:n)[l]);var l=arguments.length-2;if(1===l)i.children=o;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:e,type:t.type,key:r,ref:s,props:i,_owner:a}},u.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},u.createElement=P,u.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:l,render:e}},u.isValidElement=C,u.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},u.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=k.transition;k.transition={};try{e()}finally{k.transition=t}},u.unstable_act=L,u.useCallback=function(e,t){return x.current.useCallback(e,t)},u.useContext=function(e){return x.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return x.current.useDeferredValue(e)},u.useEffect=function(e,t){return x.current.useEffect(e,t)},u.useId=function(){return x.current.useId()},u.useImperativeHandle=function(e,t,n){return x.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return x.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return x.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return x.current.useMemo(e,t)},u.useReducer=function(e,t,n){return x.current.useReducer(e,t,n)},u.useRef=function(e){return x.current.useRef(e)},u.useState=function(e){return x.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return x.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return x.current.useTransition()},u.version="18.3.1"),u;function O(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function E(){}function T(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function P(t,n,o){var i,r={},s=null,a=null;if(null!=n)for(i in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)_.call(n,i)&&!y.hasOwnProperty(i)&&(r[i]=n[i]);var l=arguments.length-2;if(1===l)r.children=o;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];r.children=c}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===r[i]&&(r[i]=l[i]);return{$$typeof:e,type:t,key:s,ref:a,props:r,_owner:b.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,n={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function $(n,o,i,r,s){var a,l,c=!1;if(null===(n="undefined"!=(h=typeof n)&&"boolean"!==h?n:null))c=!0;else switch(h){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case e:case t:c=!0}}if(c)return s=s(c=n),n=""===r?"."+N(c,0):r,v(s)?(i="",$(s,o,i=null!=n?n.replace(w,"$&/")+"/":i,"",function(e){return e})):null!=s&&(C(s)&&(l=i+(!(a=s).key||c&&c.key===s.key?"":(""+s.key).replace(w,"$&/")+"/")+n,s={$$typeof:e,type:a.type,key:l,ref:a.ref,props:a.props,_owner:a._owner}),o.push(s)),1;if(c=0,r=""===r?".":r+":",v(n))for(var u=0;u<n.length;u++){var h,d=r+N(h=n[u],u);c+=$(h,o,i,d,s)}else if("function"==typeof(d=null!==(l=n)&&"object"==typeof l&&"function"==typeof(l=p&&l[p]||l["@@iterator"])?l:null))for(n=d.call(n),u=0;!(h=n.next()).done;)c+=$(h=h.value,o,i,d=r+N(h,u++),s);else if("object"===h)throw o=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===o?"object with keys {"+Object.keys(n).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return c}function A(e,t,n){var o;return null==e||(o=0,$(e,e=[],"","",function(e){return t.call(n,e,o++)})),e}function M(e){var t;if(-1===e._status&&((t=(t=e._result)()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status)&&(e._status=0,e._result=t),1===e._status)return e._result.default;throw e._result}function L(){throw Error("act(...) is not supported in production builds of React.")}}function d(){return i||(i=1,c.exports=h()),c.exports}var p,f,g,m,v=(s||(s=1,a.exports=function(){var e,t,n,o,i,s;return r||(r=1,e=d(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0},l.Fragment=n,l.jsx=a,l.jsxs=a),l;function a(e,n,r){var a,l={},c=null,u=null;for(a in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)o.call(n,a)&&!s.hasOwnProperty(a)&&(l[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===l[a]&&(l[a]=n[a]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}}()),a.exports),_={exports:{}},b={},y={exports:{}},w={};function x(){return f||(f=1,y.exports=function(){var e,t,n,o,i,r,s,a,l,c,u,h,d,f,g,m,v,_,b,y,x,k,S;return p||(p=1,e=w,"object"==typeof performance&&"function"==typeof performance.now?(t=performance,e.unstable_now=function(){return t.now()}):(n=Date,o=n.now(),e.unstable_now=function(){return n.now()-o}),i=[],r=[],s=1,a=null,h=u=c=!(l=3),d="function"==typeof setTimeout?setTimeout:null,f="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null,"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling),b=!1,y=null,k=5,S=x=-1,m="function"==typeof g?function(){g(M)}:"undefined"!=typeof MessageChannel?(v=new MessageChannel,_=v.port2,v.port1.onmessage=M,function(){_.postMessage(null)}):function(){d(M,0)},e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){u||c||(u=!0,L($))},e.unstable_forceFrameRate=function(e){e<0||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return l},e.unstable_getFirstCallbackNode=function(){return E(i)},e.unstable_next=function(e){switch(l){case 1:case 2:case 3:var t=3;break;default:t=l}var n=l;l=t;try{return e()}finally{l=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=l;l=e;try{return t()}finally{l=n}},e.unstable_scheduleCallback=function(t,n,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,t){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return t={id:s++,callback:n,priorityLevel:t,startTime:o,expirationTime:l=o+l,sortIndex:-1},a<o?(t.sortIndex=o,O(r,t),null===E(i)&&t===E(r)&&(h?(f(x),x=-1):h=!0,D(N,o-a))):(t.sortIndex=l,O(i,t),u||c||(u=!0,L($))),t},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=l;return function(){var n=l;l=t;try{return e.apply(this,arguments)}finally{l=n}}}),w;function O(e,t){var n=e.length;for(e.push(t);0<n;){var o=n-1>>>1,i=e[o];if(!(0<P(i,t)))break;e[o]=t,e[n]=i,n=o}}function E(e){return 0===e.length?null:e[0]}function T(e){if(0!==e.length){var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var o=0,i=e.length,r=i>>>1;o<r;){var s=2*(o+1)-1,a=e[s],l=1+s,c=e[l];if(P(a,n)<0)o=l<i&&P(c,a)<0?(e[o]=c,e[l]=n,l):(e[o]=a,e[s]=n,s);else{if(!(l<i&&P(c,n)<0))break;e[o]=c,e[l]=n,o=l}}}}}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!=n?n:e.id-t.id}function C(e){for(var t=E(r);null!==t;){if(null===t.callback)T(r);else{if(!(t.startTime<=e))break;T(r),t.sortIndex=t.expirationTime,O(i,t)}t=E(r)}}function N(e){var t;h=!1,C(e),u||(null!==E(i)?(u=!0,L($)):null!==(t=E(r))&&D(N,t.startTime-e))}function $(t,n){u=!1,h&&(h=!1,f(x),x=-1),c=!0;var o=l;try{for(C(n),a=E(i);null!==a&&(!(a.expirationTime>n)||t&&!A());){var s,d=a.callback;"function"==typeof d?(a.callback=null,l=a.priorityLevel,s=d(a.expirationTime<=n),n=e.unstable_now(),"function"==typeof s?a.callback=s:a===E(i)&&T(i),C(n)):T(i),a=E(i)}var p;return null!==a||(null!==(p=E(r))&&D(N,p.startTime-n),!1)}finally{a=null,l=o,c=!1}}function A(){return!(e.unstable_now()-S<k)}function M(){if(null!==y){var t=e.unstable_now(),n=(S=t,!0);try{n=y(!0,t)}finally{n?m():(b=!1,y=null)}}else b=!1}function L(e){y=e,b||(b=!0,m())}function D(t,n){x=d(function(){t(e.unstable_now())},n)}}()),y.exports}function k(){if(!g){g=1;var e,t,n,o=d(),i=x(),r=new Set,s={},a=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},h={},p={},f=("children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){p[e]=new Bo(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];p[t]=new Bo(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){p[e]=new Bo(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){p[e]=new Bo(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){p[e]=new Bo(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){p[e]=new Bo(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){p[e]=new Bo(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){p[e]=new Bo(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){p[e]=new Bo(e,5,!1,e.toLowerCase(),null,!1,!1)}),/[\-:]([a-z])/g),m=(o=("accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(f,Yo);p[t]=new Bo(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(f,Yo);p[t]=new Bo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(f,Yo);p[t]=new Bo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){p[e]=new Bo(e,1,!1,e.toLowerCase(),null,!1,!1)}),p.xlinkHref=new Bo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){p[e]=new Bo(e,1,!1,e.toLowerCase(),null,!0,!0)}),o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED),Symbol.for("react.element")),v=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),S=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),$=Symbol.iterator,A=Object.assign,M=!1,L=Array.isArray,D=(n=function(e,n){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=n;else{for((t=t||document.createElement("div")).innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=t.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,o,i){MSApp.execUnsafeLocalFunction(function(){return n(e,t)})}:n),I={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},R=["Webkit","ms","Moz","O"],H=(Object.keys(I).forEach(function(e){R.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),I[t]=I[e]})}),A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0})),F=null,V=null,j=null,z=null,U=!1,B=!1;if(a)try{var Y={};Object.defineProperty(Y,"passive",{get:function(){B=!0}}),window.addEventListener("test",Y,Y),window.removeEventListener("test",Y,Y)}catch(Y){B=!1}for(var W,G,q,X,Q,Z,K,J,ee=!1,te=null,ne=!1,oe=null,ie={onError:function(e){ee=!0,te=e}},re=i.unstable_scheduleCallback,se=i.unstable_cancelCallback,ae=i.unstable_shouldYield,le=i.unstable_requestPaint,ce=i.unstable_now,ue=i.unstable_getCurrentPriorityLevel,he=i.unstable_ImmediatePriority,de=i.unstable_UserBlockingPriority,pe=i.unstable_NormalPriority,fe=i.unstable_LowPriority,ge=i.unstable_IdlePriority,me=null,ve=null,_e=Math.clz32||function(e){return 0==(e>>>=0)?32:31-(be(e)/ye|0)|0},be=Math.log,ye=Math.LN2,we=64,xe=4194304,ke=0,Se=!1,Oe=[],Ee=null,Te=null,Pe=null,Ce=new Map,Ne=new Map,$e=[],Ae="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),Me=o.ReactCurrentBatchConfig,Le=!0,De=null,Ie=null,Re=null,He=null,Fe=ir(Y={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0}),Ve=ir(it=A({},Y,{view:0,detail:0})),je=A({},it,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==J&&(K=J&&"mousemove"===e.type?(Z=e.screenX-J.screenX,e.screenY-J.screenY):Z=0,J=e),Z)},movementY:function(e){return"movementY"in e?e.movementY:K}}),ze=ir(je),Ue=ir(A({},je,{dataTransfer:0})),Be=ir(A({},it,{relatedTarget:0})),Ye=ir(A({},Y,{animationName:0,elapsedTime:0,pseudoElement:0})),We=ir(A({},Y,{clipboardData:function(e){return("clipboardData"in e?e:window).clipboardData}})),Ge=ir(A({},Y,{data:0})),qe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xe={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Qe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ze=ir(A({},it,{key:function(e){if(e.key){var t=qe[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Xe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sr,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Ke=ir(A({},je,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Je=ir(A({},it,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sr})),et=ir(A({},Y,{propertyName:0,elapsedTime:0,pseudoElement:0})),tt=ir(A({},je,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),nt=[9,13,27,32],ot=(a&&"CompositionEvent"in window),it=null,rt=(a&&"documentMode"in document&&(it=document.documentMode),a&&"TextEvent"in window&&!it),st=a&&(!ot||it&&8<it&&it<=11),at=String.fromCharCode(32),lt=!1,ct=!1,ut={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},ht=null,dt=null,pt=!1,ft=(a&&(it=a&&((Y="oninput"in document)||((je=document.createElement("div")).setAttribute("oninput","return;"),Y="function"==typeof je.oninput),Y),pt=it&&(!document.documentMode||9<document.documentMode)),"function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}),gt=(a&&"documentMode"in document&&document.documentMode<=11),mt=null,vt=null,_t=null,bt=!1,yt={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},wt={},xt={},kt=(a&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete yt.animationend.animation,delete yt.animationiteration.animation,delete yt.animationstart.animation),"TransitionEvent"in window||delete yt.transitionend.transition),Tr("animationend")),St=Tr("animationiteration"),Ot=Tr("animationstart"),Et=Tr("transitionend"),Tt=new Map,Pt="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "),Ct=0;Ct<Pt.length;Ct++){var Nt=Pt[Ct];Pr(Nt.toLowerCase(),"on"+(Nt[0].toUpperCase()+Nt.slice(1)))}Pr(kt,"onAnimationEnd"),Pr(St,"onAnimationIteration"),Pr(Ot,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Et,"onTransitionEnd"),Uo("onMouseEnter",["mouseout","mouseover"]),Uo("onMouseLeave",["mouseout","mouseover"]),Uo("onPointerEnter",["pointerout","pointerover"]),Uo("onPointerLeave",["pointerout","pointerover"]),zo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zo("onBeforeInput",["compositionend","keypress","textInput","paste"]),zo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $t="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),At=new Set("cancel close invalid load scroll toggle".split(" ").concat($t)),Mt="_reactListening"+Math.random().toString(36).slice(2),Lt=/\r\n?/g,Dt=/\u0000|\uFFFD/g,It=null,Rt=null,Ht="function"==typeof setTimeout?setTimeout:void 0,Ft="function"==typeof clearTimeout?clearTimeout:void 0,Vt="function"==typeof Promise?Promise:void 0,jt="function"==typeof queueMicrotask?queueMicrotask:void 0!==Vt?function(e){return Vt.resolve(null).then(e).catch(Br)}:Ht,zt="__reactFiber$"+(je=Math.random().toString(36).slice(2)),Ut="__reactProps$"+je,Bt="__reactContainer$"+je,Yt="__reactEvents$"+je,Wt="__reactListeners$"+je,Gt="__reactHandles$"+je,qt=[],Xt=-1,Qt={},Zt=Kr(Qt),Kt=Kr(!1),Jt=Qt,en=null,tn=!1,nn=!1,on=[],rn=0,sn=null,an=0,ln=[],cn=0,un=null,hn=1,dn="",pn=null,fn=null,gn=!1,mn=null,vn=o.ReactCurrentBatchConfig,_n=Es(!0),bn=Es(!1),yn=Kr(null),wn=null,xn=null,kn=null,Sn=null,On=!1,En={},Tn=Kr(En),Pn=Kr(En),Cn=Kr(En),Nn=Kr(0),$n=[],An=o.ReactCurrentDispatcher,Mn=o.ReactCurrentBatchConfig,Ln=0,Dn=null,In=null,Rn=null,Hn=!1,Fn=!1,Vn=0,jn=0,zn={readContext:$s,useCallback:Qs,useContext:Qs,useEffect:Qs,useImperativeHandle:Qs,useInsertionEffect:Qs,useLayoutEffect:Qs,useMemo:Qs,useReducer:Qs,useRef:Qs,useState:Qs,useDebugValue:Qs,useDeferredValue:Qs,useTransition:Qs,useMutableSource:Qs,useSyncExternalStore:Qs,useId:Qs,unstable_isNewReconciler:!1},Un={readContext:$s,useCallback:function(e,t){return ea().memoizedState=[e,void 0===t?null:t],e},useContext:$s,useEffect:va,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ga(4194308,4,wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ga(4194308,4,e,t)},useInsertionEffect:function(e,t){return ga(4,2,e,t)},useMemo:function(e,t){var n=ea();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=ea();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(o.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=function(e,t,n){var o=Nl(e);n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Pa(e)?Ca(t,n):null!==(n=Ms(e,t,n,o))&&($l(n,e,o,Cl()),Na(n,t,o))}.bind(null,Dn,e),[o.memoizedState,e]},useRef:function(e){return ea().memoizedState={current:e}},useState:da,useDebugValue:ka,useDeferredValue:function(e){return ea().memoizedState=e},useTransition:function(){var e=(t=da(!1))[0],t=function(e,t){var n=ke,o=(ke=0!==n&&n<4?n:4,e(!0),Mn.transition);Mn.transition={};try{e(!1),t()}finally{ke=n,Mn.transition=o}}.bind(null,t[1]);return[e,ea().memoizedState=t]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Dn,i=ea();if(gn){if(void 0===n)throw Error(jo(407));n=n()}else{if(n=t(),null===fo)throw Error(jo(349));!(30&Ln)&&aa(o,t,n)}var r={value:i.memoizedState=n,getSnapshot:t};return va(ca.bind(null,o,i.queue=r,e),[e]),o.flags|=2048,pa(9,la.bind(null,o,r,n,t),void 0,null),n},useId:function(){var e,t=ea(),n=fo.identifierPrefix;return gn?(e=dn,n=":"+n+"R"+(e=(hn&~(1<<32-_e(hn)-1)).toString(32)+e),0<(e=Vn++)&&(n+="H"+e.toString(32)),n+=":"):n=":"+n+"r"+(e=jn++).toString(32)+":",t.memoizedState=n},unstable_isNewReconciler:!1},Bn={readContext:$s,useCallback:Sa,useContext:$s,useEffect:_a,useImperativeHandle:xa,useInsertionEffect:ba,useLayoutEffect:ya,useMemo:Oa,useReducer:oa,useRef:fa,useState:function(){return oa(na)},useDebugValue:ka,useDeferredValue:function(e){return Ea(ta(),In.memoizedState,e)},useTransition:function(){return[oa(na)[0],ta().memoizedState]},useMutableSource:ra,useSyncExternalStore:sa,useId:Ta,unstable_isNewReconciler:!1},Yn={readContext:$s,useCallback:Sa,useContext:$s,useEffect:_a,useImperativeHandle:xa,useInsertionEffect:ba,useLayoutEffect:ya,useMemo:Oa,useReducer:ia,useRef:fa,useState:function(){return ia(na)},useDebugValue:ka,useDeferredValue:function(e){var t=ta();return null===In?t.memoizedState=e:Ea(t,In.memoizedState,e)},useTransition:function(){return[ia(na)[0],ta().memoizedState]},useMutableSource:ra,useSyncExternalStore:sa,useId:Ta,unstable_isNewReconciler:!1},Wn={isMounted:function(e){return!!(e=e._reactInternals)&&Ci(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=Cl(),i=Nl(e),r=Rs(o,i);r.payload=t,null!=n&&(r.callback=n),null!==(t=Hs(e,r,i))&&($l(t,e,i,o),Fs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=Cl(),i=Nl(e),r=Rs(o,i);r.tag=1,r.payload=t,null!=n&&(r.callback=n),null!==(t=Hs(e,r,i))&&($l(t,e,i,o),Fs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cl(),o=Nl(e),i=Rs(n,o);i.tag=2,null!=t&&(i.callback=t),null!==(t=Hs(e,i,o))&&($l(t,e,o,n),Fs(t,e,o))}},Gn="function"==typeof WeakMap?WeakMap:Map,qn=o.ReactCurrentOwner,Xn=!1,Qn={dehydrated:null,treeContext:null,retryLane:0},Zn=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n=(n.child.return=n).child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Kn=function(){},Jn=function(e,t,n,o){var i=e.memoizedProps;if(i!==o){e=t.stateNode,Us(Tn.current);var r,a=null;switch(n){case"input":i=ni(e,i),o=ni(e,o),a=[];break;case"select":i=A({},i,{value:void 0}),o=A({},o,{value:void 0}),a=[];break;case"textarea":i=ci(e,i),o=ci(e,o),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof o.onClick&&(e.onclick=zr)}for(u in _i(n,o),n=null,i)if(!o.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(r in l)l.hasOwnProperty(r)&&((n=n||{})[r]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a=a||[]:(a=a||[]).push(u,null));for(u in o){var c=o[u];l=null!=i?i[u]:void 0;if(o.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(r in l)!l.hasOwnProperty(r)||c&&c.hasOwnProperty(r)||((n=n||{})[r]="");for(r in c)c.hasOwnProperty(r)&&l[r]!==c[r]&&((n=n||{})[r]=c[r])}else n||(a=a||[]).push(u,n),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&$r("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},eo=function(e,t,n,o){n!==o&&(t.flags|=4)},to=!1,no=!1,oo="function"==typeof WeakSet?WeakSet:Set,io=null,ro=!1,so=null,ao=!1,lo=Math.ceil,co=o.ReactCurrentDispatcher,uo=o.ReactCurrentOwner,ho=o.ReactCurrentBatchConfig,po=0,fo=null,go=null,mo=0,vo=0,_o=Kr(0),bo=0,yo=null,wo=0,xo=0,ko=0,So=null,Oo=null,Eo=0,To=1/0,Po=null,Co=!1,No=null,$o=null,Ao=!1,Mo=null,Lo=0,Do=0,Io=null,Ro=-1,Ho=0,Fo=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Kt.current)Xn=!0;else{if(0==(e.lanes&n)&&!(128&t.flags)){Xn=!1;var o=e,i=t,r=n;switch(i.tag){case 3:el(i),ws();break;case 5:Ws(i);break;case 1:ns(i.type)&&ss(i);break;case 4:Bs(i,i.stateNode.containerInfo);break;case 10:var s=i.type._context,a=i.memoizedProps.value;es(yn,s._currentValue),s._currentValue=a;break;case 13:if(null!==(s=i.memoizedState))return null!==s.dehydrated?(es(Nn,1&Nn.current),i.flags|=128,null):0!=(r&i.child.childLanes)?ol(o,i,r):(es(Nn,1&Nn.current),null!==(o=ul(o,i,r))?o.sibling:null);es(Nn,1&Nn.current);break;case 19:if(s=0!=(r&i.childLanes),128&o.flags){if(s)return ll(o,i,r);i.flags|=128}if(null!==(a=i.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),es(Nn,Nn.current),s)break;return null;case 22:case 23:return i.lanes=0,Xa(o,i,r)}return ul(o,i,r)}Xn=!!(131072&e.flags)}else Xn=!1,gn&&1048576&t.flags&&hs(t,an,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type,c=(cl(e,t),e=t.pendingProps,ts(t,Zt.current)),u=(Ns(t,n),c=Ks(null,t,l,e,c,n),Js());return t.flags|=1,"object"==typeof c&&null!==c&&"function"==typeof c.render&&void 0===c.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ns(l)?(u=!0,ss(t)):u=!1,t.memoizedState=null!=c.state?c.state:null,Ds(t),c.updater=Wn,Ia((t.stateNode=c)._reactInternals=t,l,e,n),Ja(null,t,l,!0,u,n)):(t.tag=0,gn&&u&&ds(t),Ya(null,t,c,n),t.child);case 16:l=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,l=(c=l._init)(l._payload),t.type=l,c=t.tag=(e=>{if("function"==typeof e)return nc(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===P)return 14}return 2})(l),e=$a(l,e),c){case 0:t=Za(null,t,l,e,n);break e;case 1:t=Ka(null,t,l,e,n);break e;case 11:t=Wa(null,t,l,e,n);break e;case 14:t=Ga(null,t,l,$a(l.type,e),n);break e}throw Error(jo(306,l,""))}return t;case 0:return l=t.type,c=t.pendingProps,Za(e,t,l,c=t.elementType===l?c:$a(l,c),n);case 1:return l=t.type,c=t.pendingProps,Ka(e,t,l,c=t.elementType===l?c:$a(l,c),n);case 3:e:{if(el(t),null===e)throw Error(jo(387));l=t.pendingProps,c=(u=t.memoizedState).element,Is(e,t),js(t,l,null,n);l=(f=t.memoizedState).element;if(u.isDehydrated){if(u={element:l,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,256&t.flags){t=tl(e,t,l,n,c=Ra(Error(jo(423)),t));break e}if(l!==c){t=tl(e,t,l,n,c=Ra(Error(jo(424)),t));break e}for(fn=Wr(t.stateNode.containerInfo.firstChild),gn=!0,n=bn(pn=t,mn=null,l,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ws(),l===c){t=ul(e,t,n);break e}Ya(e,t,l,n)}t=t.child}return t;case 5:return Ws(t),null===e&&vs(t),l=t.type,c=t.pendingProps,u=null!==e?e.memoizedProps:null,f=c.children,Ur(l,c)?f=null:null!==u&&Ur(l,u)&&(t.flags|=32),Qa(e,t),Ya(e,t,f,n),t.child;case 6:return null===e&&vs(t),null;case 13:return ol(e,t,n);case 4:return Bs(t,t.stateNode.containerInfo),l=t.pendingProps,null===e?t.child=_n(t,null,l,n):Ya(e,t,l,n),t.child;case 11:return l=t.type,c=t.pendingProps,Wa(e,t,l,c=t.elementType===l?c:$a(l,c),n);case 7:return Ya(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ya(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(l=t.type._context,c=t.pendingProps,u=t.memoizedProps,f=c.value,es(yn,l._currentValue),l._currentValue=f,null!==u)if(ft(u.value,f)){if(u.children===c.children&&!Kt.current){t=ul(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var h=u.dependencies;if(null!==h)for(var d,p,f=u.child,g=h.firstContext;null!==g;){if(g.context===l){1===u.tag&&((g=Rs(-1,n&-n)).tag=2,null!==(d=u.updateQueue))&&(null===(p=(d=d.shared).pending)?g.next=g:(g.next=p.next,p.next=g),d.pending=g),u.lanes|=n,null!==(g=u.alternate)&&(g.lanes|=n),Cs(u.return,n,t),h.lanes|=n;break}g=g.next}else if(10===u.tag)f=u.type===t.type?null:u.child;else if(18===u.tag){if(null===(f=u.return))throw Error(jo(341));f.lanes|=n,null!==(h=f.alternate)&&(h.lanes|=n),Cs(f,n,t),f=u.sibling}else f=u.child;if(null!==f)f.return=u;else for(f=u;null!==f;){if(f===t){f=null;break}if(null!==(u=f.sibling)){u.return=f.return,f=u;break}f=f.return}u=f}Ya(e,t,c.children,n),t=t.child}return t;case 9:return c=t.type,l=t.pendingProps.children,Ns(t,n),l=l(c=$s(c)),t.flags|=1,Ya(e,t,l,n),t.child;case 14:return c=$a(l=t.type,t.pendingProps),Ga(e,t,l,c=$a(l.type,c),n);case 15:return qa(e,t,t.type,t.pendingProps,n);case 17:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:$a(l,c),cl(e,t),t.tag=1,ns(l)?(e=!0,ss(t)):e=!1,Ns(t,n),La(t,l,c),Ia(t,l,c,n),Ja(null,t,l,!0,e,n);case 19:return ll(e,t,n);case 22:return Xa(e,t,n)}throw Error(jo(156,t.tag))},Vo="function"==typeof reportError?reportError:function(e){console.error(e)};Y=(_c.prototype.render=vc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(jo(409));pc(e,t,null,null)},_c.prototype.unmount=vc.prototype.unmount=function(){var e,t=this._internalRoot;null!==t&&(this._internalRoot=null,e=t.containerInfo,Fl(function(){pc(null,t,null,null)}),e[Bt]=null)},_c.prototype.unstable_scheduleHydration=function(e){if(e){var t=X();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$e.length&&0!==t&&t<$e[n].priority;n++);$e.splice(n,0,e),0===n&&Ui(e)}},W=function(e){switch(e.tag){case 3:var t,n=e.stateNode;n.current.memoizedState.isDehydrated&&0!==(t=Mi(n.pendingLanes))&&(Fi(n,1|t),Al(n,ce()),!(6&po))&&(To=ce()+500,cs());break;case 13:Fl(function(){var t,n=Ls(e,1);null!==n&&(t=Cl(),$l(n,e,1,t))}),mc(e,1)}},G=function(e){var t;13===e.tag&&(null!==(t=Ls(e,134217728))&&$l(t,e,134217728,Cl()),mc(e,134217728))},q=function(e){var t,n;13===e.tag&&(null!==(n=Ls(e,t=Nl(e)))&&$l(n,e,t,Cl()),mc(e,t))},X=function(){return ke},Q=function(e,t){var n=ke;try{return ke=e,t()}finally{ke=n}},Oi=Fl,{usingClientEntryPoint:!(V=function(e,t,n){switch(t){case"input":if(ri(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=Zr(o);if(!i)throw Error(jo(90));ei(o),ri(o,i)}}}break;case"textarea":hi(e,n);break;case"select":null!=(t=n.value)&&li(e,!!n.multiple,t,!1)}}),Events:[Xr,Qr,Zr,xi,ki,Si=Hl]}),a={bundleType:(it={findFiberByHostInstance:qr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"}).bundleType,version:it.version,rendererPackageName:it.rendererPackageName,rendererConfig:it.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:o.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ai(e))?null:e.stateNode},findFiberByHostInstance:it.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&!(je=__REACT_DEVTOOLS_GLOBAL_HOOK__).isDisabled&&je.supportsFiber)try{me=je.inject(a),ve=je}catch(Y){}b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,b.createPortal=function(e,t){if(bc(t))return function(e,t,n,o){return{$$typeof:v,key:null==(o=3<arguments.length&&void 0!==o?o:null)?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null);throw Error(jo(200))},b.createRoot=function(e,t){var n,o,i;if(bc(e))return n=!1,o="",i=Vo,null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError)&&(i=t.onRecoverableError),t=uc(e,1,!1,null,0,n,0,o,i),e[Bt]=t.current,Mr(8===e.nodeType?e.parentNode:e),new vc(t);throw Error(jo(299))},b.findDOMNode=function(e){if(null==e)return null;if(1!==e.nodeType){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(jo(188));throw e=Object.keys(e).join(","),Error(jo(268,e))}e=null===(e=Ai(t))?null:e.stateNode}return e},b.flushSync=Fl,b.hydrate=function(e,t,n){if(yc(t))return xc(null,e,t,!0,n);throw Error(jo(200))},b.hydrateRoot=function(e,t,n){if(!bc(e))throw Error(jo(405));var o=null!=n&&n.hydratedSources||null,i=!1,r="",s=Vo;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError)&&(s=n.onRecoverableError),t=dc(t,null,e,1,null!=n?n:null,i,0,r,s),e[Bt]=t.current,Mr(e),o)for(e=0;e<o.length;e++)i=(i=(n=o[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new _c(t)},b.render=function(e,t,n){if(yc(t))return xc(null,e,t,!1,n);throw Error(jo(200))},b.unmountComponentAtNode=function(e){if(yc(e))return!!e._reactRootContainer&&(Fl(function(){xc(null,null,e,!1,function(){e._reactRootContainer=null,e[Bt]=null})}),!0);throw Error(jo(40))},b.unstable_batchedUpdates=Hl,b.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!yc(n))throw Error(jo(200));if(null==e||void 0===e._reactInternals)throw Error(jo(38));return xc(e,t,n,!1,o)},b.version="18.3.1-next-f1338f8080-20240426"}return b;function jo(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function zo(e,t){Uo(e,t),Uo(e+"Capture",t)}function Uo(e,t){for(s[e]=t,e=0;e<t.length;e++)r.add(t[e])}function Bo(e,t,n,o,i,r,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=s}function Yo(e){return e[1].toUpperCase()}function Wo(e,t,n,o){var i,r=p.hasOwnProperty(t)?p[t]:null;(null!==r?0!==r.type:o||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,o){if(null==t||((e,t,n,o)=>{if(null===n||0!==n.type)switch(typeof t){case"function":case"symbol":return 1;case"boolean":return o?void 0:null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return}})(e,t,n,o))return 1;if(!o&&null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}}(t,n,r,o)&&(n=null),o||null===r?(i=t,(l.call(h,i)||!l.call(u,i)&&(c.test(i)?h[i]=!0:void(u[i]=!0)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}function Go(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=$&&e[$]||e["@@iterator"])?e:null}function qo(t){if(void 0===e)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);e=n&&n[1]||""}return"\n"+e+t}function Xo(e,t){if(!e||M)return"";M=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(t){var o=t}Reflect.construct(e,[],t)}else{try{t.call()}catch(t){o=t}e.call(t.prototype)}else{try{throw Error()}catch(t){o=t}e()}}catch(t){if(t&&o&&"string"==typeof t.stack){for(var i,r=t.stack.split("\n"),s=o.stack.split("\n"),a=r.length-1,l=s.length-1;1<=a&&0<=l&&r[a]!==s[l];)l--;for(;1<=a&&0<=l;a--,l--)if(r[a]!==s[l]){if(1!==a||1!==l)do{if(a--,--l<0||r[a]!==s[l])return i="\n"+r[a].replace(" at new "," at "),i=e.displayName&&i.includes("<anonymous>")?i.replace("<anonymous>",e.displayName):i}while(1<=a&&0<=l);break}}}finally{M=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qo(e):""}function Qo(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(t){if(null!=t){if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case _:return"Fragment";case v:return"Portal";case w:return"Profiler";case y:return"StrictMode";case E:return"Suspense";case T:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case S:return(t.displayName||"Context")+".Consumer";case k:return(t._context.displayName||"Context")+".Provider";case O:var n=t.render;return(t=t.displayName)||(""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef");case P:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case C:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}}return null}(t);case 8:return t===y?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Zo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Ko(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Jo(e){e._valueTracker||(e._valueTracker=(e=>{var t,n,o=Ko(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,o),r=""+e[o];if(!e.hasOwnProperty(o)&&void 0!==i&&"function"==typeof i.get&&"function"==typeof i.set)return t=i.get,n=i.set,Object.defineProperty(e,o,{configurable:!0,get:function(){return t.call(this)},set:function(e){r=""+e,n.call(this,e)}}),Object.defineProperty(e,o,{enumerable:i.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[o]}}})(e))}function ei(e){var t,n,o;if(e)return(t=e._valueTracker)?(n=t.getValue(),o="",(e=o=e?Ko(e)?e.checked?"true":"false":e.value:o)!==n&&(t.setValue(e),1)):1}function ti(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ni(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function oi(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=Zo(null!=t.value?t.value:n);e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ii(e,t){null!=(t=t.checked)&&Wo(e,"checked",t,!1)}function ri(e,t){ii(e,t);var n=Zo(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?ai(e,t.type,n):t.hasOwnProperty("defaultValue")&&ai(e,t.type,Zo(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function si(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(("submit"===o||"reset"===o)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ai(e,t,n){"number"===t&&ti(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function li(e,t,n,o){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Zo(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(o&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ci(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(jo(91));return A({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ui(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(jo(92));if(L(n)){if(1<n.length)throw Error(jo(93));n=n[0]}t=n}n=t=null==t?"":t}e._wrapperState={initialValue:Zo(n)}}function hi(e,t){var n=Zo(t.value),o=Zo(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue)&&e.defaultValue!==n&&(e.defaultValue=n),null!=o&&(e.defaultValue=""+o)}function di(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function pi(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fi(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pi(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function gi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function mi(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||I.hasOwnProperty(e)&&I[e]?(""+t).trim():t+"px"}function vi(e,t){for(var n in e=e.style,t){var o,i;t.hasOwnProperty(n)&&(o=0===n.indexOf("--"),i=mi(n,t[n],o),"float"===n&&(n="cssFloat"),o?e.setProperty(n,i):e[n]=i)}}function _i(e,t){if(t){if(H[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(jo(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(jo(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(jo(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(jo(62))}}function bi(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function yi(e){return 3===(e=(e=e.target||e.srcElement||window).correspondingUseElement?e.correspondingUseElement:e).nodeType?e.parentNode:e}function wi(e){if(e=Xr(e)){if("function"!=typeof V)throw Error(jo(280));var t=e.stateNode;t&&(t=Zr(t),V(e.stateNode,e.type,t))}}function xi(e){j?z?z.push(e):z=[e]:j=e}function ki(){if(j){var e=j,t=z;if(z=j=null,wi(e),t)for(e=0;e<t.length;e++)wi(t[e])}}function Si(e,t){return e(t)}function Oi(){}function Ei(e,t,n){if(U)return e(t,n);U=!0;try{Si(e,t,n)}finally{U=!1,null===j&&null===z||(Oi(),ki())}}function Ti(e,t){var n=e.stateNode;if(null===n)return null;var o=Zr(n);if(null===o)return null;switch(n=o[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":e=!(o=(o=!o.disabled)?o:!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e));break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(jo(231,t,typeof n));return n}function Pi(e,t,n,o,i,r,s,a,l){ee=!1,te=null,function(e,t,n,o,i,r,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}.apply(ie,arguments)}function Ci(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else for(e=t;!!(4098&(t=e).flags)&&(n=t.return),e=t.return;);return 3===t.tag?n:null}function Ni(e){if(13===e.tag){var t=e.memoizedState;if(null!==(t=null===t&&null!==(e=e.alternate)?e.memoizedState:t))return t.dehydrated}return null}function $i(e){if(Ci(e)!==e)throw Error(jo(188))}function Ai(e){return null!==(e=(e=>{var t=e.alternate;if(!t){if(null===(t=Ci(e)))throw Error(jo(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var r=i.alternate;if(null===r){if(null===(o=i.return))break;n=o}else{if(i.child===r.child){for(r=i.child;r;){if(r===n)return $i(i),e;if(r===o)return $i(i),t;r=r.sibling}throw Error(jo(188))}if(n.return!==o.return)n=i,o=r;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,o=r;break}if(a===o){s=!0,o=i,n=r;break}a=a.sibling}if(!s){for(a=r.child;a;){if(a===n){s=!0,n=r,o=i;break}if(a===o){s=!0,o=r,n=i;break}a=a.sibling}if(!s)throw Error(jo(189))}}if(n.alternate!==o)throw Error(jo(190))}}if(3!==n.tag)throw Error(jo(188));return n.stateNode.current===n?e:t})(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var n=e(t);if(null!==n)return n;t=t.sibling}return null}(e):null}function Mi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Li(e,t){var n=e.pendingLanes;if(0===n)return 0;var o,i=0,r=e.suspendedLanes,s=e.pingedLanes,a=268435455&n;if(0!=a?0!=(o=a&~r)?i=Mi(o):0!==(s&=a)&&(i=Mi(s)):0!=(a=n&~r)?i=Mi(a):0!==s&&(i=Mi(s)),0===i)return 0;if(0!==t&&t!==i&&0==(t&r)&&((s=t&-t)<=(r=i&-i)||16===r&&4194240&s))return t;if(!!(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)i|=e[n=31-_e(t)],t&=~(r=1<<n);return i}function Di(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ii(){var e=we;return!(4194240&(we<<=1))&&(we=64),e}function Ri(e){for(var t=[],n=0;n<31;n++)t.push(e);return t}function Hi(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-_e(t)]=n}function Fi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-_e(n),i=1<<o;i&t|e[o]&t&&(e[o]|=t),n&=~i}}function Vi(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}function ji(e,t){switch(e){case"focusin":case"focusout":Ee=null;break;case"dragenter":case"dragleave":Te=null;break;case"mouseover":case"mouseout":Pe=null;break;case"pointerover":case"pointerout":Ce.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ne.delete(t.pointerId)}}function zi(e,t,n,o,i,r){return null===e||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:r,targetContainers:[i]},null!==t&&null!==(t=Xr(t))&&G(t)):(e.eventSystemFlags|=o,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i)),e}function Ui(e){var t=qr(e.target);if(null!==t){var n=Ci(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ni(n)))return e.blockedOn=t,void Q(e.priority,function(){q(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bi(e){if(null===e.blockedOn){for(var t=e.targetContainers;0<t.length;){var n=Ki(e.domEventName,0,t[0],e.nativeEvent);if(null!==n)return null!==(t=Xr(n))&&G(t),e.blockedOn=n,0;var o=new(n=e.nativeEvent).constructor(n.type,n);F=o,n.target.dispatchEvent(o),F=null,t.shift()}return 1}}function Yi(e,t,n){Bi(e)&&n.delete(t)}function Wi(){Se=!1,null!==Ee&&Bi(Ee)&&(Ee=null),null!==Te&&Bi(Te)&&(Te=null),null!==Pe&&Bi(Pe)&&(Pe=null),Ce.forEach(Yi),Ne.forEach(Yi)}function Gi(e,t){e.blockedOn===t&&(e.blockedOn=null,Se||(Se=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Wi)))}function qi(e){function t(t){return Gi(t,e)}if(0<Oe.length){Gi(Oe[0],e);for(var n=1;n<Oe.length;n++){var o=Oe[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Ee&&Gi(Ee,e),null!==Te&&Gi(Te,e),null!==Pe&&Gi(Pe,e),Ce.forEach(t),Ne.forEach(t),n=0;n<$e.length;n++)(o=$e[n]).blockedOn===e&&(o.blockedOn=null);for(;0<$e.length&&null===(n=$e[0]).blockedOn;)Ui(n),null===n.blockedOn&&$e.shift()}function Xi(e,t,n,o){var i=ke,r=Me.transition;Me.transition=null;try{ke=1,Zi(e,t,n,o)}finally{ke=i,Me.transition=r}}function Qi(e,t,n,o){var i=ke,r=Me.transition;Me.transition=null;try{ke=4,Zi(e,t,n,o)}finally{ke=i,Me.transition=r}}function Zi(e,t,n,o){if(Le){var i=Ki(e,0,0,o);if(null===i)Dr(e,t,o,De,n),ji(e,o);else if(((e,t,n,o,i)=>{switch(t){case"focusin":return Ee=zi(Ee,e,t,n,o,i),1;case"dragenter":return Te=zi(Te,e,t,n,o,i),1;case"mouseover":return Pe=zi(Pe,e,t,n,o,i),1;case"pointerover":var r=i.pointerId;return Ce.set(r,zi(Ce.get(r)||null,e,t,n,o,i)),1;case"gotpointercapture":return r=i.pointerId,Ne.set(r,zi(Ne.get(r)||null,e,t,n,o,i)),1}})(i,e,t,n,o))o.stopPropagation();else if(ji(e,o),4&t&&-1<Ae.indexOf(e)){for(;null!==i;){var r=Xr(i);if(null!==r&&W(r),null===(r=Ki(e,0,0,o))&&Dr(e,t,o,De,n),r===i)break;i=r}null!==i&&o.stopPropagation()}else Dr(e,t,o,null,n)}}function Ki(e,t,n,o){if((De=null)!==(e=qr(e=yi(o))))if(null===(t=Ci(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ni(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return De=e,null}function Ji(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ue()){case he:return 1;case de:return 4;case pe:case fe:return 16;case ge:return 536870912;default:return 16}default:return 16}}function er(){if(He)return He;for(var e=Re,t=e.length,n=("value"in Ie?Ie.value:Ie.textContent),o=n.length,i=0;i<t&&e[i]===n[i];i++);for(var r=t-i,s=1;s<=r&&e[t-s]===n[o-s];s++);return He=n.slice(i,1<s?1-s:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=(e=10===e?13:e)||13===e?e:0}function nr(){return!0}function or(){return!1}function ir(e){function t(t,n,o,i,r){for(var s in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=r,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nr:or,this.isPropagationStopped=or,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){},isPersistent:nr}),t}function rr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Qe[e])&&!!t[e]}function sr(){return rr}function ar(e,t){switch(e){case"keyup":return-1!==nt.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return 1;default:return}}function lr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?ut[e.type]:"textarea"===t}function ur(e,t,n,o){xi(o),0<(t=Rr(t,"onChange")).length&&(n=new Fe("onChange","change",null,n,o),e.push({event:n,listeners:t}))}function hr(e){Nr(e,0)}function dr(e){if(ei(Qr(e)))return e}function pr(e,t){if("change"===e)return t}function fr(){ht&&(ht.detachEvent("onpropertychange",gr),dt=ht=null)}function gr(e){var t;"value"===e.propertyName&&dr(dt)&&(ur(t=[],dt,e,yi(e)),Ei(hr,t))}function mr(e,t,n){"focusin"===e?(fr(),dt=n,(ht=t).attachEvent("onpropertychange",gr)):"focusout"===e&&fr()}function vr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return dr(dt)}function _r(e,t){if("click"===e)return dr(t)}function br(e,t){if("input"===e||"change"===e)return dr(t)}function yr(e,t){if(!ft(e,t)){if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var i=n[o];if(!l.call(t,i)||!ft(e[i],t[i]))return!1}}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xr(e,t){var n,o=wr(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&t<=n)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=wr(o)}}function kr(){for(var e=window,t=ti();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ti((e=t.contentWindow).document)}return t}function Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Or(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;bt||null==mt||mt!==ti(o)||(o="selectionStart"in(o=mt)&&Sr(o)?{start:o.selectionStart,end:o.selectionEnd}:{anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},_t&&yr(_t,o))||(_t=o,0<(o=Rr(vt,"onSelect")).length&&(t=new Fe("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=mt))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function Tr(e){if(wt[e])return wt[e];if(yt[e]){var t,n=yt[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return wt[e]=n[t]}return e}function Pr(e,t){Tt.set(e,t),zo(t,[e])}function Cr(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(){var e;Pi.apply(this,arguments),ee&&(e=te,ee=!1,te=null,ne||(ne=!0,oe=e))}(o,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var o=(i=e[n]).event,i=i.listeners;e:{var r=void 0;if(t)for(var s=i.length-1;0<=s;s--){var a=(c=i[s]).instance,l=c.currentTarget,c=c.listener;if(a!==r&&o.isPropagationStopped())break e;Cr(o,c,l),r=a}else for(s=0;s<i.length;s++){if(a=(c=i[s]).instance,l=c.currentTarget,c=c.listener,a!==r&&o.isPropagationStopped())break e;Cr(o,c,l),r=a}}}if(ne)throw e=oe,ne=!1,oe=null,e}function $r(e,t){var n=t[Yt],o=e+"__bubble";(n=void 0===n?t[Yt]=new Set:n).has(o)||(Lr(t,e,2,!1),n.add(o))}function Ar(e,t,n){var o=0;t&&(o|=4),Lr(n,e,o,t)}function Mr(e){var t;e[Mt]||(e[Mt]=!0,r.forEach(function(t){"selectionchange"!==t&&(At.has(t)||Ar(t,!1,e),Ar(t,!0,e))}),null===(t=9===e.nodeType?e:e.ownerDocument))||t[Mt]||Ar("selectionchange",!(t[Mt]=!0),t)}function Lr(e,t,n,o){switch(Ji(t)){case 1:var i=Xi;break;case 4:i=Qi;break;default:i=Zi}n=i.bind(null,t,n,e),i=!(!B||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t)||void 0,o?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Dr(e,t,n,o,i){var r=o;if(!(1&t||2&t||null===o))e:for(;;){if(null===o)return;var s=o.tag;if(3===s||4===s){var a=o.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=o.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=qr(a)))return;if(5===(l=s.tag)||6===l){o=r=s;continue e}a=a.parentNode}}o=o.return}Ei(function(){var o,i,s,a=r,l=yi(n),c=[];e:{var u=Tt.get(e);if(void 0!==u){var h=Fe,d=e;switch(e){case"keypress":if(0===tr(n))break e;case"keydown":case"keyup":h=Ze;break;case"focusin":d="focus",h=Be;break;case"focusout":d="blur",h=Be;break;case"beforeblur":case"afterblur":h=Be;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=ze;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Ue;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Je;break;case kt:case St:case Ot:h=Ye;break;case Et:h=et;break;case"scroll":h=Ve;break;case"wheel":h=tt;break;case"copy":case"cut":case"paste":h=We;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ke}for(var p=!(g=!!(4&t))&&"scroll"===e,f=g?null!==u?u+"Capture":null:u,g=[],m=a;null!==m;){var v,_=(v=m).stateNode;if(5===v.tag&&null!==_&&(v=_,null!==f)&&null!=(_=Ti(m,f))&&g.push(Ir(m,_,v)),p)break;m=m.return}0<g.length&&(u=new h(u,d,null,n,l),c.push({event:u,listeners:g}))}}if(!(7&t)){if(h="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===F||!(d=n.relatedTarget||n.fromElement)||!qr(d)&&!d[Bt])&&(h||u)&&(u=l.window===l?l:(u=l.ownerDocument)?u.defaultView||u.parentWindow:window,h?(h=a,null!==(d=(d=n.relatedTarget||n.toElement)?qr(d):null)&&(d!==(p=Ci(d))||5!==d.tag&&6!==d.tag)&&(d=null)):(h=null,d=a),h!==d)){if(g=ze,_="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(g=Ke,_="onPointerLeave",f="onPointerEnter",m="pointer"),p=null==h?u:Qr(h),v=null==d?u:Qr(d),(u=new g(_,m+"leave",h,n,l)).target=p,u.relatedTarget=v,_=null,qr(l)===a&&((g=new g(f,m+"enter",d,n,l)).target=v,g.relatedTarget=p,_=g),p=_,h&&d)e:{for(f=d,m=0,v=g=h;v;v=Hr(v))m++;for(v=0,_=f;_;_=Hr(_))v++;for(;0<m-v;)g=Hr(g),m--;for(;0<v-m;)f=Hr(f),v--;for(;m--;){if(g===f||null!==f&&g===f.alternate)break e;g=Hr(g),f=Hr(f)}g=null}else g=null;null!==h&&Fr(c,u,h,g,!1),null!==d&&null!==p&&Fr(c,p,d,g,!0)}switch("select"===(h=(u=a?Qr(a):window).nodeName&&u.nodeName.toLowerCase())||"input"===h&&"file"===u.type?o=pr:cr(u)?pt?o=br:(o=vr,i=mr):!(h=u.nodeName)||"input"!==h.toLowerCase()||"checkbox"!==u.type&&"radio"!==u.type||(o=_r),(o=o&&o(e,a))?ur(c,o,n,l):(i&&i(e,u,a),"focusout"===e&&(i=u._wrapperState)&&i.controlled&&"number"===u.type&&ai(u,"number",u.value)),i=a?Qr(a):window,e){case"focusin":!cr(i)&&"true"!==i.contentEditable||(mt=i,vt=a,_t=null);break;case"focusout":_t=vt=mt=null;break;case"mousedown":bt=!0;break;case"contextmenu":case"mouseup":case"dragend":bt=!1,Or(c,n,l);break;case"selectionchange":if(gt)break;case"keydown":case"keyup":Or(c,n,l)}if(ot)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else ct?ar(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(st&&"ko"!==n.locale&&(ct||"onCompositionStart"!==b?"onCompositionEnd"===b&&ct&&(s=er()):(Re="value"in(Ie=l)?Ie.value:Ie.textContent,ct=!0)),0<(i=Rr(a,b)).length)&&(b=new Ge(b,e,null,n,l),c.push({event:b,listeners:i}),s||null!==(s=lr(n)))&&(b.data=s),(s=(rt?(e,t)=>{switch(e){case"compositionend":return lr(t);case"keypress":return 32!==t.which?null:(lt=!0,at);case"textInput":return(e=t.data)===at&&lt?null:e;default:return null}}:(e,t)=>{if(ct)return"compositionend"===e||!ot&&ar(e,t)?(e=er(),He=Re=Ie=null,ct=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return st&&"ko"!==t.locale?null:t.data}})(e,n))&&0<(a=Rr(a,"onBeforeInput")).length&&(l=new Ge("onBeforeInput","beforeinput",null,n,l),c.push({event:l,listeners:a}),l.data=s)}Nr(c,t)})}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rr(e,t){for(var n=t+"Capture",o=[];null!==e;){var i=e,r=i.stateNode;5===i.tag&&null!==r&&(i=r,null!=(r=Ti(e,n))&&o.unshift(Ir(e,r,i)),null!=(r=Ti(e,t)))&&o.push(Ir(e,r,i)),e=e.return}return o}function Hr(e){if(null===e)return null;for(;(e=e.return)&&5!==e.tag;);return e||null}function Fr(e,t,n,o,i){for(var r=t._reactName,s=[];null!==n&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===o)break;5===a.tag&&null!==c&&(a=c,i?null!=(l=Ti(n,r))&&s.unshift(Ir(n,l,a)):null!=(l=Ti(n,r))&&s.push(Ir(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}function Vr(e){return("string"==typeof e?e:""+e).replace(Lt,"\n").replace(Dt,"")}function jr(e,t,n){if(t=Vr(t),Vr(e)!==t&&n)throw Error(jo(425))}function zr(){}function Ur(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function Br(e){setTimeout(function(){throw e})}function Yr(e,t){var n=t,o=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===o)return e.removeChild(i),void qi(t);o--}else"$"!==n&&"$?"!==n&&"$!"!==n||o++}while(n=i);qi(t)}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function qr(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bt]||n[zt]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[zt])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function Xr(e){return!(e=e[zt]||e[Bt])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Qr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(jo(33))}function Zr(e){return e[Ut]||null}function Kr(e){return{current:e}}function Jr(e){Xt<0||(e.current=qt[Xt],qt[Xt]=null,Xt--)}function es(e,t){qt[++Xt]=e.current,e.current=t}function ts(e,t){var n=e.type.contextTypes;if(!n)return Qt;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i,r={};for(i in n)r[i]=t[i];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function ns(e){return null!=e.childContextTypes}function os(){Jr(Kt),Jr(Zt)}function is(e,t,n){if(Zt.current!==Qt)throw Error(jo(168));es(Zt,t),es(Kt,n)}function rs(e,t,n){var o,i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(o in i=i.getChildContext())if(!(o in t))throw Error(jo(108,Qo(e)||"Unknown",o));return A({},n,i)}function ss(e){e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,Jt=Zt.current,es(Zt,e),es(Kt,Kt.current)}function as(e,t,n){var o=e.stateNode;if(!o)throw Error(jo(169));n?(e=rs(e,t,Jt),o.__reactInternalMemoizedMergedChildContext=e,Jr(Kt),Jr(Zt),es(Zt,e)):Jr(Kt),es(Kt,n)}function ls(e){null===en?en=[e]:en.push(e)}function cs(){if(!nn&&null!==en){nn=!0;var e=0,t=ke;try{var n=en;for(ke=1;e<n.length;e++)for(var o=n[e];null!==(o=o(!0)););en=null,tn=!1}catch(t){throw null!==en&&(en=en.slice(e+1)),re(he,cs),t}finally{ke=t,nn=!1}}return null}function us(e,t){on[rn++]=an,on[rn++]=sn,sn=e,an=t}function hs(e,t,n){ln[cn++]=hn,ln[cn++]=dn,ln[cn++]=un,un=e;var o,i=hn,r=(e=dn,32-_e(i)-1),s=(i&=~(1<<r),n+=1,32-_e(t)+r);dn=30<s?(s=(i&(1<<(o=r-r%5))-1).toString(32),i>>=o,r-=o,hn=1<<32-_e(t)+r|n<<r|i,s+e):(hn=1<<s|n<<r|i,e)}function ds(e){null!==e.return&&(us(e,1),hs(e,1,0))}function ps(e){for(;e===sn;)sn=on[--rn],on[rn]=null,an=on[--rn],on[rn]=null;for(;e===un;)un=ln[--cn],ln[cn]=null,dn=ln[--cn],ln[cn]=null,hn=ln[--cn],ln[cn]=null}function fs(e,t){var n=tc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,null===(t=(n.return=e).deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function gs(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,pn=e,fn=Wr(t.firstChild),1);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,pn=e,fn=null,1);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==un?{id:hn,overflow:dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=tc(18,null,null,0)).stateNode=t,(n.return=e).child=n,pn=e,fn=null,1);default:return}}function ms(e){return!(!(1&e.mode)||128&e.flags)}function vs(e){if(gn)if(fn){var t=fn;if(!gs(e,fn)){if(ms(e))throw Error(jo(418));var n=Wr(t.nextSibling),o=pn;n&&gs(e,n)?fs(o,t):(e.flags=-4097&e.flags|2,gn=!1,pn=e)}}else{if(ms(e))throw Error(jo(418));e.flags=-4097&e.flags|2,gn=!1,pn=e}}function _s(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;pn=e}function bs(e){if(e!==pn)return!1;if(!gn)return _s(e),!(gn=!0);var t;if(t=(t=(t=3!==e.tag)&&!(t=5!==e.tag)?"head"!==(t=e.type)&&"body"!==t&&!Ur(e.type,e.memoizedProps):t)&&fn){if(ms(e))throw ys(),Error(jo(418));for(;t;)fs(e,t),t=Wr(t.nextSibling)}if(_s(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(jo(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){fn=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}fn=null}}else fn=pn?Wr(e.stateNode.nextSibling):null;return!0}function ys(){for(var e=fn;e;)e=Wr(e.nextSibling)}function ws(){fn=pn=null,gn=!1}function xs(e){null===mn?mn=[e]:mn.push(e)}function ks(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(jo(309));var o=n.stateNode}var i,r;if(o)return i=o,r=""+e,null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=i.refs;null===e?delete t[r]:t[r]=e})._stringRef=r,t);throw Error(jo(147,e))}if("string"!=typeof e)throw Error(jo(284));if(!n._owner)throw Error(jo(290,e))}return e}function Ss(e,t){throw e=Object.prototype.toString.call(t),Error(jo(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Os(e){return(0,e._init)(e._payload)}function Es(e){function t(t,n){var o;e&&(null===(o=t.deletions)?(t.deletions=[n],t.flags|=16):o.push(n))}function n(n,o){if(e)for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=oc(e,t)).index=0,e.sibling=null,e}function r(t,n,o){if(t.index=o,e){if(null!==(o=t.alternate))return(o=o.index)<n?(t.flags|=2,n):o;t.flags|=2}else t.flags|=1048576;return n}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function a(e,t,n,o){return null===t||6!==t.tag?(t=ac(n,e.mode,o)).return=e:(t=i(t,n)).return=e,t}function l(e,t,n,o){var r=n.type;return r===_?u(e,t,n.props.children,o,n.key):(null!==t&&(t.elementType===r||"object"==typeof r&&null!==r&&r.$$typeof===C&&Os(r)===t.type)?(o=i(t,n.props)).ref=ks(0,t,n):(o=ic(n.type,n.key,n.props,null,e.mode,o)).ref=ks(0,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=lc(n,e.mode,o)).return=e:(t=i(t,n.children||[])).return=e,t}function u(e,t,n,o,r){return null===t||7!==t.tag?(t=rc(n,e.mode,o,r)).return=e:(t=i(t,n)).return=e,t}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ac(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case m:return(n=ic(t.type,t.key,t.props,null,e.mode,n)).ref=ks(0,null,t),n.return=e,n;case v:return(t=lc(t,e.mode,n)).return=e,t;case C:return h(e,(0,t._init)(t._payload),n)}if(L(t)||Go(t))return(t=rc(t,e.mode,n,null)).return=e,t;Ss(0,t)}return null}function d(e,t,n,o){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:a(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,o):null;case v:return n.key===i?c(e,t,n,o):null;case C:return d(e,t,(i=n._init)(n._payload),o)}if(L(n)||Go(n))return null!==i?null:u(e,t,n,o,null);Ss(0,n)}return null}function p(e,t,n,o,i){if("string"==typeof o&&""!==o||"number"==typeof o)return a(t,e=e.get(n)||null,""+o,i);if("object"==typeof o&&null!==o){switch(o.$$typeof){case m:return l(t,e=e.get(null===o.key?n:o.key)||null,o,i);case v:return c(t,e=e.get(null===o.key?n:o.key)||null,o,i);case C:return p(e,t,n,(0,o._init)(o._payload),i)}if(L(o)||Go(o))return u(t,e=e.get(n)||null,o,i,null);Ss(0,o)}return null}return function a(l,c,u,f){if("object"==typeof(u="object"==typeof u&&null!==u&&u.type===_&&null===u.key?u.props.children:u)&&null!==u){switch(u.$$typeof){case m:e:{for(var g=u.key,b=c;null!==b;){if(b.key===g){if((g=u.type)===_){if(7===b.tag){n(l,b.sibling),(c=i(b,u.props.children)).return=l,l=c;break e}}else if(b.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===C&&Os(g)===b.type){n(l,b.sibling),(c=i(b,u.props)).ref=ks(0,b,u),c.return=l,l=c;break e}n(l,b);break}t(l,b),b=b.sibling}l=u.type===_?((c=rc(u.props.children,l.mode,f,u.key)).return=l,c):((f=ic(u.type,u.key,u.props,null,l.mode,f)).ref=ks(0,c,u),f.return=l,f)}return s(l);case v:e:{for(b=u.key;null!==c;){if(c.key===b){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(c=i(c,u.children||[])).return=l,l=c;break e}n(l,c);break}t(l,c),c=c.sibling}(c=lc(u,l.mode,f)).return=l,l=c}return s(l);case C:return a(l,c,(b=u._init)(u._payload),f)}if(L(u)){for(var y=l,w=c,x=u,k=f,S=null,O=null,E=w,T=w=0,P=null;null!==E&&T<x.length;T++){E.index>T?(P=E,E=null):P=E.sibling;var N=d(y,E,x[T],k);if(null===N){null===E&&(E=P);break}e&&E&&null===N.alternate&&t(y,E),w=r(N,w,T),null===O?S=N:O.sibling=N,O=N,E=P}if(T===x.length)n(y,E);else if(null===E)for(;T<x.length;T++)null!==(E=h(y,x[T],k))&&(w=r(E,w,T),null===O?S=E:O.sibling=E,O=E);else{for(E=o(y,E);T<x.length;T++)null!==(P=p(E,y,T,x[T],k))&&(e&&null!==P.alternate&&E.delete(null===P.key?T:P.key),w=r(P,w,T),null===O?S=P:O.sibling=P,O=P);e&&E.forEach(function(e){return t(y,e)})}return gn&&us(y,T),S}if(Go(u)){var $=l,A=c,M=u,D=f,I=Go(M);if("function"!=typeof I)throw Error(jo(150));if(null==(M=I.call(M)))throw Error(jo(151));for(var R=I=null,H=A,F=A=0,V=null,j=M.next();null!==H&&!j.done;F++,j=M.next()){H.index>F?(V=H,H=null):V=H.sibling;var z=d($,H,j.value,D);if(null===z){null===H&&(H=V);break}e&&H&&null===z.alternate&&t($,H),A=r(z,A,F),null===R?I=z:R.sibling=z,R=z,H=V}if(j.done)n($,H);else if(null===H)for(;!j.done;F++,j=M.next())null!==(j=h($,j.value,D))&&(A=r(j,A,F),null===R?I=j:R.sibling=j,R=j);else{for(H=o($,H);!j.done;F++,j=M.next())null!==(j=p(H,$,F,j.value,D))&&(e&&null!==j.alternate&&H.delete(null===j.key?F:j.key),A=r(j,A,F),null===R?I=j:R.sibling=j,R=j);e&&H.forEach(function(e){return t($,e)})}return gn&&us($,F),I}Ss(0,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,(c=null!==c&&6===c.tag?(n(l,c.sibling),i(c,u)):(n(l,c),ac(u,l.mode,f))).return=l,s(l=c)):n(l,c)}}function Ts(){kn=xn=wn=null}function Ps(e){var t=yn.current;Jr(yn),e._currentValue=t}function Cs(e,t,n){for(;null!==e;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==o&&(o.childLanes|=t)):null!==o&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ns(e,t){(kn=xn=null)!==(e=(wn=e).dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Xn=!0),e.firstContext=null)}function $s(e){var t=e._currentValue;if(kn!==e)if(e={context:e,memoizedValue:t,next:null},null===xn){if(null===wn)throw Error(jo(308));xn=e,wn.dependencies={lanes:0,firstContext:e}}else xn=xn.next=e;return t}function As(e){null===Sn?Sn=[e]:Sn.push(e)}function Ms(e,t,n,o){var i=t.interleaved;return null===i?(n.next=n,As(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ls(e,o)}function Ls(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),e=(n=e).return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),e=(n=e).return;return 3===n.tag?n.stateNode:null}function Ds(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Is(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hs(e,t,n){var o,i=e.updateQueue;return null===i?null:(i=i.shared,2&po?(null===(o=i.pending)?t.next=t:(t.next=o.next,o.next=t),i.pending=t):(null===(o=i.interleaved)?(t.next=t,As(i)):(t.next=o.next,o.next=t),i.interleaved=t),Ls(e,n))}function Fs(e,t,n){var o;null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)&&(o=t.lanes,o&=e.pendingLanes,Fi(e,t.lanes=n|=o))}function Vs(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var i=null,r=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null}}while(null===r?i=r=s:r=r.next=s,null!==(n=n.next));null===r?i=r=t:r=r.next=t}else i=r=t;n={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:o.shared,effects:o.effects},e.updateQueue=n}else null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function js(e,t,n,o){var i,r,s=e.updateQueue,a=(On=!1,s.firstBaseUpdate),l=s.lastBaseUpdate;if(null!==(h=s.shared.pending)&&(s.shared.pending=null,r=(i=h).next,(i.next=null)===l?a=r:l.next=r,l=i,null!==(u=e.alternate))&&(h=(u=u.updateQueue).lastBaseUpdate)!==l&&(null===h?u.firstBaseUpdate=r:h.next=r,u.lastBaseUpdate=i),null!==a){for(var c=s.baseState,u=(l=0,r=i=null),h=a;;){var d=h.lane,p=h.eventTime;if((o&d)===d){null!==u&&(u=u.next={eventTime:p,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var f=e,g=h;d=t,p=n;switch(g.tag){case 1:if("function"==typeof(f=g.payload)){c=f.call(p,c,d);break e}c=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=g.payload)?f.call(p,c,d):f))break e;c=A({},c,d);break e;case 2:On=!0}}null!==h.callback&&0!==h.lane&&(e.flags|=64,null===(d=s.effects)?s.effects=[h]:d.push(h))}else p={eventTime:p,lane:d,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===u?(r=u=p,i=c):u=u.next=p,l|=d;if(null===(h=h.next)){if(null===(h=s.shared.pending))break;h=(d=h).next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}if(null===u&&(i=c),s.baseState=i,s.firstBaseUpdate=r,s.lastBaseUpdate=u,null!==(t=s.shared.interleaved))for(s=t;l|=s.lane,(s=s.next)!==t;);else null===a&&(s.shared.lanes=0);wo|=l,e.lanes=l,e.memoizedState=c}}function zs(e,t,n){if(e=t.effects,(t.effects=null)!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=n,"function"!=typeof i)throw Error(jo(191,i));i.call(o)}}}function Us(e){if(e===En)throw Error(jo(174));return e}function Bs(e,t){switch(es(Cn,t),es(Pn,e),es(Tn,En),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fi(null,"");break;default:t=fi(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Jr(Tn),es(Tn,t)}function Ys(){Jr(Tn),Jr(Pn),Jr(Cn)}function Ws(e){Us(Cn.current);var t=Us(Tn.current),n=fi(t,e.type);t!==n&&(es(Pn,e),es(Tn,n))}function Gs(e){Pn.current===e&&(Jr(Tn),Jr(Pn))}function qs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t=(t.child.return=t).child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Xs(){for(var e=0;e<$n.length;e++)$n[e]._workInProgressVersionPrimary=null;$n.length=0}function Qs(){throw Error(jo(321))}function Zs(e,t){if(null!==t){for(var n=0;n<t.length&&n<e.length;n++)if(!ft(e[n],t[n]))return;return 1}}function Ks(e,t,n,o,i,r){if(Ln=r,(Dn=t).memoizedState=null,t.updateQueue=null,t.lanes=0,An.current=null===e||null===e.memoizedState?Un:Bn,e=n(o,i),Fn){r=0;do{if(Fn=!1,Vn=0,25<=r)throw Error(jo(301))}while(r+=1,Rn=In=null,t.updateQueue=null,An.current=Yn,e=n(o,i),Fn)}if(An.current=zn,t=null!==In&&null!==In.next,Ln=0,Rn=In=Dn=null,Hn=!1,t)throw Error(jo(300));return e}function Js(){var e=0!==Vn;return Vn=0,e}function ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Rn?Dn.memoizedState=Rn=e:Rn=Rn.next=e,Rn}function ta(){e=null===In?null!==(e=Dn.alternate)?e.memoizedState:null:In.next;var e,t=null===Rn?Dn.memoizedState:Rn.next;if(null!==t)Rn=t,In=e;else{if(null===e)throw Error(jo(310));e={memoizedState:(In=e).memoizedState,baseState:In.baseState,baseQueue:In.baseQueue,queue:In.queue,next:null},null===Rn?Dn.memoizedState=Rn=e:Rn=Rn.next=e}return Rn}function na(e,t){return"function"==typeof t?t(e):t}function oa(e){var t=ta(),n=t.queue;if(null===n)throw Error(jo(311));n.lastRenderedReducer=e;var o,i=(s=In).baseQueue;if(null!==(r=n.pending)&&(null!==i&&(o=i.next,i.next=r.next,r.next=o),s.baseQueue=i=r,n.pending=null),null!==i){var r=i.next,s=s.baseState,a=o=null,l=null,c=r;do{var u,h=c.lane}while((Ln&h)===h?(null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),s=c.hasEagerState?c.eagerState:e(s,c.action)):(u={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===l?(a=l=u,o=s):l=l.next=u,Dn.lanes|=h,wo|=h),null!==(c=c.next)&&c!==r);null===l?o=s:l.next=a,ft(s,t.memoizedState)||(Xn=!0),t.memoizedState=s,t.baseState=o,t.baseQueue=l,n.lastRenderedState=s}if(null!==(e=n.interleaved))for(i=e;r=i.lane,Dn.lanes|=r,wo|=r,(i=i.next)!==e;);else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ia(e){var t=ta(),n=t.queue;if(null===n)throw Error(jo(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,r=t.memoizedState;if(null!==i){n.pending=null;for(var s=i=i.next;r=e(r,s.action),(s=s.next)!==i;);ft(r,t.memoizedState)||(Xn=!0),t.memoizedState=r,null===t.baseQueue&&(t.baseState=r),n.lastRenderedState=r}return[r,o]}function ra(){}function sa(e,t){var n=Dn,o=ta(),i=t(),r=!ft(o.memoizedState,i);if(r&&(o.memoizedState=i,Xn=!0),o=o.queue,_a(ca.bind(null,n,o,e),[e]),o.getSnapshot!==t||r||null!==Rn&&1&Rn.memoizedState.tag){if(n.flags|=2048,pa(9,la.bind(null,n,o,i,t),void 0,null),null===fo)throw Error(jo(349));!(30&Ln)&&aa(n,t,i)}return i}function aa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Dn.updateQueue)?(Dn.updateQueue=t={lastEffect:null,stores:null}).stores=[e]:null===(n=t.stores)?t.stores=[e]:n.push(e)}function la(e,t,n,o){t.value=n,t.getSnapshot=o,ua(t)&&ha(e)}function ca(e,t,n){return n(function(){ua(t)&&ha(e)})}function ua(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ft(e,n)}catch(e){return 1}}function ha(e){var t=Ls(e,1);null!==t&&$l(t,e,1,-1)}function da(e){var t=ea();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(t.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:e}).dispatch=function(e,t,n){var o=Nl(e),i={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pa(e))Ca(t,i);else{var r=e.alternate;if(0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{var s,a=t.lastRenderedState,l=r(a,n);if(i.hasEagerState=!0,i.eagerState=l,ft(l,a))return null===(s=t.interleaved)?(i.next=i,As(t)):(i.next=s.next,s.next=i),void(t.interleaved=i)}catch(e){}null!==(n=Ms(e,t,i,o))&&($l(n,e,o,i=Cl()),Na(n,t,o))}}.bind(null,Dn,e),[t.memoizedState,e]}function pa(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=Dn.updateQueue)?(Dn.updateQueue=t={lastEffect:null,stores:null}).lastEffect=e.next=e:null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,(n.next=e).next=o,t.lastEffect=e),e}function fa(){return ta().memoizedState}function ga(e,t,n,o){var i=ea();Dn.flags|=e,i.memoizedState=pa(1|t,n,void 0,void 0===o?null:o)}function ma(e,t,n,o){var i=ta(),r=void(o=void 0===o?null:o);if(null!==In){var s=In.memoizedState;r=s.destroy;if(null!==o&&Zs(o,s.deps))return void(i.memoizedState=pa(t,n,r,o))}Dn.flags|=e,i.memoizedState=pa(1|t,n,r,o)}function va(e,t){return ga(8390656,8,e,t)}function _a(e,t){return ma(2048,8,e,t)}function ba(e,t){return ma(4,2,e,t)}function ya(e,t){return ma(4,4,e,t)}function wa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xa(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,4,wa.bind(null,t,e),n)}function ka(){}function Sa(e,t){var n=ta(),o=(t=void 0===t?null:t,n.memoizedState);return null!==o&&null!==t&&Zs(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=ta(),o=(t=void 0===t?null:t,n.memoizedState);return null!==o&&null!==t&&Zs(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Ea(e,t,n){return 21&Ln?(ft(n,t)||(n=Ii(),Dn.lanes|=n,wo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Xn=!0),e.memoizedState=n)}function Ta(){return ta().memoizedState}function Pa(e){var t=e.alternate;return e===Dn||null!==t&&t===Dn}function Ca(e,t){Fn=Hn=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Na(e,t,n){var o;4194240&n&&(o=t.lanes,o&=e.pendingLanes,Fi(e,t.lanes=n|=o))}function $a(e,t){if(e&&e.defaultProps)for(var n in t=A({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function Aa(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}function Ma(e,t,n,o,i,r,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,r,s):!(t.prototype&&t.prototype.isPureReactComponent&&yr(n,o)&&yr(i,r))}function La(e,t,n){var o=!1,i=Qt,r=t.contextType;t=new t(n,r="object"==typeof r&&null!==r?$s(r):(i=ns(t)?Jt:Zt.current,(o=null!=(o=t.contextTypes))?ts(e,i):Qt)),e.memoizedState=null!=t.state?t.state:null,t.updater=Wn,(e.stateNode=t)._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=r)}function Da(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Wn.enqueueReplaceState(t,t.state,null)}function Ia(e,t,n,o){var i=e.stateNode,r=(i.props=n,i.state=e.memoizedState,i.refs={},Ds(e),t.contextType);"object"==typeof r&&null!==r?i.context=$s(r):(r=ns(t)?Jt:Zt.current,i.context=ts(e,r)),i.state=e.memoizedState,"function"==typeof(r=t.getDerivedStateFromProps)&&(Aa(e,0,r,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Wn.enqueueReplaceState(i,i.state,null),js(e,n,i,o),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Ra(e,t){try{for(var n="",o=t;n+=(e=>{switch(e.tag){case 5:return qo(e.type);case 16:return qo("Lazy");case 13:return qo("Suspense");case 19:return qo("SuspenseList");case 0:case 2:case 15:return Xo(e.type,!1);case 11:return Xo(e.type.render,!1);case 1:return Xo(e.type,!0);default:return""}})(o),o=o.return;);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ha(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Fa(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function Va(e,t,n){(n=Rs(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Co||(Co=!0,No=o),Fa(0,t)},n}function ja(e,t,n){(n=Rs(-1,n)).tag=3;var o,i=e.type.getDerivedStateFromError;return null!==(e=("function"==typeof i&&(o=t.value,n.payload=function(){return i(o)},n.callback=function(){Fa(0,t)}),e.stateNode))&&"function"==typeof e.componentDidCatch&&(n.callback=function(){Fa(0,t),"function"!=typeof i&&(null===$o?$o=new Set([this]):$o.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function za(e,t,n){var o,i=e.pingCache;null===i?(i=e.pingCache=new Gn,o=new Set,i.set(t,o)):void 0===(o=i.get(t))&&(o=new Set,i.set(t,o)),o.has(n)||(o.add(n),e=function(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=Cl(),e.pingedLanes|=e.suspendedLanes&n,fo===e&&(mo&n)===n&&(4===bo||3===bo&&(130023424&mo)===mo&&ce()-Eo<500?jl(e,0):ko|=n),Al(e,t)}.bind(null,e,t,n),t.then(e,e))}function Ua(e){do{var t;if(t=(t=13===e.tag)?null===(t=e.memoizedState)||null!==t.dehydrated:t)return e}while(null!==(e=e.return));return null}function Ba(e,t,n,o,i){if(!(1&e.mode))return e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Rs(-1,1)).tag=2,Hs(n,t,1))),n.lanes|=1);e.flags|=65536,e.lanes=i}function Ya(e,t,n,o){t.child=null===e?bn(t,null,n,o):_n(t,e.child,n,o)}function Wa(e,t,n,o,i){n=n.render;var r=t.ref;return Ns(t,i),o=Ks(e,t,n,o,r,i),n=Js(),null===e||Xn?(gn&&n&&ds(t),t.flags|=1,Ya(e,t,o,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ul(e,t,i))}function Ga(e,t,n,o,i){var r;if(null===e)return"function"!=typeof(r=n.type)||nc(r)||void 0!==r.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ic(n.type,null,o,t,t.mode,i)).ref=t.ref,(e.return=t).child=e):(t.tag=15,t.type=r,qa(e,t,r,o,i));if(r=e.child,0==(e.lanes&i)){var s=r.memoizedProps;if((n=null!==(n=n.compare)?n:yr)(s,o)&&e.ref===t.ref)return ul(e,t,i)}return t.flags|=1,(e=oc(r,o)).ref=t.ref,(e.return=t).child=e}function qa(e,t,n,o,i){if(null!==e){var r=e.memoizedProps;if(yr(r,o)&&e.ref===t.ref){if(Xn=!1,t.pendingProps=o=r,0==(e.lanes&i))return t.lanes=e.lanes,ul(e,t,i);131072&e.flags&&(Xn=!0)}}return Za(e,t,n,o,i)}function Xa(e,t,n){var o=t.pendingProps,i=o.children,r=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==r?r.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,es(_o,vo),vo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==r?r.baseLanes:n,es(_o,vo),vo|=o}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},es(_o,vo),vo|=n;else null!==r?(o=r.baseLanes|n,t.memoizedState=null):o=n,es(_o,vo),vo|=o;return Ya(e,t,i,n),t.child}function Qa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Za(e,t,n,o,i){var r=ts(t,ns(n)?Jt:Zt.current);return Ns(t,i),n=Ks(e,t,n,o,r,i),o=Js(),null===e||Xn?(gn&&o&&ds(t),t.flags|=1,Ya(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ul(e,t,i))}function Ka(e,t,n,o,i){var r,s,a,l,c,u,h,d,p,f;return ns(n)?(r=!0,ss(t)):r=!1,Ns(t,i),o=null===t.stateNode?(cl(e,t),La(t,n,o),Ia(t,n,o,i),!0):null===e?((s=t.stateNode).props=a=t.memoizedProps,d=s.context,l="object"==typeof(l=n.contextType)&&null!==l?$s(l):ts(t,l=ns(n)?Jt:Zt.current),(u="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||a===o&&d===l||Da(0,s,o,l),On=!1,s.state=h=t.memoizedState,js(t,o,s,i),d=t.memoizedState,a!==o||h!==d||Kt.current||On?("function"==typeof c&&(Aa(t,0,c,o),d=t.memoizedState),(a=On||Ma(t,n,a,o,h,d,l))?(u||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=d),s.props=o,s.state=d,s.context=l,a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),!1)):(s=t.stateNode,Is(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:$a(t.type,a),s.props=l,u=t.pendingProps,h=s.context,d="object"==typeof(d=n.contextType)&&null!==d?$s(d):ts(t,d=ns(n)?Jt:Zt.current),(c="function"==typeof(p=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||a===u&&h===d||Da(0,s,o,d),On=!1,s.state=h=t.memoizedState,js(t,o,s,i),f=t.memoizedState,a!==u||h!==f||Kt.current||On?("function"==typeof p&&(Aa(t,0,p,o),f=t.memoizedState),(l=On||Ma(t,n,l,o,h,f,d)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(o,f,d),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,f,d)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),s.props=o,s.state=f,s.context=d,l):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),!1)),Ja(e,t,n,o,r,i)}function Ja(e,t,n,o,i,r){Qa(e,t);var s=!!(128&t.flags);if(!o&&!s)return i&&as(t,n,!1),ul(e,t,r);o=t.stateNode,qn.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&s?(t.child=_n(t,e.child,null,r),t.child=_n(t,null,a,r)):Ya(e,t,a,r),t.memoizedState=o.state,i&&as(t,n,!0),t.child}function el(e){var t=e.stateNode;t.pendingContext?is(0,t.pendingContext,t.pendingContext!==t.context):t.context&&is(0,t.context,!1),Bs(e,t.containerInfo)}function tl(e,t,n,o,i){return ws(),xs(i),t.flags|=256,Ya(e,t,n,o),t.child}function nl(e){return{baseLanes:e,cachePool:null,transitions:null}}function ol(e,t,n){var o,i,r=t.pendingProps,s=Nn.current,a=!1,l=!!(128&t.flags);if((i=(i=l)||(null===e||null!==e.memoizedState)&&!!(2&s))?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),es(Nn,1&s),null===e)return vs(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,a?(r=t.mode,a=t.child,l={mode:"hidden",children:l},1&r||null===a?a=sc(l,r,0,null):(a.childLanes=0,a.pendingProps=l),e=rc(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=nl(n),t.memoizedState=Qn,e):il(t,l));if(null===(s=e.memoizedState)||null===(i=s.dehydrated))return a?(a=r.fallback,l=t.mode,i=(s=e.child).sibling,c={mode:"hidden",children:r.children},1&l||t.child===s?(r=oc(s,c)).subtreeFlags=14680064&s.subtreeFlags:((r=t.child).childLanes=0,r.pendingProps=c,t.deletions=null),null!==i?a=oc(i,a):(a=rc(a,l,n,null)).flags|=2,a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,l=null===(l=e.child.memoizedState)?nl(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},(a=t.child).memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Qn):(e=(a=e.child).sibling,r=oc(a,{mode:"visible",children:r.children}),!(1&t.mode)&&(r.lanes=n),r.return=t,(r.sibling=null)!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null),r;var c=e,u=(a=t,e=r,i);t=s,r=n;if(l)return 256&a.flags?(a.flags&=-257,rl(c,a,r,e=Ha(Error(jo(422))))):null!==a.memoizedState?(a.child=c.child,a.flags|=128,null):(t=e.fallback,u=a.mode,e=sc({mode:"visible",children:e.children},u,0,null),(t=rc(t,u,r,null)).flags|=2,e.return=a,t.return=a,e.sibling=t,a.child=e,!!(1&a.mode)&&_n(a,c.child,null,r),a.child.memoizedState=nl(r),a.memoizedState=Qn,t);if(!(1&a.mode))return rl(c,a,r,null);if("$!"===u.data)return e=o=(e=u.nextSibling&&u.nextSibling.dataset)?e.dgst:o,rl(c,a,r,e=Ha(t=Error(jo(419)),e,void 0));if(o=0!=(r&c.childLanes),Xn||o){if(null!==(e=fo)){switch(r&-r){case 4:u=2;break;case 16:u=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:u=32;break;case 536870912:u=268435456;break;default:u=0}0!==(u=0!=(u&(e.suspendedLanes|r))?0:u)&&u!==t.retryLane&&(t.retryLane=u,Ls(c,u),$l(e,c,u,-1))}return Bl(),rl(c,a,r,e=Ha(Error(jo(421))))}return"$?"===u.data?(a.flags|=128,a.child=c.child,a=function(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Kl(e,n)}.bind(null,c),u._reactRetry=a,null):(c=t.treeContext,fn=Wr(u.nextSibling),pn=a,gn=!0,(mn=null)!==c&&(ln[cn++]=hn,ln[cn++]=dn,ln[cn++]=un,hn=c.id,dn=c.overflow,un=a),(a=il(a,e.children)).flags|=4096,a)}function il(e,t){return((t=sc({mode:"visible",children:t},e.mode,0,null)).return=e).child=t}function rl(e,t,n,o){return null!==o&&xs(o),_n(t,e.child,null,n),(e=il(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function sl(e,t,n){e.lanes|=t;var o=e.alternate;null!==o&&(o.lanes|=t),Cs(e.return,t,n)}function al(e,t,n,o,i){var r=e.memoizedState;null===r?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=o,r.tail=n,r.tailMode=i)}function ll(e,t,n){var o=t.pendingProps,i=o.revealOrder,r=o.tail;if(Ya(e,t,o.children,n),2&(o=Nn.current))o=1&o|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&sl(e,n,t);else if(19===e.tag)sl(e,n,t);else if(null!==e.child){e=(e.child.return=e).child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(es(Nn,o),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===qs(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),al(t,!1,i,n,r);break;case"backwards":for(i=t.child,t.child=n=null;null!==i;){if(null!==(e=i.alternate)&&null===qs(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}al(t,!0,n,null,r);break;case"together":al(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function cl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ul(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),wo|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(jo(153));if(null!==t.child){for(n=oc(e=t.child,e.pendingProps),(t.child=n).return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function hl(e,t){if(!gn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function dl(e){var t=0,n=0;if(null!==e.alternate&&e.alternate.child===e.child)for(var o=e.child;null!==o;)t|=o.lanes|o.childLanes,n=(n|=14680064&o.subtreeFlags)|14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)t|=o.lanes|o.childLanes,n=(n|=o.subtreeFlags)|o.flags,o.return=e,o=o.sibling;e.subtreeFlags|=n,e.childLanes=t}function pl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Zl(e,t,n)}else n.current=null}function fl(e,t,n){try{n()}catch(n){Zl(e,t,n)}}function gl(e,t,n){var o=t.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var i,r=o=o.next;do{}while((r.tag&e)===e&&(i=r.destroy,(r.destroy=void 0)!==i)&&fl(t,n,i),(r=r.next)!==o)}}function ml(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n,o=t=t.next;do{}while((o.tag&e)===e&&(n=o.create,o.destroy=n()),(o=o.next)!==t)}}function vl(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function _l(e){return 5===e.tag||3===e.tag||4===e.tag}function bl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||_l(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e=(e.child.return=e).child}if(!(2&e.flags))return e.stateNode}}function yl(e,t,n){for(n=n.child;null!==n;)wl(e,t,n),n=n.sibling}function wl(e,t,n){if(ve&&"function"==typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(me,n)}catch(e){}switch(n.tag){case 5:no||pl(n,t);case 6:var o=so,i=ao;so=null,yl(e,t,n),ao=i,null!==(so=o)&&(ao?(e=so,n=n.stateNode,(8===e.nodeType?e.parentNode:e).removeChild(n)):so.removeChild(n.stateNode));break;case 18:null!==so&&(ao?(e=so,n=n.stateNode,8===e.nodeType?Yr(e.parentNode,n):1===e.nodeType&&Yr(e,n),qi(e)):Yr(so,n.stateNode));break;case 4:o=so,i=ao,so=n.stateNode.containerInfo,ao=!0,yl(e,t,n),so=o,ao=i;break;case 0:case 11:case 14:case 15:if(!no&&null!==(o=n.updateQueue)&&null!==(o=o.lastEffect)){i=o=o.next;do{var r=i.destroy,s=i.tag}while(void 0===r||!(2&s)&&!(4&s)||fl(n,t,r),(i=i.next)!==o)}yl(e,t,n);break;case 1:if(!no&&(pl(n,t),"function"==typeof(o=n.stateNode).componentWillUnmount))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(e){Zl(n,t,e)}yl(e,t,n);break;case 21:yl(e,t,n);break;case 22:1&n.mode?(no=(o=no)||null!==n.memoizedState,yl(e,t,n),no=o):yl(e,t,n);break;default:yl(e,t,n)}}function xl(e){var t,n=e.updateQueue;null!==n&&((e.updateQueue=null)===(t=e.stateNode)&&(t=e.stateNode=new oo),n.forEach(function(n){var o=function(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(jo(314))}null!==o&&o.delete(t),Kl(e,n)}.bind(null,e,n);t.has(n)||(t.add(n),n.then(o,o))}))}function kl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o];try{var r=e,s=t,a=s;e:for(;null!==a;){switch(a.tag){case 5:so=a.stateNode,ao=!1;break e;case 3:case 4:so=a.stateNode.containerInfo,ao=!0;break e}a=a.return}if(null===so)throw Error(jo(160));wl(r,s,i),so=null,ao=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){Zl(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Sl(t,e),t=t.sibling}function Sl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kl(t,e),Ol(e),4&o){try{gl(3,e,e.return),ml(3,e)}catch(t){Zl(e,e.return,t)}try{gl(5,e,e.return)}catch(t){Zl(e,e.return,t)}}break;case 1:kl(t,e),Ol(e),512&o&&null!==n&&pl(n,n.return);break;case 5:if(kl(t,e),Ol(e),512&o&&null!==n&&pl(n,n.return),32&e.flags){var i=e.stateNode;try{gi(i,"")}catch(t){Zl(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var r=e.memoizedProps,s=null!==n?n.memoizedProps:r,a=e.type,l=e.updateQueue;if((e.updateQueue=null)!==l)try{"input"===a&&"radio"===r.type&&null!=r.name&&ii(i,r),bi(a,s);var c=bi(a,r);for(s=0;s<l.length;s+=2){var u=l[s],h=l[s+1];"style"===u?vi(i,h):"dangerouslySetInnerHTML"===u?D(i,h):"children"===u?gi(i,h):Wo(i,u,h,c)}switch(a){case"input":ri(i,r);break;case"textarea":hi(i,r);break;case"select":var d=i._wrapperState.wasMultiple,p=(i._wrapperState.wasMultiple=!!r.multiple,r.value);null!=p?li(i,!!r.multiple,p,!1):d!==!!r.multiple&&(null!=r.defaultValue?li(i,!!r.multiple,r.defaultValue,!0):li(i,!!r.multiple,r.multiple?[]:"",!1))}i[Ut]=r}catch(t){Zl(e,e.return,t)}}break;case 6:if(kl(t,e),Ol(e),4&o){if(null===e.stateNode)throw Error(jo(162));i=e.stateNode,r=e.memoizedProps;try{i.nodeValue=r}catch(t){Zl(e,e.return,t)}}break;case 3:if(kl(t,e),Ol(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{qi(t.containerInfo)}catch(t){Zl(e,e.return,t)}break;case 4:default:kl(t,e),Ol(e);break;case 13:kl(t,e),Ol(e),8192&(i=e.child).flags&&(r=null!==i.memoizedState,!(i.stateNode.isHidden=r)||null!==i.alternate&&null!==i.alternate.memoizedState||(Eo=ce())),4&o&&xl(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(no=(c=no)||u,kl(t,e),no=c):kl(t,e),Ol(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(u=(io=e).child;null!==u;){for(h=io=u;null!==io;){switch(p=(d=io).child,d.tag){case 0:case 11:case 14:case 15:gl(4,d,d.return);break;case 1:pl(d,d.return);var f=d.stateNode;if("function"==typeof f.componentWillUnmount){n=(o=d).return;try{t=o,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(t){Zl(o,n,t)}}break;case 5:pl(d,d.return);break;case 22:if(null!==d.memoizedState){Tl(h);continue}}null!==p?(p.return=d,io=p):Tl(h)}u=u.sibling}e:for(u=null,h=e;;){if(5===h.tag){if(null===u){u=h;try{i=h.stateNode,c?"function"==typeof(r=i.style).setProperty?r.setProperty("display","none","important"):r.display="none":(a=h.stateNode,s=null!=(l=h.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,a.style.display=mi("display",s))}catch(t){Zl(e,e.return,t)}}}else if(6===h.tag){if(null===u)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){Zl(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h=(h.child.return=h).child;continue}if(h===e)break;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:kl(t,e),Ol(e),4&o&&xl(e);case 21:}}function Ol(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(_l(n)){var o=n;break e}n=n.return}throw Error(jo(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(gi(i,""),o.flags&=-33),function e(t,n,o){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?o.insertBefore(t,n):o.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,bl(e),i);break;case 3:case 4:var r=o.stateNode.containerInfo;!function e(t,n,o){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?(8===o.nodeType?o.parentNode:o).insertBefore(t,n):(8===o.nodeType?(n=o.parentNode).insertBefore(t,o):(n=o).appendChild(t),null==(o=o._reactRootContainer)&&null===n.onclick&&(n.onclick=zr));else if(4!==i&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,bl(e),r);break;default:throw Error(jo(161))}}catch(t){Zl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function El(e){for(;null!==io;){var t=io;if(8772&t.flags){var n,o,i,r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:no||ml(5,t);break;case 1:var s,a=t.stateNode,l=(4&t.flags&&!no&&(null===r?a.componentDidMount():(s=t.elementType===t.type?r.memoizedProps:$a(t.type,r.memoizedProps),a.componentDidUpdate(s,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate))),t.updateQueue);null!==l&&zs(0,l,a);break;case 3:var c=t.updateQueue;if(null!==c){if((r=null)!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}zs(0,c,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&r.focus();break;case"img":h.src&&(r.src=h.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:null===t.memoizedState&&null!==(n=t.alternate)&&null!==(o=n.memoizedState)&&null!==(i=o.dehydrated)&&qi(i);break;default:throw Error(jo(163))}no||512&t.flags&&vl(t)}catch(e){Zl(t,t.return,e)}}if(t===e){io=null;break}if(null!==(r=t.sibling)){r.return=t.return,io=r;break}io=t.return}}function Tl(e){for(;null!==io;){var t=io;if(t===e){io=null;break}var n=t.sibling;if(null!==n){n.return=t.return,io=n;break}io=t.return}}function Pl(e){for(;null!==io;){var t=io;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ml(4,t)}catch(e){Zl(t,n,e)}break;case 1:var o=t.stateNode;if("function"==typeof o.componentDidMount){var i=t.return;try{o.componentDidMount()}catch(e){Zl(t,i,e)}}var r=t.return;try{vl(t)}catch(e){Zl(t,r,e)}break;case 5:var s=t.return;try{vl(t)}catch(e){Zl(t,s,e)}}}catch(e){Zl(t,t.return,e)}if(t===e){io=null;break}var a=t.sibling;if(null!==a){a.return=t.return,io=a;break}io=t.return}}function Cl(){return 6&po?ce():-1!==Ro?Ro:Ro=ce()}function Nl(e){return 1&e.mode?2&po&&0!==mo?mo&-mo:null!==vn.transition?Ho=0===Ho?Ii():Ho:0===(e=ke)?void 0===(e=window.event)?16:Ji(e.type):e:1}function $l(e,t,n,o){if(50<Do)throw Do=0,Io=null,Error(jo(185));Hi(e,n,o),2&po&&e===fo||(e===fo&&(!(2&po)&&(xo|=n),4===bo)&&Il(e,mo),Al(e,o),1===n&&0===po&&!(1&t.mode)&&(To=ce()+500,tn)&&cs())}function Al(e,t){var n,o=e.callbackNode,i=(function(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes;0<r;){var s=31-_e(r),a=1<<s,l=i[s];-1===l?0!=(a&n)&&0==(a&o)||(i[s]=((e,t)=>{switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}})(a,t)):l<=t&&(e.expiredLanes|=a),r&=~a}}(e,t),Li(e,e===fo?mo:0));if(0===i)null!==o&&se(o),e.callbackNode=null,e.callbackPriority=0;else if(e.callbackPriority!==(t=i&-i)){if(null!=o&&se(o),1===t)0===e.tag?(n=Rl.bind(null,e),tn=!0,ls(n)):ls(Rl.bind(null,e)),jt(function(){!(6&po)&&cs()}),o=null;else{switch(Vi(i)){case 1:o=he;break;case 4:o=de;break;case 16:default:o=pe;break;case 536870912:o=ge}o=Jl(o,Ml.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function Ml(e,t){if(Ro=-1,(Ho=0)!=(6&po))throw Error(jo(327));var n=e.callbackNode;if(Xl()&&e.callbackNode!==n)return null;var o=Li(e,e===fo?mo:0);if(0===o)return null;if(30&o||0!=(o&e.expiredLanes)||t)t=Yl(e,o);else{t=o;var i=po,r=(po|=2,Ul());for(fo===e&&mo===t||(Po=null,To=ce()+500,jl(e,t));;)try{for(;null!==go&&!ae();)Wl(go);break}catch(t){zl(e,t)}Ts(),co.current=r,po=i,t=null!==go?0:(fo=null,mo=0,bo)}if(0!==t){if(1===(t=2===t&&0!==(i=Di(e))?Ll(e,o=i):t))throw n=yo,jl(e,0),Il(e,o),Al(e,ce()),n;if(6===t)Il(e,o);else{if(i=e.current.alternate,!(30&o||(e=>{for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var o=0;o<n.length;o++){var i=n[o],r=i.getSnapshot;i=i.value;try{if(!ft(r(),i))return}catch(e){return}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return 1;t=t.return}t.sibling.return=t.return,t=t.sibling}}return 1})(i)||1!==(t=2===(t=Yl(e,o))&&0!==(r=Di(e))?Ll(e,o=r):t)))throw n=yo,jl(e,0),Il(e,o),Al(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(jo(345));case 2:case 5:ql(e,Oo,Po);break;case 3:if(Il(e,o),(130023424&o)===o&&10<(t=Eo+500-ce())){if(0!==Li(e,0))break;if(((i=e.suspendedLanes)&o)!==o){Cl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ht(ql.bind(null,e,Oo,Po),t)}else ql(e,Oo,Po);break;case 4:if(Il(e,o),(4194240&o)!==o){for(t=e.eventTimes,i=-1;0<o;){var s=31-_e(o);r=1<<s;i<(s=t[s])&&(i=s),o&=~r}o=i,10<(o=((o=ce()-o)<120?120:o<480?480:o<1080?1080:o<1920?1920:o<3e3?3e3:o<4320?4320:1960*lo(o/1960))-o)?e.timeoutHandle=Ht(ql.bind(null,e,Oo,Po),o):ql(e,Oo,Po)}break;default:throw Error(jo(329))}}}return Al(e,ce()),e.callbackNode===n?Ml.bind(null,e):null}function Ll(e,t){var n=So;return e.current.memoizedState.isDehydrated&&(jl(e,t).flags|=256),2!==(e=Yl(e,t))&&(t=Oo,Oo=n,null!==t)&&Dl(t),e}function Dl(e){null===Oo?Oo=e:Oo.push.apply(Oo,e)}function Il(e,t){for(t=t&~ko&~xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_e(t),o=1<<n;e[n]=-1,t&=~o}}function Rl(e){if(6&po)throw Error(jo(327));Xl();var t=Li(e,0);if(1&t){var n,o=Yl(e,t);if(1===(o=0!==e.tag&&2===o&&0!==(n=Di(e))?Ll(e,t=n):o))throw o=yo,jl(e,0),Il(e,t),Al(e,ce()),o;if(6===o)throw Error(jo(345));e.finishedWork=e.current.alternate,e.finishedLanes=t,ql(e,Oo,Po)}return Al(e,ce()),null}function Hl(e,t){var n=po;po|=1;try{return e(t)}finally{0===(po=n)&&(To=ce()+500,tn)&&cs()}}function Fl(e){null!==Mo&&0===Mo.tag&&!(6&po)&&Xl();var t=po,n=(po|=1,ho.transition),o=ke;try{if(ho.transition=null,ke=1,e)return e()}finally{ke=o,ho.transition=n,!(6&(po=t))&&cs()}}function Vl(){vo=_o.current,Jr(_o)}function jl(e,t){e.finishedWork=null,e.finishedLanes=0;var n,o,i,r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Ft(r)),null!==go)for(r=go.return;null!==r;){var s=r;switch(ps(s),s.tag){case 1:null!=(s=s.type.childContextTypes)&&os();break;case 3:Ys(),Jr(Kt),Jr(Zt),Xs();break;case 5:Gs(s);break;case 4:Ys();break;case 13:case 19:Jr(Nn);break;case 10:Ps(s.type._context);break;case 22:case 23:Vl()}r=r.return}if(go=e=oc((fo=e).current,null),mo=vo=t,ko=xo=wo=bo=0,(Oo=So=yo=null)!==Sn){for(t=0;t<Sn.length;t++)null!==(s=(r=Sn[t]).interleaved)&&(r.interleaved=null,n=s.next,null!==(o=r.pending)&&(i=o.next,o.next=n,s.next=i),r.pending=s);Sn=null}return e}function zl(e,t){for(;;){var n=go;try{if(Ts(),An.current=zn,Hn){for(var o=Dn.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}Hn=!1}if(Rn=In=Dn=null,Fn=!1,Vn=Ln=0,(uo.current=null)===n||null===n.return){bo=1,yo=t,go=null;break}e:{var r=e,s=n.return,a=t;if(t=mo,(m=n).flags|=32768,null!==a&&"object"==typeof a&&"function"==typeof a.then){var l,c=a,u=m,h=u.tag,d=(!!(1&u.mode)||0!==h&&11!==h&&15!==h||((l=u.alternate)?(u.updateQueue=l.updateQueue,u.memoizedState=l.memoizedState,u.lanes=l.lanes):(u.updateQueue=null,u.memoizedState=null)),Ua(s));if(null!==d){d.flags&=-257,Ba(d,s,m,0,t),1&d.mode&&za(r,c,t);a=c;var p,f=(t=d).updateQueue;null===f?((p=new Set).add(a),t.updateQueue=p):f.add(a);break e}if(!(1&t)){za(r,c,t),Bl();break e}a=Error(jo(426))}else if(gn&&1&m.mode){var g=Ua(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),Ba(g,s,m,0,t),xs(Ra(a,m));break e}}r=a=Ra(a,m),4!==bo&&(bo=2),null===So?So=[r]:So.push(r),r=s;do{switch(r.tag){case 3:r.flags|=65536,t&=-t,r.lanes|=t,Vs(r,Va(0,a,t));break e;case 1:var m=a,v=r.type,_=r.stateNode;if(!(128&r.flags||"function"!=typeof v.getDerivedStateFromError&&(null===_||"function"!=typeof _.componentDidCatch||null!==$o&&$o.has(_)))){r.flags|=65536,t&=-t,r.lanes|=t,Vs(r,ja(r,m,t));break e}}}while(null!==(r=r.return))}Gl(n)}catch(e){t=e,go===n&&null!==n&&(go=n.return);continue}break}}function Ul(){var e=co.current;return co.current=zn,null===e?zn:e}function Bl(){0!==bo&&3!==bo&&2!==bo||(bo=4),null===fo||!(268435455&wo)&&!(268435455&xo)||Il(fo,mo)}function Yl(e,t){var n=po,o=(po|=2,Ul());for(fo===e&&mo===t||(Po=null,jl(e,t));;)try{for(;null!==go;)Wl(go);break}catch(t){zl(e,t)}if(Ts(),po=n,co.current=o,null!==go)throw Error(jo(261));return fo=null,mo=0,bo}function Wl(e){var t=Fo(e.alternate,e,vo);e.memoizedProps=e.pendingProps,null===t?Gl(e):go=t,uo.current=null}function Gl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=((e,t)=>{switch(ps(t),t.tag){case 1:return ns(t.type)&&os(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ys(),Jr(Kt),Jr(Zt),Xs(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Gs(t),null;case 13:if(Jr(Nn),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(jo(340));ws()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Jr(Nn),null;case 4:return Ys(),null;case 10:return Ps(t.type._context),null;case 22:case 23:return Vl(),null;default:return null}})(n,t)))return n.flags&=32767,void(go=n);if(null===e)return bo=6,void(go=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=((e,t,n)=>{var o=t.pendingProps;switch(ps(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dl(t),null;case 1:case 17:return ns(t.type)&&os(),dl(t),null;case 3:return o=t.stateNode,Ys(),Jr(Kt),Jr(Zt),Xs(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(bs(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==mn&&(Dl(mn),mn=null))),Kn(e,t),dl(t),null;case 5:Gs(t);var i,r=Us(Cn.current);if(n=t.type,null!==e&&null!=t.stateNode)Jn(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(jo(166));return dl(t),null}if(e=Us(Tn.current),bs(t)){o=t.stateNode,n=t.type;var a,l,c=t.memoizedProps;switch(o[zt]=t,o[Ut]=c,e=!!(1&t.mode),n){case"dialog":$r("cancel",o),$r("close",o);break;case"iframe":case"object":case"embed":$r("load",o);break;case"video":case"audio":for(r=0;r<$t.length;r++)$r($t[r],o);break;case"source":$r("error",o);break;case"img":case"image":case"link":$r("error",o),$r("load",o);break;case"details":$r("toggle",o);break;case"input":oi(o,c),$r("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},$r("invalid",o);break;case"textarea":ui(o,c),$r("invalid",o)}for(a in _i(n,c),r=null,c)c.hasOwnProperty(a)&&(l=c[a],"children"===a?"string"==typeof l?o.textContent!==l&&(!0!==c.suppressHydrationWarning&&jr(o.textContent,l,e),r=["children",l]):"number"==typeof l&&o.textContent!==""+l&&(!0!==c.suppressHydrationWarning&&jr(o.textContent,l,e),r=["children",""+l]):s.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&$r("scroll",o));switch(n){case"input":Jo(o),si(o,c,!0);break;case"textarea":Jo(o),di(o);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(o.onclick=zr)}o=r,null!==(t.updateQueue=o)&&(t.flags|=4)}else{a=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===(e="http://www.w3.org/1999/xhtml"===e?pi(n):e)?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=a.createElement(n,{is:o.is}):(e=a.createElement(n),"select"===n&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,n),e[zt]=t,e[Ut]=o,Zn(e,t,!1,!1),t.stateNode=e;e:{switch(a=bi(n,o),n){case"dialog":$r("cancel",e),$r("close",e),r=o;break;case"iframe":case"object":case"embed":$r("load",e),r=o;break;case"video":case"audio":for(r=0;r<$t.length;r++)$r($t[r],e);r=o;break;case"source":$r("error",e),r=o;break;case"img":case"image":case"link":$r("error",e),$r("load",e),r=o;break;case"details":$r("toggle",e),r=o;break;case"input":oi(e,o),r=ni(e,o),$r("invalid",e);break;case"option":default:r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=A({},o,{value:void 0}),$r("invalid",e);break;case"textarea":ui(e,o),r=ci(e,o),$r("invalid",e)}for(c in _i(n,r),l=r)l.hasOwnProperty(c)&&(i=l[c],"style"===c?vi(e,i):"dangerouslySetInnerHTML"===c?null!=(i=i?i.__html:void 0)&&D(e,i):"children"===c?"string"==typeof i?"textarea"===n&&""===i||gi(e,i):"number"==typeof i&&gi(e,""+i):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?null!=i&&"onScroll"===c&&$r("scroll",e):null!=i&&Wo(e,c,i,a)));switch(n){case"input":Jo(e),si(e,o,!1);break;case"textarea":Jo(e),di(e);break;case"option":null!=o.value&&e.setAttribute("value",""+Zo(o.value));break;case"select":e.multiple=!!o.multiple,null!=(c=o.value)?li(e,!!o.multiple,c,!1):null!=o.defaultValue&&li(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof r.onClick&&(e.onclick=zr)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return dl(t),null;case 6:if(e&&null!=t.stateNode)eo(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(jo(166));if(n=Us(Cn.current),Us(Tn.current),bs(t)){if(o=t.stateNode,n=t.memoizedProps,o[zt]=t,(c=o.nodeValue!==n)&&null!==(e=pn))switch(e.tag){case 3:jr(o.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&jr(o.nodeValue,n,!!(1&e.mode))}c&&(t.flags|=4)}else((o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[zt]=t).stateNode=o}return dl(t),null;case 13:if(Jr(Nn),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(gn&&null!==fn&&1&t.mode&&!(128&t.flags))ys(),ws(),t.flags|=98560,c=!1;else if(c=bs(t),null!==o&&null!==o.dehydrated){if(null===e){if(!c)throw Error(jo(318));if(!(c=null!==(c=t.memoizedState)?c.dehydrated:null))throw Error(jo(317));c[zt]=t}else ws(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;dl(t),c=!1}else null!==mn&&(Dl(mn),mn=null),c=!0;if(!c)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((o=null!==o)!=(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,!!(1&t.mode))&&(null===e||1&Nn.current?0===bo&&(bo=3):Bl()),null!==t.updateQueue&&(t.flags|=4),dl(t),null);case 4:return Ys(),Kn(e,t),null===e&&Mr(t.stateNode.containerInfo),dl(t),null;case 10:return Ps(t.type._context),dl(t),null;case 19:if(Jr(Nn),null===(c=t.memoizedState));else{if(o=!!(128&t.flags),null===(a=c.rendering))if(o)hl(c,!1);else{if(0!==bo||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=qs(e))){for(t.flags|=128,hl(c,!1),null!==(o=a.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;null!==n;)e=o,(c=n).flags&=14680066,null===(a=c.alternate)?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,c.type=a.type,e=a.dependencies,c.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return es(Nn,1&Nn.current|2),t.child}e=e.sibling}null!==c.tail&&ce()>To&&(t.flags|=128,hl(c,!(o=!0)),t.lanes=4194304)}else{if(!o)if(null!==(e=qs(a))){if(t.flags|=128,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),hl(c,!0),null===c.tail&&"hidden"===c.tailMode&&!a.alternate&&!gn)return dl(t),null}else 2*ce()-c.renderingStartTime>To&&1073741824!==n&&(t.flags|=128,hl(c,!(o=!0)),t.lanes=4194304);c.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=c.last)?n.sibling=a:t.child=a,c.last=a)}if(null!==c.tail)return t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=ce(),t.sibling=null,n=Nn.current,es(Nn,o?1&n|2:1&n),t}return dl(t),null;case 22:case 23:return Vl(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&vo)&&(dl(t),6&t.subtreeFlags)&&(t.flags|=8192):dl(t),null;case 24:case 25:return null}throw Error(jo(156,t.tag))})(n,t,vo)))return void(go=n);if(null!==(t=t.sibling))return void(go=t)}while(go=t=e,null!==t);0===bo&&(bo=5)}function ql(e,t,n){var o=ke,i=ho.transition;try{ho.transition=null,ke=1;for(var r=e,s=t,a=n,l=o;Xl(),null!==Mo;);if(6&po)throw Error(jo(327));a=r.finishedWork;var c=r.finishedLanes;if(null!==a){if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(jo(177));r.callbackNode=null,r.callbackPriority=0;var u,h,d=a.lanes|a.childLanes;if(((e,t)=>{var n=e.pendingLanes&~t,o=(e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements,e.eventTimes);for(e=e.expirationTimes;0<n;){var i=31-_e(n),r=1<<i;t[i]=0,o[i]=-1,e[i]=-1,n&=~r}})(r,d),r===fo&&(go=fo=null,mo=0),!(2064&a.subtreeFlags)&&!(2064&a.flags)||Ao||(Ao=!0,Jl(pe,function(){return Xl(),null})),d=!!(15990&a.flags),15990&a.subtreeFlags||d?(d=ho.transition,ho.transition=null,u=ke,ke=1,h=po,po|=4,uo.current=null,((e,t)=>{if(It=Le,Sr(e=kr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:if((r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection())&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode,r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var s,a=0,l=-1,c=-1,u=0,h=0,d=e,p=null;t:for(;;){for(;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(c=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(s=d.firstChild);)p=d,d=s;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++h===r&&(c=a),null!==(s=d.nextSibling))break;p=(d=p).parentNode}d=s}n=-1===l||-1===c?null:{start:l,end:c}}else n=null;n=n||{start:0,end:0}}else n=null;for(Le=!(Rt={focusedElem:e,selectionRange:n}),io=t;null!==io;)if(e=(t=io).child,1028&t.subtreeFlags&&null!==e)e.return=t,io=e;else for(;null!==io;){t=io;try{var f,g,m,v,_=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:null!==_&&(f=_.memoizedProps,g=_.memoizedState,v=(m=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?f:$a(t.type,f),g),m.__reactInternalSnapshotBeforeUpdate=v);break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(jo(163))}}catch(e){Zl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,io=e;break}io=t.return}_=ro,ro=!1})(r,a),Sl(a,r),function(e){var t,n,o,i=kr(),r=e.focusedElem,s=e.selectionRange;if(i!==r&&r&&r.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(r.ownerDocument.documentElement,r)){null!==s&&Sr(r)&&(i=s.start,void 0===(e=s.end)&&(e=i),"selectionStart"in r?(r.selectionStart=i,r.selectionEnd=Math.min(e,r.value.length)):(e=(i=r.ownerDocument||document)&&i.defaultView||window).getSelection&&(e=e.getSelection(),n=r.textContent.length,t=Math.min(s.start,n),s=void 0===s.end?t:Math.min(s.end,n),!e.extend&&s<t&&(n=s,s=t,t=n),n=xr(r,t),o=xr(r,s),n)&&o&&(1!==e.rangeCount||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((i=i.createRange()).setStart(n.node,n.offset),e.removeAllRanges(),s<t?(e.addRange(i),e.extend(o.node,o.offset)):(i.setEnd(o.node,o.offset),e.addRange(i)))),i=[];for(e=r;e=e.parentNode;)1===e.nodeType&&i.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<i.length;r++)(e=i[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(Rt),Le=!!It,Rt=It=null,function(e){!function e(t,n,o){for(var i=!!(1&t.mode);null!==io;){var r=io,s=r.child;if(22===r.tag&&i){var a=null!==r.memoizedState||to;if(!a){var l=r.alternate,c=null!==l&&null!==l.memoizedState||no,u=(l=to,no);if(to=a,(no=c)&&!u)for(io=r;null!==io;)c=(a=io).child,22===a.tag&&null!==a.memoizedState||null===c?Pl(r):(c.return=a,io=c);for(;null!==s;)e(io=s),s=s.sibling;io=r,to=l,no=u}El(t)}else 8772&r.subtreeFlags&&null!==s?(s.return=r,io=s):El(t)}}(io=e)}(r.current=a),le(),po=h,ke=u,ho.transition=d):r.current=a,Ao&&(Ao=!1,Mo=r,Lo=c),0===(d=r.pendingLanes)&&($o=null),(e=>{if(ve&&"function"==typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(me,e,void 0,!(128&~e.current.flags))}catch(e){}})(a.stateNode),Al(r,ce()),null!==s)for(l=r.onRecoverableError,a=0;a<s.length;a++)l((c=s[a]).value,{componentStack:c.stack,digest:c.digest});if(Co)throw Co=!1,r=No,No=null,r;!!(1&Lo)&&0!==r.tag&&Xl(),1&(d=r.pendingLanes)?r===Io?Do++:(Do=0,Io=r):Do=0,cs()}}finally{ho.transition=i,ke=o}return null}function Xl(){if(null!==Mo){var e=Vi(Lo),t=ho.transition,n=ke;try{if(ho.transition=null,ke=e<16?16:e,null===Mo)var o=!1;else{if(e=Mo,Mo=null,(Lo=0)!=(6&po))throw Error(jo(331));var i=po;for(po|=4,io=e.current;null!==io;){var r=io,s=r.child;if(16&io.flags){var a=r.deletions;if(null!==a){for(var l=0;l<a.length;l++){var c=a[l];for(io=c;null!==io;){switch((h=io).tag){case 0:case 11:case 15:gl(8,h,r)}var u=h.child;if(null!==u)u.return=h,io=u;else for(;null!==io;){var h,d=(h=io).sibling,p=h.return;if(function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&(delete n[zt],delete n[Ut],delete n[Yt],delete n[Wt],delete n[Gt]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(h),h===c){io=null;break}if(null!==d){d.return=p,io=d;break}io=p}}}var f=r.alternate;if(null!==f){var g=f.child;if(null!==g){f.child=null;do{var m=g.sibling}while((g.sibling=null)!==(g=m))}}io=r}}if(2064&r.subtreeFlags&&null!==s)s.return=r,io=s;else for(;null!==io;){if(2048&(r=io).flags)switch(r.tag){case 0:case 11:case 15:gl(9,r,r.return)}var v=r.sibling;if(null!==v){v.return=r.return,io=v;break}io=r.return}}var _=e.current;for(io=_;null!==io;){var b=(s=io).child;if(2064&s.subtreeFlags&&null!==b)b.return=s,io=b;else for(s=_;null!==io;){if(2048&(a=io).flags)try{switch(a.tag){case 0:case 11:case 15:ml(9,a)}}catch(e){Zl(a,a.return,e)}if(a===s){io=null;break}var y=a.sibling;if(null!==y){y.return=a.return,io=y;break}io=a.return}}if(po=i,cs(),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(me,e)}catch(e){}o=!0}return o}finally{ke=n,ho.transition=t}}}function Ql(e,t,n){e=Hs(e,t=Va(0,t=Ra(n,t),1),1),t=Cl(),null!==e&&(Hi(e,1,t),Al(e,t))}function Zl(e,t,n){if(3===e.tag)Ql(e,e,n);else for(;null!==t;){if(3===t.tag){Ql(t,e,n);break}if(1===t.tag){var o=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===$o||!$o.has(o))){t=Hs(t,e=ja(t,e=Ra(n,e),1),1),e=Cl(),null!==t&&(Hi(t,1,e),Al(t,e));break}}t=t.return}}function Kl(e,t){0===t&&(1&e.mode?(t=xe,!(130023424&(xe<<=1))&&(xe=4194304)):t=1);var n=Cl();null!==(e=Ls(e,t))&&(Hi(e,t,n),Al(e,n))}function Jl(e,t){return re(e,t)}function ec(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tc(e,t,n,o){return new ec(e,t,n,o)}function nc(e){return(e=e.prototype)&&e.isReactComponent}function oc(e,t){var n=e.alternate;return null===n?((n=tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,(n.alternate=e).alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ic(e,t,n,o,i,r){var s=2;if("function"==typeof(o=e))nc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return rc(n.children,i,r,t);case y:i|=s=8;break;case w:return(e=tc(12,n,t,2|i)).elementType=w,e.lanes=r,e;case E:return(e=tc(13,n,t,i)).elementType=E,e.lanes=r,e;case T:return(e=tc(19,n,t,i)).elementType=T,e.lanes=r,e;case N:return sc(n,i,r,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case S:s=9;break e;case O:s=11;break e;case P:s=14;break e;case C:s=16,o=null;break e}throw Error(jo(130,null==e?e:typeof e,""))}return(t=tc(s,n,t,i)).elementType=e,t.type=o,t.lanes=r,t}function rc(e,t,n,o){return(e=tc(7,e,o,t)).lanes=n,e}function sc(e,t,n,o){return(e=tc(22,e,o,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function ac(e,t,n){return(e=tc(6,e,null,t)).lanes=n,e}function lc(e,t,n){return(t=tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cc(e,t,n,o,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ri(0),this.expirationTimes=Ri(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ri(0),this.identifierPrefix=o,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uc(e,t,n,o,i,r,s,a,l){return e=new cc(e,t,0,a,l),1===t?(t=1,!0===r&&(t|=8)):t=0,r=tc(3,null,null,t),(e.current=r).stateNode=e,r.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ds(r),e}function hc(e){if(!e)return Qt;e:{if(Ci(e=e._reactInternals)!==e||1!==e.tag)throw Error(jo(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ns(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}}while(null!==(t=t.return));throw Error(jo(171))}if(1===e.tag){var n=e.type;if(ns(n))return rs(e,n,t)}return t}function dc(e,t,n,o,i,r,s,a,l){return(e=uc(n,o,!0,e,0,r,0,a,l)).context=hc(null),n=e.current,(r=Rs(o=Cl(),i=Nl(n))).callback=null!=t?t:null,Hs(n,r,i),e.current.lanes=i,Hi(e,i,o),Al(e,o),e}function pc(e,t,n,o){var i=t.current,r=Cl(),s=Nl(i);n=hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Rs(r,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),null!==(e=Hs(i,t,s))&&($l(e,i,s,r),Fs(e,i,s))}function fc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function gc(e,t){var n;null!==(e=e.memoizedState)&&null!==e.dehydrated&&(n=e.retryLane,e.retryLane=0!==n&&n<t?n:t)}function mc(e,t){gc(e,t),(e=e.alternate)&&gc(e,t)}function vc(e){this._internalRoot=e}function _c(e){this._internalRoot=e}function bc(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeType)}function yc(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeType||8===e.nodeType&&" react-mount-point-unstable "===e.nodeValue)}function wc(){}function xc(e,t,n,o,i){var r,s,a=n._reactRootContainer;return a?("function"==typeof i&&(s=i,i=function(){var e=fc(r);s.call(e)}),pc(t,r=a,e,i)):r=((e,t,n,o,i)=>{var r,s,a;if(i)return"function"==typeof o&&(r=o,o=function(){var e=fc(s);r.call(e)}),s=dc(t,o,e,0,null,!1,0,"",wc),e._reactRootContainer=s,e[Bt]=s.current,Mr(8===e.nodeType?e.parentNode:e),Fl(),s;for(;i=e.lastChild;)e.removeChild(i);"function"==typeof o&&(a=o,o=function(){var e=fc(l);a.call(e)});var l=uc(e,0,!1,null,0,!1,0,"",wc);return e._reactRootContainer=l,e[Bt]=l.current,Mr(8===e.nodeType?e.parentNode:e),Fl(function(){pc(t,l,n,o)}),l})(n,t,e,i,o),fc(r)}}var S,O,E,T,P,C,N,$,A,M,L,D,I,R,H,F,V,j,z,U,B,Y,W,G,q,X,Q,Z,K,J,ee,te,ne,oe,ie,re=(m||(m=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),_.exports=k()),_.exports),se=d(),ae=n(se);let le=ae.createContext({tour:void 0});function ce(e,t,n,o){return new(n=n||Promise)(function(i,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((o=o.apply(e,t||[])).next())})}let ue={MOVING:"MOVING",SOUND:"SOUND",INFO:"INFO",POPUP:"POPUP",PHOTO:"PHOTO",VIDEO:"VIDEO",ITEM_INFO:"ITEM_INFO",POLYGON:"POLYGON",LENSFLARE:"LENSFLARE",NADIR_LOGO:"NADIR_LOGO",PROMOTION:"PROMOTION",GALLERY:"GALLERY",TEXTURE:"TEXTURE"},he={SPACE_AND_SCENE:"SPACE_AND_SCENE",FEATURES:"FEATURES",PRODUCT_LIST:"PRODUCT_LIST",INFORMATION:"INFORMATION",BRAND:"BRAND",LOCATION:"LOCATION",FACILITY:"FACILITY",MULTIMEDIA:"MULTIMEDIA",SWAP_ELEMENT:"SWAP_ELEMENT",PROMOTION:"PROMOTION"},de="gyro2",pe="radar",fe="sound",ge=((St=S=S||{}).DEFAULT="DEFAULT",St.SIMPLE_CROSS_BLENDING="SIMPLE_CROSS_BLENDING",St.ZOOM_BLEND="ZOOM_BLEND",St.BLACK_OUT="BLACK_OUT",St.WHITE_FLASH="WHITE_FLASH",St.RIGHT_TO_LEFT="RIGHT_TO_LEFT",St.TOP_TO_BOTTOM="TOP_TO_BOTTOM",St.DIAGONAL="DIAGONAL",St.CIRCLE_OPEN="CIRCLE_OPEN",St.VERTICAL_OPEN="VERTICAL_OPEN",St.HORIZONTAL_OPEN="HORIZONTAL_OPEN",{FAST:.7,NORMAL:1,SLOW:1.5,SLOWEST:2}),me={FASTEST:.5,FAST:.7,NORMAL:1,SLOW:1.5,SLOWEST:2},ve={[S.DEFAULT]:ge.SLOW,[S.SIMPLE_CROSS_BLENDING]:ge.NORMAL,[S.ZOOM_BLEND]:ge.SLOWEST,[S.BLACK_OUT]:ge.SLOWEST,[S.WHITE_FLASH]:ge.NORMAL,[S.RIGHT_TO_LEFT]:ge.NORMAL,[S.TOP_TO_BOTTOM]:ge.NORMAL,[S.DIAGONAL]:ge.NORMAL,[S.CIRCLE_OPEN]:ge.NORMAL,[S.VERTICAL_OPEN]:ge.FAST,[S.HORIZONTAL_OPEN]:ge.NORMAL},_e={[S.DEFAULT]:"OPENBLEND({level}, 0.0, 0.6, 1.0, easeOutQuad)",[S.SIMPLE_CROSS_BLENDING]:"BLEND({level}, easeInCubic)",[S.ZOOM_BLEND]:"ZOOMBLEND({level}, 2.0, easeInOutSine)",[S.BLACK_OUT]:"COLORBLEND({level}, 0x000000, easeOutSine)",[S.WHITE_FLASH]:"LIGHTBLEND({level}, 0xFFFFFF, 2.0, linear)",[S.RIGHT_TO_LEFT]:"SLIDEBLEND({level}, 0.0, 0.2, linear)",[S.TOP_TO_BOTTOM]:"SLIDEBLEND({level}, 90.0, 0.01, linear)",[S.DIAGONAL]:"SLIDEBLEND({level}, 135.0, 0.4, linear)",[S.CIRCLE_OPEN]:"OPENBLEND({level}, 0.0, 0.2, 0.0, linear)",[S.VERTICAL_OPEN]:"OPENBLEND({level}, 1.0, 0.1, 0.0, linear)",[S.HORIZONTAL_OPEN]:"OPENBLEND({level}, -1.0, 0.3, 0.0, linear)"},be=((e=>{e[e.SSML_VOICE_GENDER_UNSPECIFIED=0]="SSML_VOICE_GENDER_UNSPECIFIED",e[e.MALE=1]="MALE",e[e.FEMALE=2]="FEMALE",e[e.NEUTRAL=3]="NEUTRAL",e[e.UNRECOGNIZED=4]="UNRECOGNIZED"})(O=O||{}),{MOVE_SCENE:"MOVE_SCENE",LOOK_AT:"LOOK_AT",ROTATE:"ROTATE",PLAY_SOUND:"PLAY_SOUND",SLEEP:"SLEEP",OPEN_FUNCTION_BUTTON:"OPEN_FUNCTION_BUTTON",SWITCH_SCENE:"SWITCH_SCENE",OPEN_MINIMAP:"OPEN_MINIMAP"}),ye=((e=>{e.AGT="AGT",e.SCENE="SPACE_AND_SCENE",e.PROMOTION="PROMOTION",e.FEATURES="FEATURES",e.PRODUCT_LIST="PRODUCT_LIST",e.INFORMATION="INFORMATION",e.BRAND="BRAND",e.LOCATION="LOCATION",e.FACILITY="FACILITY",e.MULTIMEDIA="MULTIMEDIA",e.SWAP_ELEMENT="SWAP_ELEMENT",e.DETAIL="DETAIL",e.TEMP="TEMP"})(E=E||{}),(e=>{e.EN="en",e.VI="vi",e.JP="jp"})(T=T||{}),"https://cdn3.clik.vn/clikvirtualtour"),we={GYRO2:ye+"/common/plugins/gyro2.js",SOUND_INTERFACE:ye+"/common/plugins/soundinterface.js?v2",RADAR:ye+"/common/plugins/radar.js",VIDEO_PLAYER:ye+"/common/plugins/videoplayer.js"},xe="/common/configs/flare-config.json",ke={MOVING:ye+"/common/media/vtourskin.png",INFO:ye+"/common/media/tag.png",POPUP:ye+"/common/media/vtourskin.png",PHOTO:ye+"/common/media/gallery.png",VIDEO:ye+"/common/media/hotspot_video_icon.png",PIN:ye+"/common/media/vtourskin.png",SOUND_PLAY:ye+"/common/media/play-solid.png",SOUND_PAUSE:ye+"/common/media/stop-solid.png",BACKGROUND:ye+"/common/media/bgshadow.png",PROMOTION:ye+"/common/media/promotion_lg.png",GALLERY:ye+"/common/media/gallery.png",TEXTURE:ye+"/common/media/vtourskin.png",FOCUSING_IMAGE_STRIP:ye+"/common/media/audio_shake.png",NAVIGATION_ARROW:ye+"/common/media/navigation.svg",NAVIGATION_HIGHLIGHT:ye+"/common/media/navigation-highlight.svg"},Se="NONE",Oe="LOCK_VIEW",Ee="NADIR_LOGO",Te="SNEAK_PEEK",Pe="LABEL",Ce="SNEAK_PEEK_AND_LABEL",Ne="NONE",$e="TOGGLE_UI",Ae="MOVE_TO_SCENE",Me="LABEL",Le="POPUP",De={NORTH:"NORTH",SOUTH:"SOUTH",EAST:"EAST",WEST:"WEST",NORTH_EAST:"NORTH_EAST",NORTH_WEST:"NORTH_WEST",SOUTH_EAST:"SOUTH_EAST",SOUTH_WEST:"SOUTH_WEST"},Ie=1,Re=((e=>{e[e.MIN=0]="MIN",e[e.BASE=1]="BASE",e[e.STANDARD=2]="STANDARD",e[e.FOCUSING_AREA=3]="FOCUSING_AREA",e[e.HOVERING_AREA=4]="HOVERING_AREA",e[e.HOVERING=5]="HOVERING",e[e.MAX=1e3]="MAX"})(P=P||{}),{NONE:"NONE",BOTTOM_LEFT_CORNER:"BOTTOM_LEFT_CORNER"}),He="NONE",Fe="RIGHT",Ve="TOP",je="BOTTOM",ze="LEFT",Ue="SMALL",Be="MEDIUM",Ye="LARGE",We={[Ue]:80,[Be]:160,[Ye]:240},Ge=[0,32,112,192],qe=32,Xe=8,Qe={NONE:{x:0,y:0},HORIZONTAL:{x:206,y:0},DYNAMIC_VERTICAL:e=>({x:0,y:e/2})},Ze="CLASSIC",Ke="NAMEPLATE",Je="NONE",et="PRODUCT",tt="BRAND",nt="LOCATION",ot="FACILITY",it="PRODUCT",rt="BRAND",st="LOCATION",at="ECOMMERCE_PRODUCT",lt="FACILITY",ct="NONE",ut="LABEL",ht=[ue.ITEM_INFO,ue.PROMOTION,ue.TEXTURE,ue.GALLERY],dt=[et,tt,nt,ot],pt="VIDEO",ft=((e=>{e.SQUARE_METER="㎡",e.CUBIC_METER="㎥",e.KILOGRAM="kg",e.CENTIMETER="cm",e.GRAM="g",e.LITER="Lít"})(C=C||{}),(e=>{e.IFRAME="IFRAME",e.NEW_TAB="NEW_TAB"})(N=N||{}),e=>{var t,n=Object.assign({},e);let o="";for(t in n){var i=n[t];i&&(""!=o&&(o+="&"),o+="view."+t+"="+i)}return o}),gt=e=>Math.round(e/1e3%1*1e3),mt=e=>ce(void 0,void 0,void 0,function*(){let{host:t,path:n,method:o="GET",params:i}=e,r=function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}(e,["host","path","method","params"]),s=new URL(""+t+n);return i&&Object.keys(i).forEach(e=>i[e]&&s.searchParams.append(e,i[e])),fetch(s,Object.assign({method:o},r))}),vt=se.createContext(void 0),_t=({children:e,config:t})=>{let[n,o]=se.useState(Object.assign({},t));return se.useEffect(()=>{var e;if(!t.apiHost)throw new Error("apiHost is required");let n=t.elementId;t.elementId||(n="virtual-tour-"+(null==(e=t.overrideConfigs)?void 0:e.tourCode)),o(Object.assign(Object.assign({},t),{elementId:n}))},[t]),v.jsx(vt.Provider,{value:n,children:e})},bt=()=>{var e=ae.useContext(vt);if(void 0===e)throw new Error("useConfiguration must be used within a ConfigurationProvider");return e},yt=se.createContext(void 0),wt=({children:e})=>{var[t,n]=se.useState(!1),[o,i]=se.useState(!0),[r,s]=se.useState(!0),[a,l]=se.useState(!1),[c,u]=se.useState(!1),[h,d]=se.useState(!1),[p,f]=se.useState(!1),[g,m]=se.useState(!1),[_,b]=se.useState(!1),[y,w]=se.useState(!1),[x,k]=se.useState(!1),[S,O]=se.useState(!1),[E,,]=se.useState(!1),[T,P]=se.useState(!1),[C,N]=se.useState(!1),[$,A]=se.useState(!1),[M,L]=se.useState(void 0),[D,I]=se.useState(void 0),[R,,]=se.useState(0),[H,F]=se.useState(null),[V,j]=se.useState(null),[z,U]=se.useState([]),[B,Y]=se.useState(null),[W,G]=se.useState(null),[q,X]=se.useState(null);let[Q,Z]=se.useState({});var[K,J]=se.useState(null),[ee,te]=se.useState(null),[ne,oe]=se.useState([]),[ie,re]=se.useState({});return v.jsx(yt.Provider,{value:{mobileDevice:t,canInitVisualizer:a,loading:o,loadingScene:r,soundReady:c,tourReady:h,tourSoundPlaying:p,backgroundSoundPlaying:g,showSplashScreen:_,activeScene:B,tourData:K,floorplans:ne,activeScenario:H,scenarioConfigCodes:z,metadata:ee,scenarios:ie,playingTempScenario:y,autoPlaying:x,playingHotspotSound:S,showSlideIn:E,activePoiCode:M,bottomSheetMiddleHeight:R,activeFloorplan:V,activePoi:W,focusingOnVisualizer:T,muted:C,activePoiCoords:q,plugin:Q,viewRotating:$,poiCodeNearestToCenter:D,setMobileDevice:n,setCanInitVisualizer:l,setLoading:i,setLoadingScene:s,setSoundReady:u,setTourReady:d,setTourSoundPlaying:f,setBackgroundSoundPlaying:m,setShowSplashScreen:b,setActiveScene:Y,setTourData:J,setFloorplans:oe,setActiveScenario:F,setScenarioConfigCodes:U,setMetadata:te,setScenarios:re,setPlayingTempScenario:w,setAutoPlaying:k,setPlayingHotspotSound:O,setActivePoiCode:L,setActiveFloorplan:j,setActivePoi:G,setFocusingOnVisualizer:P,setMuted:N,setActivePoiCoords:X,setActiveTourPlugin:e=>{var{pluginName:e,state:t}=e;e&&(e=Object.assign(Object.assign({},Q),{[e]:t}),Z(e))},setViewRotating:A,setPoiCodeNearestToCenter:I},children:e})},xt=()=>{var e=ae.useContext(yt);if(void 0===e)throw new Error("useTourState must be used within a TourStateProvider");return e},kt=()=>{let{apiHost:e,overrideConfigs:t={}}=bt(),{tourCode:n,language:o}=t,{scenarios:i,tourData:r,canInitVisualizer:s,setTourData:a,setScenarioConfigCodes:l,setMetadata:c,setActiveScenario:u,setScenarios:h,setFloorplans:d,setBackgroundSoundPlaying:p,setTourSoundPlaying:f,setCanInitVisualizer:g}=xt(),m=t=>ce(void 0,void 0,void 0,function*(){if(!n||!e)return null;var s=i[t];if(s&&!s.isSimplify)return s;try{var a=yield(e=>ce(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o,tourCodeOrAlias:i}=e;return yield(yield mt({host:t,path:`/v1/ext/tours/${i}/tour-scenarios/`+o,headers:{language:n}})).json()}))({apiHost:e,code:t,tourCodeOrAlias:n,language:o}),l=Object.assign(Object.assign({},r),{inSimplify:!1,steps:(a.steps||[]).sort((e,t)=>e&&t?(e.orderIndex||0)-(t.orderIndex||0):0).map(e=>e&&e.children&&e.children.length?Object.assign(Object.assign({},e),{children:(e.children||[]).sort((e,t)=>e&&t?(e.orderIndex||0)-(t.orderIndex||0):0)}):e)});return h(Object.assign(Object.assign({},i),{[t]:l})),l}catch(s){return console.error("getTourScenarioDetail",s),null}}),v=()=>ce(void 0,void 0,void 0,function*(){var t,i,r,s;if(n&&e)try{let c=yield(e=>ce(void 0,void 0,void 0,function*(){var t,{apiHost:t,language:n,code:o}=e;return(t=yield(yield mt({host:t,path:"/v1/ext/tours/"+o,headers:{language:n}})).json())&&t.scenes&&t.scenes.sort((e,t)=>gt(e.orderIndex||0)-gt(t.orderIndex||0)),t}))({apiHost:e,language:o,code:n});c&&(null!=(r=yield ce(void 0,void 0,void 0,function*(){var t,i;return n&&e&&null!=(t=yield(e=>ce(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o}=e;return yield(yield mt({host:t,path:"/v1/ext/tour-scenarios?tourCodeOrAlias="+o,headers:{language:n}})).json()}))({apiHost:e,language:o,code:n}))&&t.length?(i=t.reduce((e,t)=>(e[t.code||t.type]=Object.assign(Object.assign({},e),{isSimplify:!0}),e),{}),h(i),l(t.map(e=>e.code||e.type)),t):[]}))&&r.length&&c.tourScenario&&(i=r.find(e=>e.code===c.tourScenario.code))&&(c.tourScenario=i,t=c.tourScenario.code,ce(void 0,void 0,void 0,function*(){t||u(null);var e=yield m(t);return u(e),e})),s=!!c.bgSound&&!!c.bgSound.enable,c.bgSound&&(p(s),f(s)),(e=>ce(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o}=e;return yield(yield mt({host:t,path:`/v1/ext/tours/${o}/floorplans`,headers:{language:n}})).json()}))({apiHost:e,language:o,code:n}).then(e=>{d(e)})),a(c)}catch(i){console.error(i)}finally{setTimeout(()=>{g(!0)},500)}});se.useEffect(()=>{ce(void 0,void 0,void 0,function*(){try{var e=yield mt({host:ye,path:xe,headers:{"Content-Type":"application/json"}});return JSON.parse(yield e.text())||null}catch(e){return console.error(e),null}}).then(e=>{c(e)})},[]),se.useEffect(()=>{n&&e&&!s&&v()},[n,e,s])};var St;function Ot(){return A||(A=1,$=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}),$}function Et(){var e,n;return I||(I=1,n=function(){var e;return L||(L=1,e="object"==typeof t&&t&&t.Object===Object&&t,M=e),M}(),e="object"==typeof self&&self&&self.Object===Object&&self,n=n||e||Function("return this")(),D=n),D}function Tt(){var e,t;return z||(z=1,e=function(){var e;return V||(V=1,e=/\s/,F=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}),F}(),t=/^\s+/,j=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}),j}function Pt(){var e;return B||(B=1,e=Et().Symbol,U=e),U}function Ct(){var e,t,n,o;return Q||(Q=1,e=Pt(),t=function(){var e,t,n,o,i;return W||(W=1,e=Pt(),t=Object.prototype,n=t.hasOwnProperty,o=t.toString,i=e?e.toStringTag:void 0,Y=function(e){var t=n.call(e,i),r=e[i];try{var s=!(e[i]=void 0)}catch(e){}var a=o.call(e);return s&&(t?e[i]=r:delete e[i]),a}),Y}(),n=function(){var e;return q||(q=1,e=Object.prototype.toString,G=function(t){return e.call(t)}),G}(),o=e?e.toStringTag:void 0,X=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(o&&o in Object(e)?t:n)(e)}),X}function Nt(){var e,t;return ee||(ee=1,e=Ct(),K||(K=1,Z=function(e){return null!=e&&"object"==typeof e}),t=Z,J=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}),J}var $t,At,Mt,Lt,Dt,It,Rt,Ht,Ft,Vt,jt,zt,Ut,Bt=(ie||(ie=1,At=Ot(),Mt=function(){var e;return H||(H=1,e=Et(),R=function(){return e.Date.now()}),R}(),ne||(ne=1,Rt=Tt(),Ht=Ot(),Ft=Nt(),Vt=/^[-+]0x[0-9a-f]+$/i,jt=/^0b[01]+$/i,zt=/^0o[0-7]+$/i,Ut=parseInt,te=function(e){if("number"==typeof e)return e;if(Ft(e))return NaN;if(Ht(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=Ht(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=Rt(e);var t=jt.test(e);return t||zt.test(e)?Ut(e.slice(2),t?2:8):Vt.test(e)?NaN:+e}),Lt=te,Dt=Math.max,It=Math.min,oe=function(e,t,n){var o,i,r,s,a,l,c=0,u=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function f(e){var n=e-l;return void 0===l||t<=n||n<0||h&&r<=e-c}function g(){var e,n=Mt();if(f(n))return m(n);a=setTimeout(g,(e=t-(n-l),h?It(e,r-(n-c)):e))}function m(e){return a=void 0,d&&o?p(e):(o=i=void 0,s)}function v(){var e=Mt(),n=f(e);if(o=arguments,i=this,l=e,n){if(void 0===a)return c=e=l,a=setTimeout(g,t),u?p(e):s;if(h)return clearTimeout(a),a=setTimeout(g,t),p(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=Lt(t)||0,At(n)&&(u=!!n.leading,r=(h="maxWait"in n)?Dt(Lt(n.maxWait)||0,t):r,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==a&&clearTimeout(a),o=l=i=a=void(c=0)},v.flush=function(){return void 0===a?s:m(Mt())},v}),oe),Yt=n(Bt),Wt={exports:{}},Gt=Wt.exports;var qt,Xt=function(){var e,t,n;return $t||($t=1,e=Wt,t=Gt,r.prototype={VERSION:"1.0.0",memorize:!(o.prototype={active:!0,params:null,execute:function(e){var t;return this.active&&this._listener&&(e=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,e),this._isOnce)&&this.detach(),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}}),_shouldPropagate:!0,active:!0,_registerListener:function(e,t,n,i){var r,s=this._indexOfListener(e,n);if(-1!==s){if((r=this._bindings[s]).isOnce()!==t)throw new Error("You cannot add"+(t?"":"Once")+"() then add"+(t?"Once":"")+"() the same listener without removing the relationship first.")}else r=new o(this,e,t,n,i),this._addBinding(r);return this.memorize&&this._prevParams&&r.execute(this._prevParams),r},_addBinding:function(e){for(var t=this._bindings.length;this._bindings[--t]&&e._priority<=this._bindings[t]._priority;);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,o=this._bindings.length;o--;)if((n=this._bindings[o])._listener===e&&n.context===t)return o;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return i(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return i(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){return i(e,"remove"),-1!==(t=this._indexOfListener(e,t))&&(this._bindings[t]._destroy(),this._bindings.splice(t,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(e){if(this.active){var t,n=Array.prototype.slice.call(arguments),o=this._bindings.length;if(this.memorize&&(this._prevParams=n),o)for(t=this._bindings.slice(),this._shouldPropagate=!0;t[--o]&&this._shouldPropagate&&!1!==t[o].execute(n););}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}},(n=r).Signal=r,e.exports?e.exports=n:t.signals=n),Wt.exports;function o(e,t,n,o,i){this._listener=t,this._isOnce=n,this.context=o,this._signal=e,this._priority=i||0}function i(e,t){if("function"!=typeof e)throw new Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}function r(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){r.prototype.dispatch.apply(e,arguments)}}}();let Qt=360,Zt=e=>{if(e)return e},Kt=()=>{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})},Jt=e=>new Promise(t=>setTimeout(()=>{t()},e)),en=e=>{let t,n;var o=new Promise((o,i)=>{n=i,t=setTimeout(()=>{o()},e)});return o.abort=()=>{clearTimeout(t),n("aborted")},o},tn=e=>{let t;if(e.type===ue.ITEM_INFO){var n=e.props.itemInfo;switch(null==n?void 0:n.type){case at:t=he.PRODUCT_LIST;break;case it:t=null!=n.included?he.FEATURES:he.PRODUCT_LIST;break;case rt:t=he.BRAND;break;case st:t=he.LOCATION;break;case lt:t=he.FACILITY;break;default:t=""}}else switch(e.type){case ue.PROMOTION:t=he.PROMOTION;break;case ue.INFO:t=he.INFORMATION;break;case ue.GALLERY:t=he.MULTIMEDIA;break;case ue.TEXTURE:t=he.SWAP_ELEMENT;break;default:t=""}return t},nn=e=>1e3*e,on=e=>null!=e,rn=e=>e?e/1e3:0,sn=(e,t)=>(e=((e,t)=>{if(!e)return null;if(!e.responsive)return e;var{large:n,medium:o,small:i,thumbnail:r}=e.responsive;let s=1,a=(e.width&&e.height&&!t&&(s=e.width>e.height?e.height/e.width:e.width/e.height),0);return t?a=t:"object"==typeof window&&(a=window.innerWidth),1!==s&&(a/=s),0===a?null:1e3<a?e:1e3===Math.max(1e3,a)&&750===Math.min(750,a)?n||e:750===Math.max(750,a)&&500===Math.min(500,a)?o||e:500===Math.max(500,a)&&250===Math.min(250,a)?i||e:a<250?r||e:null})(e,t),e?e.url:null),an=((e=>{e.VFOV="VFOV",e.HFOV="HFOV",e.DFOV="DFOV",e.MFOV="MFOV",e.SFOV="SFOV"})(qt=qt||{}),e=>{let t=!1;var n,o;return e&&(n=e.get("device.mobile"),o=e.get("device.tablet"),e=e.get("device.touch"),t=n||o||e),t}),ln=e=>{var{url:t,theme:n,type:o,width:i,scale:r}=e,s=dn(e),i=i*r||void 0;let a;if(o===ue.PHOTO?(r=e.image)&&(a=sn(r,i)):o===ue.PROMOTION&&(r=e.promotion)&&(r=r.icon)&&(r.thumbnail||r.url)&&(a=sn(r,i)),!(a=!a&&s?s.imageStrip?s.file.url:sn(s.file,i):a)&&n&&n.poiIcons&&n.poiIcons.length){let t=o;o===ue.ITEM_INFO&&(r=e.itemInfo)&&(t=(o+"_"+r.type).toUpperCase()),s=n.poiIcons.find(e=>e.poiType===t),s&&s.icon&&(a=sn(s.icon.file,i))}return a?Zt(a):t?Zt(t):(e=>{switch(e.type){case ue.ITEM_INFO:return ke.PIN;case ue.INFO:return ke.INFO;case ue.MOVING:return ke.MOVING;case ue.POPUP:return ke.POPUP;case ue.SOUND:return ke.SOUND_PLAY;case ue.PROMOTION:return ke.PROMOTION;default:return ke.PIN}})(e)},cn=(e,t,n)=>ce(void 0,void 0,void 0,function*(){!e||t&&n||(yield new Promise(o=>{let i=new Image;i.onload=()=>{t=t||i.width,n=n||i.height,o()},i.onerror=()=>{o()},i.src=e}))}),un=e=>e+"_hover",hn=(e,t,n)=>{t=t.code,e.call(`tween(hotspot[${t}].alpha, ${n?0:1}, 0.2)`)},dn=e=>e.icon||(e=>{var t=e.theme,n=e.type;if(t&&t.poiIcons&&t.poiIcons.length){let o=n;if(n===ue.ITEM_INFO&&(e=e.itemInfo)&&(o=(n+"_"+e.type).toUpperCase()),n=t.poiIcons.find(e=>e.poiType===o),n&&n.icon)return n.icon}return null})(e),pn=e=>(null==e?void 0:e.position)!==He,fn=e=>{var t={fovtype:qt.MFOV,fov:90};return an(e)||(t.fovtype=qt.VFOV,t.fov=65),t},gn=e=>e*(Math.PI/180),mn=(e,t,n,o)=>{var i=gn(o-t);n=gn(n-e),e=Math.sin(i/2)*Math.sin(i/2)+Math.cos(gn(t))*Math.cos(gn(o))*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(e),Math.sqrt(1-e))*1e3},vn=(e,t,n,o)=>(e=_n(e-=n),n=_n(n=t-o),{h:Math.abs(e),v:Math.abs(n)}),_n=e=>{let t=e%360;return 180<t&&(t-=360),t<-180&&(t+=360),t},bn=(e,t)=>{var n=t.x-e.x,o=t.y-e.y;t=t.z-e.z;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2)+Math.pow(t,2))},yn=e=>e.get("device.mobile"),wn=(e,t)=>{var n,o,i,r;return t&&e?(({hlookat:n,vlookat:o}=e.getView()),({x:r,y:i}=e.spheretoscreen(n,o)),({x:e,y:r}=e.screentosphere(r+t.x,i+t.y)),{h:t.x&&_n(e-n),v:t.y&&_n(r-o)}):{h:0,v:0}},xn=(e,t)=>{var{ath:t,atv:n,position:o,popupSize:i="1",laserRange:r=Ie}=t,s={h:t,v:n,hfovExpand:0};if(0<r){var a=We[i]+Ge[r]+54||0;let l,c;switch(o){case Ve:l=0,c=-Math.round(a/2);break;case Fe:l=Math.round(a/2),c=0;break;case je:l=0,c=Math.round(a/2);break;case ze:l=-Math.round(a/2),c=0;break;default:l=0,c=0}i=wn(e,{x:l,y:c}),s.h=t+i.h,s.v=n+i.v}return s},kn=e=>{var t;return!!e&&(t=e.overviewPosition,(e=>!(!e||!ht.includes(e.type))&&(e.type!==ue.ITEM_INFO||(e=e.itemInfo,dt.includes(null==e?void 0:e.type))))(e))&&t===Re.BOTTOM_LEFT_CORNER};var Sn,On={exports:{}};var En,Tn=(Sn||(Sn=1,(En=On).exports=(()=>{var e,t;function n(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(r(e,t))return;return 1}function a(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){for(var n=[],o=e.length,i=0;i<o;++i)n.push(t(e[i],i));return n}function h(e,t){for(var n in t)r(t,n)&&(e[n]=t[n]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,o){return Et(e,t,n,o,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){var n,o,i=e._d&&!isNaN(e._d.getTime());return i&&(n=p(e),o=t.call(n.parsedDateParts,function(e){return null!=e}),i=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||(n.meridiem,o)),e._strict)&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function g(e){var t=d(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}t=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var m=n.momentProperties=[],v=!1;function _(e,t){var n,o,i,r=m.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)a(i=t[o=m[n]])||(e[o]=i);return e}function b(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,n.updateOffset(this),v=!1)}function y(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function w(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var o=!0;return h(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),o){for(var i,s,a=[],l=arguments.length,c=0;c<l;c++){if(i="","object"==typeof arguments[c]){for(s in i+="\n["+c+"] ",arguments[0])r(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[c];a.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),o=!1}return t.apply(this,arguments)},t)}var k,S={};function O(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),S[e]||(w(t),S[e]=!0)}function E(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,o=h({},e);for(n in t)r(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},h(o[n],e[n]),h(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)r(e,n)&&!r(t,n)&&i(e[n])&&(o[n]=h({},o[n]));return o}function P(e){null!=e&&this.set(e)}function C(e,t,n){var o=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-o.length)).toString().substr(1)+o}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,k=Object.keys||function(e){var t,n=[];for(t in e)r(e,t)&&n.push(t);return n};var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,$=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},M={};function L(e,t,n,o){var i="string"==typeof o?function(){return this[o]()}:o;e&&(M[e]=i),t&&(M[t[0]]=function(){return C(i.apply(this,arguments),t[1],t[2])}),n&&(M[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function D(e,t){return e.isValid()?(t=I(t,e.localeData()),A[t]=A[t]||(e=>{for(var t,n=e.match(N),o=0,i=n.length;o<i;o++)M[n[o]]?n[o]=M[n[o]]:n[o]=(t=n[o]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var o="",r=0;r<i;r++)o+=E(n[r])?n[r].call(t,e):n[r];return o}})(t),A[t](e)):e.localeData().invalidDate()}function I(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for($.lastIndex=0;0<=n&&$.test(e);)e=e.replace($,o),$.lastIndex=0,--n;return e}var R={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function H(e){return"string"==typeof e?R[e]||R[e.toLowerCase()]:void 0}function F(e){var t,n,o={};for(n in e)r(e,n)&&(t=H(n))&&(o[t]=e[n]);return o}var V={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},j=/\d/,z=/\d\d/,U=/\d{3}/,B=/\d{4}/,Y=/[+-]?\d{6}/,W=/\d\d?/,G=/\d\d\d\d?/,q=/\d\d\d\d\d\d?/,X=/\d{1,3}/,Q=/\d{1,4}/,Z=/[+-]?\d{1,6}/,K=/\d+/,J=/[+-]?\d+/,ee=/Z|[+-]\d\d:?\d\d/gi,te=/Z|[+-]\d\d(?::?\d\d)?/gi,ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,ie=/^([1-9]\d|\d)/;function re(e,t,n){ue[e]=E(t)?t:function(e,o){return e&&n?n:t}}function se(e,t){return r(ue,e)?ue[e](t._strict,t._locale):new RegExp(ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,i){return t||n||o||i})))}function ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=0;return 0!=(e=+e)&&isFinite(e)?le(e):t}var ue={},he={};function de(e,t){var n,o,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=ce(e)}),o=e.length,n=0;n<o;n++)he[e[n]]=i}function pe(e,t){de(e,function(e,n,o,i){o._w=o._w||{},t(e,o._w,o,i)})}function fe(e){return e%4==0&&e%100!=0||e%400==0}var ge=0,me=1,ve=2,_e=3,be=4,ye=5,we=6,xe=7,ke=8;function Se(e){return fe(e)?366:365}L("Y",0,0,function(){var e=this.year();return e<=9999?C(e,4):"+"+e}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),re("Y",J),re("YY",W,z),re("YYYY",Q,B),re("YYYYY",Z,Y),re("YYYYYY",Z,Y),de(["YYYYY","YYYYYY"],ge),de("YYYY",function(e,t){t[ge]=2===e.length?n.parseTwoDigitYear(e):ce(e)}),de("YY",function(e,t){t[ge]=n.parseTwoDigitYear(e)}),de("Y",function(e,t){t[ge]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return ce(e)+(68<ce(e)?1900:2e3)};var Oe,Ee=Te("FullYear",!0);function Te(e,t){return function(o){return null!=o?(Ce(this,e,o),n.updateOffset(this,t),this):Pe(this,e)}}function Pe(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ce(e,t,n){var o,i,r;if(e.isValid()&&!isNaN(n)){switch(o=e._d,i=e._isUTC,t){case"Milliseconds":return i?o.setUTCMilliseconds(n):o.setMilliseconds(n);case"Seconds":return i?o.setUTCSeconds(n):o.setSeconds(n);case"Minutes":return i?o.setUTCMinutes(n):o.setMinutes(n);case"Hours":return i?o.setUTCHours(n):o.setHours(n);case"Date":return i?o.setUTCDate(n):o.setDate(n);case"FullYear":break;default:return}t=n,r=e.month(),e=29!==(e=e.date())||1!==r||fe(t)?e:28,i?o.setUTCFullYear(t,r,e):o.setFullYear(t,r,e)}}function Ne(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(e+=(t-(n=(t%(n=12)+n)%n))/12,1==n?fe(e)?29:28:31-n%7%2)}Oe=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),L("MMMM",0,0,function(e){return this.localeData().months(this,e)}),re("M",W,oe),re("MM",W,z),re("MMM",function(e,t){return t.monthsShortRegex(e)}),re("MMMM",function(e,t){return t.monthsRegex(e)}),de(["M","MM"],function(e,t){t[me]=ce(e)-1}),de(["MMM","MMMM"],function(e,t,n,o){null!=(o=n._locale.monthsParse(e,o,n._strict))?t[me]=o:p(n).invalidMonth=e});var $e="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ae="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Me=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Le=ne,De=ne;function Ie(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!l(t=e.localeData().monthsParse(t)))return;var n=(n=e.date())<29?n:Math.min(n,Ne(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function Re(e){return null!=e?(Ie(this,e),n.updateOffset(this,!0),this):Pe(this,"Month")}function He(){function e(e,t){return t.length-e.length}for(var t,n,o=[],i=[],r=[],s=0;s<12;s++)n=d([2e3,s]),t=ae(this.monthsShort(n,"")),n=ae(this.months(n,"")),o.push(t),i.push(n),r.push(n),r.push(t);o.sort(e),i.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Fe(e,t,n,o,i,r,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,o,i,r,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,o,i,r,s),a}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function je(e,t,n){return(n=7+t-n)-(7+Ve(e,0,n).getUTCDay()-t)%7-1}function ze(e,t,n,o,i){var r;return n=(t=1+7*(t-1)+(7+n-o)%7+je(e,o,i))<=0?Se(r=e-1)+t:t>Se(e)?(r=e+1,t-Se(e)):(r=e,t),{year:r,dayOfYear:n}}function Ue(e,t,n){var o,i,r=je(e.year(),t,n);return(r=Math.floor((e.dayOfYear()-r-1)/7)+1)<1?o=r+Be(i=e.year()-1,t,n):r>Be(e.year(),t,n)?(o=r-Be(e.year(),t,n),i=e.year()+1):(i=e.year(),o=r),{week:o,year:i}}function Be(e,t,n){var o=je(e,t,n);return t=je(e+1,t,n),(Se(e)-o+t)/7}function Ye(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),re("w",W,oe),re("ww",W,z),re("W",W,oe),re("WW",W,z),pe(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=ce(e)}),L("d",0,"do","day"),L("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),L("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),L("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),re("d",W),re("e",W),re("E",W),re("dd",function(e,t){return t.weekdaysMinRegex(e)}),re("ddd",function(e,t){return t.weekdaysShortRegex(e)}),re("dddd",function(e,t){return t.weekdaysRegex(e)}),pe(["dd","ddd","dddd"],function(e,t,n,o){null!=(o=n._locale.weekdaysParse(e,o,n._strict))?t.d=o:p(n).invalidWeekday=e}),pe(["d","e","E"],function(e,t,n,o){t[o]=ce(e)});var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=ne,Qe=ne,Ze=ne;function Ke(){function e(e,t){return t.length-e.length}for(var t,n,o,i=[],r=[],s=[],a=[],l=0;l<7;l++)o=d([2e3,1]).day(l),t=ae(this.weekdaysMin(o,"")),n=ae(this.weekdaysShort(o,"")),o=ae(this.weekdays(o,"")),i.push(t),r.push(n),s.push(o),a.push(t),a.push(n),a.push(o);i.sort(e),r.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Je(){return this.hours()%12||12}function et(e,t){L(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,Je),L("k",["kk",2],0,function(){return this.hours()||24}),L("hmm",0,0,function(){return""+Je.apply(this)+C(this.minutes(),2)}),L("hmmss",0,0,function(){return""+Je.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+C(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)}),et("a",!0),et("A",!1),re("a",tt),re("A",tt),re("H",W,ie),re("h",W,oe),re("k",W,oe),re("HH",W,z),re("hh",W,z),re("kk",W,z),re("hmm",G),re("hmmss",q),re("Hmm",G),re("Hmmss",q),de(["H","HH"],_e),de(["k","kk"],function(e,t,n){e=ce(e),t[_e]=24===e?0:e}),de(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),de(["h","hh"],function(e,t,n){t[_e]=ce(e),p(n).bigHour=!0}),de("hmm",function(e,t,n){var o=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o)),p(n).bigHour=!0}),de("hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o,2)),t[ye]=ce(e.substr(i)),p(n).bigHour=!0}),de("Hmm",function(e,t,n){var o=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o))}),de("Hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o,2)),t[ye]=ce(e.substr(i))}),ne=Te("Hours",!0);var nt,ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:$e,monthsShort:Ae,week:{dow:0,doy:6},weekdays:We,weekdaysMin:qe,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function st(e){return e&&e.toLowerCase().replace("_","-")}function at(e){var t,n;if(void 0===it[e]&&En&&En.exports&&(n=e)&&n.match("^[^/\\\\]*$"))try{t=nt._abbr,function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}("./locale/"+e),lt(t)}catch(t){it[e]=null}return it[e]}function lt(e,t){return e&&((t=a(t)?ut(e):ct(e,t))?nt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ct(e,t){if(null===t)return delete it[e],null;var n,o=ot;if(t.abbr=e,null!=it[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])o=it[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;o=n._config}return it[e]=new P(T(o,t)),rt[e]&&rt[e].forEach(function(e){ct(e.name,e.config)}),lt(e),it[e]}function ut(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return nt;if(!o(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,o,i,r=0;r<e.length;){for(t=(i=st(e[r]).split("-")).length,n=(n=st(e[r+1]))?n.split("-"):null;0<t;){if(o=at(i.slice(0,t).join("-")))return o;if(n&&n.length>=t&&((e,t)=>{for(var n=Math.min(e.length,t.length),o=0;o<n;o+=1)if(e[o]!==t[o])return o;return n})(i,n)>=t-1)break;t--}r++}return nt}(e)}function ht(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[me]<0||11<t[me]?me:t[ve]<1||t[ve]>Ne(t[ge],t[me])?ve:t[_e]<0||24<t[_e]||24===t[_e]&&(0!==t[be]||0!==t[ye]||0!==t[we])?_e:t[be]<0||59<t[be]?be:t[ye]<0||59<t[ye]?ye:t[we]<0||999<t[we]?we:-1,p(e)._overflowDayOfYear&&(t<ge||ve<t)&&(t=ve),p(e)._overflowWeeks&&-1===t&&(t=xe),p(e)._overflowWeekday&&-1===t&&(t=ke),p(e).overflow=t),e}var dt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vt=/^\/?Date\((-?\d+)/i,_t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,n,o,i,r,s,a=e._i,l=dt.exec(a)||pt.exec(a),c=(a=gt.length,mt.length);if(l){for(p(e).iso=!0,t=0,n=a;t<n;t++)if(gt[t][1].exec(l[1])){i=gt[t][0],o=!1!==gt[t][2];break}if(null==i)e._isValid=!1;else{if(l[3]){for(t=0,n=c;t<n;t++)if(mt[t][1].exec(l[3])){r=(l[2]||" ")+mt[t][0];break}if(null==r)return void(e._isValid=!1)}if(o||null==r){if(l[4]){if(!ft.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(r||"")+(s||""),St(e)}else e._isValid=!1}}else e._isValid=!1}function wt(e){var t,n,o=_t.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=function(e,t,n,o,i,r){return e=[(e=>(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e)(e),Ae.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(i,10)],r&&e.push(parseInt(r,10)),e}(o[4],o[3],o[2],o[5],o[6],o[7]),((e,t,n)=>{if(!e||Ge.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;p(n).weekdayMismatch=!0,n._isValid=!1})(o[1],t,e)&&(e._a=t,e._tzm=(t=o[8],n=o[9],o=o[10],t?bt[t]:n?0:((t=parseInt(o,10))-(n=t%100))/100*60+n),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function xt(e,t,n){return null!=e?e:null!=t?t:n}function kt(e){var t,o,i,r,s,a,l,c,u,h,d,f=[];if(!e._d){for(i=e,r=new Date(n.now()),o=i._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],e._w&&null==e._a[ve]&&null==e._a[me]&&(null!=(r=(i=e)._w).GG||null!=r.W||null!=r.E?(c=1,u=4,s=xt(r.GG,i._a[ge],Ue(Tt(),1,4).year),a=xt(r.W,1),((l=xt(r.E,1))<1||7<l)&&(h=!0)):(c=i._locale._week.dow,u=i._locale._week.doy,d=Ue(Tt(),c,u),s=xt(r.gg,i._a[ge],d.year),a=xt(r.w,d.week),null!=r.d?((l=r.d)<0||6<l)&&(h=!0):null!=r.e?(l=r.e+c,(r.e<0||6<r.e)&&(h=!0)):l=c),a<1||a>Be(s,c,u)?p(i)._overflowWeeks=!0:null!=h?p(i)._overflowWeekday=!0:(d=ze(s,a,l,c,u),i._a[ge]=d.year,i._dayOfYear=d.dayOfYear)),null!=e._dayOfYear&&(r=xt(e._a[ge],o[ge]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),h=Ve(r,0,e._dayOfYear),e._a[me]=h.getUTCMonth(),e._a[ve]=h.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=f[t]=o[t];for(;t<7;t++)e._a[t]=f[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[be]&&0===e._a[ye]&&0===e._a[we]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?Ve:Fe).apply(null,f),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(p(e).weekdayMismatch=!0)}}function St(e){if(e._f===n.ISO_8601)yt(e);else if(e._f===n.RFC_2822)wt(e);else{e._a=[],p(e).empty=!0;for(var t,o,i,s,a,l=""+e._i,c=l.length,u=0,h=I(e._f,e._locale).match(N)||[],d=h.length,f=0;f<d;f++)o=h[f],(t=(l.match(se(o,e))||[])[0])&&(0<(i=l.substr(0,l.indexOf(t))).length&&p(e).unusedInput.push(i),l=l.slice(l.indexOf(t)+t.length),u+=t.length),M[o]?(t?p(e).empty=!1:p(e).unusedTokens.push(o),i=o,a=e,null!=(s=t)&&r(he,i)&&he[i](s,a._a,a,i)):e._strict&&!t&&p(e).unusedTokens.push(o);p(e).charsLeftOver=c-u,0<l.length&&p(e).unusedInput.push(l),e._a[_e]<=12&&!0===p(e).bigHour&&0<e._a[_e]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[_e]=((e,t,n)=>null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t)(e._locale,e._a[_e],e._meridiem),null!==(c=p(e).era)&&(e._a[ge]=e._locale.erasConvertYear(c,e._a[ge])),kt(e),ht(e)}}function Ot(e){var t,r,s,d=e._i,m=e._f;if(e._locale=e._locale||ut(e._l),null===d||void 0===m&&""===d)return g({nullInput:!0});if("string"==typeof d&&(e._i=d=e._locale.preparse(d)),y(d))return new b(ht(d));if(c(d))e._d=d;else if(o(m)){var v,w,x,k,S,O,E=e,T=!1,P=E._f.length;if(0===P)p(E).invalidFormat=!0,E._d=new Date(NaN);else{for(k=0;k<P;k++)S=0,O=!1,v=_({},E),null!=E._useUTC&&(v._useUTC=E._useUTC),v._f=E._f[k],St(v),f(v)&&(O=!0),S=(S+=p(v).charsLeftOver)+10*p(v).unusedTokens.length,p(v).score=S,T?S<x&&(x=S,w=v):(null==x||S<x||O)&&(x=S,w=v,O)&&(T=!0);h(E,w||v)}}else m?St(e):a(m=(d=e)._i)?d._d=new Date(n.now()):c(m)?d._d=new Date(m.valueOf()):"string"==typeof m?(r=d,null!==(t=vt.exec(r._i))?r._d=new Date(+t[1]):(yt(r),!1===r._isValid&&(delete r._isValid,wt(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:n.createFromInputFallback(r)))):o(m)?(d._a=u(m.slice(0),function(e){return parseInt(e,10)}),kt(d)):i(m)?(t=d)._d||(s=void 0===(r=F(t._i)).day?r.date:r.day,t._a=u([r.year,r.month,s,r.hour,r.minute,r.second,r.millisecond],function(e){return e&&parseInt(e,10)}),kt(t)):l(m)?d._d=new Date(m):n.createFromInputFallback(d);return f(e)||(e._d=null),e}function Et(e,t,n,r,a){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&s(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=e,l._f=t,l._strict=r,(a=new b(ht(Ot(a=l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Tt(e,t,n,o){return Et(e,t,n,o,!1)}function Pt(e,t){var n,i;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return Tt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}n.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){},G=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),q=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:g()});var Ct=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var t=(e=F(e)).year||0,n=e.quarter||0,o=e.month||0,i=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=(e=>{var t,n,o=!1,i=Ct.length;for(t in e)if(r(e,t)&&(-1===Oe.call(Ct,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Ct[n]]){if(o)return!1;parseFloat(e[Ct[n]])!==ce(e[Ct[n]])&&(o=!0)}return!0})(e),this._milliseconds=+u+1e3*c+6e4*l+1e3*a*60*60,this._days=+s+7*i,this._months=+o+3*n+12*t,this._data={},this._locale=ut(),this._bubble()}function $t(e){return e instanceof Nt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Mt(e,t){L(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+C(~~(e/60),2)+t+C(~~e%60,2)})}Mt("Z",":"),Mt("ZZ",""),re("Z",te),re("ZZ",te),de(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Dt(te,e)});var Lt=/([\+\-]|\d\d)/gi;function Dt(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+ce(e[2]))?0:"+"===e[0]?t:-t}function It(e,t){var o;return t._isUTC?(t=t.clone(),o=(y(e)||c(e)?e:Tt(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+o),n.updateOffset(t,!1),t):Tt(e).local()}function Rt(e){return-Math.round(e._d.getTimezoneOffset())}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jt(e,t){var n,o=e;return $t(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(t=Ft.exec(e))?(n="-"===t[1]?-1:1,o={y:0,d:ce(t[ve])*n,h:ce(t[_e])*n,m:ce(t[be])*n,s:ce(t[ye])*n,ms:ce(At(1e3*t[we]))*n}):(t=Vt.exec(e))?(n="-"===t[1]?-1:1,o={y:zt(t[2],n),M:zt(t[3],n),w:zt(t[4],n),d:zt(t[5],n),h:zt(t[6],n),m:zt(t[7],n),s:zt(t[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(t=((e,t)=>{var n;return e.isValid()&&t.isValid()?(t=It(t,e),e.isBefore(t)?n=Ut(e,t):((n=Ut(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}})(Tt(o.from),Tt(o.to)),(o={}).ms=t.milliseconds,o.M=t.months),n=new Nt(o),$t(e)&&r(e,"_locale")&&(n._locale=e._locale),$t(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function zt(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function Ut(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Bt(e,t){return function(n,o){var i;return null===o||isNaN(+o)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),Yt(this,jt(n,o),e),this}}function Yt(e,t,o,i){var r=t._milliseconds,s=At(t._days);t=At(t._months),e.isValid()&&(i=null==i||i,t&&Ie(e,Pe(e,"Month")+t*o),s&&Ce(e,"Date",Pe(e,"Date")+s*o),r&&e._d.setTime(e._d.valueOf()+r*o),i)&&n.updateOffset(e,s||t)}function Wt(e){return"string"==typeof e||e instanceof String}function Gt(e,t){var n,o;return e.date()<t.date()?-Gt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(o=e.clone().add(n,"months"))<0?(t-o)/(o-e.clone().add(n-1,"months")):(t-o)/(e.clone().add(1+n,"months")-o)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=ut(e))&&(this._locale=e),this)}function Xt(){return this._locale}jt.fn=Nt.prototype,jt.invalid=function(){return jt(NaN)},$e=Bt(1,"add"),We=Bt(-1,"subtract"),n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",qe=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});var Qt,Zt=1e3,Kt=6e4,Jt=60*Kt,en=3506328*Jt;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e,t,n,o=[],i=[],r=[],s=[],a=this.eras(),l=0,c=a.length;l<c;++l)e=ae(a[l].name),t=ae(a[l].abbr),n=ae(a[l].narrow),i.push(e),o.push(t),r.push(n),s.push(e),s.push(t),s.push(n);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function an(e,t){L(0,[e,e.length],0,t)}function ln(e,t,n,o,i){var r;return null==e?Ue(this,o,i).year:(r=Be(e,o,i),function(e,t,n,o,i){return t=Ve((e=ze(e,t,n,o,i)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=r<t?r:t,n,o,i))}for(L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),re("N",rn),re("NN",rn),re("NNN",rn),re("NNNN",function(e,t){return t.erasNameRegex(e)}),re("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),de(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){(o=n._locale.erasParse(e,o,n._strict))?p(n).era=o:p(n).invalidEra=e}),re("y",K),re("yy",K),re("yyy",K),re("yyyy",K),re("yo",function(e,t){return t._eraYearOrdinalRegex||K}),de(["y","yy","yyy","yyyy"],ge),de(["yo"],function(e,t,n,o){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ge]=n._locale.eraYearOrdinalParse(e,i):t[ge]=parseInt(e,10)}),L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),re("G",J),re("g",J),re("GG",W,z),re("gg",W,z),re("GGGG",Q,B),re("gggg",Q,B),re("GGGGG",Z,Y),re("ggggg",Z,Y),pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=ce(e)}),pe(["gg","GG"],function(e,t,o,i){t[i]=n.parseTwoDigitYear(e)}),L("Q",0,"Qo","quarter"),re("Q",j),de("Q",function(e,t){t[me]=3*(ce(e)-1)}),L("D",["DD",2],"Do","date"),re("D",W,oe),re("DD",W,z),re("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),de(["D","DD"],ve),de("Do",function(e,t){t[ve]=ce(e.match(W)[0])}),Q=Te("Date",!0),L("DDD",["DDDD",3],"DDDo","dayOfYear"),re("DDD",X),re("DDDD",U),de(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ce(e)}),L("m",["mm",2],0,"minute"),re("m",W,ie),re("mm",W,z),de(["m","mm"],be),B=Te("Minutes",!1),L("s",["ss",2],0,"second"),re("s",W,ie),re("ss",W,z),de(["s","ss"],ye),Z=Te("Seconds",!1),L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return 10*this.millisecond()}),L(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),L(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),L(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),L(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),L(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),re("S",X,j),re("SS",X,z),re("SSS",X,U),Qt="SSSS";Qt.length<=9;Qt+="S")re(Qt,K);function cn(e,t){t[we]=ce(1e3*("0."+e))}for(Qt="S";Qt.length<=9;Qt+="S")de(Qt,cn);function un(e){return e}function hn(e,t,n,o){var i=ut();return o=d().set(o,t),i[n](o,e)}function dn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return hn(e,t,n,"month");for(var o=[],i=0;i<12;i++)o[i]=hn(e,i,n,"month");return o}function pn(e,t,n,o){"boolean"==typeof e?l(t)&&(n=t,t=void 0):(t=e,e=!1,l(n=t)&&(n=t,t=void 0)),t=t||"";var i,r=ut(),s=e?r._week.dow:0,a=[];if(null!=n)return hn(t,(n+s)%7,o,"day");for(i=0;i<7;i++)a[i]=hn(t,(i+s)%7,o,"day");return a}Y=Te("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName"),(oe=b.prototype).add=$e,oe.calendar=function(e,t){1===arguments.length&&(arguments[0]?function(e){return y(e)||c(e)||Wt(e)||l(e)||(e=>{var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!l(t)&&Wt(e)}).length),t&&n})(e)||(e=>{var t,n=i(e)&&!s(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=a.length;for(t=0;t<l;t+=1)o=o||r(e,a[t]);return n&&o})(e)||null==e}(arguments[0])?(e=arguments[0],t=void 0):(e=>{for(var t=i(e)&&!s(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a=0;a<o.length;a+=1)n=n||r(e,o[a]);return t&&n})(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var a=It(e=e||Tt(),this).startOf("day");return a=n.calendarFormat(this,a)||"sameElse",t=t&&(E(t[a])?t[a].call(this,e):t[a]),this.format(t||this.localeData().calendar(a,this,Tt(e)))},oe.clone=function(){return new b(this)},oe.diff=function(e,t,n){var o,i,r;if(!this.isValid())return NaN;if(!(o=It(e,this)).isValid())return NaN;switch(i=6e4*(o.utcOffset()-this.utcOffset()),t=H(t)){case"year":r=Gt(this,o)/12;break;case"month":r=Gt(this,o);break;case"quarter":r=Gt(this,o)/3;break;case"second":r=(this-o)/1e3;break;case"minute":r=(this-o)/6e4;break;case"hour":r=(this-o)/36e5;break;case"day":r=(this-o-i)/864e5;break;case"week":r=(this-o-i)/6048e5;break;default:r=this-o}return n?r:le(r)},oe.endOf=function(e){var t,o;if(void 0!==(e=H(e))&&"millisecond"!==e&&this.isValid()){switch(o=this._isUTC?on:nn,e){case"year":t=o(this.year()+1,0,1)-1;break;case"quarter":t=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=o(this.year(),this.month()+1,1)-1;break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Jt-tn(t+(this._isUTC?0:this.utcOffset()*Kt),Jt)-1;break;case"minute":t=this._d.valueOf(),t+=Kt-tn(t,Kt)-1;break;case"second":t=this._d.valueOf(),t+=Zt-tn(t,Zt)-1}this._d.setTime(t),n.updateOffset(this,!0)}return this},oe.format=function(e){return e=D(this,e=e||(this.isUtc()?n.defaultFormatUtc:n.defaultFormat)),this.localeData().postformat(e)},oe.from=function(e,t){return this.isValid()&&(y(e)&&e.isValid()||Tt(e).isValid())?jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oe.fromNow=function(e){return this.from(Tt(),e)},oe.to=function(e,t){return this.isValid()&&(y(e)&&e.isValid()||Tt(e).isValid())?jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oe.toNow=function(e){return this.to(Tt(),e)},oe.get=function(e){return E(this[e=H(e)])?this[e]():this},oe.invalidAt=function(){return p(this).overflow},oe.isAfter=function(e,t){return e=y(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},oe.isBefore=function(e,t){return e=y(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},oe.isBetween=function(e,t,n,o){return e=y(e)?e:Tt(e),t=y(t)?t:Tt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(o=o||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))},oe.isSame=function(e,t){return e=y(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},oe.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},oe.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},oe.isValid=function(){return f(this)},oe.lang=qe,oe.locale=qt,oe.localeData=Xt,oe.max=q,oe.min=G,oe.parsingFlags=function(){return h({},p(this))},oe.set=function(e,t){if("object"==typeof e)for(var n=(e=>{var t,n=[];for(t in e)r(e,t)&&n.push({unit:t,priority:V[t]});return n.sort(function(e,t){return e.priority-t.priority}),n})(e=F(e)),o=n.length,i=0;i<o;i++)this[n[i].unit](e[n[i].unit]);else if(E(this[e=H(e)]))return this[e](t);return this},oe.startOf=function(e){var t,o;if(void 0!==(e=H(e))&&"millisecond"!==e&&this.isValid()){switch(o=this._isUTC?on:nn,e){case"year":t=o(this.year(),0,1);break;case"quarter":t=o(this.year(),this.month()-this.month()%3,1);break;case"month":t=o(this.year(),this.month(),1);break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=o(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:this.utcOffset()*Kt),Jt);break;case"minute":t=this._d.valueOf(),t-=tn(t,Kt);break;case"second":t=this._d.valueOf(),t-=tn(t,Zt)}this._d.setTime(t),n.updateOffset(this,!0)}return this},oe.subtract=We,oe.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},oe.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},oe.toDate=function(){return new Date(this.valueOf())},oe.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?D(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",D(t,"Z")):D(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},oe.inspect=function(){var e,t,n;return this.isValid()?(t="moment",e="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(oe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),oe.toJSON=function(){return this.isValid()?this.toISOString():null},oe.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},oe.unix=function(){return Math.floor(this.valueOf()/1e3)},oe.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},oe.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},oe.eraName=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},oe.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},oe.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},oe.eraYear=function(){for(var e,t,o=this.localeData().eras(),i=0,r=o.length;i<r;++i)if(e=o[i].since<=o[i].until?1:-1,t=this.clone().startOf("day").valueOf(),o[i].since<=t&&t<=o[i].until||o[i].until<=t&&t<=o[i].since)return(this.year()-n(o[i].since).year())*e+o[i].offset;return this.year()},oe.year=Ee,oe.isLeapYear=function(){return fe(this.year())},oe.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},oe.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},oe.quarter=oe.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},oe.month=Re,oe.daysInMonth=function(){return Ne(this.year(),this.month())},oe.week=oe.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},oe.isoWeek=oe.isoWeeks=function(e){var t=Ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},oe.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},oe.weeksInWeekYear=function(){var e=this.localeData()._week;return Be(this.weekYear(),e.dow,e.doy)},oe.isoWeeksInYear=function(){return Be(this.year(),1,4)},oe.isoWeeksInISOWeekYear=function(){return Be(this.isoWeekYear(),1,4)},oe.date=Q,oe.day=oe.days=function(e){var t,n,o;return this.isValid()?(t=Pe(this,"Day"),null!=e?(n=e,o=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=o.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},oe.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},oe.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},oe.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},oe.hour=oe.hours=ne,oe.minute=oe.minutes=B,oe.second=oe.seconds=Z,oe.millisecond=oe.milliseconds=Y,oe.utcOffset=function(e,t,o){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Rt(this);if("string"==typeof e){if(null===(e=Dt(te,e)))return this}else Math.abs(e)<16&&!o&&(e*=60);return!this._isUTC&&t&&(i=Rt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Yt(this,jt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this},oe.utc=function(e){return this.utcOffset(0,e)},oe.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Rt(this),"m"),this},oe.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Dt(ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},oe.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},oe.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},oe.isLocal=function(){return!!this.isValid()&&!this._isUTC},oe.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},oe.isUtc=Ht,oe.isUTC=Ht,oe.zoneAbbr=function(){return this._isUTC?"UTC":""},oe.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},oe.dates=x("dates accessor is deprecated. Use date instead.",Q),oe.months=x("months accessor is deprecated. Use month instead",Re),oe.years=x("years accessor is deprecated. Use year instead",Ee),oe.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),oe.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(_(e={},this),(e=Ot(e))._a?(t=(e._isUTC?d:Tt)(e._a),this._isDSTShifted=this.isValid()&&0<((e,t)=>{for(var n=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,r=0;r<n;r++)ce(e[r])!==ce(t[r])&&i++;return i+o})(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted}),(ie=P.prototype).calendar=function(e,t,n){return E(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},ie.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},ie.invalidDate=function(){return this._invalidDate},ie.ordinal=function(e){return this._ordinal.replace("%d",e)},ie.preparse=un,ie.postformat=un,ie.relativeTime=function(e,t,n,o){var i=this._relativeTime[n];return E(i)?i(e,t,n,o):i.replace(/%d/i,e)},ie.pastFuture=function(e,t){return E(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},ie.set=function(e){var t,n;for(n in e)r(e,n)&&(E(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ie.eras=function(e,t){for(var o,i=this._eras||ut("en")._eras,r=0,s=i.length;r<s;++r)switch("string"==typeof i[r].since&&(o=n(i[r].since).startOf("day"),i[r].since=o.valueOf()),typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":o=n(i[r].until).startOf("day").valueOf(),i[r].until=o.valueOf()}return i},ie.erasParse=function(e,t,n){var o,i,r,s,a,l=this.eras();for(e=e.toUpperCase(),o=0,i=l.length;o<i;++o)if(r=l[o].name.toUpperCase(),s=l[o].abbr.toUpperCase(),a=l[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[o];break;case"NNNN":if(r===e)return l[o];break;case"NNNNN":if(a===e)return l[o]}else if(0<=[r,s,a].indexOf(e))return l[o]},ie.erasConvertYear=function(e,t){var o=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*o},ie.erasAbbrRegex=function(e){return r(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},ie.erasNameRegex=function(e){return r(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},ie.erasNarrowRegex=function(e){return r(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},ie.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Me).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},ie.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Me.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ie.monthsParse=function(e,t,n){var o,i;if(this._monthsParseExact)return function(e,t,n){var o,i,r;if(e=e.toLocaleLowerCase(),!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)r=d([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,e))?i:null:-1!==(i=Oe.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,e))||-1!==(i=Oe.call(this._longMonthsParse,e))?i:null:-1!==(i=Oe.call(this._longMonthsParse,e))||-1!==(i=Oe.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(i=d([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},ie.monthsRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||He.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ie.monthsShortRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||He.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=Le),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ie.week=function(e){return Ue(e,this._week.dow,this._week.doy).week},ie.firstDayOfYear=function(){return this._week.doy},ie.firstDayOfWeek=function(){return this._week.dow},ie.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ye(t,this._week.dow):e?t[e.day()]:t},ie.weekdaysMin=function(e){return!0===e?Ye(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},ie.weekdaysShort=function(e){return!0===e?Ye(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},ie.weekdaysParse=function(e,t,n){var o,i;if(this._weekdaysParseExact)return function(e,t,n){var o,i,r;if(e=e.toLocaleLowerCase(),!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)r=d([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,e))||-1!==(i=Oe.call(this._shortWeekdaysParse,e))||-1!==(i=Oe.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,e))||-1!==(i=Oe.call(this._weekdaysParse,e))||-1!==(i=Oe.call(this._minWeekdaysParse,e))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,e))||-1!==(i=Oe.call(this._weekdaysParse,e))||-1!==(i=Oe.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(i=d([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},ie.weekdaysRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ie.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ie.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ie.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ie.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},lt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),n.lang=x("moment.lang is deprecated. Use moment.locale instead.",lt),n.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ut);var fn=Math.abs;function gn(e,t,n,o){return t=jt(t,n),e._milliseconds+=o*t._milliseconds,e._days+=o*t._days,e._months+=o*t._months,e._bubble()}function mn(e){return e<0?Math.floor(e):Math.ceil(e)}function vn(e){return 4800*e/146097}function _n(e){return 146097*e/4800}function bn(e){return function(){return this.as(e)}}function yn(e){return function(){return this.isValid()?this._data[e]:NaN}}j=bn("ms"),z=bn("s"),X=bn("m"),U=bn("h"),$e=bn("d"),q=bn("w"),G=bn("M"),We=bn("Q"),ne=bn("y"),B=j,Z=yn("milliseconds"),Y=yn("seconds"),Q=yn("minutes"),Ee=yn("hours"),ie=yn("days");var wn=yn("months"),xn=yn("years"),kn=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},On=Math.abs;function Tn(e){return(0<e)-(e<0)||+e}function Pn(){var e,t,n,o,i,r,s,a,l,c,u;return this.isValid()?(e=On(this._milliseconds)/1e3,t=On(this._days),n=On(this._months),(a=this.asSeconds())?(o=le(e/60),i=le(o/60),e%=60,o%=60,r=le(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=Tn(this._months)!==Tn(a)?"-":"",c=Tn(this._days)!==Tn(a)?"-":"",u=Tn(this._milliseconds)!==Tn(a)?"-":"",(a<0?"-":"")+"P"+(r?l+r+"Y":"")+(n?l+n+"M":"")+(t?c+t+"D":"")+(i||o||e?"T":"")+(i?u+i+"H":"")+(o?u+o+"M":"")+(e?u+s+"S":"")):"P0D"):this.localeData().invalidDate()}var Cn=Nt.prototype;return Cn.isValid=function(){return this._isValid},Cn.abs=function(){var e=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),e.milliseconds=fn(e.milliseconds),e.seconds=fn(e.seconds),e.minutes=fn(e.minutes),e.hours=fn(e.hours),e.months=fn(e.months),e.years=fn(e.years),this},Cn.add=function(e,t){return gn(this,e,t,1)},Cn.subtract=function(e,t){return gn(this,e,t,-1)},Cn.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=H(e))||"quarter"===e||"year"===e)switch(t=this._days+o/864e5,n=this._months+vn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(_n(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Cn.asMilliseconds=j,Cn.asSeconds=z,Cn.asMinutes=X,Cn.asHours=U,Cn.asDays=$e,Cn.asWeeks=q,Cn.asMonths=G,Cn.asQuarters=We,Cn.asYears=ne,Cn.valueOf=B,Cn._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*mn(_n(n)+t),n=t=0),o.milliseconds=e%1e3,e=le(e/1e3),o.seconds=e%60,e=le(e/60),o.minutes=e%60,e=le(e/60),o.hours=e%24,t+=le(e/24),n+=e=le(vn(t)),t-=mn(_n(e)),e=le(n/12),n%=12,o.days=t,o.months=n,o.years=e,this},Cn.clone=function(){return jt(this)},Cn.get=function(e){return e=H(e),this.isValid()?this[e+"s"]():NaN},Cn.milliseconds=Z,Cn.seconds=Y,Cn.minutes=Q,Cn.hours=Ee,Cn.days=ie,Cn.weeks=function(){return le(this.days()/7)},Cn.months=wn,Cn.years=xn,Cn.humanize=function(e,t){var n,o;return this.isValid()?(n=!1,o=Sn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(o=Object.assign({},Sn,t),null!=t.s)&&null==t.ss&&(o.ss=t.s-1),t=function(e,t,n,o){var i=jt(e).abs(),r=kn(i.as("s")),s=kn(i.as("m")),a=kn(i.as("h")),l=kn(i.as("d")),c=kn(i.as("M")),u=kn(i.as("w"));return i=kn(i.as("y")),r=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||(s<=1?["m"]:s<n.m&&["mm",s])||(a<=1?["h"]:a<n.h&&["hh",a])||(l<=1?["d"]:l<n.d&&["dd",l]),(r=(r=null!=n.w?r||(u<=1?["w"]:u<n.w&&["ww",u]):r)||(c<=1?["M"]:c<n.M&&["MM",c])||(i<=1?["y"]:["yy",i]))[2]=t,r[3]=0<+e,r[4]=o,function(e,t,n,o,i){return i.relativeTime(t||1,!!n,e,o)}.apply(null,r)}(this,!n,o,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},Cn.toISOString=Pn,Cn.toString=Pn,Cn.toJSON=Pn,Cn.locale=qt,Cn.localeData=Xt,Cn.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pn),Cn.lang=qe,L("X",0,0,"unix"),L("x",0,0,"valueOf"),re("x",J),re("X",/[+-]?\d+(\.\d{1,3})?/),de("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),de("x",function(e,t,n){n._d=new Date(ce(e))}),n.version="2.30.1",e=Tt,n.fn=oe,n.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},n.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=d,n.unix=function(e){return Tt(1e3*e)},n.months=function(e,t){return dn(e,t,"months")},n.isDate=c,n.locale=lt,n.invalid=g,n.duration=jt,n.isMoment=y,n.weekdays=function(e,t,n){return pn(e,t,n,"weekdays")},n.parseZone=function(){return Tt.apply(null,arguments).parseZone()},n.localeData=ut,n.isDuration=$t,n.monthsShort=function(e,t){return dn(e,t,"monthsShort")},n.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin")},n.defineLocale=ct,n.updateLocale=function(e,t){var n,o;return null!=t?(o=ot,null!=it[e]&&null!=it[e].parentLocale?it[e].set(T(it[e]._config,t)):(t=T(o=null!=(n=at(e))?n._config:o,t),null==n&&(t.abbr=e),(o=new P(t)).parentLocale=it[e],it[e]=o),lt(e)):null!=it[e]&&(null!=it[e].parentLocale?(it[e]=it[e].parentLocale,e===lt()&&lt(e)):null!=it[e]&&delete it[e]),it[e]},n.locales=function(){return k(it)},n.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort")},n.normalizeUnits=H,n.relativeTimeRounding=function(e){return void 0===e?kn:"function"==typeof e&&(kn=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==Sn[e]&&(void 0===t?Sn[e]:(Sn[e]=t,"s"===e&&(Sn.ss=t-1),!0))},n.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},n.prototype=oe,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})()),On.exports),Pn=n(Tn);let Cn=e=>e?e+"?nocache="+Math.random():"",Nn=e=>{var{itemInfo:e,hoverType:t}=e;if(!e)return!1;if(t)return t;let n;switch(t=e.type){case st:n=nt;break;case rt:n=tt;break;case it:case at:n=et;break;default:n=Je}return n},$n=(e,t)=>{if(0<t)return"0px";let n;switch(e){case Ve:n=(qe/2+Xe)/2;break;case Fe:n=-12;break;case je:n=-20;break;case ze:n=(qe+Xe)/2;break;default:n=0}return n+"px"},An=(e,t="vi",n)=>{var o=e.type;let i="",r="",s="",a="",l=!1;if(o===ue.ITEM_INFO||o===ue.POLYGON){var c=Nn(e),u=e.itemInfo,{icon:u,name:h,distance:d,distanceUnit:p,price:f,currencyUnit:g,unit:m}=u;switch(s=sn(u,150),i=h,c){case nt:r=d+" "+p;break;case ot:r="";break;case tt:a="unset";break;case et:f&&(r=((e,t,n)=>e+(t?" "+t:"")+(n?"/"+C[n]:""))((e=>{if(0===Number(e))return"0";e=e.toString();for(var t=/(-?\d+)(\d{3})/;t.test(e);)e=e.replace(t,"$1.$2");return""+e})(f),g,m));break;default:return console.warn(`Type[${c}] is not handled hover`),""}}else o===ue.PROMOTION?(u=e.promotion,({name:h,endDate:u,image:v}=u),u=Pn(u).format("DD/MM/YYYY"),i=h,r=`${t===T.VI?"đến":"to"} ${u} `,s=sn(v,150)):o===ue.GALLERY&&((null==(t=(h=e.gallery)[0])?void 0:t.type)===pt&&(l=!0),s=sn(null==(u=h[0])?void 0:u.file,150));var v=l?` \n [div class="popup__video" ]\n [video class="video__content" ]\n [source src=${s} type="video/mp4" /]\n [/video]\n [span class="icon-play_arrow_24x24 video__icon"] [/span]\n [/div]\n `:s&&`\n [img\n class="popup__image"\n style="height: ${a}"\n src = "${s}"\n /]`;return`\n [div class="cvtv-poi-laser-tooltip-content__popup cvtv-poi-laser-tooltip-content__popup--${(null==(o=null==e?void 0:e.popupSize)?void 0:o.toLowerCase())||"1"}" style="order: ${n}"]\n ${v||""} \n [div class="popup__info"]\n [div class="info__title"][span]${i||""}[/span][/div]\n [div class= "info__subtitle"][span]${r}[/span][/div]\n [/div]\n [/div]\n `},Mn=e=>{var{laserRange:t,position:n}=e;return`\n [div class="cvtv-poi-laser-tooltip-content__pin cvtv-poi-laser-tooltip-content__pin--${null==n?void 0:n.toLowerCase()}" style="--size-pin-content: ${Ge[t]}px"]\n [div class= "pin__content "][/div]\n [div class= "pin__icon " ]\n ${(e=>{var t,n,o=dn(e.props);return e=ln(e.props),o&&o.imageStrip?(({file:o,frameWidth:n,frameHeight:t}=o),n=n?(o.width||0)*(32/n):32,`[div class="icon__image-strip" style=" --height-image-trip: ${t?(o.height||0)*(32/t):32}px; --width-image-trip: ${n}px" ]\n [img class="image-strip__content" style="background-image: url(${e})" /]\n [/div]`):e?`\n [img\n class="icon__image"\n src="${e}"\n /]`:""})(e)}\n [/div]\n [/div]\n `},Ln=(e,t,n="vi")=>{if(!(e=>{if(e.type===ue.ITEM_INFO){if(!e.itemInfo)return!1;if(Nn(e)===Je)return!1}return!0})(t))return"";let o,i,r=0,s="",a="",l="row";var{position:c,overviewPosition:u,laserRange:h}=t;return u===Re.BOTTOM_LEFT_CORNER&&c===He?'\n [div class="cvtv-poi-laser-tooltip"]\n [div class="cvtv-poi-laser-tooltip__focusing-point"][/div]\n [/div]\n ':(c===Ve||c===je?(l="column",a="50%",o="-50%",i="0px",s="unset",r=0,c===je?(i=`calc(100% + ${$n(c,h)})`,r=1):i=""+$n(c,h)):(o=c===ze?`calc(-100% + ${$n(c,h)})`:(r=1,""+$n(c,h)),i="calc(50% - 4px)"),`\n [div class="cvtv-poi-laser-tooltip cvtv-poi-laser-tooltip cvtv-poi-laser-tooltip--${((e,t)=>{var{width:t=0,height:n=0,laserRange:o=Ie,scale:i=1,distorted:r=!1}=t;let s=(t+n)*Math.pow(i,2)/2/2;return r&&!an(e)&&(s*=Math.sqrt(2)),(t=Math.round(s*o))<500?t:500})(e,t)||"1"}"]\n [div class="cvtv-poi-laser-tooltip__point${0===h?" invisible":""}"][/div]\n [div class="cvtv-poi-laser-tooltip__body" style="left: ${a}; top: ${s}; transform: translate(${o}, ${i})"]\n [div class="cvtv-poi-laser-tooltip-content" style="flex-direction: ${l}"]\n ${An(t,n,r)}\n ${Mn(t)}\n [/div]\n [/div]\n [/div]\n `)},Dn=(e,t,n,o=!0)=>{e.call(`addhotspot(${t}); `),e.call(`\n set(hotspot[${t}].type, text);\n set(hotspot[${t}].renderer, css3d);\n set(hotspot[${t}].padding, 0);\n set(hotspot[${t}].bgalpha, 0);\n set(hotspot[${t}].autowidth, true);\n set(hotspot[${t}].autoheight, true);\n set(hotspot[${t}].visible, false);\n set(hotspot[${t}].rx, 0);\n set(hotspot[${t}].ry, 0);\n set(hotspot[${t}].rz, 0);\n set(hotspot[${t}].rotate, 0);\n set(hotspot[${t}].distorted, false);\n set(hotspot[${t}].handcursor, ${o});\n set(hotspot[${t}].css, font - family: Barlow; font - size: 14px; color: #ffffff;);\n `),e.set(`hotspot[${t}].html`,n)},In=(e,t,n,o=!0)=>{var i=un(t.code);Dn(e,i,n,o),e.set(`hotspot[${i}].atv`,t.atv),e.set(`hotspot[${i}].ath`,t.ath),e.set(`hotspot[${i}].zorder`,P.FOCUSING_AREA)},Rn=(e,t,n,o=!0)=>{if(n){var i=un(t.code);if(Dn(e,i,n,o),e.set(`hotspot[${i}].atv`,t.atv),e.set(`hotspot[${i}].ath`,t.ath),e.set(`hotspot[${i}].zorder`,(e=>e.type===ue.MOVING||e.type===ue.INFO?P.MIN:P.STANDARD)(t)),[ue.INFO,ue.MOVING,ue.POPUP].includes(t.type)&&e.set(`hotspot[${i}].scale`,t.scale<=1?t.scale:1),n){let n;n=t.type===ue.POLYGON?`\n if(hotspot[${t.code}]!=null,\n copy(ph_${i}, hotspot[${i}].pixelheight);\n if(ph_${i} != null,\n if(ph_${i} != 0,\n set(hotspot[${i}].oy, calc(((ph_${i}/2) + 10) * -1));\n set(needsUpdate_${i}, false);\n ,\n );\n ,\n );\n ,\n );\n `:`\n if(hotspot[${t.code}]!=null,\n copy(ph_${i}, hotspot[${i}].pixelheight);\n copy(ph_${t.code}, hotspot[${t.code}].pixelheight);\n copy(scl_${t.code}, hotspot[${t.code}].scale);\n\n if(ph_${i} != null,\n if(ph_${i} != 0,\n if(ph_${t.code} != null,\n if(ph_${t.code} != 0,\n set(h_${t.code}, calc(hotspot[${t.code}].height * scl_${t.code} - 0));\n set(hotspot[${i}].oy, calc(((ph_${i}/2) + (h_${t.code}/2) + 10 + 8) * -1));\n set(needsUpdate_${i}, false);\n ,\n );\n ,\n );\n ,\n );\n ,\n );\n );\n `,e.call(`\n set(hotspot[${i}].onloaded,\n copy(needsUpdate_${i}, true);\n\n asyncloop(needsUpdate_${i},\n ${n}\n );\n );\n `)}}},Hn=(e,t)=>ce(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=ln(t);return yield cn(i,n,o),e.call(`addhotspot(${t.code});`),e.set(`hotspot[${t.code}].html`,jn(t)),e.call(`\n set(hotspot[${t.code}].type, text);\n set(hotspot[${t.code}].renderer, css3d);\n set(hotspot[${t.code}].padding, 0);\n set(hotspot[${t.code}].bgalpha, 0);\n set(hotspot[${t.code}].autowidth, true);\n set(hotspot[${t.code}].autoheight, true);\n set(hotspot[${t.code}].atv, ${t.atv});\n set(hotspot[${t.code}].ath, ${t.ath}); \n set(hotspot[${t.code}].alpha,${t.alpha});\n set(hotspot[${t.code}].scale,${t.scale});\n set(hotspot[${t.code}].rotate,${t.rotate});\n set(hotspot[${t.code}].width,${n});\n set(hotspot[${t.code}].height,${o});\n set(hotspot[${t.code}].rx,${t.rx});\n set(hotspot[${t.code}].ry,${t.ry});\n set(hotspot[${t.code}].rz,${t.rz});\n set(hotspot[${t.code}].distorted,${t.distorted});\n set(hotspot[${t.code}].zorder, ${P.STANDARD});\n `),new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{e.set(`hotspot[${t.code}].visible`,t.visible),n()})})}),Fn=e=>{var t=e.code,n=dn(e);return n?`\n def(imageWidth_${t}, integer, get(hotspot[${t}].imagewidth));\n def(imageHeight_${t}, integer, get(hotspot[${t}].imageheight));\n def(frameWidth_${t}, integer, ${n.frameWidth});\n def(frameHeight_${t}, integer, ${n.frameHeight});\n def(frameRate_${t}, integer, ${e.frameRate});\n def(frame_${t}, integer, 0);\n \n calc(xFrames_${t}, (imageWidth_${t} / frameWidth_${t}) BOR 0);\n calc(frames_${t}, xFrames_${t} * ((imageHeight_${t} / frameHeight_${t}) BOR 0));\n calc(hotspot[${t}].crop, '0|0|' + frameWidth_${t} + '|' + frameHeight_${t});\n \n setinterval(crop_anim_${t}, calc(1.0 / frameRate_${t}),\n if(hotspot[${t}].loaded,\n inc(frame_${t});\n if(frame_${t} GE frames_${t}, set(frame_${t}, 0););\n mod(xPos_${t}, frame_${t}, xFrames_${t});\n div(yPos_${t}, frame_${t}, xFrames_${t});\n Math.floor(yPos_${t});\n mul(xPos_${t}, frameWidth_${t});\n mul(yPos_${t}, frameHeight_${t});\n calc(\n hotspot[${t}].crop,\n xPos_${t} + '|' + yPos_${t} + '|' + frameWidth_${t} + '|' + frameHeight_${t}\n );\n ,\n clearinterval(crop_anim_${t});\n );\n );\n `:""},Vn=(e,t)=>ce(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=Cn(ln(t));return yield cn(i,n,o),e.call(`\n addhotspot(${t.code});\n set(hotspot[${t.code}].url, ${i});\n set(hotspot[${t.code}].renderer, css3d);\n set(hotspot[${t.code}].bgalpha, 0);\n set(hotspot[${t.code}].ath, ${t.ath});\n set(hotspot[${t.code}].atv, ${t.atv});\n set(hotspot[${t.code}].alpha, ${t.alpha});\n set(hotspot[${t.code}].scale, ${t.scale});\n set(hotspot[${t.code}].rotate, ${t.rotate});\n set(hotspot[${t.code}].width, ${n});\n set(hotspot[${t.code}].height, ${o});\n set(hotspot[${t.code}].rx, ${t.rx});\n set(hotspot[${t.code}].ry, ${t.ry});\n set(hotspot[${t.code}].rz, ${t.rz});\n set(hotspot[${t.code}].distorted, ${t.distorted});\n set(hotspot[${t.code}].zorder, ${P.STANDARD});\n `),new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{e.call(Fn(t)),e.set(`hotspot[${t.code}].visible`,t.visible),n()})})}),jn=e=>{var t=ln(e);return`\n [div class="cvtv-product-info-poi__marker"]\n [img width="${e.width}" height="${e.height}" src="${t}"][/img]\n [/div]`},zn=e=>`[div class="cvtv-product-info-poi__marker cvtv-product-info-poi__marker--label cvtv-product-info-poi__marker--visible"]\n [div class="info-poi"]\n [div class="info-poi__icon" style="width: ${(e.width||0)*(e.scale||1)}px; height: ${(e.height||0)*(e.scale||1)}px"]\n [/div]\n [div class="info-poi__label"]\n [div class="text"]\n ${e&&e.itemInfo&&e.itemInfo.name}\n [/div]\n [i class="chevron icon-chevron_right_24x24"][/i]\n [/div]\n [/div]\n [/div]`,Un=(e,t)=>{var n=dn(t);return(n&&n.imageStrip?Vn:Hn)(e,t)},Bn=(e,t)=>ce(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=ln(t);yield cn(i,n,o),e.call(`addhotspot(${t.code});`),e.call(`\n set(hotspot[${t.code}].url, ${Cn(i)});\n set(hotspot[${t.code}].tx, ${t.tx});\n set(hotspot[${t.code}].ty, ${t.ty});\n set(hotspot[${t.code}].tz, ${t.tz});\n set(hotspot[${t.code}].alpha, ${t.alpha});\n set(hotspot[${t.code}].scale, ${t.scale});\n set(hotspot[${t.code}].width, ${n});\n set(hotspot[${t.code}].height, ${o});\n set(hotspot[${t.code}].rx, -90);\n set(hotspot[${t.code}].ry, ${t.rotate});\n set(hotspot[${t.code}].distorted, true);\n set(hotspot[${t.code}].vcenter, true);\n set(hotspot[${t.code}].depth, 0);\n set(hotspot[${t.code}].depthbuffer, true);\n set(hotspot[${t.code}].torigin, world);\n set(hotspot[${t.code}].rotationorder, xyz);\n set(hotspot[${t.code}].zorder, ${P.STANDARD});\n set(hotspot[${t.code}].visible, ${t.visible});\n `);let r=dn(t);return new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{r&&r.imageStrip&&e.call(Fn(t)),n()})})});function Yn(e,t){return function(){return e.apply(t,arguments)}}let Wn=Object.prototype.toString,Gn=Object.getPrototypeOf,{iterator:qn,toStringTag:Xn}=Symbol,Qn=(to=Object.create(null),e=>(e=Wn.call(e),to[e]||(to[e]=e.slice(8,-1).toLowerCase()))),Zn=e=>(e=e.toLowerCase(),t=>Qn(t)===e),Kn=e=>t=>typeof t===e,Jn=Array.isArray,eo=Kn("undefined");var to;function no(e){return null!==e&&!eo(e)&&null!==e.constructor&&!eo(e.constructor)&&ro(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let oo=Zn("ArrayBuffer");let io=Kn("string"),ro=Kn("function"),so=Kn("number"),ao=e=>null!==e&&"object"==typeof e,lo=e=>{var t;return"object"===Qn(e)&&!(null!==(t=Gn(e))&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Xn in e||qn in e)},co=Zn("Date"),uo=Zn("File"),ho=Zn("Blob"),po=Zn("FileList"),fo=Zn("URLSearchParams"),[go,mo,vo,_o]=["ReadableStream","Request","Response","Headers"].map(Zn);function bo(e,t,{allOwnKeys:n=!1}={}){if(null!=e){let a;var o;if("object"!=typeof e&&(e=[e]),Jn(e))for(a=0,o=e.length;a<o;a++)t.call(null,e[a],a,e);else if(!no(e)){var i,r=n?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;for(a=0;a<s;a++)i=r[a],t.call(null,e[i],i,e)}}}function yo(e,t){if(!no(e)){t=t.toLowerCase();var n,o=Object.keys(e);let i=o.length;for(;0<i--;)if(t===(n=o[i]).toLowerCase())return n}return null}let wo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,xo=e=>!eo(e)&&e!==wo;let ko=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Gn(Uint8Array)),So=Zn("HTMLFormElement"),Oo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Eo=Zn("RegExp"),To=(e,t)=>{var n=Object.getOwnPropertyDescriptors(e);let o={};bo(n,(n,i)=>{var r;!1!==(r=t(n,i,e))&&(o[i]=r||n)}),Object.defineProperties(e,o)};let Po=Zn("AsyncFunction"),Co=((e,t)=>{return e?setImmediate:t?(n="axios@"+Math.random(),o=[],wo.addEventListener("message",({source:e,data:t})=>{e===wo&&t===n&&o.length&&o.shift()()},!1),e=>{o.push(e),wo.postMessage(n,"*")}):e=>setTimeout(e);var n,o})("function"==typeof setImmediate,ro(wo.postMessage)),No="undefined"!=typeof queueMicrotask?queueMicrotask.bind(wo):"undefined"!=typeof process&&process.nextTick||Co;var $o={isArray:Jn,isArrayBuffer:oo,isBuffer:no,isFormData:e=>{var t;return e&&("function"==typeof FormData&&e instanceof FormData||ro(e.append)&&("formdata"===(t=Qn(e))||"object"===t&&ro(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&oo(e.buffer)},isString:io,isNumber:so,isBoolean:e=>!0===e||!1===e,isObject:ao,isPlainObject:lo,isEmptyObject:e=>{if(!ao(e)||no(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:go,isRequest:mo,isResponse:vo,isHeaders:_o,isUndefined:eo,isDate:co,isFile:uo,isBlob:ho,isRegExp:Eo,isFunction:ro,isStream:e=>ao(e)&&ro(e.pipe),isURLSearchParams:fo,isTypedArray:ko,isFileList:po,forEach:bo,merge:function e(){let t=(xo(this)&&this||{}).caseless,n={};var o=(o,i)=>{i=t&&yo(n,i)||i,lo(n[i])&&lo(o)?n[i]=e(n[i],o):lo(o)?n[i]=e({},o):Jn(o)?n[i]=o.slice():n[i]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&bo(arguments[e],o);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(bo(t,(t,o)=>{n&&ro(t)?e[o]=Yn(t,n):e[o]=t},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>65279===e.charCodeAt(0)?e.slice(1):e,inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{var i,r;let s;var a={};if(t=t||{},null!=e)do{for(s=(i=Object.getOwnPropertyNames(e)).length;0<s--;)r=i[s],o&&!o(r,e,t)||a[r]||(t[r]=e[r],a[r]=!0)}while((e=!1!==n&&Gn(e))&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Qn,kindOfTest:Zn,endsWith:(e,t,n)=>(e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length,-1!==(e=e.indexOf(t,n))&&e===n),toArray:e=>{if(!e)return null;if(Jn(e))return e;let t=e.length;if(!so(t))return null;for(var n=new Array(t);0<t--;)n[t]=e[t];return n},forEachEntry:(e,t)=>{for(var n=(e&&e[qn]).call(e);(o=n.next())&&!o.done;){var o=o.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{for(var n,o=[];null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:So,hasOwnProperty:Oo,hasOwnProp:Oo,reduceDescriptors:To,freezeMethods:e=>{To(e,(t,n)=>{if(ro(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var o=e[n];ro(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{let n={};var o=e=>{e.forEach(e=>{n[e]=!0})};return Jn(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:yo,global:wo,isContextDefined:xo,isSpecCompliantForm:function(e){return!!(e&&ro(e.append)&&"FormData"===e[Xn]&&e[qn])},toJSONObject:e=>{let t=new Array(10),n=(e,o)=>{if(ao(e)){if(0<=t.indexOf(e))return;if(no(e))return e;if(!("toJSON"in e)){t[o]=e;let i=Jn(e)?[]:{};return bo(e,(e,t)=>{e=n(e,o+1),eo(e)||(i[t]=e)}),t[o]=void 0,i}}return e};return n(e,0)},isAsyncFn:Po,isThenable:e=>e&&(ao(e)||ro(e))&&ro(e.then)&&ro(e.catch),setImmediate:Co,asap:No,isIterable:e=>null!=e&&ro(e[qn])};function Ao(e,t,n,o,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status||null)}$o.inherits(Ao,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$o.toJSONObject(this.config),code:this.code,status:this.status}}});let Mo=Ao.prototype,Lo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Lo[e]={value:e}}),Object.defineProperties(Ao,Lo),Object.defineProperty(Mo,"isAxiosError",{value:!0}),Ao.from=(e,t,n,o,i,r)=>{var s=Object.create(Mo);return $o.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Ao.call(s,e.message,t,n,o,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};function Do(e){return $o.isPlainObject(e)||$o.isArray(e)}function Io(e){return $o.endsWith(e,"[]")?e.slice(0,-2):e}function Ro(e,t,n){return e?e.concat(t).map(function(e,t){return e=Io(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let Ho=$o.toFlatObject($o,{},null,function(e){return/^is[A-Z]/.test(e)});function Fo(e,t,n){if(!$o.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;let o=(n=$o.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!$o.isUndefined(t[e])})).metaTokens,i=n.visitor||c,r=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&$o.isSpecCompliantForm(t);if(!$o.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if($o.isDate(e))return e.toISOString();if($o.isBoolean(e))return e.toString();if(!a&&$o.isBlob(e))throw new Ao("Blob is not supported. Use a Buffer instead.");return $o.isArrayBuffer(e)||$o.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let a=e;if(e&&!i&&"object"==typeof e)if($o.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if($o.isArray(e)&&function(e){return $o.isArray(e)&&!e.some(Do)}(e)||($o.isFileList(e)||$o.endsWith(n,"[]"))&&(a=$o.toArray(e)))return n=Io(n),a.forEach(function(e,o){$o.isUndefined(e)||null===e||t.append(!0===s?Ro([n],o,r):null===s?n:n+"[]",l(e))}),!1;return!!Do(e)||(t.append(Ro(i,n,r),l(e)),!1)}let u=[],h=Object.assign(Ho,{defaultVisitor:c,convertValue:l,isVisitable:Do});if($o.isObject(e))return function e(n,o){if(!$o.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+o.join("."));u.push(n),$o.forEach(n,function(n,r){!0===(!($o.isUndefined(n)||null===n)&&i.call(t,n,$o.isString(r)?r.trim():r,o,h))&&e(n,o?o.concat(r):[r])}),u.pop()}}(e),t;throw new TypeError("data must be an object")}function Vo(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function jo(e,t){this._pairs=[],e&&Fo(e,this,t)}let zo=jo.prototype;function Uo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bo(e,t,n){if(t){var o=n&&n.encode||Uo,i=(n=$o.isFunction(n)?{serialize:n}:n)&&n.serialize;let r;(r=i?i(t,n):$o.isURLSearchParams(t)?t.toString():new jo(t,n).toString(o))&&(-1!==(i=e.indexOf("#"))&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r)}return e}zo.append=function(e,t){this._pairs.push([e,t])};class Yo{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$o.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Wo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!(zo.toString=function(e){let t=e?function(t){return e.call(this,t,Vo)}:Vo;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")})},Go={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:jo,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let qo="undefined"!=typeof window&&"undefined"!=typeof document,Xo="object"==typeof navigator&&navigator||void 0,Qo=qo&&(!Xo||["ReactNative","NativeScript","NS"].indexOf(Xo.product)<0),Zo="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ko=qo&&window.location.href||"http://localhost";var Jo={...Object.freeze({__proto__:null,hasBrowserEnv:qo,hasStandardBrowserEnv:Qo,hasStandardBrowserWebWorkerEnv:Zo,navigator:Xo,origin:Ko}),...Go};function ei(e){if($o.isFormData(e)&&$o.isFunction(e.entries)){let t={};return $o.forEachEntry(e,(e,n)=>{!function e(t,n,o,i){var r,s,a;return"__proto__"===(a=t[i++])||(r=Number.isFinite(+a),s=i>=t.length,a=!a&&$o.isArray(o)?o.length:a,s?$o.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n:(o[a]&&$o.isObject(o[a])||(o[a]=[]),e(t,n,o[a],i)&&$o.isArray(o[a])&&(o[a]=function(e){var t={},n=Object.keys(e);let o;var i,r=n.length;for(o=0;o<r;o++)t[i=n[o]]=e[i];return t}(o[a]))),!r)}(function(e){return $o.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,t,0)}),t}return null}let ti={transitional:Wo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n=t.getContentType()||"",o=-1<n.indexOf("application/json"),i=$o.isObject(e),r=(i&&$o.isHTMLForm(e)&&(e=new FormData(e)),$o.isFormData(e));if(r)return o?JSON.stringify(ei(e)):e;if($o.isArrayBuffer(e)||$o.isBuffer(e)||$o.isStream(e)||$o.isFile(e)||$o.isBlob(e)||$o.isReadableStream(e))return e;if($o.isArrayBufferView(e))return e.buffer;if($o.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(-1<n.indexOf("application/x-www-form-urlencoded"))return function(e,t){return Fo(e,new Jo.classes.URLSearchParams,{visitor:function(e,t,n,o){return Jo.isNode&&$o.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((r=$o.isFileList(e))||-1<n.indexOf("multipart/form-data"))return Fo(r?{"files[]":e}:e,(n=this.env&&this.env.FormData)&&new n,this.formSerializer)}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if($o.isString(e))try{return(t||JSON.parse)(e),$o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ti.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(!$o.isResponse(e)&&!$o.isReadableStream(e)&&e&&$o.isString(e)&&(n&&!this.responseType||o)){n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Ao.from(e,Ao.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Jo.classes.FormData,Blob:Jo.classes.Blob},validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}},ni=($o.forEach(["delete","get","head","post","put","patch"],e=>{ti.headers[e]={}}),$o.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]));let oi=Symbol("internals");function ii(e){return e&&String(e).trim().toLowerCase()}function ri(e){return!1===e||null==e?e:$o.isArray(e)?e.map(ri):String(e)}function si(e,t,n,o,i){return $o.isFunction(o)?o.call(this,t,n):$o.isString(t=i?n:t)?$o.isString(o)?-1!==t.indexOf(o):$o.isRegExp(o)?o.test(t):void 0:void 0}let ai=class{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function i(e,t,n){var i=ii(t);if(!i)throw new Error("header name must be a non-empty string");(i=$o.findKey(o,i))&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=ri(e))}var r=(e,t)=>$o.forEach(e,(e,n)=>i(e,n,t));if($o.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if($o.isString(e)&&(e=e.trim())&&!(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))(e))r((e=>{let t,n,o,i={};return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),t=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!t||i[t]&&ni[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i})(e),t);else if($o.isObject(e)&&$o.isIterable(e)){var s,a,l={};for(a of e){if(!$o.isArray(a))throw TypeError("Object iterator must return a key-value pair");l[s=a[0]]=(s=l[s])?$o.isArray(s)?[...s,a[1]]:[s,a[1]]:a[1]}r(l,t)}else null!=e&&i(t,e,n);return this}get(e,t){if((e=ii(e))&&(e=$o.findKey(this,e))){var n=this[e];if(!t)return n;if(!0===t)return function(e){for(var t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=o.exec(e);)n[t[1]]=t[2];return n}(n);if($o.isFunction(t))return t.call(this,n,e);if($o.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}has(e,t){return!!(e=ii(e))&&!(!(e=$o.findKey(this,e))||void 0===this[e]||t&&!si(0,this[e],e,t))}delete(e,t){let n=this,o=!1;function i(e){(e=ii(e))&&(e=$o.findKey(n,e))&&(!t||si(0,n[e],e,t))&&(delete n[e],o=!0)}return $o.isArray(e)?e.forEach(i):i(e),o}clear(e){var t=Object.keys(this);let n=t.length,o=!1;for(;n--;){var i=t[n];e&&!si(0,this[i],i,e,!0)||(delete this[i],o=!0)}return o}normalize(e){let t=this,n={};return $o.forEach(this,(o,i)=>{var r=$o.findKey(n,i);r?(t[r]=ri(o),delete t[i]):((r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim())!==i&&delete t[i],t[r]=ri(o),n[r]=!0)}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return $o.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&$o.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[oi]=this[oi]={accessors:{}}).accessors,n=this.prototype;function o(e){var o=ii(e);t[o]||(function(e,t){let n=$o.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[o]=!0)}return $o.isArray(e)?e.forEach(o):o(e),this}};function li(e,t){let n=this||ti;var o=t||n;let i=ai.from(o.headers),r=o.data;return $o.forEach(e,function(e){r=e.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function ci(e){return!(!e||!e.__CANCEL__)}function ui(e,t,n){Ao.call(this,null==e?"canceled":e,Ao.ERR_CANCELED,t,n),this.name="CanceledError"}function hi(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Ao("Request failed with status code "+n.status,[Ao.ERR_BAD_REQUEST,Ao.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ai.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$o.reduceDescriptors(ai.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),$o.freezeMethods(ai),$o.inherits(ui,Ao,{__CANCEL__:!0});let di=(e,t,n=3)=>{let o=0,i=function(e,t){e=e||10;let n,o=new Array(e),i=new Array(e),r=0,s=0;return t=void 0!==t?t:1e3,function(a){var l=Date.now(),c=i[s];n=n||l,o[r]=a,i[r]=l;let u=s,h=0;for(;u!==r;)h+=o[u++],u%=e;return(r=(r+1)%e)===s&&(s=(s+1)%e),l-n<t||!(a=c&&l-c)?void 0:Math.round(1e3*h/a)}}(50,250);return function(e,t){let n,o,i=0,r=1e3/t,s=(t,r=Date.now())=>{i=r,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{var t=Date.now(),a=t-i;a>=r?s(e,t):(n=e,o=o||setTimeout(()=>{o=null,s(n)},r-a))},()=>n&&s(n)]}(n=>{var r=n.loaded,s=n.lengthComputable?n.total:void 0,a=i(l=r-o),l={loaded:o=r,total:s,progress:s?r/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&r<=s?(s-r)/a:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0};e(l)},n)},pi=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},fi=e=>(...t)=>$o.asap(()=>e(...t));var gi=Jo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Jo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Jo.origin),Jo.navigator&&/(msie|trident)/i.test(Jo.navigator.userAgent)):()=>!0,mi=Jo.hasStandardBrowserEnv?{write(e,t,n,o,i,r){e=[e+"="+encodeURIComponent(t)],$o.isNumber(n)&&e.push("expires="+new Date(n).toGMTString()),$o.isString(o)&&e.push("path="+o),$o.isString(i)&&e.push("domain="+i),!0===r&&e.push("secure"),document.cookie=e.join("; ")},read:e=>(e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)")))?decodeURIComponent(e[3]):null,remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function vi(e,t,n){var o=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}let _i=e=>e instanceof ai?{...e}:e;function bi(e,t){t=t||{};let n={};function o(e,t,n,o){return $o.isPlainObject(e)&&$o.isPlainObject(t)?$o.merge.call({caseless:o},e,t):$o.isPlainObject(t)?$o.merge({},t):$o.isArray(t)?t.slice():t}function i(e,t,n,i){return $o.isUndefined(t)?$o.isUndefined(e)?void 0:o(void 0,e,0,i):o(e,t,0,i)}function r(e,t){if(!$o.isUndefined(t))return o(void 0,t)}function s(e,t){return $o.isUndefined(t)?$o.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function a(n,i,r){return r in t?o(n,i):r in e?o(void 0,n):void 0}let l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>i(_i(e),_i(t),0,!0)};return $o.forEach(Object.keys({...e,...t}),function(o){var r=l[o]||i,s=r(e[o],t[o],o);$o.isUndefined(s)&&r!==a||(n[o]=s)}),n}var yi=e=>{var t,n=bi({},e);let{data:o,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:l}=n;return n.headers=a=ai.from(a),n.url=Bo(vi(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),$o.isFormData(o)&&(Jo.hasStandardBrowserEnv||Jo.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):!1!==(e=a.getContentType())&&([e,...t]=e?e.split(";").map(e=>e.trim()).filter(Boolean):[],a.setContentType([e||"multipart/form-data",...t].join("; ")))),Jo.hasStandardBrowserEnv&&((i=i&&$o.isFunction(i)?i(n):i)||!1!==i&&gi(n.url))&&(e=r&&s&&mi.read(s))&&a.set(r,e),n};var wi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o=yi(e);var i=o.data,r=ai.from(o.headers).normalize();let s,a,l,{responseType:c,onUploadProgress:u,onDownloadProgress:h}=o;function d(){a&&a(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let p=new XMLHttpRequest;function f(){var o;p&&(o=ai.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),hi(function(e){t(e),d()},function(e){n(e),d()},{data:c&&"text"!==c&&"json"!==c?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:o,config:e,request:p}),p=null)}p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout,"onloadend"in p?p.onloadend=f:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(f)},p.onabort=function(){p&&(n(new Ao("Request aborted",Ao.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new Ao("Network Error",Ao.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";var i=o.transitional||Wo;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Ao(t,i.clarifyTimeoutError?Ao.ETIMEDOUT:Ao.ECONNABORTED,e,p)),p=null},void 0===i&&r.setContentType(null),"setRequestHeader"in p&&$o.forEach(r.toJSON(),function(e,t){p.setRequestHeader(t,e)}),$o.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),c&&"json"!==c&&(p.responseType=o.responseType),h&&([r,l]=di(h,!0),p.addEventListener("progress",r)),u&&p.upload&&([r,a]=di(u),p.upload.addEventListener("progress",r),p.upload.addEventListener("loadend",a)),(o.cancelToken||o.signal)&&(s=t=>{p&&(n(!t||t.type?new ui(null,e,p):t),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal)&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)),r=function(e){return(e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e))&&e[1]||""}(o.url),r&&-1===Jo.protocols.indexOf(r)?n(new Ao("Unsupported protocol "+r+":",Ao.ERR_BAD_REQUEST,e)):p.send(i||null)})};let xi=(e,t)=>{var n=(e=e?e.filter(Boolean):[]).length;if(t||n){let o,i=new AbortController,r=function(e){o||(o=!0,a(),e=e instanceof Error?e:this.reason,i.abort(e instanceof Ao?e:new ui(e instanceof Error?e.message:e)))},s=t&&setTimeout(()=>{s=null,r(new Ao(`timeout ${t} of ms exceeded`,Ao.ETIMEDOUT))},t),a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};return e.forEach(e=>e.addEventListener("abort",r)),(n=i.signal).unsubscribe=()=>$o.asap(a),n}},ki=function*(e,t){var n,o=e.byteLength;if(o<t)yield e;else{let i=0;for(;i<o;)n=i+t,yield e.slice(i,n),i=n}},Si=async function*(e){if(e[Symbol.asyncIterator])yield*e;else{var t=e.getReader();try{for(;;){var{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}}},Oi=(e,t,n,o)=>{let i,r=async function*(e,t){for await(var n of Si(e))yield*ki(n,t)}(e,t),s=0,a=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{var t,o,{done:i,value:l}=await r.next();i?(a(),e.close()):(t=l.byteLength,n&&(o=s+=t,n(o)),e.enqueue(new Uint8Array(l)))}catch(e){throw a(e),e}},cancel:e=>(a(e),r.return())},{highWaterMark:2})},Ei="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ti=Ei&&"function"==typeof ReadableStream,Pi=Ei&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ci=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ni=Ti&&Ci(()=>{let e=!1;var t=new Request(Jo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$i=Ti&&Ci(()=>$o.isReadableStream(new Response("").body)),Ai={stream:$i&&(e=>e.body)},Mi=(Ei&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{Ai[t]||(Ai[t]=$o.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new Ao(`Response type '${t}' is not supported`,Ao.ERR_NOT_SUPPORT,n)})})})(new Response),async e=>null==e?0:$o.isBlob(e)?e.size:$o.isSpecCompliantForm(e)?(await new Request(Jo.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:$o.isArrayBufferView(e)||$o.isArrayBuffer(e)?e.byteLength:($o.isURLSearchParams(e)&&(e+=""),$o.isString(e)?(await Pi(e)).byteLength:void 0));var Li=Ei&&(async e=>{let t,n,{url:o,method:i,data:r,signal:s,cancelToken:a,timeout:l,onDownloadProgress:c,onUploadProgress:u,responseType:h,headers:d,withCredentials:p="same-origin",fetchOptions:f}=yi(e),g=(h=h?(h+"").toLowerCase():"text",xi([s,a&&a.toAbortSignal()],l)),m=g&&g.unsubscribe&&(()=>{g.unsubscribe()});try{if(u&&Ni&&"get"!==i&&"head"!==i&&0!==(n=await(async(e,t)=>null==(e=$o.toFiniteNumber(e.getContentLength()))?Mi(t):e)(d,r))){var v,_,b=new Request(o,{method:"POST",body:r,duplex:"half"});let e;$o.isFormData(r)&&(e=b.headers.get("content-type"))&&d.setContentType(e),b.body&&([v,_]=pi(n,di(fi(u))),r=Oi(b.body,65536,v,_))}$o.isString(p)||(p=p?"include":"omit");var y="credentials"in Request.prototype;t=new Request(o,{...f,signal:g,method:i.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:y?p:void 0});let s=await fetch(t,f);var w=$i&&("stream"===h||"response"===h);if($i&&(c||w&&m)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});var x=$o.toFiniteNumber(s.headers.get("content-length"));let[t,n]=c&&pi(x,di(fi(c),!0))||[];s=new Response(Oi(s.body,65536,t,()=>{n&&n(),m&&m()}),e)}h=h||"text";let a=await Ai[$o.findKey(Ai,h)||"text"](s,e);return!w&&m&&m(),await new Promise((n,o)=>{hi(n,o,{data:a,headers:ai.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(i){if(m&&m(),i&&"TypeError"===i.name&&/Load failed|fetch/i.test(i.message))throw Object.assign(new Ao("Network Error",Ao.ERR_NETWORK,e,t),{cause:i.cause||i});throw Ao.from(i,i&&i.code,e,t)}});let Di={http:null,xhr:wi,fetch:Li},Ii=($o.forEach(Di,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}),e=>"- "+e),Ri=e=>$o.isFunction(e)||null===e||!1===e;var Hi=e=>{var t,n=(e=$o.isArray(e)?e:[e]).length;let o;var i,r={};for(let i=0;i<n;i++){let n;if(o=t=e[i],!Ri(t)&&void 0===(o=Di[(n=String(t)).toLowerCase()]))throw new Ao(`Unknown adapter '${n}'`);if(o)break;r[n||"#"+i]=o}if(o)return o;throw i=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),new Ao("There is no suitable adapter to dispatch the request "+(n?1<i.length?"since :\n"+i.map(Ii).join("\n"):" "+Ii(i[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")};function Fi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ui(null,e)}function Vi(e){return Fi(e),e.headers=ai.from(e.headers),e.data=li.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Hi(e.adapter||ti.adapter)(e).then(function(t){return Fi(e),t.data=li.call(e,e.transformResponse,t),t.headers=ai.from(t.headers),t},function(t){return ci(t)||(Fi(e),t&&t.response&&(t.response.data=li.call(e,e.transformResponse,t.response),t.response.headers=ai.from(t.response.headers))),Promise.reject(t)})}let ji="1.11.0",zi={},Ui=(["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}),{});zi.transitional=function(e,t,n){function o(e,t){return"[Axios v"+ji+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,r)=>{if(!1===e)throw new Ao(o(i," has been removed"+(t?" in "+t:"")),Ao.ERR_DEPRECATED);return t&&!Ui[i]&&(Ui[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,r)}},zi.spelling=function(e){return(t,n)=>(console.warn(n+" is likely a misspelling of "+e),!0)};var Bi={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ao("options must be an object",Ao.ERR_BAD_OPTION_VALUE);var o=Object.keys(e);let i=o.length;for(;0<i--;){var r=o[i];if(s=t[r]){var s,a=e[r];if(!0!==(s=void 0===a||s(a,r,e)))throw new Ao("option "+r+" must be "+s,Ao.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ao("Unknown option "+r,Ao.ERR_BAD_OPTION)}},validators:zi};let Yi=Bi.validators,Wi=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Yo,response:new Yo}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error,e=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?e&&!String(n.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+e):n.stack=e}catch(t){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:o,headers:i}=t=bi(this.defaults,t);void 0!==n&&Bi.assertOptions(n,{silentJSONParsing:Yi.transitional(Yi.boolean),forcedJSONParsing:Yi.transitional(Yi.boolean),clarifyTimeoutError:Yi.transitional(Yi.boolean)},!1),null!=o&&($o.isFunction(o)?t.paramsSerializer={serialize:o}:Bi.assertOptions(o,{encode:Yi.function,serialize:Yi.function},!0)),void 0===t.allowAbsoluteUrls&&(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Bi.assertOptions(t,{baseUrl:Yi.spelling("baseURL"),withXsrfToken:Yi.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),e=i&&$o.merge(i.common,i[t.method]),i&&$o.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=ai.concat(e,i);let r=[],s=!0,a=(this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}),[]);this.interceptors.response.forEach(function(e){a.push(e.fulfilled,e.rejected)});let l,c,u=0;if(s){c=r.length;let n=t;for(u=0;u<c;){var h=r[u++],d=r[u++];try{n=h(n)}catch(e){d.call(this,e);break}}try{l=Vi.call(this,n)}catch(e){return Promise.reject(e)}for(u=0,c=a.length;u<c;)l=l.then(a[u++],a[u++])}else{var p=[Vi.bind(this),void 0];for(p.unshift(...r),p.push(...a),c=p.length,l=Promise.resolve(t);u<c;)l=l.then(p[u++],p[u++])}return l}getUri(e){return Bo(vi((e=bi(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}},Gi=($o.forEach(["delete","get","head","options"],function(e){Wi.prototype[e]=function(t,n){return this.request(bi(n||{},{method:e,url:t,data:(n||{}).data}))}}),$o.forEach(["post","put","patch"],function(e){function t(t){return function(n,o,i){return this.request(bi(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Wi.prototype[e]=t(),Wi.prototype[e+"Form"]=t(!0)}),class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t,n=(this.promise=new Promise(function(e){t=e}),this);this.promise.then(e=>{if(n._listeners){let t=n._listeners.length;for(;0<t--;)n._listeners[t](e);n._listeners=null}}),this.promise.then=e=>{let t;return(e=new Promise(e=>{n.subscribe(e),t=e}).then(e)).cancel=function(){n.unsubscribe(t)},e},e(function(e,o,i){n.reason||(n.reason=new ui(e,o,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){this._listeners&&-1!==(e=this._listeners.indexOf(e))&&this._listeners.splice(e,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}});let qi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qi).forEach(([e,t])=>{qi[t]=e});let Xi=function e(t){var n=new Wi(t),o=Yn(Wi.prototype.request,n);return $o.extend(o,Wi.prototype,n,{allOwnKeys:!0}),$o.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(bi(t,n))},o}(ti),{Axios:Qi,AxiosError:Zi,CanceledError:Ki,isCancel:Ji,CancelToken:er,VERSION:tr,all:nr,Cancel:or,isAxiosError:ir,spread:rr,toFormData:sr,AxiosHeaders:ar,HttpStatusCode:lr,formToJSON:cr,getAdapter:ur,mergeConfig:hr}=(Xi.Axios=Wi,Xi.CanceledError=ui,Xi.CancelToken=Gi,Xi.isCancel=ci,Xi.VERSION=ji,Xi.toFormData=Fo,Xi.AxiosError=Ao,Xi.Cancel=Xi.CanceledError,Xi.all=function(e){return Promise.all(e)},Xi.spread=function(e){return function(t){return e.apply(null,t)}},Xi.isAxiosError=function(e){return $o.isObject(e)&&!0===e.isAxiosError},Xi.mergeConfig=bi,Xi.AxiosHeaders=ai,Xi.formToJSON=e=>ei($o.isHTMLForm(e)?new FormData(e):e),Xi.getAdapter=Hi,Xi.HttpStatusCode=qi,Xi.default=Xi);var dr,pr={};function fr(){function e(e,t){return void 0===t&&(t=1),"rgba("+[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16),t].join(",")+")"}function t(t,n,o){switch(o){case"webvtt.font.color":case"webvtt.font.opacity":var i=Services.prefs.getCharPref("webvtt.font.color"),r=Services.prefs.getIntPref("webvtt.font.opacity")/100;g.fontSet=e(i,r);break;case"webvtt.font.scale":m=Services.prefs.getIntPref("webvtt.font.scale")/100;break;case"webvtt.bg.color":case"webvtt.bg.opacity":i=Services.prefs.getCharPref("webvtt.bg.color"),r=Services.prefs.getIntPref("webvtt.bg.opacity")/100,g.backgroundSet=e(i,r);break;case"webvtt.edge.color":case"webvtt.edge.type":i=Services.prefs.getIntPref("webvtt.edge.type"),r=Services.prefs.getCharPref("webvtt.edge.color"),g.edgeSet=["","0px 0px ","4px 4px 4px ","-2px -2px ","2px 2px "][i]+e(r)}}function n(){}function o(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function i(e){function t(e,t,n,o){return 3600*(0|e)+60*(0|t)+(0|n)+(0|o)/1e3}return(e=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/))?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59<e[1]?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function r(){this.values=v(null)}function s(e,t,n,o){var i,r,s=o?e.split(o):[e];for(i in s)"string"==typeof s[i]&&2===(r=s[i].split(n)).length&&t(r[0],r[1])}function a(e,t){function n(e){return _[e]}for(var o,r,s,a,l,c,u,h=e.document.createElement("div"),d=h,p=[];null!==(u=void 0,u=t?(u=(u=t.match(/^([^<]*)(<[^>]+>?)?/))[1]||u[2],t=t.substr(u.length),u):null);)"<"===u[0]?"/"===u[1]?p.length&&p[p.length-1]===u.substr(2).replace(">","")&&(p.pop(),d=d.parentNode):(s=i(u.substr(1,u.length-2)))?(o=e.document.createProcessingInstruction("timestamp",s),d.appendChild(o)):(r=u.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(s=r[1],a=r[3],c=l=void 0,o=(c=b[s])?((l=e.document.createElement(c)).localName=c,(c=y[s])&&a&&(l[c]=a.trim()),l):null)&&(s=d,w[(c=o).localName]&&w[c.localName]!==s.localName||(r[2]&&(o.className=r[2].substr(1).replace("."," ")),p.push(r[1]),d.appendChild(o),d=o)):d.appendChild(e.document.createTextNode((e=>{for(;r=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(r[0],n);return e})(u)));return h}function l(e){var t=[],n="";if(e&&e.childNodes)for(i(t,e);n=function e(t){var n,o,r;return t&&t.length?(o=(n=t.pop()).textContent||n.innerText)?(r=o.match(/^.*(\n|\r)/))?r[t.length=0]:o:"ruby"===n.tagName?e(t):n.childNodes?(i(t,n),e(t)):void 0:null}(t);)for(var o=0;o<n.length;o++)if((e=>{for(var t=0;t<x.length;t++){var n=x[t];if(e>=n[0]&&e<=n[1])return 1}})(n.charCodeAt(o)))return"rtl";return"ltr";function i(e,t){for(var n=t.childNodes.length-1;0<=n;n--)e.push(t.childNodes[n])}}function c(){}function u(e,t,n){var o="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",r="rgba(0, 0, 0, 0.8)",s="",u=(i=(void 0!==g&&(i=g.fontSet,r=g.backgroundSet,s=g.edgeSet),o&&(i="rgb(255, 255, 255)",r="rgb(0, 0, 0)"),c.call(this),this.cue=t,this.cueDiv=a(e,t.text),{color:i,backgroundColor:r,textShadow:s,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"}),o||(i.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",i.unicodeBidi="plaintext"),this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},o||(i.direction=l(this.cueDiv),i.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(i),this.div.appendChild(this.cueDiv),0);switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function h(e){var t,n,o,i,r="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent);e.div&&(t=e.div.offsetHeight,n=e.div.offsetWidth,o=e.div.offsetTop,i=(i=(i=e.div.childNodes)&&i[0])&&i.getClientRects&&i.getClientRects(),e=e.div.getBoundingClientRect(),i=i?Math.max(i[0]&&i[0].height||0,e.height/i.length):0),this.left=e.left,this.right=e.right,this.top=e.top||o,this.height=e.height||t,this.bottom=e.bottom||o+(e.height||t),this.width=e.width||n,this.lineHeight=void 0!==i?i:e.lineHeight,r&&!this.lineHeight&&(this.lineHeight=13)}function d(e,t,n,o){var i,r=new h(t),s=t.cue,a=(e=>{if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,o=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&o++;return-1*++o})(s),l=[];if(s.snapToLines){switch(s.vertical){case"":l=["+y","-y"],i="height";break;case"rl":l=["+x","-x"],i="width";break;case"lr":l=["-x","+x"],i="width"}var c=r.lineHeight,u=c*Math.round(a),d=n[i]+c,p=l[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/c)*c),a<0&&(u+=""===s.vertical?n.height:n.width,l=l.reverse()),r.move(p,u)}else{var f=r.lineHeight/n.height*100;switch(s.lineAlign){case"middle":a-=f/2;break;case"end":a-=f}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}l=["+y","-x","+x","-y"],r=new h(t)}d=((e,t)=>{for(var i,r=new h(e),s=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(n,t[a])||e.within(n)&&e.overlapsAny(o);)e.move(t[a]);if(e.within(n))return e;var l=e.intersectPercentage(n);l<s&&(i=new h(e),s=l),e=new h(r)}return i||r})(r,l),t.move(d.toCSSCompatValues(n))}function p(){}var f,g,m,v,_,b,y,w,x;return dr||(f=pr,m=dr=1,"undefined"!=typeof Services&&(g={},["webvtt.font.color","webvtt.font.opacity","webvtt.font.scale","webvtt.bg.color","webvtt.bg.opacity","webvtt.edge.color","webvtt.edge.type"].forEach(function(e){t(0,0,e),Services.prefs.addObserver(e,t,!1)})),v=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=e,new n},((o.prototype=v(Error.prototype)).constructor=o).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},r.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var o=0;o<n.length;++o)if(t===n[o]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}},_={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},b={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},y={v:"title",lang:"lang"},w={rt:"ruby"},x=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]],c.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},c.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(u.prototype=v(c.prototype)).constructor=u,h.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},h.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},h.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},h.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},h.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},h.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},h.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},h.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,o=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||o,height:e.height||t,bottom:e.bottom||o+(e.height||t),width:e.width||n}},p.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},p.convertCueToDOMTree=function(e,t){return e&&t?a(e,t):null},p.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var o=e.document.createElement("div");if(o.style.position="absolute",o.style.left="0",o.style.right="0",o.style.top="0",o.style.bottom="0",o.style.margin="1.5%",n.appendChild(o),(e=>{for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1})(t))for(var i,r,s=[],a=h.getSimpleBoxPosition(o),l={font:Math.round(.05*a.height*100)/100*m+"px sans-serif"},c=0;c<t.length;c++)i=new u(e,r=t[c],l),o.appendChild(i.div),d(0,i,a,s),r.displayState=i.div,s.push(h.getSimpleBoxPosition(i));else for(var p=0;p<t.length;p++)o.appendChild(t[p].displayState)},(p.Parser=function(e,t){this.window=e,this.state="INITIAL",this.buffer="",this.decoder=t||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof o))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var o=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),o}function a(e){s(e,function(e,n){var o;"Region"===e&&(e=n,o=new r,s(e,function(e,t){switch(e){case"id":o.set(e,t);break;case"width":o.percent(e,t);break;case"lines":o.integer(e,t);break;case"regionanchor":case"viewportanchor":var n,i=t.split(",");2===i.length&&((n=new r).percent("x",i[0]),n.percent("y",i[1]),n.has("x")&&n.has("y"))&&(o.set(e+"X",n.get("x")),o.set(e+"Y",n.get("y")));break;case"scroll":o.alt(e,t,["up"])}},/=/,/\s/),o.has("id"))&&((e=new t.window.VTTRegion).width=o.get("width",100),e.lines=o.get("lines",3),e.regionAnchorX=o.get("regionanchorX",0),e.regionAnchorY=o.get("regionanchorY",100),e.viewportAnchorX=o.get("viewportanchorX",0),e.viewportAnchorY=o.get("viewportanchorY",100),e.scroll=o.get("scroll",""),t.onregion&&t.onregion(e),t.regionList.push({id:o.get("id"),region:e}))},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var l,c=(l=n()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var u=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(u?u=!1:l=n(),t.state){case"HEADER":/:/.test(l)?a(l):l||(t.state="ID");continue;case"NOTE":l||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(l)){t.state="NOTE";break}if(!l)continue;if(t.cue=new t.window.VTTCue(0,0,""),t.state="CUE",-1===l.indexOf("--\x3e")){t.cue.id=l;continue}case"CUE":try{((e,t,n)=>{var a,l,c=e;function u(){var t=i(e);if(null===t)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+c);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function h(){e=e.replace(/^\s+/,"")}if(h(),t.startTime=u(),h(),"--\x3e"!==e.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+c);e=e.substr(3),h(),t.endTime=u(),h(),a=e,l=new r,s(a,function(e,t){switch(e){case"region":for(var o=n.length-1;0<=o;o--)if(n[o].id===t){l.set(e,n[o].region);break}break;case"vertical":l.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),r=i[0];l.integer(e,r),l.percent(e,r)&&l.set("snapToLines",!1),l.alt(e,r,["auto"]),2===i.length&&l.alt("lineAlign",i[1],["start","middle","end"]);break;case"position":i=t.split(","),l.percent(e,i[0]),2===i.length&&l.alt("positionAlign",i[1],["start","middle","end"]);break;case"size":l.percent(e,t);break;case"align":l.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),t.region=l.get("region",null),t.vertical=l.get("vertical",""),t.line=l.get("line","auto"),t.lineAlign=l.get("lineAlign","start"),t.snapToLines=l.get("snapToLines",!0),t.size=l.get("size",100),t.align=l.get("align","middle"),t.position=l.get("position","auto"),t.positionAlign=l.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)})(l,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==l.indexOf("--\x3e");if(!l||h&&(u=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=l;continue;case"BADCUE":l||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),!e.cue&&"HEADER"!==e.state||(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new o(o.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},f.WebVTT=p),pr}var gr,mr={exports:{}},vr={};var _r,br=mr.exports;function yr(){var e;return _r||(_r=1,mr.exports&&(br.VTTCue=br.VTTCue||function(){var e,t,n,o;return gr||(gr=1,e=vr,t="auto",n={"":!0,lr:!0,rl:!0},o={start:!0,middle:!0,end:!0,left:!0,right:!0},s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.VTTCue=e.VTTCue||s),vr;function i(e){return"string"==typeof e&&!!o[e.toLowerCase()]&&e.toLowerCase()}function r(e){for(var t=1;t<arguments.length;t++){var n,o=arguments[t];for(n in o)e[n]=o[n]}return e}function s(e,o,s){var a=this,l=/MSIE\s8\.0/.test(navigator.userAgent),c={},u=(l?a=document.createElement("custom"):c.enumerable=!0,a.hasBeenReset=!1,""),h=!1,d=e,p=o,f=s,g=null,m="",v=!0,_="auto",b="start",y=50,w="middle",x=50,k="middle";if(Object.defineProperty(a,"id",r({},c,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(a,"pauseOnExit",r({},c,{get:function(){return h},set:function(e){h=!!e}})),Object.defineProperty(a,"startTime",r({},c,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",r({},c,{get:function(){return p},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");p=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",r({},c,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",r({},c,{get:function(){return g},set:function(e){g=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",r({},c,{get:function(){return m},set:function(e){if(!1===(e="string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()))throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",r({},c,{get:function(){return v},set:function(e){v=!!e,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",r({},c,{get:function(){return _},set:function(e){if("number"!=typeof e&&e!==t)throw new SyntaxError("An invalid number or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",r({},c,{get:function(){return b},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",r({},c,{get:function(){return y},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",r({},c,{get:function(){return w},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",r({},c,{get:function(){return x},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",r({},c,{get:function(){return k},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");k=e,this.hasBeenReset=!0}})),a.displayState=void 0,l)return a}}().VTTCue),(e=br).VTTCue.prototype.toJSON=function(){var e={},t=this;return Object.keys(this).forEach(function(n){"getCueAsHTML"!==n&&"hasBeenReset"!==n&&"displayState"!==n&&(e[n]=t[n])}),e},e.VTTCue.create=function(t){if(!t.hasOwnProperty("startTime")||!t.hasOwnProperty("endTime")||!t.hasOwnProperty("text"))throw new Error("You must at least have start time, end time, and text.");var n,o=new e.VTTCue(t.startTime,t.endTime,t.text);for(n in t)o.hasOwnProperty(n)&&(o[n]=t[n]);return o},e.VTTCue.fromJSON=function(e){return this.create(JSON.parse(e))}),mr.exports}var wr,xr={exports:{}},kr={};var Sr,Or,Er,Tr=xr.exports;function Pr(){var e;return Sr||(Sr=1,xr.exports&&(Tr.VTTRegion=function(){var e;return wr||(wr=1,e={"":!0,up:!0},kr.VTTRegion=kr.VTTRegion||function(){var n=100,o=3,i=0,r=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(e){if(!t(e))throw new Error("Width must be between 0 and 100.");n=e}},lines:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");o=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!t(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!t(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!t(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!t(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(t){if(!1===(t="string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()))throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}),kr;function t(e){return"number"==typeof e&&0<=e&&e<=100}}().VTTRegion),(e=Tr).VTTRegion.create=function(t){var n,o=new e.VTTRegion;for(n in t)o.hasOwnProperty(n)&&(o[n]=t[n]);return o},e.VTTRegion.fromJSON=function(e){return this.create(JSON.parse(e))}),xr.exports}var Cr=(Er||(Er=1,Or={WebVTT:fr().WebVTT,VTTCue:yr().VTTCue,VTTRegion:Pr().VTTRegion}),Or),Nr=function(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){var o;"default"===n||n in e||(o=Object.getOwnPropertyDescriptor(t,n),Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}}))})}),Object.freeze(e)}({__proto__:null,default:n(Cr)},[Cr]);let $r=Nr.WebVTT;class Ar{constructor(e){this.vOffset=0,this.hOffset=0,this.call=e=>this.krpano.call(e),this.get=e=>this.krpano.get(e),this.set=(e,t)=>this.krpano.set(e,t),this.screentosphere=(e,t)=>this.krpano.screentosphere(e,t),this.spheretoscreen=(e,t)=>this.krpano.spheretoscreen(e,t),this.spheretospace=(e,t,n=1e3)=>{var o=Date.now();return{x:e=(this.krpano.set("sphere_h_"+o,e),this.krpano.set("sphere_v_"+o,t),this.krpano.set("sphere_d_"+o,n),this.krpano.call(`spheretospace('sphere_h_${o}', 'sphere_v_${o}', 'sphere_d_${o}', 'space_x_${o}', 'space_y_${o}', 'space_z_${o}')`),this.krpano.get("space_x_"+o)),y:this.krpano.get("space_y_"+o),z:this.krpano.get("space_z_"+o)}},this.spacetosphere=(e,t,n,o=1e3)=>{var i=Date.now();return{ath:e=(this.krpano.set("space_x_"+i,e),this.krpano.set("space_y_"+i,t),this.krpano.set("space_z_"+i,n),this.krpano.set("sphere_d_"+i,o),this.krpano.call(`spacetosphere('space_x_${i}', 'space_y_${i}', 'space_z_${i}', 'sphere_h_${i}', 'sphere_v_${i}', 'sphere_d_${i}')`),this.krpano.get("sphere_h_"+i)),atv:this.krpano.get("sphere_v_"+i)}},this.updateOffset=(e,t,n=!1)=>{var o,i;n&&(({hlookat:n,vlookat:o,fov:i}=this.get("view")),this.call(`delayedcall(0.2, lookto(${n+(e||-this.hOffset)},${o+(t||-this.vOffset)}, ${i}, smooth(720,-720,720), true, true););`)),this.hOffset=e||0,this.vOffset=t||0},this.getOffsets=()=>({hOffset:this.hOffset,vOffset:this.vOffset}),this.getView=()=>{var{hlookat:e,vlookat:t,fov:n,hfov:o,vfov:i}=this.get("view");return{hlookat:e-this.hOffset,vlookat:t-this.vOffset,fov:n,hfov:o,vfov:i}},this.getOriginalView=()=>{var{hlookat:e,vlookat:t}=this.get("view");return{hlookat:e,vlookat:t}},this.lookto=(e,t)=>{var n,o;on(e)&&on(t)&&!Number.isNaN(e)&&!Number.isNaN(t)&&(({hOffset:n=0,vOffset:o=0}=this.getOffsets()),this.krpano.call(`lookto(${e+n},${t+o});`))},this.krpano=e,this.onUpdateOffsets=new Xt.Signal,this.updateOffset=this.updateOffset.bind(this),this.onUpdateOffsets.add(this.updateOffset)}}class Mr{constructor(e){this.props=e,this.krpano=e.krpano,this.type=e.type||"image",this.url=e.url||"",this.keep=e.keep||!1,this.parent=e.parent||null,this.cursor=e.cursor||"poiter",this.maskchildren=e.maskchildren||!1,this.scalechildren=e.scalechildren||!1,this.zorder=e.zorder||void 0,this.align=e.align||"lefttop",this.edge=e.edge||this.align,this.x=e.x||null,this.y=e.y||null,this.rotate=e.rotate||0,this.width=e.width,this.height=e.height,this.scale=e.scale||1,this.alpha=e.alpha||1,this.crop=e.crop||null,this.onovercrop=e.onovercrop||null,this.ondowncrop=e.ondowncrop||null,this.bgcolor=e.bgcolor||0,this.bgalpha=e.bgalpha||0,this.bgborder=e.bgborder||0,this.bgroundedge=e.bgroundedge||0,this.bgshadow=e.bgshadow||null,this.bgcapture=e.bgcapture||!1,this.signals=e.signals,this.enabled=e.enabled||!1}}class Lr extends Mr{constructor(e){super(e),this.name=de,this.load=e=>{location&&"https:"!==location.protocol?(console.warn("HTTPS is required to use gyroscope plugin!"),e&&e(!1),this.signals.onLoadedPlugin.dispatch(this.name,!1)):(this.krpano.call(`\n addplugin(${this.name});\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].enabled, ${this.enabled});\n set(plugin[${this.name}].keep, true);\n set(plugin[${this.name}].devices, html5);\n set(plugin[${this.name}].softstart, 1);\n `),this.krpano.set(`plugin[${this.name}].onavailable`,()=>{e&&e(!0),this.signals.onLoadedPlugin.dispatch(this.name,!0)}),this.krpano.set(`plugin[${this.name}].onunavailable`,()=>{e&&e(!1),this.signals.onLoadedPlugin.dispatch(this.name,!1)}))},this.toggle=e=>{let t;return t=e||!this.krpano.get(`plugin[${this.name}].enabled`),this.krpano.call(`set(plugin[${this.name}].enabled, ${t})`),this.enabled=t},this.getEnabled=()=>this.enabled,this.destroy=()=>{},this.url=we.GYRO2}}class Dr extends Mr{constructor(e){super(e),this.wrapLayerId="",this.heading=0,this.headingoffset=90,this.fillcolor="0xffffff",this.fillalpha=.5,this.linewidth=0,this.linecolor="0xffffff",this.linealpha=.3,this.invert=!1,this.wrapLayer="",this.load=e=>{this.krpano.call(`\n addlayer(${this.wrapLayer});\n set(layer[${this.wrapLayer}].keep, ${this.keep});\n set(layer[${this.wrapLayer}].width, ${2*(this.width||0)});\n set(layer[${this.wrapLayer}].height, ${2*(this.height||0)});\n set(layer[${this.wrapLayer}].x, 0);\n set(layer[${this.wrapLayer}].y, 0);\n set(layer[${this.wrapLayer}].renderer, css3d);\n set(layer[${this.wrapLayer}].bgcapture, true);\n set(layer[${this.wrapLayer}].type, container);\n set(layer[${this.wrapLayer}].sprite.id, ${this.wrapLayerId});\n `),this.krpano.call(`\n addplugin(${this.name});\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].align, lefttop);\n set(plugin[${this.name}].edge, center);\n set(plugin[${this.name}].x, ${this.width});\n set(plugin[${this.name}].y, ${this.height});\n set(plugin[${this.name}].keep, ${this.keep});\n set(plugin[${this.name}].scale, ${this.scale});\n set(plugin[${this.name}].heading, ${this.heading});\n set(plugin[${this.name}].headingoffset, ${this.headingoffset});\n set(plugin[${this.name}].fillcolor, ${this.fillcolor});\n set(plugin[${this.name}].fillalpha, ${this.fillalpha});\n set(plugin[${this.name}].linewidth, ${this.linewidth});\n set(plugin[${this.name}].linecolor, ${this.linecolor});\n set(plugin[${this.name}].linealpha, ${this.linealpha});\n set(plugin[${this.name}].invert, ${this.invert});\n set(plugin[${this.name}].parent, "layer[${this.wrapLayer}]");\n `),e&&setTimeout(()=>{e()},500)},this.destroy=()=>{this.krpano.call(`removelayer(${this.wrapLayer}, true)`)},this.name=pe,this.wrapLayer="layer_"+this.name,this.wrapLayerId=`layer_${this.name}_wrapper`,this.heading=e.heading||0,this.headingoffset=e.headingoffset||0,this.fillcolor=e.fillcolor||"0xffffff",this.fillalpha=e.fillalpha||.5,this.linewidth=e.linewidth||0,this.linecolor=e.linecolor||"0xffffff",this.linealpha=e.linealpha||.3,this.invert=e.invert||!1,this.width=e.width||6,this.height=e.height||6,this.scale=e.scale||.25,this.updateHeading=this.updateHeading.bind(this)}updateHeading(e){this.heading=e,this.krpano.get(`plugin[${this.name}]`)&&this.krpano.call(`set(plugin[${this.name}].heading, ${this.heading});`)}}let Ir=class extends Mr{constructor(e){super(e),this.name=fe,this.timeout=null,this.url=we.SOUND_INTERFACE}load(e){this.krpano.call(`addplugin(${this.name});`),this.timeout=setInterval(()=>{var t=this.krpano.get(`plugin[${this.name}]`);t&&(this.timeout&&(clearInterval(this.timeout),this.timeout=null),t.onloaded=()=>{e&&e()},this.krpano.call(`\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].volume, 1.0);\n set(plugin[${this.name}].mute, false);\n set(plugin[${this.name}].panningmodel, simple);\n set(plugin[${this.name}].worldscale, 1.0);\n set(plugin[${this.name}].autopause, false);\n set(plugin[${this.name}].autounlock, true);\n `))},1e3/60)}destroy(){}};class Rr{constructor(e){this.language="vi",this.isMobileDevice=!1,this.isLookAt=!0,this.spheretoscreen=()=>this.krpano.spheretoscreen(this.ath,this.atv),this.props=e,this.icon=e.icon,this.signals=e.signals,this.krpano=e.krpano,this.isMobileDevice=an(this.krpano),this.metadata=e.metadata,this.id=e.id,this.code=e.code,this.focusingCode=(e=>e+"_focusing")(this.code),this.hoverCode=un(this.code),this.type=e.type,this.name=e.name||"hs"+(Date.now()+Math.random()|0),this.url=e.url||ke.MOVING,this.ath=e.ath||0,this.atv=e.atv||0,this.height=e.height||0,this.width=e.width||0,this.alpha=e.alpha||1,this.scale=e.scale||1,this.rotate=e.rotate||0,this.rx=e.rx||0,this.ry=e.ry||0,this.rz=e.rz||0,this.distorted=void 0!==e.distorted&&e.distorted,this.polyline=void 0!==e.polyline&&e.polyline,this.icon=e.icon,this.bgPoi=e.bgPoi,this.sceneCode=e.sceneCode,this.coordsOffset=e.coordsOffset||Qe.NONE,this.popupSize=e.popupSize||"1",this.laserRange=e.laserRange||Ie,this.position=e.position||He,this.overviewPosition=e.overviewPosition||Re.NONE,this.enabled=!0,this.visible=!0,this.visibleProp=!0,this.create=this.create.bind(this),this.onClick=this.onClick.bind(this),this.onOver=this.onOver.bind(this),this.onOut=this.onOut.bind(this),this.onHover=this.onHover.bind(this),this.getCenter=this.getCenter.bind(this),this.toggleVisibility=this.toggleVisibility.bind(this),this.isLabel=this.isLabel.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.getLookAtPosition=this.getLookAtPosition.bind(this)}getLookAtPosition(){return{ath:this.ath,atv:this.atv}}getLookAtPopupPosition(){return xn(this.krpano,this)}lookAt(){var{ath:e,atv:t}=this.getLookAtPosition(),{hOffset:n,vOffset:o}=this.krpano.getOffsets();this.krpano.call(`delayedcall(0.2, lookto(${e+n},${t+o}););`)}toggleVisibility(e,t=!1){t&&(this.visible=e)!==this.visibleProp&&(this.visibleProp=e),this.krpano.call(`if(hotspot[${this.code}]!=null,set(hotspot[${this.code}].visible, ${e});,);`)}onHover(){}create(e){this.krpano.call(`addhotspot(${this.code});`);var t=ln(this.props);(null!=t&&t.endsWith(".gif")||null!=t&&t.endsWith(".GIF"))&&this.krpano.call(`set(hotspot[${this.code}].renderer, css3d);`),this.krpano.call(`set(hotspot[${this.code}].url, ${Cn(t)});`),this.krpano.call(`set(hotspot[${this.code}].ath,${this.ath});`),this.krpano.call(`set(hotspot[${this.code}].atv,${this.atv});`),this.krpano.call(`set(hotspot[${this.code}].alpha,${this.alpha});`),this.krpano.call(`set(hotspot[${this.code}].scale,${this.scale});`),this.krpano.call(`set(hotspot[${this.code}].rotate,${this.rotate});`),this.krpano.call(`set(hotspot[${this.code}].width,${this.width});`),this.krpano.call(`set(hotspot[${this.code}].height,${this.height});`),this.krpano.call(`set(hotspot[${this.code}].rx,${this.rx});`),this.krpano.call(`set(hotspot[${this.code}].ry,${this.ry});`),this.krpano.call(`set(hotspot[${this.code}].rz,${this.rz});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`);let n=dn(this.props);this.krpano.call(`set(hotspot[${this.code}].polyline,${this.polyline});`),this.krpano.set(`hotspot[${this.code}].zorder`,P.STANDARD),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{n&&n.imageStrip&&this.krpano.call(Fn(this.props)),this.krpano.call(`set(hotspot[${this.code}].visible,${this.visible});`),this.addEvents(),e&&e(this)})}createFocusingHotspot(){this.krpano.call(`\n addhotspot(${this.focusingCode});\n set(hotspot[${this.focusingCode}].url, ${ke.FOCUSING_IMAGE_STRIP});\n set(hotspot[${this.focusingCode}].bgalpha, 0);\n set(hotspot[${this.focusingCode}].handcursor, false);\n set(hotspot[${this.focusingCode}].width, 36);\n set(hotspot[${this.focusingCode}].height, 36);\n set(hotspot[${this.focusingCode}].visible, false);\n set(hotspot[${this.focusingCode}].rx, 0);\n set(hotspot[${this.focusingCode}].ry, 0);\n set(hotspot[${this.focusingCode}].rz, 0);\n set(hotspot[${this.focusingCode}].rotate, 0);\n set(hotspot[${this.focusingCode}].enabled, true);\n set(hotspot[${this.focusingCode}].zorder, ${P.STANDARD});\n set(hotspot[${this.focusingCode}].ath, '${this.ath}');\n set(hotspot[${this.focusingCode}].atv, '${this.atv}');\n `),this.krpano.set(`hotspot[${this.focusingCode}].onloaded`,()=>{this.krpano.call(((e,t,n,o)=>`\n def(imageWidth_${e}, integer, get(hotspot[${e}].imagewidth));\n def(imageHeight_${e}, integer, get(hotspot[${e}].imageheight));\n def(frameWidth_${e}, integer, ${n});\n def(frameHeight_${e}, integer, ${o});\n def(frameRate_${e}, integer, ${t});\n def(frame_${e}, integer, 0);\n\n calc(xFrames_${e}, (imageWidth_${e} / frameWidth_${e}) BOR 0);\n calc(frames_${e}, xFrames_${e} * ((imageHeight_${e} / frameHeight_${e}) BOR 0));\n calc(hotspot[${e}].crop, '0|0|' + frameWidth_${e} + '|' + frameHeight_${e});\n \n setinterval(crop_anim_${e}, calc(1.0 / frameRate_${e}),\n if(hotspot[${e}].loaded,\n inc(frame_${e});\n if(frame_${e} GE frames_${e}, set(frame_${e}, 0););\n mod(xPos_${e}, frame_${e}, xFrames_${e});\n div(yPos_${e}, frame_${e}, xFrames_${e});\n Math.floor(yPos_${e});\n mul(xPos_${e}, frameWidth_${e});\n mul(yPos_${e}, frameHeight_${e});\n calc(\n hotspot[${e}].crop,\n xPos_${e} + '|' + yPos_${e} + '|' + frameWidth_${e} + '|' + frameHeight_${e}\n );\n ,\n clearinterval(crop_anim_${e});\n );\n );\n`)(this.focusingCode,60,72,72))})}activeFocusingHotspot(e){this.krpano.call(`\n set(hotspot[${this.focusingCode}].visible, ${e});\n `)}activeOverview(e){kn(this)&&(this.activeFocusingHotspot(e),this.krpano.call(`\n tween(hotspot[${this.code}].alpha, ${e?0:1}, 0.2);\n set(hotspot[${this.hoverCode}].visible, ${e});\n `))}getHoverHeight(){let e=this.height;e||(e=(t=this.krpano.get(`hotspot[${this.code}]`)).imageheight);var t=this.bgPoi?this.bgPoi.padding:0;return((e||0)+t)*(this.scale||1)}getCenter(){var{x:e,y:t,z:n}=this.spheretoscreen();return{x:e,y:t-this.getHoverHeight()/2,z:n}}isLabel(){return!(this.type===ue.PHOTO||this.type===ue.VIDEO||this.type===ue.MOVING||this.type===ue.LENSFLARE||this.type===ue.NADIR_LOGO)}hasDetailModal(){return[ue.POLYGON,ue.ITEM_INFO,ue.PROMOTION,ue.GALLERY,ue.VIDEO,ue.MOVING].includes(this.type)}isHideable(){return!0}addEvents(){this.isMobileDevice?this.addMobileEvents():this.addDesktopEvents()}addDesktopEvents(){this.krpano.set(`hotspot[${this.code}].onclick`,this.handleOnClick),this.krpano.set(`hotspot[${this.code}].onover`,this.onOver),this.krpano.set(`hotspot[${this.code}].onout`,this.onOut),this.krpano.set(`hotspot[${this.code}].onhover`,this.onHover),this.krpano.set(`hotspot[${this.code}].onup`,()=>{this.signals.poiMouseUp.dispatch()})}addMobileEvents(){this.krpano.set(`hotspot[${this.code}].onclick`,this.handleOnClick),this.krpano.set(`hotspot[${this.code}].onup`,()=>{this.signals.poiMouseUp.dispatch()})}onClick(){this.isLookAt&&this.lookAt(),this.signals.poiClicked.dispatch(this)}onOver(){this.signals.toggleFloorPoi.dispatch(!1)}onOut(){this.signals.toggleFloorPoi.dispatch(!0)}handleOnClick(){this.signals.stopScenario.dispatch(),this.onClick()}}class Hr extends Rr{constructor(e){super(e),this.info="",this.info=e.info,this.url=e.url||ke.INFO,this.type=ue.INFO,this.hovering=!1,this.hoverCode=un(this.code)}onClick(){super.onClick(),this.isMobileDevice&&(this.hovering?this.hide():(this.signals.toggleLabels.dispatch(this.hovering),this.show()))}onOver(){super.onOver()}onOut(){super.onOut(),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.hovering!==e&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),this.hovering=e)}show(){this.toggleHover(!0)}hide(){this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}getContentHover(){var e,t=(e=>!!e&&!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e))(this.info)&&(e=>!!e&&null!=e.match(/\.(jpeg|jpg|gif|png)$/))(this.info);let n="";return t?n=`[img class="box-wrapper__content-thumbnail" src="${this.info}" /]`:this.info&&(e=this.info.split("\n").reduce((e,t)=>e+`[div class="content__name"]${t}[/div]`,""),n=`[div class="box-wrapper__content"]${e}[/div]`),`\n [div class="cvtv-product-info-poi__wrapper"]\n [div class="product-info-poi__box-wrapper product-info-poi__box-wrapper--vertical ${t?"":"product-info-poi__box-wrapper--text"}"]\n ${n}\n [/div]\n [div class="product-info-poi__arrow-down"][/div]\n [/div]\n `}create(e){var t=this.getContentHover();Rn(this.krpano,this.props,t,!1),Un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)})}}class Fr extends Rr{constructor(e){var t;super(e),this.url=e.url||ke.PIN,this.type=ue.ITEM_INFO,this.hoverCode=un(this.code),this.hovering=!1,this.clickType=e.clickType,this.hoverType=e.hoverType,this.keepHover=!1,this.popupVisible=!1,this.keepPopupVisible=!1,this.focusType=e.focusType||ct,this.autoShow=e.autoShow||Me,this.itemInfo=e.itemInfo,this.itemInfoType=null==(t=this.itemInfo)?void 0:t.type,this.itemInfoCode=e.itemInfoCode||(null==(t=this.itemInfo)?void 0:t.code),this.isClickable=this.isClickable.bind(this),this.isHoverable=this.isHoverable.bind(this),this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.togglePopup=this.togglePopup.bind(this),this.hidePopup=this.hidePopup.bind(this),this.isProduct=this.isProduct.bind(this),this.getHoverContent=this.getHoverContent.bind(this)}getLookAtPosition(){var{h:e,v:t}=xn(this.krpano,this);return{ath:e,atv:t}}isProduct(){return this.itemInfo&&(this.itemInfo.type===it||this.itemInfo.type===at)}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.isClickable()&&(this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch(),this.itemInfo.type!==st)&&this.signals.stopScenario.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onClick(){if(super.onClick(),this.type===ue.ITEM_INFO){if(this.hoverType===Je)return this.isClickable()?(this.signals.poiClick.dispatch(this.props),void this.signals.poiOut.dispatch()):void 0;var e=!this.popupVisible;this.togglePopup(e),e&&(this.keepPopupVisible=!0,setTimeout(()=>{this.keepPopupVisible=!1},1e3))}}onOver(){this.isHoverable()&&(super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.HOVERING});`))}onOut(){this.isHoverable()&&(super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.STANDARD});`),this.krpano.get("device.desktop")&&this.hide(),this.signals.poiOut.dispatch())}onHover(){this.isHoverable()&&this.show()}toggleHover(e=!1){this.autoShow===Le&&this.togglePopup(e),this.autoShow===Me&&this.togglePopup(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e),e||this.togglePopup(e)}togglePopup(e=!1){this.popupVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){pn(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e))}hidePopup(){this.popupVisible&&!this.keepPopupVisible&&this.togglePopup(!1)}getHoverContent(){let e=this.hoverType;if(!e)switch(this.itemInfo.type){case rt:e=tt;break;case st:e=nt;break;case it:case at:e=et}var t={krpano:this.krpano,poi:this,lang:this.language};let n;switch(e){case nt:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return Ln(e,t,n)})(t);break;case et:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return Ln(e,t,n)})({krpano:this.krpano,poi:this,lang:this.language});break;case tt:case ot:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return Ln(e,t,n)})(t);break;default:console.warn(`Type[${e}] is not handled hover`)}return n}create(e){e&&(this.onDone=e),this.itemInfo&&(kn(this)&&this.createFocusingHotspot(),e=this.itemInfo,e=Object.assign(Object.assign({},this),{itemInfo:e,position:this.position,overviewPosition:this.overviewPosition}),(e=Ln(this.krpano,e,this.language))&&In(this.krpano,this.props,e),this.focusType===ut&&((e,t)=>{if(t.type===ue.ITEM_INFO){let o=(e=>e+"_focus")(t.code);var n=zn(t);Dn(e,o,n),e.set(`hotspot[${o}].atv`,t.atv),e.set(`hotspot[${o}].ath`,t.ath),e.set(`hotspot[${o}].onloaded`,()=>{var n=Number(e.get(`hotspot[${o}].width`));e.set(`hotspot[${o}].ox`,n/2-((t.width||0)*(t.scale||1)/2+11))})}})(this.krpano,this),Un(this.krpano,this.props).then(()=>{super.addEvents(),this.onDone&&this.onDone(this)}))}isHoverable(){return this.hoverType!==Je}isClickable(){return this.clickType!==Je}}var Vr,jr={};var zr,Ur,Br,Yr,Wr=function(){var e,n,o,i,r,s,a,l,c,u,h,d,p;return Vr||(Vr=1,e=jr,f.prototype={init:function(){var e=this||n;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||n;if(e=parseFloat(e),t.ctx||c(),void 0!==e&&0<=e&&e<=1){if(t._volume=e,!t._muted){t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var o=0;o<t._howls.length;o++)if(!t._howls[o]._webAudio)for(var i=t._howls[o]._getSoundIds(),r=0;r<i.length;r++){var s=t._howls[o]._soundById(i[r]);s&&s._node&&(s._node.volume=s._volume*e)}}return t}return t._volume},mute:function(e){var t=this||n;t.ctx||c(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,n.ctx.currentTime);for(var o=0;o<t._howls.length;o++)if(!t._howls[o]._webAudio)for(var i=t._howls[o]._getSoundIds(),r=0;r<i.length;r++){var s=t._howls[o]._soundById(i[r]);s&&s._node&&(s._node.muted=!!e||s._muted)}return t},stop:function(){for(var e=this||n,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||n,t=e._howls.length-1;0<=t;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,c()),e},codecs:function(e){return(this||n)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||n;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e,t,o,i,r=this||n,s=null;try{s="undefined"!=typeof Audio?new Audio:null}catch(e){return r}return s&&"function"==typeof s.canPlayType&&(e=s.canPlayType("audio/mpeg;").replace(/^no$/,""),t=(t=(o=r._navigator?r._navigator.userAgent:"").match(/OPR\/(\d+)/g))&&parseInt(t[0].split("/")[1],10)<33,i=-1!==o.indexOf("Safari")&&-1===o.indexOf("Chrome"),o=o.match(/Version\/(.*?) /),i=i&&o&&parseInt(o[1],10)<15,r._codecs={mp3:!(t||!e&&!s.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!e,opus:!!s.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!s.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!s.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(s.canPlayType('audio/wav; codecs="1"')||s.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!s.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!s.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(s.canPlayType("audio/x-m4a;")||s.canPlayType("audio/m4a;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(s.canPlayType("audio/x-m4b;")||s.canPlayType("audio/m4b;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(s.canPlayType("audio/x-mp4;")||s.canPlayType("audio/mp4;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(i||!s.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(i||!s.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!s.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(s.canPlayType("audio/x-flac;")||s.canPlayType("audio/flac;")).replace(/^no$/,"")}),r},_unlockAudio:function(){var e,t=this||n;if(!t._audioUnlocked&&t.ctx)return t._audioUnlocked=!1,t.autoUnlock=!1,t._mobileUnloaded||44100===t.ctx.sampleRate||(t._mobileUnloaded=!0,t.unload()),t._scratchBuffer=t.ctx.createBuffer(1,1,22050),e=function(n){for(;t._html5AudioPool.length<t.html5PoolSize;)try{var o=new Audio;o._unlocked=!0,t._releaseHtml5Audio(o)}catch(n){t.noAudio=!0;break}for(var i=0;i<t._howls.length;i++)if(!t._howls[i]._webAudio)for(var r=t._howls[i]._getSoundIds(),s=0;s<r.length;s++){var a=t._howls[i]._soundById(r[s]);a&&a._node&&!a._node._unlocked&&(a._node._unlocked=!0,a._node.load())}t._autoResume();var l=t.ctx.createBufferSource();l.buffer=t._scratchBuffer,l.connect(t.ctx.destination),void 0===l.start?l.noteOn(0):l.start(0),"function"==typeof t.ctx.resume&&t.ctx.resume(),l.onended=function(){l.disconnect(0),t._audioUnlocked=!0,document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",e,!0),document.removeEventListener("click",e,!0),document.removeEventListener("keydown",e,!0);for(var n=0;n<t._howls.length;n++)t._howls[n]._emit("unlock")}},document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",e,!0),document.addEventListener("click",e,!0),document.addEventListener("keydown",e,!0),t},_obtainHtml5Audio:function(){var e=this||n;return e._html5AudioPool.length?e._html5AudioPool.pop():((e=(new Audio).play())&&"undefined"!=typeof Promise&&(e instanceof Promise||"function"==typeof e.then)&&e.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio)},_releaseHtml5Audio:function(e){var t=this||n;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&n.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var o=0;o<e._howls[t]._sounds.length;o++)if(!e._howls[t]._sounds[o]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){var t;e.autoSuspend&&(e._suspendTimer=null,e.state="suspending",t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())},e.ctx.suspend().then(t,t))},3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&n.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}},n=new f,g.prototype={init:function(e){var t=this;return n.ctx||c(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!(!e.xhr||!e.xhr.withCredentials)&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=n.usingWebAudio&&!t._html5,void 0!==n.ctx&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e=this,t=null;if(n.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var i,s,a=0;a<e._src.length;a++){if(e._format&&e._format[a])i=e._format[a];else{if("string"!=typeof(s=e._src[a])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}i=(i=(i=/^data:audio\/([^;,]+);/i.exec(s))||/\.([^.]+)$/.exec(s.split("?",1)[0]))&&i[1].toLowerCase()}if(i||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),i&&n.codecs(i)){t=e._src[a];break}}if(t)return e._src=t,e._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new o(e),e._webAudio&&r(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var o=this,i=null;if("number"==typeof e)i=e,e=null;else{if("string"==typeof e&&"loaded"===o._state&&!o._sprite[e])return null;if(void 0===e&&(e="__default",!o._playLock)){for(var r=0,s=0;s<o._sounds.length;s++)o._sounds[s]._paused&&!o._sounds[s]._ended&&(r++,i=o._sounds[s]._id);1===r?e=null:i=null}}var a,l=i?o._soundById(i):o._inactiveSound();if(!l)return null;if(i&&!e&&(e=l._sprite||"__default"),"loaded"!==o._state)return l._sprite=e,l._ended=!1,a=l._id,o._queue.push({event:"play",action:function(){o.play(a)}}),a;if(i&&!l._paused)return t||o._loadQueue("play"),l._id;o._webAudio&&n._autoResume();var c,u,h,d,p=Math.max(0,0<l._seek?l._seek:o._sprite[e][0]/1e3),f=Math.max(0,(o._sprite[e][0]+o._sprite[e][1])/1e3-p),g=1e3*f/Math.abs(l._rate),m=o._sprite[e][0]/1e3,v=(o._sprite[e][0]+o._sprite[e][1])/1e3,_=(l._sprite=e,l._ended=!1,function(){l._paused=!1,l._seek=p,l._start=m,l._stop=v,l._loop=!(!l._loop&&!o._sprite[e][2])});if(!(v<=p))return c=l._node,o._webAudio?(h=function(){o._playLock=!1,_(),o._refreshBuffer(l);var e=l._muted||o._muted?0:l._volume;c.gain.setValueAtTime(e,n.ctx.currentTime),l._playStart=n.ctx.currentTime,void 0===c.bufferSource.start?l._loop?c.bufferSource.noteGrainOn(0,p,86400):c.bufferSource.noteGrainOn(0,p,f):l._loop?c.bufferSource.start(0,p,86400):c.bufferSource.start(0,p,f),g!==1/0&&(o._endTimers[l._id]=setTimeout(o._ended.bind(o,l),g)),t||setTimeout(function(){o._emit("play",l._id),o._loadQueue()},0)},"running"===n.state&&"interrupted"!==n.ctx.state?h():(o._playLock=!0,o.once("resume",h),o._clearTimer(l._id))):(u=function(){c.currentTime=p,c.muted=l._muted||o._muted||n._muted||c.muted,c.volume=l._volume*n.volume(),c.playbackRate=l._rate;try{var i=c.play();i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(o._playLock=!0,_(),i.then(function(){o._playLock=!1,c._unlocked=!0,t?o._loadQueue():o._emit("play",l._id)}).catch(function(){o._playLock=!1,o._emit("playerror",l._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),l._ended=!0,l._paused=!0})):t||(o._playLock=!1,_(),o._emit("play",l._id)),c.playbackRate=l._rate,c.paused?o._emit("playerror",l._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."):"__default"!==e||l._loop?o._endTimers[l._id]=setTimeout(o._ended.bind(o,l),g):(o._endTimers[l._id]=function(){o._ended(l),c.removeEventListener("ended",o._endTimers[l._id],!1)},c.addEventListener("ended",o._endTimers[l._id],!1))}catch(i){o._emit("playerror",l._id,i)}},"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===c.src&&(c.src=o._src,c.load()),h=window&&window.ejecta||!c.readyState&&n._navigator.isCocoonJS,3<=c.readyState||h?u():(o._playLock=!0,o._state="loading",d=function(){o._state="loaded",u(),c.removeEventListener(n._canPlayEvent,d,!1)},c.addEventListener(n._canPlayEvent,d,!1),o._clearTimer(l._id))),l._id;o._ended(l)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)t._queue.push({event:"pause",action:function(){t.pause(e)}});else for(var n=t._getSoundIds(e),o=0;o<n.length;o++){t._clearTimer(n[o]);var i=t._soundById(n[o]);if(i&&!i._paused&&(i._seek=t.seek(n[o]),i._rateSeek=0,i._paused=!0,t._stopFade(n[o]),i._node))if(t._webAudio){if(!i._node.bufferSource)continue;void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else isNaN(i._node.duration)&&i._node.duration!==1/0||i._node.pause();arguments[1]||t._emit("pause",i?i._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)n._queue.push({event:"stop",action:function(){n.stop(e)}});else for(var o=n._getSoundIds(e),i=0;i<o.length;i++){n._clearTimer(o[i]);var r=n._soundById(o[i]);r&&(r._seek=r._start||0,r._rateSeek=0,r._paused=!0,r._ended=!0,n._stopFade(o[i]),r._node&&(n._webAudio?r._node.bufferSource&&(void 0===r._node.bufferSource.stop?r._node.bufferSource.noteOff(0):r._node.bufferSource.stop(0),n._cleanBuffer(r._node)):isNaN(r._node.duration)&&r._node.duration!==1/0||(r._node.currentTime=r._start||0,r._node.pause(),r._node.duration===1/0&&n._clearSound(r._node))),t||n._emit("stop",r._id))}return n},mute:function(e,t){var o=this;if("loaded"!==o._state||o._playLock)o._queue.push({event:"mute",action:function(){o.mute(e,t)}});else{if(void 0===t){if("boolean"!=typeof e)return o._muted;o._muted=e}for(var i=o._getSoundIds(t),r=0;r<i.length;r++){var s=o._soundById(i[r]);s&&(s._muted=e,s._interval&&o._stopFade(s._id),o._webAudio&&s._node?s._node.gain.setValueAtTime(e?0:s._volume,n.ctx.currentTime):s._node&&(s._node.muted=!!n._muted||e),o._emit("mute",s._id))}}return o},volume:function(){var e,t,o=this,i=arguments;if(0===i.length)return o._volume;if(1===i.length||2===i.length&&void 0===i[1]?0<=o._getSoundIds().indexOf(i[0])?r=parseInt(i[0],10):e=parseFloat(i[0]):2<=i.length&&(e=parseFloat(i[0]),r=parseInt(i[1],10)),!(void 0!==e&&0<=e&&e<=1))return(t=r?o._soundById(r):o._sounds[0])?t._volume:0;if("loaded"!==o._state||o._playLock)o._queue.push({event:"volume",action:function(){o.volume.apply(o,i)}});else{void 0===r&&(o._volume=e);for(var r=o._getSoundIds(r),s=0;s<r.length;s++)(t=o._soundById(r[s]))&&(t._volume=e,i[2]||o._stopFade(r[s]),o._webAudio&&t._node&&!t._muted?t._node.gain.setValueAtTime(e,n.ctx.currentTime):t._node&&!t._muted&&(t._node.volume=e*n.volume()),o._emit("volume",t._id))}return o},fade:function(e,t,o,i){var r=this;if("loaded"!==r._state||r._playLock)r._queue.push({event:"fade",action:function(){r.fade(e,t,o,i)}});else{e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),o=parseFloat(o),r.volume(e,i);for(var s=r._getSoundIds(i),a=0;a<s.length;a++){var l,c,u=r._soundById(s[a]);u&&(i||r._stopFade(s[a]),r._webAudio&&!u._muted&&(c=(l=n.ctx.currentTime)+o/1e3,u._volume=e,u._node.gain.setValueAtTime(e,l),u._node.gain.linearRampToValueAtTime(t,c)),r._startFadeInterval(u,e,t,o,s[a],void 0===i))}}return r},_startFadeInterval:function(e,t,n,o,i,r){var s=this,a=t,l=n-t,c=Math.abs(l/.01),u=(c=Math.max(4,0<c?o/c:o),Date.now());e._fadeTo=n,e._interval=setInterval(function(){var i=(Date.now()-u)/o;u=Date.now(),a+=l*i,a=Math.round(100*a)/100,a=l<0?Math.max(n,a):Math.min(n,a),s._webAudio?e._volume=a:s.volume(a,e._id,!0),r&&(s._volume=a),(n<t&&a<=n||t<n&&n<=a)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,s.volume(n,e._id),s._emit("fade",e._id))},c)},_stopFade:function(e){var t=this._soundById(e);return t&&t._interval&&(this._webAudio&&t._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(t._interval),t._interval=null,this.volume(t._fadeTo,e),t._fadeTo=null,this._emit("fade",e)),this},loop:function(){var e,t,n,o=this,i=arguments;if(0===i.length)return o._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(n=o._soundById(parseInt(i[0],10)))&&n._loop;o._loop=e=i[0]}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var r=o._getSoundIds(t),s=0;s<r.length;s++)(n=o._soundById(r[s]))&&(n._loop=e,o._webAudio)&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e)&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,o.playing(r[s]))&&(o.pause(r[s],!0),o.play(r[s],!0));return o},rate:function(){var e,t=this,o=arguments;if(0===o.length?s=t._sounds[0]._id:1===o.length?0<=t._getSoundIds().indexOf(o[0])?s=parseInt(o[0],10):e=parseFloat(o[0]):2===o.length&&(e=parseFloat(o[0]),s=parseInt(o[1],10)),"number"!=typeof e)return((r=t._soundById(s))||t)._rate;if("loaded"!==t._state||t._playLock)t._queue.push({event:"rate",action:function(){t.rate.apply(t,o)}});else{void 0===s&&(t._rate=e);for(var i,r,s=t._getSoundIds(s),a=0;a<s.length;a++)(r=t._soundById(s[a]))&&(t.playing(s[a])&&(r._rateSeek=t.seek(s[a]),r._playStart=t._webAudio?n.ctx.currentTime:r._playStart),r._rate=e,t._webAudio&&r._node&&r._node.bufferSource?r._node.bufferSource.playbackRate.setValueAtTime(e,n.ctx.currentTime):r._node&&(r._node.playbackRate=e),i=t.seek(s[a]),i=1e3*((t._sprite[r._sprite][0]+t._sprite[r._sprite][1])/1e3-i)/Math.abs(r._rate),!t._endTimers[s[a]]&&r._paused||(t._clearTimer(s[a]),t._endTimers[s[a]]=setTimeout(t._ended.bind(t,r),i)),t._emit("rate",r._id))}return t},seek:function(){var e,t,o=this,i=arguments;if(0===i.length?o._sounds.length&&(t=o._sounds[0]._id):1===i.length?0<=o._getSoundIds().indexOf(i[0])?t=parseInt(i[0],10):o._sounds.length&&(t=o._sounds[0]._id,e=parseFloat(i[0])):2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),void 0===t)return 0;if("number"!=typeof e||"loaded"===o._state&&!o._playLock){var r,s,a,l,c,u=o._soundById(t);if(u){if(!("number"==typeof e&&0<=e))return o._webAudio?(l=o.playing(t)?n.ctx.currentTime-u._playStart:0,c=u._rateSeek?u._rateSeek-u._seek:0,u._seek+(c+l*Math.abs(u._rate))):u._node.currentTime;(r=o.playing(t))&&o.pause(t,!0),u._seek=e,u._ended=!1,o._clearTimer(t),o._webAudio||!u._node||isNaN(u._node.duration)||(u._node.currentTime=e),s=function(){r&&o.play(t,!0),o._emit("seek",t)},r&&!o._webAudio?(a=function(){o._playLock?setTimeout(a,0):s()},setTimeout(a,0)):s()}}else o._queue.push({event:"seek",action:function(){o.seek.apply(o,i)}});return o},playing:function(e){if("number"==typeof e)return!!(e=this._soundById(e))&&!e._paused;for(var t=0;t<this._sounds.length;t++)if(!this._sounds[t]._paused)return!0;return!1},duration:function(e){var t=this._duration;return(e=this._soundById(e))?this._sprite[e._sprite][1]/1e3:t},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,o=0;o<t.length;o++)t[o]._paused||e.stop(t[o]._id),e._webAudio||(e._clearSound(t[o]._node),t[o]._node.removeEventListener("error",t[o]._errorFn,!1),t[o]._node.removeEventListener(n._canPlayEvent,t[o]._loadFn,!1),t[o]._node.removeEventListener("ended",t[o]._endFn,!1),n._releaseHtml5Audio(t[o]._node)),delete t[o]._node,e._clearTimer(t[o]._id);var r=n._howls.indexOf(e),s=(0<=r&&n._howls.splice(r,1),!0);for(o=0;o<n._howls.length;o++)if(n._howls[o]._src===e._src||0<=e._src.indexOf(n._howls[o]._src)){s=!1;break}return i&&s&&delete i[e._src],n.noAudio=!1,e._state="unloaded",e._sounds=[],null},on:function(e,t,n,o){return e=this["_on"+e],"function"==typeof t&&e.push(o?{id:n,fn:t,once:o}:{id:n,fn:t}),this},off:function(e,t,n){var o=this["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<o.length;i++){var r=n===o[i].id;if(t===o[i].fn&&r||!t&&r){o.splice(i,1);break}}else if(e)this["_on"+e]=[];else{var s=Object.keys(this);for(i=0;i<s.length;i++)0===s[i].indexOf("_on")&&Array.isArray(this[s[i]])&&(this[s[i]]=[])}return this},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var o=this["_on"+e],i=o.length-1;0<=i;i--)o[i].id&&o[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(this,o[i].fn),0),o[i].once&&this.off(e,o[i].fn,o[i].id));return this._loadQueue(e),this},_loadQueue:function(e){var t;return 0<this._queue.length&&((t=this._queue[0]).event===e&&(this._queue.shift(),this._loadQueue()),e||t.action()),this},_ended:function(e){var t,o=this,i=e._sprite;return!o._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop?setTimeout(o._ended.bind(o,e),100):(i=!(!e._loop&&!o._sprite[i][2]),o._emit("end",e._id),!o._webAudio&&i&&o.stop(e._id,!0).play(e._id),o._webAudio&&i&&(o._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=n.ctx.currentTime,t=1e3*(e._stop-e._start)/Math.abs(e._rate),o._endTimers[e._id]=setTimeout(o._ended.bind(o,e),t)),o._webAudio&&!i&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,o._clearTimer(e._id),o._cleanBuffer(e._node),n._autoSuspend()),o._webAudio||i||o.stop(e._id,!0)),o},_clearTimer:function(e){var t;return this._endTimers[e]&&("function"!=typeof this._endTimers[e]?clearTimeout(this._endTimers[e]):(t=this._soundById(e))&&t._node&&t._node.removeEventListener("ended",this._endTimers[e],!1),delete this._endTimers[e]),this},_soundById:function(e){for(var t=0;t<this._sounds.length;t++)if(e===this._sounds[t]._id)return this._sounds[t];return null},_inactiveSound:function(){this._drain();for(var e=0;e<this._sounds.length;e++)if(this._sounds[e]._ended)return this._sounds[e].reset();return new o(this)},_drain:function(){var e=this,t=e._pool,n=0,o=0;if(!(e._sounds.length<t)){for(o=0;o<e._sounds.length;o++)e._sounds[o]._ended&&n++;for(o=e._sounds.length-1;0<=o;o--){if(n<=t)return;e._sounds[o]._ended&&(e._webAudio&&e._sounds[o]._node&&e._sounds[o]._node.disconnect(0),e._sounds.splice(o,1),n--)}}},_getSoundIds:function(e){if(void 0!==e)return[e];for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t},_refreshBuffer:function(e){return e._node.bufferSource=n.ctx.createBufferSource(),e._node.bufferSource.buffer=i[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,n.ctx.currentTime),this},_cleanBuffer:function(e){var t=n._navigator&&0<=n._navigator.vendor.indexOf("Apple");if(e.bufferSource){if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=n._scratchBuffer}catch(e){}e.bufferSource=null}return this},_clearSound:function(e){/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}},(o=function(e){this._parent=e,this.init()}).prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,o=n._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(o,n.ctx.currentTime),e._node.paused=!0,e._node.connect(n.masterGain)):n.noAudio||(e._node=n._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(n._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=o*n.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,e},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var e=this._parent;e._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),this._node.removeEventListener(n._canPlayEvent,this._loadFn,!1)},_endListener:function(){var e=this._parent;e._duration===1/0&&(e._duration=Math.ceil(10*this._node.duration)/10,e._sprite.__default[1]===1/0&&(e._sprite.__default[1]=1e3*e._duration),e._ended(this)),this._node.removeEventListener("ended",this._endFn,!1)}},i={},r=function(e){var t=e._src;if(i[t])e._duration=i[t].duration,l(e);else if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),o=new Uint8Array(n.length),r=0;r<n.length;++r)o[r]=n.charCodeAt(r);a(o.buffer,e)}else{var c=new XMLHttpRequest;c.open(e._xhr.method,t,!0),c.withCredentials=e._xhr.withCredentials,c.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(t){c.setRequestHeader(t,e._xhr.headers[t])}),c.onload=function(){var t=(c.status+"")[0];"0"!==t&&"2"!==t&&"3"!==t?e._emit("loaderror",null,"Failed loading audio file with status: "+c.status+"."):a(c.response,e)},c.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete i[t],e.load())},s(c)}},s=function(e){try{e.send()}catch(t){e.onerror()}},a=function(e,t){function o(){t._emit("loaderror",null,"Decoding audio data failed.")}function r(e){e&&0<t._sounds.length?(i[t._src]=e,l(t,e)):o()}"undefined"!=typeof Promise&&1===n.ctx.decodeAudioData.length?n.ctx.decodeAudioData(e).then(r).catch(o):n.ctx.decodeAudioData(e,r,o)},l=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},c=function(){if(n.usingWebAudio){try{"undefined"!=typeof AudioContext?n.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch(e){n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),t=(t=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))?parseInt(t[1],10):null;e&&t&&t<9&&(e=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase()),n._navigator)&&!e&&(n.usingWebAudio=!1),n.usingWebAudio&&(n.masterGain=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}},e.Howler=n,e.Howl=g,void 0!==t?(t.HowlerGlobal=f,t.Howler=n,t.Howl=g,t.Sound=o):"undefined"!=typeof window&&(window.HowlerGlobal=f,window.Howler=n,window.Howl=g,window.Sound=o),HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){if(this.ctx&&this.ctx.listener)for(var t=this._howls.length-1;0<=t;t--)this._howls[t].stereo(e);return this},HowlerGlobal.prototype.pos=function(e,t,n){var o=this;if(o.ctx&&o.ctx.listener){if(t="number"!=typeof t?o._pos[1]:t,n="number"!=typeof n?o._pos[2]:n,"number"!=typeof e)return o._pos;o._pos=[e,t,n],void 0!==o.ctx.listener.positionX?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2])}return o},HowlerGlobal.prototype.orientation=function(e,t,n,o,i,r){var s=this;if(s.ctx&&s.ctx.listener){var a=s._orientation;if(t="number"!=typeof t?a[1]:t,n="number"!=typeof n?a[2]:n,o="number"!=typeof o?a[3]:o,i="number"!=typeof i?a[4]:i,r="number"!=typeof r?a[5]:r,"number"!=typeof e)return a;s._orientation=[e,t,n,o,i,r],void 0!==s.ctx.listener.forwardX?(s.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),s.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),s.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),s.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),s.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),s.ctx.listener.upZ.setTargetAtTime(r,Howler.ctx.currentTime,.1)):s.ctx.listener.setOrientation(e,t,n,o,i,r)}return s},Howl.prototype.init=(u=Howl.prototype.init,function(e){return this._orientation=e.orientation||[1,0,0],this._stereo=e.stereo||null,this._pos=e.pos||null,this._pannerAttr={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:360,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:360,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:0,distanceModel:void 0!==e.distanceModel?e.distanceModel:"inverse",maxDistance:void 0!==e.maxDistance?e.maxDistance:1e4,panningModel:void 0!==e.panningModel?e.panningModel:"HRTF",refDistance:void 0!==e.refDistance?e.refDistance:1,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:1},this._onstereo=e.onstereo?[{fn:e.onstereo}]:[],this._onpos=e.onpos?[{fn:e.onpos}]:[],this._onorientation=e.onorientation?[{fn:e.onorientation}]:[],u.call(this,e)}),Howl.prototype.stereo=function(e,t){var n=this;if(n._webAudio)if("loaded"!==n._state)n._queue.push({event:"stereo",action:function(){n.stereo(e,t)}});else{var o=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===t){if("number"!=typeof e)return n._stereo;n._stereo=e,n._pos=[e,0,0]}for(var i=n._getSoundIds(t),r=0;r<i.length;r++){var s=n._soundById(i[r]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||p(s,o),"spatial"==o?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),n._emit("stereo",s._id)}}}return n},Howl.prototype.pos=function(e,t,n,o){var i=this;if(i._webAudio)if("loaded"!==i._state)i._queue.push({event:"pos",action:function(){i.pos(e,t,n,o)}});else{if(t="number"!=typeof t?0:t,n="number"!=typeof n?-.5:n,void 0===o){if("number"!=typeof e)return i._pos;i._pos=[e,t,n]}for(var r=i._getSoundIds(o),s=0;s<r.length;s++){var a=i._soundById(r[s]);if(a){if("number"!=typeof e)return a._pos;a._pos=[e,t,n],a._node&&(a._panner&&!a._panner.pan||p(a,"spatial"),void 0!==a._panner.positionX?(a._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),a._panner.positionY.setValueAtTime(t,Howler.ctx.currentTime),a._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):a._panner.setPosition(e,t,n)),i._emit("pos",a._id)}}}return i},Howl.prototype.orientation=function(e,t,n,o){var i=this;if(i._webAudio)if("loaded"!==i._state)i._queue.push({event:"orientation",action:function(){i.orientation(e,t,n,o)}});else{if(t="number"!=typeof t?i._orientation[1]:t,n="number"!=typeof n?i._orientation[2]:n,void 0===o){if("number"!=typeof e)return i._orientation;i._orientation=[e,t,n]}for(var r=i._getSoundIds(o),s=0;s<r.length;s++){var a=i._soundById(r[s]);if(a){if("number"!=typeof e)return a._orientation;a._orientation=[e,t,n],a._node&&(a._panner||(a._pos||(a._pos=i._pos||[0,0,-.5]),p(a,"spatial")),void 0!==a._panner.orientationX?(a._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),a._panner.orientationY.setValueAtTime(t,Howler.ctx.currentTime),a._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):a._panner.setOrientation(e,t,n)),i._emit("orientation",a._id)}}}return i},Howl.prototype.pannerAttr=function(){var e,t,n=this,o=arguments;if(n._webAudio){if(0===o.length)return n._pannerAttr;if(1===o.length){if("object"!=typeof o[0])return((s=n._soundById(parseInt(o[0],10)))||n)._pannerAttr;e=o[0],void 0===t&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),n._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:n._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:n._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:n._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:n._panningModel})}else 2===o.length&&(e=o[0],t=parseInt(o[1],10));for(var i,r,s,a=n._getSoundIds(t),l=0;l<a.length;l++)(s=n._soundById(a[l]))&&(i=s._pannerAttr,i={coneInnerAngle:(void 0!==e.coneInnerAngle?e:i).coneInnerAngle,coneOuterAngle:(void 0!==e.coneOuterAngle?e:i).coneOuterAngle,coneOuterGain:(void 0!==e.coneOuterGain?e:i).coneOuterGain,distanceModel:(void 0!==e.distanceModel?e:i).distanceModel,maxDistance:(void 0!==e.maxDistance?e:i).maxDistance,refDistance:(void 0!==e.refDistance?e:i).refDistance,rolloffFactor:(void 0!==e.rolloffFactor?e:i).rolloffFactor,panningModel:(void 0!==e.panningModel?e:i).panningModel},(r=s._panner)||(s._pos||(s._pos=n._pos||[0,0,-.5]),p(s,"spatial"),r=s._panner),r.coneInnerAngle=i.coneInnerAngle,r.coneOuterAngle=i.coneOuterAngle,r.coneOuterGain=i.coneOuterGain,r.distanceModel=i.distanceModel,r.maxDistance=i.maxDistance,r.refDistance=i.refDistance,r.rolloffFactor=i.rolloffFactor,r.panningModel=i.panningModel)}return n},Sound.prototype.init=(h=Sound.prototype.init,function(){var e=this,t=e._parent;e._orientation=t._orientation,e._stereo=t._stereo,e._pos=t._pos,e._pannerAttr=t._pannerAttr,h.call(this),e._stereo?t.stereo(e._stereo):e._pos&&t.pos(e._pos[0],e._pos[1],e._pos[2],e._id)}),Sound.prototype.reset=(d=Sound.prototype.reset,function(){var e=this,t=e._parent;return e._orientation=t._orientation,e._stereo=t._stereo,e._pos=t._pos,e._pannerAttr=t._pannerAttr,e._stereo?t.stereo(e._stereo):e._pos?t.pos(e._pos[0],e._pos[1],e._pos[2],e._id):e._panner&&(e._panner.disconnect(0),e._panner=void 0,t._refreshBuffer(e)),d.call(this)}),p=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}),jr;function f(){this.init()}function g(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")}}();class Gr extends Rr{constructor(e){super(e),this.onClick=()=>{super.onClick(),this.ready&&(this.paused?this.play():this.pause())},this.started=!1,this.paused=!0,this.ready=!1,this.stopped=!1,this.play=this.play.bind(this),this.stop=this.stop.bind(this),this.pause=this.pause.bind(this),this.onReady=this.onReady.bind(this),this.onPlay=this.onPlay.bind(this),this.onPause=this.onPause.bind(this)}onOut(){}onOver(){}play(){}stop(){}pause(){}onReady(){this.ready=!0}onPlay(){this.started=!0,this.paused=!1,this.stopped=!1,this.signals.poiMediaPlayed.dispatch(this.code)}onPause(){this.started=!1,this.paused=!0,this.stopped||this.signals.poiMediaPaused.dispatch(this.code)}toggleVisibility(e,t=!1){this.pause(),super.toggleVisibility(e,t)}}class qr extends Gr{constructor(e){super(e),this.loop=!1,this.volume=50,this.range=220,this.audioObject=null,this.unloadAudio=()=>{this.audioObject&&(this.audioObject.unload(),this.audioObject=null)},this.sound=e.sound,this.url=e.url||ke.SOUND_PLAY,this.altUrl=e.url||ke.SOUND_PAUSE,this.type=ue.SOUND;var{volume:e,range:t,loop:n}=e;this.volume=void 0!==e?e/100:.5,this.range=void 0!==t?t:220,this.loop=void 0!==n&&n}mute(e,t){var n;null!=(n=this.audioObject)&&n.mute(e,t)}stop(){return ce(this,void 0,void 0,function*(){this.ready&&!this.paused&&(this.audioObject&&this.audioObject.stop(),this.unloadAudio())})}pause(){return ce(this,void 0,void 0,function*(){this.ready&&!this.paused&&this.audioObject&&this.audioObject.pause()})}play(){return ce(this,void 0,void 0,function*(){var e;this.ready&&!this.started&&(this.audioObject?this.audioObject.playing()||this.audioObject.play():((e=new Wr.Howl({src:[""+this.sound.url],loop:this.loop,volume:this.volume,html5:!0,onend:()=>{this.onPause(),this.unloadAudio()},onplay:()=>{this.onPlay()},onpause:()=>{this.onPause()},onstop:()=>{this.stopped=!0,this.onPause()}})).play(),this.audioObject=e))})}create(e){super.create(e),this.sound&&this.sound.url&&!this.ready&&(new Audio(this.sound.url),this.onReady())}onPause(){super.onPause();var e,t=this.krpano.get(`hotspot[${this.code}]`);t&&(e=ln(this.props),t.url=Cn(e),t=dn(this.props))&&t.imageStrip&&this.krpano.call(`set(hotspot[${this.code}].onloaded, ${Fn(this.props)})`)}onPlay(){super.onPlay();var e=this.krpano.get(`hotspot[${this.code}]`);e&&(e.url=this.altUrl,((e,t)=>{e.call(`set(hotspot[${t}].onloaded, '')`),e.call(`clearinterval(crop_anim_${t}); \n set(hotspot[${t}].crop, '');`)})(this.krpano,this.code))}}class Xr extends Gr{constructor(e){super(e),this.image=e.image,this.video=e.video,this.url=e.image?e.image.url:ke.VIDEO,this.type=ue.VIDEO,this.started=!1,this.paused=!0,this.ready=!1}play(){this.ready&&!this.started&&this.krpano.call(`hotspot[${this.code}].play()`)}stop(){this.ready&&!this.paused&&(this.stopped=!0,this.pause())}pause(){this.ready&&!this.paused&&this.krpano.call(`hotspot[${this.code}].pause()`)}create(e){var t,n,o;this.video&&(t=we.VIDEO_PLAYER,n=this.video.url,o=this.video.url.replace("mp4","webm"),this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].url, ${t});`),this.krpano.call(`set(hotspot[${this.code}].videourl, ${n+"#t=3"}|${o});`),this.image&&this.krpano.call(`set(hotspot[${this.code}].posterurl, ${Zt(sn(this.image,(this.width||0)*(this.scale||1)))});`),this.krpano.call(`set(hotspot[${this.code}].html5preload, 'metadata');`),this.krpano.call(`set(hotspot[${this.code}].loop, true);`),this.krpano.call(`set(hotspot[${this.code}].pausedonstart, true);`),this.krpano.call(`set(hotspot[${this.code}].edge, center);`),this.krpano.call(`set(hotspot[${this.code}].ath,${this.ath});`),this.krpano.call(`set(hotspot[${this.code}].atv,${this.atv});`),this.krpano.call(`set(hotspot[${this.code}].alpha,${this.alpha});`),this.krpano.call(`set(hotspot[${this.code}].scale,${this.scale});`),this.krpano.call(`set(hotspot[${this.code}].rotate,${this.rotate});`),this.krpano.call(`set(hotspot[${this.code}].width,${this.width});`),this.krpano.call(`set(hotspot[${this.code}].height,${this.height});`),this.krpano.call(`set(hotspot[${this.code}].rx,${this.rx});`),this.krpano.call(`set(hotspot[${this.code}].ry,${this.ry});`),this.krpano.call(`set(hotspot[${this.code}].rz,${this.rz});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.set(`hotspot[${this.code}].onvideoready`,()=>{this.onReady()}),this.krpano.set(`hotspot[${this.code}].onvideoplay`,()=>{this.onPlay()}),this.krpano.set(`hotspot[${this.code}].onvideopaused`,()=>{this.onPause()}),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{this.krpano.set(`hotspot[${this.code}].visible`,this.visible),super.addEvents(),e&&e(this)}))}}class Qr{constructor(e){this.code="bg"+(Date.now()+Math.random()|0),this.url=ke.BACKGROUND,this.krpano=e.krpano,this.padding=20}create(e){this.krpano.call(`addhotspot(${this.code});`),this.krpano.set(`hotspot[${this.code}].visible`,"false"),this.krpano.set(`hotspot[${this.code}].url`,Cn(this.url)),e&&e(this)}update(e){var t;this.krpano.set(`hotspot[${this.code}].ath`,e.ath),this.krpano.set(`hotspot[${this.code}].atv`,e.atv),this.krpano.set(`hotspot[${this.code}].scale`,e.scale),this.krpano.set(`hotspot[${this.code}].rotate`,e.rotate),this.krpano.set(`hotspot[${this.code}].rx`,e.rx),this.krpano.set(`hotspot[${this.code}].ry`,e.ry),this.krpano.set(`hotspot[${this.code}].rz`,e.rz),this.krpano.set(`hotspot[${this.code}].distorted`,e.distorted),e.width?(this.krpano.set(`hotspot[${this.code}].width`,e.width+20),this.krpano.set(`hotspot[${this.code}].height`,e.height+20)):(t=this.krpano.get(`hotspot[${e.code}]`),this.krpano.set(`hotspot[${e.code}].width`,t.imagewidth+20),this.krpano.set(`hotspot[${e.code}].height`,t.imageheight+20))}show(){this.krpano.set(`hotspot[${this.code}].visible`,"true")}hide(){this.krpano.set(`hotspot[${this.code}].visible`,"false")}}class Zr{constructor(e){this.name="floorspot"+(Date.now()+Math.random()|0),this.krpano=e.krpano,this.signals=e.signals,this.onPointerMove=e.onPointerMove,this.visible=!1,this.allowVisibility=!0,this.timeout=null,this.placeHotspotAtMouse=this.placeHotspotAtMouse.bind(this),this.trackMouse=this.trackMouse.bind(this),this.onClick=this.onClick.bind(this),this.toggleVisible=this.toggleVisible.bind(this)}onClick(){this.signals.floorPoiClick.dispatch()}trackMouse(){var e,t,n;this.onPointerMove&&this.onPointerMove(),this.allowVisibility?(n=this.krpano.get("mouse"),({x:n,y:t}=this.krpano.screentosphere(n.x,n.y)),t<0?(this.krpano.set(`hotspot[${this.name}].alpha`,0),this.toggleVisible(!1)):(this.krpano.set("sphere_x",n),this.krpano.set("sphere_y",t),this.krpano.set("sphere_z",1),this.krpano.call("spheretospace('sphere_x', 'sphere_y', 'sphere_z', 'space_x', 'space_y', 'space_z')"),n=300*(n=this.krpano.get("space_x"))/(t=this.krpano.get("space_y")),e=300*(e=this.krpano.get("space_z"))/t,this.krpano.set(`hotspot[${this.name}].tx`,n),this.krpano.set(`hotspot[${this.name}].tz`,e),this.krpano.set(`hotspot[${this.name}].ty`,300),n=(t=Math.sqrt(n*n+e*e))<1e3?1:1-(t-1e3)/100,n=Math.max(n,0),this.krpano.set(`hotspot[${this.name}].alpha`,n),this.toggleVisible(!!n))):this.toggleVisible(!1)}placeHotspotAtMouse(){this.timeout=setInterval(this.trackMouse,1e3/60)}stopPlacingHotspotAtMouse(){this.timeout&&(clearInterval(this.timeout),this.timeout=null)}create(e){this.timeout=setTimeout(()=>{this.krpano.call(`addhotspot(${this.name});`),this.krpano.call(`\n set(hotspot[${this.name}].type, text);\n set(hotspot[${this.name}].devices, mouse);\n set(hotspot[${this.name}].css, font-size:80px;text-align:center;);\n set(hotspot[${this.name}].vcenter, true);\n set(hotspot[${this.name}].width, 200);\n set(hotspot[${this.name}].height, 200);\n set(hotspot[${this.name}].scale, 0.2);\n set(hotspot[${this.name}].bgalpha, 0.3);\n set(hotspot[${this.name}].bgroundedge, 100);\n set(hotspot[${this.name}].bgshadow, '0 0 5 0xFFFFFF 1.0');\n set(hotspot[${this.name}].oversampling, 2);\n set(hotspot[${this.name}].mipmapping, true);\n set(hotspot[${this.name}].zorder, ${P.BASE});\n set(hotspot[${this.name}].distorted, true);\n set(hotspot[${this.name}].depth, 0);\n set(hotspot[${this.name}].depthbuffer, true);\n set(hotspot[${this.name}].torigin, world);\n set(hotspot[${this.name}].rotationorder, xyz);\n set(hotspot[${this.name}].rx, -90);\n set(hotspot[${this.name}].capture, false);\n set(hotspot[${this.name}].capturefocus, false);\n set(hotspot[${this.name}].handcursor, false);\n set(hotspot[${this.name}].autoalpha, true);\n set(hotspot[${this.name}].visible, true);\n `),this.krpano.set(`hotspot[${this.name}].onloaded`,()=>{this.placeHotspotAtMouse(),this.krpano.set(`hotspot[${this.name}].onclick`,this.onClick),this.krpano.set(`hotspot[${this.name}].onup`,()=>{this.signals.poiMouseUp.dispatch()}),this.signals.toggleFloorPoi.add(e=>{this.toggleVisible(e)})})},500)}toggleVisible(e){this.visible=e,this.krpano.set(`hotspot[${this.name}].visible`,e&&this.allowVisibility)}toggleAllowVisibility(e){this.allowVisibility=e,this.trackMouse()}getVisible(){return this.visible&&this.allowVisibility}}let Kr=.32;class Jr{constructor(e){this.scale=.2,this.ox=0,this.oy=0,this.ry=0,this.width=0,this.height=0,this.north=0,this.alpha=Kr,this.hovering=!1,this.krpano=e.krpano,this.signals=e.signals,this.visible=!0,this.timeout=null,this.direction=e.direction;var t=`nav_${Kt()}_`+this.direction.toLowerCase();this.name=t+"_arrow",this.lblName=t+"_label",t=e.label||"",this.label=t.slice(0,39),t.length>39&&(this.label=this.label+"..."),this.sceneCode=e.sceneCode,this.north=e.north||0,this.ry=this.north,this.width=100,this.height=60,this.url=ke.NAVIGATION_ARROW,this.hoverUrl=ke.NAVIGATION_HIGHLIGHT,yn(this.krpano)&&(this.scale=.4),t=200*this.scale;switch(this.oy=-t,this.direction){case De.NORTH:break;case De.SOUTH:this.ry+=180;break;case De.EAST:this.ry+=90;break;case De.WEST:this.ry+=-90;break;case De.NORTH_EAST:this.ry+=45;break;case De.NORTH_WEST:this.ry+=-45;break;case De.SOUTH_EAST:this.ry+=135;break;case De.SOUTH_WEST:this.ry+=-135}this.trackView=this.trackView.bind(this),this.onClick=this.onClick.bind(this),this.onHover=this.onHover.bind(this),this.onOut=this.onOut.bind(this)}onClick(){this.signals.navigationPoiClick.dispatch(this.direction)}onHover(){this.hovering=!0,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, 1);,);`),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].alpha, 1);,);`)}onOut(){this.hovering=!1,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, ${this.alpha});,);`),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].alpha, ${this.alpha});,);`)}trackView(e,t,n){this.krpano.set(`hotspot[${this.name}].tx`,e),this.krpano.set(`hotspot[${this.name}].ty`,t),this.krpano.set(`hotspot[${this.name}].tz`,n),this.krpano.set(`hotspot[${this.lblName}].tx`,e),this.krpano.set(`hotspot[${this.lblName}].ty`,t),this.krpano.set(`hotspot[${this.lblName}].tz`,n)}createArrowHotspot(){this.isInActiveScene()&&(this.krpano.call(`addhotspot(${this.name});`),this.krpano.call(`\n set(hotspot[${this.name}].type, text);\n set(hotspot[${this.name}].devices, mouse);\n set(hotspot[${this.name}].url, ${this.url});\n set(hotspot[${this.name}].vcenter, true);\n set(hotspot[${this.name}].width, ${this.width});\n set(hotspot[${this.name}].height, ${this.height});\n set(hotspot[${this.name}].scale, ${this.scale});\n set(hotspot[${this.name}].ox, ${this.ox});\n set(hotspot[${this.name}].oy, ${this.oy});\n set(hotspot[${this.name}].oref, 1);\n set(hotspot[${this.name}].oversampling, 2);\n set(hotspot[${this.name}].mipmapping, true);\n set(hotspot[${this.name}].zorder, ${P.STANDARD});\n set(hotspot[${this.name}].distorted, true);\n set(hotspot[${this.name}].depth, 0);\n set(hotspot[${this.name}].depthbuffer, true);\n set(hotspot[${this.name}].torigin, world);\n set(hotspot[${this.name}].rotationorder, xyz);\n set(hotspot[${this.name}].rx, -90);\n set(hotspot[${this.name}].ry, ${this.ry});\n set(hotspot[${this.name}].capture, false);\n set(hotspot[${this.name}].capturefocus, true);\n set(hotspot[${this.name}].handcursor, true);\n set(hotspot[${this.name}].cursor, pointer);\n set(hotspot[${this.name}].autoalpha, true);\n set(hotspot[${this.name}].alpha, ${this.alpha});\n `))}createLabel(){var e;this.label&&this.isInActiveScene()&&(this.krpano.call(`addhotspot(${this.lblName});`),e=-Math.abs((this.ox||this.oy)/this.scale)-100,this.krpano.call(`\n set(hotspot[${this.lblName}].type, text);\n set(hotspot[${this.lblName}].devices, mouse);\n set(hotspot[${this.lblName}].renderer, css3d);\n set(hotspot[${this.lblName}].css, font-size:28px;text-align:center;color:#fff;text-shadow: 3px 3px #000;transform:translate(0, ${e}px));\n set(hotspot[${this.lblName}].vcenter, true);\n set(hotspot[${this.lblName}].bgalpha, 0);\n set(hotspot[${this.lblName}].width, 800);\n set(hotspot[${this.lblName}].height, 800);\n set(hotspot[${this.lblName}].scale, ${this.scale});\n set(hotspot[${this.lblName}].oref, 2);\n set(hotspot[${this.lblName}].oversampling, 2);\n set(hotspot[${this.lblName}].mipmapping, true);\n set(hotspot[${this.lblName}].zorder, ${P.STANDARD});\n set(hotspot[${this.lblName}].distorted, true);\n set(hotspot[${this.lblName}].depth, 0);\n set(hotspot[${this.lblName}].depthbuffer, true);\n set(hotspot[${this.lblName}].torigin, world);\n set(hotspot[${this.lblName}].rotationorder, xyz);\n set(hotspot[${this.lblName}].rx, -90);\n set(hotspot[${this.lblName}].ry, ${this.ry});\n set(hotspot[${this.lblName}].capture, false);\n set(hotspot[${this.lblName}].capturefocus, false);\n set(hotspot[${this.lblName}].alpha, ${this.alpha});\n `),this.krpano.set(`hotspot[${this.lblName}].html`,`[div]${this.label}[/div]`),this.krpano.set(`hotspot[${this.lblName}].onloaded`,()=>{this.isInActiveScene()?this.krpano.set(`hotspot[${this.lblName}].visible`,!1):this.krpano.call(`removehotspot(${this.lblName})`)}))}create(e){this.hovering=!1,this.alpha=Kr,setTimeout(()=>{this.isInActiveScene()?(this.createArrowHotspot(),this.createLabel(),this.krpano.set(`hotspot[${this.name}].onloaded`,()=>{this.isInActiveScene()?(this.krpano.set(`hotspot[${this.name}].visible`,this.visible),this.krpano.set(`hotspot[${this.name}].onclick`,this.onClick),this.krpano.set(`hotspot[${this.name}].onhover`,this.onHover),this.krpano.set(`hotspot[${this.name}].onout`,this.onOut),this.krpano.set(`hotspot[${this.name}].onup`,()=>{this.signals.poiMouseUp.dispatch()}),e&&e(this)):this.krpano.call(`removehotspot(${this.name})`)})):e&&e(this)},500)}toggle(e,t=!1){t||(this.visible=e);let n=e;this.visible||(n=this.visible),this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].visible, ${n});,);`),n||this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].visible, ${n});,);`)}fade(e){let t=!e;this.visible||(t=!1),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].visible, ${t});,);`),this.visible&&!this.hovering&&(this.alpha=e?Kr:.64,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, ${this.alpha});,);`))}isInActiveScene(){return(this.krpano.get("xml.scene")||"").toLowerCase()===(this.sceneCode||"").toLowerCase()}}class es extends Rr{constructor(e){super(e),this.url=e.url||ke.GALLERY,this.type=ue.GALLERY,this.gallery=e.gallery,this.hoverCode=un(this.code),this.hovering=!1,this.keepHover=!1,this.bannerVisible=!1,this.keepBannerVisible=!1,this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.toggleBanner=this.toggleBanner.bind(this),this.hideBanner=this.hideBanner.bind(this),this.handleOnLoaded=this.handleOnLoaded.bind(this)}getLookAtPosition(){var{h:e,v:t}=xn(this.krpano,this);return{ath:e,atv:t}}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onOver(){super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.HOVERING});`)}onOut(){super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.STANDARD});`),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e)}hideBanner(){this.bannerVisible&&!this.keepBannerVisible&&this.toggleBanner(!1)}handleOnLoaded(){var e=this.krpano.get(`hotspot[${this.hoverCode}]`),t=e.sprite.style.transform;e.sprite.style.transform=`${t} translateY(calc(-50% - ${(this.height||0)*(this.scale||1)/2}px))`}renderLaserTooltip(){var e=Object.assign(Object.assign({},this),{position:this.position,overviewPosition:this.overviewPosition});e=Ln(this.krpano,e,this.language);In(this.krpano,this.props,e)}create(e){e&&(this.onDone=e),kn(this)&&this.createFocusingHotspot(),this.renderLaserTooltip(),Un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)})}}class ts extends Rr{constructor(e){super(e),this.toggleDustEffect=e=>`\n if(${this.showDustEffect} AND !hide_all_lensflares AND view.fisheye LT 1,\n set(layer[blink_fl_lt_${this.code}].alpha, ${e});\n set(layer[blink_fl_rt_${this.code}].alpha, ${e});\n set(layer[blink_fl_rb_${this.code}].alpha, ${e});\n set(layer[blink_fl_lb_${this.code}].alpha, ${e});\n );\n `,this.updateFlares=e=>{var t="xposh_"+e,n="yposh_"+e;return`\n if(${n} LT 0 OR !${n},\n set(ukryj_gora_${e}, true);\n ,\n set(ukryj_gora_${e}, false);\n );\n\n if(${n} GT stageheight OR !${n},\n set(ukryj_dol_${e}, true);\n ,\n set(ukryj_dol_${e}, false);\n );\n\n set(zero_lewo_123, 0);\n copy(zero_prawo_123, stagewidth);\n\n if(fwebvr.isenabled,\n set(zero_lewo_123, 360);\n set(zero_prawo_123, calc(stagewidth-360));\n );\n\n if(${t} LT zero_lewo_123 OR !${t},\n set(ukryj_lewo_${e}, true);\n ,\n set(ukryj_lewo_${e}, false);\n );\n\n if(${t} GT zero_prawo_123 OR !${t},\n set(ukryj_prawo_${e}, true);\n ,\n set(ukryj_prawo_${e}, false);\n );\n\n getlooktodistance(re_${e}, view.hlookat, view.vlookat, ath, atv);\n\n if((!ukryj_gora_${e} AND !ukryj_dol_${e} AND !ukryj_lewo_${e} AND !ukryj_prawo_${e} AND re_${e} LT 90) AND view.fisheye LT 1,\n set(visible, true);\n ,\n set(visible, false);\n );\n `},this.krpano=e.krpano,this.url=e.url||ke.MOVING,this.metadata=e.metadata,this.type=ue.LENSFLARE,this.flareStyle=e.flareStyle||"DAY_LIGHT_1",this.showDustEffect="boolean"!=typeof e.showDustEffect||e.showDustEffect,this.desktopOnly="boolean"!=typeof e.desktopOnly||e.desktopOnly,this.ath=e.ath||0,this.atv=e.atv||0}create(){this.metadata?this.preview():console.warn("metadata empty")}preview(){this.clear();var e=this.krpano.get("device.mobile");this.desktopOnly&&e||(this.createDustLayers(),this.addSingleFlare())}clear(){var e;this.metadata&&(e=this.metadata.flares[this.flareStyle])&&(Object.values(e).forEach((e,t)=>{e=e.name,e=`f1_${this.code}_${e}_`+t,this.krpano.get(`hotspot[${e}]`)&&this.krpano.call(`removehotspot(${e})`)}),(this.metadata.dusts||[]).forEach(e=>{e=e.name+"_"+this.code,this.krpano.get(`removelayer[${e}]`)&&this.krpano.call(`removelayer(${e})`)}))}createDustLayers(){this.metadata&&this.metadata.dusts.forEach(e=>{var t=e.name+"_"+this.code;this.krpano.call(`\n addlayer(${t});\n copy(dustLayer, layer[${t}]);\n ${Object.entries(e).map(([e,t])=>`set(dustLayer.${e}, ${t});`).join("\n")}\n set(dustLayer.enabled, false);\n `)})}addSingleFlare(){var e;this.metadata&&(e=this.metadata.flares[this.flareStyle])&&Object.values(e).forEach((e,t)=>{var{name:e,url:n,vars:o}=e,i=`f1_${this.code}_${e}_`+t,[o,r,s,a,l,c,u,h,d,p,f]=(e=`f1_${this.code}_${e}_0`,o.split("|"));this.krpano.call(`\n set(hide_all_lensflares, false);\n addhotspot(${i});\n copy(hfla, hotspot[${i}]);\n\n set(hfla.distrored, true);\n set(hfla.enabled, false);\n set(hfla.alpha, 0);\n set(hfla.zorder, ${P.MAX});\n set(hfla.depth, 1000);\n set(hfla.edge, center);\n set(hfla.ox, 0);\n set(hfla.oy, 0);\n set(hfla.width, 440);\n set(hfla.height, 440);\n set(hfla.keep, false);\n\n set(hfla.url, ${n});\n set(hfla.ath, ${this.ath});\n set(hfla.atv, ${this.atv});\n set(hfla.dusteffect, ${this.showDustEffect});\n set(hfla.move, ${o});\n set(hfla.rmove, ${d});\n copy(hfla.athbazowy, hotspot[${e}].ath);\n copy(hfla.atvbazowy, hotspot[${e}].atv);\n set(hfla.flying, ${l});\n set(hfla.scale, ${r});\n set(hfla.alpha, ${s});\n set(hfla._alpha, ${s});\n set(hfla.rscale, ${c});\n set(hfla.ralpha, ${u});\n set(hfla.ralphaminus, ${h});\n set(hfla.zorder, ${a});\n set(hfla.invr, ${p});\n set(hfla.blendmode, ${f});\n set(scaleTemp_${i}, ${r});\n\n set(hfla.onloaded,\n if(webvr.isenabled, if(!invr, if(hotspot[${i}].loaded, removehotspot(${i}));));\n\n asyncloop(loaded,\n spheretoscreen(ath, atv, xposh_${i}, yposh_${i});\n div(xpos_${i}, stagewidth, 2);\n div(ypos_${i}, stageheight, 2);\n sub(xposg_${i}, xposh_${i}, xpos_${i});\n sub(yposg_${i}, yposh_${i}, ypos_${i});\n div(ox, xposg_${i}, calc(move*1.4/(rmove*12)));\n div(oy, yposg_${i}, calc(move*1.4/(rmove*12)));\n\n getlooktodistance(scal_${i}, view.hlookat, view.vlookat, ath, atv);\n\n spheretoscreen(athbazowy, atvbazowy, px_${i}, py_${i});\n sub(a_${i}, px_${i}, xpos_${i});\n sub(b_${i}, ypos_${i}, py_${i});\n Math.atan2(angle_${i}, a_${i}, b_${i});\n mul(angle_${i}, 180);\n div(angle_${i}, Math.PI);\n add(angle_${i}, 270);\n mod(angle_${i}, 360);\n roundval(angle_${i});\n copy(rz, angle_${i});\n\n if(ralpha,\n set(alpha_${i}, calc((scal_${i}/70)-ralphaminus));\n if(alpha_${i} LE 0, set(alpha_${i}, 0));\n if(webVr.isenabled,\n set(hotspot[${i}].alpha, calc(alpha_${i}/3));\n ,\n set(hotspot[${i}].alpha, calc(alpha_${i}));\n if(hotspot[${i}].alpha GT 1, set(hotspot[${i}].alpha, 1));\n );\n ,\n set(hotspot[${i}].alpha, ${s})\n );\n if(rscale != 1,\n set(valsc_${i}, calc((rscale*scal_${i})/10+scaleTemp_${i}));\n if(webVr.isenabled,\n set(scale, calc(valsc_${i}/2));\n ,\n copy(scale, valsc_${i});\n );\n );\n \n if(${t} == '1',\n getlooktodistance(result_${i}, view.hlookat, view.vlookat, ath, atv);\n div(result1_${i}, result_${i}, 10);\n clamp(result1_${i}, 0.0, 1.0);\n mod(result2_${i}, result1_${i}, 100);\n sub(result2_${i},1);\n mul(result2_${i},-1);\n\n copy(alpha, result2_${i});\n sub(alpha, 0.3);\n if(result_${i} LT 7,\n ${this.toggleDustEffect(`get(result2_${i})`)}\n );\n if(result_${i} GT 7 AND result_${i} LT 20,\n ${this.toggleDustEffect(0)}\n );\n );\n ${this.updateFlares(i)}\n );\n );\n `)})}}class ns extends Rr{constructor(e){super(e),this.label="",this.spheretoscreen=()=>{var{ath:e,atv:t}=this.getHoverPosition();return this.krpano.spheretoscreen(e,t)},this.moveToScene=e.moveToScene,this.moveToFloorplan=e.moveToFloorplan,this.url=e.url||ke.MOVING,this.type=ue.MOVING,this.isLookAt=!1,this.previewType=e.previewType||Te,this.label=e.label||"",this.previewType===Pe?this.alwaysShowLabel=void 0===e.alwaysShow||e.alwaysShow:this.alwaysShowLabel=!1,this.alwaysOnFloor=e.alwaysOnFloor||!1,this.tx=e.tx||0,this.ty=e.ty||0,this.tz=e.tz||0,this.displayType=e.displayType||Ze,this.bgColor=e.bgColor||"#333333",this.color=e.color||"#ffffff",this.fontSize=e.fontSize||"12pt",this.precision=void 0===e.precision||e.precision,this.lookWhenMoving=!1,this.showingLabel=!1,this.hovering=!1,this.hoverCode=un(this.code),this.dispatchClick=this.dispatchClick.bind(this),this.createOnFloor=this.createOnFloor.bind(this),this.updateAlpha=this.updateAlpha.bind(this),this.revertAlpha=this.revertAlpha.bind(this),this.updateHovering=this.updateHovering.bind(this),this.getHoverPosition=this.getHoverPosition.bind(this)}dispatchClick(){var e=this.moveToScene&&this.moveToScene.code,t=this.moveToFloorplan&&this.moveToFloorplan.code;e&&this.signals.movingPoiClick.dispatch(e,t,this.ath,this.atv,{lookWhenMoving:this.lookWhenMoving})}onClick(){super.onClick(),!this.isMobileDevice||this.previewType===Te||this.alwaysShowLabel?this.dispatchClick():this.showingLabel?(this.dispatchClick(),this.hideLabel()):(this.signals.toggleLabels.dispatch(!1),this.showLabel(),this.isMobileDevice&&setTimeout(()=>{this.dispatchClick()},1e3))}onOver(){this.updateHovering(!0),super.onOver(),this.signals.poiOver.dispatch({poiData:this.props,coords:this.getCenter()})}onOut(){this.updateHovering(!1),super.onOut(),this.signals.poiOut.dispatch(),this.isMobileDevice||this.hideLabel()}onHover(){this.updateHovering(!0),this.signals.poiHover.dispatch(this.getCenter()),this.showLabel()}toggleLabel(e=!1,t=!1){this.previewType!==Te&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),t||!this.alwaysShowLabel||this.alwaysShowLabel&&e)&&(this.showingLabel=e)}showLabel(){this.toggleLabel(!0),this.isMobileDevice&&!this.alwaysShowLabel&&this.previewType===Pe&&(this.timeOut=setTimeout(()=>{this.hideLabel()},2e3))}hideLabel(){this.timeOut&&(clearTimeout(this.timeOut),this.timeOut=void 0),this.alwaysShowLabel||this.toggleLabel(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),(this.showingLabel||this.alwaysShowLabel&&e)&&this.toggleLabel(e,!0)}updateAlpha(e){this.hovering||this.isMobileDevice?this.revertAlpha():this.krpano.set(`hotspot[${this.code}].alpha`,e)}revertAlpha(){this.krpano.set(`hotspot[${this.code}].alpha`,this.alpha)}updateHovering(e){this.isMobileDevice||(this.hovering=e)}getHoverContent(){return`\n [div class="cvtv-moving-label-poi"]\n [div class="cvtv-moving-label-poi__inner"]${this.label}[/div]\n [div class="cvtv-moving-label-poi__arrow"]\n [span class="cvtv-moving-label-poi__arrow__content" /]\n [/div]\n [/div]\n `}createRoomNameCard(e){this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`\n set(hotspot[${this.code}].type, text);\n set(hotspot[${this.code}].renderer, css3d);\n set(hotspot[${this.code}].bgalpha, 0);\n set(hotspot[${this.code}].visible, true);\n set(hotspot[${this.code}].autowidth, true);\n set(hotspot[${this.code}].autoheight, true);\n set(hotspot[${this.code}].scale, ${this.scale});\n set(hotspot[${this.code}].ath, ${this.ath});\n set(hotspot[${this.code}].atv, ${this.atv});\n set(hotspot[${this.code}].rx, ${this.rx});\n set(hotspot[${this.code}].ry, ${this.ry});\n set(hotspot[${this.code}].rz, ${this.rz});\n set(hotspot[${this.code}].rotate, ${this.rotate});\n set(hotspot[${this.code}].distorted, ${this.distorted});\n set(hotspot[${this.code}].handcursor, true);\n set(hotspot[${this.code}].css, font-family:Barlow; font-size:14px; padding: 3rem;);\n `),this.krpano.set(`hotspot[${this.code}].html`,`\n [div]\n [div style="\n background-color: ${this.bgColor};\n padding: 0.5rem 1rem;\n display: flex;\n gap: 0.5rem;\n align-items: center;\n "]\n [img\n width="${this.width}"\n height="${this.height}"\n src="${Cn(ln(this.props))}"\n /]\n ${this.previewType===Te?"":`[span style="color: ${this.color}; font-size: ${this.fontSize}"]${this.label}[/span]`}\n [/div]\n [/div]\n `),setTimeout(()=>{super.addEvents()},500),e&&e(this)}createOnFloor(e){Bn(this.krpano,this.props),setTimeout(()=>{super.addEvents()},500),e&&e(this)}create(e){if(this.displayType===Ke)this.createRoomNameCard(e);else if(this.previewType===Te||this.previewType===Ce)this.alwaysOnFloor?this.createOnFloor(e):super.create(e);else{var t=this.getHoverContent(),n=Object.assign(Object.assign({},this.props),this.getHoverPosition());let o;Rn(this.krpano,n,t,!1),(o=(this.alwaysOnFloor?Bn:Un)(this.krpano,n)).then(()=>{this.alwaysShowLabel&&this.showLabel(),super.addEvents(),e&&e(this)})}}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.dispatchClick()})}getHoverPosition(){return this.alwaysOnFloor?this.krpano.spacetosphere(this.tx,this.ty,this.tz):{ath:this.ath,atv:this.atv}}isHideable(){return this.displayType!==Ke}}class os extends Rr{constructor(e){super(e),this.image=e.image,this.url=this.image?this.image.url:void 0,this.rotatewithview=e.rotatewithview||!1,this.type=ue.NADIR_LOGO,this.zenith=e.zenith||!1}create(e){if(this.url&&this.visible&&this.enabled){let o=this.props.rz||0;this.zenith&&(o+=180);var t=this.props.width||100,n=this.props.height||100;this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].type, 'image');`),this.krpano.call(`set(hotspot[${this.code}].url, ${this.url});`),this.krpano.call(`set(hotspot[${this.code}].ath, 0);`),this.krpano.call(`set(hotspot[${this.code}].atv, ${this.zenith?-90:90});`),this.krpano.call(`set(hotspot[${this.code}].width, ${t});`),this.krpano.call(`set(hotspot[${this.code}].height, ${n});`),this.krpano.call(`set(hotspot[${this.code}].rz, ${o});`),this.krpano.call(`set(hotspot[${this.code}].distorted, true);`),this.krpano.call(`set(hotspot[${this.code}].handcursor, false);`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.call(`set(hotspot[${this.code}].capturefocus, false);`),this.krpano.call(`set(hotspot[${this.code}].rotatewithview, ${this.rotatewithview});`),this.krpano.call(`set(hotspot[${this.code}].cursor, 'none');`),this.krpano.call(`set(hotspot[${this.code}].visible, true);`),this.krpano.call(`set(hotspot[${this.code}].enabled, true);`),e&&e(this)}}}class is extends Rr{constructor(e){super(e),this.image=e.image,this.url=e.image?e.image.url:ke.PHOTO,this.type=ue.PHOTO}create(e){super.create(e),this.krpano.call(`set(hotspot[${this.code}].capture,false);`)}onOut(){}onOver(){}isHideable(){return!1}}class rs extends Fr{constructor(e){super(e),this.type=ue.POLYGON,this.fillColor=e.fillColor||255,this.fillAlpha=e.fillAlpha||.2,this.borderWidth=e.borderWidth||3,this.borderColor=e.borderColor||255,this.borderAlpha=e.borderAlpha||1,this.zorder=e.zorder||1,this.points=e.points||[],this.mouseOver=!1}addDesktopEvents(){super.addDesktopEvents(),!this.isMobileDevice&&this.isHoverable()&&(this.krpano.set(`hotspot[${this.hoverCode}].onover`,()=>{this.mouseOver=!0}),this.krpano.set(`hotspot[${this.hoverCode}].onout`,()=>{this.mouseOver=!1,this.onOut()}))}onClick(){super.onClick(),this.isClickable()&&(this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch())}onOver(){this.isHoverable()&&super.onOver()}onOut(){this.isHoverable()&&!this.mouseOver&&super.onOut()}onHover(){this.isHoverable()&&this.show()}show(){this.krpano.set(`hotspot[${this.hoverCode}].visible`,"true"),this.hovering=!0}hide(){this.krpano.set(`hotspot[${this.hoverCode}].visible`,"false"),this.hovering=!1}toggleVisibility(e){this.hovering&&this.krpano.set(`hotspot[${this.hoverCode}].visible`,""+e)}getPolygonCenter(){var e=this.krpano.get(`hotspot[${this.code}]`);if(e)return e.getcenter()}getLookAtPosition(){var{x:e,y:t}=this.getPolygonCenter();return{ath:e,atv:t}}create(e){var t;e&&(this.onDone=e),this.itemInfo&&(this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].fillcolor,${this.fillColor});`),this.krpano.call(`set(hotspot[${this.code}].fillalpha,${this.fillAlpha});`),this.krpano.call(`set(hotspot[${this.code}].borderwidth,${this.borderWidth});`),this.krpano.call(`set(hotspot[${this.code}].bordercolor,${this.borderColor});`),this.krpano.call(`set(hotspot[${this.code}].borderalpha,${this.borderAlpha});`),this.krpano.call(`set(hotspot[${this.code}].zorder,${this.zorder});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{this.krpano.set(`hotspot[${this.code}].visible`,this.visible)}),this.points.forEach(e=>{var{code:e,ath:t,atv:n}=e;this.krpano.call(`set(hotspot[${this.code}], point[${e}].ath=${t}, point[${e}].atv=${n});`)}),(e=this.getPolygonCenter())&&(this.ath=e.x,this.atv=e.y),(e=this.getHoverContent())&&(t=Object.assign(Object.assign({},this.props),{ath:this.ath,atv:this.atv,height:0}),Rn(this.krpano,t,e)),setTimeout(()=>{this.addEvents()},200),this.onDone)&&this.onDone(this)}}class ss extends Rr{constructor(e){super(e),this.text=void 0,this.image=void 0,this.iframe=void 0,this.webRotateCode=void 0,this.iframeSize=void 0,this.url=e.url||ke.POPUP,this.type=ue.POPUP,this.text=e.text,this.image=e.image,this.iframe=e.iframe,this.webRotateCode=e.webRotateCode,this.label=e.label||"",this.hoverCode=un(this.code),this.iframeSize=e.iframeSize}onClick(){super.onClick(),this.signals.poiClick.dispatch(this.props)}onOver(){super.onOver()}onOut(){super.onOut()}onHover(){}getHoverContent(){return this.label?`\n [div class="bg-[rgba(0,0,0,0.6)] rounded shadow-[0_1px_2px_-2px_rgba(0,0,0,0.16),0_3px_6px_0_rgba(0,0,0,0.12),0_5px_12px_4px_rgba(0,0,0,0.09)] text-white cursor-pointer text-base font-normal leading-5 min-w-[60px] pointer-events-auto text-center px-3 py-2"]\n [div class="h-full overflow-hidden w-full rounded-md"]${this.label}[/div]\n [div class="bottom-[-14.14213562373095px] h-[14.14213562373095px] left-[calc(50%_-_7.07px)] overflow-hidden absolute w-[14.14213562373095px] z-0"]\n [span class="bg-[rgba(0,0,0,0.6)] block h-2.5 relative rotate-45 -translate-x-2/4 translate-y-0 w-2.5 left-[5px] -top-0.5" /]\n [/div]\n [/div]\n `:""}create(e){var t=this.getHoverContent(),n=Object.assign(Object.assign({},this.props),{ath:this.ath,atv:this.atv});Rn(this.krpano,n,t,!1),this.krpano.set(`hotspot[${this.hoverCode}].visible`,!0),Un(this.krpano,n).then(()=>{super.addEvents(),e&&e(this)})}}(e=>{e.NEW_TAB="NEW_TAB",e.IFRAME="IFRAME",e.BUILD_IN="BUILD_IN"})(zr=zr||{});class as extends Rr{constructor(e){super(e),this.url=e.url||ke.PROMOTION,this.type=ue.PROMOTION,this.promotion=e.promotion,this.hoverCode=un(this.code),this.hovering=!1,this.keepHover=!1,this.bannerVisible=!1,this.keepBannerVisible=!1,this.promotionCode=e.promotionCode,this.lineHeight=40,this.bannerSize=150,this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.toggleBanner=this.toggleBanner.bind(this),this.hideBanner=this.hideBanner.bind(this),this.handleOnLoaded=this.handleOnLoaded.bind(this)}getLookAtPosition(){var{h:e,v:t}=xn(this.krpano,this);return{ath:e,atv:t}}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onClick(){super.onClick();var e=!this.bannerVisible;this.toggleBanner(e),e&&(this.keepBannerVisible=!0,setTimeout(()=>{this.keepBannerVisible=!1},1e3))}onOver(){super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.HOVERING});`)}onOut(){super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.STANDARD});`),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){pn(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e))}hideBanner(){this.bannerVisible&&!this.keepBannerVisible&&this.toggleBanner(!1)}handleOnLoaded(){var e=this.krpano.get(`hotspot[${this.hoverCode}]`),t=e.sprite.style.transform;e.sprite.style.transform=`${t} translateY(calc(-50% - ${(this.height||0)*(this.scale||1)/2}px))`}renderLaserTooltip(){var e=Ln(this.krpano,this,this.language);In(this.krpano,this.props,e)}create(e){var t,n,o;e&&(this.onDone=e),this.promotion&&(({image:t,endDate:n,startDate:o}=this.promotion),t)&&t.url&&Pn(o).isBefore(new Date)&&Pn(n).isAfter(new Date)&&(kn(this)&&this.createFocusingHotspot(),(e=>ce(void 0,void 0,void 0,function*(){return e?new Promise(t=>{let n=new Image;n.onload=()=>{var{width:e,height:o}=n;t({width:e,height:o})},n.onerror=()=>{t(null)},n.src=e}):null}))(o=Zt(sn(t,(this.width||0)*(this.scale||1)))).then(t=>{t&&(this.renderLaserTooltip(),Un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)}))}))}hasDetailModal(){return this.promotion&&this.promotion.openType===zr.BUILD_IN}}(e=>{e.NONE="NONE",e.SEMICIRCLE="SEMICIRCLE",e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"})(Ur=Ur||{});class ls extends Rr{constructor(e){super(e),this.menuStyle=Ur.NONE,this.hoverTimeout=null,this.setTextureIndex=e=>{this.textureIndex=e,this.changeVisibleTexture()},this.getElementName=e=>this.code+"_texture_"+e,this.onOutMenuContextMask=()=>{this.toggleContext(!1)},this.onOverMenuContextMask=()=>{this.toggleContext(!0)},this.antiFlicking=(e,t)=>{this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),t?this.hoverTimeout=setTimeout(()=>{e()},t):e()},this.toggleContext=(e=!1)=>{this.antiFlicking(()=>{this.hovering=e;var{x:t,y:n}=this.krpano.spheretoscreen(this.ath,this.atv);this.signals.texturePoiHover.dispatch({poi:e?this:null,coords:{x:t,y:n}}),this.krpano.set(`hotspot[${this.menuContextMask}].visible`,e),this.krpano.set(`hotspot[${this.code}].zorder`,e?P.HOVERING:P.STANDARD)},e?0:.2)},this.textures=e.textures,this.textureIndex=e.textureIndex||0,this.menuStyle=e.menuStyle,this.url=ke.TEXTURE,this.type=ue.TEXTURE,this.menuContextMask=this.code+"_context_mask",this.bannerVisible=!1,this.keepHover=!1,this.hovering=!1,this.isLookAt=kn(this),this.hoverTimeout=null,this.hoverCode=un(this.code)}changeVisibleTexture(){this.textures&&0!==this.textures.length&&this.textures.forEach((e,t)=>{t===this.textureIndex?this.krpano.call(`tween(hotspot[${this.getElementName(t)}].alpha, 1.0, 0.5);`):this.krpano.call(`tween(hotspot[${this.getElementName(t)}].alpha, 0, 0.5);`)})}createTexture(e,t,n=0){var{hfov:t,yaw:o,pitch:i,roll:r}=t,s=57.295779;this.krpano.call(`\n addhotspot(${this.getElementName(n)});\n set(hotspot[${this.getElementName(n)}].url, ${e});\n set(hotspot[${this.getElementName(n)}].distorted, true);\n set(hotspot[${this.getElementName(n)}].enabled, false);\n set(hotspot[${this.getElementName(n)}].alpha, ${n===this.textureIndex?1:0});\n set(hotspot[${this.getElementName(n)}].width, 0);\n set(hotspot[${this.getElementName(n)}].height, 0);\n set(hotspot[${this.getElementName(n)}].rx,0);\n set(hotspot[${this.getElementName(n)}].ry,0);\n set(hotspot[${this.getElementName(n)}].rz,0);\n set(hotspot[${this.getElementName(n)}].onloaded, '\n div(hfov_${this.getElementName(n)}, ${t}, ${s});\n div(yaw_${this.getElementName(n)}, ${o}, -${s});\n div(pitch_${this.getElementName(n)}, ${i}, ${s});\n div(roll_${this.getElementName(n)}, ${r}, -${s});\n mul(hfov_${this.getElementName(n)}, 0.5);\n Math.tan(hfov_${this.getElementName(n)});\n mul(hotspot[${this.getElementName(n)}].width, hfov_${this.getElementName(n)}, 1000);\n set(hotspot[${this.getElementName(n)}].height, prop);\n Math.cos(ch_${this.getElementName(n)}, yaw_${this.getElementName(n)});\n Math.sin(sh_${this.getElementName(n)}, yaw_${this.getElementName(n)});\n Math.cos(ca_${this.getElementName(n)}, pitch_${this.getElementName(n)});\n Math.sin(sa_${this.getElementName(n)}, pitch_${this.getElementName(n)});\n Math.cos(cb_${this.getElementName(n)}, roll_${this.getElementName(n)});\n Math.sin(sb_${this.getElementName(n)}, roll_${this.getElementName(n)});\n mul(m0_${this.getElementName(n)}, ca_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, cb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, sb_${this.getElementName(n)}, sh_${this.getElementName(n)});\n add(m3_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m4_${this.getElementName(n)}, cb_${this.getElementName(n)}, ca_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, cb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, sh_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, sb_${this.getElementName(n)}, ch_${this.getElementName(n)});\n sub(m5n_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m5n_${this.getElementName(n)}, -1);\n mul(tmp_${this.getElementName(n)}, sb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, cb_${this.getElementName(n)}, sh_${this.getElementName(n)});\n sub(m6n_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m6n_${this.getElementName(n)}, -1);\n Math.atan2(yaw_${this.getElementName(n)}, m6n_${this.getElementName(n)}, m0_${this.getElementName(n)});\n Math.atan2(roll_${this.getElementName(n)}, m5n_${this.getElementName(n)}, m4_${this.getElementName(n)});\n Math.asin(pitch_${this.getElementName(n)}, m3_${this.getElementName(n)});\n mul(hotspot[${this.getElementName(n)}].ath, yaw_${this.getElementName(n)}, ${s});\n mul(hotspot[${this.getElementName(n)}].atv, pitch_${this.getElementName(n)}, ${s});\n mul(hotspot[${this.getElementName(n)}].rotate, roll_${this.getElementName(n)}, ${s});\n ');\n `)}create(e){var t;super.create(e),this.krpano.call(`set(hotspot[${this.code}].zorder,' ${P.STANDARD}');`),this.overviewPosition!==Re.NONE&&(kn(this)&&this.createFocusingHotspot(),e=Ln(this.krpano,this,this.language),In(this.krpano,this.props,e)),this.textures&&0!==this.textures.length&&(this.textures.forEach((e,t)=>{var n=e.image;n=Cn(n.file.url);this.createTexture(n,e,t)}),this.menuStyle!==Ur.NONE)&&(e=[Ur.HORIZONTAL].includes(this.menuStyle)?800:320,t=[Ur.HORIZONTAL].includes(this.menuStyle)?96:320,e=this.width<e?e:this.width+32,t=this.height<t?t:this.height+32,this.krpano.call(`\n addhotspot(${this.menuContextMask});\n set(hotspot[${this.menuContextMask}].type, 'text');\n set(hotspot[${this.menuContextMask}].bgalpha, 0);\n set(hotspot[${this.menuContextMask}].handcursor, false);\n set(hotspot[${this.menuContextMask}].width, ${e});\n set(hotspot[${this.menuContextMask}].height, ${t});\n set(hotspot[${this.menuContextMask}].visible, false);\n set(hotspot[${this.menuContextMask}].rx, 0);\n set(hotspot[${this.menuContextMask}].ry, 0);\n set(hotspot[${this.menuContextMask}].rz, 0);\n set(hotspot[${this.menuContextMask}].rotate, 0);\n set(hotspot[${this.menuContextMask}].distorted, true);\n set(hotspot[${this.menuContextMask}].enabled, true);\n set(hotspot[${this.menuContextMask}].zorder, ${P.HOVERING_AREA});\n set(hotspot[${this.menuContextMask}].ath, '${this.ath}');\n set(hotspot[${this.menuContextMask}].atv, '${this.atv}');\n `))}addDesktopEvents(){super.addDesktopEvents(),this.onOutMenuContextMask&&this.krpano.set(`hotspot[${this.menuContextMask}].onout`,this.onOutMenuContextMask),this.onOverMenuContextMask&&this.krpano.set(`hotspot[${this.menuContextMask}].onover`,this.onOverMenuContextMask)}onOut(){this.toggleContext(!1)}onOver(){super.onOver(),this.toggleContext(!0)}onClick(){var e,t;super.onClick(),kn(this)||(this.textures&&0!==this.textures.length&&(this.textureIndex=++this.textureIndex%this.textures.length,this.changeVisibleTexture()),this.isMobileDevice?(({x:e,y:t}=this.krpano.spheretoscreen(this.ath,this.atv)),this.signals.texturePoiTouched.dispatch({poi:this,coords:{x:e,y:t}})):this.signals.texturePoiClick.dispatch({poi:this}))}toggleHoverPoi(e=!1){kn(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e))}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}}class cs{constructor(e){this.navPois={},this.orderIndex=0,this.north=0,this.tags=[],this.showNavigationHotspots=!1,this.showNavigationWithoutMovingHotspot=!1,this.showNavigationHotspotLabels=!1,this.debounceAutoShowHotspot=Yt(()=>{this.autoShowHotspots()},300),this.nearestMovingPoi=null,this.movingHotspotsHidden=!1,this.centerPoi=null,this.isMobileDevice=!1,this.autoShowType=Le,this.load=(e=0,t,n)=>{var o,i=this.krpano.getView(),r=fn(this.krpano);let s=this.hlookat,a=this.vlookat;t&&(({hChanged:t,vChanged:l,ignoreNorth:o=!1}=t),a=l,s=o?t:_n(this.north+t));var l=ft({hlookat:s,vlookat:a,fov:r.fov||i.fov,fovtype:r.fovtype});this.krpano.call(`\n delayedcall(${e},loadscene(${this.code},${l},${this.flags},${n||this.blend}););\n `)},this.setViewLimit=()=>{let{coverMode:e,vlookatmax:t,vlookatmin:n,hlookatmax:o,hlookatmin:i,hlookat:r,vlookat:s}=this.viewLimitConfig;if(e===Oe){let e=n||-90,a=t||90,l=i||-360,c=o||Qt;this.setOnViewChangeEvents(()=>{this.krpano.call(`clamp(view.vlookat,${s+e},${s+a})`),-360===Math.round(l)&&Math.round(c)===Qt||this.krpano.call(`clamp(view.hlookat,${r+l},${r+c})`)},!0)}},this.showHotspotNearestToCenter=()=>{if(this.allPoiVisible&&this.allLabelVisible&&this.pois.length){let{hlookat:t,vlookat:n,hfov:o}=this.krpano.getView(),i=[ue.PROMOTION,ue.ITEM_INFO,ue.POLYGON,ue.GALLERY,ue.TEXTURE];var e=this.pois.map(e=>{if(e.visible&&i.includes(e.type)&&(e.itemInfo||e.promotion||e.gallery)){try{var r,s=this.getHorizontalDisplayDeg(e,o),a=this.krpano.spheretospace(t,n);if(vn(t,n,e.ath,e.atv).h<s)return r=this.krpano.spheretospace(e.ath,e.atv),{poi:e,dist:bn(a,r)}}catch(e){console.error(e)}e.hide(!0)}return null}).filter(e=>!!e).sort((e,t)=>null===e.dist?1:null===t.dist?-1:e.dist-t.dist);e.forEach((e,t)=>{var{poi:e,dist:n}=e,o=e;0===t&&null!==n&&this.isVisiblePoi(e)?(this.signals.toggleHotspotNearestToCenter.dispatch(o.code),(this.centerPoi=o).show(!0)):o.hide(!0)}),null!=e&&e.length||(this.signals.toggleHotspotNearestToCenter.dispatch(null),this.centerPoi=null)}else this.signals.toggleHotspotNearestToCenter.dispatch(null),this.centerPoi=null},this.buildNavigationHotspots=()=>{if(this.showNavigationHotspots){let e=this.floorMovingPois.map(e=>this.movingPoisMap[e]);Object.values(De).forEach(t=>{var n=(e=>{switch(e){case De.NORTH:return[{min:-23,max:23}];case De.NORTH_EAST:return[{min:24,max:67}];case De.EAST:return[{min:68,max:113}];case De.SOUTH_EAST:return[{min:114,max:157}];case De.NORTH_WEST:return[{max:-24,min:-67}];case De.WEST:return[{max:-68,min:-113}];case De.SOUTH_WEST:return[{max:-114,min:-157}];case De.SOUTH:return[{max:-158,min:-180},{min:158,max:180}]}return null})(t);if(n){var o=[];for(let t=e.length-1;0<=t;t--){var i=e[t],r=_n(Math.round(i.ath||0));let s=Math.round(r-this.north);s<-180?s+=360:180<s&&(s-=360),n.some(({max:e,min:t})=>s>=t&&s<=e)&&(o.push(i),e.splice(t,1))}if(o.length){var s=o.reduce((e,t)=>{var{poi:n,distance:o}=e,i=mn(t.ath,90,t.ath,t.atv);return!n||i<o?{poi:t,distance:i}:e},{poi:null,distance:0}).poi;if(s){let e;this.movingPoiByDirection[t]=s,this.navPois||(this.navPois={}),this.canShowMovingHotspotLabel(s)&&({label:e}=s),this.navPois[t]=new Jr({krpano:this.krpano,signals:this.signals,direction:t,north:this.north,label:e,sceneCode:this.code})}}}})}},this.toggleNavigationHotspots=(e=!0,t=!1)=>{this.showNavigationHotspots&&this.navPois&&Object.keys(this.navPois).length&&(Object.values(this.navPois).forEach(n=>{n.toggle(e,t)}),e)&&this.trackViewNavigationHotspots()},this.moveWithNavigationPoi=e=>{(e=this.movingPoiByDirection[e])&&e.dispatchClick()},this.moveToClosestPoi=()=>{this.floorPoi||this.updateNearestMovingHotspotToMouse(),this.nearestMovingPoi&&this.canMoveToNearestPOI()&&this.nearestMovingPoi.dispatchClick()},this.toggleFloorPoiVisibility=e=>{this.floorPoi&&this.floorPoi.toggleAllowVisibility(e)},this.getHotspotDistanceFromView=e=>{e=this.krpano.get(`hotspot[${e.code}]`);var t,n,o=this.krpano.getView();return o&&e?(({hlookat:o,vlookat:t}=o),({ath:e,atv:n}=e),vn(o,t,e,n)):null},this.showIfHotspotInRange=e=>{var t=this.krpano.getView().hfov,n=this.getHotspotDistanceFromView(e);return n?((n=n.h<this.getHorizontalDisplayDeg(e,t))?e.show(!0):e.hide(!0),n):(e.hide(!0),!1)},this.clearTimeout=()=>{this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},this.getHorizontalDisplayDeg=(e,t)=>t/3/2,this.showHotspotsInRange=()=>{this.allPoiVisible&&this.allLabelVisible&&this.pois.length&&this.pois.forEach(e=>{e.visible&&(e.type===ue.ITEM_INFO&&this.showIfHotspotInRange(e),e.type===ue.PROMOTION&&this.showIfHotspotInRange(e),e.type===ue.GALLERY)&&this.showIfHotspotInRange(e)})},this.isMovingHotspotWithNamePlate=e=>e.type===ue.MOVING&&e.displayType===Ke,this.updateNearestMovingHotspotToMouse=()=>{if(this.nearestMovingPoi=null,this.floorMovingPois&&this.floorMovingPois.length&&!this.movingHotspotsHidden){var[e]=this.floorMovingPois,{x:t,y:n}=this.krpano.get("mouse");let{x:o,y:i}=this.krpano.screentosphere(t,n);t=this.movingPoisMap[e],n=mn(o,i,t.ath,t.atv),this.isMovingHotspotWithNamePlate(t)||t.updateAlpha(.2),1===this.floorMovingPois.length&&n<1e3?(this.nearestMovingPoi=t,this.isFloorPoiVisible()&&t.revertAlpha()):(e=this.floorMovingPois.reduce((e,t)=>{var{poi:n,distance:r}=e;return(t=this.movingPoisMap[t]).code===n.code?e:(this.isMovingHotspotWithNamePlate(t)||t.updateAlpha(.2),(n=mn(o,i,t.ath,t.atv))<r?{poi:t,distance:n}:e)},{poi:t,distance:n})).distance<1e3&&(this.nearestMovingPoi=e.poi,this.isFloorPoiVisible())&&this.nearestMovingPoi.revertAlpha()}},this.trackViewNavigationHotspots=()=>{if(this.navPois&&Object.keys(this.navPois).length){let a=1;(e=>e.get("device.tablet"))(this.krpano)?a=.75:yn(this.krpano)&&(a=.5);var e=250/a,t=500/a,n=this.krpano.getView(),o=_n(Math.round(n.vlookat))+25,i=n.hlookat,r=_n(Math.round(i-103)),s=_n(Math.round(i+103));let l=[];s<r?r<0?(l.push({min:r,max:0}),l.push({min:0,max:180}),l.push({min:-180,max:s})):0<s?(l.push({min:r,max:180}),l.push({min:-180,max:0}),l.push({min:0,max:s})):(l.push({min:r,max:180}),l.push({min:-180,max:s})):l.push({min:r,max:s}),r=_n(Math.round(i-30)),s=_n(Math.round(i+30));let c=[];s<r?(c.push({min:r,max:180}),c.push({min:-180,max:s})):c.push({min:r,max:s}),i=Math.max(22,o),this.krpano.set("sphere_x",n.hlookat),this.krpano.set("sphere_y",i),this.krpano.set("sphere_z",1),this.krpano.call("spheretospace('sphere_x', 'sphere_y', 'sphere_z', 'space_x', 'space_y', 'space_z')"),r=this.krpano.get("space_x"),s=this.krpano.get("space_y"),o=this.krpano.get("space_z");let u=t-(90-i)/68*(t-e),h=r*u/s,d=o*u/s;Object.values(De).forEach(e=>{var t,n;this.navPois[e]&&(t=!!(n=(e=>{switch(e){case De.NORTH:return[0];case De.NORTH_EAST:return[45];case De.EAST:return[90];case De.SOUTH_EAST:return[135];case De.NORTH_WEST:return[-45];case De.WEST:return[-90];case De.SOUTH_WEST:return[-135];case De.SOUTH:return[180,-180]}return null})(e))&&n.some(e=>{let t=_n(Math.round(e+this.north));return l.some(({min:e,max:n})=>t>=e&&t<=n)}),n=!!n&&n.some(e=>{let t=_n(Math.round(e+this.north));return c.some(({min:e,max:n})=>t>=e&&t<=n)}),this.navPois[e].toggle(t,!0),this.navPois[e].fade(!n),this.navPois[e].trackView(h,u,d))})}},this.canShowMovingHotspotLabel=e=>this.showNavigationHotspotLabels&&(e.previewType===Pe||e.previewType===Ce)&&!!e.label,this.loadNavigationHotspots=()=>{if(this.showNavigationHotspots&&this.navPois&&Object.keys(this.navPois).length){let e=[];Object.keys(this.navPois).forEach(t=>{var n=new Promise(e=>{this.navPois[t].create(()=>{e()})});e.push(n)}),Promise.all(e).then(()=>{this.trackViewNavigationHotspots()}),this.setOnViewChangeEvents(this.trackViewNavigationHotspots)}},this.isFloorPoiVisible=()=>this.floorPoi&&this.floorPoi.getVisible(),this.canMoveToNearestPOI=()=>{var e;return this.isMobileDevice?(e=this.krpano.get("mouse"),0<=(e=this.krpano.screentosphere(e.x,e.y).y)):this.isFloorPoiVisible()},this.props=e,this.id=""+e.id,this.name=e.name,this.code=e.code,this.krpano=e.krpano,this.signals=e.signals,this.pois=[],this.sourceFolder=e.sourceFolder,this.hlookat=e.hlookat||0,this.vlookat=e.vlookat||0,this.orderIndex=e.orderIndex||0,this.allPoiVisible=void 0===e.allPoiVisible||e.allPoiVisible,this.allLabelVisible=!0,this.labelInvisibleArray=[],this.singleClick=e.singleClick,this.viewLimitConfig={coverMode:e.coverMode||Se,hlookat:e.hlookat,vlookat:e.vlookat,vlookatmax:e.vlookatmax,vlookatmin:e.vlookatmin,hlookatmax:e.hlookatmax,hlookatmin:e.hlookatmin},this.north=e.northX||0,this.blend=e.blend||_e.DEFAULT,this.showNavigationHotspots=e.showNavigationHotspots||!1,this.showNavigationWithoutMovingHotspot=e.showNavigationWithoutMovingHotspot||!1,this.showNavigationHotspotLabels=e.showNavigationHotspotLabels||!1,this.movingHotspotsHidden=this.showNavigationHotspots&&this.showNavigationWithoutMovingHotspot,this.isMobileDevice=an(this.krpano),this.vars=null,this.flags=null,this.tourName=e.tourName,this.tourCode=e.tourCode,this.movingPoiByDirection={},this.floorMovingPois=[],this.movingPoisMap={},e.pois&&(this.pois=[],e.pois.forEach(t=>{let n;var o=Object.assign(Object.assign({},t),{krpano:e.krpano,signals:e.signals,tourUrl:e.tourUrl,bgPoi:this.bgPoi,theme:e.theme,metadata:e.metadata,sceneCode:e.code,tourName:e.tourName,tourCode:e.tourCode});switch(t.type){case ue.MOVING:n=new ns(o);var i=Kt();(this.movingPoisMap[i]=n).precision||this.floorMovingPois.push(i);break;case ue.INFO:n=new Hr(o);break;case ue.SOUND:n=new qr(o);break;case ue.POPUP:n=new ss(o);break;case ue.PHOTO:n=new is(o);break;case ue.VIDEO:n=new Xr(o);break;case ue.ITEM_INFO:(i=o).autoShow=this.autoShowType,n=new Fr(i);break;case ue.POLYGON:n=new rs(i=o);break;case ue.LENSFLARE:n=new ts(i=o);break;case ue.NADIR_LOGO:(i=o).zenith?this.zenithLogo=new os(i):this.nadirLogo=new os(i);break;case ue.PROMOTION:n=new as(i=o);break;case ue.GALLERY:n=new es(i=o);break;case ue.TEXTURE:n=new ls(i=o)}this.movingHotspotsHidden&&t.type===ue.MOVING&&!n.precision||n&&this.pois.push(n)})),this.bgPoi=new Qr({krpano:this.krpano}),this.buildNavigationHotspots(),this.isMobileDevice||(this.floorPoi=new Zr({krpano:this.krpano,signals:this.signals,onPointerMove:this.updateNearestMovingHotspotToMouse})),this.renderPreview=this.renderPreview.bind(this),this.destroyPreview=this.destroyPreview.bind(this),this.setOnViewChangeEvents=this.setOnViewChangeEvents.bind(this),this.getPoiByCode=this.getPoiByCode.bind(this),this.loadNadirLogos=this.loadNadirLogos.bind(this),this.isVisiblePoi=this.isVisiblePoi.bind(this),this.loadPois=this.loadPois.bind(this),this.togglePoisVisibility=this.togglePoisVisibility.bind(this),this.toggleLabelVisibility=this.toggleLabelVisibility.bind(this),this.autoShowHotspots=this.autoShowHotspots.bind(this)}renderPreview(e,t,n=!0){n&&this.isMobileDevice||embedpano({xml:this.sourceFolder.url+"/pano.xml",target:e,id:"scene_preview_"+this.code,onready:n=>{this.krpanoPreview=n,this.previewHtmlElementId=e,t&&t(),n.call("\n delayedcall(0,\n set(view.fisheye, 1);\n set(view.stereographic, true);\n set(view.fov, 155);\n set(view.fovtype, MFOV);\n set(view.fovmax, 150);\n set(view.hlookat, 0);\n set(view.vlookat, 90);\n set(view.architectural, 0);\n );\n "),n.call("\n delayedcall(0.2,\n tween(view.hlookat, 0, 1.0, easeInOutQuad);\n tween(view.vlookat, 0, 1.0, easeInOutQuad);\n tween(view.fov, 100, 1.0, easeInOutQuad);\n tween(view.fisheye, 0.0, 1.0, easeInOutQuad);\n set(view.fovmax, 180);\n tween(view.pannini, 1.0, distance(2.0,0.8));\n\n delayedcall(2,\n tween(view.hlookat, 10000000, distance(100,10));\n tween(view.vlookat, 0, 5);\n );\n )\n ")},onerror:console.error})}destroyPreview(){if(!this.isMobileDevice)try{removepano("scene_preview_"+this.code)}catch(e){console.warn("Destroy scene preview error")}}setOnViewChangeEvents(e,t=!1){this.signals.updateViewChangedEvents.dispatch({handler:e,skipCheck:t})}getPoiByCode(e){return this.pois.find(t=>t.code===e)||null}loadNadirLogos(e){this.viewLimitConfig.coverMode===Ee&&(this.nadirLogo&&this.nadirLogo.create(e),this.zenithLogo&&this.zenithLogo.create(e),this.zenithLogo||this.nadirLogo)&&this.setOnViewChangeEvents(()=>{var e,t=this.krpano.getView().hlookat;this.nadirLogo&&(e=this.nadirLogo.code,this.krpano.call(`if(hotspot[${e}].rotatewithview,set(hotspot[${e}].rotate,${t}));`)),this.zenithLogo&&(e=this.zenithLogo.code,this.krpano.call(`if(hotspot[${e}].rotatewithview,set(hotspot[${e}].rotate,${-t}));`))})}isVisiblePoi(e){if(e){let t=tn(e);return this.allLabelVisible&&!this.labelInvisibleArray.some(e=>e===t)}return this.allLabelVisible}loadPois(e){this.bgPoi.create(),this.loadNadirLogos(e),this.pois.forEach(t=>{t.create(n=>{t.isLabel()&&t.toggleVisibility(this.isVisiblePoi(t),!0),e&&e(n)})}),this.setOnViewChangeEvents(this.debounceAutoShowHotspot),this.autoShowHotspots(),this.floorPoi&&this.singleClick===Ae&&this.floorPoi.create(),this.loadNavigationHotspots()}togglePoisVisibility(e){this.allPoiVisible=e,(this.pois||[]).forEach(t=>{t.isHideable()&&(t.isLabel()?t.toggleVisibility(this.isVisiblePoi(t)&&this.allPoiVisible,!0):t.toggleVisibility(e))})}toggleLabelVisibility(e){if(this.labelInvisibleArray=e||[],null!=e&&e.length){let t=[],n=[];this.pois.forEach(o=>{o.isLabel()&&(e.includes(tn(o))?n:t).push(o)}),t.forEach(e=>{e.toggleVisibility(!0,!0)}),n.forEach(e=>{e.toggleVisibility(!1,!0)})}}autoShowHotspots(){this.autoShowType===Me?this.showHotspotsInRange():this.autoShowType===Le&&this.showHotspotNearestToCenter()}}let us=2e3,hs=(e,t,n,o,i=!1)=>{if(!n)return!1;if(1===n.length)switch(n[0]){case ue.ITEM_INFO:var{itemInfo:r,itemInfoCode:s=""}=e;return!(!r||-1===(o||[]).indexOf(r.type)||!i&&t.includes(s))&&(t.push(s),!0);case ue.PROMOTION:return!(!(r=e.promotionCode)||t.includes(r))&&(t.push(r),!0);case ue.INFO:case ue.TEXTURE:return e.type===n[0];default:return!1}else if(1<n.length)return n.some(t=>t===e.type)},ds=e=>{let{tour:t,poiTypes:n,itemTypes:o,showDetail:i=!1}=e,r=[];var s=e.scenes||t.scenes;s.sort((e,t)=>e.orderIndex-t.orderIndex);let a=[],l=[];return s.forEach(t=>{var s,c=[],u=(c.push({type:be.SLEEP,sleepTime:2e3}),e.pois?e.pois.filter(e=>e.sceneCode===t.code):t.pois);for(let t=0;t<u.length;t++){var h,d,p,f=u[t];hs(f,r,n,o,!!e.pois)&&(({ath:p,atv:h}=f.getLookAtPosition()),d=(null==e?void 0:e.sleepTime)||us,c.push({poiCode:f.type===ue.ITEM_INFO?f.code:void 0,type:be.LOOK_AT,position:{ath:p,atv:h},speed:60,showDetail:i,viewHotspotDuration:i?1e3:void 0,showDetailDuration:Math.max(d-1e3,us)}),(p=fs(n,f))&&c.push(p),i||c.push({type:be.SLEEP,sleepTime:us}),a.push(f))}c.length&&(c.unshift({type:be.MOVE_SCENE,toScene:t.props}),s=c.reduce((e,t,n)=>(e.push({orderIndex:n,actions:[t]}),e),[]),s={orderIndex:l.length,children:s},l.push(s))}),l.sort((e,t)=>e.orderIndex-t.orderIndex),{steps:l,pois:a}},ps=(e,t)=>{var n,o=[];for(let i=0;i<t.length;i++){let r=t[i];o.some(e=>e.code===r.sceneCode)||(n=e.scenes.find(e=>e.code===r.sceneCode))&&o.push(n)}return o},fs=(e,t)=>{let n,o,i;switch(t.type){case ue.ITEM_INFO:case ue.POLYGON:e.includes(ue.ITEM_INFO)&&null!=(n=t.itemInfo)&&n.sound&&(i=t.itemInfo.sound);break;case ue.PROMOTION:e.includes(ue.PROMOTION)&&null!=(o=t.promotion)&&o.sound&&(i=t.promotion.sound)}return i?{type:be.PLAY_SOUND,volume:50,sound:i,sleepTime:0}:null};class gs{constructor(e){this.audioObject=null,this.trackingSubtitleInterval=null,this.soundEnabled=!0,this.play=e=>{this.playAudio(e)},this.stop=()=>{this.stopAudio()},this.trackKrpanoSoundCueChange=()=>{if(this.subtitle&&this.subtitle.data){let n=this.krpano.get(`sound[${this.soundId}]`);var e,t;n&&(t=this.subtitle.data.cues)&&t.length&&(e=t.findIndex(e=>n.position<=e.endTime&&n.position>=e.startTime),t=t[e],this.onSubtitleTextChange)&&this.onSubtitleTextChange(t?t.text:"")}},this.playKrpanoSound=e=>{this.krpano.call(`streamsound(${this.soundId}, ${this.file.url},false,1,);`);var t=this.krpano.get(`sound[${this.soundId}]`);t.oncomplete=()=>{this.clearTrackingInterval(),e()},this.subtitle&&(t.onplay=()=>{this.subtitle&&(this.trackingSubtitleInterval=window.setInterval(()=>{this.trackKrpanoSoundCueChange()},500),this.trackKrpanoSoundCueChange())},t.onpause=this.clearTrackingInterval,t.onstop=this.clearTrackingInterval)},this.stopKrpanoSound=()=>{this.krpano.get(`sound[${this.soundId}]`)&&(this.krpano.call(`stopsound(${this.soundId})`),this.destroyKrpanoSound())},this.destroyKrpanoSound=()=>{this.krpano.get(`sound[${this.soundId}]`)&&this.krpano.call(`destroysound(${this.soundId})`)},this.trackAudioCueChange=()=>{if(this.subtitle&&this.audioObject&&this.subtitle.data&&((t=this.subtitle.data.cues)&&t.length)){let n=this.audioObject.seek();var e=t.findIndex(e=>n<=e.endTime&&n>=e.startTime),t=t[e];this.onSubtitleTextChange&&this.onSubtitleTextChange(t?t.text:"")}},this.playAudio=e=>{if(this.audioObject)this.audioObject.playing()||this.audioObject.play();else{var t=!this.soundEnabled||this.muted;let n=this.background;(t=new Wr.Howl({src:[""+this.file.url],loop:n,volume:1,html5:!0,mute:t,onend:()=>{n||(this.clearTrackingInterval(),this.unloadAudio(),e())},onplay:()=>{this.subtitle&&!this.background&&(this.trackingSubtitleInterval=window.setInterval(()=>this.trackAudioCueChange(),500),this.trackAudioCueChange())},onpause:this.clearTrackingInterval,onstop:()=>{this.clearTrackingInterval(),n&&this.unloadAudio()}})).play(),this.audioObject=t}},this.stopAudio=()=>{this.audioObject&&this.audioObject.stop(),this.unloadAudio()},this.unloadAudio=()=>{this.audioObject&&(this.audioObject.unload(),this.audioObject=null)},this.clearTrackingInterval=()=>{null!==this.trackingSubtitleInterval&&(window.clearInterval(this.trackingSubtitleInterval),this.trackingSubtitleInterval=null)},this.props=e,this.krpano=e.krpano,this.soundId=e.soundId,this.subtitle=e.subtitle,this.file=e.sound,this.soundEnabled=!!e.soundEnabled,this.background=e.background||!1,this.onSubtitleTextChange=e.onSubtitleTextChange,this.muted=!0,this.setSoundState=this.setSoundState.bind(this),this.mute=this.mute.bind(this)}mute(e,t){var n;this.muted=e,null!=(n=this.audioObject)&&n.mute(e,t)}setSoundState(e){e=!(this.soundEnabled=e)||this.muted,this.audioObject&&this.audioObject.mute(e)}}class ms{constructor(e){this.type="",this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.id=e.id||-1,this.orderIndex=e.orderIndex||0,this.execute=this.execute.bind(this),this.stop=this.stop.bind(this),this.getDuration=this.getDuration.bind(this),this.run=this.run.bind(this)}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){})}execute(){return ce(this,arguments,void 0,function*({language:e,duration:t}={language:"vi"}){this.runningPromise=(e=>{let t;var n=new Promise((n,o)=>{t=o,e.then(e=>{n(e)})});return n.abort=e=>{t("aborted: "+e)},n})(this.run({language:e,duration:t})),yield this.runningPromise})}stop(){return ce(this,void 0,void 0,function*(){this.runningPromise&&(this.runningPromise.abort("action "+this.type),this.runningPromise=null)})}getDuration(){return ce(this,arguments,void 0,function*({}={language:"vi"}){return 0})}abortPromise(e){e&&e.abort()}standby(e,t){return ce(this,void 0,void 0,function*(){t&&(yield en(t))})}}class vs extends ms{constructor(e){super(e),this.soundDuration=null,this.soundEnabled=!0,this.addMuteSoundSignal=()=>{var e;this.tour.signals.muteSound.add(null==(e=this.soundObject)?void 0:e.mute)},this.volume=on(e.volume)?e.volume:50,this.soundEnabled=!!e.soundEnabled,this.setSoundState=this.setSoundState.bind(this),this.intervalSubtitleTextChangedCallback=this.intervalSubtitleTextChangedCallback.bind(this),this.playSound=this.playSound.bind(this),this.stopSound=this.stopSound.bind(this),this.getSoundDuration=this.getSoundDuration.bind(this),this.preload=this.preload.bind(this),this.props.sound&&(this.sound=Object.assign(Object.assign({soundId:Kt()},this.props.sound),{background:this.props.background,soundEnabled:this.soundEnabled,onSubtitleTextChange:this.intervalSubtitleTextChangedCallback}),this.sound.subtitle?(e=>ce(void 0,void 0,void 0,function*(){return new Promise(t=>{let n=new $r.Parser(window,$r.StringDecoder()),o=[],i=[];Xi.get(e).then(e=>{e=e.data,n.oncue=e=>{o.push(e)},n.onregion=e=>{i.push(e)},n.parse(e),n.flush(),t({cues:o,regions:i})})})}))(this.sound.subtitle.url).then(e=>{this.sound.subtitle=Object.assign(Object.assign({},this.sound.subtitle),{data:e}),this.soundObject=new gs(this.sound),this.addMuteSoundSignal()}):(this.soundObject=new gs(this.sound),this.addMuteSoundSignal()))}playSound(e){this.soundObject?(this.tour.signals.playingSoundActionExecuted.dispatch(),this.soundObject.play(()=>{this.tour.signals.playingSoundActionStopped.dispatch(),e&&e()})):(this.tour.signals.playingSoundActionStopped.dispatch(),e&&e())}stopSound(){this.soundObject&&this.soundObject.stop(),this.tour.signals.playingSoundActionStopped.dispatch()}getSoundDuration(){return ce(this,void 0,void 0,function*(){let e=this.soundDuration;return on(this.soundDuration)||(this.sound&&this.sound.sound&&this.sound.sound.url?this.soundDuration=yield(e=>ce(void 0,void 0,void 0,function*(){return new Promise(t=>{let n=new Audio;n.onloadedmetadata=()=>{t(1e3*(n.duration||0))},n.onerror=()=>{t(0)},n.src=e})}))(this.sound.sound.url):this.soundDuration=0,e=this.soundDuration),e})}setSoundState(e){e=e.isEnabled,this.soundEnabled=e,this.soundObject&&this.soundObject.setSoundState(e)}preload(e){return ce(this,void 0,void 0,function*(){})}intervalSubtitleTextChangedCallback(e){this.tour.signals.setSubtitleText.dispatch(e)}}class _s extends vs{constructor(e){super(e),this.speed=30,this.playHotspotSound=!1,this.type=be.LOOK_AT,this.ath=e.position.ath,this.atv=e.position.atv,this.fov=e.position.fov,this.delayZoom=e.delayZoom,this.speed=e.speed||30,this.poiCode=e.poiCode,this.playHotspotSound=!(!this.poiCode||!e.playHotspotSound),this.showDetail=e.showDetail||!1,this.viewHotspotDuration=e.viewHotspotDuration||0,this.showDetailDuration=e.showDetailDuration||1e3,this.zoomScale=e.zoomScale||1,this.abortPromise=this.abortPromise.bind(this),this.executeShowDetail=this.executeShowDetail.bind(this),this.executePlaySound=this.executePlaySound.bind(this),this.canPlaySound=this.canPlaySound.bind(this)}executeZoom(){return ce(this,void 0,void 0,function*(){var e,t,n=this.krpano.get("view"),{fov:o,fovmin:i,fovmax:r}=n,s=o/this.zoomScale;o&&o!==s&&(e=Math.abs(s-o)/this.speed,t=nn(e)+200,this.cachingFov={fov:o,fovmax:r,fovmin:i},n.fovmin=0,n.fovmax=179,this.krpano.call(`zoomto(${s}, tween(linear, ${e}));`),this.zoomDelayPromise=en(t),yield this.zoomDelayPromise,this.zoomDelayPromise=null,this.delayZoom&&(this.delayZoomPromise=en(this.delayZoom),yield this.delayZoomPromise,this.delayZoomPromise=null),this.krpano.call(`zoomto(${this.cachingFov.fov}, tween(linear, ${e}));`),this.revertZoomDelayPromise=en(t),yield this.revertZoomDelayPromise,this.revertZoomDelayPromise=null,n.fovmin=this.cachingFov.fovmin,n.fovmax=this.cachingFov.fovmax,this.cachingFov=null)})}run(){return ce(this,arguments,void 0,function*({duration:e}={language:"vi"}){let t=this.ath,n=this.atv;this.poiCode&&(i=this.tour.getPoiByCodeFromScenes(this.poiCode))&&i.type===ue.MOVING&&i.alwaysOnFloor&&(({tx:i,ty:r,tz:o}=i),({ath:t,atv:n}=this.krpano.spacetosphere(i,r,o)));var o=((i=e&&0!==e)||(this.krpano.call(`getlooktodistance(distance_${this.id},${t},${n});`),r=this.krpano.get("distance_"+this.id),e=Math.abs(r/this.speed)),this.krpano.get("view")),i=o.fov,r=(this.krpano.call(`lookto(${t},${n},${i},tween(linear, ${e}),true,true);`),1e3*e);this.delayLookToPromise=en(r),yield this.delayLookToPromise,this.delayLookToPromise=null,this.showDetailDelayPromise=en(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,yield this.executeZoom(),yield Promise.all([this.executeShowDetail(),this.executePlaySound()])})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.stopSound(),this.playSoundDelayPromise=null,this.abortPromise(this.delayLookToPromise),this.abortPromise(this.zoomDelayPromise),this.abortPromise(this.revertZoomDelayPromise),this.abortPromise(this.delayZoomPromise),this.abortPromise(this.showDetailDelayPromise),this.abortPromise(this.closeDetailDelayPromise),this.abortPromise(this.afterCloseDelayPromise),this.abortPromise(this.afterShowDelayPromise),yield this.krpano.call("stoplookto();")})}getDuration(){return ce(this,void 0,void 0,function*(){var e=1e3*Math.abs(90/this.speed)+200;let t=0,n=(this.tour.getPoiByCode(this.poiCode)&&(t=this.showDetail?this.viewHotspotDuration+this.showDetailDuration:this.viewHotspotDuration),0);return this.canPlaySound()&&(n=(yield this.getSoundDuration())||0),e+Math.max(t,n)})}canPlaySound(){return this.playHotspotSound&&this.sound}preload(e){return ce(this,void 0,void 0,function*(){this.canPlaySound()&&(this.executePlaySound(),yield Jt(50),yield this.stop())})}executeShowDetail(){return ce(this,void 0,void 0,function*(){var e;this.showDetail&&this.poiCode&&(e=this.tour.getPoiByCode(this.poiCode))&&(this.tour.signals.poiClick.dispatch(e),this.afterShowDelayPromise=en(500),yield this.afterShowDelayPromise,this.afterShowDelayPromise=null,this.closeDetailDelayPromise=en(this.showDetailDuration),yield this.closeDetailDelayPromise,this.closeDetailDelayPromise=null,this.tour.signals.poiClick.dispatch(null),this.afterCloseDelayPromise=en(500),yield this.afterCloseDelayPromise,this.afterCloseDelayPromise=null)})}executePlaySound(){return ce(this,void 0,void 0,function*(){this.canPlaySound()&&(this.soundObject&&(this.playSoundDelayPromise=new Promise(e=>{this.playSound(()=>{e(1)})})),this.playSoundDelayPromise)&&(yield this.playSoundDelayPromise,this.playSoundDelayPromise=null)})}}class bs extends ms{constructor(e){super(e),this.type=be.MOVE_SCENE,this.toScene=e.toScene,this.hlookat=e.hlookat,this.vlookat=e.vlookat,this.blend=e.blend||"OPENBLEND(1.0, 0.0, 0.6, 1.0, easeOutQuad)"}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){if(this.toScene.code!==this.tour.getActiveScene().code){var e=!this.hlookat&&0!==this.hlookat||!this.vlookat&&0!==this.vlookat?null:{hChanged:this.hlookat,vChanged:this.vlookat,ignoreNorth:!0};this.tour.loadScene(this.toScene.code,void 0,e);let t=this.toScene.blend||_e.DEFAULT;e=Object.keys(_e).find(e=>_e[e]===t),e=ve[e],this.delayPromise=en(nn(e)),yield this.delayPromise,this.delayPromise=null}})}getDuration(){return ce(this,void 0,void 0,function*(){return this.toScene.code!==this.tour.getActiveScene().code?500:0})}}class ys extends ms{constructor(e){super(e),this.functionButtonCode="",this.type=be.OPEN_FUNCTION_BUTTON,this.viewHotspotDuration=e.viewHotspotDuration||0,e.functionButtonCode&&(this.functionButtonCode=e.functionButtonCode),this.abortPromise=this.abortPromise.bind(this),this.executeShowDetail=this.executeShowDetail.bind(this),this.executePlaySound=this.executePlaySound.bind(this)}abortPromise(e){e&&e.abort()}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){this.functionButtonCode&&(this.tour.signals.openFunctionButton.dispatch(this.functionButtonCode),this.showDetailDelayPromise=en(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,this.tour.signals.openFunctionButton.dispatch(null)),yield Promise.all([this.executeShowDetail(),this.executePlaySound()])})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this)})}getDuration(){return ce(this,void 0,void 0,function*(){return this.viewHotspotDuration||0})}executeShowDetail(){return ce(this,void 0,void 0,function*(){})}executePlaySound(){return ce(this,void 0,void 0,function*(){})}}class ws extends ms{constructor(e){super(e),this.type=be.OPEN_MINIMAP,this.viewHotspotDuration=e.viewHotspotDuration||0,this.abortPromise=this.abortPromise.bind(this)}abortPromise(e){e&&e.abort()}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){this.tour.signals.openMinimap.dispatch(!0),this.showDetailDelayPromise=en(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,this.tour.signals.openMinimap.dispatch(!1)})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this)})}getDuration(){return ce(this,void 0,void 0,function*(){return this.viewHotspotDuration||0})}}class xs extends vs{constructor(e){super(e),this.background=!1,this.duration=null,this.type=be.PLAY_SOUND,this.language=e.language||"vi",this.background=this.props.background||!1}run(){return ce(this,arguments,void 0,function*({}={language:T.VI}){this.soundObject&&(this.delayPromise=new Promise(e=>{this.playSound(()=>{e(1)})})),this.delayPromise&&(yield this.delayPromise,this.delayPromise=null)})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),yield Jt(500),this.delayPromise&&(this.delayPromise=null),this.stopSound()})}getDuration(){return ce(this,arguments,void 0,function*({}={language:"vi"}){return!this.background&&(this.duration||(this.duration=yield this.getSoundDuration(),this.duration))||0})}preload(e){return ce(this,void 0,void 0,function*(){this.execute({language:e}),yield Jt(50),yield this.stop()})}}class ks extends ms{constructor(e){super(e),this.type=be.ROTATE,this.angle=e.angle||0,this.speed=e.speed||15,this.delayPromise=null}run(){return ce(this,arguments,void 0,function*({duration:e}={language:"vi"}){var t=e&&0!==e,{hlookat:n,fov:o}=this.krpano.get("view"),n=n+this.angle;let i=this.speed;t&&(i=this.angle/e),this.krpano.call(`lookto(${n},0, ${o}, linear(${i}),false,true);`),t=this.angle/i*1e3,this.delayPromise=en(Math.abs(t)+2e3),yield this.delayPromise,this.delayPromise=null})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null),yield this.krpano.call("stoplookto();")})}getDuration(){return ce(this,void 0,void 0,function*(){var e=this.angle/this.speed*1e3;return Math.abs(e)+2e3})}}class Ss extends ms{constructor(e){super(e),this.type=be.SLEEP,this.sleepTime=e.sleepTime||0,this.delayPromise=null}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){this.delayPromise=en(this.sleepTime),yield this.delayPromise,this.delayPromise=null})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null)})}getDuration(){return ce(this,void 0,void 0,function*(){return this.sleepTime})}}class Os extends ms{constructor(e){var t;super(e),this.type=be.SWITCH_SCENE,this.sceneCode=(null==(t=e.toScene)?void 0:t.code)||"",this.sceneGroupCode=e.sceneGroupCode||"",this.keep=e.keepSwitchScene||!1,this.preSwitchDuration=e.preSwitchSceneDuration||0,this.duration=e.switchSceneDuration||0}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){yield this.standby(this.preSwitchPromise,this.preSwitchDuration),this.tour.switchScene(this.sceneCode),yield this.standby(this.switchScenePromise,700),!this.keep&&this.stepSceneCode&&(yield this.standby(this.postSwitchPromise,this.duration),this.tour.switchScene(this.stepSceneCode),yield this.standby(this.switchBackPromise,700))})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.abortPromise(this.preSwitchPromise),this.abortPromise(this.switchScenePromise),this.abortPromise(this.postSwitchPromise),this.abortPromise(this.switchBackPromise)})}getDuration(){return ce(this,void 0,void 0,function*(){return 0})}}class Es{constructor(e){var t;this.hasSoundActions=[],this.childrenPlayer=null,this.movingAction=null,this.duration=0,this.showProgressBar=!1,this.sound=null,this.playing=!1,this.movingSceneAction=null,this.soundEnabled=!0,this.delayPromise=null,this.skipSoundAction=!1,this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.orderIndex=e.orderIndex||0,this.showProgressBar=e.showProgressBar||!1,this.scene=e.scene,this.soundEnabled=e.soundEnabled,this.language=e.language,this.skipSoundAction=e.skipSoundAction||!1,this.hlookat=e.hlookat,this.vlookat=e.vlookat,e.sound&&(t={type:be.PLAY_SOUND,volume:50,sound:e.sound,sleepTime:0,krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language},this.sound={data:e.sound,soundObject:new xs(t)},this.skipSoundAction=!0),this.duration=e.duration,this.children=(e.children||[]).map(t=>((t=new Es(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,showProgressBar:this.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,itemInfoPois:this.props.itemInfoPois,promotionPois:this.props.promotionPois,tourSignals:this.props.tourSignals,parent:this,playHotspotSound:e.playHotspotSound,skipSoundAction:this.skipSoundAction}))).hasSoundActions&&!this.hasSoundActions&&(this.hasSoundActions=t.hasSoundActions),t.movingAction&&!this.movingAction&&(this.movingAction=t.movingAction),t)),null!=(t=this.children)&&t.length&&(this.children.sort((e,t)=>e.orderIndex-t.orderIndex),this.childrenPlayer={playingStep:null,playing:!1}),this.actions=e.actions?(e.actions||[]).map(e=>{switch(e.type){case be.MOVE_SCENE:var t=new bs(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));return this.movingAction||(this.movingAction=t),t;case be.ROTATE:return new ks(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case be.PLAY_SOUND:t=new xs(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language}));return this.hasSoundActions.push(t),t;case be.LOOK_AT:return(t=new _s(Object.assign(Object.assign({},e),{sound:this.skipSoundAction?void 0:e.sound,krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language}))).canPlaySound()&&!this.skipSoundAction&&this.hasSoundActions.push(t),t;case be.SLEEP:return new Ss(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case be.OPEN_FUNCTION_BUTTON:return new ys(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case be.SWITCH_SCENE:return new Os(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour,stepSceneCode:null==(t=this.scene)?void 0:t.code}));case be.OPEN_MINIMAP:return new ws(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));default:return new ms(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}))}}):[],this.execute=this.execute.bind(this),this.stop=this.stop.bind(this),this.preloadSoundStep=this.preloadSoundStep.bind(this),this.setSoundState=this.setSoundState.bind(this),this.playStepSound=this.playStepSound.bind(this)}preloadSoundStep(e){return ce(this,arguments,void 0,function*({language:e="vi"}){var t;null!=(t=this.sound)&&t.soundObject?(this.sound.soundObject.execute({language:e}),yield Jt(50),yield this.sound.soundObject.stop()):this.hasSoundActions.length&&(yield Promise.all(this.hasSoundActions.map(t=>t.preload(e))))})}getDuration(){return ce(this,arguments,void 0,function*({language:e,checkDuration:t}={language:"vi",checkDuration:!1}){if(!t)return 0;if(this.duration)return this.duration;let n=0,o=(null!=(t=this.actions)&&t.length&&(t=this.actions.map(t=>t.getDuration({language:e})),t=yield Promise.all(t),n=Math.max(...t)),0);return null!=(t=this.children)&&t.length&&(t=this.children.map(t=>t.getDuration({language:e,checkDuration:!0})),o=(t=yield Promise.all(t)).reduce((e,t)=>e+t,0)),Math.max(n,o)})}setSoundState(e){let t,{isEnabled:n,language:o=T.VI}=e;this.soundEnabled=n,null!=(t=this.sound)&&t.soundObject?this.sound.soundObject.setSoundState({isEnabled:n,language:o}):this.children&&this.children.length?this.children.forEach(e=>{e.hasSoundActions&&e.setSoundState({isEnabled:n,language:o})}):this.actions&&this.actions.length&&this.actions.forEach(e=>{on(e.setSoundState)&&e.setSoundState({isEnabled:n,language:o})})}playStepSound(){var e;null!=(e=this.sound)&&e.soundObject&&(this.sound.soundPromise=this.sound.soundObject.execute({language:this.language}))}stop(){return ce(this,void 0,void 0,function*(){var e;if(this.rejector&&(this.rejector("aborted "+this.props.name),this.rejector=null),this.playing=!1,this.movingSceneAction&&(this.movingSceneAction.stop(),this.movingSceneAction=null),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null),null!=(e=this.sound)&&e.soundObject&&(this.sound.soundObject.stop(),this.sound.soundPromise=null),this.actions&&this.actions.length){let e=[];this.actions.forEach(t=>e.push(t.stop())),yield Promise.all(e)}this.childrenPlayer&&null!=(e=this.children)&&e.length&&(this.childrenPlayer.playing=!1,this.childrenPlayer.playingStep)&&(yield this.childrenPlayer.playingStep.stop(),this.childrenPlayer.playingStep=null)})}execute(e){return ce(this,arguments,void 0,function*({language:e="vi",skipActionSound:t=!1,checkDuration:n=!1}){return new Promise((o,i)=>ce(this,void 0,void 0,function*(){this.rejector=i,this.playing=!0;var r=(new Date).getTime(),s=this.children&&this.children.length,a=n;if(s){if(n=!(null==(s=this.sound)||!s.soundObject),this.childrenPlayer){this.childrenPlayer.playing=!0;for(let t=0;t<this.children.length;t++){if(!this.childrenPlayer.playing||!this.playing)return void(this.childrenPlayer.playing=!1);var l=this.children[t],c=(this.childrenPlayer.playingStep=l,this.tour.getTourScenario());c&&c.fireEvent("on-step-change"),yield l.execute({language:e,skipActionSound:n,checkDuration:a}),0===t&&this.playStepSound()}}null!=(s=this.sound)&&s.soundPromise&&(yield this.sound.soundPromise,this.sound.soundPromise=null)}else{let n=this.duration;if(this.scene&&(this.movingSceneAction=new bs({type:be.MOVE_SCENE,toScene:this.scene,krpano:this.krpano,tour:this.tour,hlookat:this.hlookat,vlookat:this.vlookat}),yield this.movingSceneAction.execute({language:e}),s=yield this.movingSceneAction.getDuration(),n&&0!==n&&(n-=s),this.movingSceneAction=null),null!=(s=this.actions)&&s.length){let o=[],i=[];this.actions.forEach(r=>{if(this.playing){if(r.type===be.PLAY_SOUND){var s=r;if(s.background)return i.push(s),void r.execute({language:e,duration:rn(n)});if(t)return}o.push(r.execute({language:e,duration:rn(n)}))}}),yield Promise.all(o),i.length&&(yield Promise.all(i.map(e=>e.stop())))}}if(s=(new Date).getTime()-r,0<(r=(yield this.getDuration({language:e,checkDuration:a}))-s)){if(!this.playing)return;this.delayPromise=en(r),yield this.delayPromise,this.delayPromise=null}this.rejector=null,o()}))})}}let Ts={onplay:null,onpause:null,onstop:null,onreplay:null,"on-step-change":null,"on-tracking-replay":null};class Ps{constructor(e){var t;this.playDelay=e=>ce(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n}=e;yield Jt(500),this.play({language:t,splashScreenStatus:n})}),this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.id=e.id,this.name=e.name,this.code=e.code,this.showProgressBar=!1,this.soundEnabled=!!e.soundEnabled,this.language=e.language||"vi",this.autoReplay=!!e.autoReplay,on(e.autoReplay)||(this.autoReplay=this.tour.autoplayReplay||!1),this.onStop=e.onStop,this.player={playing:!1,playingStep:null,lastScene:null,lastView:null},this.steps=null==(t=null==e?void 0:e.steps)?void 0:t.map(t=>new Es(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,showProgressBar:this.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,itemInfoPois:this.props.itemInfoPois,promotionPois:this.props.promotionPois,tourSignals:this.tour.signals,playHotspotSound:e.hotspotSoundPlayable}))),null!=(t=this.steps)&&t.sort((e,t)=>e.orderIndex-t.orderIndex),this.listeners=Ts,this.run=this.run.bind(this),this.next=this.next.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.stop=this.stop.bind(this),this.saveLastView=this.saveLastView.bind(this),this.saveLastScene=this.saveLastScene.bind(this),this.applyLastScene=this.applyLastScene.bind(this),this.getPlayingStep=this.getPlayingStep.bind(this),this.revertLastView=this.revertLastView.bind(this),this.addEventListener=this.addEventListener.bind(this),this.removeEventListener=this.removeEventListener.bind(this),this.fireEvent=this.fireEvent.bind(this),this.goPrev=this.goPrev.bind(this),this.goNext=this.goNext.bind(this),this.goToSpecifyStep=this.goToSpecifyStep.bind(this),this.setSoundState=this.setSoundState.bind(this),this.setAutoPlay=this.setAutoPlay.bind(this)}fireEvent(e){(e=this.listeners[e])&&e()}addEventListener(e,t){this.listeners[e]=t}removeEventListener(){this.stop(),this.listeners=Ts}revertLastView(e){e=e.krpano.get("view");var{fov:t,fovmax:n,fovmin:o}=this.player.lastView;e.fov=t,e.fovmax=n,e.fovmin=o,this.player.lastView=null}saveLastView(e){var{fov:e,fovmax:t,fovmin:n}=e.krpano.get("view");this.player.lastView={fov:e,fovmax:t,fovmin:n}}applyLastScene(e){var{playingStep:t,lastScene:n}=this.player;!n||n.code===e.getActiveScene().code||t&&t.scene||e.loadScene(n.code)}saveLastScene(){var e;this.getPlayingStep()?(e=this.getPlayingStep().movingAction)&&(this.player.lastScene=e.toScene):console.warn("currently, dont have any step that is playing")}getPlayingStep(){return this.player.playingStep}run(e){let t,{language:n="vi",splashScreenStatus:o,goToSpecifyStep:i=!1,playFromSlideIn:r=!1}=e;if(this.player.playing&&this.tour){let e=this.getPlayingStep();!e&&0<(null==(t=this.steps)?void 0:t.length)&&(e=this.steps[0],this.player.playingStep=e),e&&(this.fireEvent("on-step-change"),this.saveLastScene(),e.execute({language:n}).then(()=>{this.player.playing&&this.next({language:n,splashScreenStatus:o,goToSpecifyStep:i,playFromSlideIn:r})}))}}next(e){var{language:e="vi",splashScreenStatus:t,goToSpecifyStep:n=!1,playFromSlideIn:o=!1}=e;if(this.tour){let s=this.player.playingStep;if(s){var i=this.steps,r=i.findIndex(e=>e===s);let a=r+1;if(r===i.length-1){if(!this.autoReplay)return this.stop(),void(this.onStop&&setTimeout(()=>{this.onStop()},100));a=0,this.fireEvent("onreplay")}this.player.playingStep=i[a],this.run({language:e,splashScreenStatus:t,goToSpecifyStep:n,playFromSlideIn:o})}}}play(e){var{language:e="vi",splashScreenStatus:t,goToSpecifyStep:n=!1,playFromSlideIn:o=!1}=e,i=this.tour;i&&!this.player.playing&&(this.player.playing=!0,this.saveLastView(i),this.applyLastScene(i),this.fireEvent("onplay"),i.toggleNavigationHotspotsInAGT(!1),this.run({language:e,splashScreenStatus:t,goToSpecifyStep:n,playFromSlideIn:o}))}pause(e){var{stopCallback:e,preventFireEvent:t=!1}=e||{},n=this.tour;n&&this.player.playing&&(this.player.playing=!1,t||this.fireEvent("onpause"),null!=(t=null==(t=this.player)?void 0:t.playingStep)&&t.stop(),this.revertLastView(n),n.toggleNavigationHotspotsInAGT(!0),e)&&e()}stop(){this.pause({stopCallback:()=>{this.player.playingStep=null}}),this.fireEvent("onstop")}goPrev(e){return ce(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n,preventFireEvent:o=!1}=e;if(this.tour){let e=this.getPlayingStep();if(e){this.pause({preventFireEvent:o});var o,i=(o=this.steps).findIndex(t=>t===e);let t=i-1;0===i&&(t=o.length-1,this.fireEvent("on-tracking-replay")),this.player.playingStep=o[t]}return this.playDelay({language:t,splashScreenStatus:n})}})}goNext(e){return ce(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n,preventFireEvent:o=!1}=e;if(this.tour){let e=this.getPlayingStep();if(!e)return this.play({language:t,splashScreenStatus:n});this.pause({preventFireEvent:o});var o,i=(o=this.steps).findIndex(t=>t===e);let r=i+1;return i===o.length-1&&(r=0,this.fireEvent("on-tracking-replay")),this.player.playingStep=o[r],this.playDelay({language:t,splashScreenStatus:n})}})}goToSpecifyStep(e){let{id:t,language:n="vi",splashScreenStatus:o}=e;this.tour&&(this.getPlayingStep()&&this.pause(),e=null==(e=this.steps)?void 0:e.find(e=>e.props.id===t))&&(this.player.playingStep=e,this.play({language:n,splashScreenStatus:o,goToSpecifyStep:!0}))}setSoundState(e){let{isEnabled:t,language:n=T.VI}=e;this.soundEnabled=t,this.steps&&this.steps.length&&this.steps.forEach(e=>{var o;(null!=(o=e.hasSoundActions)&&o.length||e.sound)&&e.setSoundState({isEnabled:t,language:n})})}setAutoPlay(e){this.autoReplay=e}getAutoPlay(){return this.autoReplay}}class Cs{constructor(e){this.playlist=[],this.itemInfoPois=[],this.promotionPois=[],this.featurePois=[],this.productPois=[],this.infoPois=[],this.brandPois=[],this.locationPois=[],this.facilityPois=[],this.swapElementPois=[],this.soundEnabled=!0,this.toggleLookAtStepStartView=!1,this.getActiveScenario=e=>{var t;return e||this.activeScenarioCode?null!=(t=this.playlist.find(t=>t.code===(e||this.activeScenarioCode)))&&t.scenario?t.scenario:(console.warn("Cannot get active scenario with key or code "+(e||this.activeScenarioCode)),null):null},this.setSplashScreenStatus=e=>{this.splashScreenStatus=e},this.setActiveScenarioCode=(e,t=!1)=>{var n;e!==this.activeScenarioCode&&this.activeScenarioCode&&(n=this.getActiveScenario(this.activeScenarioCode))&&n.removeEventListener(),this.activeScenarioCode=e,this.signals.onSwitchKeyReady.dispatch({playAfterReady:t})},this.startScenario=(...e)=>ce(this,[...e],void 0,function*(e=!1){var t,n,o,i,r=this.getActiveScenario();r&&(!this.toggleLookAtStepStartView&&(n=this.tour.getActiveScene(),o=null==(o=r.steps)?void 0:o[0])&&(null!=(i=o.children)&&i.length?null!=(t=(i=o.children[0]).scene)&&t.id&&Number(n.id)===Number(null==(t=i.scene)?void 0:t.id)&&(this.lookAtStepStartView(i),yield Jt(300)):null!=(t=o.scene)&&t.id&&Number(n.id)===Number(null==(i=o.scene)?void 0:i.id)&&(this.lookAtStepStartView(o),yield Jt(300))),r.play({language:this.language,splashScreenStatus:this.splashScreenStatus,playFromSlideIn:e}),this.tour.toggleFloorPois(!1))}),this.pauseScenario=()=>{var e;this.removeTemporaryScenario()||(e=this.getActiveScenario())&&(e.pause(),this.tour.toggleFloorPois(!0))},this.stopScenario=()=>{var e;this.removeTemporaryScenario()||(e=this.getActiveScenario())&&(e.stop(),this.tour.toggleFloorPois(!0))},this.togglePlayStepByStepId=e=>{var t,n=this.getActiveScenario();n&&((t=n.getPlayingStep())&&t.props&&t.props.id===e&&n.player.playing?n.pause():n.goToSpecifyStep({id:e,language:this.language,splashScreenStatus:this.splashScreenStatus}))},this.handleAutoPlaySkip=(e=!1)=>{var t=this.getActiveScenario();if(t)return e?t.goPrev({language:this.language,splashScreenStatus:this.splashScreenStatus,preventFireEvent:!0}):t.goNext({language:this.language,splashScreenStatus:this.splashScreenStatus,preventFireEvent:!0})},this.fireOnSwitchKeyReady=e=>{this.signals.onSwitchKeyReady.add(e)},this.createScenarioFeatures=()=>{if(!this.checkScriptAlreadyCreated(E.FEATURES)){var e=null==(e=this.props.scenarios)?void 0:e.find(e=>e.type===E.FEATURES);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.FEATURES,e),this.featurePois=t}return this.featurePois},this.createScenarioProductList=()=>{if(!this.checkScriptAlreadyCreated(E.PRODUCT_LIST)){var e=null==(e=this.props.scenarios)?void 0:e.find(e=>e.type===E.PRODUCT_LIST);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.PRODUCT_LIST,e),this.productPois=t}return this.productPois},this.createScenarioBrands=()=>{if(!this.checkScriptAlreadyCreated(E.BRAND)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.BRAND);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.BRAND,e),this.brandPois=t}return this.brandPois},this.createScenarioLocations=()=>{if(!this.checkScriptAlreadyCreated(E.LOCATION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.LOCATION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.LOCATION,e),this.locationPois=t}return this.locationPois},this.createScenarioPromotions=()=>{if(!this.checkScriptAlreadyCreated(E.PROMOTION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.PROMOTION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.PROMOTION,e),this.promotionPois=t}return this.promotionPois},this.createScenarioInfo=()=>{if(!this.checkScriptAlreadyCreated(E.INFORMATION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.INFORMATION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.INFORMATION,e),this.infoPois=t}return this.infoPois},this.createScenarioFacilities=()=>{if(!this.checkScriptAlreadyCreated(E.FACILITY)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.FACILITY);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.FACILITY,e),this.facilityPois=t}return this.facilityPois},this.createScenarioMultiMedia=()=>{var e;this.checkScriptAlreadyCreated(E.MULTIMEDIA)||(e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.MULTIMEDIA))&&this.createNewScenario(E.MULTIMEDIA,e)},this.createScenarioSwapElement=()=>{if(!this.checkScriptAlreadyCreated(E.SWAP_ELEMENT)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.SWAP_ELEMENT);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.SWAP_ELEMENT,e),this.swapElementPois=t}return this.swapElementPois},this.updateAGTActiveScenario=e=>{e&&(-1===this.playlist.findIndex(t=>t.key===E.AGT&&t.id===e.id)&&(e.id?this.createNewScenario(E.AGT,e):this.checkScriptAlreadyCreated(e.type)||this.updatePlayList(e.type,e)),this.setActiveScenarioCode(e.code))},this.updateAGTScenario=(e,t)=>{this.updateAGTActiveScenario(e),this.signals.onSwitchKeyReady.dispatch({playAfterReady:!t}),t&&this.togglePlayStepByStepId(t)},this.setSoundStateForActiveScenario=e=>{this.soundEnabled=e;var t=this.getActiveScenario();t&&t.setSoundState({isEnabled:e,language:this.language})},this.playScenarioPoi=e=>{if(this.tour){let i,r=!1;var t,n=this.tour.getActiveScene();if(n)for(let t=0;t<n.pois.length;t++){var o=n.pois[t];if((o.type===ue.ITEM_INFO||o.type===ue.POLYGON)&&o.itemInfoCode===e){i=o;break}if(o.type===ue.PROMOTION&&o.code===e){i=o,r=!0;break}}(i=i||(this.itemInfoPois||[]).find(t=>t.itemInfoCode===e))||(i=(this.promotionPois||[]).find(t=>t.code===e),r=!0),i&&(t=this.getScenarioPoiSteps(i,r),this.createNewScenario(E.DETAIL,Object.assign(Object.assign({},{steps:t,onStop:()=>{this.removeTemporaryScenario(!1)}}),{code:E.DETAIL}),{autoReplay:!1}),this.prevActiveScenarioCode=this.activeScenarioCode,this.setActiveScenarioCode(E.DETAIL))}},this.lookAtStepStartView=e=>{var t=e.hlookat,n=(e=e.vlookat,this.krpano.getView()),o=Math.round(n.hlookat),i=Math.round(n.vlookat);(t&&o!==t||e&&i!==e)&&this.krpano&&(this.toggleLookAtStepStartView=!0,this.krpano.call(`lookto(${t}, ${e}, ${n.fov}, tween(linear, 0.2}));`))},this.getPoisFromScenarioData=e=>{let t=((null==e?void 0:e.steps)||[]).flatMap(e=>e.children).flatMap(e=>e.actions).filter(e=>e.type===be.LOOK_AT&&!!e.poiCode).map(e=>e.poiCode);return this.tour.scenes.flatMap(e=>e.pois).filter(e=>t.includes(e.code))},this.getScenarioPoiSteps=(e,t)=>{let n;return({steps:n}=ds(t?{tour:this.tour,poiTypes:[ue.PROMOTION],scenes:ps(this.tour,[e]),pois:[e]}:{tour:this.tour,poiTypes:[ue.ITEM_INFO],scenes:ps(this.tour,[e]),pois:[e],itemTypes:[e.itemInfo.type]})),n},this.removeTemporaryScenario=(e=!0)=>{var t,n=this.playlist.find(e=>e.code===this.activeScenarioCode);return((null==n?void 0:n.key)===E.DETAIL||(null==n?void 0:n.key)===E.TEMP)&&!((n=this.playlist.findIndex(e=>e.key===E.DETAIL||e.key===E.TEMP))<0||(t=this.playlist[n].scenario,e&&(t.stop(),this.tour.toggleFloorPois(!0)),this.playlist.splice(n,1),this.setActiveScenarioCode(this.prevActiveScenarioCode),this.prevActiveScenarioCode=void 0))},this.fireOnStopScenarioWithPoiInteractive=e=>{this.tourSignals.stopScenario.add(e)},this.getTourItemInfoAndPromotionPois=()=>{var e=this.tour;if(e&&e.scenes&&e.scenes.length){e.scenes.sort((e,t)=>e.orderIndex-t.orderIndex);let t=[],n=[];e.scenes.forEach(e=>{if(e.pois)for(let i=0;i<e.pois.length;i++){var o=e.pois[i];o.type===ue.ITEM_INFO&&o.itemInfoCode&&t.push(o),o.type===ue.PROMOTION&&o.promotionCode&&n.push(o)}}),this.itemInfoPois=t,this.promotionPois=n}},this.createNewScenario=(e,t,n={})=>{t&&this.playlist.push({key:e,scenario:new Ps(Object.assign(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,playlist:this,showProgressBar:!this.disabledAGTProgressBar&&t.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,tourSignals:e===E.AGT?this.tourSignals:void 0,promotionPois:this.promotionPois||[],itemInfoPois:this.itemInfoPois||[],hotspotSoundPlayable:e===E.AGT,autoReplay:this.tour.autoplayReplay}),n)),code:t.code,id:t.id})},this.createScenarioAGT=e=>{!this.isPrepareDefaultAGT||(this.isPrepareDefaultAGT,this.tour.props.tourScenario)?(e||this.tour.props.tourScenario)&&this.createNewScenario(E.AGT,e||this.tour.props.tourScenario):this.createScenarioScenes(E.AGT)},this.createScenarioScenes=e=>{if(n=this.tour){let o=n.getActiveScene();var t=((n=[...n.scenes]).sort((e,t)=>e.orderIndex-t.orderIndex),o&&(t=n.findIndex(e=>e.id===o.id),t=n.splice(0,t),n.push(...t)),null==(t=null==(t=this.props)?void 0:t.scenarios)?void 0:t.find(e=>e.type===E.SCENE)),n=this.createScenarioDataFromScenes(n);this.createNewScenario(e||E.SCENE,Object.assign(Object.assign({},n),t))}},this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.tourSignals=e.signals,this.playlist=[],this.language=e.language,this.isPrepareDefaultAGT=!!e.isPrepareDefaultAGT,this.disabledAGTProgressBar=!!e.disabledAGTProgressBar,this.soundEnabled=!!e.soundEnabled,this.getActiveScenario=this.getActiveScenario.bind(this),this.setSplashScreenStatus=this.setSplashScreenStatus.bind(this),this.setActiveScenarioCode=this.setActiveScenarioCode.bind(this),this.startScenario=this.startScenario.bind(this),this.pauseScenario=this.pauseScenario.bind(this),this.stopScenario=this.stopScenario.bind(this),this.togglePlayStepByStepId=this.togglePlayStepByStepId.bind(this),this.handleAutoPlaySkip=this.handleAutoPlaySkip.bind(this),this.fireOnSwitchKeyReady=this.fireOnSwitchKeyReady.bind(this),this.getPoisFromScenarioData=this.getPoisFromScenarioData.bind(this),this.createScenarioFeatures=this.createScenarioFeatures.bind(this),this.createScenarioProductList=this.createScenarioProductList.bind(this),this.createScenarioBrands=this.createScenarioBrands.bind(this),this.createScenarioLocations=this.createScenarioLocations.bind(this),this.createScenarioPromotions=this.createScenarioPromotions.bind(this),this.createScenarioInfo=this.createScenarioInfo.bind(this),this.createScenarioFacilities=this.createScenarioFacilities.bind(this),this.createScenarioMultiMedia=this.createScenarioMultiMedia.bind(this),this.createScenarioSwapElement=this.createScenarioSwapElement.bind(this),this.updateAGTScenario=this.updateAGTScenario.bind(this),this.setSoundStateForActiveScenario=this.setSoundStateForActiveScenario.bind(this),this.getTourItemInfoAndPromotionPois=this.getTourItemInfoAndPromotionPois.bind(this),this.createNewScenario=this.createNewScenario.bind(this),this.createScenarioAGT=this.createScenarioAGT.bind(this),this.createScenarioScenes=this.createScenarioScenes.bind(this),this.playScenarioPoi=this.playScenarioPoi.bind(this),this.getScenarioPoiSteps=this.getScenarioPoiSteps.bind(this),this.removeTemporaryScenario=this.removeTemporaryScenario.bind(this),this.createScenarioDataFromScenes=this.createScenarioDataFromScenes.bind(this),this.checkScriptAlreadyCreated=this.checkScriptAlreadyCreated.bind(this),this.signals={onSwitchKeyReady:new Xt.Signal},this.getTourItemInfoAndPromotionPois(),this.fireOnStopScenarioWithPoiInteractive(()=>this.pauseScenario())}playProductPois(e,t,n=!1){e=ds({tour:this.tour,poiTypes:[ue.ITEM_INFO],scenes:e,pois:t,itemTypes:[it],sleepTime:7e3,showDetail:n}).steps,this.createNewScenario(E.TEMP,Object.assign(Object.assign({},{steps:e,onStop:()=>{this.removeTemporaryScenario(!1)}}),{code:E.TEMP}),{autoReplay:!1}),this.setActiveScenarioCode(E.TEMP),this.prevActiveScenarioCode=this.activeScenarioCode}isPlaying(){var e=this.getActiveScenario();return!!e&&e.player&&e.player.playing}updatePlayList(e,t){if(e){this.props.scenarios||(this.props.scenarios=[]);var n=null==(n=this.props.scenarios)?void 0:n.findIndex(t=>t.type===e);if(!(-1<n))switch(null!=(n=this.props.scenarios)&&n.push(t),e){case E.FEATURES:this.createScenarioFeatures();break;case E.PRODUCT_LIST:this.createScenarioProductList();break;case E.BRAND:this.createScenarioBrands();break;case E.LOCATION:this.createScenarioLocations();break;case E.PROMOTION:this.createScenarioPromotions();break;case E.INFORMATION:this.createScenarioInfo();break;case E.FACILITY:this.createScenarioFacilities();break;case E.MULTIMEDIA:this.createScenarioMultiMedia();break;case E.SWAP_ELEMENT:this.createScenarioSwapElement();break;case E.SCENE:this.createScenarioScenes()}}}createScenarioDataFromScenes(e){let t=[];return e.forEach((e,n)=>{t.push({scene:e.props,hlookat:e.hlookat,vlookat:e.vlookat,orderIndex:n,actions:[{type:be.ROTATE,angle:360,speed:15,orderIndex:0}]})}),t.sort((e,t)=>e.orderIndex-t.orderIndex),{steps:t}}checkScriptAlreadyCreated(e){return!!e&&!!this.playlist.find(t=>t.key===e)}}let Ns="new",$s="played",As="paused",Ms="stopped",Ls="completed";class Ds{constructor(e){this.duration=0,this.position=0,this.speed=0,this.loop=!1,this.volume=0,this.range=0,this.enable=!0,this.streaming=!1,this.trackDuration=!1,this.progressInterval=null,this.soundObject=null,this.preload=()=>{(e=>e.get("device.ios"))(this.krpano)&&new Audio(this.sound.url)},this.getSoundObject=()=>this.soundObject,this.handlePlayingChange=()=>{this.onPlayingChange&&this.onPlayingChange(this.isPlaying())},this.handleProgressChange=()=>{this.onProgressChange&&(this.duration&&0!==this.duration||(this.duration=this.getDuration()),this.onProgressChange({position:this.getPosition(),duration:this.duration}))},this.resetProgressInterval=()=>{this.progressInterval&&clearInterval(this.progressInterval),this.progressInterval=null},this.initProgressInterval=()=>{this.progressInterval=setInterval(()=>{this.handleProgressChange()},300)},this.unloadAudio=()=>{this.soundObject&&(this.soundObject.unload(),this.soundObject=null)},this.props=e,this.id=e.id,this.code=e.code,this.name=e.name,this.sound=e.sound,this.signals=e.signals,this.krpano=e.krpano,this.duration=e.duration,this.position=e.position,this.speed=e.speed,this.enable=e.enable||!1,this.status=Ns,this.soundEnabled=e.soundEnabled||!1,this.muted=!0;var{volume:t,range:n,loop:o}=this.props;this.volume=void 0!==t?t/100:.5,this.range=void 0!==n?n:220,this.loop=void 0!==o&&o,this.streaming=void 0!==e.streaming&&e.streaming,this.stop=this.stop.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.getSoundObject=this.getSoundObject.bind(this),this.toggle=this.toggle.bind(this),this.changeVolume=this.changeVolume.bind(this),this.preload=this.preload.bind(this),this.isPlaying=this.isPlaying.bind(this),this.isPaused=this.isPaused.bind(this),this.updateSoundState=this.updateSoundState.bind(this),this.onPlayError=this.onPlayError.bind(this)}mute(e,t){var n;this.muted=e,null!=(n=this.soundObject)&&n.mute(e,t)}updateSoundState(e){this.soundEnabled=e,this.soundEnabled?this.play():this.pause()}getDuration(){return this.soundObject?this.soundObject.duration():0}getPosition(){return this.soundObject?this.soundObject.pos()[0]:0}pause(){return ce(this,arguments,void 0,function*(e=!1){this.soundObject&&this.soundObject.pause(),!0===e&&this.setPosition(0)})}play(){return ce(this,void 0,void 0,function*(){if(this.soundEnabled)if(this.soundObject)this.soundObject.playing()||this.soundObject.play();else{let e=new Wr.Howl({src:[""+this.sound.url],loop:this.loop,volume:this.volume,autoplay:!0,mute:this.muted,onend:()=>{this.status=Ls,this.handlePlayingChange(),e.loop||this.unloadAudio(),this.resetProgressInterval()},onplay:()=>{this.status=$s,this.handlePlayingChange(),this.trackDuration&&this.initProgressInterval()},onpause:()=>{this.status=As,this.handlePlayingChange(),this.resetProgressInterval()},onstop:()=>{this.status=Ms,this.handlePlayingChange(),this.resetProgressInterval()},onplayerror:this.onPlayError});e.play(),this.soundObject=e}})}onPlayError(){this.soundObject&&this.soundObject.once("unlock",this.play)}stop(){return ce(this,void 0,void 0,function*(){this.soundObject&&this.soundObject.stop(),this.unloadAudio()})}toggle(){return ce(this,arguments,void 0,function*(e=!1){this.isPlaying()?this.pause(e):this.play()})}changeVolume(e=1){e=this.volume*e,this.soundObject&&this.soundObject.fade(this.volume,e,1e3)}isPlaying(){return this.status===$s}isPaused(){return this.status===As}setPosition(e){var t=this.getSoundObject();t&&t.seek(e)}}class Is extends Ds{constructor(e){super(e),this.type="TOUR_BG",this.autoStart=!0,this.onPlayingChange=e=>{this.signals.backgroundSoundClick.dispatch(e)},this.startAuto=this.startAuto.bind(this)}startAuto(){return ce(this,void 0,void 0,function*(){this.play()})}}class Rs{constructor(e){var t;this.scenarioPlayer=null,this.scenes=[],this.autoplayReplay=!1,this.draggingMouse=!1,this.viewVLookAt=0,this.viewHLookAt=0,this.canChangeScene=!0,this.keepViewOnSceneChanged=!1,this.showNavigationHotspotLabels=!1,this.showLabel=!1,this.zoomable=!1,this.mwheel=!0,this.allPoiVisible=!0,this.singleClick=$e,this.loadingScene=!1,this.webGLSupported=!1,this.showNavigationHotspots=!1,this.showNavigationWithoutMovingHotspot=!1,this.navigationHotspotsVisible=!0,this.disabledAGTProgressBar=!1,this.startingSceneLoaded=!1,this.soundEnabled=!0,this.moveToClosestSceneDisabled=!1,this.backgroundVolumeDuringAGT=0,this.timeout=null,this.onViewChangeFuncs=[],this.onPreCheckViewChangeFuncs=[],this.hiddenLabelTypes=[],this.poiMap={},this.getBlendValue=()=>{let e=_e.DEFAULT,t=me.NORMAL;return this.blendSpeed&&me[this.blendSpeed]&&(t=me[this.blendSpeed]),this.blendMode&&_e[this.blendMode]?_e[this.blendMode].replace("{level}",t.toString()):e},this.setCanChangeScene=e=>{!this.canChangeScene&&e?setTimeout(()=>{this.canChangeScene=!0},1e3):this.canChangeScene=!1},this.getMouse=()=>this.krpano?this.krpano.get("mouse"):null,this.getPoi=(e,t)=>(e=this.getSceneById(e))?e.getPoiByCode(t):null,this.getPoiOfCurrentScene=e=>{var t=this.getActiveScene();return t?t.getPoiByCode(e):null},this.getSceneById=e=>this.scenes.find(t=>t.id===""+e)||null,this.getSceneByCode=e=>this.scenes.find(t=>t.code===e)||null,this.fireOnSceneCompleted=e=>{if(this.krpano){let t=()=>{var e,t,n;this.krpano&&(this.signals.finishLoadingScene.dispatch(),this.startingSceneLoaded=!0,e=this.getActiveScene())&&((t=this.krpano.get("view"))&&(n=fn(this.krpano),t.fovtype=n.fovtype,t.fov=n.fov,this.krpano.set("display.framebufferscale",1)),e.setViewLimit(),e.loadPois(),this.toggleLabels(this.showLabel,e.code),this.krpano.set("view.maxpixelzoom",2),this.krpano.set("view.fovmax",e.props.fovmax||120),this.zoomable||this.krpano.set("control.fovspeed",0))};this.krpano.set("events.onblendcomplete",()=>{this.startingSceneLoaded&&t()}),this.krpano.set("events.onloadcomplete",()=>{e&&e(),this.handleOnSceneLoaded&&(this.handleOnSceneLoaded(),this.handleOnSceneLoaded=void 0),this.startingSceneLoaded||t()}),this.krpano.set("events.keep",!0)}},this.stopCurrentSceneMedia=e=>{var t=this.getActiveScene();t&&t.pois.forEach(t=>{e&&e===t.code||!(t instanceof qr||t instanceof Xr)||t.stop()})},this.pauseCurrentSceneMedia=()=>{var e=this.getActiveScene();e&&e.pois.forEach(e=>{(e instanceof qr||e instanceof Xr)&&e.pause()})},this.pauseBackgroundSound=()=>{this.backgroundSound&&this.backgroundSound.isPlaying()&&this.backgroundSound.pause()},this.resumeBackgroundSound=()=>{this.backgroundSound&&!this.backgroundSound.isPlaying()&&this.backgroundSound.isPaused()&&this.backgroundSound.play()},this.getViewChangedValues=(e,t)=>{var n=this.getActiveScene();if(n)return{hChanged:e-n.north,vChanged:t}},this.switchScene=e=>{this.moveToScene(e,{keepViewAfterMoving:!0,blendMode:"BLEND(0.5, easeInCubic)",useNonOffsetView:!0})},this.moveToScene=(e,t)=>{if(this.krpano){let i,r,s,a=0;if(void 0!==(null==t?void 0:t.hLookAt)&&null!==(null==t?void 0:t.hLookAt)&&void 0!==(null==t?void 0:t.vLookAt)&&null!==(null==t?void 0:t.vLookAt)&&(r=null==t?void 0:t.hLookAt,s=null==t?void 0:t.vLookAt,null!=t&&t.lookAtBeforeMoving)){var n=this.krpano.getView();let e=n.hlookat<0?n.hlookat+360:n.hlookat;var o=(null==t?void 0:t.hLookAt)<0?(null==t?void 0:t.hLookAt)+360:null==t?void 0:t.hLookAt;o=Math.abs(e-o);a=(o=Math.max(Math.min(Math.round(o/60),1),.5))+.2,this.krpano.call(`lookto(${null==t?void 0:t.hLookAt}, ${null==t?void 0:t.vLookAt}, ${n.fov}, tween(linear, ${o}));`)}null!=t&&t.lookAtBeforeMoving||(n=null!=t&&t.useNonOffsetView?this.krpano.getOriginalView():this.krpano.getView())&&(r=n.hlookat,s=n.vlookat),(null!=t&&t.keepViewAfterMoving||this.keepViewOnSceneChanged)&&void 0!==r&&void 0!==s&&(i=this.getViewChangedValues(r,s)),this.loadScene(e,a,i,null==t?void 0:t.blendMode)}},this.setupSoundPlugin=()=>{var e=!!this.props.scenes.find(e=>!!e.pois.find(e=>e.type===ue.SOUND));this.props.bgSound&&this.props.bgSound.enable||this.props.tourScenario||e?(this.plugins.sound=new Ir({krpano:this.krpano,signals:this.signals}),this.plugins.sound.load(this.handleOnSoundPluginLoaded)):this.signals.soundReady.dispatch()},this.handleOnMouseUp=()=>{var e;this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.draggingMouse&&(this.signals.backgroundGrab.dispatch(!0),(e=this.getActiveScene())&&e.autoShowHotspots(),setTimeout(()=>{this.draggingMouse=!1},500))},this.handleOnMouseDown=()=>{this.toggleLabels(!1),this.allPoiVisible&&(this.timeout=setTimeout(()=>{this.draggingMouse=!0,this.timeout=null,this.signals.backgroundGrab.dispatch(!1)},500))},this.moveToClosestScene=()=>{var e;!this.draggingMouse&&this.canChangeScene&&(e=this.getActiveScene())&&e.moveToClosestPoi()},this.moveByDirection=e=>{var t;this.draggingMouse||(t=this.getActiveScene())&&t.moveWithNavigationPoi(e)},this.configMouseEvents=()=>{if(this.krpano){if(this.singleClick!==Ne){let e;switch(this.singleClick){case $e:break;case Ae:e=()=>{this.moveToClosestSceneDisabled?this.moveToClosestSceneDisabled=!1:this.moveToClosestScene()}}e&&(this.krpano.set("events.onsingleclick",()=>{e()}),this.signals.floorPoiClick.add(()=>{e()}))}this.signals.toggleLabels.add(this.toggleLabels),this.krpano.set("events.onmousedown",this.handleOnMouseDown),this.krpano.set("events.onmouseup",this.handleOnMouseUp),this.signals.poiMouseUp.add(this.handleOnMouseUp),this.signals.navigationPoiClick.add(this.moveByDirection)}},this.isViewChanged=e=>{var{hlookat:e,vlookat:t,haschanged:n}=e;return(n||Math.round(e)!==Math.round(this.viewHLookAt)||Math.round(t)!==Math.round(this.viewVLookAt))&&(this.viewHLookAt=e,this.viewVLookAt=t,!0)},this.configViewSignals=()=>{this.krpano&&(this.signals.updateViewChangedEvents.add(e=>{this.onViewChangeFuncs||(this.onViewChangeFuncs=[]),this.onPreCheckViewChangeFuncs||(this.onPreCheckViewChangeFuncs=[]),(e.skipCheck?this.onPreCheckViewChangeFuncs:this.onViewChangeFuncs).push(e.handler)}),this.krpano.set("events.onviewchange",()=>{(this.onPreCheckViewChangeFuncs||[]).forEach(e=>{e()});var e=this.krpano.getView(),{hlookat:t,vlookat:n}=e;this.isViewChanged(e)&&(this.signals.onViewChanged.dispatch({hlookat:t,vlookat:n}),(this.onViewChangeFuncs||[]).forEach(e=>{e()}))}))},this.toggleNavigationHotspotsVisibility=e=>{e=null==e?this.navigationHotspotsVisible:e,this.navigationHotspotsVisible=e,this.toggleNavigationHotspots(e)},this.toggleNavigationHotspotsInAGT=(e=!0)=>{this.toggleNavigationHotspots(e)},this.toggleNavigationHotspots=(e=!0)=>{!this.showNavigationHotspots||!this.navigationHotspotsVisible&&e||this.scenes.forEach(t=>{t.toggleNavigationHotspots(e)})},this.toggleFullscreen=e=>{e?(e=>{e&&(e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.msRequestFullscreen?e.msRequestFullscreen():e.webkitEnterFullscreen&&e.webkitEnterFullscreen())})(document.getElementById("tour-layout")):document.fullscreenElement&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()),this.signals.toggleFullscreen.dispatch(e)},this.updateRadar=e=>{let t=e;(t=e?t:this.getActiveScene()||void 0)&&this.plugins.radar&&this.plugins.radar.updateHeading(-t.north)},this.fireOnPoiOver=e=>{this.signals.poiOver.add(e)},this.fireOnPoiHover=e=>{this.signals.poiHover.add(e)},this.fireOnPoiOut=e=>{this.signals.poiOut.add(e)},this.fireOnPoiClick=e=>{this.signals.poiClick.add(e)},this.fireOnRootPoiClick=e=>{this.signals.poiClicked.add(e)},this.fireOnMovingPoiClicked=e=>{this.signals.movingPoiClick.add(e)},this.fireOnPoiMediaStarted=e=>{this.signals.poiMediaPlayed.add(e)},this.fireOnPoiMediaPaused=e=>{this.signals.poiMediaPaused.add(e)},this.fireOnToggleFullScreen=e=>{this.signals.toggleFullscreen.add(e)},this.fireOnAutoRotateOneRound=e=>{this.signals.autoRotateOneRound.add(e)},this.fireOnBackgroundSoundClick=e=>{this.signals.backgroundSoundClick.add(e)},this.fireOnBackgroundGrab=e=>{this.signals.backgroundGrab.add(e)},this.fireOnLoadedPlugin=e=>{this.signals.onLoadedPlugin.add(e)},this.fireOnStartLoadingScene=e=>{this.signals.startLoadingScene.add(e)},this.fireOnFinishLoadingScene=e=>{this.signals.finishLoadingScene.add(e)},this.fireOnViewChanged=e=>{this.signals.onViewChanged.add(e)},this.fireOnToggleFloorPoi=e=>{this.signals.toggleFloorPoi.add(e)},this.fireOnSoundPlayable=e=>{this.signals.soundReady.add(e)},this.fireOnTexturePoiHover=e=>{this.signals.texturePoiHover.add(e)},this.fireOnTexturePoiClick=e=>{this.signals.texturePoiClick.add(e)},this.fireOnTexturePoiTouched=e=>{this.signals.texturePoiTouched.add(e)},this.fireOnToggleHotspotsVisibility=e=>{this.signals.toggleHotspotsVisibility.add(e)},this.fireOnHotspotNearestToCenter=e=>{this.signals.toggleHotspotNearestToCenter.add(e)},this.fireOnSetSubtitleText=e=>{this.signals.setSubtitleText.add(e)},this.fireOnOpenFuncButton=e=>{this.signals.openFunctionButton.add(e)},this.fireOnOpenMinimap=e=>{this.signals.openMinimap.add(e)},this.fireOnMovingPoiClick=e=>{this.signals.movingPoiClick.add(e)},this.stopCurrentSceneEvents=()=>{var e=this.getActiveScene();e&&(this.onPreCheckViewChangeFuncs=[],this.onViewChangeFuncs=[],e.floorPoi&&e.floorPoi.stopPlacingHotspotAtMouse(),e.toggleNavigationHotspots(!1,!0))},this.getRadarColorParams=e=>({color:"0x"+(null==(e=null==(e=null==e?void 0:e.split("#"))?void 0:e.pop())?void 0:e.slice(0,6)),opacity:e?parseInt(null==e?void 0:e.slice(6),16)/255:0}),this.updateViewOffsets=(e,t,n=!1)=>{var o,i;this.krpano&&(e||t?(({h:o,v:i}=wn(this.krpano,{x:e||0,y:t||0})),this.krpano.updateOffset(e&&o,t&&i,n)):this.krpano.updateOffset(0,0,n))},this.toggleZoom=(e=!0)=>{this.zoomable&&this.krpano&&this.krpano.set("control.touchzoom",e)},this.createScenarioPlayer=(e={})=>{this.scenarioPlayer=new Cs(Object.assign({krpano:this.krpano,tour:this,signals:this.signals,language:this.language,isPrepareDefaultAGT:this.isPrepareDefaultAGT,disabledAGTProgressBar:this.disabledAGTProgressBar,soundEnabled:this.soundEnabled},e))},this.getTourScenario=()=>this.scenarioPlayer?this.scenarioPlayer.getActiveScenario():null,this.togglePlayStepByStepId=e=>{this.scenarioPlayer&&this.scenarioPlayer.togglePlayStepByStepId(e)},this.handleOnSoundPluginLoaded=()=>{this.krpano&&(this.props.bgSound&&this.props.bgSound.enable&&this.props.bgSound.sound&&(this.backgroundSound=new Is(Object.assign(Object.assign({},this.props.bgSound),{soundEnabled:this.soundEnabled,krpano:this.krpano,signals:this.signals,delayAutoStart:this.props.autoplayOnStart,streaming:!0})),this.signals.playingSoundActionExecuted.add(()=>ce(this,void 0,void 0,function*(){this.backgroundSound.changeVolume(this.backgroundVolumeDuringAGT/100)})),this.signals.playingSoundActionStopped.add(()=>ce(this,void 0,void 0,function*(){this.backgroundSound.changeVolume(1)})),this.setupOnBackgroundSoundClickedSignal()),this.signals.soundReady.dispatch())},this.configHotspotSignals=()=>{this.krpano&&(this.fireOnMovingPoiClicked((e,t,n,o,i)=>{let r,s,a,l=0;if(null!=n&&null!=o&&(s=n,a=o,i)){var c=this.krpano.getView();let e=c.hlookat<0?c.hlookat+360:c.hlookat;var u=Math.abs(e-(n<0?n+360:n));l=(u=Math.max(Math.min(Math.round(u/60),1),.5))+.2,this.krpano.call(`lookto(${n}, ${o}, ${c.fov}, tween(linear, ${u}));`)}i||(n=this.krpano.getView())&&(s=n.hlookat,a=n.vlookat),this.keepViewOnSceneChanged&&void 0!==s&&void 0!==a&&(r=this.getViewChangedValues(s,a)),this.loadScene(e,l,r)}),this.fireOnPoiMediaStarted(e=>{this.stopCurrentSceneMedia(e),this.pauseBackgroundSound()}),this.fireOnPoiMediaPaused(this.resumeBackgroundSound))},this.setupOnBackgroundSoundClickedSignal=()=>{this.signals.backgroundSoundClick.add(e=>{e&&this.pauseCurrentSceneMedia()})},this.configOnBackgroundGrabbedSignal=()=>{this.signals.backgroundGrab.add(e=>{this.allPoiVisible=e,this.togglePoisVisibility(e)})},this.togglePoisVisibility=e=>{var t=this.getActiveScene();t&&t.togglePoisVisibility(e)},this.configSceneSignals=()=>{this.signals.startLoadingScene.add(()=>{this.loadingScene=!0}),this.signals.finishLoadingScene.add(()=>{this.loadingScene=!1})},this.mapKrpanoVars=(e,t,n)=>{let o;var i={startscene:null==(o=e?this.props.scenes.find(t=>t.code===e):o)?void 0:o.code,"view.hlookat":null==o?void 0:o.hlookat,"view.vlookat":null==o?void 0:o.vlookat,"view.fov":null==o?void 0:o.fov,"view.fovmax":null==o?void 0:o.fovmax,"view.fovmin":null==o?void 0:o.fovmin,"display.loadwhilemoving":!0};return Number.isNaN(Number(t))||Number.isNaN(Number(n))||(i["view.hlookat"]=Number(t),i["view.vlookat"]=Number(n)),i.startscene||([o]=this.props.scenes,o&&(i.startscene=o.code,i["view.fov"]=o.fov||0,i["view.fovmax"]=o.fovmax||0,i["view.fovmin"]=o.fovmin||0,Number.isNaN(Number(t))||Number.isNaN(Number(n)))&&(i["view.hlookat"]=o.hlookat||0,i["view.vlookat"]=o.vlookat||0)),i},this.props=e,this.name=e.name,this.code=e.code,this.metadata=e.metadata,this.activeMarkerColor=e.activeMarkerColor,this.language=e.language,this.isPrepareDefaultAGT=!!e.isPrepareDefaultAGT,this.krpano=void 0,this.scenes=[],this.elementId=void 0,this.backgroundSound=void 0,this.hotspotLabelsHidden=!0,this.hotspotAutoDisplayType=e.autoShow||Le,this.keepViewOnSceneChanged=e.keepView||!1,this.soundEnabled=null==(t=e.soundEnabled)||t,this.backgroundVolumeDuringAGT=null!=(t=e.bgVolumeDuringAGT)?t:0,this.zoomable=!0,void 0!==e.mwheel&&(this.mwheel=e.mwheel),void 0!==e.allPoiVisible&&(this.allPoiVisible=e.allPoiVisible),void 0!==e.singleClick&&(this.singleClick=e.singleClick),this.blendMode=e.blendMode||S.DEFAULT,this.blendSpeed=e.blendSpeed||"NORMAL",this.autoplayReplay=e.autoplayReplay,this.showNavigationHotspots=e.showNavigationHotspots||!1,this.showNavigationWithoutMovingHotspot=e.showNavigationWithoutMovingHotspot||!1,this.showNavigationHotspotLabels=e.showNavigationHotspotLabels||!1,this.disabledAGTProgressBar=e.disabledAGTProgressBar||!1,this.plugins={radar:null,gyro:null,sound:null},this.signals={toggleFullscreen:new Xt.Signal,backgroundSoundClick:new Xt.Signal,autoRotateOneRound:new Xt.Signal,autoRotateStart:new Xt.Signal,autoRotateStop:new Xt.Signal,backgroundGrab:new Xt.Signal,onLoadedPlugin:new Xt.Signal,startLoadingScene:new Xt.Signal,finishLoadingScene:new Xt.Signal,onViewChanged:new Xt.Signal,soundReady:new Xt.Signal,toggleHotspotsVisibility:new Xt.Signal,toggleHotspotNearestToCenter:new Xt.Signal,setSubtitleText:new Xt.Signal,playingSoundActionExecuted:new Xt.Signal,playingSoundActionStopped:new Xt.Signal,openFunctionButton:new Xt.Signal,muteSound:new Xt.Signal,openMinimap:new Xt.Signal,updateViewChangedEvents:new Xt.Signal,poiOver:new Xt.Signal,poiOut:new Xt.Signal,poiHover:new Xt.Signal,poiClick:new Xt.Signal,poiClicked:new Xt.Signal,movingPoiClick:new Xt.Signal,poiMediaPlayed:new Xt.Signal,poiMediaPaused:new Xt.Signal,poiMouseUp:new Xt.Signal,floorPoiClick:new Xt.Signal,navigationPoiClick:new Xt.Signal,texturePoiHover:new Xt.Signal,texturePoiClick:new Xt.Signal,texturePoiTouched:new Xt.Signal,toggleLabels:new Xt.Signal,toggleFloorPoi:new Xt.Signal,stopScenario:new Xt.Signal},this.getActiveScene=this.getActiveScene.bind(this),this.goToProduct=this.goToProduct.bind(this),this.loadScene=this.loadScene.bind(this),this.load=this.load.bind(this),this.destroy=this.destroy.bind(this),this.getView=this.getView.bind(this)}loadScene(e,t,n,o){return ce(this,void 0,void 0,function*(){var i;!this.krpano||(i=this.krpano.get("xml.scene"))&&e&&i.toLowerCase()===e.toLowerCase()||((i=this.getSceneByCode(e))?(this.stopCurrentSceneMedia(),this.stopCurrentSceneEvents(),this.resumeBackgroundSound(),this.signals.startLoadingScene.dispatch(),i.load(t,n,o),t&&(yield Jt(1e3*t)),this.updateRadar(i)):console.error("cannot find scene by code: "+e))})}getActiveScene(){if(!this.krpano)return null;let e=this.krpano.get("xml.scene");return e&&this.scenes.find(t=>t.code.toLowerCase()===e.toLowerCase())||null}load(e){let{elementId:t,onLoaded:n,startscene:o,hlookat:i,vlookat:r}=e,s=this.mapKrpanoVars(o,i,r),a=(this.startingScene=s.startscene,{preserveDrawingBuffer:!1,depth:!0,stencil:!0});this.elementId=t,((e,t=()=>{})=>{var n=document.createElement("script");let o=e;o?(o.startsWith("./")&&(o=o.slice(1)),n.src=o.startsWith("http")?""+o:""+origin+o,n.onload=t,document.head.appendChild(n)):t()})(this.props.sourceFolder.url+"/tour.js",()=>{var e=this.props.sourceFolder.url+"/tour.swf",t=""+Cn(this.props.sourceXml.url);embedpano({swf:e,xml:t,target:this.elementId,id:this.code,mwheel:this.mwheel,vars:s,consolelog:!1,webglsettings:a,onready:e=>{this.krpano=new Ar(e),this.webGLSupported=this.krpano.get("device.webGL"),this.scenes=this.props.scenes.map(e=>((e=new cs(Object.assign(Object.assign({},e),{krpano:this.krpano,tourUrl:this.props.sourceFolder.url,signals:this.signals,theme:this.props.theme,metadata:this.props.metadata,allPoiVisible:this.allPoiVisible,singleClick:this.singleClick,autoShow:this.hotspotAutoDisplayType,tourName:this.name,tourCode:this.code,showNavigationHotspots:this.showNavigationHotspots,showNavigationWithoutMovingHotspot:this.showNavigationWithoutMovingHotspot,showNavigationHotspotLabels:this.showNavigationHotspotLabels,blend:this.getBlendValue()}))).pois.forEach(e=>{e.hasDetailModal()&&(this.poiMap[e.code]=e)}),e)),this.configHotspotSignals(),this.configMouseEvents(),this.configOnBackgroundGrabbedSignal(),this.configSceneSignals(),this.configViewSignals(),this.setupSoundPlugin(),setTimeout(()=>{this.updateContextMenu(),this.setupNonSoundPlugins()},500),n&&n()},onerror:e=>{throw new Error(e)}})})}destroy(){try{removepano(this.props.id)}catch(e){console.warn("Unmount error",e)}}toggleLabels(e=!1,t){let n=this.getActiveScene();t&&(n=this.getSceneByCode(t)),this.showLabel=e,n&&n.pois&&n.pois.length&&n.pois.forEach(e=>{(e instanceof Fr||e instanceof Hr)&&e.show&&(this.showLabel?e.show():e.hide())})}screenshot(e=0,t=0,n=!1,o="jpeg",i=1){this.webGLSupported&&this.krpano&&(e=this.krpano.get("global").webGL.makeScreenshot(e,t,n,o,i),(t=document.createElement("a")).href=e,t.download=`screenshot-${(new Date).getTime()}.`+o,t.click())}toggleFloorPois(e){this.scenes.forEach(t=>t.toggleFloorPoiVisibility(e))}getPoiByCodeFromScenes(e){try{return this.scenes.flatMap(e=>e.pois).find(t=>t.code===e)}catch(t){return console.error("Cannot find poi by code "+e),null}}initializeRadarPlugin(e){var t;this.krpano&&(t=this.getRadarColorParams(this.activeMarkerColor).color,e)&&0<e.length&&e.some(e=>!!e.enabledRadar)&&(this.plugins.radar=new Dr({krpano:this.krpano,url:we.RADAR,keep:!0,fillcolor:t,linecolor:t,signals:this.signals}),this.updateRadar())}toggleLabelVisibility(e=!0,t){t?e?this.hiddenLabelTypes=this.hiddenLabelTypes.filter(e=>e!==t):this.hiddenLabelTypes.push(t):this.hiddenLabelTypes=e?[]:[...Object.keys(he)],this.scenes.forEach(e=>{var t;null!=(t=e.toggleLabelVisibility)&&t.call(e,this.hiddenLabelTypes)}),(e=this.getActiveScene())&&e.showHotspotNearestToCenter()}getPoiByCode(e){return this.poiMap[e]}getView(){var e;return null==(e=this.krpano)?void 0:e.getView()}goToProduct(e){return ce(this,void 0,void 0,function*(){var t;if(!e)return!1;let n=this.getActiveScene();if(!n)return!1;var o,i=[...this.scenes],r=i.findIndex(e=>e.code===n.code),s=(0!==r&&(i.splice(r,1),i.unshift(n)),e.toUpperCase());let a=null,l=null;for(o of i)for(var c of o.pois)if(c.type===ue.ITEM_INFO){if(c.itemInfoCode&&s===c.itemInfoCode.toUpperCase()){a=c,l=o;break}if(null!=(t=c.itemInfo)&&t.name&&s===c.itemInfo.name.toUpperCase()){a=c,l=o;break}}return!(!a||!l||(n.code!==l.code&&(yield this.loadScene(l.code,.2)),a.lookAt(),this.signals.poiClick.dispatch(a.props),0))})}updateContextMenu(){this.krpano&&this.krpano.call("\n set(contextmenu.fullscreen, false);\n set(contextmenu.versioninfo, false);\n ")}setupNonSoundPlugins(){this.plugins.gyro=new Lr({krpano:this.krpano,signals:this.signals}),this.plugins.gyro.load()}}let Hs=()=>{(()=>{let e,{elementId:t,listeners:n,overrideConfigs:o={}}=bt(),{language:i="vi"}=o,{mobileDevice:r,tourData:s,metadata:a,tourSoundPlaying:l,activeScenario:c,soundReady:u,showSplashScreen:h,autoPlaying:d,playingTempScenario:p,playingHotspotSound:f,showSlideIn:g,bottomSheetMiddleHeight:m,activePoiCode:v,activePoi:_,tourReady:b,focusingOnVisualizer:y,backgroundSoundPlaying:w,muted:x,viewRotating:k,floorplans:S,setActiveScene:O,setLoading:E,setBackgroundSoundPlaying:T,setSoundReady:P,setTourReady:C,setActiveFloorplan:N,setActivePoi:$,setActivePoiCoords:A,setLoadingScene:M,setPoiCodeNearestToCenter:L,setViewRotating:D,setActiveTourPlugin:I}=xt(),[R,H]=se.useState(!1),[F,V]=se.useState(!1),[j,z]=se.useState(!1),[U,B]=se.useState(null),Y=se.useRef(null),W=se.useRef(!1),G=d&&!p,q=()=>{if(U){let t=U.getActiveScene();var e;t&&(null!=n&&n.onSceneChanged&&n.onSceneChanged(t),t.showHotspotNearestToCenter(),O(t),R||(e=S.find(e=>e.markers&&e.markers.find(e=>e.toScene&&e.toScene.code===t.code)))&&N(e),H(!0))}},X=(e=!0)=>{if(!U)return!1;var t=r?Qe.DYNAMIC_VERTICAL(m):Qe.HORIZONTAL;g?U.updateViewOffsets(t.x,t.y,e):U.updateViewOffsets(0,0,e)},Q=()=>{U&&(U.fireOnSceneCompleted(q),setTimeout(()=>{ce(void 0,void 0,void 0,function*(){if(U&&s)try{let e=U.startingScene;s.scenes.find(t=>t.code===e)}catch(e){console.error("Preloading start scene failed")}finally{V(!0)}else V(!0)}),U.fireOnPoiOver(({poiData:e,coords:t})=>{$(e),A(t)}),U.fireOnPoiHover(e=>{A(e)}),U.fireOnPoiOut(()=>{$(null),A(null)}),U.fireOnPoiClick(e=>{if(null!=n&&n.onPoiClicked&&n.onPoiClicked(),e)switch(e.type){case ue.VIDEO:case ue.GALLERY:case ue.MOVING:case ue.PROMOTION:break;case ue.ITEM_INFO:null!=e&&e.itemInfo,$(null),A(null)}}),U.fireOnBackgroundSoundClick(e=>{T(e)}),U.fireOnBackgroundGrab(e=>{}),U.fireOnLoadedPlugin((e,t)=>{I({pluginName:e,state:!!t})}),U.fireOnMovingPoiClick((e,t)=>{var n=S.find(e=>e.code===t);n&&N(n)}),U.fireOnStartLoadingScene(()=>{M(!0),W.current=!0}),U.fireOnFinishLoadingScene(()=>{M(!1),W.current=!1}),U.fireOnViewChanged(e=>{k||D(!0),Z(U.getView())}),U.fireOnTexturePoiHover(e=>{}),U.fireOnTexturePoiTouched(e=>{}),U.fireOnTexturePoiClick(e=>{}),U.fireOnHotspotNearestToCenter(e=>{L(e)}),U.fireOnSetSubtitleText(e=>{}),U.fireOnOpenFuncButton(e=>{}),U.fireOnOpenMinimap(e=>{}),U.initializeRadarPlugin(S),null!=n&&n.onTourLoaded&&n.onTourLoaded(U),E(!1)},500))},Z=Yt(e=>{},500);se.useEffect(()=>{if(s&&t){let e=new Rs(Object.assign(Object.assign({},s),{language:i,metadata:a||void 0,soundEnabled:l}));e.fireOnSoundPlayable(()=>{var t=s.tourScenario,n=t&&c&&c.code===t?null:c;e.createScenarioPlayer({defaultScenario:n||t,defaultScenarioCode:null==n?void 0:n.code}),P(!0)}),B(e)}},[s,t]),se.useEffect(()=>{if(U){U.load({elementId:t,onLoaded:Q});let n=e=>{e.touches.length||U.handleOnMouseUp()};var e;return r&&(e=document.getElementById(t))&&e.addEventListener("touchend",n,{passive:!1}),()=>{var e;U&&U.destroy(),r&&(e=document.getElementById(t))&&e.removeEventListener("touchend",n)}}},[U]),se.useEffect(()=>{if(G)try{Y.current&&clearTimeout(Y.current),W.current=!0,Y.current=setTimeout(()=>{W.current=!1},300)}catch(e){console.error("PreventedUpdateTourView has error",e)}},[G]),se.useEffect(()=>{G||f?X(!1):null!=Y&&Y.current?X(!!v):setTimeout(()=>{X()},200)},[G,f,g]),se.useEffect(()=>{R&&u&&F&&C(!0)},[R,u,F]),se.useEffect(()=>{!h&&u&&U&&U.backgroundSound&&U.backgroundSound.startAuto()},[h,u,U]),se.useEffect(()=>{var e;U&&_&&!d&&(e=U.getPoiByCode(null==_?void 0:_.code))&&(null==e?void 0:e.type)===ue.MOVING&&null!=e&&e.onOut()},[d,U]),se.useEffect(()=>{var e;b&&U&&(e=U.getActiveScene())&&e.autoShowHotspots()},[b,U]),se.useEffect(()=>{var e;b&&!j&&c&&(null!=(e=null==U?void 0:U.scenarioPlayer)&&e.updateAGTScenario(c,1),z(!0))},[b,c]),se.useEffect(()=>{U&&(U.scenarioPlayer&&U.scenarioPlayer.setSoundStateForActiveScenario(l),U.backgroundSound)&&U.backgroundSound.updateSoundState(l)},[l,U]),se.useEffect(()=>{var e;U&&(y?(U.signals.poiMediaPaused.active=!0,l&&null!=(e=U.backgroundSound)&&e.isPaused()&&null!=(e=U.backgroundSound)&&e.play()):(U.signals.poiMediaPaused.active=!1,U.pauseCurrentSceneMedia(),d&&null!=(e=U.scenarioPlayer)&&e.pauseScenario(),w&&null!=(e=U.backgroundSound)&&e.pause()))},[y]),se.useEffect(()=>{var e;null!=(e=null==U?void 0:U.backgroundSound)&&e.mute&&U.backgroundSound.mute(x)},[x]);var K=null==(e=null==U?void 0:U.getTourScenario())?void 0:e.code;se.useEffect(()=>{setTimeout(()=>{var e;null!=(e=null==U?void 0:U.signals)&&e.muteSound&&U.signals.muteSound.dispatch(x)})},[x,K])})();var e=bt().elementId;return v.jsx("div",{className:"w-full h-full",id:e})},Fs=()=>{kt();var e=xt().canInitVisualizer;return v.jsx(v.Fragment,{children:e&&v.jsx(Hs,{})})},Vs=e=>v.jsx(_t,{config:{apiHost:e.apiHost,elementId:e.elementId,overrideConfigs:e.config,listeners:{onTourLoaded:e.onTourLoaded,onPoiClicked:e.onPoiClicked}},children:v.jsx(wt,{children:v.jsx(Fs,{})})});var js=function(){var e,n,o,i,r,s,a,l,c,u,h,d,p,f;return Yr||(Yr=1,e=NaN,n="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),h=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return u.Date.now()},Br=function(e,t,n){var o,i,r,s,a,l,c=0,u=!1,h=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function _(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function b(e){var n=e-l;return void 0===l||t<=n||n<0||h&&r<=e-c}function y(){var e,n=f();if(b(n))return w(n);a=setTimeout(y,(e=t-(n-l),h?p(e,r-(n-c)):e))}function w(e){return a=void 0,v&&o?_(e):(o=i=void 0,s)}function x(){var e=f(),n=b(e);if(o=arguments,i=this,l=e,n){if(void 0===a)return c=e=l,a=setTimeout(y,t),u?_(e):s;if(h)return a=setTimeout(y,t),_(l)}return void 0===a&&(a=setTimeout(y,t)),s}return t=m(t)||0,g(n)&&(u=!!n.leading,r=(h="maxWait"in n)?d(m(n.maxWait)||0,t):r,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==a&&clearTimeout(a),o=l=i=a=void(c=0)},x.flush=function(){return void 0===a?s:w(f())},x}),Br;function g(e){var t=typeof e;return e&&("object"==t||"function"==t)}function m(t){if("number"==typeof t)return t;if("symbol"==typeof(c=t)||(l=c)&&"object"==typeof l&&h.call(c)==n)return e;var l;if("string"!=typeof(t=g(t)?g(l="function"==typeof t.valueOf?t.valueOf():t)?l+"":l:t))return 0===t?t:+t;t=t.replace(o,"");var c=r.test(t);return c||s.test(t)?a(t.slice(2),c?2:8):i.test(t)?e:+t}}(),zs=n(js),Us="undefined"!=typeof window?se.useLayoutEffect:se.useEffect;function Bs(e,t=500,n){let o=se.useRef();!function(e){let t=se.useRef(e);t.current=e,se.useEffect(()=>()=>{t.current()},[])}(()=>{o.current&&o.current.cancel()});var i=se.useMemo(()=>{let i=zs(e,t,n);var r=(...e)=>i(...e);return r.cancel=()=>{i.cancel()},r.isPending=()=>!!o.current,r.flush=()=>i.flush(),r},[e,t,n]);return se.useEffect(()=>{o.current=zs(e,t,n)},[e,t,n]),i}var Ys,Ws="undefined"==typeof window;function Gs(e={}){let{initializeWithValue:t=!0}=e,[n,o]=(Ws&&(t=!1),se.useState(()=>t?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0})),i=Bs(o,e.debounceDelay);function r(){(e.debounceDelay?i:o)({width:window.innerWidth,height:window.innerHeight})}return function(e,t,n,o){let i=se.useRef(t);Us(()=>{i.current=t},[t]),se.useEffect(()=>{let t=window;if(t&&t.addEventListener){let n=e=>{i.current(e)};return t.addEventListener(e,n,o),()=>{t.removeEventListener(e,n,o)}}},[e,n,o])}("resize",r),Us(()=>{r()},[]),n}(e=>{e.IFRAME="IFRAME",e.NEW_TAB="NEW_TAB"})(Ys=Ys||{});let qs={key:"NAVIGATION_ARROWS"},Xs={key:"SIMULATION_VR"},Qs={key:"SOUND"},Zs={key:"FULLSCREEN"},Ks={key:"HOTSPOT"},Js={key:"SHARE"},ea={key:"SEARCH"},ta=se.createContext(void 0),na=({children:e,config:t})=>{var[n,o]=se.useState(!1),[i,r]=se.useState(!1),[s,a]=se.useState(!1);let[l,c]=se.useState(!1),[u,h]=se.useState(!1),[d,p]=se.useState(!1),[f,g]=se.useState(!1);var[m,_]=se.useState(!1);let[b,y]=se.useState(!1),[w,x]=se.useState(!1),[k,S]=se.useState(!1);var[O,E]=se.useState(!1),[T,P]=se.useState([]),[C,N]=se.useState(void 0),[$,A]=se.useState(void 0),M=se.useMemo(()=>({[Zs.key]:f,[Ks.key]:u,[qs.key]:l,[Xs.key]:b,[Qs.key]:d,[ea.key]:w,[Js.key]:k}),[f,u,l,b,w,d,k]);return v.jsx(ta.Provider,{value:{mobile:t.mobile,soundPlaying:d,showGuide:i,activeFunctionButtonCode:C,showChatBtn:n,showFloorplan:s,showNavigationArrows:l,showHotspotLabels:u,setShowFloorplan:a,setActiveFunctionButtonCode:N,setShowChatBtn:o,setShowNavigationArrows:c,setShowGuide:r,setSoundPlaying:p,setShowHotspotLabels:h,hiddenPoiLabelTypes:T,setHiddenPoiLabelTypes:P,fullscreen:f,setFullscreen:g,showChatbox:m,setShowChatbox:_,setCanUseGyroscope:y,visibleActions:M,setMenuOpened:x,setShowShareLink:S,canUseGyroscope:b,menuOpened:w,showShareLink:k,playingAgt:O,setPlayingAgt:E,gallery:$,setGallery:A},children:e})},oa=()=>{var e=se.useContext(le).tour,t=(()=>{var e=ae.useContext(ta);if(void 0===e)throw new Error("useLayout must be used within a LayoutProvider");return e})().mobile,n=Gs().width,o=se.useMemo(()=>"calc(var(--screen-width) / 2 - 16px)",[]);e=null==e?void 0:e.props;return v.jsxs("div",{className:"cvtv-ui-layout__tour-logo",style:{"--tour-logo-max-width":o,"--screen-width":n?n+"px":"100%"},children:[(null==e?void 0:e.tourLogo)&&v.jsx("img",{src:e.tourLogo.file.url,alt:"logo"}),!(null==e||!e.showTourName)&&!t&&v.jsx("span",{children:e.name})]})},ia=()=>{var{}=se.useContext(le),[,,]=se.useState(null),[,,]=se.useState(!1);return v.jsxs(v.Fragment,{children:[v.jsx(oa,{}),v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"cvtc-beta-tour__group-action"}),v.jsx("div",{className:"cvtc-beta-tour__group-pin-action"})]})]})},ra=se.createContext(void 0),sa=({children:e,config:t})=>{let[n,o]=se.useState(Object.assign({},t));return se.useEffect(()=>{var e;if(!t.apiHost)throw new Error("apiHost is required");let n=t.elementId;t.elementId||(n="virtual-tour-"+(null==(e=t.overrideConfigs)?void 0:e.tourCode)),o(Object.assign(Object.assign({},t),{elementId:n}))},[t]),v.jsx(ra.Provider,{value:n,children:e})},aa=e=>v.jsx(sa,{config:{apiHost:e.apiHost,elementId:e.elementId,overrideConfigs:e.config},children:e.tourLoaded&&v.jsx(na,{config:{mobile:e.mobile},children:v.jsx(ia,{})})}),la=e=>{let t=se.useContext(le),[n,o]=se.useState(!1);return v.jsxs("div",{className:"w-full h-full",children:[v.jsx("style",{children:'*,::backdrop,:after,:before{--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:#3b82f680;--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: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Be Vietnam Pro,sans-serif;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-feature-settings:normal;font-family:Be Vietnam Pro,sans-serif;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height: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:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--color-yellow:#f1c40f;--color-blue-on-dark:#3498db;--color-blue-on-light:#2980b9;--color-blue-on-white:#244385;--color-blue-primary:#3585f7;--color-blue-navy:#244385b8;--color-white-8:#ffffff14;--color-white-16:#ffffff29;--color-white-24:#ffffff3d;--color-white-32:#ffffff52;--color-white-48:#ffffff7a;--color-white-64:#ffffffa3;--color-white-72:#ffffffb8;--color-white-88:#ffffffe0;--color-white:#fff;--color-black-0:#0000;--color-black-4:#0000000a;--color-black-8:#00000014;--color-black-16:#00000029;--color-black-24:#0000003d;--color-black-32:#00000052;--color-black-36:#0000005c;--color-black-48:#0000007a;--color-black-64:#000000a3;--color-black-72:#000000b8;--color-black-80:#000c;--color-black:#000;--color-orange-on-light:#e67e22;--color-orange-on-dark:#f39c12;--color-green-on-light:#27ae60;--color-green-on-dark:#2ecc71;--color-green-72-on-dark:#2ecc71b8;--color-red-on-light:#c0392b;--color-red-on-dark:#e74c3c;--color-purple-on-light:#8e44ad;--color-purple-on-dark:#9b59b6;--color-cyan-on-light:#0095c4;--color-cyan-on-dark:#49a8db;--color-gray-1:#1d1d1d;--color-gray-2:#333;--color-gray-3:#ebebeb;--color-gray-4:#666;--color-gray-5:#999;--color-gray-6:#d6d6d6;--color-gold-on-light:#a48456;--color-gold-on-dark:#d1ba83;--color-pink:#ed2e7e;--color-pink-on-light:#c30052;--color-turquoise-on-light:#16a085;--color-turquoise-on-dark:#1abc9c;--color-mint:#00dfe0;--space-2:2px;--space-4:4px;--space-8:8px;--space-10:10px;--space-12:12px;--space-13:13px;--space-14:14px;--space-16:16px;--space-18:18px;--space-20:20px;--space-22:22px;--space-24:24px;--space-28:28px;--space-32:32px;--space-36:36px;--space-40:40px;--space-48:48px;--space-56:56px;--space-60:60px;--space-64:64px;--space-72:72px;--space-80:80px;--space-88:88px;--space-150:150px;--space-limit:640px;--space-infinity:9999px;--number-infinity:9999;--font-family:"Be Vietnam Pro",sans-serif;--font-size-10:10px;--font-size-12:12px;--font-size-13:13px;--font-size-14:14px;--font-size-15:15px;--font-size-16:16px;--font-size-18:18px;--font-size-20:20px;--font-size-24:24px;--font-size-28:28px;--font-size-32:32px;--font-size-34:34px;--font-size-40:40px;--font-size-48:48px;--font-size-54:54px;--font-size-64:64px;--font-style-italic:italic;--font-style-not-italic:normal;--font-weight-hairline:100;--font-weight-thin:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--line-height-13:13px;--line-height-14:14px;--line-height-15:15px;--line-height-16:16px;--line-height-18:18px;--line-height-20:20px;--line-height-22:22px;--line-height-24:24px;--line-height-26:26px;--line-height-28:28px;--line-height-32:32px;--line-height-36:36px;--line-height-40:40px;--line-height-42:42px;--line-height-48:48px;--line-height-60:60px;--letter-spacing-1:1px;--text-shadow:1px 1px 1px var(--color-black);--z-order-mask:1072;--z-order-modal-on-mask:1073;--z-order-action-on-mask:1074;--tour-logo-max-width:0}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.absolute{position:absolute}.relative{position:relative}.-top-0\\.5{top:-2px}.bottom-\\[-14\\.14213562373095px\\]{bottom:-14.14213562373095px}.left-\\[5px\\]{left:5px}.left-\\[calc\\(50\\%_-_7\\.07px\\)\\]{left:calc(50% - 7.07px)}.z-0{z-index:0}.block{display:block}.flex{display:flex}.h-2\\.5{height:10px}.h-\\[14\\.14213562373095px\\]{height:14.14213562373095px}.h-full{height:100%}.w-2\\.5{width:10px}.w-\\[14\\.14213562373095px\\]{width:14.14213562373095px}.w-full{width:100%}.min-w-\\[60px\\]{min-width:60px}.-translate-x-2\\/4{--tw-translate-x:-50%}.-translate-x-2\\/4,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(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:0px}.rotate-45{--tw-rotate:45deg}.rotate-45,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.overflow-hidden{overflow:hidden}.rounded{border-radius:4px}.rounded-md{border-radius:6px}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.6\\)\\]{background-color:#0009}.px-3{padding-left:12px;padding-right:12px}.py-2{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-base{font-size:16px;line-height:24px}.font-normal{font-weight:400}.leading-5{line-height:20px}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.shadow-\\[0_1px_2px_-2px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.16\\)\\2c 0_3px_6px_0_rgba\\(0\\2c 0\\2c 0\\2c 0\\.12\\)\\2c 0_5px_12px_4px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.09\\)\\]{--tw-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017;--tw-shadow-colored:0 1px 2px -2px var(--tw-shadow-color),0 3px 6px 0 var(--tw-shadow-color),0 5px 12px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.invert{--tw-invert:invert(100%)}.filter,.invert{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)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.paused{animation-play-state:paused}'}),v.jsx("style",{children:'@font-face{font-display:block;font-family:icomoon;font-style:normal;font-weight:400;src:local("icomoon"),url(fonts/icomoon.eot?o0athh#iefix) format("embedded-opentype"),url(fonts/icomoon.ttf?o0athh) format("truetype"),url(fonts/icomoon.woff?o0athh) format("woff"),url(fonts/icomoon.svg?o0athh#icomoon) format("svg")}[class*=" icon-"],[class^=icon-]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icomoon!important;font-size:24px;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}[class*=" icon-"]:before,[class^=icon-]:before{color:#1d1d1d;font-size:1em}'}),v.jsx("style",{children:'.icon-person-pin-circle-off_24x24:before{color:#fff;content:"\\eb55"}.icon-clik-rotation-on_24x24:before{content:"\\eb4e"}.icon-clik-rotation-off_24x24:before{content:"\\eb4f"}.icon-map:before{content:"\\eb4d"}.icon-person_pin_circle_24x24:before{content:"\\eb4a"}.icon-vrpano-galery_24x24:before{content:"\\eb4b"}.icon-union_24x24:before{content:"\\eb4c"}.icon-logo-clik-white-64x64:before{color:#fff;content:"\\eb48"}.icon-joystick_24x24:before{color:#007aff;content:"\\eb47"}.icon-door_24x24:before{content:"\\eb49"}.icon-new-bulb_24x24:before{color:#fff;content:"\\eb46"}.icon-show-ai_24x24:before{content:"\\eb45"}.icon-language-cn-circle_24x24 .path1:before{color:#ee1c25;content:"\\eb17"}.icon-language-cn-circle_24x24 .path2:before{color:#ff0;content:"\\eb18";margin-left:-1em}.icon-language-cn-circle_24x24 .path3:before{color:#ff0;content:"\\eb19";margin-left:-1em}.icon-language-cn-circle_24x24 .path4:before{color:#ff0;content:"\\eb1a";margin-left:-1em}.icon-language-cn-circle_24x24 .path5:before{color:#ff0;content:"\\eb1b";margin-left:-1em}.icon-language-cn-circle_24x24 .path6:before{color:#ff0;content:"\\eb1c";margin-left:-1em}.icon-language-en-circle_24x24 .path1:before{color:#fff;content:"\\eb1d"}.icon-language-en-circle_24x24 .path2:before{color:#012169;content:"\\eb1e";margin-left:-1em}.icon-language-en-circle_24x24 .path3:before{color:#012169;content:"\\eb1f";margin-left:-1em}.icon-language-en-circle_24x24 .path4:before{color:#012169;content:"\\eb20";margin-left:-1em}.icon-language-en-circle_24x24 .path5:before{color:#012169;content:"\\eb21";margin-left:-1em}.icon-language-en-circle_24x24 .path6:before{color:#012169;content:"\\eb22";margin-left:-1em}.icon-language-en-circle_24x24 .path7:before{color:#012169;content:"\\eb23";margin-left:-1em}.icon-language-en-circle_24x24 .path8:before{color:#012169;content:"\\eb24";margin-left:-1em}.icon-language-en-circle_24x24 .path9:before{color:#012169;content:"\\eb25";margin-left:-1em}.icon-language-en-circle_24x24 .path10:before{color:#c8102e;content:"\\eb26";margin-left:-1em}.icon-language-en-circle_24x24 .path11:before{color:#c8102e;content:"\\eb27";margin-left:-1em}.icon-language-en-circle_24x24 .path12:before{color:#c8102e;content:"\\eb28";margin-left:-1em}.icon-language-en-circle_24x24 .path13:before{color:#c8102e;content:"\\eb29";margin-left:-1em}.icon-language-en-circle_24x24 .path14:before{color:#c8102e;content:"\\eb2a";margin-left:-1em}.icon-language-jp-circle_24x24 .path1:before{color:#fff;content:"\\eb2b"}.icon-language-jp-circle_24x24 .path2:before{color:#bc002d;content:"\\eb2c";margin-left:-1em}.icon-language-kr-circle_24x24 .path1:before{color:#fff;content:"\\eb2d"}.icon-language-kr-circle_24x24 .path2:before{color:#cd2e3a;content:"\\eb2e";margin-left:-1em}.icon-language-kr-circle_24x24 .path3:before{color:#0047a0;content:"\\eb2f";margin-left:-1em}.icon-language-kr-circle_24x24 .path4:before{color:#cd2e3a;content:"\\eb30";margin-left:-1em}.icon-language-kr-circle_24x24 .path5:before{color:#181b34;content:"\\eb31";margin-left:-1em}.icon-language-kr-circle_24x24 .path6:before{color:#181b34;content:"\\eb32";margin-left:-1em}.icon-language-kr-circle_24x24 .path7:before{color:#181b34;content:"\\eb33";margin-left:-1em}.icon-language-kr-circle_24x24 .path8:before{color:#181b34;content:"\\eb34";margin-left:-1em}.icon-language-kr-circle_24x24 .path9:before{color:#181b34;content:"\\eb35";margin-left:-1em}.icon-language-kr-circle_24x24 .path10:before{color:#181b34;content:"\\eb36";margin-left:-1em}.icon-language-kr-circle_24x24 .path11:before{color:#181b34;content:"\\eb37";margin-left:-1em}.icon-language-kr-circle_24x24 .path12:before{color:#181b34;content:"\\eb38";margin-left:-1em}.icon-language-kr-circle_24x24 .path13:before{color:#181b34;content:"\\eb39";margin-left:-1em}.icon-language-kr-circle_24x24 .path14:before{color:#181b34;content:"\\eb3a";margin-left:-1em}.icon-language-kr-circle_24x24 .path15:before{color:#181b34;content:"\\eb3b";margin-left:-1em}.icon-language-kr-circle_24x24 .path16:before{color:#181b34;content:"\\eb3c";margin-left:-1em}.icon-language-kr-circle_24x24 .path17:before{color:#181b34;content:"\\eb3d";margin-left:-1em}.icon-language-kr-circle_24x24 .path18:before{color:#181b34;content:"\\eb3e";margin-left:-1em}.icon-language-kr-circle_24x24 .path19:before{color:#181b34;content:"\\eb3f";margin-left:-1em}.icon-language-kr-circle_24x24 .path20:before{color:#181b34;content:"\\eb40";margin-left:-1em}.icon-language-kr-circle_24x24 .path21:before{color:#181b34;content:"\\eb41";margin-left:-1em}.icon-language-kr-circle_24x24 .path22:before{color:#181b34;content:"\\eb42";margin-left:-1em}.icon-language-vn-circle_24x24 .path1:before{color:#da251d;content:"\\eb43"}.icon-language-vn-circle_24x24 .path2:before{color:#ff0;content:"\\eb44";margin-left:-1em}.icon-action_open_with_close_24x24:before{content:"\\eb16"}.icon-action_open_with_24x24:before{content:"\\eb14"}.icon-action_translate_24x24:before{content:"\\eb15"}.icon-clik-expand-arrow-up:before{content:"\\eb13"}.icon-volume_off_round-24x24:before{content:"\\eb08"}.icon-volume_up_round-24x24:before{content:"\\eb09"}.icon-clik_share_ios_outlined-24x24:before{content:"\\eb0a"}.icon-hotspot_video_on_outlined-24x24:before{content:"\\eb0b"}.icon-hotspot_facility_on_outlined-24x24:before{content:"\\eb0c"}.icon-hotspot_location_on_outlined-24x24:before{content:"\\eb0d"}.icon-hotspot_brand_on_outlined-24x24:before{content:"\\eb0e"}.icon-hotspot_feature_on_outlined-24x24:before{content:"\\eb0f"}.icon-hotspot_scene_on_outlined-24x24:before{content:"\\eb10"}.icon-functions_others_view_hotspot__off_outlined-24x24:before{content:"\\eb11"}.icon-functions_others_view_hotspot__on_outlined-24x24:before{content:"\\eb12"}.icon-play_youtube_24x24:before{content:"\\eb07"}.icon-grid_on_24x24:before{content:"\\eb05"}.icon-grid_off_24x24:before{content:"\\eb06"}.icon-subtitles_24x24:before{content:"\\eb03"}.icon-subtitles_off_24x24:before{content:"\\eb04"}.icon-push_pin_24x24:before{content:"\\eaff"}.icon-push_pin_outline_24x24:before{content:"\\eb00"}.icon-layout_off_24x24:before{content:"\\eb01"}.icon-layout_on_24x24:before{content:"\\eb02"}.icon-remove_red_eye_24x24:before{content:"\\eafc"}.icon-visibility_off_24x24:before{content:"\\eafd"}.icon-remove_red_eye_filled_24x24:before{content:"\\eafe"}.icon-loyalty_24x24:before{content:"\\eaf2"}.icon-local_activity_outline_24x24:before{content:"\\eaf9"}.icon-arrow_back_24x24:before{content:"\\eafa"}.icon-playlist_play_24x24:before{content:"\\eafb"}.icon-navigation_24x24:before{content:"\\eaf5"}.icon-deblur_24x24:before{content:"\\eaf6"}.icon-palette_24x24:before{content:"\\eaf7"}.icon-slideshow_24x24:before{content:"\\eaf8"}.icon-widgets_24x24:before{content:"\\eaf4"}.icon-gift_24x24:before{content:"\\eaf3"}.icon-closed_caption_disabled_24x24:before{content:"\\eaf1"}.icon-logo_clik_123x40:before{content:"\\eaee"}.icon-3D_24x24:before{content:"\\eaed"}.icon-floor_plan_24x24:before{content:"\\eaec"}.icon-camera_24x24:before{content:"\\eaeb"}.icon-device_screen_lock_rotation_24x24:before{content:"\\eae5"}.icon-device_screen_rotation_24x24:before{content:"\\eae6"}.icon-action_label_off_24x24:before{content:"\\eae7"}.icon-action_label_24x24:before{content:"\\eae8"}.icon-image_music_off_24x24:before{content:"\\eae9"}.icon-image_music_note_24x24:before{content:"\\eaea"}.icon-image_burst_mode_24x24:before{content:"\\eae1"}.icon-av_playlist_add_check_24x24:before{content:"\\eae2"}.icon-communication_list-alt_24x24:before{content:"\\eae3"}.icon-communication_support_24x24:before{content:"\\eae4"}.icon-navigation_fullscreen_exit_24x24:before{content:"\\eae0"}.icon-gyro_100x100:before{content:"\\eadf"}.icon-navigation_fullscreen_24x24:before{content:"\\eade"}.icon-slow_motion_video_24x24:before{content:"\\eadc"}.icon-directions_walk_24X24:before{content:"\\eadd"}.icon-toggle_star_24x24:before{content:"\\ead9"}.icon-toggle_star_half_24x24:before{content:"\\eada"}.icon-toggle_star_outline_24x24:before{content:"\\eadb"}.icon-home_finance_24x24:before{content:"\\ead8"}.icon-logo_clik_60x68 .path1:before{color:#1e6eb4;content:"\\ead6"}.icon-logo_clik_60x68 .path2:before{color:#28c8f0;content:"\\ead7";margin-left:-.8828125em}.icon-home_compass_25x25:before{content:"\\ead5"}.icon-home_assets_air_24x24:before{content:"\\eac7"}.icon-home_assets_area_24x24:before{content:"\\eac8"}.icon-home_assets_bath_tub_24x24:before{content:"\\eac9"}.icon-home_assets_bed_24x24:before{content:"\\eaca"}.icon-home_assets_ceiling_24x24:before{content:"\\eacb"}.icon-home_assets_door_24x24:before{content:"\\eacc"}.icon-home_assets_electrical_24x24:before{content:"\\eacd"}.icon-home_assets_floor_24x24:before{content:"\\eace"}.icon-home_assets_layout_24x24:before{content:"\\eacf"}.icon-home_assets_smart_home_24x24:before{content:"\\ead0"}.icon-home_assets_sofa_single_24x24:before{content:"\\ead1"}.icon-home_assets_wall_24x24:before{content:"\\ead2"}.icon-home_room_dinning_room_24x24:before{content:"\\ead3"}.icon-home_room_kitchen_24x24:before{content:"\\ead4"}.icon-iphone_rotate_300x300:before{content:"\\eac6"}.icon-ipad_rotate_300x300:before{content:"\\eac5"}.icon-flag_en_512x512 .path1:before{color:#f0f0f0;content:"\\eab5"}.icon-flag_en_512x512 .path2:before{color:#0052b4;content:"\\eab6";margin-left:-1em}.icon-flag_en_512x512 .path3:before{color:#0052b4;content:"\\eab7";margin-left:-1em}.icon-flag_en_512x512 .path4:before{color:#0052b4;content:"\\eab8";margin-left:-1em}.icon-flag_en_512x512 .path5:before{color:#0052b4;content:"\\eab9";margin-left:-1em}.icon-flag_en_512x512 .path6:before{color:#0052b4;content:"\\eaba";margin-left:-1em}.icon-flag_en_512x512 .path7:before{color:#0052b4;content:"\\eabb";margin-left:-1em}.icon-flag_en_512x512 .path8:before{color:#0052b4;content:"\\eabc";margin-left:-1em}.icon-flag_en_512x512 .path9:before{color:#0052b4;content:"\\eabd";margin-left:-1em}.icon-flag_en_512x512 .path10:before{color:#d80027;content:"\\eabe";margin-left:-1em}.icon-flag_en_512x512 .path11:before{color:#d80027;content:"\\eabf";margin-left:-1em}.icon-flag_en_512x512 .path12:before{color:#d80027;content:"\\eac0";margin-left:-1em}.icon-flag_en_512x512 .path13:before{color:#d80027;content:"\\eac1";margin-left:-1em}.icon-flag_en_512x512 .path14:before{color:#d80027;content:"\\eac2";margin-left:-1em}.icon-flag_vi_512x512 .path1:before{color:#d80027;content:"\\eac3"}.icon-flag_vi_512x512 .path2:before{color:#ffda44;content:"\\eac4";margin-left:-1em}.icon-toggle_background_32x120:before{content:"\\eab4"}.icon-logo_clik_44x18:before{content:"\\e900"}.icon-marker_pick_11x18:before{content:"\\eab2"}.icon-marker_close_14x14:before{content:"\\ea3b"}.icon-marker_pin_12x24:before{content:"\\ea3c"}.icon-sound-off_24x24:before{content:"\\e901"}.icon-pause_circle_outline_24x24:before{content:"\\e902"}.icon-skip_next_24x24:before{content:"\\e903"}.icon-cast_24x24:before{content:"\\e904"}.icon-sound-on_24x24:before{content:"\\e905"}.icon-play_circle_filled_24x24:before{content:"\\e906"}.icon-skip_previous_24x24:before{content:"\\e907"}.icon-shuffle_24x24:before{content:"\\e908"}.icon-pause_circle_filled_24x24 .path1:before{color:#000;content:"\\e909"}.icon-pause_circle_filled_24x24 .path2:before{color:#fff;content:"\\eab3";margin-left:-1em}.icon-fast_forward_24x24:before{content:"\\e90a"}.icon-fast_rewind_24x24:before{content:"\\e90b"}.icon-play_arrow_24x24:before{content:"\\e90c"}.icon-repeat_24x24:before{content:"\\e90d"}.icon-pause_single_24x24:before{content:"\\e90e"}.icon-airplay_24x24:before{content:"\\e90f"}.icon-play_circle_outline_24x24:before{content:"\\e910"}.icon-search_small_minus_24x24:before{content:"\\e911"}.icon-search_small_plus_24x24:before{content:"\\e912"}.icon-text_align_center_24x24:before{content:"\\e913"}.icon-plus_circle_outline_24x24:before{content:"\\e914"}.icon-search_24x24:before{content:"\\e915"}.icon-minus_24x24:before{content:"\\e916"}.icon-plus_24x24:before{content:"\\e917"}.icon-edit_compass_en_24x24:before{content:"\\e918"}.icon-text_align_right_24x24:before{content:"\\e919"}.icon-list_check_24x24:before{content:"\\e91a"}.icon-text_align_justify_24x24:before{content:"\\e91b"}.icon-minus_circle_outline_24x24:before{content:"\\e91c"}.icon-show_24x24:before{content:"\\e91d"}.icon-copy_24x24:before{content:"\\e91e"}.icon-add_to_queue_24x24:before{content:"\\e91f"}.icon-comment_minus_24x24:before{content:"\\e920"}.icon-select_multiple_24x24:before{content:"\\e921"}.icon-list_ol_24x24:before{content:"\\e922"}.icon-minus_circle_24x24:before{content:"\\e923"}.icon-move_24x24:before{content:"\\e924"}.icon-comment_plus_24x24:before{content:"\\e925"}.icon-hide_24x24:before{content:"\\e926"}.icon-move_horizontal_24x24:before{content:"\\e927"}.icon-text_align_left_24x24:before{content:"\\e928"}.icon-search_small_24x24:before{content:"\\e929"}.icon-move_vertical_24x24:before{content:"\\e92a"}.icon-minus_square_24x24:before{content:"\\e92b"}.icon-edit_24x24:before{content:"\\e92c"}.icon-comment_check_24x24:before{content:"\\e92d"}.icon-plus_circle_24x24:before{content:"\\e92e"}.icon-comment_24x24:before{content:"\\e92f"}.icon-list_ul_24x24:before{content:"\\e930"}.icon-plus_square_24x24:before{content:"\\e931"}.icon-list_plus_24x24:before{content:"\\e932"}.icon-list_minus_24x24:before{content:"\\e933"}.icon-device_monitor_24x24:before{content:"\\e934"}.icon-device_mobile_alt_24x24:before{content:"\\e935"}.icon-devices:before{content:"\\e936"}.icon-device_tablet_24x24:before{content:"\\e937"}.icon-device_mobile_24x24:before{content:"\\e938"}.icon-device_laptop_24x24:before{content:"\\e939"}.icon-home_building_24x24:before{content:"\\e93a"}.icon-home_alt_fill_24x24:before{content:"\\e93b"}.icon-home_heart_24x24:before{content:"\\e93c"}.icon-home_check_24x24:before{content:"\\e93d"}.icon-home_plus_24x24:before{content:"\\e93e"}.icon-home_alt_minus_24x24:before{content:"\\e93f"}.icon-home_x_24x24:before{content:"\\e940"}.icon-home_outline_24x24:before{content:"\\e941"}.icon-home_alt_plus_24x24:before{content:"\\e942"}.icon-home_alt_x_24x24:before{content:"\\e943"}.icon-home_alt_outline_24x24:before{content:"\\e944"}.icon-home_alt_check_24x24:before{content:"\\e945"}.icon-home_minus_24x24:before{content:"\\e946"}.icon-home_heart-1_24x24:before{content:"\\e947"}.icon-home_fill_24x24:before{content:"\\e948"}.icon-transfer_24x24:before{content:"\\e949"}.icon-cylinder_24x24:before{content:"\\e94a"}.icon-bar_right_24x24:before{content:"\\e94b"}.icon-window_check_24x24:before{content:"\\e94c"}.icon-data_24x24:before{content:"\\e94d"}.icon-window_sidebar_24x24:before{content:"\\e94e"}.icon-window_terminal_24x24:before{content:"\\e94f"}.icon-bar_left_24x24:before{content:"\\e950"}.icon-code_24x24:before{content:"\\e951"}.icon-window_close_24x24:before{content:"\\e952"}.icon-window_24x24:before{content:"\\e953"}.icon-bar_bottom_24x24:before{content:"\\e954"}.icon-window_code_block_24x24:before{content:"\\e955"}.icon-bar_top_24x24:before{content:"\\e956"}.icon-terminal_24x24:before{content:"\\e957"}.icon-user_id_card_24x24:before{content:"\\e958"}.icon-user_x_24x24:before{content:"\\e959"}.icon-user_minus_24x24:before{content:"\\e95a"}.icon-user_circle_24x24:before{content:"\\e95b"}.icon-user_plus_24x24:before{content:"\\e95c"}.icon-user_voice_24x24:before{content:"\\e95d"}.icon-user_24x24:before{content:"\\e95e"}.icon-user_check_24x24:before{content:"\\e95f"}.icon-user_pin_24x24:before{content:"\\e960"}.icon-calendar_event_24x24:before{content:"\\e961"}.icon-calendar_x_24x24:before{content:"\\e962"}.icon-calendar_minus_24x24:before{content:"\\e963"}.icon-calendar_week_24x24:before{content:"\\e964"}.icon-calendar_calendar_24x24:before{content:"\\e965"}.icon-calendar_edit_24x24:before{content:"\\e966"}.icon-calendar_plus_24x24:before{content:"\\e967"}.icon-calendar_check_24x24:before{content:"\\e968"}.icon-calendar_24x24:before{content:"\\e969"}.icon-bar_chart_alt_24x24:before{content:"\\e96a"}.icon-pie_chart_outline_24x24:before{content:"\\e96b"}.icon-trending_down_24x24:before{content:"\\e96c"}.icon-line_chart_down_24x24:before{content:"\\e96d"}.icon-pie_chart_25_24x24:before{content:"\\e96e"}.icon-pie_chart_75_24x24:before{content:"\\e96f"}.icon-doughnut_chart_24x24:before{content:"\\e970"}.icon-pie_chart_outline_25_24x24:before{content:"\\e971"}.icon-bar_chart_square_24x24:before{content:"\\e972"}.icon-bar_chart_24x24:before{content:"\\e973"}.icon-bar_chart_horizontal_24x24:before{content:"\\e974"}.icon-trending_up_24x24:before{content:"\\e975"}.icon-line_chart_up_24x24:before{content:"\\e976"}.icon-pie_chart_50_24x24:before{content:"\\e977"}.icon-menu_more_vertical_24x24:before{content:"\\e978"}.icon-grid_big_round_24x24:before{content:"\\e979"}.icon-grid_small_24x24:before{content:"\\e97a"}.icon-menu_duo_24x24:before{content:"\\e97b"}.icon-grid_small_round_24x24:before{content:"\\e97c"}.icon-navigation_slide_stick_24x24:before{content:"\\e97d"}.icon-menu_close_big_24x24:before{content:"\\e97e"}.icon-grid_dashboard_24x24:before{content:"\\e97f"}.icon-grid_big_24x24:before{content:"\\e980"}.icon-menu_add_collapse_24x24:before{content:"\\e981"}.icon-menu_alt_01_24x24:before{content:"\\e982"}.icon-grid_dashboard_02_24x24:before{content:"\\e983"}.icon-grid_round_24x24:before{content:"\\e984"}.icon-menu_close_small_24x24:before{content:"\\e985"}.icon-grid_horizontal_24x24:before{content:"\\e986"}.icon-menu_alt_04_24x24:before{content:"\\e987"}.icon-menu_more_horizontal_24x24:before{content:"\\e988"}.icon-menu_alt_02_24x24:before{content:"\\e989"}.icon-menu_add_expand_24x24:before{content:"\\e98a"}.icon-menu_hamburger_24x24:before{content:"\\e98b"}.icon-grid_vertical_24x24:before{content:"\\e98c"}.icon-menu_alt_05_24x24:before{content:"\\e98d"}.icon-grid_horizontal_round_24x24:before{content:"\\e98e"}.icon-grid_24x24:before{content:"\\e98f"}.icon-menu_alt_03_24x24:before{content:"\\e990"}.icon-grid_vertical_round_24x24:before{content:"\\e991"}.icon-warning_outline_24x24:before{content:"\\e992"}.icon-error_outline_24x24:before{content:"\\e993"}.icon-warning_24x24:before{content:"\\e994"}.icon-info_circle_24x24:before{content:"\\e995"}.icon-info_square_24x24:before{content:"\\e996"}.icon-info_square_outline_24x24:before{content:"\\e997"}.icon-info_circle_outline_24x24:before{content:"\\e998"}.icon-error_24x24:before{content:"\\e999"}.icon-notification_24x24:before{content:"\\e99a"}.icon-notification_active_24x24:before{content:"\\e99b"}.icon-notification_deactivated_24x24:before{content:"\\e99c"}.icon-notification_dot_24x24:before{content:"\\e99d"}.icon-notification_minus_24x24:before{content:"\\e99e"}.icon-notification_outline_24x24:before{content:"\\e99f"}.icon-notification_outline_dot_24x24:before{content:"\\e9a0"}.icon-notification_outline_minus_24x24:before{content:"\\e9a1"}.icon-notification_outline_plus_24x24:before{content:"\\e9a2"}.icon-notification_plus_24x24:before{content:"\\e9a3"}.icon-dot_03_m_24x24:before{content:"\\e9a4"}.icon-dot_05_xl_24x24:before{content:"\\e9a5"}.icon-line_sx_24x24:before{content:"\\e9a6"}.icon-dot_04_l_24x24:before{content:"\\e9a7"}.icon-line_l_24x24:before{content:"\\e9a8"}.icon-dot_02_s_24x24:before{content:"\\e9a9"}.icon-line_m_24x24:before{content:"\\e9aa"}.icon-dot_01_xs_24x24:before{content:"\\e9ab"}.icon-line_xl_24x24:before{content:"\\e9ac"}.icon-line_s_24x24:before{content:"\\e9ad"}.icon-google_24x24:before{content:"\\e9ae"}.icon-reddit_24x24:before{content:"\\e9af"}.icon-linkedIn_24x24:before{content:"\\e9b0"}.icon-zalo_24x24:before{content:"\\e9b1"}.icon-messenger_24x24:before{content:"\\e9b2"}.icon-css3_24x24:before{content:"\\e9b3"}.icon-instagram_24x24:before{content:"\\e9b4"}.icon-dropbox_24x24:before{content:"\\e9b5"}.icon-unsplash_24x24:before{content:"\\e9b6"}.icon-behance_24x24:before{content:"\\e9b7"}.icon-adobe_xd_24x24:before{content:"\\e9b8"}.icon-slack_24x24:before{content:"\\e9b9"}.icon-javascript_24x24:before{content:"\\e9ba"}.icon-figma_24x24:before{content:"\\e9bb"}.icon-discord_24x24:before{content:"\\e9bc"}.icon-github_24x24:before{content:"\\e9bd"}.icon-spotify_24x24:before{content:"\\e9be"}.icon-paypal_24x24:before{content:"\\e9bf"}.icon-app_store_24x24:before{content:"\\e9c0"}.icon-spectrum_24x24:before{content:"\\e9c1"}.icon-twitter_24x24:before{content:"\\e9c2"}.icon-facebook_24x24:before{content:"\\e9c3"}.icon-apple_24x24:before{content:"\\e9c4"}.icon-trello_24x24:before{content:"\\e9c5"}.icon-linkpath_24x24:before{content:"\\e9c6"}.icon-play_store_24x24:before{content:"\\e9c7"}.icon-html5_24x24:before{content:"\\e9c8"}.icon-stack_overflow_24x24:before{content:"\\e9c9"}.icon-dribbble_24x24:before{content:"\\e9ca"}.icon-invision_24x24:before{content:"\\e9cb"}.icon-snapchat_24x24:before{content:"\\e9cc"}.icon-youtube_24x24:before{content:"\\e9cd"}.icon-sketch_24x24:before{content:"\\e9ce"}.icon-coolicons_24x24:before{content:"\\e9cf"}.icon-file_image_24x24:before{content:"\\e9d0"}.icon-file_blank_outline_24x24:before{content:"\\e9d1"}.icon-note_24x24:before{content:"\\e9d2"}.icon-cloud_close_24x24:before{content:"\\e9d3"}.icon-cloud_up_24x24:before{content:"\\e9d4"}.icon-file_js_24x24:before{content:"\\e9d5"}.icon-file_png_24x24:before{content:"\\e9d6"}.icon-file_find_24x24:before{content:"\\e9d7"}.icon-folder_open_24x24:before{content:"\\e9d8"}.icon-file_jpg_24x24:before{content:"\\e9d9"}.icon-file_pdf_24x24:before{content:"\\e9da"}.icon-folder_plus_24x24:before{content:"\\e9db"}.icon-file_html_24x24:before{content:"\\e9dc"}.icon-cloud_check_24x24:before{content:"\\e9dd"}.icon-file_new_24x24:before{content:"\\e9de"}.icon-cloud_down_24x24:before{content:"\\e9df"}.icon-folder_24x24:before{content:"\\e9e0"}.icon-file_css_24x24:before{content:"\\e9e1"}.icon-file_archive_24x24:before{content:"\\e9e2"}.icon-cloud_off_24x24:before{content:"\\e9e3"}.icon-file_svg_24x24:before{content:"\\e9e4"}.icon-file_blank_fill_24x24:before{content:"\\e9e5"}.icon-cloud_24x24:before{content:"\\e9e6"}.icon-cloud_outline_24x24:before{content:"\\e9e7"}.icon-file_minus_24x24:before{content:"\\e9e8"}.icon-folder_minus_24x24:before{content:"\\e9e9"}.icon-clock_24x24:before{content:"\\e9ea"}.icon-refresh_02_24x24:before{content:"\\e9eb"}.icon-download_done_24x24:before{content:"\\e9ec"}.icon-layers_alt_24x24:before{content:"\\e9ed"}.icon-slider_01_24x24:before{content:"\\e9ee"}.icon-trash_empty_24x24:before{content:"\\e9ef"}.icon-location_outline_24x24:before{content:"\\e9f0"}.icon-log_out_24x24:before{content:"\\e9f1"}.icon-help_circle_outline_24x24:before{content:"\\e9f2"}.icon-settings_24x24:before{content:"\\e9f3"}.icon-done_all_24x24:before{content:"\\e9f4"}.icon-location_map_24x24:before{content:"\\e9f5"}.icon-off_outline_close_24x24:before{content:"\\e9f6"}.icon-alarm_24x24:before{content:"\\e9f7"}.icon-checkbox_24x24:before{content:"\\e9f8"}.icon-tag-outline_24x24:before{content:"\\e9f9"}.icon-flag_fill_24x24:before{content:"\\e9fa"}.icon-cookie_24x24:before{content:"\\e9fb"}.icon-color_24x24:before{content:"\\e9fc"}.icon-share_24x24:before{content:"\\e9fd"}.icon-map_24x24:before{content:"\\e9fe"}.icon-radio_filled_24x24:before{content:"\\e9ff"}.icon-briefcase_24x24:before{content:"\\ea00"}.icon-settings_filled_24x24:before{content:"\\ea01"}.icon-mail_24x24:before{content:"\\ea02"}.icon-flag_outline_24x24:before{content:"\\ea03"}.icon-radio_24x24:before{content:"\\ea04"}.icon-external_link_24x24:before{content:"\\ea05"}.icon-trash_full_24x24:before{content:"\\ea06"}.icon-unlink_24x24:before{content:"\\ea07"}.icon-slider_03_24x24:before{content:"\\ea08"}.icon-circle_check_outline_24x24:before{content:"\\ea09"}.icon-sad_24x24:before{content:"\\ea0a"}.icon-happy_24x24:before{content:"\\ea0b"}.icon-layers_24x24:before{content:"\\ea0c"}.icon-help_circle_24x24:before{content:"\\ea0d"}.icon-settings_future_24x24:before{content:"\\ea0e"}.icon-stopwatch_24x24:before{content:"\\ea0f"}.icon-off_close_24x24:before{content:"\\ea10"}.icon-tag_24x24:before{content:"\\ea11"}.icon-location_24x24:before{content:"\\ea12"}.icon-credit_card_24x24:before{content:"\\ea13"}.icon-exit_24x24:before{content:"\\ea14"}.icon-circle_checked_24x24:before{content:"\\ea15"}.icon-command_24x24:before{content:"\\ea16"}.icon-circle_check_24x24:before{content:"\\ea17"}.icon-path_24x24:before{content:"\\ea18"}.icon-phone_24x24:before{content:"\\ea19"}.icon-label_24x24:before{content:"\\ea1a"}.icon-checkbox_square_24x24:before{content:"\\ea1b"}.icon-slider_02_24x24:before{content:"\\ea1c"}.icon-mail_open_24x24:before{content:"\\ea1d"}.icon-confused_24x24:before{content:"\\ea1e"}.icon-image_alt_24x24:before{content:"\\ea1f"}.icon-heart_outline_24x24:before{content:"\\ea20"}.icon-download_24x24:before{content:"\\ea21"}.icon-share_outline_24x24:before{content:"\\ea22"}.icon-loading_24x24:before{content:"\\ea23"}.icon-bulb_24x24:before{content:"\\ea24"}.icon-heart_fill_24x24:before{content:"\\ea25"}.icon-link_24x24:before{content:"\\ea26"}.icon-refresh_24x24:before{content:"\\ea27"}.icon-checkbox_checked_24x24:before{content:"\\ea28"}.icon-done_24x24:before{content:"\\ea29"}.icon-alarm_add_24x24:before{content:"\\ea2a"}.icon-credit_card_alt_24x24:before{content:"\\ea2b"}.icon-help_questionmark_24x24:before{content:"\\ea2c"}.icon-link_02_24x24:before{content:"\\ea2d"}.icon-deg_720_24x24:before{content:"\\ea2e"}.icon-ar_24x24:before{content:"\\ea2f"}.icon-image_slide_24x24:before{content:"\\ea30"}.icon-info_24x24:before{content:"\\ea31"}.icon-language_24x24:before{content:"\\ea32"}.icon-layout_24x24:before{content:"\\ea33"}.icon-money_24x24:before{content:"\\ea34"}.icon-navigator_24x24:before{content:"\\ea35"}.icon-panorama_24x24:before{content:"\\ea36"}.icon-rental_24x24:before{content:"\\ea38"}.icon-deg_360_24x24:before{content:"\\ea37"}.icon-mode_2D_24x24:before{content:"\\ea39"}.icon-mode_3D_24x24:before{content:"\\ea3a"}.icon-click_24x24:before{content:"\\ea3d"}.icon-touch_24x24:before{content:"\\ea3e"}.icon-number_1_24x24:before{content:"\\ea3f"}.icon-number_2_24x24:before{content:"\\ea40"}.icon-number_3_24x24:before{content:"\\ea41"}.icon-number_4_24x24:before{content:"\\ea42"}.icon-number_5_24x24:before{content:"\\ea43"}.icon-number_6_24x24:before{content:"\\ea44"}.icon-number_7_24x24:before{content:"\\ea45"}.icon-number_8_24x24:before{content:"\\ea46"}.icon-number_9_24x24:before{content:"\\ea47"}.icon-sport_24x24:before{content:"\\ea48"}.icon-gym_24x24:before{content:"\\ea49"}.icon-shopping_center_24x24:before{content:"\\ea4a"}.icon-bridge_24x24:before{content:"\\ea4b"}.icon-kid_playground_24x24:before{content:"\\ea4c"}.icon-yacht_24x24:before{content:"\\ea4d"}.icon-hospital_24x24:before{content:"\\ea4e"}.icon-culture_24x24:before{content:"\\ea4f"}.icon-museum_24x24:before{content:"\\ea50"}.icon-club_house_24x24:before{content:"\\ea51"}.icon-tree_24x24:before{content:"\\ea52"}.icon-hotel_24x24:before{content:"\\ea53"}.icon-swimming_pool_24x24:before{content:"\\ea54"}.icon-building_24x24:before{content:"\\ea55"}.icon-community_24x24:before{content:"\\ea56"}.icon-city_24x24:before{content:"\\ea57"}.icon-water_24x24:before{content:"\\ea58"}.icon-villa_24x24:before{content:"\\ea59"}.icon-golf_24x24:before{content:"\\ea5a"}.icon-school_24x24:before{content:"\\ea5b"}.icon-wooden_floor_24x24:before{content:"\\ea5c"}.icon-grocery_24x24:before{content:"\\ea5d"}.icon-park_24x24:before{content:"\\ea5e"}.icon-coffee_24x24:before{content:"\\ea5f"}.icon-hotspot_collapse_24x24:before{content:"\\ea60"}.icon-walk_24x24:before{content:"\\ea61"}.icon-parking_24x24:before{content:"\\ea62"}.icon-airpot_24x24:before{content:"\\ea63"}.icon-restaurant_24x24:before{content:"\\ea64"}.icon-market_24x24:before{content:"\\ea65"}.icon-scene_day_24x24:before{content:"\\ea66"}.icon-view_aerial_24x24:before{content:"\\ea67"}.icon-stair_up_24x24:before{content:"\\ea68"}.icon-elevator_up_24x24:before{content:"\\ea69"}.icon-elevator_normal_24x24:before{content:"\\ea6a"}.icon-scene_night_24x24:before{content:"\\ea6b"}.icon-stair_down_24x24:before{content:"\\ea6c"}.icon-view_walking_24x24:before{content:"\\ea6d"}.icon-elevator_down_24x24:before{content:"\\ea6e"}.icon-hotspot_place_24x24:before{content:"\\ea6f"}.icon-transport_motorbike_24x24:before{content:"\\ea70"}.icon-transport_car_24x24:before{content:"\\ea71"}.icon-transport_bicycle_24x24:before{content:"\\ea72"}.icon-transport_bus_24x24:before{content:"\\ea73"}.icon-transport_walk_24x24:before{content:"\\ea74"}.icon-small_long_down_24x24:before{content:"\\ea75"}.icon-thin_long_left_24x24:before{content:"\\ea76"}.icon-circle_chevron_right_24x24:before{content:"\\ea77"}.icon-long_down_24x24:before{content:"\\ea78"}.icon-short_up_24x24:before{content:"\\ea79"}.icon-thin_long_02_down_24x24:before{content:"\\ea7a"}.icon-chevron_big_right_24x24:before{content:"\\ea7b"}.icon-thin_long_up_24x24:before{content:"\\ea7c"}.icon-long_up_left_24x24:before{content:"\\ea7d"}.icon-chevron_down_24x24:before{content:"\\ea7e"}.icon-thin_long_02_left_24x24:before{content:"\\ea7f"}.icon-long_bottom_down_24x24:before{content:"\\ea80"}.icon-chevron_right_24x24:before{content:"\\ea81"}.icon-chevron_left_24x24:before{content:"\\ea82"}.icon-small_long_left_24x24:before{content:"\\ea83"}.icon-chevron_up_24x24:before{content:"\\ea84"}.icon-thin_long_down_24x24:before{content:"\\ea85"}.icon-long_left_24x24:before{content:"\\ea86"}.icon-circle_chevron_down_24x24:before{content:"\\ea87"}.icon-shrink_24x24:before{content:"\\ea88"}.icon-thin_long_02_up_24x24:before{content:"\\ea89"}.icon-chevron_duo_left_24x24:before{content:"\\ea8a"}.icon-sub_right_24x24:before{content:"\\ea8b"}.icon-thin_big_up_24x24:before{content:"\\ea8c"}.icon-caret_right_24x24:before{content:"\\ea8d"}.icon-chevron_duo_up_24x24:before{content:"\\ea8e"}.icon-chevron_duo_down_24x24:before{content:"\\ea8f"}.icon-short_right_24x24:before{content:"\\ea90"}.icon-caret_up_24x24:before{content:"\\ea91"}.icon-circle_chevron_left_24x24:before{content:"\\ea92"}.icon-circle_right_24x24:before{content:"\\ea93"}.icon-chevron_duo_right_24x24:before{content:"\\ea94"}.icon-circle_down_24x24:before{content:"\\ea95"}.icon-short_left_24x24:before{content:"\\ea96"}.icon-small_long_right_24x24:before{content:"\\ea97"}.icon-circle_chevron_up_24x24:before{content:"\\ea98"}.icon-chevron_big_up_24x24:before{content:"\\ea99"}.icon-rotate_24x24:before{content:"\\ea9a"}.icon-chevron_big_down_24x24:before{content:"\\ea9b"}.icon-long_up_24x24:before{content:"\\ea9c"}.icon-long_up_right_24x24:before{content:"\\ea9d"}.icon-caret_down_24x24:before{content:"\\ea9e"}.icon-thin_long_02_right_24x24:before{content:"\\ea9f"}.icon-long_bottom_up_24x24:before{content:"\\eaa0"}.icon-long_right_24x24:before{content:"\\eaa1"}.icon-caret_left_24x24:before{content:"\\eaa2"}.icon-small_long_up_24x24:before{content:"\\eaa3"}.icon-circle_up_24x24:before{content:"\\eaa4"}.icon-short_down_24x24:before{content:"\\eaa5"}.icon-circle_left_24x24:before{content:"\\eaa6"}.icon-chevron_big_left_24x24:before{content:"\\eaa7"}.icon-first_page_24x24:before{content:"\\eaa8"}.icon-unfold_more_24x24:before{content:"\\eaa9"}.icon-sub_left_24x24:before{content:"\\eaaa"}.icon-thin_big_left_24x24:before{content:"\\eaab"}.icon-last_page_24x24:before{content:"\\eaac"}.icon-thin_big_right_24x24:before{content:"\\eaad"}.icon-expand_24x24:before{content:"\\eaae"}.icon-unfold_less_24x24:before{content:"\\eaaf"}.icon-thin_big_down_24x24:before{content:"\\eab0"}.icon-thin_long_right_24x24:before{content:"\\eab1"}.icon-near-me_24x24:before{content:"\\eaef"}.icon-near-me-disabled_24x24:before{content:"\\eaf0"}.icon-video_library_24x24:before{content:"\\eb50"}.icon-clik-sound_24x24:before{content:"\\eb51"}.icon-repeat-off_24x24:before{content:"\\eb52"}.icon-pause_circle_24x24:before{content:"\\eb53"}.icon-ar:before{content:"\\eb54"}.icon-clik-sound:before{content:"\\eb56"}'}),v.jsx("style",{children:".cvtv-moving-label-poi{--tw-text-opacity:1;--tw-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017;--tw-shadow-colored:0 1px 2px -2px var(--tw-shadow-color),0 3px 6px 0 var(--tw-shadow-color),0 5px 12px 4px var(--tw-shadow-color);background-color:#0009;border-radius:4px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity,1));cursor:pointer;font-size:16px;font-weight:400;line-height:20px;min-width:60px;padding:8px 12px;pointer-events:auto;text-align:center}.cvtv-moving-label-poi__inner{border-radius:6px;height:100%;overflow:hidden;width:100%}.cvtv-moving-label-poi__arrow{bottom:-14.14213562373095px;height:14.14213562373095px;left:calc(50% - 7.07px);overflow:hidden;position:absolute;width:14.14213562373095px;z-index:0}.cvtv-moving-label-poi__arrow__content{--tw-translate-x:-50%;--tw-translate-y:0px;--tw-rotate:45deg;background-color:#0009;display:block;height:10px;left:5px;position:relative;top:-7px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));width:10px}.cvtv-product-info-poi__marker{background-color:#0000;border:1px solid #0000;border-radius:100px;position:relative}.cvtv-product-info-poi__marker--label{padding:11px}.cvtv-product-info-poi__marker .info-poi{align-items:center;display:flex;justify-content:center;position:relative;width:0}.cvtv-product-info-poi__marker .info-poi__icon{left:-11px;position:absolute;top:0}.cvtv-product-info-poi__marker .info-poi__label{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative;width:0}.cvtv-product-info-poi__marker .info-poi__label .text{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-family:bold;font-size:14px;line-height:20px;max-width:200px;overflow:hidden;padding-left:20px;text-overflow:ellipsis;white-space:nowrap}.cvtv-product-info-poi__marker .info-poi__label .chevron{padding-left:20px}.cvtv-product-info-poi__marker .info-poi__label .chevron:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));content:var(--tw-content)}.cvtv-product-info-poi__marker--visible{--tw-backdrop-blur:blur(24px);--tw-backdrop-brightness:brightness(1);--tw-backdrop-opacity:opacity(1);animation:poi-item-info-bg-animation .5s ease 0s 1 normal forwards;animation-duration:1s;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);background-color:#0000003d;transition-duration:1s;transition-property:background;transition-timing-function:cubic-bezier(.4,0,.2,1)}.cvtv-product-info-poi__marker--visible .info-poi{animation:poi-item-info-animation .5s ease 0s 1 normal forwards;overflow:hidden}.cvtv-product-info-poi__marker--visible .info-poi__icon{position:static}.cvtv-product-info-poi__marker--visible .info-poi__label{width:auto}@keyframes pin-poi-animation{0%{opacity:0}to{opacity:1}}@keyframes poi-item-info-bg-animation{0%{background-color:#0000}to{background-color:#0000007a}}@keyframes poi-item-info-animation{0%{width:0}to{width:100%}}"}),v.jsx("style",{children:'.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow,.cvtv-poi-laser-tooltip .cvtv-poi-laser-tooltip__line-wrap__slash-line{animation:slash-pop-animation .15s linear 0s forwards;-webkit-animation:slash-pop-animation .15s linear 0s forwards}.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__straight-line,.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{animation:straight-pop-animation .15s linear .15s forwards;-webkit-animation:straight-pop-animation .15s linear .15s forwards;left:212px;top:-213px}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header,.cvtv-poi-laser-tooltip-content__image{animation:animation-of-content + .2s .2s ease .15s forwards;opacity:0;width:150px}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__footer [class*=icon-]:before,.cvtv-poi-laser-tooltip-content__header{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.cvtv-poi-laser-tooltip-content__body__main,.cvtv-poi-laser-tooltip-content__body__sub,.cvtv-poi-laser-tooltip-content__header{-webkit-box-orient:vertical;-webkit-line-clamp:5;display:-webkit-box;max-height:16px * 5;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap;word-break:break-word}.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header{text-transform:uppercase}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header{--tw-translate-y:4px;font-size:12px;line-height:16px;text-shadow:1px 1px 1px #000;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:normal}.cvtv-poi-laser-tooltip-content__header{margin-bottom:4px;margin-left:2px}.cvtv-poi-laser-tooltip-content__image{--tw-shadow:0 1px 8px #0000003d;--tw-shadow-colored:0 1px 8px var(--tw-shadow-color);background-color:#ffffff7a;border-radius:8px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);max-height:640px;object-fit:contain;pointer-events:auto;width:150px}.cvtv-poi-laser-tooltip-content__body{margin-bottom:4px;padding:4px 0 8px 2px}.cvtv-poi-laser-tooltip-content__body__main,.cvtv-poi-laser-tooltip-content__body__sub{padding:4px 0 0}.cvtv-poi-laser-tooltip-content__body__main{font-weight:700;text-transform:uppercase}.cvtv-poi-laser-tooltip-content__footer{align-items:center;display:flex;display:-ms-flexbox;font-weight:700;height:20px;justify-content:end;padding:4px 0 0 16px}.cvtv-poi-laser-tooltip-content__footer__icon,.cvtv-poi-laser-tooltip-content__footer__text{pointer-events:auto}.cvtv-poi-laser-tooltip-content__footer__icon{font-size:14px;line-height:20px;margin-top:2px}.cvtv-poi-laser-tooltip-content .bds-poi-gallery{display:flex;flex-wrap:wrap;height:150px - 2px;pointer-events:auto;position:relative;width:150px - 2px}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));height:100%;width:100%}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item img,.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item video{--tw-bg-opacity:1;background-color:rgb(214 214 214/var(--tw-bg-opacity,1));height:100%;object-fit:cover;width:100%}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__mask{align-items:center;background-color:#0000007a;bottom:0;display:flex;font-size:20px;height:50%;justify-content:center;line-height:28px;position:absolute;right:0;width:33.33%;z-index:1}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-next,.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-prev{--tw-translate-y:-50%;cursor:pointer;position:absolute;text-shadow:none;top:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-prev{left:0}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-next{right:0}.cvtv-poi-laser-tooltip{--tw-translate-x:-0.5px;--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip__focusing-point,.cvtv-poi-laser-tooltip__point{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));border-radius:9999px}.cvtv-poi-laser-tooltip__point{--tw-shadow:0 0 1px #000;--tw-shadow-colored:0 0 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);height:7px;width:7px}.cvtv-poi-laser-tooltip__focusing-point{height:11px;width:11px}.cvtv-poi-laser-tooltip__body{animation-duration:.5s;animation-timing-function:cubic-bezier(.4,0,.2,1);bottom:0;left:0;pointer-events:none;position:absolute;text-shadow:0 1px 4px #00000040;transition-duration:.5s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.cvtv-poi-laser-tooltip__line-wrap{bottom:2px;left:2px;position:absolute;width:100%}.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow,.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{--tw-shadow:0 0 1px #000;--tw-shadow-colored:0 0 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)}.cvtv-poi-laser-tooltip__line-wrap__slash-line,.cvtv-poi-laser-tooltip__line-wrap__straight-line{z-index:1}.cvtv-poi-laser-tooltip__line-wrap__slash-line,.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow{--tw-rotate:-45deg;background:#fff;height:1px;left:1px;position:absolute;top:-1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform-origin:left bottom;width:0}.cvtv-poi-laser-tooltip__line-wrap__straight-line,.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{background:linear-gradient(90deg,#fff,#ffffff1a);height:1px;position:absolute;width:0}.cvtv-poi-laser-tooltip-content{align-items:center;display:flex;gap:12px;justify-content:center;pointer-events:auto;position:relative}.cvtv-poi-laser-tooltip-content__popup{animation:animation-popup-content 1s linear forwards;-webkit-animation:animation-popup-content 1s linear forwards;display:flex;flex-direction:column;pointer-events:auto;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__image{margin-bottom:8px}.cvtv-poi-laser-tooltip-content__popup .popup__image,.cvtv-poi-laser-tooltip-content__popup .popup__video{--tw-shadow:0 1px 8px #0000003d;--tw-shadow-colored:0 1px 8px var(--tw-shadow-color);border-radius:16px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__video{filter:drop-shadow(0 1px 8px rgba(0,0,0,.32));position:relative}.cvtv-poi-laser-tooltip-content__popup .popup__video .video__content{border-radius:16px;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__video .video__icon{--tw-translate-x:-50%;--tw-translate-y:-50%;left:50%;position:absolute;top:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__popup\n.popup__video>[class^=icon-]:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.cvtv-poi-laser-tooltip-content__popup .popup__info{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__info .info__title{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-size:12px;font-weight:700;line-height:15px;margin-bottom:2px;text-shadow:1px 1px 1px #000;white-space:normal}.cvtv-poi-laser-tooltip-content__popup .popup__info .info__subtitle{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-size:10px;font-weight:500;line-height:13px;text-shadow:1px 1px 1px #000;white-space:normal}.cvtv-poi-laser-tooltip-content__popup--small{align-items:center;display:flex;flex-direction:column;justify-content:center;width:116px}.cvtv-poi-laser-tooltip-content__popup--small .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:80px}.cvtv-poi-laser-tooltip-content__popup--small .popup__video{width:80px}.cvtv-poi-laser-tooltip-content__popup--medium .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:160px}.cvtv-poi-laser-tooltip-content__popup--medium .popup__video{width:160px}.cvtv-poi-laser-tooltip-content__popup--large .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:240px}.cvtv-poi-laser-tooltip-content__popup--large .popup__video{width:240px}.cvtv-poi-laser-tooltip-content__pin{align-items:center;display:flex;justify-content:center;position:relative}.cvtv-poi-laser-tooltip-content__pin .pin__content{border-radius:4px;display:flex;overflow:hidden;position:relative}.cvtv-poi-laser-tooltip-content__pin .pin__content:after{--tw-content:"";border-radius:4px;content:var(--tw-content);left:0;position:absolute;top:0}.cvtv-poi-laser-tooltip-content__pin .pin__icon{--tw-shadow:0px 1px 8px #00000052;--tw-shadow-colored:0px 1px 8px var(--tw-shadow-color);animation:animation-icon 1s linear;-webkit-animation:animation-icon 1s linear;border-radius:50%;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:flex;height:32px;overflow:hidden;width:32px}.cvtv-poi-laser-tooltip-content__pin .pin__icon .icon__image,.cvtv-poi-laser-tooltip-content__pin .pin__icon .icon__image-strip{height:100%;width:100%}.cvtv-poi-laser-tooltip-content__pin\n.pin__icon\n.icon__image-strip\n.image-strip__content{background-size:var(--width-image-trip) var(--height-image-trip);height:100%;width:100%}.cvtv-poi-laser-tooltip-content__pin--bottom,.cvtv-poi-laser-tooltip-content__pin--top{flex-direction:column}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content,.cvtv-poi-laser-tooltip-content__pin--top .pin__content{height:var(--size-pin-content);width:1px}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content:after,.cvtv-poi-laser-tooltip-content__pin--top .pin__content:after{animation:animation-pin-vertical .5s linear forwards;-webkit-animation:animation-pin-vertical .5s linear forwards;height:0;width:100%}.cvtv-poi-laser-tooltip-content__pin--left,.cvtv-poi-laser-tooltip-content__pin--right{flex-direction:row}.cvtv-poi-laser-tooltip-content__pin--left .pin__content,.cvtv-poi-laser-tooltip-content__pin--right .pin__content{height:1px;width:var(--size-pin-content)}.cvtv-poi-laser-tooltip-content__pin--left .pin__content:after,.cvtv-poi-laser-tooltip-content__pin--right .pin__content:after{animation:animation-pin-horizontal .5s linear forwards;-webkit-animation:animation-pin-horizontal .5s linear forwards;height:100%;width:0}.cvtv-poi-laser-tooltip-content__pin--left .pin__content,.cvtv-poi-laser-tooltip-content__pin--top .pin__content{--tw-rotate:180deg;order:2;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__pin--left .pin__icon,.cvtv-poi-laser-tooltip-content__pin--top .pin__icon{order:1}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content,.cvtv-poi-laser-tooltip-content__pin--right .pin__content{--tw-rotate:0deg;order:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__icon,.cvtv-poi-laser-tooltip-content__pin--right .pin__icon{order:2}@keyframes straight-pop-animation{0%{width:0}to{width:100%}}@keyframes slash-pop-animation{0%{width:0}to{width:300px}}@keyframes animation-pin-horizontal{0%{background-color:#ffffff3d;width:0}to{background-color:#fff;width:100%}}@keyframes animation-pin-vertical{0%{background-color:#ffffff3d;height:0}to{background-color:#fff;height:100%}}@keyframes animation-popup-content{0%{opacity:0}50%{opacity:0}to{opacity:1}}@keyframes animation-of-content{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes animation-icon{0%{opacity:0;transform:scale(1)}30%{opacity:0;transform:scale(1)}50%{opacity:0;transform:scale(1)}70%{opacity:.4;transform:scale(1)}75%{opacity:.5;transform:scale(1.2)}80%{opacity:.6;transform:scale(.8)}90%{opacity:.8;transform:scale(1.2)}to{opacity:1;transform:scale(1)}}'}),v.jsx("style",{children:".ant-btn{--tw-shadow:0 2px 0 rgba(0,0,0,.015);--tw-shadow-colored:0 2px 0 var(--tw-shadow-color);animation-duration:.3s;animation-timing-function:cubic-bezier(.4,0,.2,1);background-color:#0000003d;background-image:none;border:1px solid #0000;border-radius:25px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:#000000d9;cursor:pointer;display:inline-block;font-size:13px;font-weight:400;height:32px;line-height:1.5715;padding:4.8px 15px;position:relative;text-align:center;touch-action:manipulation;transition-duration:.3s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;white-space:nowrap}.ant-btn:hover{background:var(--color-black-24)}.ant-btn:hover,.ant-btn:not([disabled]):hover{text-decoration:none}.ant-btn-icon-only{border-radius:25px;font-size:15px;height:32px;padding:3.2px 0;vertical-align:-1px;width:32px}"}),v.jsx("style",{children:".cvtv-ui-layout__tour-logo{align-items:center;display:flex;filter:drop-shadow(0 var(--space-2) var(--space-16) var(--color-black-16));left:var(--space-16);max-width:var(--tour-logo-max-width);position:absolute;top:var(--space-16);z-index:1}.cvtv-ui-layout__tour-logo span{color:var(--color-white);overflow:hidden;padding:var(--space-2) var(--space-8);text-overflow:ellipsis;text-shadow:0 2px 8px var(--color-black-72);text-transform:uppercase;white-space:nowrap}.cvtv-ui-layout__tour-logo img{max-height:40px;max-width:120px}.cvtc-beta-tour__group-pin-action\n.cvtc-auto-play-menu-bar,.cvtc-beta-tour__group-pin-action\n.cvtc-pin-actions,.cvtc-beta-tour__group-pin-action\n.cvtc-show-ai-menu-bar{pointer-events:auto}.cvtc-pin-actions,.cvtc-pin-actions__button{align-items:center;display:flex;justify-content:center}.cvtc-pin-actions__button{background:#0000;box-shadow:unset;height:40px;transition:all .3s ease-in-out;width:40px}.cvtc-pin-actions__button:hover{border-color:#0000}.cvtc-pin-actions__button>[class^=icon-]:before{color:var(--color-white);text-shadow:0 2px 8px var(--color-black-64)}.cvtc-beta-tour__group-pin-action,.cvtc-pin-actions{flex-direction:column;gap:var(--space-8)}.cvtc-beta-tour__group-pin-action{align-items:end;bottom:var(--space-16);display:flex;pointer-events:none;position:absolute;right:var(--space-16)}"}),v.jsx(Vs,Object.assign({},e,{onTourLoaded:n=>{t.tour=n,o(!0),e.onLoaded&&(n={goToProduct:n.goToProduct,goToScene:n.loadScene},e.onLoaded(n))}})),v.jsx(aa,Object.assign({},e,{tourLoaded:n}))]})};class ca extends HTMLElement{constructor(){super(),this.mobile=!1,this.updateAttributes=this.updateAttributes.bind(this)}updateAttributes(e){this.elementId=e.elementId,this.apiHost=e.apiHost,this.config=e.config,this.mobile=e.mobile||!1,this.onLoaded=e.onLoaded,this.onPoiClicked=e.onPoiClicked,this.render()}connectedCallback(){this.apiHost&&this.render()}render(){re.render(v.jsx(la,{elementId:this.elementId,apiHost:this.apiHost||"",config:this.config||{tourCode:""},mobile:this.mobile,onLoaded:this.onLoaded,onPoiClicked:this.onPoiClicked}),this)}}let ua=t=>{var n=t.id?document.getElementById(t.id):document.querySelector(e);if(!n)throw new Error(e+" element not found.");customElements.get(e)?n.updateAttributes(t):(Object.assign(n,t),"undefined"==typeof window||customElements.get(e)||customElements.define(e,ca))},ha={initVisualizer:ua,destroy:()=>{}};(e=>{"undefined"!=typeof window&&(window.ShowroomVisualizer=Object.assign({},e))})(ha);export{ha as default};