@clikvn/showroom-visualizer 0.0.1-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/.idea/inspectionProfiles/Project_Default.xml +36 -0
- package/.idea/jsLinters/eslint.xml +7 -0
- package/.idea/misc.xml +9 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +7 -0
- package/.idea/showroom-visualizer.iml +9 -0
- package/.idea/vcs.xml +6 -0
- package/README.md +22 -0
- package/base.json +21 -0
- package/dist/commons/SkinLayer/components/Button/index.d.ts +11 -0
- package/dist/commons/SkinLayer/components/Button/index.d.ts.map +1 -0
- package/dist/commons/SkinLayer/components/index.d.ts +1 -0
- package/dist/commons/SkinLayer/components/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/Layout/index.d.ts +3 -0
- package/dist/components/SkinLayer/Layout/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/LogoAndTitle/index.d.ts +4 -0
- package/dist/components/SkinLayer/LogoAndTitle/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/PinActionButtons/index.d.ts +9 -0
- package/dist/components/SkinLayer/PinActionButtons/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/index.d.ts +2 -0
- package/dist/components/SkinLayer/index.d.ts.map +1 -0
- package/dist/components/Visualizer/VirtualTour/index.d.ts +3 -0
- package/dist/components/Visualizer/VirtualTour/index.d.ts.map +1 -0
- package/dist/components/Visualizer/index.d.ts +2 -0
- package/dist/components/Visualizer/index.d.ts.map +1 -0
- package/dist/constants/SkinLayer/actionButtons.d.ts +8 -0
- package/dist/constants/SkinLayer/actionButtons.d.ts.map +1 -0
- package/dist/constants/SkinLayer/index.d.ts +25 -0
- package/dist/constants/SkinLayer/index.d.ts.map +1 -0
- package/dist/constants/Visualizer/index.d.ts +200 -0
- package/dist/constants/Visualizer/index.d.ts.map +1 -0
- package/dist/constants/Visualizer/language.d.ts +6 -0
- package/dist/constants/Visualizer/language.d.ts.map +1 -0
- package/dist/constants/Visualizer/poi.d.ts +30 -0
- package/dist/constants/Visualizer/poi.d.ts.map +1 -0
- package/dist/constants/Visualizer/tour.d.ts +57 -0
- package/dist/constants/Visualizer/tour.d.ts.map +1 -0
- package/dist/constants/Visualizer/variables.d.ts +19 -0
- package/dist/constants/Visualizer/variables.d.ts.map +1 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/context/TourContext.d.ts +8 -0
- package/dist/context/TourContext.d.ts.map +1 -0
- package/dist/features/ShowroomVisualizer/index.d.ts +25 -0
- package/dist/features/ShowroomVisualizer/index.d.ts.map +1 -0
- package/dist/features/VirtualTourVisualizer/index.d.ts +28 -0
- package/dist/features/VirtualTourVisualizer/index.d.ts.map +1 -0
- package/dist/features/VirtualTourVisualizerUI/index.d.ts +26 -0
- package/dist/features/VirtualTourVisualizerUI/index.d.ts.map +1 -0
- package/dist/fonts/icomoon.eot +0 -0
- package/dist/fonts/icomoon.svg +609 -0
- package/dist/fonts/icomoon.ttf +0 -0
- package/dist/fonts/icomoon.woff +0 -0
- package/dist/hooks/SkinLayer/useConfiguration.d.ts +30 -0
- package/dist/hooks/SkinLayer/useConfiguration.d.ts.map +1 -0
- package/dist/hooks/SkinLayer/useLayout.d.ts +46 -0
- package/dist/hooks/SkinLayer/useLayout.d.ts.map +1 -0
- package/dist/hooks/Visualizer/useConfiguration.d.ts +33 -0
- package/dist/hooks/Visualizer/useConfiguration.d.ts.map +1 -0
- package/dist/hooks/Visualizer/useTourVisualizer.d.ts +3 -0
- package/dist/hooks/Visualizer/useTourVisualizer.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.html +22 -0
- package/dist/models/Visualizer/Krpano.d.ts +38 -0
- package/dist/models/Visualizer/Krpano.d.ts.map +1 -0
- package/dist/models/Visualizer/Plugins/BasePlugin.d.ts +64 -0
- package/dist/models/Visualizer/Plugins/BasePlugin.d.ts.map +1 -0
- package/dist/models/Visualizer/Plugins/Gyro.d.ts +12 -0
- package/dist/models/Visualizer/Plugins/Gyro.d.ts.map +1 -0
- package/dist/models/Visualizer/Plugins/Radar.d.ts +21 -0
- package/dist/models/Visualizer/Plugins/Radar.d.ts.map +1 -0
- package/dist/models/Visualizer/Plugins/Sound.d.ts +11 -0
- package/dist/models/Visualizer/Plugins/Sound.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/BgPoi.d.ts +18 -0
- package/dist/models/Visualizer/Poi/BgPoi.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/FloorPoi.d.ts +27 -0
- package/dist/models/Visualizer/Poi/FloorPoi.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/NavigationPoi.d.ts +45 -0
- package/dist/models/Visualizer/Poi/NavigationPoi.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/Poi.d.ts +77 -0
- package/dist/models/Visualizer/Poi/Poi.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiGallery.d.ts +35 -0
- package/dist/models/Visualizer/Poi/PoiGallery.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiInfo.d.ts +20 -0
- package/dist/models/Visualizer/Poi/PoiInfo.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiItemInfo.d.ts +44 -0
- package/dist/models/Visualizer/Poi/PoiItemInfo.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiLensFlare.d.ts +19 -0
- package/dist/models/Visualizer/Poi/PoiLensFlare.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiMoving.d.ts +54 -0
- package/dist/models/Visualizer/Poi/PoiMoving.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiMultimedia/PoiMultimedia.d.ts +22 -0
- package/dist/models/Visualizer/Poi/PoiMultimedia/PoiMultimedia.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiMultimedia/PoiSound.d.ts +22 -0
- package/dist/models/Visualizer/Poi/PoiMultimedia/PoiSound.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiMultimedia/PoiVideo.d.ts +15 -0
- package/dist/models/Visualizer/Poi/PoiMultimedia/PoiVideo.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiNadirLogo.d.ts +12 -0
- package/dist/models/Visualizer/Poi/PoiNadirLogo.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiPhoto.d.ts +13 -0
- package/dist/models/Visualizer/Poi/PoiPhoto.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiPolygon.d.ts +31 -0
- package/dist/models/Visualizer/Poi/PoiPolygon.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiPopup.d.ts +21 -0
- package/dist/models/Visualizer/Poi/PoiPopup.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiPromotion.d.ts +40 -0
- package/dist/models/Visualizer/Poi/PoiPromotion.d.ts.map +1 -0
- package/dist/models/Visualizer/Poi/PoiTexture.d.ts +40 -0
- package/dist/models/Visualizer/Poi/PoiTexture.d.ts.map +1 -0
- package/dist/models/Visualizer/Scene.d.ts +103 -0
- package/dist/models/Visualizer/Scene.d.ts.map +1 -0
- package/dist/models/Visualizer/Tour.d.ts +168 -0
- package/dist/models/Visualizer/Tour.d.ts.map +1 -0
- package/dist/models/Visualizer/TourSound/TourBackgroundSound.d.ts +10 -0
- package/dist/models/Visualizer/TourSound/TourBackgroundSound.d.ts.map +1 -0
- package/dist/models/Visualizer/TourSound/TourSound.d.ts +56 -0
- package/dist/models/Visualizer/TourSound/TourSound.d.ts.map +1 -0
- package/dist/models.d.ts +1 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/register.d.ts +28 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/services/Visualizer/index.d.ts +3 -0
- package/dist/services/Visualizer/index.d.ts.map +1 -0
- package/dist/services/Visualizer/request.d.ts +2 -0
- package/dist/services/Visualizer/request.d.ts.map +1 -0
- package/dist/services/Visualizer/tour.service.d.ts +13 -0
- package/dist/services/Visualizer/tour.service.d.ts.map +1 -0
- package/dist/types/SkinLayer/common.type.d.ts +64 -0
- package/dist/types/SkinLayer/common.type.d.ts.map +1 -0
- package/dist/types/SkinLayer/functionButton.type.d.ts +11 -0
- package/dist/types/SkinLayer/functionButton.type.d.ts.map +1 -0
- package/dist/types/SkinLayer/index.d.ts +6 -0
- package/dist/types/SkinLayer/index.d.ts.map +1 -0
- package/dist/types/SkinLayer/pinActionButton.type.d.ts +32 -0
- package/dist/types/SkinLayer/pinActionButton.type.d.ts.map +1 -0
- package/dist/types/SkinLayer/storage.type.d.ts +21 -0
- package/dist/types/SkinLayer/storage.type.d.ts.map +1 -0
- package/dist/types/SkinLayer/visualizer.type.d.ts +22 -0
- package/dist/types/SkinLayer/visualizer.type.d.ts.map +1 -0
- package/dist/types/Visualizer/common.type.d.ts +64 -0
- package/dist/types/Visualizer/common.type.d.ts.map +1 -0
- package/dist/types/Visualizer/floorplan.type.d.ts +14 -0
- package/dist/types/Visualizer/floorplan.type.d.ts.map +1 -0
- package/dist/types/Visualizer/floorplanPolygon.type.d.ts +11 -0
- package/dist/types/Visualizer/floorplanPolygon.type.d.ts.map +1 -0
- package/dist/types/Visualizer/index.d.ts +18 -0
- package/dist/types/Visualizer/index.d.ts.map +1 -0
- package/dist/types/Visualizer/itemInfo.type.d.ts +50 -0
- package/dist/types/Visualizer/itemInfo.type.d.ts.map +1 -0
- package/dist/types/Visualizer/krpano.type.d.ts +55 -0
- package/dist/types/Visualizer/krpano.type.d.ts.map +1 -0
- package/dist/types/Visualizer/marker.type.d.ts +9 -0
- package/dist/types/Visualizer/marker.type.d.ts.map +1 -0
- package/dist/types/Visualizer/metadata.type.d.ts +34 -0
- package/dist/types/Visualizer/metadata.type.d.ts.map +1 -0
- package/dist/types/Visualizer/plugin.type.d.ts +77 -0
- package/dist/types/Visualizer/plugin.type.d.ts.map +1 -0
- package/dist/types/Visualizer/poi.type.d.ts +188 -0
- package/dist/types/Visualizer/poi.type.d.ts.map +1 -0
- package/dist/types/Visualizer/point.type.d.ts +7 -0
- package/dist/types/Visualizer/point.type.d.ts.map +1 -0
- package/dist/types/Visualizer/scene.type.d.ts +54 -0
- package/dist/types/Visualizer/scene.type.d.ts.map +1 -0
- package/dist/types/Visualizer/signal.type.d.ts +49 -0
- package/dist/types/Visualizer/signal.type.d.ts.map +1 -0
- package/dist/types/Visualizer/storage.type.d.ts +21 -0
- package/dist/types/Visualizer/storage.type.d.ts.map +1 -0
- package/dist/types/Visualizer/theme.type.d.ts +14 -0
- package/dist/types/Visualizer/theme.type.d.ts.map +1 -0
- package/dist/types/Visualizer/tour.type.d.ts +65 -0
- package/dist/types/Visualizer/tour.type.d.ts.map +1 -0
- package/dist/types/Visualizer/tourSound.type.d.ts +35 -0
- package/dist/types/Visualizer/tourSound.type.d.ts.map +1 -0
- package/dist/types/Visualizer/visualizer.type.d.ts +24 -0
- package/dist/types/Visualizer/visualizer.type.d.ts.map +1 -0
- package/dist/utils/Visualizer/file.utils.d.ts +2 -0
- package/dist/utils/Visualizer/file.utils.d.ts.map +1 -0
- package/dist/utils/Visualizer/fullscreen.utils.d.ts +4 -0
- package/dist/utils/Visualizer/fullscreen.utils.d.ts.map +1 -0
- package/dist/utils/Visualizer/function.utils.d.ts +19 -0
- package/dist/utils/Visualizer/function.utils.d.ts.map +1 -0
- package/dist/utils/Visualizer/image.utils.d.ts +8 -0
- package/dist/utils/Visualizer/image.utils.d.ts.map +1 -0
- package/dist/utils/Visualizer/index.d.ts +11 -0
- package/dist/utils/Visualizer/index.d.ts.map +1 -0
- package/dist/utils/Visualizer/krpano.utils.d.ts +49 -0
- package/dist/utils/Visualizer/krpano.utils.d.ts.map +1 -0
- package/dist/utils/Visualizer/krpanoHtml.utils.d.ts +36 -0
- package/dist/utils/Visualizer/krpanoHtml.utils.d.ts.map +1 -0
- package/dist/utils/Visualizer/localStorage.utils.d.ts +4 -0
- package/dist/utils/Visualizer/localStorage.utils.d.ts.map +1 -0
- package/dist/utils/Visualizer/pricing.utils.d.ts +3 -0
- package/dist/utils/Visualizer/pricing.utils.d.ts.map +1 -0
- package/dist/utils/Visualizer/tour.utils.d.ts +12 -0
- package/dist/utils/Visualizer/tour.utils.d.ts.map +1 -0
- package/dist/utils/Visualizer/url.utils.d.ts +3 -0
- package/dist/utils/Visualizer/url.utils.d.ts.map +1 -0
- package/dist/web.d.ts +8 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/web.js +1 -0
- package/dist/window.d.ts +18 -0
- package/dist/window.d.ts.map +1 -0
- package/package.json +107 -0
- package/rollup.config.js +71 -0
- package/tailwind.config.cjs +149 -0
package/dist/web.js
ADDED
|
@@ -0,0 +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,a,s={exports:{}},l={},c={exports:{}},u={};function h(){var e,t,n,i,r,a,s,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"),a=Symbol.for("react.provider"),s=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(){}},_=Object.assign,g={},$.prototype.isReactComponent={},$.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")},$.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=$.prototype,(S=T.prototype=new O).constructor=T,_(S,$.prototype),S.isPureReactComponent=!0,m=Array.isArray,v=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:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(N(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},u.Component=$,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=_({},t.props),r=t.key,a=t.ref,s=t._owner;if(null!=n)for(l in void 0!==n.ref&&(a=n.ref,s=b.current),void 0!==n.key&&(r=""+n.key),t.type&&t.type.defaultProps&&(c=t.type.defaultProps),n)v.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:a,props:i,_owner:s}},u.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},u.createElement=E,u.createFactory=function(e){var t=E.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=N,u.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:A}},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 $(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function O(){}function T(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function E(t,n,o){var i,r={},a=null,s=null;if(null!=n)for(i in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)v.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:a,ref:s,props:r,_owner:b.current}}function N(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function P(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 C(n,o,i,r,a){var s,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 a=a(c=n),n=""===r?"."+P(c,0):r,m(a)?(i="",C(a,o,i=null!=n?n.replace(w,"$&/")+"/":i,"",function(e){return e})):null!=a&&(N(a)&&(l=i+(!(s=a).key||c&&c.key===a.key?"":(""+a.key).replace(w,"$&/")+"/")+n,a={$$typeof:e,type:s.type,key:l,ref:s.ref,props:s.props,_owner:s._owner}),o.push(a)),1;if(c=0,r=""===r?".":r+":",m(n))for(var u=0;u<n.length;u++){var h,d=r+P(h=n[u],u);c+=C(h,o,i,d,a)}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+=C(h=h.value,o,i,d=r+P(h,u++),a);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 M(e,t,n){var o;return null==e||(o=0,C(e,e=[],"","",function(e){return t.call(n,e,o++)})),e}function A(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=(a||(a=1,s.exports=function(){var e,t,n,o,i,a;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,a={key:!0,ref:!0,__self:!0,__source:!0},l.Fragment=n,l.jsx=s,l.jsxs=s),l;function s(e,n,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}}()),s.exports),v={exports:{}},b={},y={exports:{}},w={};function x(){return f||(f=1,y.exports=function(){var e,t,n,o,i,r,a,s,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=[],a=1,s=null,h=u=c=!(l=3),d="function"==typeof setTimeout?setTimeout:null,f="function"==typeof clearTimeout?clearTimeout:null,_="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,g="function"==typeof _?function(){_(A)}:"undefined"!=typeof MessageChannel?(m=new MessageChannel,v=m.port2,m.port1.onmessage=A,function(){v.postMessage(null)}):function(){d(A,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(C))},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 O(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 s=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,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:a++,callback:n,priorityLevel:t,startTime:o,expirationTime:l=o+l,sortIndex:-1},s<o?(t.sortIndex=o,$(r,t),null===O(i)&&t===O(r)&&(h?(f(x),x=-1):h=!0,D(P,o-s))):(t.sortIndex=l,$(i,t),u||c||(u=!0,L(C))),t},e.unstable_shouldYield=M,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 $(e,t){var n=e.length;for(e.push(t);0<n;){var o=n-1>>>1,i=e[o];if(!(0<E(i,t)))break;e[o]=t,e[n]=i,n=o}}function O(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 a=2*(o+1)-1,s=e[a],l=1+a,c=e[l];if(E(s,n)<0)o=l<i&&E(c,s)<0?(e[o]=c,e[l]=n,l):(e[o]=s,e[a]=n,a);else{if(!(l<i&&E(c,n)<0))break;e[o]=c,e[l]=n,o=l}}}}}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!=n?n:e.id-t.id}function N(e){for(var t=O(r);null!==t;){if(null===t.callback)T(r);else{if(!(t.startTime<=e))break;T(r),t.sortIndex=t.expirationTime,$(i,t)}t=O(r)}}function P(e){var t;h=!1,N(e),u||(null!==O(i)?(u=!0,L(C)):null!==(t=O(r))&&D(P,t.startTime-e))}function C(t,n){u=!1,h&&(h=!1,f(x),x=-1),c=!0;var o=l;try{for(N(n),s=O(i);null!==s&&(!(s.expirationTime>n)||t&&!M());){var a,d=s.callback;"function"==typeof d?(s.callback=null,l=s.priorityLevel,a=d(s.expirationTime<=n),n=e.unstable_now(),"function"==typeof a?s.callback=a:s===O(i)&&T(i),N(n)):T(i),s=O(i)}var p;return null!==s||(null!==(p=O(r))&&D(P,p.startTime-n),!1)}finally{s=null,l=o,c=!1}}function M(){return!(e.unstable_now()-S<k)}function A(){if(null!==y){var t=e.unstable_now(),n=(S=t,!0);try{n=y(!0,t)}finally{n?g():(b=!1,y=null)}}else b=!1}function L(e){y=e,b||(b=!0,g())}function D(t,n){x=d(function(){t(e.unstable_now())},n)}}()),y.exports}function k(){if(!_){_=1;var e,t,n,o=d(),i=x(),r=new Set,a={},s=!("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 jo(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 jo(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){p[e]=new jo(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){p[e]=new jo(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 jo(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){p[e]=new jo(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){p[e]=new jo(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){p[e]=new jo(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){p[e]=new jo(e,5,!1,e.toLowerCase(),null,!1,!1)}),/[\-:]([a-z])/g),g=(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,Wo);p[t]=new jo(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,Wo);p[t]=new jo(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,Wo);p[t]=new jo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){p[e]=new jo(e,1,!1,e.toLowerCase(),null,!1,!1)}),p.xlinkHref=new jo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){p[e]=new jo(e,1,!1,e.toLowerCase(),null,!0,!0)}),o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED),Symbol.for("react.element")),m=Symbol.for("react.portal"),v=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"),$=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),C=Symbol.iterator,M=Object.assign,A=!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},H=["Webkit","ms","Moz","O"],R=(Object.keys(I).forEach(function(e){H.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),I[t]=I[e]})}),M({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,z=null,V=null,Y=null,U=!1,j=!1;if(s)try{var W={};Object.defineProperty(W,"passive",{get:function(){j=!0}}),window.addEventListener("test",W,W),window.removeEventListener("test",W,W)}catch(W){j=!1}for(var B,G,q,Q,X,Z,K,J,ee=!1,te=null,ne=!1,oe=null,ie={onError:function(e){ee=!0,te=e}},re=i.unstable_scheduleCallback,ae=i.unstable_cancelCallback,se=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,_e=i.unstable_IdlePriority,ge=null,me=null,ve=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,$e=[],Oe=null,Te=null,Ee=null,Ne=new Map,Pe=new Map,Ce=[],Me="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(" "),Ae=o.ReactCurrentBatchConfig,Le=!0,De=null,Ie=null,He=null,Re=null,Fe=ir(W={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0}),ze=ir(it=M({},W,{view:0,detail:0})),Ve=M({},it,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ar,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}}),Ye=ir(Ve),Ue=ir(M({},Ve,{dataTransfer:0})),je=ir(M({},it,{relatedTarget:0})),We=ir(M({},W,{animationName:0,elapsedTime:0,pseudoElement:0})),Be=ir(M({},W,{clipboardData:function(e){return("clipboardData"in e?e:window).clipboardData}})),Ge=ir(M({},W,{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"},Qe={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"},Xe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ze=ir(M({},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?Qe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ar,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(M({},Ve,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Je=ir(M({},it,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ar})),et=ir(M({},W,{propertyName:0,elapsedTime:0,pseudoElement:0})),tt=ir(M({},Ve,{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=(s&&"CompositionEvent"in window),it=null,rt=(s&&"documentMode"in document&&(it=document.documentMode),s&&"TextEvent"in window&&!it),at=s&&(!ot||it&&8<it&&it<=11),st=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=(s&&(it=s&&((W="oninput"in document)||((Ve=document.createElement("div")).setAttribute("oninput","return;"),W="function"==typeof Ve.oninput),W),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}),_t=(s&&"documentMode"in document&&document.documentMode<=11),gt=null,mt=null,vt=null,bt=!1,yt={animationend:Or("Animation","AnimationEnd"),animationiteration:Or("Animation","AnimationIteration"),animationstart:Or("Animation","AnimationStart"),transitionend:Or("Transition","TransitionEnd")},wt={},xt={},kt=(s&&(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"),$t=Tr("animationstart"),Ot=Tr("transitionend"),Tt=new Map,Et="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(" "),Nt=0;Nt<Et.length;Nt++){var Pt=Et[Nt];Er(Pt.toLowerCase(),"on"+(Pt[0].toUpperCase()+Pt.slice(1)))}Er(kt,"onAnimationEnd"),Er(St,"onAnimationIteration"),Er($t,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(Ot,"onTransitionEnd"),Uo("onMouseEnter",["mouseout","mouseover"]),Uo("onMouseLeave",["mouseout","mouseover"]),Uo("onPointerEnter",["pointerout","pointerover"]),Uo("onPointerLeave",["pointerout","pointerover"]),Yo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ct="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(" "),Mt=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ct)),At="_reactListening"+Math.random().toString(36).slice(2),Lt=/\r\n?/g,Dt=/\u0000|\uFFFD/g,It=null,Ht=null,Rt="function"==typeof setTimeout?setTimeout:void 0,Ft="function"==typeof clearTimeout?clearTimeout:void 0,zt="function"==typeof Promise?Promise:void 0,Vt="function"==typeof queueMicrotask?queueMicrotask:void 0!==zt?function(e){return zt.resolve(null).then(e).catch(jr)}:Rt,Yt="__reactFiber$"+(Ve=Math.random().toString(36).slice(2)),Ut="__reactProps$"+Ve,jt="__reactContainer$"+Ve,Wt="__reactEvents$"+Ve,Bt="__reactListeners$"+Ve,Gt="__reactHandles$"+Ve,qt=[],Qt=-1,Xt={},Zt=Kr(Xt),Kt=Kr(!1),Jt=Xt,en=null,tn=!1,nn=!1,on=[],rn=0,an=null,sn=0,ln=[],cn=0,un=null,hn=1,dn="",pn=null,fn=null,_n=!1,gn=null,mn=o.ReactCurrentBatchConfig,vn=Oa(!0),bn=Oa(!1),yn=Kr(null),wn=null,xn=null,kn=null,Sn=null,$n=!1,On={},Tn=Kr(On),En=Kr(On),Nn=Kr(On),Pn=Kr(0),Cn=[],Mn=o.ReactCurrentDispatcher,An=o.ReactCurrentBatchConfig,Ln=0,Dn=null,In=null,Hn=null,Rn=!1,Fn=!1,zn=0,Vn=0,Yn={readContext:Ca,useCallback:Xa,useContext:Xa,useEffect:Xa,useImperativeHandle:Xa,useInsertionEffect:Xa,useLayoutEffect:Xa,useMemo:Xa,useReducer:Xa,useRef:Xa,useState:Xa,useDebugValue:Xa,useDeferredValue:Xa,useTransition:Xa,useMutableSource:Xa,useSyncExternalStore:Xa,useId:Xa,unstable_isNewReconciler:!1},Un={readContext:Ca,useCallback:function(e,t){return es().memoizedState=[e,void 0===t?null:t],e},useContext:Ca,useEffect:ms,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,_s(4194308,4,ws.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _s(4194308,4,e,t)},useInsertionEffect:function(e,t){return _s(4,2,e,t)},useMemo:function(e,t){var n=es();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=es();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=Pl(e);n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Es(e)?Ns(t,n):null!==(n=Aa(e,t,n,o))&&(Cl(n,e,o,Nl()),Ps(n,t,o))}.bind(null,Dn,e),[o.memoizedState,e]},useRef:function(e){return es().memoizedState={current:e}},useState:ds,useDebugValue:ks,useDeferredValue:function(e){return es().memoizedState=e},useTransition:function(){var e=(t=ds(!1))[0],t=function(e,t){var n=ke,o=(ke=0!==n&&n<4?n:4,e(!0),An.transition);An.transition={};try{e(!1),t()}finally{ke=n,An.transition=o}}.bind(null,t[1]);return[e,es().memoizedState=t]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Dn,i=es();if(_n){if(void 0===n)throw Error(Vo(407));n=n()}else{if(n=t(),null===fo)throw Error(Vo(349));!(30&Ln)&&ss(o,t,n)}var r={value:i.memoizedState=n,getSnapshot:t};return ms(cs.bind(null,o,i.queue=r,e),[e]),o.flags|=2048,ps(9,ls.bind(null,o,r,n,t),void 0,null),n},useId:function(){var e,t=es(),n=fo.identifierPrefix;return _n?(e=dn,n=":"+n+"R"+(e=(hn&~(1<<32-ve(hn)-1)).toString(32)+e),0<(e=zn++)&&(n+="H"+e.toString(32)),n+=":"):n=":"+n+"r"+(e=Vn++).toString(32)+":",t.memoizedState=n},unstable_isNewReconciler:!1},jn={readContext:Ca,useCallback:Ss,useContext:Ca,useEffect:vs,useImperativeHandle:xs,useInsertionEffect:bs,useLayoutEffect:ys,useMemo:$s,useReducer:os,useRef:fs,useState:function(){return os(ns)},useDebugValue:ks,useDeferredValue:function(e){return Os(ts(),In.memoizedState,e)},useTransition:function(){return[os(ns)[0],ts().memoizedState]},useMutableSource:rs,useSyncExternalStore:as,useId:Ts,unstable_isNewReconciler:!1},Wn={readContext:Ca,useCallback:Ss,useContext:Ca,useEffect:vs,useImperativeHandle:xs,useInsertionEffect:bs,useLayoutEffect:ys,useMemo:$s,useReducer:is,useRef:fs,useState:function(){return is(ns)},useDebugValue:ks,useDeferredValue:function(e){var t=ts();return null===In?t.memoizedState=e:Os(t,In.memoizedState,e)},useTransition:function(){return[is(ns)[0],ts().memoizedState]},useMutableSource:rs,useSyncExternalStore:as,useId:Ts,unstable_isNewReconciler:!1},Bn={isMounted:function(e){return!!(e=e._reactInternals)&&Ni(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=Nl(),i=Pl(e),r=Ha(o,i);r.payload=t,null!=n&&(r.callback=n),null!==(t=Ra(e,r,i))&&(Cl(t,e,i,o),Fa(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=Nl(),i=Pl(e),r=Ha(o,i);r.tag=1,r.payload=t,null!=n&&(r.callback=n),null!==(t=Ra(e,r,i))&&(Cl(t,e,i,o),Fa(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nl(),o=Pl(e),i=Ha(n,o);i.tag=2,null!=t&&(i.callback=t),null!==(t=Ra(e,i,o))&&(Cl(t,e,o,n),Fa(t,e,o))}},Gn="function"==typeof WeakMap?WeakMap:Map,qn=o.ReactCurrentOwner,Qn=!1,Xn={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,Ua(Tn.current);var r,s=null;switch(n){case"input":i=ni(e,i),o=ni(e,o),s=[];break;case"select":i=M({},i,{value:void 0}),o=M({},o,{value:void 0}),s=[];break;case"textarea":i=ci(e,i),o=ci(e,o),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof o.onClick&&(e.onclick=Yr)}for(u in vi(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&&(a.hasOwnProperty(u)?s=s||[]:(s=s||[]).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||(s=s||[]).push(u,n),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Cr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(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,ao=null,so=!1,lo=Math.ceil,co=o.ReactCurrentDispatcher,uo=o.ReactCurrentOwner,ho=o.ReactCurrentBatchConfig,po=0,fo=null,_o=null,go=0,mo=0,vo=Kr(0),bo=0,yo=null,wo=0,xo=0,ko=0,So=null,$o=null,Oo=0,To=1/0,Eo=null,No=!1,Po=null,Co=null,Mo=!1,Ao=null,Lo=0,Do=0,Io=null,Ho=-1,Ro=0,Fo=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Kt.current)Qn=!0;else{if(0==(e.lanes&n)&&!(128&t.flags)){Qn=!1;var o=e,i=t,r=n;switch(i.tag){case 3:el(i),wa();break;case 5:Ba(i);break;case 1:na(i.type)&&aa(i);break;case 4:ja(i,i.stateNode.containerInfo);break;case 10:var a=i.type._context,s=i.memoizedProps.value;ea(yn,a._currentValue),a._currentValue=s;break;case 13:if(null!==(a=i.memoizedState))return null!==a.dehydrated?(ea(Pn,1&Pn.current),i.flags|=128,null):0!=(r&i.child.childLanes)?ol(o,i,r):(ea(Pn,1&Pn.current),null!==(o=ul(o,i,r))?o.sibling:null);ea(Pn,1&Pn.current);break;case 19:if(a=0!=(r&i.childLanes),128&o.flags){if(a)return ll(o,i,r);i.flags|=128}if(null!==(s=i.memoizedState)&&(s.rendering=null,s.tail=null,s.lastEffect=null),ea(Pn,Pn.current),a)break;return null;case 22:case 23:return i.lanes=0,Qs(o,i,r)}return ul(o,i,r)}Qn=!!(131072&e.flags)}else Qn=!1,_n&&1048576&t.flags&&ha(t,sn,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type,c=(cl(e,t),e=t.pendingProps,ta(t,Zt.current)),u=(Pa(t,n),c=Ka(null,t,l,e,c,n),Ja());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,na(l)?(u=!0,aa(t)):u=!1,t.memoizedState=null!=c.state?c.state:null,Da(t),c.updater=Bn,Is((t.stateNode=c)._reactInternals=t,l,e,n),Js(null,t,l,!0,u,n)):(t.tag=0,_n&&u&&da(t),Ws(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)===$)return 11;if(e===E)return 14}return 2})(l),e=Cs(l,e),c){case 0:t=Zs(null,t,l,e,n);break e;case 1:t=Ks(null,t,l,e,n);break e;case 11:t=Bs(null,t,l,e,n);break e;case 14:t=Gs(null,t,l,Cs(l.type,e),n);break e}throw Error(Vo(306,l,""))}return t;case 0:return l=t.type,c=t.pendingProps,Zs(e,t,l,c=t.elementType===l?c:Cs(l,c),n);case 1:return l=t.type,c=t.pendingProps,Ks(e,t,l,c=t.elementType===l?c:Cs(l,c),n);case 3:e:{if(el(t),null===e)throw Error(Vo(387));l=t.pendingProps,c=(u=t.memoizedState).element,Ia(e,t),Va(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=Hs(Error(Vo(423)),t));break e}if(l!==c){t=tl(e,t,l,n,c=Hs(Error(Vo(424)),t));break e}for(fn=Br(t.stateNode.containerInfo.firstChild),_n=!0,n=bn(pn=t,gn=null,l,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(wa(),l===c){t=ul(e,t,n);break e}Ws(e,t,l,n)}t=t.child}return t;case 5:return Ba(t),null===e&&ma(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),Xs(e,t),Ws(e,t,f,n),t.child;case 6:return null===e&&ma(t),null;case 13:return ol(e,t,n);case 4:return ja(t,t.stateNode.containerInfo),l=t.pendingProps,null===e?t.child=vn(t,null,l,n):Ws(e,t,l,n),t.child;case 11:return l=t.type,c=t.pendingProps,Bs(e,t,l,c=t.elementType===l?c:Cs(l,c),n);case 7:return Ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ws(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,ea(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,_=h.firstContext;null!==_;){if(_.context===l){1===u.tag&&((_=Ha(-1,n&-n)).tag=2,null!==(d=u.updateQueue))&&(null===(p=(d=d.shared).pending)?_.next=_:(_.next=p.next,p.next=_),d.pending=_),u.lanes|=n,null!==(_=u.alternate)&&(_.lanes|=n),Na(u.return,n,t),h.lanes|=n;break}_=_.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(Vo(341));f.lanes|=n,null!==(h=f.alternate)&&(h.lanes|=n),Na(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}Ws(e,t,c.children,n),t=t.child}return t;case 9:return c=t.type,l=t.pendingProps.children,Pa(t,n),l=l(c=Ca(c)),t.flags|=1,Ws(e,t,l,n),t.child;case 14:return c=Cs(l=t.type,t.pendingProps),Gs(e,t,l,c=Cs(l.type,c),n);case 15:return qs(e,t,t.type,t.pendingProps,n);case 17:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:Cs(l,c),cl(e,t),t.tag=1,na(l)?(e=!0,aa(t)):e=!1,Pa(t,n),Ls(t,l,c),Is(t,l,c,n),Js(null,t,l,!0,e,n);case 19:return ll(e,t,n);case 22:return Qs(e,t,n)}throw Error(Vo(156,t.tag))},zo="function"==typeof reportError?reportError:function(e){console.error(e)};W=(vc.prototype.render=mc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Vo(409));pc(e,t,null,null)},vc.prototype.unmount=mc.prototype.unmount=function(){var e,t=this._internalRoot;null!==t&&(this._internalRoot=null,e=t.containerInfo,Fl(function(){pc(null,t,null,null)}),e[jt]=null)},vc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Q();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ce.length&&0!==t&&t<Ce[n].priority;n++);Ce.splice(n,0,e),0===n&&Ui(e)}},B=function(e){switch(e.tag){case 3:var t,n=e.stateNode;n.current.memoizedState.isDehydrated&&0!==(t=Ai(n.pendingLanes))&&(Fi(n,1|t),Ml(n,ce()),!(6&po))&&(To=ce()+500,ca());break;case 13:Fl(function(){var t,n=La(e,1);null!==n&&(t=Nl(),Cl(n,e,1,t))}),gc(e,1)}},G=function(e){var t;13===e.tag&&(null!==(t=La(e,134217728))&&Cl(t,e,134217728,Nl()),gc(e,134217728))},q=function(e){var t,n;13===e.tag&&(null!==(n=La(e,t=Pl(e)))&&Cl(n,e,t,Nl()),gc(e,t))},Q=function(){return ke},X=function(e,t){var n=ke;try{return ke=e,t()}finally{ke=n}},$i=Fl,{usingClientEntryPoint:!(z=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(Vo(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:[Qr,Xr,Zr,xi,ki,Si=Rl]}),s={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=Mi(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__&&!(Ve=__REACT_DEVTOOLS_GLOBAL_HOOK__).isDisabled&&Ve.supportsFiber)try{ge=Ve.inject(s),me=Ve}catch(W){}b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,b.createPortal=function(e,t){if(bc(t))return function(e,t,n,o){return{$$typeof:m,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(Vo(200))},b.createRoot=function(e,t){var n,o,i;if(bc(e))return n=!1,o="",i=zo,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[jt]=t.current,Ar(8===e.nodeType?e.parentNode:e),new mc(t);throw Error(Vo(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(Vo(188));throw e=Object.keys(e).join(","),Error(Vo(268,e))}e=null===(e=Mi(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(Vo(200))},b.hydrateRoot=function(e,t,n){if(!bc(e))throw Error(Vo(405));var o=null!=n&&n.hydratedSources||null,i=!1,r="",a=zo;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError)&&(a=n.onRecoverableError),t=dc(t,null,e,1,null!=n?n:null,i,0,r,a),e[jt]=t.current,Ar(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 vc(t)},b.render=function(e,t,n){if(yc(t))return xc(null,e,t,!1,n);throw Error(Vo(200))},b.unmountComponentAtNode=function(e){if(yc(e))return!!e._reactRootContainer&&(Fl(function(){xc(null,null,e,!1,function(){e._reactRootContainer=null,e[jt]=null})}),!0);throw Error(Vo(40))},b.unstable_batchedUpdates=Rl,b.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!yc(n))throw Error(Vo(200));if(null==e||void 0===e._reactInternals)throw Error(Vo(38));return xc(e,t,n,!1,o)},b.version="18.3.1-next-f1338f8080-20240426"}return b;function Vo(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 Yo(e,t){Uo(e,t),Uo(e+"Capture",t)}function Uo(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}function jo(e,t,n,o,i,r,a){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=a}function Wo(e){return e[1].toUpperCase()}function Bo(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=C&&e[C]||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 Qo(e,t){if(!e||A)return"";A=!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"),a=o.stack.split("\n"),s=r.length-1,l=a.length-1;1<=s&&0<=l&&r[s]!==a[l];)l--;for(;1<=s&&0<=l;s--,l--)if(r[s]!==a[l]){if(1!==s||1!==l)do{if(s--,--l<0||r[s]!==a[l])return i="\n"+r[s].replace(" at new "," at "),i=e.displayName&&i.includes("<anonymous>")?i.replace("<anonymous>",e.displayName):i}while(1<=s&&0<=l);break}}}finally{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qo(e):""}function Xo(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 v:return"Fragment";case m:return"Portal";case w:return"Profiler";case y:return"StrictMode";case O: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 $:var n=t.render;return(t=t.displayName)||(""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef");case E:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case N: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 M({},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)&&Bo(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")?si(e,t.type,n):t.hasOwnProperty("defaultValue")&&si(e,t.type,Zo(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ai(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 si(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(Vo(91));return M({},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(Vo(92));if(L(n)){if(1<n.length)throw Error(Vo(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 _i(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 gi(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 mi(e,t){for(var n in e=e.style,t){var o,i;t.hasOwnProperty(n)&&(o=0===n.indexOf("--"),i=gi(n,t[n],o),"float"===n&&(n="cssFloat"),o?e.setProperty(n,i):e[n]=i)}}function vi(e,t){if(t){if(R[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Vo(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Vo(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Vo(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Vo(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=Qr(e)){if("function"!=typeof z)throw Error(Vo(280));var t=e.stateNode;t&&(t=Zr(t),z(e.stateNode,e.type,t))}}function xi(e){V?Y?Y.push(e):Y=[e]:V=e}function ki(){if(V){var e=V,t=Y;if(Y=V=null,wi(e),t)for(e=0;e<t.length;e++)wi(t[e])}}function Si(e,t){return e(t)}function $i(){}function Oi(e,t,n){if(U)return e(t,n);U=!0;try{Si(e,t,n)}finally{U=!1,null===V&&null===Y||($i(),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(Vo(231,t,typeof n));return n}function Ei(e,t,n,o,i,r,a,s,l){ee=!1,te=null,function(e,t,n,o,i,r,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}.apply(ie,arguments)}function Ni(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 Pi(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 Ci(e){if(Ni(e)!==e)throw Error(Vo(188))}function Mi(e){return null!==(e=(e=>{var t=e.alternate;if(!t){if(null===(t=Ni(e)))throw Error(Vo(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 Ci(i),e;if(r===o)return Ci(i),t;r=r.sibling}throw Error(Vo(188))}if(n.return!==o.return)n=i,o=r;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,o=r;break}if(s===o){a=!0,o=i,n=r;break}s=s.sibling}if(!a){for(s=r.child;s;){if(s===n){a=!0,n=r,o=i;break}if(s===o){a=!0,o=r,n=i;break}s=s.sibling}if(!a)throw Error(Vo(189))}}if(n.alternate!==o)throw Error(Vo(190))}}if(3!==n.tag)throw Error(Vo(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 Ai(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,a=e.pingedLanes,s=268435455&n;if(0!=s?0!=(o=s&~r)?i=Ai(o):0!==(a&=s)&&(i=Ai(a)):0!=(s=n&~r)?i=Ai(s):0!==a&&(i=Ai(a)),0===i)return 0;if(0!==t&&t!==i&&0==(t&r)&&((a=t&-t)<=(r=i&-i)||16===r&&4194240&a))return t;if(!!(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)i|=e[n=31-ve(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 Hi(e){for(var t=[],n=0;n<31;n++)t.push(e);return t}function Ri(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ve(t)]=n}function Fi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-ve(n),i=1<<o;i&t|e[o]&t&&(e[o]|=t),n&=~i}}function zi(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}function Vi(e,t){switch(e){case"focusin":case"focusout":Oe=null;break;case"dragenter":case"dragleave":Te=null;break;case"mouseover":case"mouseout":Ee=null;break;case"pointerover":case"pointerout":Ne.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pe.delete(t.pointerId)}}function Yi(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=Qr(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=Ni(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Pi(n)))return e.blockedOn=t,void X(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 ji(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=Qr(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 Wi(e,t,n){ji(e)&&n.delete(t)}function Bi(){Se=!1,null!==Oe&&ji(Oe)&&(Oe=null),null!==Te&&ji(Te)&&(Te=null),null!==Ee&&ji(Ee)&&(Ee=null),Ne.forEach(Wi),Pe.forEach(Wi)}function Gi(e,t){e.blockedOn===t&&(e.blockedOn=null,Se||(Se=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bi)))}function qi(e){function t(t){return Gi(t,e)}if(0<$e.length){Gi($e[0],e);for(var n=1;n<$e.length;n++){var o=$e[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Oe&&Gi(Oe,e),null!==Te&&Gi(Te,e),null!==Ee&&Gi(Ee,e),Ne.forEach(t),Pe.forEach(t),n=0;n<Ce.length;n++)(o=Ce[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Ce.length&&null===(n=Ce[0]).blockedOn;)Ui(n),null===n.blockedOn&&Ce.shift()}function Qi(e,t,n,o){var i=ke,r=Ae.transition;Ae.transition=null;try{ke=1,Zi(e,t,n,o)}finally{ke=i,Ae.transition=r}}function Xi(e,t,n,o){var i=ke,r=Ae.transition;Ae.transition=null;try{ke=4,Zi(e,t,n,o)}finally{ke=i,Ae.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),Vi(e,o);else if(((e,t,n,o,i)=>{switch(t){case"focusin":return Oe=Yi(Oe,e,t,n,o,i),1;case"dragenter":return Te=Yi(Te,e,t,n,o,i),1;case"mouseover":return Ee=Yi(Ee,e,t,n,o,i),1;case"pointerover":var r=i.pointerId;return Ne.set(r,Yi(Ne.get(r)||null,e,t,n,o,i)),1;case"gotpointercapture":return r=i.pointerId,Pe.set(r,Yi(Pe.get(r)||null,e,t,n,o,i)),1}})(i,e,t,n,o))o.stopPropagation();else if(Vi(e,o),4&t&&-1<Me.indexOf(e)){for(;null!==i;){var r=Qr(i);if(null!==r&&B(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=Ni(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Pi(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 _e:return 536870912;default:return 16}default:return 16}}function er(){if(Re)return Re;for(var e=He,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,a=1;a<=r&&e[t-a]===n[o-a];a++);return Re=n.slice(i,1<a?1-a: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 a in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=r,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nr:or,this.isPropagationStopped=or,this}return M(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=Xe[e])&&!!t[e]}function ar(){return rr}function sr(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=Hr(t,"onChange")).length&&(n=new Fe("onChange","change",null,n,o),e.push({event:n,listeners:t}))}function hr(e){Pr(e,0)}function dr(e){if(ei(Xr(e)))return e}function pr(e,t){if("change"===e)return t}function fr(){ht&&(ht.detachEvent("onpropertychange",_r),dt=ht=null)}function _r(e){var t;"value"===e.propertyName&&dr(dt)&&(ur(t=[],dt,e,yi(e)),Oi(hr,t))}function gr(e,t,n){"focusin"===e?(fr(),dt=n,(ht=t).attachEvent("onpropertychange",_r)):"focusout"===e&&fr()}function mr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return dr(dt)}function vr(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 $r(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;bt||null==gt||gt!==ti(o)||(o="selectionStart"in(o=gt)&&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},vt&&yr(vt,o))||(vt=o,0<(o=Hr(mt,"onSelect")).length&&(t=new Fe("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=gt))}function Or(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 Er(e,t){Tt.set(e,t),Yo(t,[e])}function Nr(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(){var e;Ei.apply(this,arguments),ee&&(e=te,ee=!1,te=null,ne||(ne=!0,oe=e))}(o,t,void 0,e),e.currentTarget=null}function Pr(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 a=i.length-1;0<=a;a--){var s=(c=i[a]).instance,l=c.currentTarget,c=c.listener;if(s!==r&&o.isPropagationStopped())break e;Nr(o,c,l),r=s}else for(a=0;a<i.length;a++){if(s=(c=i[a]).instance,l=c.currentTarget,c=c.listener,s!==r&&o.isPropagationStopped())break e;Nr(o,c,l),r=s}}}if(ne)throw e=oe,ne=!1,oe=null,e}function Cr(e,t){var n=t[Wt],o=e+"__bubble";(n=void 0===n?t[Wt]=new Set:n).has(o)||(Lr(t,e,2,!1),n.add(o))}function Mr(e,t,n){var o=0;t&&(o|=4),Lr(n,e,o,t)}function Ar(e){var t;e[At]||(e[At]=!0,r.forEach(function(t){"selectionchange"!==t&&(Mt.has(t)||Mr(t,!1,e),Mr(t,!0,e))}),null===(t=9===e.nodeType?e:e.ownerDocument))||t[At]||Mr("selectionchange",!(t[At]=!0),t)}function Lr(e,t,n,o){switch(Ji(t)){case 1:var i=Qi;break;case 4:i=Xi;break;default:i=Zi}n=i.bind(null,t,n,e),i=!(!j||"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 a=o.tag;if(3===a||4===a){var s=o.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=o.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=qr(s)))return;if(5===(l=a.tag)||6===l){o=r=a;continue e}s=s.parentNode}}o=o.return}Oi(function(){var o,i,a,s=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=je;break;case"focusout":d="blur",h=je;break;case"beforeblur":case"afterblur":h=je;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=Ye;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 $t:h=We;break;case Ot:h=et;break;case"scroll":h=ze;break;case"wheel":h=tt;break;case"copy":case"cut":case"paste":h=Be;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ke}for(var p=!(_=!!(4&t))&&"scroll"===e,f=_?null!==u?u+"Capture":null:u,_=[],g=s;null!==g;){var m,v=(m=g).stateNode;if(5===m.tag&&null!==v&&(m=v,null!==f)&&null!=(v=Ti(g,f))&&_.push(Ir(g,v,m)),p)break;g=g.return}0<_.length&&(u=new h(u,d,null,n,l),c.push({event:u,listeners:_}))}}if(!(7&t)){if(h="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===F||!(d=n.relatedTarget||n.fromElement)||!qr(d)&&!d[jt])&&(h||u)&&(u=l.window===l?l:(u=l.ownerDocument)?u.defaultView||u.parentWindow:window,h?(h=s,null!==(d=(d=n.relatedTarget||n.toElement)?qr(d):null)&&(d!==(p=Ni(d))||5!==d.tag&&6!==d.tag)&&(d=null)):(h=null,d=s),h!==d)){if(_=Ye,v="onMouseLeave",f="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(_=Ke,v="onPointerLeave",f="onPointerEnter",g="pointer"),p=null==h?u:Xr(h),m=null==d?u:Xr(d),(u=new _(v,g+"leave",h,n,l)).target=p,u.relatedTarget=m,v=null,qr(l)===s&&((_=new _(f,g+"enter",d,n,l)).target=m,_.relatedTarget=p,v=_),p=v,h&&d)e:{for(f=d,g=0,m=_=h;m;m=Rr(m))g++;for(m=0,v=f;v;v=Rr(v))m++;for(;0<g-m;)_=Rr(_),g--;for(;0<m-g;)f=Rr(f),m--;for(;g--;){if(_===f||null!==f&&_===f.alternate)break e;_=Rr(_),f=Rr(f)}_=null}else _=null;null!==h&&Fr(c,u,h,_,!1),null!==d&&null!==p&&Fr(c,p,d,_,!0)}switch("select"===(h=(u=s?Xr(s):window).nodeName&&u.nodeName.toLowerCase())||"input"===h&&"file"===u.type?o=pr:cr(u)?pt?o=br:(o=mr,i=gr):!(h=u.nodeName)||"input"!==h.toLowerCase()||"checkbox"!==u.type&&"radio"!==u.type||(o=vr),(o=o&&o(e,s))?ur(c,o,n,l):(i&&i(e,u,s),"focusout"===e&&(i=u._wrapperState)&&i.controlled&&"number"===u.type&&si(u,"number",u.value)),i=s?Xr(s):window,e){case"focusin":!cr(i)&&"true"!==i.contentEditable||(gt=i,mt=s,vt=null);break;case"focusout":vt=mt=gt=null;break;case"mousedown":bt=!0;break;case"contextmenu":case"mouseup":case"dragend":bt=!1,$r(c,n,l);break;case"selectionchange":if(_t)break;case"keydown":case"keyup":$r(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?sr(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(at&&"ko"!==n.locale&&(ct||"onCompositionStart"!==b?"onCompositionEnd"===b&&ct&&(a=er()):(He="value"in(Ie=l)?Ie.value:Ie.textContent,ct=!0)),0<(i=Hr(s,b)).length)&&(b=new Ge(b,e,null,n,l),c.push({event:b,listeners:i}),a||null!==(a=lr(n)))&&(b.data=a),(a=(rt?(e,t)=>{switch(e){case"compositionend":return lr(t);case"keypress":return 32!==t.which?null:(lt=!0,st);case"textInput":return(e=t.data)===st&<?null:e;default:return null}}:(e,t)=>{if(ct)return"compositionend"===e||!ot&&sr(e,t)?(e=er(),Re=He=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 at&&"ko"!==t.locale?null:t.data}})(e,n))&&0<(s=Hr(s,"onBeforeInput")).length&&(l=new Ge("onBeforeInput","beforeinput",null,n,l),c.push({event:l,listeners:s}),l.data=a)}Pr(c,t)})}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(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 Rr(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,a=[];null!==n&&n!==o;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===o)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ti(n,r))&&a.unshift(Ir(n,l,s)):null!=(l=Ti(n,r))&&a.push(Ir(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function zr(e){return("string"==typeof e?e:""+e).replace(Lt,"\n").replace(Dt,"")}function Vr(e,t,n){if(t=zr(t),zr(e)!==t&&n)throw Error(Vo(425))}function Yr(){}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 jr(e){setTimeout(function(){throw e})}function Wr(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 Br(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[Yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jt]||n[Yt]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[Yt])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function Qr(e){return!(e=e[Yt]||e[jt])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Xr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Vo(33))}function Zr(e){return e[Ut]||null}function Kr(e){return{current:e}}function Jr(e){Qt<0||(e.current=qt[Qt],qt[Qt]=null,Qt--)}function ea(e,t){qt[++Qt]=e.current,e.current=t}function ta(e,t){var n=e.type.contextTypes;if(!n)return Xt;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 na(e){return null!=e.childContextTypes}function oa(){Jr(Kt),Jr(Zt)}function ia(e,t,n){if(Zt.current!==Xt)throw Error(Vo(168));ea(Zt,t),ea(Kt,n)}function ra(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(Vo(108,Xo(e)||"Unknown",o));return M({},n,i)}function aa(e){e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xt,Jt=Zt.current,ea(Zt,e),ea(Kt,Kt.current)}function sa(e,t,n){var o=e.stateNode;if(!o)throw Error(Vo(169));n?(e=ra(e,t,Jt),o.__reactInternalMemoizedMergedChildContext=e,Jr(Kt),Jr(Zt),ea(Zt,e)):Jr(Kt),ea(Kt,n)}function la(e){null===en?en=[e]:en.push(e)}function ca(){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,ca),t}finally{ke=t,nn=!1}}return null}function ua(e,t){on[rn++]=sn,on[rn++]=an,an=e,sn=t}function ha(e,t,n){ln[cn++]=hn,ln[cn++]=dn,ln[cn++]=un,un=e;var o,i=hn,r=(e=dn,32-ve(i)-1),a=(i&=~(1<<r),n+=1,32-ve(t)+r);dn=30<a?(a=(i&(1<<(o=r-r%5))-1).toString(32),i>>=o,r-=o,hn=1<<32-ve(t)+r|n<<r|i,a+e):(hn=1<<a|n<<r|i,e)}function da(e){null!==e.return&&(ua(e,1),ha(e,1,0))}function pa(e){for(;e===an;)an=on[--rn],on[rn]=null,sn=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 fa(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 _a(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=Br(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 ga(e){return!(!(1&e.mode)||128&e.flags)}function ma(e){if(_n)if(fn){var t=fn;if(!_a(e,fn)){if(ga(e))throw Error(Vo(418));var n=Br(t.nextSibling),o=pn;n&&_a(e,n)?fa(o,t):(e.flags=-4097&e.flags|2,_n=!1,pn=e)}}else{if(ga(e))throw Error(Vo(418));e.flags=-4097&e.flags|2,_n=!1,pn=e}}function va(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;pn=e}function ba(e){if(e!==pn)return!1;if(!_n)return va(e),!(_n=!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(ga(e))throw ya(),Error(Vo(418));for(;t;)fa(e,t),t=Br(t.nextSibling)}if(va(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Vo(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){fn=Br(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}fn=null}}else fn=pn?Br(e.stateNode.nextSibling):null;return!0}function ya(){for(var e=fn;e;)e=Br(e.nextSibling)}function wa(){fn=pn=null,_n=!1}function xa(e){null===gn?gn=[e]:gn.push(e)}function ka(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(Vo(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(Vo(147,e))}if("string"!=typeof e)throw Error(Vo(284));if(!n._owner)throw Error(Vo(290,e))}return e}function Sa(e,t){throw e=Object.prototype.toString.call(t),Error(Vo(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $a(e){return(0,e._init)(e._payload)}function Oa(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 a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,o){return null===t||6!==t.tag?(t=sc(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===v?u(e,t,n.props.children,o,n.key):(null!==t&&(t.elementType===r||"object"==typeof r&&null!==r&&r.$$typeof===N&&$a(r)===t.type)?(o=i(t,n.props)).ref=ka(0,t,n):(o=ic(n.type,n.key,n.props,null,e.mode,o)).ref=ka(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=sc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case g:return(n=ic(t.type,t.key,t.props,null,e.mode,n)).ref=ka(0,null,t),n.return=e,n;case m:return(t=lc(t,e.mode,n)).return=e,t;case N: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;Sa(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:s(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,o):null;case m:return n.key===i?c(e,t,n,o):null;case N: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);Sa(0,n)}return null}function p(e,t,n,o,i){if("string"==typeof o&&""!==o||"number"==typeof o)return s(t,e=e.get(n)||null,""+o,i);if("object"==typeof o&&null!==o){switch(o.$$typeof){case g:return l(t,e=e.get(null===o.key?n:o.key)||null,o,i);case m:return c(t,e=e.get(null===o.key?n:o.key)||null,o,i);case N: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);Sa(0,o)}return null}return function s(l,c,u,f){if("object"==typeof(u="object"==typeof u&&null!==u&&u.type===v&&null===u.key?u.props.children:u)&&null!==u){switch(u.$$typeof){case g:e:{for(var _=u.key,b=c;null!==b;){if(b.key===_){if((_=u.type)===v){if(7===b.tag){n(l,b.sibling),(c=i(b,u.props.children)).return=l,l=c;break e}}else if(b.elementType===_||"object"==typeof _&&null!==_&&_.$$typeof===N&&$a(_)===b.type){n(l,b.sibling),(c=i(b,u.props)).ref=ka(0,b,u),c.return=l,l=c;break e}n(l,b);break}t(l,b),b=b.sibling}l=u.type===v?((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=ka(0,c,u),f.return=l,f)}return a(l);case m: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 a(l);case N:return s(l,c,(b=u._init)(u._payload),f)}if(L(u)){for(var y=l,w=c,x=u,k=f,S=null,$=null,O=w,T=w=0,E=null;null!==O&&T<x.length;T++){O.index>T?(E=O,O=null):E=O.sibling;var P=d(y,O,x[T],k);if(null===P){null===O&&(O=E);break}e&&O&&null===P.alternate&&t(y,O),w=r(P,w,T),null===$?S=P:$.sibling=P,$=P,O=E}if(T===x.length)n(y,O);else if(null===O)for(;T<x.length;T++)null!==(O=h(y,x[T],k))&&(w=r(O,w,T),null===$?S=O:$.sibling=O,$=O);else{for(O=o(y,O);T<x.length;T++)null!==(E=p(O,y,T,x[T],k))&&(e&&null!==E.alternate&&O.delete(null===E.key?T:E.key),w=r(E,w,T),null===$?S=E:$.sibling=E,$=E);e&&O.forEach(function(e){return t(y,e)})}return _n&&ua(y,T),S}if(Go(u)){var C=l,M=c,A=u,D=f,I=Go(A);if("function"!=typeof I)throw Error(Vo(150));if(null==(A=I.call(A)))throw Error(Vo(151));for(var H=I=null,R=M,F=M=0,z=null,V=A.next();null!==R&&!V.done;F++,V=A.next()){R.index>F?(z=R,R=null):z=R.sibling;var Y=d(C,R,V.value,D);if(null===Y){null===R&&(R=z);break}e&&R&&null===Y.alternate&&t(C,R),M=r(Y,M,F),null===H?I=Y:H.sibling=Y,H=Y,R=z}if(V.done)n(C,R);else if(null===R)for(;!V.done;F++,V=A.next())null!==(V=h(C,V.value,D))&&(M=r(V,M,F),null===H?I=V:H.sibling=V,H=V);else{for(R=o(C,R);!V.done;F++,V=A.next())null!==(V=p(R,C,F,V.value,D))&&(e&&null!==V.alternate&&R.delete(null===V.key?F:V.key),M=r(V,M,F),null===H?I=V:H.sibling=V,H=V);e&&R.forEach(function(e){return t(C,e)})}return _n&&ua(C,F),I}Sa(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),sc(u,l.mode,f))).return=l,a(l=c)):n(l,c)}}function Ta(){kn=xn=wn=null}function Ea(e){var t=yn.current;Jr(yn),e._currentValue=t}function Na(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 Pa(e,t){(kn=xn=null)!==(e=(wn=e).dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Qn=!0),e.firstContext=null)}function Ca(e){var t=e._currentValue;if(kn!==e)if(e={context:e,memoizedValue:t,next:null},null===xn){if(null===wn)throw Error(Vo(308));xn=e,wn.dependencies={lanes:0,firstContext:e}}else xn=xn.next=e;return t}function Ma(e){null===Sn?Sn=[e]:Sn.push(e)}function Aa(e,t,n,o){var i=t.interleaved;return null===i?(n.next=n,Ma(t)):(n.next=i.next,i.next=n),t.interleaved=n,La(e,o)}function La(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 Da(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(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 Ha(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ra(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,Ma(i)):(t.next=o.next,o.next=t),i.interleaved=t),La(e,n))}function Fa(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 za(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 a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null}}while(null===r?i=r=a:r=r.next=a,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 Va(e,t,n,o){var i,r,a=e.updateQueue,s=($n=!1,a.firstBaseUpdate),l=a.lastBaseUpdate;if(null!==(h=a.shared.pending)&&(a.shared.pending=null,r=(i=h).next,(i.next=null)===l?s=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!==s){for(var c=a.baseState,u=(l=0,r=i=null),h=s;;){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,_=h;d=t,p=n;switch(_.tag){case 1:if("function"==typeof(f=_.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=_.payload)?f.call(p,c,d):f))break e;c=M({},c,d);break e;case 2:$n=!0}}null!==h.callback&&0!==h.lane&&(e.flags|=64,null===(d=a.effects)?a.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=a.shared.pending))break;h=(d=h).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===u&&(i=c),a.baseState=i,a.firstBaseUpdate=r,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved))for(a=t;l|=a.lane,(a=a.next)!==t;);else null===s&&(a.shared.lanes=0);wo|=l,e.lanes=l,e.memoizedState=c}}function Ya(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(Vo(191,i));i.call(o)}}}function Ua(e){if(e===On)throw Error(Vo(174));return e}function ja(e,t){switch(ea(Nn,t),ea(En,e),ea(Tn,On),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),ea(Tn,t)}function Wa(){Jr(Tn),Jr(En),Jr(Nn)}function Ba(e){Ua(Nn.current);var t=Ua(Tn.current),n=fi(t,e.type);t!==n&&(ea(En,e),ea(Tn,n))}function Ga(e){En.current===e&&(Jr(Tn),Jr(En))}function qa(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 Qa(){for(var e=0;e<Cn.length;e++)Cn[e]._workInProgressVersionPrimary=null;Cn.length=0}function Xa(){throw Error(Vo(321))}function Za(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 Ka(e,t,n,o,i,r){if(Ln=r,(Dn=t).memoizedState=null,t.updateQueue=null,t.lanes=0,Mn.current=null===e||null===e.memoizedState?Un:jn,e=n(o,i),Fn){r=0;do{if(Fn=!1,zn=0,25<=r)throw Error(Vo(301))}while(r+=1,Hn=In=null,t.updateQueue=null,Mn.current=Wn,e=n(o,i),Fn)}if(Mn.current=Yn,t=null!==In&&null!==In.next,Ln=0,Hn=In=Dn=null,Rn=!1,t)throw Error(Vo(300));return e}function Ja(){var e=0!==zn;return zn=0,e}function es(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Hn?Dn.memoizedState=Hn=e:Hn=Hn.next=e,Hn}function ts(){e=null===In?null!==(e=Dn.alternate)?e.memoizedState:null:In.next;var e,t=null===Hn?Dn.memoizedState:Hn.next;if(null!==t)Hn=t,In=e;else{if(null===e)throw Error(Vo(310));e={memoizedState:(In=e).memoizedState,baseState:In.baseState,baseQueue:In.baseQueue,queue:In.queue,next:null},null===Hn?Dn.memoizedState=Hn=e:Hn=Hn.next=e}return Hn}function ns(e,t){return"function"==typeof t?t(e):t}function os(e){var t=ts(),n=t.queue;if(null===n)throw Error(Vo(311));n.lastRenderedReducer=e;var o,i=(a=In).baseQueue;if(null!==(r=n.pending)&&(null!==i&&(o=i.next,i.next=r.next,r.next=o),a.baseQueue=i=r,n.pending=null),null!==i){var r=i.next,a=a.baseState,s=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}),a=c.hasEagerState?c.eagerState:e(a,c.action)):(u={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===l?(s=l=u,o=a):l=l.next=u,Dn.lanes|=h,wo|=h),null!==(c=c.next)&&c!==r);null===l?o=a:l.next=s,ft(a,t.memoizedState)||(Qn=!0),t.memoizedState=a,t.baseState=o,t.baseQueue=l,n.lastRenderedState=a}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 is(e){var t=ts(),n=t.queue;if(null===n)throw Error(Vo(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,r=t.memoizedState;if(null!==i){n.pending=null;for(var a=i=i.next;r=e(r,a.action),(a=a.next)!==i;);ft(r,t.memoizedState)||(Qn=!0),t.memoizedState=r,null===t.baseQueue&&(t.baseState=r),n.lastRenderedState=r}return[r,o]}function rs(){}function as(e,t){var n=Dn,o=ts(),i=t(),r=!ft(o.memoizedState,i);if(r&&(o.memoizedState=i,Qn=!0),o=o.queue,vs(cs.bind(null,n,o,e),[e]),o.getSnapshot!==t||r||null!==Hn&&1&Hn.memoizedState.tag){if(n.flags|=2048,ps(9,ls.bind(null,n,o,i,t),void 0,null),null===fo)throw Error(Vo(349));!(30&Ln)&&ss(n,t,i)}return i}function ss(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 ls(e,t,n,o){t.value=n,t.getSnapshot=o,us(t)&&hs(e)}function cs(e,t,n){return n(function(){us(t)&&hs(e)})}function us(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ft(e,n)}catch(e){return 1}}function hs(e){var t=La(e,1);null!==t&&Cl(t,e,1,-1)}function ds(e){var t=es();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(t.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:e}).dispatch=function(e,t,n){var o=Pl(e),i={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Es(e))Ns(t,i);else{var r=e.alternate;if(0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{var a,s=t.lastRenderedState,l=r(s,n);if(i.hasEagerState=!0,i.eagerState=l,ft(l,s))return null===(a=t.interleaved)?(i.next=i,Ma(t)):(i.next=a.next,a.next=i),void(t.interleaved=i)}catch(e){}null!==(n=Aa(e,t,i,o))&&(Cl(n,e,o,i=Nl()),Ps(n,t,o))}}.bind(null,Dn,e),[t.memoizedState,e]}function ps(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 fs(){return ts().memoizedState}function _s(e,t,n,o){var i=es();Dn.flags|=e,i.memoizedState=ps(1|t,n,void 0,void 0===o?null:o)}function gs(e,t,n,o){var i=ts(),r=void(o=void 0===o?null:o);if(null!==In){var a=In.memoizedState;r=a.destroy;if(null!==o&&Za(o,a.deps))return void(i.memoizedState=ps(t,n,r,o))}Dn.flags|=e,i.memoizedState=ps(1|t,n,r,o)}function ms(e,t){return _s(8390656,8,e,t)}function vs(e,t){return gs(2048,8,e,t)}function bs(e,t){return gs(4,2,e,t)}function ys(e,t){return gs(4,4,e,t)}function ws(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 xs(e,t,n){return n=null!=n?n.concat([e]):null,gs(4,4,ws.bind(null,t,e),n)}function ks(){}function Ss(e,t){var n=ts(),o=(t=void 0===t?null:t,n.memoizedState);return null!==o&&null!==t&&Za(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function $s(e,t){var n=ts(),o=(t=void 0===t?null:t,n.memoizedState);return null!==o&&null!==t&&Za(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Os(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,Qn=!0),e.memoizedState=n)}function Ts(){return ts().memoizedState}function Es(e){var t=e.alternate;return e===Dn||null!==t&&t===Dn}function Ns(e,t){Fn=Rn=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ps(e,t,n){var o;4194240&n&&(o=t.lanes,o&=e.pendingLanes,Fi(e,t.lanes=n|=o))}function Cs(e,t){if(e&&e.defaultProps)for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function Ms(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}function As(e,t,n,o,i,r,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,r,a):!(t.prototype&&t.prototype.isPureReactComponent&&yr(n,o)&&yr(i,r))}function Ls(e,t,n){var o=!1,i=Xt,r=t.contextType;t=new t(n,r="object"==typeof r&&null!==r?Ca(r):(i=na(t)?Jt:Zt.current,(o=null!=(o=t.contextTypes))?ta(e,i):Xt)),e.memoizedState=null!=t.state?t.state:null,t.updater=Bn,(e.stateNode=t)._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=r)}function Ds(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&&Bn.enqueueReplaceState(t,t.state,null)}function Is(e,t,n,o){var i=e.stateNode,r=(i.props=n,i.state=e.memoizedState,i.refs={},Da(e),t.contextType);"object"==typeof r&&null!==r?i.context=Ca(r):(r=na(t)?Jt:Zt.current,i.context=ta(e,r)),i.state=e.memoizedState,"function"==typeof(r=t.getDerivedStateFromProps)&&(Ms(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&&Bn.enqueueReplaceState(i,i.state,null),Va(e,n,i,o),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Hs(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 Qo(e.type,!1);case 11:return Qo(e.type.render,!1);case 1:return Qo(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 Rs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Fs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function zs(e,t,n){(n=Ha(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){No||(No=!0,Po=o),Fs(0,t)},n}function Vs(e,t,n){(n=Ha(-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(){Fs(0,t)}),e.stateNode))&&"function"==typeof e.componentDidCatch&&(n.callback=function(){Fs(0,t),"function"!=typeof i&&(null===Co?Co=new Set([this]):Co.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Ys(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=Nl(),e.pingedLanes|=e.suspendedLanes&n,fo===e&&(go&n)===n&&(4===bo||3===bo&&(130023424&go)===go&&ce()-Oo<500?Vl(e,0):ko|=n),Ml(e,t)}.bind(null,e,t,n),t.then(e,e))}function Us(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 js(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=Ha(-1,1)).tag=2,Ra(n,t,1))),n.lanes|=1);e.flags|=65536,e.lanes=i}function Ws(e,t,n,o){t.child=null===e?bn(t,null,n,o):vn(t,e.child,n,o)}function Bs(e,t,n,o,i){n=n.render;var r=t.ref;return Pa(t,i),o=Ka(e,t,n,o,r,i),n=Ja(),null===e||Qn?(_n&&n&&da(t),t.flags|=1,Ws(e,t,o,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ul(e,t,i))}function Gs(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,qs(e,t,r,o,i));if(r=e.child,0==(e.lanes&i)){var a=r.memoizedProps;if((n=null!==(n=n.compare)?n:yr)(a,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 qs(e,t,n,o,i){if(null!==e){var r=e.memoizedProps;if(yr(r,o)&&e.ref===t.ref){if(Qn=!1,t.pendingProps=o=r,0==(e.lanes&i))return t.lanes=e.lanes,ul(e,t,i);131072&e.flags&&(Qn=!0)}}return Zs(e,t,n,o,i)}function Qs(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,ea(vo,mo),mo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==r?r.baseLanes:n,ea(vo,mo),mo|=o}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ea(vo,mo),mo|=n;else null!==r?(o=r.baseLanes|n,t.memoizedState=null):o=n,ea(vo,mo),mo|=o;return Ws(e,t,i,n),t.child}function Xs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zs(e,t,n,o,i){var r=ta(t,na(n)?Jt:Zt.current);return Pa(t,i),n=Ka(e,t,n,o,r,i),o=Ja(),null===e||Qn?(_n&&o&&da(t),t.flags|=1,Ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ul(e,t,i))}function Ks(e,t,n,o,i){var r,a,s,l,c,u,h,d,p,f;return na(n)?(r=!0,aa(t)):r=!1,Pa(t,i),o=null===t.stateNode?(cl(e,t),Ls(t,n,o),Is(t,n,o,i),!0):null===e?((a=t.stateNode).props=s=t.memoizedProps,d=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Ca(l):ta(t,l=na(n)?Jt:Zt.current),(u="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||s===o&&d===l||Ds(0,a,o,l),$n=!1,a.state=h=t.memoizedState,Va(t,o,a,i),d=t.memoizedState,s!==o||h!==d||Kt.current||$n?("function"==typeof c&&(Ms(t,0,c,o),d=t.memoizedState),(s=$n||As(t,n,s,o,h,d,l))?(u||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=d),a.props=o,a.state=d,a.context=l,s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),!1)):(a=t.stateNode,Ia(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Cs(t.type,s),a.props=l,u=t.pendingProps,h=a.context,d="object"==typeof(d=n.contextType)&&null!==d?Ca(d):ta(t,d=na(n)?Jt:Zt.current),(c="function"==typeof(p=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||s===u&&h===d||Ds(0,a,o,d),$n=!1,a.state=h=t.memoizedState,Va(t,o,a,i),f=t.memoizedState,s!==u||h!==f||Kt.current||$n?("function"==typeof p&&(Ms(t,0,p,o),f=t.memoizedState),(l=$n||As(t,n,l,o,h,f,d)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(o,f,d),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(o,f,d)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),a.props=o,a.state=f,a.context=d,l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),!1)),Js(e,t,n,o,r,i)}function Js(e,t,n,o,i,r){Xs(e,t);var a=!!(128&t.flags);if(!o&&!a)return i&&sa(t,n,!1),ul(e,t,r);o=t.stateNode,qn.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&a?(t.child=vn(t,e.child,null,r),t.child=vn(t,null,s,r)):Ws(e,t,s,r),t.memoizedState=o.state,i&&sa(t,n,!0),t.child}function el(e){var t=e.stateNode;t.pendingContext?ia(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ia(0,t.context,!1),ja(e,t.containerInfo)}function tl(e,t,n,o,i){return wa(),xa(i),t.flags|=256,Ws(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,a=Pn.current,s=!1,l=!!(128&t.flags);if((i=(i=l)||(null===e||null!==e.memoizedState)&&!!(2&a))?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ea(Pn,1&a),null===e)return ma(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,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},1&r||null===s?s=ac(l,r,0,null):(s.childLanes=0,s.pendingProps=l),e=rc(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=nl(n),t.memoizedState=Xn,e):il(t,l));if(null===(a=e.memoizedState)||null===(i=a.dehydrated))return s?(s=r.fallback,l=t.mode,i=(a=e.child).sibling,c={mode:"hidden",children:r.children},1&l||t.child===a?(r=oc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((r=t.child).childLanes=0,r.pendingProps=c,t.deletions=null),null!==i?s=oc(i,s):(s=rc(s,l,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,l=null===(l=e.child.memoizedState)?nl(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},(s=t.child).memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Xn):(e=(s=e.child).sibling,r=oc(s,{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=(s=t,e=r,i);t=a,r=n;if(l)return 256&s.flags?(s.flags&=-257,rl(c,s,r,e=Rs(Error(Vo(422))))):null!==s.memoizedState?(s.child=c.child,s.flags|=128,null):(t=e.fallback,u=s.mode,e=ac({mode:"visible",children:e.children},u,0,null),(t=rc(t,u,r,null)).flags|=2,e.return=s,t.return=s,e.sibling=t,s.child=e,!!(1&s.mode)&&vn(s,c.child,null,r),s.child.memoizedState=nl(r),s.memoizedState=Xn,t);if(!(1&s.mode))return rl(c,s,r,null);if("$!"===u.data)return e=o=(e=u.nextSibling&&u.nextSibling.dataset)?e.dgst:o,rl(c,s,r,e=Rs(t=Error(Vo(419)),e,void 0));if(o=0!=(r&c.childLanes),Qn||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,La(c,u),Cl(e,c,u,-1))}return jl(),rl(c,s,r,e=Rs(Error(Vo(421))))}return"$?"===u.data?(s.flags|=128,s.child=c.child,s=function(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Kl(e,n)}.bind(null,c),u._reactRetry=s,null):(c=t.treeContext,fn=Br(u.nextSibling),pn=s,_n=!0,(gn=null)!==c&&(ln[cn++]=hn,ln[cn++]=dn,ln[cn++]=un,hn=c.id,dn=c.overflow,un=s),(s=il(s,e.children)).flags|=4096,s)}function il(e,t){return((t=ac({mode:"visible",children:t},e.mode,0,null)).return=e).child=t}function rl(e,t,n,o){return null!==o&&xa(o),vn(t,e.child,null,n),(e=il(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function al(e,t,n){e.lanes|=t;var o=e.alternate;null!==o&&(o.lanes|=t),Na(e.return,t,n)}function sl(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(Ws(e,t,o.children,n),2&(o=Pn.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&&al(e,n,t);else if(19===e.tag)al(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(ea(Pn,o),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===qa(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sl(t,!1,i,n,r);break;case"backwards":for(i=t.child,t.child=n=null;null!==i;){if(null!==(e=i.alternate)&&null===qa(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sl(t,!0,n,null,r);break;case"together":sl(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(Vo(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(!_n)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 _l(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 gl(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 ml(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function vl(e){return 5===e.tag||3===e.tag||4===e.tag}function bl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||vl(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(me&&"function"==typeof me.onCommitFiberUnmount)try{me.onCommitFiberUnmount(ge,n)}catch(e){}switch(n.tag){case 5:no||pl(n,t);case 6:var o=ao,i=so;ao=null,yl(e,t,n),so=i,null!==(ao=o)&&(so?(e=ao,n=n.stateNode,(8===e.nodeType?e.parentNode:e).removeChild(n)):ao.removeChild(n.stateNode));break;case 18:null!==ao&&(so?(e=ao,n=n.stateNode,8===e.nodeType?Wr(e.parentNode,n):1===e.nodeType&&Wr(e,n),qi(e)):Wr(ao,n.stateNode));break;case 4:o=ao,i=so,ao=n.stateNode.containerInfo,so=!0,yl(e,t,n),ao=o,so=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,a=i.tag}while(void 0===r||!(2&a)&&!(4&a)||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(Vo(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,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:ao=s.stateNode,so=!1;break e;case 3:case 4:ao=s.stateNode.containerInfo,so=!0;break e}s=s.return}if(null===ao)throw Error(Vo(160));wl(r,a,i),ao=null,so=!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),$l(e),4&o){try{_l(3,e,e.return),gl(3,e)}catch(t){Zl(e,e.return,t)}try{_l(5,e,e.return)}catch(t){Zl(e,e.return,t)}}break;case 1:kl(t,e),$l(e),512&o&&null!==n&&pl(n,n.return);break;case 5:if(kl(t,e),$l(e),512&o&&null!==n&&pl(n,n.return),32&e.flags){var i=e.stateNode;try{_i(i,"")}catch(t){Zl(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var r=e.memoizedProps,a=null!==n?n.memoizedProps:r,s=e.type,l=e.updateQueue;if((e.updateQueue=null)!==l)try{"input"===s&&"radio"===r.type&&null!=r.name&&ii(i,r),bi(s,a);var c=bi(s,r);for(a=0;a<l.length;a+=2){var u=l[a],h=l[a+1];"style"===u?mi(i,h):"dangerouslySetInnerHTML"===u?D(i,h):"children"===u?_i(i,h):Bo(i,u,h,c)}switch(s){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),$l(e),4&o){if(null===e.stateNode)throw Error(Vo(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),$l(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),$l(e);break;case 13:kl(t,e),$l(e),8192&(i=e.child).flags&&(r=null!==i.memoizedState,!(i.stateNode.isHidden=r)||null!==i.alternate&&null!==i.alternate.memoizedState||(Oo=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),$l(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:_l(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":(s=h.stateNode,a=null!=(l=h.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=gi("display",a))}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),$l(e),4&o&&xl(e);case 21:}}function $l(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(vl(n)){var o=n;break e}n=n.return}throw Error(Vo(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(_i(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=Yr));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(Vo(161))}}catch(t){Zl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ol(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||gl(5,t);break;case 1:var a,s=t.stateNode,l=(4&t.flags&&!no&&(null===r?s.componentDidMount():(a=t.elementType===t.type?r.memoizedProps:Cs(t.type,r.memoizedProps),s.componentDidUpdate(a,r.memoizedState,s.__reactInternalSnapshotBeforeUpdate))),t.updateQueue);null!==l&&Ya(0,l,s);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}Ya(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(Vo(163))}no||512&t.flags&&ml(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 El(e){for(;null!==io;){var t=io;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{gl(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{ml(t)}catch(e){Zl(t,r,e)}break;case 5:var a=t.return;try{ml(t)}catch(e){Zl(t,a,e)}}}catch(e){Zl(t,t.return,e)}if(t===e){io=null;break}var s=t.sibling;if(null!==s){s.return=t.return,io=s;break}io=t.return}}function Nl(){return 6&po?ce():-1!==Ho?Ho:Ho=ce()}function Pl(e){return 1&e.mode?2&po&&0!==go?go&-go:null!==mn.transition?Ro=0===Ro?Ii():Ro:0===(e=ke)?void 0===(e=window.event)?16:Ji(e.type):e:1}function Cl(e,t,n,o){if(50<Do)throw Do=0,Io=null,Error(Vo(185));Ri(e,n,o),2&po&&e===fo||(e===fo&&(!(2&po)&&(xo|=n),4===bo)&&Il(e,go),Ml(e,o),1===n&&0===po&&!(1&t.mode)&&(To=ce()+500,tn)&&ca())}function Ml(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 a=31-ve(r),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&o)||(i[a]=((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}})(s,t)):l<=t&&(e.expiredLanes|=s),r&=~s}}(e,t),Li(e,e===fo?go:0));if(0===i)null!==o&&ae(o),e.callbackNode=null,e.callbackPriority=0;else if(e.callbackPriority!==(t=i&-i)){if(null!=o&&ae(o),1===t)0===e.tag?(n=Hl.bind(null,e),tn=!0,la(n)):la(Hl.bind(null,e)),Vt(function(){!(6&po)&&ca()}),o=null;else{switch(zi(i)){case 1:o=he;break;case 4:o=de;break;case 16:default:o=pe;break;case 536870912:o=_e}o=Jl(o,Al.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function Al(e,t){if(Ho=-1,(Ro=0)!=(6&po))throw Error(Vo(327));var n=e.callbackNode;if(Ql()&&e.callbackNode!==n)return null;var o=Li(e,e===fo?go:0);if(0===o)return null;if(30&o||0!=(o&e.expiredLanes)||t)t=Wl(e,o);else{t=o;var i=po,r=(po|=2,Ul());for(fo===e&&go===t||(Eo=null,To=ce()+500,Vl(e,t));;)try{for(;null!==_o&&!se();)Bl(_o);break}catch(t){Yl(e,t)}Ta(),co.current=r,po=i,t=null!==_o?0:(fo=null,go=0,bo)}if(0!==t){if(1===(t=2===t&&0!==(i=Di(e))?Ll(e,o=i):t))throw n=yo,Vl(e,0),Il(e,o),Ml(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=Wl(e,o))&&0!==(r=Di(e))?Ll(e,o=r):t)))throw n=yo,Vl(e,0),Il(e,o),Ml(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(Vo(345));case 2:case 5:ql(e,$o,Eo);break;case 3:if(Il(e,o),(130023424&o)===o&&10<(t=Oo+500-ce())){if(0!==Li(e,0))break;if(((i=e.suspendedLanes)&o)!==o){Nl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Rt(ql.bind(null,e,$o,Eo),t)}else ql(e,$o,Eo);break;case 4:if(Il(e,o),(4194240&o)!==o){for(t=e.eventTimes,i=-1;0<o;){var a=31-ve(o);r=1<<a;i<(a=t[a])&&(i=a),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=Rt(ql.bind(null,e,$o,Eo),o):ql(e,$o,Eo)}break;default:throw Error(Vo(329))}}}return Ml(e,ce()),e.callbackNode===n?Al.bind(null,e):null}function Ll(e,t){var n=So;return e.current.memoizedState.isDehydrated&&(Vl(e,t).flags|=256),2!==(e=Wl(e,t))&&(t=$o,$o=n,null!==t)&&Dl(t),e}function Dl(e){null===$o?$o=e:$o.push.apply($o,e)}function Il(e,t){for(t=t&~ko&~xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ve(t),o=1<<n;e[n]=-1,t&=~o}}function Hl(e){if(6&po)throw Error(Vo(327));Ql();var t=Li(e,0);if(1&t){var n,o=Wl(e,t);if(1===(o=0!==e.tag&&2===o&&0!==(n=Di(e))?Ll(e,t=n):o))throw o=yo,Vl(e,0),Il(e,t),Ml(e,ce()),o;if(6===o)throw Error(Vo(345));e.finishedWork=e.current.alternate,e.finishedLanes=t,ql(e,$o,Eo)}return Ml(e,ce()),null}function Rl(e,t){var n=po;po|=1;try{return e(t)}finally{0===(po=n)&&(To=ce()+500,tn)&&ca()}}function Fl(e){null!==Ao&&0===Ao.tag&&!(6&po)&&Ql();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))&&ca()}}function zl(){mo=vo.current,Jr(vo)}function Vl(e,t){e.finishedWork=null,e.finishedLanes=0;var n,o,i,r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Ft(r)),null!==_o)for(r=_o.return;null!==r;){var a=r;switch(pa(a),a.tag){case 1:null!=(a=a.type.childContextTypes)&&oa();break;case 3:Wa(),Jr(Kt),Jr(Zt),Qa();break;case 5:Ga(a);break;case 4:Wa();break;case 13:case 19:Jr(Pn);break;case 10:Ea(a.type._context);break;case 22:case 23:zl()}r=r.return}if(_o=e=oc((fo=e).current,null),go=mo=t,ko=xo=wo=bo=0,($o=So=yo=null)!==Sn){for(t=0;t<Sn.length;t++)null!==(a=(r=Sn[t]).interleaved)&&(r.interleaved=null,n=a.next,null!==(o=r.pending)&&(i=o.next,o.next=n,a.next=i),r.pending=a);Sn=null}return e}function Yl(e,t){for(;;){var n=_o;try{if(Ta(),Mn.current=Yn,Rn){for(var o=Dn.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}Rn=!1}if(Hn=In=Dn=null,Fn=!1,zn=Ln=0,(uo.current=null)===n||null===n.return){bo=1,yo=t,_o=null;break}e:{var r=e,a=n.return,s=t;if(t=go,(g=n).flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l,c=s,u=g,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)),Us(a));if(null!==d){d.flags&=-257,js(d,a,g,0,t),1&d.mode&&Ys(r,c,t);s=c;var p,f=(t=d).updateQueue;null===f?((p=new Set).add(s),t.updateQueue=p):f.add(s);break e}if(!(1&t)){Ys(r,c,t),jl();break e}s=Error(Vo(426))}else if(_n&&1&g.mode){var _=Us(a);if(null!==_){!(65536&_.flags)&&(_.flags|=256),js(_,a,g,0,t),xa(Hs(s,g));break e}}r=s=Hs(s,g),4!==bo&&(bo=2),null===So?So=[r]:So.push(r),r=a;do{switch(r.tag){case 3:r.flags|=65536,t&=-t,r.lanes|=t,za(r,zs(0,s,t));break e;case 1:var g=s,m=r.type,v=r.stateNode;if(!(128&r.flags||"function"!=typeof m.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Co&&Co.has(v)))){r.flags|=65536,t&=-t,r.lanes|=t,za(r,Vs(r,g,t));break e}}}while(null!==(r=r.return))}Gl(n)}catch(e){t=e,_o===n&&null!==n&&(_o=n.return);continue}break}}function Ul(){var e=co.current;return co.current=Yn,null===e?Yn:e}function jl(){0!==bo&&3!==bo&&2!==bo||(bo=4),null===fo||!(268435455&wo)&&!(268435455&xo)||Il(fo,go)}function Wl(e,t){var n=po,o=(po|=2,Ul());for(fo===e&&go===t||(Eo=null,Vl(e,t));;)try{for(;null!==_o;)Bl(_o);break}catch(t){Yl(e,t)}if(Ta(),po=n,co.current=o,null!==_o)throw Error(Vo(261));return fo=null,go=0,bo}function Bl(e){var t=Fo(e.alternate,e,mo);e.memoizedProps=e.pendingProps,null===t?Gl(e):_o=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(pa(t),t.tag){case 1:return na(t.type)&&oa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Wa(),Jr(Kt),Jr(Zt),Qa(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ga(t),null;case 13:if(Jr(Pn),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Vo(340));wa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Jr(Pn),null;case 4:return Wa(),null;case 10:return Ea(t.type._context),null;case 22:case 23:return zl(),null;default:return null}})(n,t)))return n.flags&=32767,void(_o=n);if(null===e)return bo=6,void(_o=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=((e,t,n)=>{var o=t.pendingProps;switch(pa(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 na(t.type)&&oa(),dl(t),null;case 3:return o=t.stateNode,Wa(),Jr(Kt),Jr(Zt),Qa(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(ba(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==gn&&(Dl(gn),gn=null))),Kn(e,t),dl(t),null;case 5:Ga(t);var i,r=Ua(Nn.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(Vo(166));return dl(t),null}if(e=Ua(Tn.current),ba(t)){o=t.stateNode,n=t.type;var s,l,c=t.memoizedProps;switch(o[Yt]=t,o[Ut]=c,e=!!(1&t.mode),n){case"dialog":Cr("cancel",o),Cr("close",o);break;case"iframe":case"object":case"embed":Cr("load",o);break;case"video":case"audio":for(r=0;r<Ct.length;r++)Cr(Ct[r],o);break;case"source":Cr("error",o);break;case"img":case"image":case"link":Cr("error",o),Cr("load",o);break;case"details":Cr("toggle",o);break;case"input":oi(o,c),Cr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},Cr("invalid",o);break;case"textarea":ui(o,c),Cr("invalid",o)}for(s in vi(n,c),r=null,c)c.hasOwnProperty(s)&&(l=c[s],"children"===s?"string"==typeof l?o.textContent!==l&&(!0!==c.suppressHydrationWarning&&Vr(o.textContent,l,e),r=["children",l]):"number"==typeof l&&o.textContent!==""+l&&(!0!==c.suppressHydrationWarning&&Vr(o.textContent,l,e),r=["children",""+l]):a.hasOwnProperty(s)&&null!=l&&"onScroll"===s&&Cr("scroll",o));switch(n){case"input":Jo(o),ai(o,c,!0);break;case"textarea":Jo(o),di(o);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(o.onclick=Yr)}o=r,null!==(t.updateQueue=o)&&(t.flags|=4)}else{s=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=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=s.createElement(n,{is:o.is}):(e=s.createElement(n),"select"===n&&(s=e,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):e=s.createElementNS(e,n),e[Yt]=t,e[Ut]=o,Zn(e,t,!1,!1),t.stateNode=e;e:{switch(s=bi(n,o),n){case"dialog":Cr("cancel",e),Cr("close",e),r=o;break;case"iframe":case"object":case"embed":Cr("load",e),r=o;break;case"video":case"audio":for(r=0;r<Ct.length;r++)Cr(Ct[r],e);r=o;break;case"source":Cr("error",e),r=o;break;case"img":case"image":case"link":Cr("error",e),Cr("load",e),r=o;break;case"details":Cr("toggle",e),r=o;break;case"input":oi(e,o),r=ni(e,o),Cr("invalid",e);break;case"option":default:r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=M({},o,{value:void 0}),Cr("invalid",e);break;case"textarea":ui(e,o),r=ci(e,o),Cr("invalid",e)}for(c in vi(n,r),l=r)l.hasOwnProperty(c)&&(i=l[c],"style"===c?mi(e,i):"dangerouslySetInnerHTML"===c?null!=(i=i?i.__html:void 0)&&D(e,i):"children"===c?"string"==typeof i?"textarea"===n&&""===i||_i(e,i):"number"==typeof i&&_i(e,""+i):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?null!=i&&"onScroll"===c&&Cr("scroll",e):null!=i&&Bo(e,c,i,s)));switch(n){case"input":Jo(e),ai(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=Yr)}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(Vo(166));if(n=Ua(Nn.current),Ua(Tn.current),ba(t)){if(o=t.stateNode,n=t.memoizedProps,o[Yt]=t,(c=o.nodeValue!==n)&&null!==(e=pn))switch(e.tag){case 3:Vr(o.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Vr(o.nodeValue,n,!!(1&e.mode))}c&&(t.flags|=4)}else((o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[Yt]=t).stateNode=o}return dl(t),null;case 13:if(Jr(Pn),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(_n&&null!==fn&&1&t.mode&&!(128&t.flags))ya(),wa(),t.flags|=98560,c=!1;else if(c=ba(t),null!==o&&null!==o.dehydrated){if(null===e){if(!c)throw Error(Vo(318));if(!(c=null!==(c=t.memoizedState)?c.dehydrated:null))throw Error(Vo(317));c[Yt]=t}else wa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;dl(t),c=!1}else null!==gn&&(Dl(gn),gn=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&Pn.current?0===bo&&(bo=3):jl()),null!==t.updateQueue&&(t.flags|=4),dl(t),null);case 4:return Wa(),Kn(e,t),null===e&&Ar(t.stateNode.containerInfo),dl(t),null;case 10:return Ea(t.type._context),dl(t),null;case 19:if(Jr(Pn),null===(c=t.memoizedState));else{if(o=!!(128&t.flags),null===(s=c.rendering))if(o)hl(c,!1);else{if(0!==bo||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=qa(e))){for(t.flags|=128,hl(c,!1),null!==(o=s.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;null!==n;)e=o,(c=n).flags&=14680066,null===(s=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=s.childLanes,c.lanes=s.lanes,c.child=s.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=s.memoizedProps,c.memoizedState=s.memoizedState,c.updateQueue=s.updateQueue,c.type=s.type,e=s.dependencies,c.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ea(Pn,1&Pn.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=qa(s))){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&&!s.alternate&&!_n)return dl(t),null}else 2*ce()-c.renderingStartTime>To&&1073741824!==n&&(t.flags|=128,hl(c,!(o=!0)),t.lanes=4194304);c.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=c.last)?n.sibling=s:t.child=s,c.last=s)}if(null!==c.tail)return t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=ce(),t.sibling=null,n=Pn.current,ea(Pn,o?1&n|2:1&n),t}return dl(t),null;case 22:case 23:return zl(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&mo)&&(dl(t),6&t.subtreeFlags)&&(t.flags|=8192):dl(t),null;case 24:case 25:return null}throw Error(Vo(156,t.tag))})(n,t,mo)))return void(_o=n);if(null!==(t=t.sibling))return void(_o=t)}while(_o=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,a=t,s=n,l=o;Ql(),null!==Ao;);if(6&po)throw Error(Vo(327));s=r.finishedWork;var c=r.finishedLanes;if(null!==s){if(r.finishedWork=null,r.finishedLanes=0,s===r.current)throw Error(Vo(177));r.callbackNode=null,r.callbackPriority=0;var u,h,d=s.lanes|s.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-ve(n),r=1<<i;t[i]=0,o[i]=-1,e[i]=-1,n&=~r}})(r,d),r===fo&&(_o=fo=null,go=0),!(2064&s.subtreeFlags)&&!(2064&s.flags)||Mo||(Mo=!0,Jl(pe,function(){return Ql(),null})),d=!!(15990&s.flags),15990&s.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 a,s=0,l=-1,c=-1,u=0,h=0,d=e,p=null;t:for(;;){for(;d!==n||0!==o&&3!==d.nodeType||(l=s+o),d!==i||0!==r&&3!==d.nodeType||(c=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(a=d.firstChild);)p=d,d=a;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=s),p===i&&++h===r&&(c=s),null!==(a=d.nextSibling))break;p=(d=p).parentNode}d=a}n=-1===l||-1===c?null:{start:l,end:c}}else n=null;n=n||{start:0,end:0}}else n=null;for(Le=!(Ht={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!==v&&(f=v.memoizedProps,_=v.memoizedState,m=(g=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?f:Cs(t.type,f),_),g.__reactInternalSnapshotBeforeUpdate=m);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(Vo(163))}}catch(e){Zl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,io=e;break}io=t.return}v=ro,ro=!1})(r,s),Sl(s,r),function(e){var t,n,o,i=kr(),r=e.focusedElem,a=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!==a&&Sr(r)&&(i=a.start,void 0===(e=a.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(a.start,n),a=void 0===a.end?t:Math.min(a.end,n),!e.extend&&a<t&&(n=a,a=t,t=n),n=xr(r,t),o=xr(r,a),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(),a<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}}(Ht),Le=!!It,Ht=It=null,function(e){!function e(t,n,o){for(var i=!!(1&t.mode);null!==io;){var r=io,a=r.child;if(22===r.tag&&i){var s=null!==r.memoizedState||to;if(!s){var l=r.alternate,c=null!==l&&null!==l.memoizedState||no,u=(l=to,no);if(to=s,(no=c)&&!u)for(io=r;null!==io;)c=(s=io).child,22===s.tag&&null!==s.memoizedState||null===c?El(r):(c.return=s,io=c);for(;null!==a;)e(io=a),a=a.sibling;io=r,to=l,no=u}Ol(t)}else 8772&r.subtreeFlags&&null!==a?(a.return=r,io=a):Ol(t)}}(io=e)}(r.current=s),le(),po=h,ke=u,ho.transition=d):r.current=s,Mo&&(Mo=!1,Ao=r,Lo=c),0===(d=r.pendingLanes)&&(Co=null),(e=>{if(me&&"function"==typeof me.onCommitFiberRoot)try{me.onCommitFiberRoot(ge,e,void 0,!(128&~e.current.flags))}catch(e){}})(s.stateNode),Ml(r,ce()),null!==a)for(l=r.onRecoverableError,s=0;s<a.length;s++)l((c=a[s]).value,{componentStack:c.stack,digest:c.digest});if(No)throw No=!1,r=Po,Po=null,r;!!(1&Lo)&&0!==r.tag&&Ql(),1&(d=r.pendingLanes)?r===Io?Do++:(Do=0,Io=r):Do=0,ca()}}finally{ho.transition=i,ke=o}return null}function Ql(){if(null!==Ao){var e=zi(Lo),t=ho.transition,n=ke;try{if(ho.transition=null,ke=e<16?16:e,null===Ao)var o=!1;else{if(e=Ao,Ao=null,(Lo=0)!=(6&po))throw Error(Vo(331));var i=po;for(po|=4,io=e.current;null!==io;){var r=io,a=r.child;if(16&io.flags){var s=r.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(io=c;null!==io;){switch((h=io).tag){case 0:case 11:case 15:_l(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[Yt],delete n[Ut],delete n[Wt],delete n[Bt],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 _=f.child;if(null!==_){f.child=null;do{var g=_.sibling}while((_.sibling=null)!==(_=g))}}io=r}}if(2064&r.subtreeFlags&&null!==a)a.return=r,io=a;else for(;null!==io;){if(2048&(r=io).flags)switch(r.tag){case 0:case 11:case 15:_l(9,r,r.return)}var m=r.sibling;if(null!==m){m.return=r.return,io=m;break}io=r.return}}var v=e.current;for(io=v;null!==io;){var b=(a=io).child;if(2064&a.subtreeFlags&&null!==b)b.return=a,io=b;else for(a=v;null!==io;){if(2048&(s=io).flags)try{switch(s.tag){case 0:case 11:case 15:gl(9,s)}}catch(e){Zl(s,s.return,e)}if(s===a){io=null;break}var y=s.sibling;if(null!==y){y.return=s.return,io=y;break}io=s.return}}if(po=i,ca(),me&&"function"==typeof me.onPostCommitFiberRoot)try{me.onPostCommitFiberRoot(ge,e)}catch(e){}o=!0}return o}finally{ke=n,ho.transition=t}}}function Xl(e,t,n){e=Ra(e,t=zs(0,t=Hs(n,t),1),1),t=Nl(),null!==e&&(Ri(e,1,t),Ml(e,t))}function Zl(e,t,n){if(3===e.tag)Xl(e,e,n);else for(;null!==t;){if(3===t.tag){Xl(t,e,n);break}if(1===t.tag){var o=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Co||!Co.has(o))){t=Ra(t,e=Vs(t,e=Hs(n,e),1),1),e=Nl(),null!==t&&(Ri(t,1,e),Ml(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=Nl();null!==(e=La(e,t))&&(Ri(e,t,n),Ml(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 a=2;if("function"==typeof(o=e))nc(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case v:return rc(n.children,i,r,t);case y:i|=a=8;break;case w:return(e=tc(12,n,t,2|i)).elementType=w,e.lanes=r,e;case O:return(e=tc(13,n,t,i)).elementType=O,e.lanes=r,e;case T:return(e=tc(19,n,t,i)).elementType=T,e.lanes=r,e;case P:return ac(n,i,r,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:a=10;break e;case S:a=9;break e;case $:a=11;break e;case E:a=14;break e;case N:a=16,o=null;break e}throw Error(Vo(130,null==e?e:typeof e,""))}return(t=tc(a,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 ac(e,t,n,o){return(e=tc(22,e,o,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function sc(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=Hi(0),this.expirationTimes=Hi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hi(0),this.identifierPrefix=o,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uc(e,t,n,o,i,r,a,s,l){return e=new cc(e,t,0,s,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},Da(r),e}function hc(e){if(!e)return Xt;e:{if(Ni(e=e._reactInternals)!==e||1!==e.tag)throw Error(Vo(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(na(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}}while(null!==(t=t.return));throw Error(Vo(171))}if(1===e.tag){var n=e.type;if(na(n))return ra(e,n,t)}return t}function dc(e,t,n,o,i,r,a,s,l){return(e=uc(n,o,!0,e,0,r,0,s,l)).context=hc(null),n=e.current,(r=Ha(o=Nl(),i=Pl(n))).callback=null!=t?t:null,Ra(n,r,i),e.current.lanes=i,Ri(e,i,o),Ml(e,o),e}function pc(e,t,n,o){var i=t.current,r=Nl(),a=Pl(i);n=hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ha(r,a)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),null!==(e=Ra(i,t,a))&&(Cl(e,i,a,r),Fa(e,i,a))}function fc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function _c(e,t){var n;null!==(e=e.memoizedState)&&null!==e.dehydrated&&(n=e.retryLane,e.retryLane=0!==n&&n<t?n:t)}function gc(e,t){_c(e,t),(e=e.alternate)&&_c(e,t)}function mc(e){this._internalRoot=e}function vc(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,a,s=n._reactRootContainer;return s?("function"==typeof i&&(a=i,i=function(){var e=fc(r);a.call(e)}),pc(t,r=s,e,i)):r=((e,t,n,o,i)=>{var r,a,s;if(i)return"function"==typeof o&&(r=o,o=function(){var e=fc(a);r.call(e)}),a=dc(t,o,e,0,null,!1,0,"",wc),e._reactRootContainer=a,e[jt]=a.current,Ar(8===e.nodeType?e.parentNode:e),Fl(),a;for(;i=e.lastChild;)e.removeChild(i);"function"==typeof o&&(s=o,o=function(){var e=fc(l);s.call(e)});var l=uc(e,0,!1,null,0,!1,0,"",wc);return e._reactRootContainer=l,e[jt]=l.current,Ar(8===e.nodeType?e.parentNode:e),Fl(function(){pc(t,l,n,o)}),l})(n,t,e,i,o),fc(r)}}var S=(g||(g=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)}}(),v.exports=k()),v.exports),$=d(),O=n($);let T=O.createContext({tour:void 0}),E=$.createContext(void 0),N=({children:e,config:t})=>{let[n,o]=$.useState(Object.assign({},t));return $.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]),m.jsx(E.Provider,{value:n,children:e})},P=()=>{var e=O.useContext(E);if(void 0===e)throw new Error("useConfiguration must be used within a ConfigurationProvider");return e};function C(e,t,n,o){return new(n=n||Promise)(function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(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(a,s)}l((o=o.apply(e,t||[])).next())})}var M,A={exports:{}},L=A.exports;var D,I,H,R,F,z=function(){var e,t,n;return M||(M=1,e=A,t=L,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,a=this._indexOfListener(e,n);if(-1!==a){if((r=this._bindings[a]).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),A.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 V={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"},Y={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"},U="gyro2",j="radar",W="sound",B=((dt=D=D||{}).DEFAULT="DEFAULT",dt.SIMPLE_CROSS_BLENDING="SIMPLE_CROSS_BLENDING",dt.ZOOM_BLEND="ZOOM_BLEND",dt.BLACK_OUT="BLACK_OUT",dt.WHITE_FLASH="WHITE_FLASH",dt.RIGHT_TO_LEFT="RIGHT_TO_LEFT",dt.TOP_TO_BOTTOM="TOP_TO_BOTTOM",dt.DIAGONAL="DIAGONAL",dt.CIRCLE_OPEN="CIRCLE_OPEN",dt.VERTICAL_OPEN="VERTICAL_OPEN",dt.HORIZONTAL_OPEN="HORIZONTAL_OPEN",{FASTEST:.5,FAST:.7,NORMAL:1,SLOW:1.5,SLOWEST:2}),G=(D.DEFAULT,D.SIMPLE_CROSS_BLENDING,D.ZOOM_BLEND,D.BLACK_OUT,D.WHITE_FLASH,D.RIGHT_TO_LEFT,D.TOP_TO_BOTTOM,D.DIAGONAL,D.CIRCLE_OPEN,D.VERTICAL_OPEN,D.HORIZONTAL_OPEN,{[D.DEFAULT]:"OPENBLEND({level}, 0.0, 0.6, 1.0, easeOutQuad)",[D.SIMPLE_CROSS_BLENDING]:"BLEND({level}, easeInCubic)",[D.ZOOM_BLEND]:"ZOOMBLEND({level}, 2.0, easeInOutSine)",[D.BLACK_OUT]:"COLORBLEND({level}, 0x000000, easeOutSine)",[D.WHITE_FLASH]:"LIGHTBLEND({level}, 0xFFFFFF, 2.0, linear)",[D.RIGHT_TO_LEFT]:"SLIDEBLEND({level}, 0.0, 0.2, linear)",[D.TOP_TO_BOTTOM]:"SLIDEBLEND({level}, 90.0, 0.01, linear)",[D.DIAGONAL]:"SLIDEBLEND({level}, 135.0, 0.4, linear)",[D.CIRCLE_OPEN]:"OPENBLEND({level}, 0.0, 0.2, 0.0, linear)",[D.VERTICAL_OPEN]:"OPENBLEND({level}, 1.0, 0.1, 0.0, linear)",[D.HORIZONTAL_OPEN]:"OPENBLEND({level}, -1.0, 0.3, 0.0, linear)"}),q="https://cdn3.clik.vn/clikvirtualtour",Q={GYRO2:q+"/common/plugins/gyro2.js",SOUND_INTERFACE:q+"/common/plugins/soundinterface.js?v2",RADAR:q+"/common/plugins/radar.js",VIDEO_PLAYER:q+"/common/plugins/videoplayer.js"},X="/common/configs/flare-config.json",Z={MOVING:q+"/common/media/vtourskin.png",INFO:q+"/common/media/tag.png",POPUP:q+"/common/media/vtourskin.png",PHOTO:q+"/common/media/gallery.png",VIDEO:q+"/common/media/hotspot_video_icon.png",PIN:q+"/common/media/vtourskin.png",SOUND_PLAY:q+"/common/media/play-solid.png",SOUND_PAUSE:q+"/common/media/stop-solid.png",BACKGROUND:q+"/common/media/bgshadow.png",PROMOTION:q+"/common/media/promotion_lg.png",GALLERY:q+"/common/media/gallery.png",TEXTURE:q+"/common/media/vtourskin.png",FOCUSING_IMAGE_STRIP:q+"/common/media/audio_shake.png",NAVIGATION_ARROW:q+"/common/media/navigation.svg",NAVIGATION_HIGHLIGHT:q+"/common/media/navigation-highlight.svg"},K="NONE",J="LOCK_VIEW",ee="NADIR_LOGO",te="SNEAK_PEEK",ne="LABEL",oe="SNEAK_PEEK_AND_LABEL",ie="NONE",re="TOGGLE_UI",ae="MOVE_TO_SCENE",se="LABEL",le="POPUP",ce={NORTH:"NORTH",SOUTH:"SOUTH",EAST:"EAST",WEST:"WEST",NORTH_EAST:"NORTH_EAST",NORTH_WEST:"NORTH_WEST",SOUTH_EAST:"SOUTH_EAST",SOUTH_WEST:"SOUTH_WEST"},ue=1,he=((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"})(I=I||{}),{NONE:"NONE",BOTTOM_LEFT_CORNER:"BOTTOM_LEFT_CORNER"}),de="NONE",pe="RIGHT",fe="TOP",_e="BOTTOM",ge="LEFT",me="SMALL",ve="MEDIUM",be="LARGE",ye={[me]:80,[ve]:160,[be]:240},we=[0,32,112,192],xe=32,ke=8,Se={NONE:{x:0,y:0}},$e="CLASSIC",Oe="NAMEPLATE",Te="NONE",Ee="PRODUCT",Ne="BRAND",Pe="LOCATION",Ce="FACILITY",Me="PRODUCT",Ae="BRAND",Le="LOCATION",De="ECOMMERCE_PRODUCT",Ie="FACILITY",He="NONE",Re="LABEL",Fe=[V.ITEM_INFO,V.PROMOTION,V.TEXTURE,V.GALLERY],ze=[Ee,Ne,Pe,Ce],Ve="VIDEO",Ye=((e=>{e.SQUARE_METER="㎡",e.CUBIC_METER="㎥",e.KILOGRAM="kg",e.CENTIMETER="cm",e.GRAM="g",e.LITER="Lít"})(H=H||{}),(e=>{e.IFRAME="IFRAME",e.NEW_TAB="NEW_TAB"})(R=R||{}),120),Ue=360,je=e=>{if(e)return e},We=()=>{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)})},Be=e=>{let t;if(e.type===V.ITEM_INFO){var n=e.props.itemInfo;switch(null==n?void 0:n.type){case De:t=Y.PRODUCT_LIST;break;case Me:t=null!=n.included?Y.FEATURES:Y.PRODUCT_LIST;break;case Ae:t=Y.BRAND;break;case Le:t=Y.LOCATION;break;case Ie:t=Y.FACILITY;break;default:t=""}}else switch(e.type){case V.PROMOTION:t=Y.PROMOTION;break;case V.INFO:t=Y.INFORMATION;break;case V.GALLERY:t=Y.MULTIMEDIA;break;case V.TEXTURE:t=Y.SWAP_ELEMENT;break;default:t=""}return t},Ge=e=>null!=e,qe=(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 a=1,s=(e.width&&e.height&&!t&&(a=e.width>e.height?e.height/e.width:e.width/e.height),0);return t?s=t:"object"==typeof window&&(s=window.innerWidth),1!==a&&(s/=a),0===s?null:1e3<s?e:1e3===Math.max(1e3,s)&&750===Math.min(750,s)?n||e:750===Math.max(750,s)&&500===Math.min(500,s)?o||e:500===Math.max(500,s)&&250===Math.min(250,s)?i||e:s<250?r||e:null})(e,t),e?e.url:null),Qe=((e=>{e.VFOV="VFOV",e.HFOV="HFOV",e.DFOV="DFOV",e.MFOV="MFOV",e.SFOV="SFOV"})(F=F||{}),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}),Xe=e=>{var{url:t,theme:n,type:o,width:i,scale:r}=e,a=et(e),i=i*r||void 0;let s;if(o===V.PHOTO?(r=e.image)&&(s=qe(r,i)):o===V.PROMOTION&&(r=e.promotion)&&(r=r.icon)&&(r.thumbnail||r.url)&&(s=qe(r,i)),!(s=!s&&a?a.imageStrip?a.file.url:qe(a.file,i):s)&&n&&n.poiIcons&&n.poiIcons.length){let t=o;o===V.ITEM_INFO&&(r=e.itemInfo)&&(t=(o+"_"+r.type).toUpperCase()),a=n.poiIcons.find(e=>e.poiType===t),a&&a.icon&&(s=qe(a.icon.file,i))}return s?je(s):t?je(t):(e=>{switch(e.type){case V.ITEM_INFO:return Z.PIN;case V.INFO:return Z.INFO;case V.MOVING:return Z.MOVING;case V.POPUP:return Z.POPUP;case V.SOUND:return Z.SOUND_PLAY;case V.PROMOTION:return Z.PROMOTION;default:return Z.PIN}})(e)},Ze=(e,t,n)=>C(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}))}),Ke=e=>e+"_hover",Je=(e,t,n)=>{t=t.code,e.call(`tween(hotspot[${t}].alpha, ${n?0:1}, 0.2)`)},et=e=>e.icon||(e=>{var t=e.theme,n=e.type;if(t&&t.poiIcons&&t.poiIcons.length){let o=n;if(n===V.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),tt=e=>(null==e?void 0:e.position)!==de,nt=e=>{var t={fovtype:F.MFOV,fov:90};return Qe(e)||(t.fovtype=F.VFOV,t.fov=65),t},ot=e=>e*(Math.PI/180),it=(e,t,n,o)=>{var i=ot(o-t);n=ot(n-e),e=Math.sin(i/2)*Math.sin(i/2)+Math.cos(ot(t))*Math.cos(ot(o))*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(e),Math.sqrt(1-e))*1e3},rt=(e,t,n,o)=>(e=at(e-=n),n=at(n=t-o),{h:Math.abs(e),v:Math.abs(n)}),at=e=>{let t=e%360;return 180<t&&(t-=360),t<-180&&(t+=360),t},st=(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))},lt=e=>e.get("device.mobile"),ct=(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&&at(e-n),v:t.y&&at(r-o)}):{h:0,v:0}},ut=(e,t)=>{var{ath:t,atv:n,position:o,popupSize:i="1",laserRange:r=ue}=t,a={h:t,v:n,hfovExpand:0};if(0<r){var s=ye[i]+we[r]+54||0;let l,c;switch(o){case fe:l=0,c=-Math.round(s/2);break;case pe:l=Math.round(s/2),c=0;break;case _e:l=0,c=Math.round(s/2);break;case ge:l=-Math.round(s/2),c=0;break;default:l=0,c=0}i=ct(e,{x:l,y:c}),a.h=t+i.h,a.v=n+i.v}return a},ht=e=>{var t;return!!e&&(t=e.overviewPosition,(e=>!(!e||!Fe.includes(e.type))&&(e.type!==V.ITEM_INFO||(e=e.itemInfo,ze.includes(null==e?void 0:e.type))))(e))&&t===he.BOTTOM_LEFT_CORNER};var dt;var pt,ft={exports:{}};var _t,gt,mt=(pt||(pt=1,(gt=ft).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 a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(r(e,t))return;return 1}function s(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 Tt(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 _(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 g=n.momentProperties=[],m=!1;function v(e,t){var n,o,i,r=g.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)s(i=t[o=g[n]])||(e[o]=i);return e}function b(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===m&&(m=!0,n.updateOffset(this),m=!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,a,s=[],l=arguments.length,c=0;c<l;c++){if(i="","object"==typeof arguments[c]){for(a in i+="\n["+c+"] ",arguments[0])r(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[c];s.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),o=!1}return t.apply(this,arguments)},t)}var k,S={};function $(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),S[e]||(w(t),S[e]=!0)}function O(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 E(e){null!=e&&this.set(e)}function N(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 P=/(\[[^\[]*\])|(\\)?([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,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},A={};function L(e,t,n,o){var i="string"==typeof o?function(){return this[o]()}:o;e&&(A[e]=i),t&&(A[t[0]]=function(){return N(i.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function D(e,t){return e.isValid()?(t=I(t,e.localeData()),M[t]=M[t]||(e=>{for(var t,n=e.match(P),o=0,i=n.length;o<i;o++)A[n[o]]?n[o]=A[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+=O(n[r])?n[r].call(t,e):n[r];return o}})(t),M[t](e)):e.localeData().invalidDate()}function I(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for(C.lastIndex=0;0<=n&&C.test(e);)e=e.replace(C,o),C.lastIndex=0,--n;return e}var H={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 R(e){return"string"==typeof e?H[e]||H[e.toLowerCase()]:void 0}function F(e){var t,n,o={};for(n in e)r(e,n)&&(t=R(n))&&(o[t]=e[n]);return o}var z={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},V=/\d/,Y=/\d\d/,U=/\d{3}/,j=/\d{4}/,W=/[+-]?\d{6}/,B=/\d\d?/,G=/\d\d\d\d?/,q=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,X=/\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]=O(t)?t:function(e,o){return e&&n?n:t}}function ae(e,t){return r(ue,e)?ue[e](t._strict,t._locale):new RegExp(se(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,i){return t||n||o||i})))}function se(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 _e=0,ge=1,me=2,ve=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?N(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",B,Y),re("YYYY",X,j),re("YYYYY",Z,W),re("YYYYYY",Z,W),de(["YYYYY","YYYYYY"],_e),de("YYYY",function(e,t){t[_e]=2===e.length?n.parseTwoDigitYear(e):ce(e)}),de("YY",function(e,t){t[_e]=n.parseTwoDigitYear(e)}),de("Y",function(e,t){t[_e]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return ce(e)+(68<ce(e)?1900:2e3)};var $e,Oe=Te("FullYear",!0);function Te(e,t){return function(o){return null!=o?(Ne(this,e,o),n.updateOffset(this,t),this):Ee(this,e)}}function Ee(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 Ne(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 Pe(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)}$e=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",B,oe),re("MM",B,Y),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[ge]=ce(e)-1}),de(["MMM","MMMM"],function(e,t,n,o){null!=(o=n._locale.monthsParse(e,o,n._strict))?t[ge]=o:p(n).invalidMonth=e});var Ce="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Me="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ae=/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,Pe(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function He(e){return null!=e?(Ie(this,e),n.updateOffset(this,!0),this):Ee(this,"Month")}function Re(){function e(e,t){return t.length-e.length}for(var t,n,o=[],i=[],r=[],a=0;a<12;a++)n=d([2e3,a]),t=se(this.monthsShort(n,"")),n=se(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,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,o,i,r,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,o,i,r,a),s}function ze(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 Ve(e,t,n){return(n=7+t-n)-(7+ze(e,0,n).getUTCDay()-t)%7-1}function Ye(e,t,n,o,i){var r;return n=(t=1+7*(t-1)+(7+n-o)%7+Ve(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=Ve(e.year(),t,n);return(r=Math.floor((e.dayOfYear()-r-1)/7)+1)<1?o=r+je(i=e.year()-1,t,n):r>je(e.year(),t,n)?(o=r-je(e.year(),t,n),i=e.year()+1):(i=e.year(),o=r),{week:o,year:i}}function je(e,t,n){var o=Ve(e,t,n);return t=Ve(e+1,t,n),(Se(e)-o+t)/7}function We(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",B,oe),re("ww",B,Y),re("W",B,oe),re("WW",B,Y),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",B),re("e",B),re("E",B),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 Be="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("_"),Qe=ne,Xe=ne,Ze=ne;function Ke(){function e(e,t){return t.length-e.length}for(var t,n,o,i=[],r=[],a=[],s=[],l=0;l<7;l++)o=d([2e3,1]).day(l),t=se(this.weekdaysMin(o,"")),n=se(this.weekdaysShort(o,"")),o=se(this.weekdays(o,"")),i.push(t),r.push(n),a.push(o),s.push(t),s.push(n),s.push(o);i.sort(e),r.sort(e),a.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.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)+N(this.minutes(),2)}),L("hmmss",0,0,function(){return""+Je.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),et("a",!0),et("A",!1),re("a",tt),re("A",tt),re("H",B,ie),re("h",B,oe),re("k",B,oe),re("HH",B,Y),re("hh",B,Y),re("kk",B,Y),re("hmm",G),re("hmmss",q),re("Hmm",G),re("Hmmss",q),de(["H","HH"],ve),de(["k","kk"],function(e,t,n){e=ce(e),t[ve]=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[ve]=ce(e),p(n).bigHour=!0}),de("hmm",function(e,t,n){var o=e.length-2;t[ve]=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[ve]=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[ve]=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[ve]=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:Ce,monthsShort:Me,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:qe,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function at(e){return e&&e.toLowerCase().replace("_","-")}function st(e){var t,n;if(void 0===it[e]&>&>.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=s(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])$("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=st(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 E(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=st(e))return t;e=[e]}return function(e){for(var t,n,o,i,r=0;r<e.length;){for(t=(i=at(e[r]).split("-")).length,n=(n=at(e[r+1]))?n.split("-"):null;0<t;){if(o=st(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[ge]<0||11<t[ge]?ge:t[me]<1||t[me]>Pe(t[_e],t[ge])?me:t[ve]<0||24<t[ve]||24===t[ve]&&(0!==t[be]||0!==t[ye]||0!==t[we])?ve: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<_e||me<t)&&(t=me),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)?/,_t=[["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,bt=/^(?:(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}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wt(e){var t,n,o,i,r,a,s=e._i,l=dt.exec(s)||pt.exec(s),c=(s=_t.length,mt.length);if(l){for(p(e).iso=!0,t=0,n=s;t<n;t++)if(_t[t][1].exec(l[1])){i=_t[t][0],o=!1!==_t[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);a="Z"}e._f=i+(r||"")+(a||""),$t(e)}else e._isValid=!1}}else e._isValid=!1}function xt(e){var t,n,o=bt.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),Me.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?yt[t]:n?0:((t=parseInt(o,10))-(n=t%100))/100*60+n),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function kt(e,t,n){return null!=e?e:null!=t?t:n}function St(e){var t,o,i,r,a,s,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[me]&&null==e._a[ge]&&(null!=(r=(i=e)._w).GG||null!=r.W||null!=r.E?(c=1,u=4,a=kt(r.GG,i._a[_e],Ue(Et(),1,4).year),s=kt(r.W,1),((l=kt(r.E,1))<1||7<l)&&(h=!0)):(c=i._locale._week.dow,u=i._locale._week.doy,d=Ue(Et(),c,u),a=kt(r.gg,i._a[_e],d.year),s=kt(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),s<1||s>je(a,c,u)?p(i)._overflowWeeks=!0:null!=h?p(i)._overflowWeekday=!0:(d=Ye(a,s,l,c,u),i._a[_e]=d.year,i._dayOfYear=d.dayOfYear)),null!=e._dayOfYear&&(r=kt(e._a[_e],o[_e]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),h=ze(r,0,e._dayOfYear),e._a[ge]=h.getUTCMonth(),e._a[me]=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[ve]&&0===e._a[be]&&0===e._a[ye]&&0===e._a[we]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?ze:Fe).apply(null,f),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}function $t(e){if(e._f===n.ISO_8601)wt(e);else if(e._f===n.RFC_2822)xt(e);else{e._a=[],p(e).empty=!0;for(var t,o,i,a,s,l=""+e._i,c=l.length,u=0,h=I(e._f,e._locale).match(P)||[],d=h.length,f=0;f<d;f++)o=h[f],(t=(l.match(ae(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),A[o]?(t?p(e).empty=!1:p(e).unusedTokens.push(o),i=o,s=e,null!=(a=t)&&r(he,i)&&he[i](a,s._a,s,i)):e._strict&&!t&&p(e).unusedTokens.push(o);p(e).charsLeftOver=c-u,0<l.length&&p(e).unusedInput.push(l),e._a[ve]<=12&&!0===p(e).bigHour&&0<e._a[ve]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[ve]=((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[ve],e._meridiem),null!==(c=p(e).era)&&(e._a[_e]=e._locale.erasConvertYear(c,e._a[_e])),St(e),ht(e)}}function Ot(e){var t,r,a,d=e._i,g=e._f;if(e._locale=e._locale||ut(e._l),null===d||void 0===g&&""===d)return _({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(g)){var m,w,x,k,S,$,O=e,T=!1,E=O._f.length;if(0===E)p(O).invalidFormat=!0,O._d=new Date(NaN);else{for(k=0;k<E;k++)S=0,$=!1,m=v({},O),null!=O._useUTC&&(m._useUTC=O._useUTC),m._f=O._f[k],$t(m),f(m)&&($=!0),S=(S+=p(m).charsLeftOver)+10*p(m).unusedTokens.length,p(m).score=S,T?S<x&&(x=S,w=m):(null==x||S<x||$)&&(x=S,w=m,$)&&(T=!0);h(O,w||m)}}else g?$t(e):s(g=(d=e)._i)?d._d=new Date(n.now()):c(g)?d._d=new Date(g.valueOf()):"string"==typeof g?(r=d,null!==(t=vt.exec(r._i))?r._d=new Date(+t[1]):(wt(r),!1===r._isValid&&(delete r._isValid,xt(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:n.createFromInputFallback(r)))):o(g)?(d._a=u(g.slice(0),function(e){return parseInt(e,10)}),St(d)):i(g)?(t=d)._d||(a=void 0===(r=F(t._i)).day?r.date:r.day,t._a=u([r.year,r.month,a,r.hour,r.minute,r.second,r.millisecond],function(e){return e&&parseInt(e,10)}),St(t)):l(g)?d._d=new Date(g):n.createFromInputFallback(d);return f(e)||(e._d=null),e}function Tt(e,t,n,r,s){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&a(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new b(ht(Ot(s=l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Et(e,t,n,o){return Tt(e,t,n,o,!1)}function Nt(e,t){var n,i;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return Et();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=Et.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()}),q=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Et.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:_()});var Pt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var t=(e=F(e)).year||0,n=e.quarter||0,o=e.month||0,i=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=(e=>{var t,n,o=!1,i=Pt.length;for(t in e)if(r(e,t)&&(-1===$e.call(Pt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Pt[n]]){if(o)return!1;parseFloat(e[Pt[n]])!==ce(e[Pt[n]])&&(o=!0)}return!0})(e),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*n+12*t,this._data={},this._locale=ut(),this._bubble()}function Mt(e){return e instanceof Ct}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,t){L(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)})}Lt("Z",":"),Lt("ZZ",""),re("Z",te),re("ZZ",te),de(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=It(te,e)});var Dt=/([\+\-]|\d\d)/gi;function It(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Dt)||["-",0,0])[1]+ce(e[2]))?0:"+"===e[0]?t:-t}function Ht(e,t){var o;return t._isUTC?(t=t.clone(),o=(y(e)||c(e)?e:Et(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+o),n.updateOffset(t,!1),t):Et(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 zt=/^(-|\+)?(?:(\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 Yt(e,t){var n,o=e;return Mt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(t=zt.exec(e))?(n="-"===t[1]?-1:1,o={y:0,d:ce(t[me])*n,h:ce(t[ve])*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:Ut(t[2],n),M:Ut(t[3],n),w:Ut(t[4],n),d:Ut(t[5],n),h:Ut(t[6],n),m:Ut(t[7],n),s:Ut(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=Ht(t,e),e.isBefore(t)?n=jt(e,t):((n=jt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}})(Et(o.from),Et(o.to)),(o={}).ms=t.milliseconds,o.M=t.months),n=new Ct(o),Mt(e)&&r(e,"_locale")&&(n._locale=e._locale),Mt(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function Ut(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function jt(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 Wt(e,t){return function(n,o){var i;return null===o||isNaN(+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),Bt(this,Yt(n,o),e),this}}function Bt(e,t,o,i){var r=t._milliseconds,a=At(t._days);t=At(t._months),e.isValid()&&(i=null==i||i,t&&Ie(e,Ee(e,"Month")+t*o),a&&Ne(e,"Date",Ee(e,"Date")+a*o),r&&e._d.setTime(e._d.valueOf()+r*o),i)&&n.updateOffset(e,a||t)}function Gt(e){return"string"==typeof e||e instanceof String}function qt(e,t){var n,o;return e.date()<t.date()?-qt(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}Yt.fn=Ct.prototype,Yt.invalid=function(){return Yt(NaN)},Ce=Wt(1,"add"),Be=Wt(-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 Zt,Kt=1e3,Jt=6e4,en=60*Jt,tn=3506328*en;function nn(e,t){return(e%t+t)%t}function on(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-tn:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-tn:Date.UTC(e,t,n)}function an(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e,t,n,o=[],i=[],r=[],a=[],s=this.eras(),l=0,c=s.length;l<c;++l)e=se(s[l].name),t=se(s[l].abbr),n=se(s[l].narrow),i.push(e),o.push(t),r.push(n),a.push(e),a.push(t),a.push(n);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function ln(e,t){L(0,[e,e.length],0,t)}function cn(e,t,n,o,i){var r;return null==e?Ue(this,o,i).year:(r=je(e,o,i),function(e,t,n,o,i){return t=ze((e=Ye(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",an),re("NN",an),re("NNN",an),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"],_e),de(["yo"],function(e,t,n,o){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[_e]=n._locale.eraYearOrdinalParse(e,i):t[_e]=parseInt(e,10)}),L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),re("G",J),re("g",J),re("GG",B,Y),re("gg",B,Y),re("GGGG",X,j),re("gggg",X,j),re("GGGGG",Z,W),re("ggggg",Z,W),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",V),de("Q",function(e,t){t[ge]=3*(ce(e)-1)}),L("D",["DD",2],"Do","date"),re("D",B,oe),re("DD",B,Y),re("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),de(["D","DD"],me),de("Do",function(e,t){t[me]=ce(e.match(B)[0])}),X=Te("Date",!0),L("DDD",["DDDD",3],"DDDo","dayOfYear"),re("DDD",Q),re("DDDD",U),de(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ce(e)}),L("m",["mm",2],0,"minute"),re("m",B,ie),re("mm",B,Y),de(["m","mm"],be),j=Te("Minutes",!1),L("s",["ss",2],0,"second"),re("s",B,ie),re("ss",B,Y),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",Q,V),re("SS",Q,Y),re("SSS",Q,U),Zt="SSSS";Zt.length<=9;Zt+="S")re(Zt,K);function un(e,t){t[we]=ce(1e3*("0."+e))}for(Zt="S";Zt.length<=9;Zt+="S")de(Zt,un);function hn(e){return e}function dn(e,t,n,o){var i=ut();return o=d().set(o,t),i[n](o,e)}function pn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");for(var o=[],i=0;i<12;i++)o[i]=dn(e,i,n,"month");return o}function fn(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(),a=e?r._week.dow:0,s=[];if(null!=n)return dn(t,(n+a)%7,o,"day");for(i=0;i<7;i++)s[i]=dn(t,(i+a)%7,o,"day");return s}W=Te("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName"),(oe=b.prototype).add=Ce,oe.calendar=function(e,t){1===arguments.length&&(arguments[0]?function(e){return y(e)||c(e)||Gt(e)||l(e)||(e=>{var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!l(t)&&Gt(e)}).length),t&&n})(e)||(e=>{var t,n=i(e)&&!a(e),o=!1,s=["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=s.length;for(t=0;t<l;t+=1)o=o||r(e,s[t]);return n&&o})(e)||null==e}(arguments[0])?(e=arguments[0],t=void 0):(e=>{for(var t=i(e)&&!a(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s=0;s<o.length;s+=1)n=n||r(e,o[s]);return t&&n})(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var s=Ht(e=e||Et(),this).startOf("day");return s=n.calendarFormat(this,s)||"sameElse",t=t&&(O(t[s])?t[s].call(this,e):t[s]),this.format(t||this.localeData().calendar(s,this,Et(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=Ht(e,this)).isValid())return NaN;switch(i=6e4*(o.utcOffset()-this.utcOffset()),t=R(t)){case"year":r=qt(this,o)/12;break;case"month":r=qt(this,o);break;case"quarter":r=qt(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=R(e))&&"millisecond"!==e&&this.isValid()){switch(o=this._isUTC?rn:on,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+=en-nn(t+(this._isUTC?0:this.utcOffset()*Jt),en)-1;break;case"minute":t=this._d.valueOf(),t+=Jt-nn(t,Jt)-1;break;case"second":t=this._d.valueOf(),t+=Kt-nn(t,Kt)-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()||Et(e).isValid())?Yt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oe.fromNow=function(e){return this.from(Et(),e)},oe.to=function(e,t){return this.isValid()&&(y(e)&&e.isValid()||Et(e).isValid())?Yt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oe.toNow=function(e){return this.to(Et(),e)},oe.get=function(e){return O(this[e=R(e)])?this[e]():this},oe.invalidAt=function(){return p(this).overflow},oe.isAfter=function(e,t){return e=y(e)?e:Et(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},oe.isBefore=function(e,t){return e=y(e)?e:Et(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=R(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:Et(e),t=y(t)?t:Et(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:Et(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=R(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:z[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(O(this[e=R(e)]))return this[e](t);return this},oe.startOf=function(e){var t,o;if(void 0!==(e=R(e))&&"millisecond"!==e&&this.isValid()){switch(o=this._isUTC?rn:on,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-=nn(t+(this._isUTC?0:this.utcOffset()*Jt),en);break;case"minute":t=this._d.valueOf(),t-=nn(t,Jt);break;case"second":t=this._d.valueOf(),t-=nn(t,Kt)}this._d.setTime(t),n.updateOffset(this,!0)}return this},oe.subtract=Be,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"):O(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=Oe,oe.isLeapYear=function(){return fe(this.year())},oe.weekYear=function(e){return cn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},oe.isoWeekYear=function(e){return cn.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=He,oe.daysInMonth=function(){return Pe(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 je(this.year(),e.dow,e.doy)},oe.weeksInWeekYear=function(){var e=this.localeData()._week;return je(this.weekYear(),e.dow,e.doy)},oe.isoWeeksInYear=function(){return je(this.year(),1,4)},oe.isoWeeksInISOWeekYear=function(){return je(this.isoWeekYear(),1,4)},oe.date=X,oe.day=oe.days=function(e){var t,n,o;return this.isValid()?(t=Ee(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=j,oe.second=oe.seconds=Z,oe.millisecond=oe.milliseconds=W,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=It(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?Bt(this,Yt(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=It(ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},oe.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Et(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.",X),oe.months=x("months accessor is deprecated. Use month instead",He),oe.years=x("years accessor is deprecated. Use year instead",Oe),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 s(this._isDSTShifted)&&(v(e={},this),(e=Ot(e))._a?(t=(e._isUTC?d:Et)(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=E.prototype).calendar=function(e,t,n){return O(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(P).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=hn,ie.postformat=hn,ie.relativeTime=function(e,t,n,o){var i=this._relativeTime[n];return O(i)?i(e,t,n,o):i.replace(/%d/i,e)},ie.pastFuture=function(e,t){return O(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)&&(O(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,a=i.length;r<a;++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,a,s,l=this.eras();for(e=e.toUpperCase(),o=0,i=l.length;o<i;++o)if(r=l[o].name.toUpperCase(),a=l[o].abbr.toUpperCase(),s=l[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[o];break;case"NNNN":if(r===e)return l[o];break;case"NNNNN":if(s===e)return l[o]}else if(0<=[r,a,s].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||Ae).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[Ae.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=$e.call(this._shortMonthsParse,e))?i:null:-1!==(i=$e.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=$e.call(this._shortMonthsParse,e))||-1!==(i=$e.call(this._longMonthsParse,e))?i:null:-1!==(i=$e.call(this._longMonthsParse,e))||-1!==(i=$e.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")||Re.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")||Re.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?We(t,this._week.dow):e?t[e.day()]:t},ie.weekdaysMin=function(e){return!0===e?We(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},ie.weekdaysShort=function(e){return!0===e?We(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=$e.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,e))||-1!==(i=$e.call(this._shortWeekdaysParse,e))||-1!==(i=$e.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,e))||-1!==(i=$e.call(this._weekdaysParse,e))||-1!==(i=$e.call(this._minWeekdaysParse,e))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,e))||-1!==(i=$e.call(this._weekdaysParse,e))||-1!==(i=$e.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=Qe),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=Xe),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 _n=Math.abs;function gn(e,t,n,o){return t=Yt(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 bn(e){return 146097*e/4800}function yn(e){return function(){return this.as(e)}}function wn(e){return function(){return this.isValid()?this._data[e]:NaN}}V=yn("ms"),Y=yn("s"),Q=yn("m"),U=yn("h"),Ce=yn("d"),q=yn("w"),G=yn("M"),Be=yn("Q"),ne=yn("y"),j=V,Z=wn("milliseconds"),W=wn("seconds"),X=wn("minutes"),Oe=wn("hours"),ie=wn("days");var xn=wn("months"),kn=wn("years"),Sn=Math.round,$n={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 En(){var e,t,n,o,i,r,a,s,l,c,u;return this.isValid()?(e=On(this._milliseconds)/1e3,t=On(this._days),n=On(this._months),(s=this.asSeconds())?(o=le(e/60),i=le(o/60),e%=60,o%=60,r=le(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=Tn(this._months)!==Tn(s)?"-":"",c=Tn(this._days)!==Tn(s)?"-":"",u=Tn(this._milliseconds)!==Tn(s)?"-":"",(s<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+a+"S":"")):"P0D"):this.localeData().invalidDate()}var Nn=Ct.prototype;return Nn.isValid=function(){return this._isValid},Nn.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},Nn.add=function(e,t){return gn(this,e,t,1)},Nn.subtract=function(e,t){return gn(this,e,t,-1)},Nn.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=R(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(bn(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)}},Nn.asMilliseconds=V,Nn.asSeconds=Y,Nn.asMinutes=Q,Nn.asHours=U,Nn.asDays=Ce,Nn.asWeeks=q,Nn.asMonths=G,Nn.asQuarters=Be,Nn.asYears=ne,Nn.valueOf=j,Nn._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(bn(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(bn(e)),e=le(n/12),n%=12,o.days=t,o.months=n,o.years=e,this},Nn.clone=function(){return Yt(this)},Nn.get=function(e){return e=R(e),this.isValid()?this[e+"s"]():NaN},Nn.milliseconds=Z,Nn.seconds=W,Nn.minutes=X,Nn.hours=Oe,Nn.days=ie,Nn.weeks=function(){return le(this.days()/7)},Nn.months=xn,Nn.years=kn,Nn.humanize=function(e,t){var n,o;return this.isValid()?(n=!1,o=$n,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(o=Object.assign({},$n,t),null!=t.s)&&null==t.ss&&(o.ss=t.s-1),t=function(e,t,n,o){var i=Yt(e).abs(),r=Sn(i.as("s")),a=Sn(i.as("m")),s=Sn(i.as("h")),l=Sn(i.as("d")),c=Sn(i.as("M")),u=Sn(i.as("w"));return i=Sn(i.as("y")),r=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||(a<=1?["m"]:a<n.m&&["mm",a])||(s<=1?["h"]:s<n.h&&["hh",s])||(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()},Nn.toISOString=En,Nn.toString=En,Nn.toJSON=En,Nn.locale=Qt,Nn.localeData=Xt,Nn.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En),Nn.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=Et,n.fn=oe,n.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},n.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=d,n.unix=function(e){return Et(1e3*e)},n.months=function(e,t){return pn(e,t,"months")},n.isDate=c,n.locale=lt,n.invalid=_,n.duration=Yt,n.isMoment=y,n.weekdays=function(e,t,n){return fn(e,t,n,"weekdays")},n.parseZone=function(){return Et.apply(null,arguments).parseZone()},n.localeData=ut,n.isDuration=Mt,n.monthsShort=function(e,t){return pn(e,t,"monthsShort")},n.weekdaysMin=function(e,t,n){return fn(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=st(e))?n._config:o,t),null==n&&(t.abbr=e),(o=new E(t)).parentLocale=it[e],it[e]=o),lt(e)):null!=it[e]&&(null!=it[e].parentLocale?(it[e]=it[e].parentLocale,e===lt()&<(e)):null!=it[e]&&delete it[e]),it[e]},n.locales=function(){return k(it)},n.weekdaysShort=function(e,t,n){return fn(e,t,n,"weekdaysShort")},n.normalizeUnits=R,n.relativeTimeRounding=function(e){return void 0===e?Sn:"function"==typeof e&&(Sn=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==$n[e]&&(void 0===t?$n[e]:($n[e]=t,"s"===e&&($n.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})()),ft.exports),vt=n(mt);(e=>{e.EN="en",e.VI="vi",e.JP="jp"})(_t=_t||{});let bt=e=>e?e+"?nocache="+Math.random():"",yt=e=>{var{itemInfo:e,hoverType:t}=e;if(!e)return!1;if(t)return t;let n;switch(t=e.type){case Le:n=Pe;break;case Ae:n=Ne;break;case Me:case De:n=Ee;break;default:n=Te}return n},wt=(e,t)=>{if(0<t)return"0px";let n;switch(e){case fe:n=(xe/2+ke)/2;break;case pe:n=-12;break;case _e:n=-20;break;case ge:n=(xe+ke)/2;break;default:n=0}return n+"px"},xt=(e,t="vi",n)=>{var o=e.type;let i="",r="",a="",s="",l=!1;if(o===V.ITEM_INFO||o===V.POLYGON){var c=yt(e),u=e.itemInfo,{icon:u,name:h,distance:d,distanceUnit:p,price:f,currencyUnit:_,unit:g}=u;switch(a=qe(u,150),i=h,c){case Pe:r=d+" "+p;break;case Ce:r="";break;case Ne:s="unset";break;case Ee:f&&(r=((e,t,n)=>e+(t?" "+t:"")+(n?"/"+H[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));break;default:return console.warn(`Type[${c}] is not handled hover`),""}}else o===V.PROMOTION?(u=e.promotion,({name:h,endDate:u,image:m}=u),u=vt(u).format("DD/MM/YYYY"),i=h,r=`${t===_t.VI?"đến":"to"} ${u} `,a=qe(m,150)):o===V.GALLERY&&((null==(t=(h=e.gallery)[0])?void 0:t.type)===Ve&&(l=!0),a=qe(null==(u=h[0])?void 0:u.file,150));var m=l?` \n [div class="popup__video" ]\n [video class="video__content" ]\n [source src=${a} type="video/mp4" /]\n [/video]\n [span class="icon-play_arrow_24x24 video__icon"] [/span]\n [/div]\n `:a&&`\n [img\n class="popup__image"\n style="height: ${s}"\n src = "${a}"\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 ${m||""} \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 `},kt=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: ${we[t]}px"]\n [div class= "pin__content "][/div]\n [div class= "pin__icon " ]\n ${(e=>{var t,n,o=et(e.props);return e=Xe(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 `},St=(e,t,n="vi")=>{if(!(e=>{if(e.type===V.ITEM_INFO){if(!e.itemInfo)return!1;if(yt(e)===Te)return!1}return!0})(t))return"";let o,i,r=0,a="",s="",l="row";var{position:c,overviewPosition:u,laserRange:h}=t;return u===he.BOTTOM_LEFT_CORNER&&c===de?'\n [div class="cvtv-poi-laser-tooltip"]\n [div class="cvtv-poi-laser-tooltip__focusing-point"][/div]\n [/div]\n ':(c===fe||c===_e?(l="column",s="50%",o="-50%",i="0px",a="unset",r=0,c===_e?(i=`calc(100% + ${wt(c,h)})`,r=1):i=""+wt(c,h)):(o=c===ge?`calc(-100% + ${wt(c,h)})`:(r=1,""+wt(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=ue,scale:i=1,distorted:r=!1}=t;let a=(t+n)*Math.pow(i,2)/2/2;return r&&!Qe(e)&&(a*=Math.sqrt(2)),(t=Math.round(a*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: ${s}; top: ${a}; transform: translate(${o}, ${i})"]\n [div class="cvtv-poi-laser-tooltip-content" style="flex-direction: ${l}"]\n ${xt(t,n,r)}\n ${kt(t)}\n [/div]\n [/div]\n [/div]\n `)},$t=(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)},Ot=(e,t,n,o=!0)=>{var i=Ke(t.code);$t(e,i,n,o),e.set(`hotspot[${i}].atv`,t.atv),e.set(`hotspot[${i}].ath`,t.ath),e.set(`hotspot[${i}].zorder`,I.FOCUSING_AREA)},Tt=(e,t,n,o=!0)=>{if(n){var i=Ke(t.code);if($t(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===V.MOVING||e.type===V.INFO?I.MIN:I.STANDARD)(t)),[V.INFO,V.MOVING,V.POPUP].includes(t.type)&&e.set(`hotspot[${i}].scale`,t.scale<=1?t.scale:1),n){let n;n=t.type===V.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 `)}}},Et=(e,t)=>C(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=Xe(t);return yield Ze(i,n,o),e.call(`addhotspot(${t.code});`),e.set(`hotspot[${t.code}].html`,Ct(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, ${I.STANDARD});\n `),new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{e.set(`hotspot[${t.code}].visible`,t.visible),n()})})}),Nt=e=>{var t=e.code,n=et(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 `:""},Pt=(e,t)=>C(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=bt(Xe(t));return yield Ze(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, ${I.STANDARD});\n `),new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{e.call(Nt(t)),e.set(`hotspot[${t.code}].visible`,t.visible),n()})})}),Ct=e=>{var t=Xe(e);return`\n [div class="cvtv-product-info-poi__marker"]\n [img width="${e.width}" height="${e.height}" src="${t}"][/img]\n [/div]`},Mt=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]`,At=(e,t)=>{var n=et(t);return(n&&n.imageStrip?Pt:Et)(e,t)},Lt=(e,t)=>C(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=Xe(t);yield Ze(i,n,o),e.call(`addhotspot(${t.code});`),e.call(`\n set(hotspot[${t.code}].url, ${bt(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, ${I.STANDARD});\n set(hotspot[${t.code}].visible, ${t.visible});\n `);let r=et(t);return new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{r&&r.imageStrip&&e.call(Nt(t)),n()})})}),Dt=e=>Math.round(e/1e3%1*1e3);class It{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;Ge(e)&&Ge(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 z.Signal,this.updateOffset=this.updateOffset.bind(this),this.onUpdateOffsets.add(this.updateOffset)}}class Ht{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 Rt extends Ht{constructor(e){super(e),this.name=U,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=Q.GYRO2}}class Ft extends Ht{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=j,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 zt=class extends Ht{constructor(e){super(e),this.name=W,this.timeout=null,this.url=Q.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 Vt{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=Qe(this.krpano),this.metadata=e.metadata,this.id=e.id,this.code=e.code,this.focusingCode=(e=>e+"_focusing")(this.code),this.hoverCode=Ke(this.code),this.type=e.type,this.name=e.name||"hs"+(Date.now()+Math.random()|0),this.url=e.url||Z.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.coordsOffset=e.coordsOffset||Se.NONE,this.popupSize=e.popupSize||"1",this.laserRange=e.laserRange||ue,this.position=e.position||de,this.overviewPosition=e.overviewPosition||he.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 ut(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=Xe(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, ${bt(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=et(this.props);this.krpano.call(`set(hotspot[${this.code}].polyline,${this.polyline});`),this.krpano.set(`hotspot[${this.code}].zorder`,I.STANDARD),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{n&&n.imageStrip&&this.krpano.call(Nt(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, ${Z.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, ${I.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){ht(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===V.PHOTO||this.type===V.VIDEO||this.type===V.MOVING||this.type===V.LENSFLARE||this.type===V.NADIR_LOGO)}hasDetailModal(){return[V.POLYGON,V.ITEM_INFO,V.PROMOTION,V.GALLERY,V.VIDEO,V.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 Yt extends Vt{constructor(e){super(e),this.info="",this.info=e.info,this.url=e.url||Z.INFO,this.type=V.INFO,this.hovering=!1,this.hoverCode=Ke(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();Tt(this.krpano,this.props,t,!1),At(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)})}}class Ut extends Vt{constructor(e){var t;super(e),this.url=e.url||Z.PIN,this.type=V.ITEM_INFO,this.hoverCode=Ke(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||He,this.autoShow=e.autoShow||se,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}=ut(this.krpano,this);return{ath:e,atv:t}}isProduct(){return this.itemInfo&&(this.itemInfo.type===Me||this.itemInfo.type===De)}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.isClickable()&&(this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch(),this.itemInfo.type!==Le)&&this.signals.stopScenario.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onClick(){if(super.onClick(),this.type===V.ITEM_INFO){if(this.hoverType===Te)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, ${I.HOVERING});`))}onOut(){this.isHoverable()&&(super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${I.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===se&&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){tt(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),Je(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 Ae:e=Ne;break;case Le:e=Pe;break;case Me:case De:e=Ee}var t={krpano:this.krpano,poi:this,lang:this.language};let n;switch(e){case Pe:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return St(e,t,n)})(t);break;case Ee:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return St(e,t,n)})({krpano:this.krpano,poi:this,lang:this.language});break;case Ne:case Ce:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return St(e,t,n)})(t);break;default:console.warn(`Type[${e}] is not handled hover`)}return n}create(e){e&&(this.onDone=e),this.itemInfo&&(ht(this)&&this.createFocusingHotspot(),e=this.itemInfo,e=Object.assign(Object.assign({},this),{itemInfo:e,position:this.position,overviewPosition:this.overviewPosition}),(e=St(this.krpano,e,this.language))&&Ot(this.krpano,this.props,e),this.focusType===Re&&((e,t)=>{if(t.type===V.ITEM_INFO){let o=(e=>e+"_focus")(t.code);var n=Mt(t);$t(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),At(this.krpano,this.props).then(()=>{super.addEvents(),this.onDone&&this.onDone(this)}))}isHoverable(){return this.hoverType!==Te}isClickable(){return this.clickType!==Te}}var jt,Wt={};var Bt,Gt,qt,Qt,Xt,Zt,Kt,Jt,en,tn,nn,on,rn,an,sn,ln,cn,un,hn,dn,pn,fn,_n,gn,mn,vn,bn,yn,wn=function(){var e,n,o,i,r,a,s,l,c,u,h,d,p;return jt||(jt=1,e=Wt,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 a=t._howls[o]._soundById(i[r]);a&&a._node&&(a._node.volume=a._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 a=t._howls[o]._soundById(i[r]);a&&a._node&&(a._node.muted=!!e||a._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,a=null;try{a="undefined"!=typeof Audio?new Audio:null}catch(e){return r}return a&&"function"==typeof a.canPlayType&&(e=a.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&&!a.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!e,opus:!!a.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(a.canPlayType('audio/wav; codecs="1"')||a.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!a.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!a.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(a.canPlayType("audio/x-m4b;")||a.canPlayType("audio/m4b;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(a.canPlayType("audio/x-mp4;")||a.canPlayType("audio/mp4;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(i||!a.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(i||!a.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!a.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(a.canPlayType("audio/x-flac;")||a.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(),a=0;a<r.length;a++){var s=t._howls[i]._soundById(r[a]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._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,_.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,a,s=0;s<e._src.length;s++){if(e._format&&e._format[s])i=e._format[s];else{if("string"!=typeof(a=e._src[s])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}i=(i=(i=/^data:audio\/([^;,]+);/i.exec(a))||/\.([^.]+)$/.exec(a.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[s];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,a=0;a<o._sounds.length;a++)o._sounds[a]._paused&&!o._sounds[a]._ended&&(r++,i=o._sounds[a]._id);1===r?e=null:i=null}}var s,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,s=l._id,o._queue.push({event:"play",action:function(){o.play(s)}}),s;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),_=1e3*f/Math.abs(l._rate),g=o._sprite[e][0]/1e3,m=(o._sprite[e][0]+o._sprite[e][1])/1e3,v=(l._sprite=e,l._ended=!1,function(){l._paused=!1,l._seek=p,l._start=g,l._stop=m,l._loop=!(!l._loop&&!o._sprite[e][2])});if(!(m<=p))return c=l._node,o._webAudio?(h=function(){o._playLock=!1,v(),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),_!==1/0&&(o._endTimers[l._id]=setTimeout(o._ended.bind(o,l),_)),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,v(),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,v(),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),_):(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 a=o._soundById(i[r]);a&&(a._muted=e,a._interval&&o._stopFade(a._id),o._webAudio&&a._node?a._node.gain.setValueAtTime(e?0:a._volume,n.ctx.currentTime):a._node&&(a._node.muted=!!n._muted||e),o._emit("mute",a._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),a=0;a<r.length;a++)(t=o._soundById(r[a]))&&(t._volume=e,i[2]||o._stopFade(r[a]),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 a=r._getSoundIds(i),s=0;s<a.length;s++){var l,c,u=r._soundById(a[s]);u&&(i||r._stopFade(a[s]),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,a[s],void 0===i))}}return r},_startFadeInterval:function(e,t,n,o,i,r){var a=this,s=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(),s+=l*i,s=Math.round(100*s)/100,s=l<0?Math.max(n,s):Math.min(n,s),a._webAudio?e._volume=s:a.volume(s,e._id,!0),r&&(a._volume=s),(n<t&&s<=n||t<n&&n<=s)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._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),a=0;a<r.length;a++)(n=o._soundById(r[a]))&&(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[a]))&&(o.pause(r[a],!0),o.play(r[a],!0));return o},rate:function(){var e,t=this,o=arguments;if(0===o.length?a=t._sounds[0]._id:1===o.length?0<=t._getSoundIds().indexOf(o[0])?a=parseInt(o[0],10):e=parseFloat(o[0]):2===o.length&&(e=parseFloat(o[0]),a=parseInt(o[1],10)),"number"!=typeof e)return((r=t._soundById(a))||t)._rate;if("loaded"!==t._state||t._playLock)t._queue.push({event:"rate",action:function(){t.rate.apply(t,o)}});else{void 0===a&&(t._rate=e);for(var i,r,a=t._getSoundIds(a),s=0;s<a.length;s++)(r=t._soundById(a[s]))&&(t.playing(a[s])&&(r._rateSeek=t.seek(a[s]),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(a[s]),i=1e3*((t._sprite[r._sprite][0]+t._sprite[r._sprite][1])/1e3-i)/Math.abs(r._rate),!t._endTimers[a[s]]&&r._paused||(t._clearTimer(a[s]),t._endTimers[a[s]]=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,a,s,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),a=function(){r&&o.play(t,!0),o._emit("seek",t)},r&&!o._webAudio?(s=function(){o._playLock?setTimeout(s,0):a()},setTimeout(s,0)):a()}}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),a=(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)){a=!1;break}return i&&a&&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 a=Object.keys(this);for(i=0;i<a.length;i++)0===a[i].indexOf("_on")&&Array.isArray(this[a[i]])&&(this[a[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);s(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+"."):s(c.response,e)},c.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete i[t],e.load())},a(c)}},a=function(e){try{e.send()}catch(t){e.onerror()}},s=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=_,void 0!==t?(t.HowlerGlobal=f,t.Howler=n,t.Howl=_,t.Sound=o):"undefined"!=typeof window&&(window.HowlerGlobal=f,window.Howler=n,window.Howl=_,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 a=this;if(a.ctx&&a.ctx.listener){var s=a._orientation;if(t="number"!=typeof t?s[1]:t,n="number"!=typeof n?s[2]:n,o="number"!=typeof o?s[3]:o,i="number"!=typeof i?s[4]:i,r="number"!=typeof r?s[5]:r,"number"!=typeof e)return s;a._orientation=[e,t,n,o,i,r],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(r,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,n,o,i,r)}return a},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 a=n._soundById(i[r]);if(a){if("number"!=typeof e)return a._stereo;a._stereo=e,a._pos=[e,0,0],a._node&&(a._pannerAttr.panningModel="equalpower",a._panner&&a._panner.pan||p(a,o),"spatial"==o?void 0!==a._panner.positionX?(a._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),a._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),a._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):a._panner.setPosition(e,0,0):a._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),n._emit("stereo",a._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),a=0;a<r.length;a++){var s=i._soundById(r[a]);if(s){if("number"!=typeof e)return s._pos;s._pos=[e,t,n],s._node&&(s._panner&&!s._panner.pan||p(s,"spatial"),void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(t,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):s._panner.setPosition(e,t,n)),i._emit("pos",s._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),a=0;a<r.length;a++){var s=i._soundById(r[a]);if(s){if("number"!=typeof e)return s._orientation;s._orientation=[e,t,n],s._node&&(s._panner||(s._pos||(s._pos=i._pos||[0,0,-.5]),p(s,"spatial")),void 0!==s._panner.orientationX?(s._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.orientationY.setValueAtTime(t,Howler.ctx.currentTime),s._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):s._panner.setOrientation(e,t,n)),i._emit("orientation",s._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((a=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,a,s=n._getSoundIds(t),l=0;l<s.length;l++)(a=n._soundById(s[l]))&&(i=a._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=a._panner)||(a._pos||(a._pos=n._pos||[0,0,-.5]),p(a,"spatial"),r=a._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)}),Wt;function f(){this.init()}function _(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 xn extends Vt{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 kn extends xn{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||Z.SOUND_PLAY,this.altUrl=e.url||Z.SOUND_PAUSE,this.type=V.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 C(this,void 0,void 0,function*(){this.ready&&!this.paused&&(this.audioObject&&this.audioObject.stop(),this.unloadAudio())})}pause(){return C(this,void 0,void 0,function*(){this.ready&&!this.paused&&this.audioObject&&this.audioObject.pause()})}play(){return C(this,void 0,void 0,function*(){var e;this.ready&&!this.started&&(this.audioObject?this.audioObject.playing()||this.audioObject.play():((e=new wn.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=Xe(this.props),t.url=bt(e),t=et(this.props))&&t.imageStrip&&this.krpano.call(`set(hotspot[${this.code}].onloaded, ${Nt(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 Sn extends xn{constructor(e){super(e),this.image=e.image,this.video=e.video,this.url=e.image?e.image.url:Z.VIDEO,this.type=V.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=Q.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, ${je(qe(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)}))}}function $n(){return Gt||(Gt=1,Bt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}),Bt}function On(){var e,n;return Zt||(Zt=1,n=function(){var e;return Qt||(Qt=1,e="object"==typeof t&&t&&t.Object===Object&&t,qt=e),qt}(),e="object"==typeof self&&self&&self.Object===Object&&self,n=n||e||Function("return this")(),Xt=n),Xt}function Tn(){var e,t;return on||(on=1,e=function(){var e;return tn||(tn=1,e=/\s/,en=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}),en}(),t=/^\s+/,nn=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}),nn}function En(){var e;return an||(an=1,e=On().Symbol,rn=e),rn}function Nn(){var e,t,n,o;return dn||(dn=1,e=En(),t=function(){var e,t,n,o,i;return ln||(ln=1,e=En(),t=Object.prototype,n=t.hasOwnProperty,o=t.toString,i=e?e.toStringTag:void 0,sn=function(e){var t=n.call(e,i),r=e[i];try{var a=!(e[i]=void 0)}catch(e){}var s=o.call(e);return a&&(t?e[i]=r:delete e[i]),s}),sn}(),n=function(){var e;return un||(un=1,e=Object.prototype.toString,cn=function(t){return e.call(t)}),cn}(),o=e?e.toStringTag:void 0,hn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(o&&o in Object(e)?t:n)(e)}),hn}function Pn(){var e,t;return gn||(gn=1,e=Nn(),fn||(fn=1,pn=function(e){return null!=e&&"object"==typeof e}),t=pn,_n=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}),_n}var Cn,Mn,An,Ln,Dn,In,Hn,Rn,Fn,zn,Vn,Yn,Un,jn,Wn,Bn,Gn=(yn||(yn=1,Dn=$n(),In=function(){var e;return Jt||(Jt=1,e=On(),Kt=function(){return e.Date.now()}),Kt}(),vn||(vn=1,zn=Tn(),Vn=$n(),Yn=Pn(),Un=/^[-+]0x[0-9a-f]+$/i,jn=/^0b[01]+$/i,Wn=/^0o[0-7]+$/i,Bn=parseInt,mn=function(e){if("number"==typeof e)return e;if(Yn(e))return NaN;if(Vn(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=Vn(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=zn(e);var t=jn.test(e);return t||Wn.test(e)?Bn(e.slice(2),t?2:8):Un.test(e)?NaN:+e}),Hn=mn,Rn=Math.max,Fn=Math.min,bn=function(e,t,n){var o,i,r,a,s,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,a=e.apply(r,n)}function f(e){var n=e-l;return void 0===l||t<=n||n<0||h&&r<=e-c}function _(){var e,n=In();if(f(n))return g(n);s=setTimeout(_,(e=t-(n-l),h?Fn(e,r-(n-c)):e))}function g(e){return s=void 0,d&&o?p(e):(o=i=void 0,a)}function m(){var e=In(),n=f(e);if(o=arguments,i=this,l=e,n){if(void 0===s)return c=e=l,s=setTimeout(_,t),u?p(e):a;if(h)return clearTimeout(s),s=setTimeout(_,t),p(l)}return void 0===s&&(s=setTimeout(_,t)),a}return t=Hn(t)||0,Dn(n)&&(u=!!n.leading,r=(h="maxWait"in n)?Rn(Hn(n.maxWait)||0,t):r,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==s&&clearTimeout(s),o=l=i=s=void(c=0)},m.flush=function(){return void 0===s?a:g(In())},m}),bn),qn=n(Gn);class Qn{constructor(e){this.code="bg"+(Date.now()+Math.random()|0),this.url=Z.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`,bt(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 Xn{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, ${I.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 Zn=.32;class Kn{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=Zn,this.hovering=!1,this.krpano=e.krpano,this.signals=e.signals,this.visible=!0,this.timeout=null,this.direction=e.direction;var t=`nav_${We()}_`+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=Z.NAVIGATION_ARROW,this.hoverUrl=Z.NAVIGATION_HIGHLIGHT,lt(this.krpano)&&(this.scale=.4),t=200*this.scale;switch(this.oy=-t,this.direction){case ce.NORTH:break;case ce.SOUTH:this.ry+=180;break;case ce.EAST:this.ry+=90;break;case ce.WEST:this.ry+=-90;break;case ce.NORTH_EAST:this.ry+=45;break;case ce.NORTH_WEST:this.ry+=-45;break;case ce.SOUTH_EAST:this.ry+=135;break;case ce.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, ${I.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, ${I.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=Zn,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?Zn:.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 Jn extends Vt{constructor(e){super(e),this.url=e.url||Z.GALLERY,this.type=V.GALLERY,this.gallery=e.gallery,this.hoverCode=Ke(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}=ut(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, ${I.HOVERING});`)}onOut(){super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${I.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),Je(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=St(this.krpano,e,this.language);Ot(this.krpano,this.props,e)}create(e){e&&(this.onDone=e),ht(this)&&this.createFocusingHotspot(),this.renderLaserTooltip(),At(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)})}}class eo extends Vt{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||Z.MOVING,this.metadata=e.metadata,this.type=V.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,a,s,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, ${I.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, ${a});\n set(hfla._alpha, ${a});\n set(hfla.rscale, ${c});\n set(hfla.ralpha, ${u});\n set(hfla.ralphaminus, ${h});\n set(hfla.zorder, ${s});\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, ${a})\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 to extends Vt{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||Z.MOVING,this.type=V.MOVING,this.isLookAt=!1,this.previewType=e.previewType||te,this.label=e.label||"",this.previewType===ne?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||$e,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=Ke(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===ne&&(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="${bt(Xe(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){Lt(this.krpano,this.props),setTimeout(()=>{super.addEvents()},500),e&&e(this)}create(e){if(this.displayType===Oe)this.createRoomNameCard(e);else if(this.previewType===te||this.previewType===oe)this.alwaysOnFloor?this.createOnFloor(e):super.create(e);else{var t=this.getHoverContent(),n=Object.assign(Object.assign({},this.props),this.getHoverPosition());let o;Tt(this.krpano,n,t,!1),(o=(this.alwaysOnFloor?Lt:At)(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!==Oe}}class no extends Vt{constructor(e){super(e),this.image=e.image,this.url=this.image?this.image.url:void 0,this.rotatewithview=e.rotatewithview||!1,this.type=V.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 oo extends Vt{constructor(e){super(e),this.image=e.image,this.url=e.image?e.image.url:Z.PHOTO,this.type=V.PHOTO}create(e){super.create(e),this.krpano.call(`set(hotspot[${this.code}].capture,false);`)}onOut(){}onOver(){}isHideable(){return!1}}class io extends Ut{constructor(e){super(e),this.type=V.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}),Tt(this.krpano,t,e)),setTimeout(()=>{this.addEvents()},200),this.onDone)&&this.onDone(this)}}class ro extends Vt{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||Z.POPUP,this.type=V.POPUP,this.text=e.text,this.image=e.image,this.iframe=e.iframe,this.webRotateCode=e.webRotateCode,this.label=e.label||"",this.hoverCode=Ke(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});Tt(this.krpano,n,t,!1),this.krpano.set(`hotspot[${this.hoverCode}].visible`,!0),At(this.krpano,n).then(()=>{super.addEvents(),e&&e(this)})}}(e=>{e.NEW_TAB="NEW_TAB",e.IFRAME="IFRAME",e.BUILD_IN="BUILD_IN"})(Cn=Cn||{});class ao extends Vt{constructor(e){super(e),this.url=e.url||Z.PROMOTION,this.type=V.PROMOTION,this.promotion=e.promotion,this.hoverCode=Ke(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}=ut(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, ${I.HOVERING});`)}onOut(){super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${I.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){tt(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),Je(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=St(this.krpano,this,this.language);Ot(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&&vt(o).isBefore(new Date)&&vt(n).isAfter(new Date)&&(ht(this)&&this.createFocusingHotspot(),(e=>C(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=je(qe(t,(this.width||0)*(this.scale||1)))).then(t=>{t&&(this.renderLaserTooltip(),At(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)}))}))}hasDetailModal(){return this.promotion&&this.promotion.openType===Cn.BUILD_IN}}(e=>{e.NONE="NONE",e.SEMICIRCLE="SEMICIRCLE",e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"})(Mn=Mn||{});class so extends Vt{constructor(e){super(e),this.menuStyle=Mn.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?I.HOVERING:I.STANDARD)},e?0:.2)},this.textures=e.textures,this.textureIndex=e.textureIndex||0,this.menuStyle=e.menuStyle,this.url=Z.TEXTURE,this.type=V.TEXTURE,this.menuContextMask=this.code+"_context_mask",this.bannerVisible=!1,this.keepHover=!1,this.hovering=!1,this.isLookAt=ht(this),this.hoverTimeout=null,this.hoverCode=Ke(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,a=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}, ${a});\n div(yaw_${this.getElementName(n)}, ${o}, -${a});\n div(pitch_${this.getElementName(n)}, ${i}, ${a});\n div(roll_${this.getElementName(n)}, ${r}, -${a});\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)}, ${a});\n mul(hotspot[${this.getElementName(n)}].atv, pitch_${this.getElementName(n)}, ${a});\n mul(hotspot[${this.getElementName(n)}].rotate, roll_${this.getElementName(n)}, ${a});\n ');\n `)}create(e){var t;super.create(e),this.krpano.call(`set(hotspot[${this.code}].zorder,' ${I.STANDARD}');`),this.overviewPosition!==he.NONE&&(ht(this)&&this.createFocusingHotspot(),e=St(this.krpano,this,this.language),Ot(this.krpano,this.props,e)),this.textures&&0!==this.textures.length&&(this.textures.forEach((e,t)=>{var n=e.image;n=bt(n.file.url);this.createTexture(n,e,t)}),this.menuStyle!==Mn.NONE)&&(e=[Mn.HORIZONTAL].includes(this.menuStyle)?800:320,t=[Mn.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, ${I.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(),ht(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){ht(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),Je(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 lo{constructor(e){this.navPois={},this.orderIndex=0,this.north=0,this.tags=[],this.showNavigationHotspots=!1,this.showNavigationWithoutMovingHotspot=!1,this.showNavigationHotspotLabels=!1,this.debounceAutoShowHotspot=qn(()=>{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=nt(this.krpano);let a=this.hlookat,s=this.vlookat;t&&(({hChanged:t,vChanged:l,ignoreNorth:o=!1}=t),s=l,a=o?t:at(this.north+t));var l=(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})({hlookat:a,vlookat:s,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:a}=this.viewLimitConfig;if(e===J){let e=n||-90,s=t||90,l=i||-360,c=o||Ue;this.setOnViewChangeEvents(()=>{this.krpano.call(`clamp(view.vlookat,${a+e},${a+s})`),-360===Math.round(l)&&Math.round(c)===Ue||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=[V.PROMOTION,V.ITEM_INFO,V.POLYGON,V.GALLERY,V.TEXTURE];var e=this.pois.map(e=>{if(e.visible&&i.includes(e.type)&&(e.itemInfo||e.promotion||e.gallery)){try{var r,a=this.getHorizontalDisplayDeg(e,o),s=this.krpano.spheretospace(t,n);if(rt(t,n,e.ath,e.atv).h<a)return r=this.krpano.spheretospace(e.ath,e.atv),{poi:e,dist:st(s,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(ce).forEach(t=>{var n=(e=>{switch(e){case ce.NORTH:return[{min:-23,max:23}];case ce.NORTH_EAST:return[{min:24,max:67}];case ce.EAST:return[{min:68,max:113}];case ce.SOUTH_EAST:return[{min:114,max:157}];case ce.NORTH_WEST:return[{max:-24,min:-67}];case ce.WEST:return[{max:-68,min:-113}];case ce.SOUTH_WEST:return[{max:-114,min:-157}];case ce.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=at(Math.round(i.ath||0));let a=Math.round(r-this.north);a<-180?a+=360:180<a&&(a-=360),n.some(({max:e,min:t})=>a>=t&&a<=e)&&(o.push(i),e.splice(t,1))}if(o.length){var a=o.reduce((e,t)=>{var{poi:n,distance:o}=e,i=it(t.ath,90,t.ath,t.atv);return!n||i<o?{poi:t,distance:i}:e},{poi:null,distance:0}).poi;if(a){let e;this.movingPoiByDirection[t]=a,this.navPois||(this.navPois={}),this.canShowMovingHotspotLabel(a)&&({label:e}=a),this.navPois[t]=new Kn({krpano:this.krpano,signals:this.poiSignals,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),rt(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===V.ITEM_INFO&&this.showIfHotspotInRange(e),e.type===V.PROMOTION&&this.showIfHotspotInRange(e),e.type===V.GALLERY)&&this.showIfHotspotInRange(e)})},this.isMovingHotspotWithNamePlate=e=>e.type===V.MOVING&&e.displayType===Oe,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=it(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=it(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 s=1;(e=>e.get("device.tablet"))(this.krpano)?s=.75:lt(this.krpano)&&(s=.5);var e=250/s,t=500/s,n=this.krpano.getView(),o=at(Math.round(n.vlookat))+25,i=n.hlookat,r=at(Math.round(i-103)),a=at(Math.round(i+103));let l=[];a<r?r<0?(l.push({min:r,max:0}),l.push({min:0,max:180}),l.push({min:-180,max:a})):0<a?(l.push({min:r,max:180}),l.push({min:-180,max:0}),l.push({min:0,max:a})):(l.push({min:r,max:180}),l.push({min:-180,max:a})):l.push({min:r,max:a}),r=at(Math.round(i-30)),a=at(Math.round(i+30));let c=[];a<r?(c.push({min:r,max:180}),c.push({min:-180,max:a})):c.push({min:r,max:a}),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"),a=this.krpano.get("space_y"),o=this.krpano.get("space_z");let u=t-(90-i)/68*(t-e),h=r*u/a,d=o*u/a;Object.values(ce).forEach(e=>{var t,n;this.navPois[e]&&(t=!!(n=(e=>{switch(e){case ce.NORTH:return[0];case ce.NORTH_EAST:return[45];case ce.EAST:return[90];case ce.SOUTH_EAST:return[135];case ce.NORTH_WEST:return[-45];case ce.WEST:return[-90];case ce.SOUTH_WEST:return[-135];case ce.SOUTH:return[180,-180]}return null})(e))&&n.some(e=>{let t=at(Math.round(e+this.north));return l.some(({min:e,max:n})=>t>=e&&t<=n)}),n=!!n&&n.some(e=>{let t=at(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===ne||e.previewType===oe)&&!!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.poiSignals=e.poiSignals,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||K,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||G.DEFAULT,this.showNavigationHotspots=e.showNavigationHotspots||!1,this.showNavigationWithoutMovingHotspot=e.showNavigationWithoutMovingHotspot||!1,this.showNavigationHotspotLabels=e.showNavigationHotspotLabels||!1,this.movingHotspotsHidden=this.showNavigationHotspots&&this.showNavigationWithoutMovingHotspot,this.isMobileDevice=Qe(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.poiSignals,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 V.MOVING:n=new to(o);var i=We();(this.movingPoisMap[i]=n).precision||this.floorMovingPois.push(i);break;case V.INFO:n=new Yt(o);break;case V.SOUND:n=new kn(o);break;case V.POPUP:n=new ro(o);break;case V.PHOTO:n=new oo(o);break;case V.VIDEO:n=new Sn(o);break;case V.ITEM_INFO:(i=o).autoShow=this.autoShowType,n=new Ut(i);break;case V.POLYGON:n=new io(i=o);break;case V.LENSFLARE:n=new eo(i=o);break;case V.NADIR_LOGO:(i=o).zenith?this.zenithLogo=new no(i):this.nadirLogo=new no(i);break;case V.PROMOTION:n=new ao(i=o);break;case V.GALLERY:n=new Jn(i=o);break;case V.TEXTURE:n=new so(i=o)}this.movingHotspotsHidden&&t.type===V.MOVING&&!n.precision||n&&this.pois.push(n)})),this.bgPoi=new Qn({krpano:this.krpano}),this.buildNavigationHotspots(),this.isMobileDevice||(console.log(this.poiSignals),this.floorPoi=new Xn({krpano:this.krpano,signals:this.poiSignals,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=Be(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(Be(o))?n:t).push(o)}),t.forEach(e=>{e.toggleVisibility(!0,!0)}),n.forEach(e=>{e.toggleVisibility(!1,!0)})}}autoShowHotspots(){this.autoShowType===se?this.showHotspotsInRange():this.autoShowType===le&&this.showHotspotNearestToCenter()}}let co="new",uo="played",ho="paused",po="stopped",fo="completed";class _o{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=co,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 C(this,arguments,void 0,function*(e=!1){this.soundObject&&this.soundObject.pause(),!0===e&&this.setPosition(0)})}play(){return C(this,void 0,void 0,function*(){if(this.soundEnabled)if(this.soundObject)this.soundObject.playing()||this.soundObject.play();else{let e=new wn.Howl({src:[""+this.sound.url],loop:this.loop,volume:this.volume,autoplay:!0,mute:this.muted,onend:()=>{this.status=fo,this.handlePlayingChange(),e.loop||this.unloadAudio(),this.resetProgressInterval()},onplay:()=>{this.status=uo,this.handlePlayingChange(),this.trackDuration&&this.initProgressInterval()},onpause:()=>{this.status=ho,this.handlePlayingChange(),this.resetProgressInterval()},onstop:()=>{this.status=po,this.handlePlayingChange(),this.resetProgressInterval()},onplayerror:this.onPlayError});e.play(),this.soundObject=e}})}onPlayError(){this.soundObject&&this.soundObject.once("unlock",this.play)}stop(){return C(this,void 0,void 0,function*(){this.soundObject&&this.soundObject.stop(),this.unloadAudio()})}toggle(){return C(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===uo}isPaused(){return this.status===ho}setPosition(e){var t=this.getSoundObject();t&&t.seek(e)}}class go extends _o{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 C(this,void 0,void 0,function*(){this.play()})}}class mo{constructor(e){var t;this.scenes=[],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=re,this.loadingScene=!1,this.webGLSupported=!1,this.autoplayReplay=!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.getBlendValue=()=>{let e=G.DEFAULT,t=B.NORMAL;return this.blendSpeed&&B[this.blendSpeed]&&(t=B[this.blendSpeed]),this.blendMode&&G[this.blendMode]?G[this.blendMode].replace("{level}",t.toString()):e},this.setCanChangeScene=e=>{!this.canChangeScene&&e?setTimeout(()=>{this.canChangeScene=!0},1e3):this.canChangeScene=!1},this.loadScene=(e,t,n,o)=>C(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(e=>new Promise(t=>setTimeout(()=>{t()},e)))(1e3*t)),this.updateRadar(i)):console.error("cannot find scene by code: "+e))}),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=nt(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||Ye),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 kn||t instanceof Sn)||t.stop()})},this.pauseCurrentSceneMedia=()=>{var e=this.getActiveScene();e&&e.pois.forEach(e=>{(e instanceof kn||e instanceof Sn)&&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,a,s=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,a=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);s=(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,a=n.vlookat),(null!=t&&t.keepViewAfterMoving||this.keepViewOnSceneChanged)&&void 0!==r&&void 0!==a&&(i=this.getViewChangedValues(r,a)),this.loadScene(e,s,i,null==t?void 0:t.blendMode)}},this.setupSoundPlugin=()=>{var e=!!this.props.scenes.find(e=>!!e.pois.find(e=>e.type===V.SOUND));this.props.bgSound&&this.props.bgSound.enable||this.props.tourScenario||e?(this.plugins.sound=new zt({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!==ie){let e;switch(this.singleClick){case re:break;case ae:e=()=>{this.moveToClosestSceneDisabled?this.moveToClosestSceneDisabled=!1:this.moveToClosestScene()}}e&&(this.krpano.set("events.onsingleclick",()=>{e()}),this.poiSignals.floorPoiClick.add(()=>{e()}))}this.poiSignals.toggleLabels.add(this.toggleLabels),this.krpano.set("events.onmousedown",this.handleOnMouseDown),this.krpano.set("events.onmouseup",this.handleOnMouseUp),this.poiSignals.poiMouseUp.add(this.handleOnMouseUp),this.poiSignals.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.sceneSignals.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,a=this.mapKrpanoVars(o,i,r),s=(this.startingScene=a.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=""+bt(this.props.sourceXml.url);embedpano({swf:e,xml:t,target:this.elementId,id:this.code,mwheel:this.mwheel,vars:a,consolelog:!1,webglsettings:s,onready:e=>{this.krpano=new It(e),this.webGLSupported=this.krpano.get("device.webGL"),this.scenes=this.props.scenes.map(e=>new lo(Object.assign(Object.assign({},e),{krpano:this.krpano,tourUrl:this.props.sourceFolder.url,signals:this.sceneSignals,poiSignals:this.poiSignals,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()}))),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.poiSignals.poiOver.add(e)},this.fireOnPoiHover=e=>{this.poiSignals.poiHover.add(e)},this.fireOnPoiOut=e=>{this.poiSignals.poiOut.add(e)},this.fireOnPoiClick=e=>{this.poiSignals.poiClick.add(e)},this.fireOnRootPoiClick=e=>{this.poiSignals.poiClicked.add(e)},this.fireOnMovingPoiClicked=e=>{this.poiSignals.movingPoiClick.add(e)},this.fireOnPoiMediaStarted=e=>{this.poiSignals.poiMediaPlayed.add(e)},this.fireOnPoiMediaPaused=e=>{this.poiSignals.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.poiSignals.toggleFloorPoi.add(e)},this.fireOnSoundPlayable=e=>{this.signals.soundReady.add(e)},this.fireOnTexturePoiHover=e=>{this.poiSignals.texturePoiHover.add(e)},this.fireOnTexturePoiClick=e=>{this.poiSignals.texturePoiClick.add(e)},this.fireOnTexturePoiTouched=e=>{this.poiSignals.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.poiSignals.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}=ct(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.handleOnSoundPluginLoaded=()=>{this.krpano&&(this.props.bgSound&&this.props.bgSound.enable&&this.props.bgSound.sound&&(this.backgroundSound=new go(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(()=>C(this,void 0,void 0,function*(){this.backgroundSound.changeVolume(this.backgroundVolumeDuringAGT/100)})),this.signals.playingSoundActionStopped.add(()=>C(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,a,s,l=0;if(null!=n&&null!=o&&(a=n,s=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())&&(a=n.hlookat,s=n.vlookat),this.keepViewOnSceneChanged&&void 0!==a&&void 0!==s&&(r=this.getViewChangedValues(a,s)),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.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||D.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 z.Signal,backgroundSoundClick:new z.Signal,autoRotateOneRound:new z.Signal,autoRotateStart:new z.Signal,autoRotateStop:new z.Signal,backgroundGrab:new z.Signal,onLoadedPlugin:new z.Signal,startLoadingScene:new z.Signal,finishLoadingScene:new z.Signal,onViewChanged:new z.Signal,soundReady:new z.Signal,toggleHotspotsVisibility:new z.Signal,toggleHotspotNearestToCenter:new z.Signal,setSubtitleText:new z.Signal,playingSoundActionExecuted:new z.Signal,playingSoundActionStopped:new z.Signal,openFunctionButton:new z.Signal,muteSound:new z.Signal,openMinimap:new z.Signal},this.sceneSignals={toggleHotspotNearestToCenter:new z.Signal,updateViewChangedEvents:new z.Signal},this.poiSignals={poiOver:new z.Signal,poiOut:new z.Signal,poiHover:new z.Signal,poiClick:new z.Signal,poiClicked:new z.Signal,movingPoiClick:new z.Signal,poiMediaPlayed:new z.Signal,poiMediaPaused:new z.Signal,poiMouseUp:new z.Signal,floorPoiClick:new z.Signal,navigationPoiClick:new z.Signal,texturePoiHover:new z.Signal,texturePoiClick:new z.Signal,texturePoiTouched:new z.Signal,toggleLabels:new z.Signal,toggleFloorPoi:new z.Signal,stopScenario:new z.Signal}}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 Ut||e instanceof Yt)&&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 Ft({krpano:this.krpano,url:Q.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(Y)],this.scenes.forEach(e=>{var t;null!=(t=e.toggleLabelVisibility)&&t.call(e,this.hiddenLabelTypes)}),(e=this.getActiveScene())&&e.showHotspotNearestToCenter()}updateContextMenu(){this.krpano&&this.krpano.call("\n set(contextmenu.fullscreen, false);\n set(contextmenu.versioninfo, false);\n ")}setupNonSoundPlugins(){this.plugins.gyro=new Rt({krpano:this.krpano,signals:this.signals}),this.plugins.gyro.load()}}let vo=e=>C(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"]),a=new URL(""+t+n);return i&&Object.keys(i).forEach(e=>i[e]&&a.searchParams.append(e,i[e])),fetch(a,Object.assign({method:o},r))}),bo=()=>{let{apiHost:e,elementId:t,overrideConfigs:n={},listeners:o}=P(),{tourCode:i,language:r}=n,[a,s]=$.useState(null),[l,c]=$.useState(null),[u,h]=$.useState(null),[d,p]=$.useState(!1),[,f]=$.useState(""),[,_]=$.useState(!1),[,g]=$.useState(!1),[,m]=$.useState(!0),[v,b]=$.useState(null),y=()=>{var e;v&&(e=v.getActiveScene())&&(null!=o&&o.onSceneChanged&&o.onSceneChanged(e),e.showHotspotNearestToCenter(),f(e.code),_(!0))},w=()=>{v&&(v&&null!=o&&o.onTourLoaded&&o.onTourLoaded(v),v.fireOnSceneCompleted(y),setTimeout(()=>{C(void 0,void 0,void 0,function*(){if(v&&a)try{let e=v.startingScene;a.scenes.find(t=>t.code===e)}catch(e){console.error("Preloading start scene failed")}finally{g(!0)}else g(!0)}),v.fireOnPoiOver(({})=>{}),v.fireOnPoiHover(e=>{}),v.fireOnPoiOut(()=>{}),v.fireOnPoiClick(e=>{}),v.fireOnBackgroundSoundClick(e=>{}),v.fireOnBackgroundGrab(e=>{}),v.fireOnLoadedPlugin((e,t)=>{}),v.fireOnMovingPoiClick((e,t)=>{}),v.fireOnStartLoadingScene(()=>{}),v.fireOnFinishLoadingScene(()=>{}),v.fireOnViewChanged(e=>{}),v.fireOnTexturePoiHover(e=>{}),v.fireOnTexturePoiTouched(e=>{}),v.fireOnTexturePoiClick(e=>{}),v.fireOnHotspotNearestToCenter(e=>{}),v.fireOnSetSubtitleText(e=>{}),v.fireOnOpenFuncButton(e=>{}),v.fireOnOpenMinimap(e=>{}),m(!1)},500))};$.useEffect(()=>{C(void 0,void 0,void 0,function*(){try{var e=yield vo({host:q,path:X,headers:{"Content-Type":"application/json"}});return JSON.parse(yield e.text())||null}catch(e){return console.error(e),null}}).then(e=>{c(e)})},[]),$.useEffect(()=>{i&&e&&!a&&(e=>C(void 0,void 0,void 0,function*(){var t,{apiHost:t,language:n,code:o}=e;return(t=yield(yield vo({host:t,path:"/v1/ext/tours/"+o,headers:{language:n}})).json())&&t.scenes&&t.scenes.sort((e,t)=>Dt(e.orderIndex||0)-Dt(t.orderIndex||0)),t}))({apiHost:e,language:r,code:i}).then(e=>{s(e)})},[i,e]),$.useEffect(()=>{i&&e&&a&&!u&&(e=>C(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o}=e;return yield(yield vo({host:t,path:`/v1/ext/tours/${o}/floorplans`,headers:{language:n}})).json()}))({apiHost:e,language:r,code:i}).then(e=>{h(e)})},[a,e,i]),$.useEffect(()=>{a&&!d&&setTimeout(()=>{p(!0)},500)},[a]),$.useEffect(()=>{var e;if(a&&t&&d){let t=new mo(Object.assign(Object.assign({},a),{metadata:l||void 0,soundEnabled:!(null==(e=a.bgSound)||!e.enable)}));return b(t),()=>{t&&t.destroy()}}},[a,t,d]),$.useEffect(()=>{v&&v.load({elementId:t,onLoaded:w})},[v])},yo=()=>{var e=P().elementId;return bo(),m.jsx("div",{className:"w-full h-full",id:e})},wo=e=>m.jsx(N,{config:{apiHost:e.apiHost,elementId:e.elementId,overrideConfigs:e.config,listeners:{onTourLoaded:t=>{e.onLoaded(t),null!=e&&e.onTourLoaded&&e.onTourLoaded(t)},onSceneChanged:e.onSceneChanged,onViewChanged:e.onViewChanged,onPoiOver:e.onPoiOver,onPoiOut:e.onPoiOut,onPoiClicked:e.onPoiClicked}},children:m.jsx(yo,{})});var xo=function(){var e,n,o,i,r,a,s,l,c,u,h,d,p,f;return Ln||(Ln=1,e=NaN,n="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=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()},An=function(e,t,n){var o,i,r,a,s,l,c=0,u=!1,h=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=o,r=i;return o=i=void 0,c=t,a=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);s=setTimeout(y,(e=t-(n-l),h?p(e,r-(n-c)):e))}function w(e){return s=void 0,m&&o?v(e):(o=i=void 0,a)}function x(){var e=f(),n=b(e);if(o=arguments,i=this,l=e,n){if(void 0===s)return c=e=l,s=setTimeout(y,t),u?v(e):a;if(h)return s=setTimeout(y,t),v(l)}return void 0===s&&(s=setTimeout(y,t)),a}return t=g(t)||0,_(n)&&(u=!!n.leading,r=(h="maxWait"in n)?d(g(n.maxWait)||0,t):r,m="trailing"in n?!!n.trailing:m),x.cancel=function(){void 0!==s&&clearTimeout(s),o=l=i=s=void(c=0)},x.flush=function(){return void 0===s?a:w(f())},x}),An;function _(e){var t=typeof e;return e&&("object"==t||"function"==t)}function g(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=_(t)?_(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||a.test(t)?s(t.slice(2),c?2:8):i.test(t)?e:+t}}(),ko=n(xo),So="undefined"!=typeof window?$.useLayoutEffect:$.useEffect;function $o(e,t=500,n){let o=$.useRef();!function(e){let t=$.useRef(e);t.current=e,$.useEffect(()=>()=>{t.current()},[])}(()=>{o.current&&o.current.cancel()});var i=$.useMemo(()=>{let i=ko(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 $.useEffect(()=>{o.current=ko(e,t,n)},[e,t,n]),i}var Oo,To="undefined"==typeof window;function Eo(e={}){let{initializeWithValue:t=!0}=e,[n,o]=(To&&(t=!1),$.useState(()=>t?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0})),i=$o(o,e.debounceDelay);function r(){(e.debounceDelay?i:o)({width:window.innerWidth,height:window.innerHeight})}return function(e,t,n,o){let i=$.useRef(t);So(()=>{i.current=t},[t]),$.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),So(()=>{r()},[]),n}(e=>{e.IFRAME="IFRAME",e.NEW_TAB="NEW_TAB"})(Oo=Oo||{});let No={key:"NAVIGATION_ARROWS"},Po={key:"SIMULATION_VR"},Co={key:"SOUND"},Mo={key:"FULLSCREEN"},Ao={key:"HOTSPOT"},Lo={key:"SHARE"},Do={key:"SEARCH"},Io=$.createContext(void 0),Ho=({children:e,config:t})=>{var[n,o]=$.useState(!1),[i,r]=$.useState(!1),[a,s]=$.useState(!1);let[l,c]=$.useState(!1),[u,h]=$.useState(!1),[d,p]=$.useState(!1),[f,_]=$.useState(!1);var[g,v]=$.useState(!1);let[b,y]=$.useState(!1),[w,x]=$.useState(!1),[k,S]=$.useState(!1);var[O,T]=$.useState(!1),[E,N]=$.useState([]),[P,C]=$.useState(void 0),[M,A]=$.useState(void 0),L=$.useMemo(()=>({[Mo.key]:f,[Ao.key]:u,[No.key]:l,[Po.key]:b,[Co.key]:d,[Do.key]:w,[Lo.key]:k}),[f,u,l,b,w,d,k]);return m.jsx(Io.Provider,{value:{mobile:t.mobile,soundPlaying:d,showGuide:i,activeFunctionButtonCode:P,showChatBtn:n,showFloorplan:a,showNavigationArrows:l,showHotspotLabels:u,setShowFloorplan:s,setActiveFunctionButtonCode:C,setShowChatBtn:o,setShowNavigationArrows:c,setShowGuide:r,setSoundPlaying:p,setShowHotspotLabels:h,hiddenPoiLabelTypes:E,setHiddenPoiLabelTypes:N,fullscreen:f,setFullscreen:_,showChatbox:g,setShowChatbox:v,setCanUseGyroscope:y,visibleActions:L,setMenuOpened:x,setShowShareLink:S,canUseGyroscope:b,menuOpened:w,showShareLink:k,playingAgt:O,setPlayingAgt:T,gallery:M,setGallery:A},children:e})},Ro=()=>{var e=$.useContext(T).tour,t=(()=>{var e=O.useContext(Io);if(void 0===e)throw new Error("useLayout must be used within a LayoutProvider");return e})().mobile,n=Eo().width,o=$.useMemo(()=>"calc(var(--screen-width) / 2 - 16px)",[]);e=null==e?void 0:e.props;return m.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)&&m.jsx("img",{src:e.tourLogo.file.url,alt:"logo"}),!(null==e||!e.showTourName)&&!t&&m.jsx("span",{children:e.name})]})},Fo=()=>{var{}=$.useContext(T),[,,]=$.useState(null),[,,]=$.useState(!1);return m.jsxs(m.Fragment,{children:[m.jsx(Ro,{}),m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"cvtc-beta-tour__group-action"}),m.jsx("div",{className:"cvtc-beta-tour__group-pin-action"})]})]})},zo=$.createContext(void 0),Vo=({children:e,config:t})=>{let[n,o]=$.useState(Object.assign({},t));return $.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]),m.jsx(zo.Provider,{value:n,children:e})},Yo=e=>m.jsx(Vo,{config:{apiHost:e.apiHost,elementId:e.elementId,overrideConfigs:e.config,listeners:{onTourLoaded:e.onTourLoaded,onSceneChanged:e.onSceneChanged,onViewChanged:e.onViewChanged,onPoiOver:e.onPoiOver,onPoiOut:e.onPoiOut,onPoiClicked:e.onPoiClicked}},children:e.tourLoaded&&m.jsx(Ho,{config:{mobile:e.mobile},children:m.jsx(Fo,{})})}),Uo=e=>{let t=$.useContext(T),[n,o]=$.useState(!1);return m.jsxs("div",{className:"w-full h-full",children:[m.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}'}),m.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}'}),m.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"}'}),m.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%}}"}),m.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)}}'}),m.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}"}),m.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)}"}),m.jsx(wo,Object.assign({},e,{onLoaded:e=>{t.tour=e,o(!0)}})),m.jsx(Yo,Object.assign({},e,{tourLoaded:n}))]})};class jo 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.onTourLoaded=e.onTourLoaded,this.onSceneChanged=e.onSceneChanged,this.onViewChanged=e.onViewChanged,this.onPoiOver=e.onPoiOver,this.onPoiOut=e.onPoiOut,this.onPoiClicked=e.onPoiClicked,this.render()}connectedCallback(){this.apiHost&&this.render()}render(){S.render(m.jsx(Uo,{elementId:this.elementId,apiHost:this.apiHost||"",config:this.config||{tourCode:""},mobile:this.mobile,onTourLoaded:this.onTourLoaded,onSceneChanged:this.onSceneChanged,onViewChanged:this.onViewChanged,onPoiOver:this.onPoiOver,onPoiClicked:this.onPoiClicked,onPoiOut:this.onPoiOut}),this)}}let Wo=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,jo))},Bo={initVisualizer:Wo,destroy:()=>{}};(e=>{"undefined"!=typeof window&&(window.ShowroomVisualizer=Object.assign({},e))})(Bo);export{Bo as default};
|