@realsee/dnalogel 2.1.2-alpha.14 → 2.1.2-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.js +65 -63
- package/dist/index.umd.js +2 -2
- package/docs/classes/CruisePluginController.html +4 -4
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +4 -4
- package/docs/classes/PaintBrush.html +4 -4
- package/docs/classes/PanoTagPluginController.html +4 -4
- package/docs/classes/Util.BetterTween.html +4 -4
- package/docs/classes/Util.FivePointSelector.html +4 -4
- package/docs/classes/Util.Interval.html +4 -4
- package/docs/classes/Util.Magnifier.html +4 -4
- package/docs/classes/Util.PointDomHelper.html +4 -4
- package/docs/classes/Util.PointHelper.html +4 -4
- package/docs/classes/Util.Rectangle.html +4 -4
- package/docs/enums/CameraMovementEffect.html +4 -4
- package/docs/enums/ContentType.html +4 -4
- package/docs/enums/DIRECTION.html +4 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/DimensionType.html +4 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/LinkType.html +4 -4
- package/docs/enums/PaintBrushTypeEnum.html +4 -4
- package/docs/enums/PointType.html +4 -4
- package/docs/enums/Rotation.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
- package/docs/interfaces/ContentTypeMap.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +4 -4
- package/docs/interfaces/FloorplanEntrance.html +4 -4
- package/docs/interfaces/FloorplanExtraObject.html +4 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
- package/docs/interfaces/FloorplanFloorData.html +4 -4
- package/docs/interfaces/FloorplanImagePosition.html +4 -4
- package/docs/interfaces/FloorplanObserver.html +4 -4
- package/docs/interfaces/FloorplanOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanPosition.html +4 -4
- package/docs/interfaces/FloorplanRoomItem.html +4 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +4 -4
- package/docs/interfaces/FloorplanServerData.html +4 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
- package/docs/interfaces/FloorplanServerEntrance.html +4 -4
- package/docs/interfaces/FloorplanServerFloorData.html +4 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
- package/docs/interfaces/FloorplanServerObserver.html +4 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanServerPosition.html +4 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/ItemLabelPluginData.html +4 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/LineJson.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
- package/docs/interfaces/ModelViewPluginExportType.html +4 -4
- package/docs/interfaces/Object3DHelperState.html +4 -4
- package/docs/interfaces/OpenParameter.html +4 -4
- package/docs/interfaces/PaintBrushAction.html +4 -4
- package/docs/interfaces/PaintBrushConfigs.html +4 -4
- package/docs/interfaces/PaintBrushState.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginState.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
- package/docs/interfaces/Point.html +4 -4
- package/docs/interfaces/PointJson.html +4 -4
- package/docs/interfaces/Room.html +4 -4
- package/docs/interfaces/RoomInfo.html +4 -4
- package/docs/interfaces/RoomLabel.html +4 -4
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +4 -4
- package/docs/interfaces/TagConfig.html +4 -4
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/Util.MagnifierParameter.html +4 -4
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeyArray.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/VERSION.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoTagPlugin/Components/Common/Media.js +54 -52
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +33 -31
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +4 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +34 -32
- package/libs/PanoTagPlugin/Components/TagWrapper.js +4 -2
- package/libs/index.js +92 -90
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var pr=Object.defineProperty,gr=Object.defineProperties;var Ar=Object.getOwnPropertyDescriptors;var Nn=Object.getOwnPropertySymbols;var vr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable;var qt=(o,t,e)=>t in o?pr(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,j=(o,t)=>{for(var e in t||(t={}))vr.call(t,e)&&qt(o,e,t[e]);if(Nn)for(var e of Nn(t))br.call(t,e)&&qt(o,e,t[e]);return o},V=(o,t)=>gr(o,Ar(t));var m=(o,t,e)=>(qt(o,typeof t!="symbol"?t+"":t,e),e);var F=(o,t,e)=>new Promise((n,s)=>{var r=c=>{try{l(e.next(c))}catch(d){s(d)}},a=c=>{try{l(e.throw(c))}catch(d){s(d)}},l=c=>c.done?n(c.value):Promise.resolve(c.value).then(r,a);l((e=e.apply(o,t)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const zt=require("@tweenjs/tween.js"),ee=require("@realsee/five"),M=require("three"),Mt=require("three/examples/jsm/renderers/CSS3DRenderer"),ls=require("@realsee/five/line"),i=require("svelte/internal"),Z=require("svelte"),Se=require("svelte/easing"),me=require("svelte/transition"),kn=require("svelte/store"),cs=require("three/examples/jsm/loaders/FBXLoader"),yr=require("hammerjs"),wr=require("classnames"),Cr=require("polyline-normals"),Er=require("object-assign-deep"),Pr=require("animejs"),ds=require("swiper")
|
|
1
|
+
"use strict";var pr=Object.defineProperty,gr=Object.defineProperties;var Ar=Object.getOwnPropertyDescriptors;var Nn=Object.getOwnPropertySymbols;var vr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable;var qt=(o,t,e)=>t in o?pr(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,j=(o,t)=>{for(var e in t||(t={}))vr.call(t,e)&&qt(o,e,t[e]);if(Nn)for(var e of Nn(t))br.call(t,e)&&qt(o,e,t[e]);return o},V=(o,t)=>gr(o,Ar(t));var m=(o,t,e)=>(qt(o,typeof t!="symbol"?t+"":t,e),e);var F=(o,t,e)=>new Promise((n,s)=>{var r=c=>{try{l(e.next(c))}catch(d){s(d)}},a=c=>{try{l(e.throw(c))}catch(d){s(d)}},l=c=>c.done?n(c.value):Promise.resolve(c.value).then(r,a);l((e=e.apply(o,t)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const zt=require("@tweenjs/tween.js"),ee=require("@realsee/five"),M=require("three"),Mt=require("three/examples/jsm/renderers/CSS3DRenderer"),ls=require("@realsee/five/line"),i=require("svelte/internal"),Z=require("svelte"),Se=require("svelte/easing"),me=require("svelte/transition"),kn=require("svelte/store"),cs=require("three/examples/jsm/loaders/FBXLoader"),yr=require("hammerjs"),wr=require("classnames"),Cr=require("polyline-normals"),Er=require("object-assign-deep"),Pr=require("animejs"),ds=require("swiper");require("swiper/css");require("swiper/css/autoplay");const Je=o=>o&&typeof o=="object"&&"default"in o?o:{default:o};function us(o){if(o&&o.__esModule)return o;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>o[e]})}}return t.default=o,Object.freeze(t)}const lt=Je(zt),Ft=us(zt),P=us(M),ut=Je(yr),ye=Je(wr),Ir=Je(Cr),Ne=Je(Er),Wn=Je(Pr),mn=Je(ds);function hs(){}const Xn=()=>Promise.resolve(),Yn={__queue:Promise.resolve()};function kr(o=Xn){Yn.__queue=Yn.__queue.then(o).catch(Xn)}function mt(o,t,e){const n=o.x,s=o.y,r=Math.floor(n/t*1e4)/1e4,a=Math.floor(s/e*1e4)/1e4;return{x:r,y:a}}function Kt(o,t,e){const{x:n,y:s}=o,r=n*t,a=s*e;return{x:r,y:a}}function pt(o){if(o.length<2)return{};const t=o.slice(-2),e=t[0],n={x:(t[0].x+t[1].x)/2,y:(t[0].y+t[1].y)/2};return{control:e,end:n}}function xr(o,t,e=hs){new Promise(n=>{setTimeout(()=>{e(),n(!0)},t*o)})}const Dr=window,Un=window.requestAnimationFrame||Dr.webkitRequestAnimationFrame||(o=>setTimeout(o,16));function Lt(o,t=0){t<=0?Un(o):Un(()=>Lt(o,t-1))}function Sr(o,t,e,n=zt.Easing.Linear.None){const s=new zt.Tween(o).to(t,e).easing(n).start();function r(a){!s.update(a)||requestAnimationFrame(r)}return requestAnimationFrame(r),s}var ke=(o=>(o.Drawline="Drawline",o.Undo="Undo",o.Exit="Exit",o))(ke||{});const rt=Symbol("$$PAINT_BRUSH_EVENT$$");function gt(o){return o[rt]||(o[rt]={}),o[rt]}function Lr(o){o[rt]||delete o[rt]}class _r{hasListener(t){const e=gt(this);return e&&e[t]&&e[t].length>0}on(t,e,n){const s=gt(this);return s[t]||(s[t]=[]),s[t].push([e,n||!1]),()=>this.off(t,e)}once(t,e){return this.on(t,e,!0)}off(t,e){if(t===void 0){Lr(this);return}const n=gt(this);if(n[t]||(n[t]=[]),e===void 0){n[t].length=0;return}let s=0;for(;s<n[t].length&&n[t][s][0]!==e;s++);s<n[t].length&&n[t].splice(s,1)}emit(t,...e){let n=!1;const r=gt(this)[t]||[];for(let a of r.slice()){const[l,c=!1]=a,d=l(...e);c&&this.off(t,l),d===!1&&(n=!0)}return n}}function ze(){return((1+Math.random())*65536|0).toString(16).substring(1)}function ue(){return(ze()+ze()+"-"+ze()+"-4"+ze().substr(0,3)+"-"+ze()+"-"+ze()+ze()+ze()).toLowerCase()}const zr=`
|
|
2
2
|
<style type="text/css">
|
|
3
3
|
|
|
4
4
|
#_gl_paintBrush {
|
|
@@ -536,7 +536,7 @@ void main() {
|
|
|
536
536
|
${o[8]?"transform: translateX(-50%); left: 50%":""}
|
|
537
537
|
${o[9]?"transform: translateX(-50%); top: 50%":""}
|
|
538
538
|
${o[7]?"transform: translate(-50%, -50%); left: 50%; top: 50%;":""}
|
|
539
|
-
`))&&i.attr(t,"style",e),l&8&&i.set_style(t,"width",pe(o[3]),!1),l&16&&i.set_style(t,"height",pe(o[4]),!1),l&8192&&i.set_style(t,"z-index",o[13],!1)},i(a){r||(a&&i.add_render_callback(()=>{s&&s.end(1),n=i.create_in_transition(t,me.fade,{duration:o[0]}),n.start()}),r=!0)},o(a){n&&n.invalidate(),a&&(s=i.create_out_transition(t,me.fade,{duration:o[1]})),r=!1},d(a){a&&i.detach(t),a&&s&&s.end()}}}function Ph(o){let t,e=o[2]&&lo(o);return{c(){e&&e.c(),t=i.empty()},m(n,s){e&&e.m(n,s),i.insert(n,t,s)},p(n,[s]){n[2]?e?(e.p(n,s),s&4&&i.transition_in(e,1)):(e=lo(n),e.c(),i.transition_in(e,1),e.m(t.parentNode,t)):e&&(i.group_outros(),i.transition_out(e,1,1,()=>{e=null}),i.check_outros())},i(n){i.transition_in(e)},o(n){i.transition_out(e)},d(n){e&&e.d(n),n&&i.detach(t)}}}function pe(o){return typeof o=="number"?o/16+"rem":o}function Ih(o,t,e){let{inDelay:n=1e3}=t,{outDelay:s=1e3}=t,{visible:r=!0}=t,{width:a=0}=t,{height:l=0}=t,{left:c=0}=t,{bottom:d=0}=t,{center:u=!1}=t,{horizontalCenter:f=!1}=t,{verticalCenter:h=!1}=t,{blurRadius:p}=t,{spreadRadius:g}=t,{opacity:A=.15}=t,{zIndex:b=void 0}=t;return o.$$set=v=>{"inDelay"in v&&e(0,n=v.inDelay),"outDelay"in v&&e(1,s=v.outDelay),"visible"in v&&e(2,r=v.visible),"width"in v&&e(3,a=v.width),"height"in v&&e(4,l=v.height),"left"in v&&e(5,c=v.left),"bottom"in v&&e(6,d=v.bottom),"center"in v&&e(7,u=v.center),"horizontalCenter"in v&&e(8,f=v.horizontalCenter),"verticalCenter"in v&&e(9,h=v.verticalCenter),"blurRadius"in v&&e(10,p=v.blurRadius),"spreadRadius"in v&&e(11,g=v.spreadRadius),"opacity"in v&&e(12,A=v.opacity),"zIndex"in v&&e(13,b=v.zIndex)},[n,s,r,a,l,c,d,u,f,h,p,g,A,b]}class ve extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Ih,Ph,i.safe_not_equal,{inDelay:0,outDelay:1,visible:2,width:3,height:4,left:5,bottom:6,center:7,horizontalCenter:8,verticalCenter:9,blurRadius:10,spreadRadius:11,opacity:12,zIndex:13},Eh)}}function kh(){return Math.random().toString(36).slice(-6)}const co=kh();function xh(o){i.append_styles(o,"svelte-1b2n9wi",".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function uo(o,t,e){const n=o.slice();return n[10]=t[e],n[11]=t,n[12]=e,n}function ho(o){let t,e=o[10]+"",n,s=o[12];const r=()=>o[6](t,s),a=()=>o[6](null,s);return{c(){t=i.element("span"),n=i.text(e),i.attr(t,"class","text-char svelte-1b2n9wi")},m(l,c){i.insert(l,t,c),i.append(t,n),r()},p(l,c){o=l,c&2&&e!==(e=o[10]+"")&&i.set_data(n,e),s!==o[12]&&(a(),s=o[12],r())},d(l){l&&i.detach(t),a()}}}function Dh(o){let t,e=o[1],n=[];for(let s=0;s<e.length;s+=1)n[s]=ho(uo(o,e,s));return{c(){for(let s=0;s<n.length;s+=1)n[s].c();t=i.empty()},m(s,r){for(let a=0;a<n.length;a+=1)n[a].m(s,r);i.insert(s,t,r)},p(s,[r]){if(r&3){e=s[1];let a;for(a=0;a<e.length;a+=1){const l=uo(s,e,a);n[a]?n[a].p(l,r):(n[a]=ho(l),n[a].c(),n[a].m(t.parentNode,t))}for(;a<n.length;a+=1)n[a].d(1);n.length=e.length}},i:i.noop,o:i.noop,d(s){i.destroy_each(n,s),s&&i.detach(t)}}}function Sh(o,t,e){let n,{inDelay:s=0}=t,{outDelay:r=0}=t,{content:a}=t,{unfolded:l}=t,c,d=[],u;function f(p){clearTimeout(c),c=setTimeout(function(){!u||(p&&u.reversed||!p&&!u.reversed)&&(u.reverse(),u.play())},p?s:r)}Z.onMount(function(){const p=(()=>{const g=bh(A=>d[A].getBoundingClientRect().x,[Math.min(d.length-1,10),Math.min(d.length-1,30)]);if(g>0)return g})();u=Wn.default({targets:d.filter(Ue).slice(0,p),autoplay:!1,duration:400,scale:[.7,1],rotate:[20,0],opacity:[0,1],translateX:[4,0],translateY:[10,0],delay:Wn.default.stagger(50),easing:"easeInOutCubic"}),l&&u.seek(u.duration)});function h(p,g){i.binding_callbacks[p?"unshift":"push"](()=>{d[g]=p,e(0,d)})}return o.$$set=p=>{"inDelay"in p&&e(2,s=p.inDelay),"outDelay"in p&&e(3,r=p.outDelay),"content"in p&&e(4,a=p.content),"unfolded"in p&&e(5,l=p.unfolded)},o.$$.update=()=>{o.$$.dirty&16&&e(1,n=(()=>{const p=[],g=new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)","gu")),A=`__EMOJI_SPLIT_${co}__`,b=`__EMOJI_${co}__`;return a.slice().replace(g,v=>`${A}${b}${v}${A}`).split(A).forEach(v=>v.startsWith(b)?p.push(v.slice(b.length)):p.push(...v.split(""))),p.filter(Boolean)})()),o.$$.dirty&32&&f(l)},[d,n,s,r,a,l,h]}class Zs extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Sh,Dh,i.safe_not_equal,{inDelay:2,outDelay:3,content:4,unfolded:5},xh)}}const Lh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAA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e9O8efPSNOmY3TXjMHN+tmhaKDdJ+JFo5C/cdnV1ddIjrJGdkoKUx8HsdP60atWqf3C8RARmzg2m4UXfSM9jeSW8rq6u8vr163+TV8JfyQx3e9LZuHHjoQsXLvSMdKckYt9KL53tu/sBHXeeeJMk0rdJ5P2kQXkvqXXOnDnlEr8pTyUPrVmz5qvOzs7/lQTCkU4y1LtGkjIfmIlMnJ+K/MojfzIrl8B3kpU1osxJSYtTAL8wKf4EYJQFk+JeQMlvE3UcLRmTkkUANm1ZOZmE24dqGU5gOfCyZkyGWQT+IykW8zmSz0IpiLNN8t5iTmdTkgGTrInI7JcfULaH10Qnh/4IMVjAxNk6jxwajuUb8lqOZRT3S/lx06RY1g8C4akfiEJAOZdFKzsq/nNjIssdufjbhQAEAUodOGDWp4m8S0oHEhb+YexGkD4EBUpdVMrfl/E/RhNJnsjF/ls0r980YRQDlAqBylIqylcCzf4lHecB5veigSfmYoBycaxN2SHgT8e7pWKZwCzqzZpigUr9DlRuoIxXn8pIZJgHtkwpa8togHIiw587LeNx9mc2ZwIK5DOlXJaMFqhWwoMp/Ax+1W+ToOXTHGKNrDMLLo38LmKsQKmbdSrWil+N82UJaS40YTuJv/RdtAdpzet+aJDzvMpQV71oo2gYX5RXG2HnYZXtouzNRzXE3R0KE6jWjZU2iaZ9u8pqpU3UfvwrYSgSBVDtGDurBlHn/zj0QMIh7qlDNOfmcBj9ihKo9o+l1euiWGxSE5eun3na6jxQk3joEgdQ7TR+FWutE43lhQpph3sQvISAVRa9ppRzipY4gZqdw8/WigIWDWt1gD8EIsqSLlT/KPUVlKSAujs2XTLYeRHiIlA2DVi1qkRtK8PSULaEDF+Ue7ashwkTlf8DQc/cITdx9+UAAAAASUVORK5CYII=";function _h(o){i.append_styles(o,"svelte-1ogmlqq",".arrow.svelte-1ogmlqq{width:100%;height:100%;background-size:100%;transition:transform 400ms ease-in-out;cursor:pointer;pointer-events:auto}.arrow-wrapper.svelte-1ogmlqq{position:relative;width:100%;height:100%}.arrow.left.svelte-1ogmlqq{transform:rotate(0deg)}.arrow.right.svelte-1ogmlqq{transform:rotate(-180deg)}.arrow.top.svelte-1ogmlqq{transform:rotate(90deg)}.arrow.bottom.svelte-1ogmlqq{transform:rotate(-90deg)}")}function po(o){let t,e,n,s,r,a,l,c,d,u;return e=new ve({props:{center:!0,blurRadius:9,spreadRadius:3}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),n=i.space(),s=i.element("div"),i.attr(s,"class",r="arrow "+o[0]+" svelte-1ogmlqq"),i.set_style(s,"background-image","url("+Lh+")"),i.attr(t,"class","arrow-wrapper svelte-1ogmlqq")},m(f,h){i.insert(f,t,h),i.mount_component(e,t,null),i.append(t,n),i.append(t,s),c=!0,d||(u=i.listen(s,"click",o[5]),d=!0)},p(f,h){o=f,(!c||h&1&&r!==(r="arrow "+o[0]+" svelte-1ogmlqq"))&&i.attr(s,"class",r)},i(f){c||(i.transition_in(e.$$.fragment,f),f&&i.add_render_callback(()=>{l&&l.end(1),a=i.create_in_transition(s,me.fade,{duration:o[2],delay:o[3],easing:Se.cubicInOut}),a.start()}),c=!0)},o(f){i.transition_out(e.$$.fragment,f),a&&a.invalidate(),f&&(l=i.create_out_transition(s,me.fade,{duration:o[2],delay:o[4],easing:Se.cubicInOut})),c=!1},d(f){f&&i.detach(t),i.destroy_component(e),f&&l&&l.end(),d=!1,u()}}}function zh(o){let t,e,n=o[1]&&po(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[1]?n?(n.p(s,r),r&2&&i.transition_in(n,1)):(n=po(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function Mh(o,t,e){let{direction:n="right"}=t,{visible:s=!0}=t,{duration:r=0}=t,{inDelay:a=0}=t,{outDelay:l=0}=t;function c(d){i.bubble.call(this,o,d)}return o.$$set=d=>{"direction"in d&&e(0,n=d.direction),"visible"in d&&e(1,s=d.visible),"duration"in d&&e(2,r=d.duration),"inDelay"in d&&e(3,a=d.inDelay),"outDelay"in d&&e(4,l=d.outDelay)},[n,s,r,a,l,c]}class Th extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Mh,zh,i.safe_not_equal,{direction:0,visible:1,duration:2,inDelay:3,outDelay:4},_h)}}function jh(o,t,e=20,n=5){return new Promise((s,r)=>{let a=0;const l=setInterval(()=>{const c=o();t(c)?(clearInterval(l),s(c)):a>=n&&(clearInterval(l),r(c)),a++},e)})}function Bh(o){i.append_styles(o,"svelte-1fuzm7v",".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}")}function go(o,t,e){const n=o.slice();return n[11]=t[e].id,n[12]=t[e].content,n}function Ao(o,t){let e,n,s;return n=new Zs({props:{unfolded:t[0],content:t[12],inDelay:500,outDelay:t[5]}}),{key:o,first:null,c(){e=i.element("div"),i.create_component(n.$$.fragment),i.attr(e,"class","text svelte-1fuzm7v"),i.set_style(e,"transform",t[7],!1),this.first=e},m(r,a){i.insert(r,e,a),i.mount_component(n,e,null),t[10](e),s=!0},p(r,a){t=r;const l={};a&1&&(l.unfolded=t[0]),a&2&&(l.content=t[12]),a&32&&(l.outDelay=t[5]),n.$set(l),a&128&&i.set_style(e,"transform",t[7],!1)},i(r){s||(i.transition_in(n.$$.fragment,r),s=!0)},o(r){i.transition_out(n.$$.fragment,r),s=!1},d(r){r&&i.detach(e),i.destroy_component(n),t[10](null)}}}function vo(o){let t,e,n;return e=new Th({props:{direction:o[6],visible:o[0],inDelay:600,duration:1e3}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),i.attr(t,"class","arrow svelte-1fuzm7v")},m(s,r){i.insert(s,t,r),i.mount_component(e,t,null),n=!0},p(s,r){const a={};r&64&&(a.direction=s[6]),r&1&&(a.visible=s[0]),e.$set(a)},i(s){n||(i.transition_in(e.$$.fragment,s),n=!0)},o(s){i.transition_out(e.$$.fragment,s),n=!1},d(s){s&&i.detach(t),i.destroy_component(e)}}}function Qh(o){let t=[],e=new Map,n,s,r,a=o[1];const l=d=>d[11];for(let d=0;d<a.length;d+=1){let u=go(o,a,d),f=l(u);e.set(f,t[d]=Ao(f,u))}let c=o[3]<o[4]&&vo(o);return{c(){for(let d=0;d<t.length;d+=1)t[d].c();n=i.space(),c&&c.c(),s=i.empty()},m(d,u){for(let f=0;f<t.length;f+=1)t[f].m(d,u);i.insert(d,n,u),c&&c.m(d,u),i.insert(d,s,u),r=!0},p(d,[u]){u&167&&(a=d[1],i.group_outros(),t=i.update_keyed_each(t,u,l,1,d,a,e,n.parentNode,i.outro_and_destroy_block,Ao,n,go),i.check_outros()),d[3]<d[4]?c?(c.p(d,u),u&24&&i.transition_in(c,1)):(c=vo(d),c.c(),i.transition_in(c,1),c.m(s.parentNode,s)):c&&(i.group_outros(),i.transition_out(c,1,1,()=>{c=null}),i.check_outros())},i(d){if(!r){for(let u=0;u<a.length;u+=1)i.transition_in(t[u]);i.transition_in(c),r=!0}},o(d){for(let u=0;u<t.length;u+=1)i.transition_out(t[u]);i.transition_out(c),r=!1},d(d){for(let u=0;u<t.length;u+=1)t[u].d(d);d&&i.detach(n),c&&c.d(d),d&&i.detach(s)}}}function Rh(o,t,e){let n,s,r,{visible:a=!1}=t,{textUnfolded:l=!1}=t,{textItems:c}=t,d,u=0,f=0,h=0;function p(g){i.binding_callbacks[g?"unshift":"push"](()=>{d=g,e(2,d)})}return o.$$set=g=>{"visible"in g&&e(0,a=g.visible),"textUnfolded"in g&&e(8,l=g.textUnfolded),"textItems"in g&&e(1,c=g.textItems)},o.$$.update=()=>{if(o.$$.dirty&5&&d&&a){const{lineHeight:g}=getComputedStyle(d);e(4,h=d.offsetHeight),jh(()=>d==null?void 0:d.offsetHeight,Boolean).then(()=>{e(4,h=d.offsetHeight)}),e(3,f=Number(g.replace("px","")))}o.$$.dirty&280&&e(9,u=l?f-h:0),o.$$.dirty&512&&e(7,n=`translateY(${u}px)`),o.$$.dirty&256&&e(6,s=l?"left":"right"),o.$$.dirty&256&&e(5,r=l?450:0)},[a,c,d,f,h,r,s,n,l,u,p]}class qs extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Rh,Qh,i.safe_not_equal,{visible:0,textUnfolded:8,textItems:1},Bh)}}function Oh(o){i.append_styles(o,"svelte-18yy5x8",".line.svelte-18yy5x8{position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-18yy5x8{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}")}function bo(o){var h,p;let t,e,n,s,r,a,l,c,d,u,f;return t=new ve({props:{visible:o[2],left:o[3]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),s=new Js({props:{unfolded:o[2],duration:1e3,outDelay:o[5]+40*Math.min((p=(h=o[4][0])==null?void 0:h.content.length)!=null?p:10,15)}}),l=new qs({props:{visible:o[2],textUnfolded:o[1],textItems:o[4]}}),{c(){i.create_component(t.$$.fragment),e=i.space(),n=i.element("div"),i.create_component(s.$$.fragment),r=i.space(),a=i.element("div"),i.create_component(l.$$.fragment),i.attr(n,"class","line svelte-18yy5x8"),i.set_style(n,"width",o[3]+"px",!1),i.attr(a,"class","content svelte-18yy5x8"),i.add_render_callback(()=>o[8].call(a))},m(g,A){i.mount_component(t,g,A),i.insert(g,e,A),i.insert(g,n,A),i.mount_component(s,n,null),i.insert(g,r,A),i.insert(g,a,A),i.mount_component(l,a,null),c=i.add_resize_listener(a,o[8].bind(a)),d=!0,u||(f=i.listen(a,"click",o[6]),u=!0)},p(g,A){var w,I;const b={};A&4&&(b.visible=g[2]),A&8&&(b.left=g[3]/2+"px"),t.$set(b);const v={};A&4&&(v.unfolded=g[2]),A&48&&(v.outDelay=g[5]+40*Math.min((I=(w=g[4][0])==null?void 0:w.content.length)!=null?I:10,15)),s.$set(v),A&8&&i.set_style(n,"width",g[3]+"px",!1);const y={};A&4&&(y.visible=g[2]),A&2&&(y.textUnfolded=g[1]),A&16&&(y.textItems=g[4]),l.$set(y)},i(g){d||(i.transition_in(t.$$.fragment,g),i.transition_in(s.$$.fragment,g),i.transition_in(l.$$.fragment,g),d=!0)},o(g){i.transition_out(t.$$.fragment,g),i.transition_out(s.$$.fragment,g),i.transition_out(l.$$.fragment,g),d=!1},d(g){i.destroy_component(t,g),g&&i.detach(e),g&&i.detach(n),i.destroy_component(s),g&&i.detach(r),g&&i.detach(a),i.destroy_component(l),c(),u=!1,f()}}}function Hh(o){let t,e,n=o[0].state&&bo(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[0].state?n?(n.p(s,r),r&1&&i.transition_in(n,1)):(n=bo(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function Fh(o,t,e){let n,s,r,{tag:a}=t,l,c=!1,d=[];function u(){e(1,c=!c)}function f(){l=this.clientWidth,e(3,l)}return o.$$set=h=>{"tag"in h&&e(0,a=h.tag)},o.$$.update=()=>{var h;o.$$.dirty&1&&e(2,n=!!((h=a.state)!=null&&h.unfolded)),o.$$.dirty&1&&e(7,s=a.data.text),o.$$.dirty&128&&e(4,d=[{id:ue(),content:s}]),o.$$.dirty&4&&(n||setTimeout(()=>{e(1,c=!1)},20)),o.$$.dirty&2&&e(5,r=c?450:0)},[a,c,n,l,d,r,u,s,f]}class Gh extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Fh,Hh,i.safe_not_equal,{tag:0},Oh)}}function Nh(o){i.append_styles(o,"svelte-e72ouh",".line.svelte-e72ouh{width:100%;height:100%;overflow:visible}")}function yo(o){let t,e,n,s;return{c(){t=i.svg_element("path"),i.attr(t,"fill","none"),i.attr(t,"stroke","url(#"+o[4]+")"),i.attr(t,"stroke-width","1"),i.attr(t,"d","M0 21 L14 0.5 L105 0.5")},m(r,a){i.insert(r,t,a),s=!0},p(r,a){o=r},i(r){s||(r&&i.add_render_callback(()=>{n&&n.end(1),e=i.create_in_transition(t,me.draw,{duration:o[1],delay:o[0],easing:Se.cubicOut}),e.start()}),s=!0)},o(r){e&&e.invalidate(),r&&(n=i.create_out_transition(t,me.draw,{duration:o[1],delay:o[2],easing:Se.cubicInOut})),s=!1},d(r){r&&i.detach(t),r&&n&&n.end()}}}function Wh(o){let t,e,n,s,r,a=o[3]&&yo(o);return{c(){t=i.svg_element("svg"),e=i.svg_element("defs"),n=i.svg_element("linearGradient"),s=i.svg_element("stop"),r=i.svg_element("stop"),a&&a.c(),i.attr(s,"offset","25%"),i.attr(s,"stop-color","white"),i.attr(s,"stop-opacity","1"),i.attr(r,"offset","100%"),i.attr(r,"stop-color","white"),i.attr(r,"stop-opacity","0.5"),i.attr(n,"id",o[4]),i.attr(n,"gradientUnits","userSpaceOnUse"),i.attr(t,"class","line svelte-e72ouh"),i.attr(t,"viewBox","0 0 105 21")},m(l,c){i.insert(l,t,c),i.append(t,e),i.append(e,n),i.append(n,s),i.append(n,r),a&&a.m(t,null)},p(l,[c]){l[3]?a?(a.p(l,c),c&8&&i.transition_in(a,1)):(a=yo(l),a.c(),i.transition_in(a,1),a.m(t,null)):a&&(i.group_outros(),i.transition_out(a,1,1,()=>{a=null}),i.check_outros())},i(l){i.transition_in(a)},o(l){i.transition_out(a)},d(l){l&&i.detach(t),a&&a.d()}}}function Xh(o,t,e){let{inDelay:n=0}=t,{duration:s=0}=t,{outDelay:r=0}=t,{unfolded:a}=t;const l=ue();return o.$$set=c=>{"inDelay"in c&&e(0,n=c.inDelay),"duration"in c&&e(1,s=c.duration),"outDelay"in c&&e(2,r=c.outDelay),"unfolded"in c&&e(3,a=c.unfolded)},[n,s,r,a,l]}class Yh extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Xh,Wh,i.safe_not_equal,{inDelay:0,duration:1,outDelay:2,unfolded:3},Nh)}}function Ve(o){return typeof o=="object"&&o!==null&&o.constructor&&Object.prototype.toString.call(o).slice(8,-1)==="Object"}function Te(o,t){const e=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>e.indexOf(n)<0).forEach(n=>{typeof o[n]=="undefined"?o[n]=t[n]:Ve(t[n])&&Ve(o[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?o[n]=t[n]:Te(o[n],t[n]):o[n]=t[n]})}function yn(o={}){return o.navigation&&typeof o.navigation.nextEl=="undefined"&&typeof o.navigation.prevEl=="undefined"}function wn(o={}){return o.pagination&&typeof o.pagination.el=="undefined"}function Cn(o={}){return o.scrollbar&&typeof o.scrollbar.el=="undefined"}function Ht(o=""){const t=o.split(" ").map(n=>n.trim()).filter(n=>!!n),e=[];return t.forEach(n=>{e.indexOf(n)<0&&e.push(n)}),e.join(" ")}const Ks=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function Uh(o={},t=!0){const e={on:{}},n={},s={};Te(e,mn.default.defaults),Te(e,mn.default.extendedDefaults),e._emitClasses=!0,e.init=!1;const r={},a=Ks.map(c=>c.replace(/_/,"")),l=Object.assign({},o);return Object.keys(l).forEach(c=>{typeof o[c]!="undefined"&&(a.indexOf(c)>=0?Ve(o[c])?(e[c]={},s[c]={},Te(e[c],o[c]),Te(s[c],o[c])):(e[c]=o[c],s[c]=o[c]):c.search(/on[A-Z]/)===0&&typeof o[c]=="function"?t?n[`${c[2].toLowerCase()}${c.substr(3)}`]=o[c]:e.on[`${c[2].toLowerCase()}${c.substr(3)}`]=o[c]:r[c]=o[c])}),["navigation","pagination","scrollbar"].forEach(c=>{e[c]===!0&&(e[c]={}),e[c]===!1&&delete e[c]}),{params:e,passedParams:s,rest:r,events:n}}function Vh({el:o,nextEl:t,prevEl:e,paginationEl:n,scrollbarEl:s,swiper:r},a){yn(a)&&t&&e&&(r.params.navigation.nextEl=t,r.originalParams.navigation.nextEl=t,r.params.navigation.prevEl=e,r.originalParams.navigation.prevEl=e),wn(a)&&n&&(r.params.pagination.el=n,r.originalParams.pagination.el=n),Cn(a)&&s&&(r.params.scrollbar.el=s,r.originalParams.scrollbar.el=s),r.init(o)}function Jh(o,t,e,n,s){const r=[];if(!t)return r;const a=c=>{r.indexOf(c)<0&&r.push(c)};if(e&&n){const c=n.map(s),d=e.map(s);c.join("")!==d.join("")&&a("children"),n.length!==e.length&&a("children")}return Ks.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in o&&c in t)if(Ve(o[c])&&Ve(t[c])){const d=Object.keys(o[c]),u=Object.keys(t[c]);d.length!==u.length?a(c):(d.forEach(f=>{o[c][f]!==t[c][f]&&a(c)}),u.forEach(f=>{o[c][f]!==t[c][f]&&a(c)}))}else o[c]!==t[c]&&a(c)}),r}function Zh({swiper:o,slides:t,passedParams:e,changedParams:n,nextEl:s,prevEl:r,scrollbarEl:a,paginationEl:l}){const c=n.filter(k=>k!=="children"&&k!=="direction"),{params:d,pagination:u,navigation:f,scrollbar:h,virtual:p,thumbs:g}=o;let A,b,v,y,w;n.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(A=!0),n.includes("controller")&&e.controller&&e.controller.control&&d.controller&&!d.controller.control&&(b=!0),n.includes("pagination")&&e.pagination&&(e.pagination.el||l)&&(d.pagination||d.pagination===!1)&&u&&!u.el&&(v=!0),n.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||a)&&(d.scrollbar||d.scrollbar===!1)&&h&&!h.el&&(y=!0),n.includes("navigation")&&e.navigation&&(e.navigation.prevEl||r)&&(e.navigation.nextEl||s)&&(d.navigation||d.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const I=k=>{!o[k]||(o[k].destroy(),k==="navigation"?(d[k].prevEl=void 0,d[k].nextEl=void 0,o[k].prevEl=void 0,o[k].nextEl=void 0):(d[k].el=void 0,o[k].el=void 0))};c.forEach(k=>{if(Ve(d[k])&&Ve(e[k]))Te(d[k],e[k]);else{const C=e[k];(C===!0||C===!1)&&(k==="navigation"||k==="pagination"||k==="scrollbar")?C===!1&&I(k):d[k]=e[k]}}),c.includes("controller")&&!b&&o.controller&&o.controller.control&&d.controller&&d.controller.control&&(o.controller.control=d.controller.control),n.includes("children")&&t&&p&&d.virtual.enabled?(p.slides=t,p.update(!0)):n.includes("children")&&o.lazy&&o.params.lazy.enabled&&o.lazy.load(),A&&g.init()&&g.update(!0),b&&(o.controller.control=d.controller.control),v&&(l&&(d.pagination.el=l),u.init(),u.render(),u.update()),y&&(a&&(d.scrollbar.el=a),h.init(),h.updateSize(),h.setTranslate()),w&&(s&&(d.navigation.nextEl=s),r&&(d.navigation.prevEl=r),f.init(),f.update()),n.includes("allowSlideNext")&&(o.allowSlideNext=e.allowSlideNext),n.includes("allowSlidePrev")&&(o.allowSlidePrev=e.allowSlidePrev),n.includes("direction")&&o.changeDirection(e.direction,!1),o.update()}const qh=o=>({virtualData:o&512}),wo=o=>({virtualData:o[9]}),Kh=o=>({virtualData:o&512}),Co=o=>({virtualData:o[9]}),$h=o=>({virtualData:o&512}),Eo=o=>({virtualData:o[9]}),ef=o=>({virtualData:o&512}),Po=o=>({virtualData:o[9]}),tf=o=>({virtualData:o&512}),Io=o=>({virtualData:o[9]});function ko(o){let t,e,n;return{c(){t=i.element("div"),e=i.space(),n=i.element("div"),i.attr(t,"class","swiper-button-prev"),i.attr(n,"class","swiper-button-next")},m(s,r){i.insert(s,t,r),o[13](t),i.insert(s,e,r),i.insert(s,n,r),o[14](n)},p:i.noop,d(s){s&&i.detach(t),o[13](null),s&&i.detach(e),s&&i.detach(n),o[14](null)}}}function xo(o){let t;return{c(){t=i.element("div"),i.attr(t,"class","swiper-scrollbar")},m(e,n){i.insert(e,t,n),o[15](t)},p:i.noop,d(e){e&&i.detach(t),o[15](null)}}}function Do(o){let t;return{c(){t=i.element("div"),i.attr(t,"class","swiper-pagination")},m(e,n){i.insert(e,t,n),o[16](t)},p:i.noop,d(e){e&&i.detach(t),o[16](null)}}}function nf(o){let t,e,n,s,r,a,l=yn(o[2]),c,d=Cn(o[2]),u,f=wn(o[2]),h,p,g;const A=o[12]["container-start"],b=i.create_slot(A,o,o[11],Io),v=o[12]["wrapper-start"],y=i.create_slot(v,o,o[11],Po),w=o[12].default,I=i.create_slot(w,o,o[11],Eo),k=o[12]["wrapper-end"],C=i.create_slot(k,o,o[11],Co);let D=l&&ko(o),x=d&&xo(o),z=f&&Do(o);const _=o[12]["container-end"],T=i.create_slot(_,o,o[11],wo);let H=[{class:p=Ht(`${o[1]}${o[0]?` ${o[0]}`:""}`)},o[3]],E={};for(let S=0;S<H.length;S+=1)E=i.assign(E,H[S]);return{c(){t=i.element("div"),b&&b.c(),e=i.space(),n=i.element("div"),y&&y.c(),s=i.space(),I&&I.c(),r=i.space(),C&&C.c(),a=i.space(),D&&D.c(),c=i.space(),x&&x.c(),u=i.space(),z&&z.c(),h=i.space(),T&&T.c(),i.attr(n,"class","swiper-wrapper"),i.set_attributes(t,E)},m(S,L){i.insert(S,t,L),b&&b.m(t,null),i.append(t,e),i.append(t,n),y&&y.m(n,null),i.append(n,s),I&&I.m(n,null),i.append(n,r),C&&C.m(n,null),i.append(t,a),D&&D.m(t,null),i.append(t,c),x&&x.m(t,null),i.append(t,u),z&&z.m(t,null),i.append(t,h),T&&T.m(t,null),o[17](t),g=!0},p(S,[L]){b&&b.p&&(!g||L&2560)&&i.update_slot_base(b,A,S,S[11],g?i.get_slot_changes(A,S[11],L,tf):i.get_all_dirty_from_scope(S[11]),Io),y&&y.p&&(!g||L&2560)&&i.update_slot_base(y,v,S,S[11],g?i.get_slot_changes(v,S[11],L,ef):i.get_all_dirty_from_scope(S[11]),Po),I&&I.p&&(!g||L&2560)&&i.update_slot_base(I,w,S,S[11],g?i.get_slot_changes(w,S[11],L,$h):i.get_all_dirty_from_scope(S[11]),Eo),C&&C.p&&(!g||L&2560)&&i.update_slot_base(C,k,S,S[11],g?i.get_slot_changes(k,S[11],L,Kh):i.get_all_dirty_from_scope(S[11]),Co),L&4&&(l=yn(S[2])),l?D?D.p(S,L):(D=ko(S),D.c(),D.m(t,c)):D&&(D.d(1),D=null),L&4&&(d=Cn(S[2])),d?x?x.p(S,L):(x=xo(S),x.c(),x.m(t,u)):x&&(x.d(1),x=null),L&4&&(f=wn(S[2])),f?z?z.p(S,L):(z=Do(S),z.c(),z.m(t,h)):z&&(z.d(1),z=null),T&&T.p&&(!g||L&2560)&&i.update_slot_base(T,_,S,S[11],g?i.get_slot_changes(_,S[11],L,qh):i.get_all_dirty_from_scope(S[11]),wo),i.set_attributes(t,E=i.get_spread_update(H,[(!g||L&3&&p!==(p=Ht(`${S[1]}${S[0]?` ${S[0]}`:""}`)))&&{class:p},L&8&&S[3]]))},i(S){g||(i.transition_in(b,S),i.transition_in(y,S),i.transition_in(I,S),i.transition_in(C,S),i.transition_in(T,S),g=!0)},o(S){i.transition_out(b,S),i.transition_out(y,S),i.transition_out(I,S),i.transition_out(C,S),i.transition_out(T,S),g=!1},d(S){S&&i.detach(t),b&&b.d(S),y&&y.d(S),I&&I.d(S),C&&C.d(S),D&&D.d(),x&&x.d(),z&&z.d(),T&&T.d(S),o[17](null)}}}function of(o,t,e){const n=["class","swiper"];let s=i.compute_rest_props(t,n),{$$slots:r={},$$scope:a}=t;const l=Z.createEventDispatcher();let{class:c=void 0}=t,d="swiper",u=!1,f=null,h=null,p,g,A,b,v=null,y=null,w=null,I=null,k=null,C={slides:[]};function D(){return f}const x=B=>{e(9,C=B),Z.tick().then(()=>{f.$wrapperEl.children(".swiper-slide").each(R=>{R.onSwiper&&R.onSwiper(f)}),f.updateSlides(),f.updateProgress(),f.updateSlidesClasses(),f.lazy&&f.params.lazy.enabled&&f.lazy.load()})},z=()=>{p=Uh(s),e(2,g=p.params),A=p.passedParams,e(3,b=p.rest)};z(),h=A;const _=()=>{u=!0};if(g.onAny=(B,...R)=>{l(B,R)},Object.assign(g.on,{_beforeBreakpoint:_,_containerClasses(B,R){e(1,d=R)}}),f=new mn.default(g),Z.setContext("swiper",f),f.virtual&&f.params.virtual.enabled){const B={cache:!1,renderExternal:R=>{x(R),g.virtual&&g.virtual.renderExternal&&g.virtual.renderExternal(R)},renderExternalUpdate:!1};Te(f.params.virtual,B),Te(f.originalParams.virtual,B)}Z.onMount(()=>{!v||(Vh({el:v,nextEl:w,prevEl:y,paginationEl:k,scrollbarEl:I,swiper:f},g),l("swiper",[f]),!g.virtual&&f.slides.each(B=>{B.onSwiper&&B.onSwiper(f)}))}),Z.afterUpdate(()=>{if(!f)return;z();const B=Jh(A,h);(B.length||u)&&f&&!f.destroyed&&Zh({swiper:f,passedParams:A,changedParams:B,nextEl:w,prevEl:y,scrollbarEl:I,paginationEl:k}),u=!1,h=A}),Z.onDestroy(()=>{typeof window!="undefined"&&f&&!f.destroyed&&f.destroy(!0,!1)});function T(B){i.binding_callbacks[B?"unshift":"push"](()=>{y=B,e(5,y)})}function H(B){i.binding_callbacks[B?"unshift":"push"](()=>{w=B,e(6,w)})}function E(B){i.binding_callbacks[B?"unshift":"push"](()=>{I=B,e(7,I)})}function S(B){i.binding_callbacks[B?"unshift":"push"](()=>{k=B,e(8,k)})}function L(B){i.binding_callbacks[B?"unshift":"push"](()=>{v=B,e(4,v)})}return o.$$set=B=>{t=i.assign(i.assign({},t),i.exclude_internal_props(B)),e(27,s=i.compute_rest_props(t,n)),"class"in B&&e(0,c=B.class),"$$scope"in B&&e(11,a=B.$$scope)},[c,d,g,b,v,y,w,I,k,C,D,a,r,T,H,E,S,L]}class sf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,of,nf,i.safe_not_equal,{class:0,swiper:10})}get swiper(){return this.$$.ctx[10]}}const rf=o=>({data:o&32}),So=o=>({data:o[5]}),af=o=>({data:o&32}),Lo=o=>({data:o[5]});function lf(o){let t;const e=o[8].default,n=i.create_slot(e,o,o[7],So);return{c(){n&&n.c()},m(s,r){n&&n.m(s,r),t=!0},p(s,r){n&&n.p&&(!t||r&160)&&i.update_slot_base(n,e,s,s[7],t?i.get_slot_changes(e,s[7],r,rf):i.get_all_dirty_from_scope(s[7]),So)},i(s){t||(i.transition_in(n,s),t=!0)},o(s){i.transition_out(n,s),t=!1},d(s){n&&n.d(s)}}}function cf(o){let t,e,n;const s=o[8].default,r=i.create_slot(s,o,o[7],Lo);return{c(){t=i.element("div"),r&&r.c(),i.attr(t,"class","swiper-zoom-container"),i.attr(t,"data-swiper-zoom",e=typeof o[0]=="number"?o[0]:void 0)},m(a,l){i.insert(a,t,l),r&&r.m(t,null),n=!0},p(a,l){r&&r.p&&(!n||l&160)&&i.update_slot_base(r,s,a,a[7],n?i.get_slot_changes(s,a[7],l,af):i.get_all_dirty_from_scope(a[7]),Lo),(!n||l&1&&e!==(e=typeof a[0]=="number"?a[0]:void 0))&&i.attr(t,"data-swiper-zoom",e)},i(a){n||(i.transition_in(r,a),n=!0)},o(a){i.transition_out(r,a),n=!1},d(a){a&&i.detach(t),r&&r.d(a)}}}function df(o){let t,e,n,s,r;const a=[cf,lf],l=[];function c(f,h){return f[0]?0:1}e=c(o),n=l[e]=a[e](o);let d=[{class:s=Ht(`${o[3]}${o[2]?` ${o[2]}`:""}`)},{"data-swiper-slide-index":o[1]},o[6]],u={};for(let f=0;f<d.length;f+=1)u=i.assign(u,d[f]);return{c(){t=i.element("div"),n.c(),i.set_attributes(t,u)},m(f,h){i.insert(f,t,h),l[e].m(t,null),o[9](t),r=!0},p(f,[h]){let p=e;e=c(f),e===p?l[e].p(f,h):(i.group_outros(),i.transition_out(l[p],1,1,()=>{l[p]=null}),i.check_outros(),n=l[e],n?n.p(f,h):(n=l[e]=a[e](f),n.c()),i.transition_in(n,1),n.m(t,null)),i.set_attributes(t,u=i.get_spread_update(d,[(!r||h&12&&s!==(s=Ht(`${f[3]}${f[2]?` ${f[2]}`:""}`)))&&{class:s},(!r||h&2)&&{"data-swiper-slide-index":f[1]},h&64&&f[6]]))},i(f){r||(i.transition_in(n),r=!0)},o(f){i.transition_out(n),r=!1},d(f){f&&i.detach(t),l[e].d(),o[9](null)}}}function uf(o,t,e){let n;const s=["zoom","virtualIndex","class"];let r=i.compute_rest_props(t,s),{$$slots:a={},$$scope:l}=t,{zoom:c=void 0}=t,{virtualIndex:d=void 0}=t,{class:u=void 0}=t,f=null,h="swiper-slide",p=Z.getContext("swiper"),g=!1;const A=(w,I,k)=>{I===f&&e(3,h=k)},b=()=>{!p||g||(p.on("_slideClass",A),g=!0)},v=()=>{!p||(p.off("_slideClass",A),g=!1)};Z.onMount(()=>{typeof d!="undefined"&&(e(4,f.onSwiper=w=>{p=w,b()},f),b())}),Z.afterUpdate(()=>{if(!(!f||!p)){if(p.destroyed){h!=="swiper-slide"&&e(3,h="swiper-slide");return}b()}}),Z.beforeUpdate(()=>{b()}),Z.onDestroy(()=>{!p||v()});function y(w){i.binding_callbacks[w?"unshift":"push"](()=>{f=w,e(4,f)})}return o.$$set=w=>{t=i.assign(i.assign({},t),i.exclude_internal_props(w)),e(6,r=i.compute_rest_props(t,s)),"zoom"in w&&e(0,c=w.zoom),"virtualIndex"in w&&e(1,d=w.virtualIndex),"class"in w&&e(2,u=w.class),"$$scope"in w&&e(7,l=w.$$scope)},o.$$.update=()=>{o.$$.dirty&8&&e(5,n={isActive:h.indexOf("swiper-slide-active")>=0||h.indexOf("swiper-slide-duplicate-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isDuplicate:h.indexOf("swiper-slide-duplicate")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0||h.indexOf("swiper-slide-duplicate-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0||h.indexOf("swiper-slide-duplicate-next")>=0})},[c,d,u,h,f,n,r,l,a,y]}class hf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,uf,df,i.safe_not_equal,{zoom:0,virtualIndex:1,class:2})}}function ff(o){i.append_styles(o,"svelte-cwtvzu",".media-item.svelte-cwtvzu.svelte-cwtvzu{height:100%}.media-content.svelte-cwtvzu.svelte-cwtvzu{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-cwtvzu.svelte-cwtvzu{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-cwtvzu.svelte-cwtvzu{display:none;pointer-events:auto;position:absolute;width:100%;height:100%;top:0;left:0}.video-play-button-container.showPlayButton.svelte-cwtvzu.svelte-cwtvzu{display:block}.video-icon.large.svelte-cwtvzu.svelte-cwtvzu{width:12.5rem;height:6.25rem}.video-icon.small.svelte-cwtvzu.svelte-cwtvzu{width:1.75rem;height:1.75rem}.video-icon.svelte-cwtvzu .video-icon-img.svelte-cwtvzu{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-cwtvzu .video-icon-img.canPlay.svelte-cwtvzu{cursor:pointer}")}function _o(o){let t;function e(r,a){if(r[0].type==="Image")return pf;if(r[0].type==="Video")return mf}let n=e(o),s=n&&n(o);return{c(){t=i.element("div"),s&&s.c(),i.attr(t,"class","media-item svelte-cwtvzu")},m(r,a){i.insert(r,t,a),s&&s.m(t,null)},p(r,a){n===(n=e(r))&&s?s.p(r,a):(s&&s.d(1),s=n&&n(r),s&&(s.c(),s.m(t,null)))},d(r){r&&i.detach(t),s&&s.d()}}}function mf(o){let t,e,n,s,r,a,l,c,d,u,f;return{c(){var h;t=i.element("video"),a=i.space(),l=i.element("div"),c=i.element("div"),d=i.element("div"),i.attr(t,"class","media-content svelte-cwtvzu"),i.attr(t,"style",e=`object-fit: ${o[3]};`),i.src_url_equal(t.src,n=o[0].url+"#t=0.1")||i.attr(t,"src",n),i.attr(t,"poster",s=(h=o[0].videoCoverUrl)!=null?h:void 0),i.attr(t,"preload",r=o[0].videoCoverUrl?void 0:"auto"),t.playsInline=!0,i.attr(t,"paused",""),t.loop=!1,i.attr(t,"crossorigin",""),t.controls=!1,i.toggle_class(t,"showPlayButton",o[5]),i.attr(d,"class","video-icon-img svelte-cwtvzu"),i.set_style(d,"background-image","url("+(o[1]==="large"?fo:mo)+")"),i.toggle_class(d,"canPlay",o[2]),i.attr(c,"class","video-icon svelte-cwtvzu"),i.toggle_class(c,"large",o[1]==="large"),i.toggle_class(c,"small",o[1]==="small"),i.attr(l,"class","video-play-button-container svelte-cwtvzu"),i.toggle_class(l,"showPlayButton",o[5])},m(h,p){i.insert(h,t,p),o[7](t),i.insert(h,a,p),i.insert(h,l,p),i.append(l,c),i.append(c,d),u||(f=[i.listen(t,"click",o[6]),i.listen(d,"click",o[8])],u=!0)},p(h,p){var g;p&8&&e!==(e=`object-fit: ${h[3]};`)&&i.attr(t,"style",e),p&1&&!i.src_url_equal(t.src,n=h[0].url+"#t=0.1")&&i.attr(t,"src",n),p&1&&s!==(s=(g=h[0].videoCoverUrl)!=null?g:void 0)&&i.attr(t,"poster",s),p&1&&r!==(r=h[0].videoCoverUrl?void 0:"auto")&&i.attr(t,"preload",r),p&32&&i.toggle_class(t,"showPlayButton",h[5]),p&2&&i.set_style(d,"background-image","url("+(h[1]==="large"?fo:mo)+")"),p&4&&i.toggle_class(d,"canPlay",h[2]),p&2&&i.toggle_class(c,"large",h[1]==="large"),p&2&&i.toggle_class(c,"small",h[1]==="small"),p&32&&i.toggle_class(l,"showPlayButton",h[5])},d(h){h&&i.detach(t),o[7](null),h&&i.detach(a),h&&i.detach(l),u=!1,i.run_all(f)}}}function pf(o){let t,e,n,s;return{c(){t=i.element("img"),i.attr(t,"class","media-content svelte-cwtvzu"),i.attr(t,"style",e=`object-fit: ${o[3]};`),i.src_url_equal(t.src,n=o[0].url)||i.attr(t,"src",n),i.attr(t,"alt",s=o[0].name)},m(r,a){i.insert(r,t,a)},p(r,a){a&8&&e!==(e=`object-fit: ${r[3]};`)&&i.attr(t,"style",e),a&1&&!i.src_url_equal(t.src,n=r[0].url)&&i.attr(t,"src",n),a&1&&s!==(s=r[0].name)&&i.attr(t,"alt",s)},d(r){r&&i.detach(t)}}}function gf(o){let t,e=o[0]&&_o(o);return{c(){e&&e.c(),t=i.empty()},m(n,s){e&&e.m(n,s),i.insert(n,t,s)},p(n,[s]){n[0]?e?e.p(n,s):(e=_o(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:i.noop,o:i.noop,d(n){e&&e.d(n),n&&i.detach(t)}}}function Af(o,t,e){let{media:n}=t,{playButtonIfNeed:s="small"}=t,{canPlay:r=!0}=t,{objectFit:a="cover"}=t,l,c=!1;const d=()=>l==null?void 0:l.pause();function u(h){i.binding_callbacks[h?"unshift":"push"](()=>{l=h,e(4,l)})}const f=()=>{!r||l&&l.play()};return o.$$set=h=>{"media"in h&&e(0,n=h.media),"playButtonIfNeed"in h&&e(1,s=h.playButtonIfNeed),"canPlay"in h&&e(2,r=h.canPlay),"objectFit"in h&&e(3,a=h.objectFit)},o.$$.update=()=>{o.$$.dirty&16&&l&&(e(5,c=l.paused),l.addEventListener("play",()=>{e(5,c=!1)}),l.addEventListener("pause",()=>{e(5,c=!0)}))},[n,s,r,a,l,c,d,u,f]}class $s extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Af,gf,i.safe_not_equal,{media:0,playButtonIfNeed:1,canPlay:2,objectFit:3},ff)}}function vf(o){i.append_styles(o,"svelte-1sr6cr9","@import url('swiper/css');@import url('swiper/css/autoplay');.media.svelte-1sr6cr9{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}")}function zo(o,t,e){const n=o.slice();return n[23]=t[e],n}function Mo(o){let t,e,n,s,r,a;const l=[yf,bf],c=[];function d(u,f){return u[13]?0:1}return e=d(o),n=c[e]=l[e](o),{c(){t=i.element("div"),n.c(),i.attr(t,"class","media svelte-1sr6cr9"),i.toggle_class(t,"unfolded",o[4])},m(u,f){i.insert(u,t,f),c[e].m(t,null),a=!0},p(u,f){o=u;let h=e;e=d(o),e===h?c[e].p(o,f):(i.group_outros(),i.transition_out(c[h],1,1,()=>{c[h]=null}),i.check_outros(),n=c[e],n?n.p(o,f):(n=c[e]=l[e](o),n.c()),i.transition_in(n,1),n.m(t,null)),f&16&&i.toggle_class(t,"unfolded",o[4])},i(u){a||(i.transition_in(n),u&&i.add_render_callback(()=>{r&&r.end(1),s=i.create_in_transition(t,me.fly,o[5]?{y:4,duration:o[3],delay:o[1],easing:Se.linear}:void 0),s.start()}),a=!0)},o(u){i.transition_out(n),s&&s.invalidate(),u&&(r=i.create_out_transition(t,me.fly,o[5]?{y:4,duration:o[3],delay:o[2],easing:Se.linear}:void 0)),a=!1},d(u){u&&i.detach(t),c[e].d(),u&&r&&r.end()}}}function bf(o){let t,e;return t=new $s({props:{media:o[0][0],objectFit:o[8],playButtonIfNeed:o[6],canPlay:o[7]}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&1&&(r.media=n[0][0]),s&256&&(r.objectFit=n[8]),s&64&&(r.playButtonIfNeed=n[6]),s&128&&(r.canPlay=n[7]),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function yf(o){let t,e;return t=new sf({props:{style:"height: 100%",modules:[ds.Autoplay],spaceBetween:30,autoplay:o[14]?re({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1,loop:!0,$$slots:{default:[Cf]},$$scope:{ctx:o}}}),t.$on("init",o[19]),t.$on("slideChange",o[20]),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&16384&&(r.autoplay=n[14]?re({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1),s&67111360&&(r.$$scope={dirty:s,ctx:n}),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function wf(o){let t,e,n;return t=new $s({props:{media:o[23],objectFit:o[8],playButtonIfNeed:o[6],canPlay:o[7]}}),{c(){i.create_component(t.$$.fragment),e=i.space()},m(s,r){i.mount_component(t,s,r),i.insert(s,e,r),n=!0},p(s,r){const a={};r&2048&&(a.media=s[23]),r&256&&(a.objectFit=s[8]),r&64&&(a.playButtonIfNeed=s[6]),r&128&&(a.canPlay=s[7]),t.$set(a)},i(s){n||(i.transition_in(t.$$.fragment,s),n=!0)},o(s){i.transition_out(t.$$.fragment,s),n=!1},d(s){i.destroy_component(t,s),s&&i.detach(e)}}}function To(o){let t,e;return t=new hf({props:{$$slots:{default:[wf]},$$scope:{ctx:o}}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&67111360&&(r.$$scope={dirty:s,ctx:n}),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function Cf(o){let t,e,n=o[11],s=[];for(let a=0;a<n.length;a+=1)s[a]=To(zo(o,n,a));const r=a=>i.transition_out(s[a],1,1,()=>{s[a]=null});return{c(){for(let a=0;a<s.length;a+=1)s[a].c();t=i.empty()},m(a,l){for(let c=0;c<s.length;c+=1)s[c].m(a,l);i.insert(a,t,l),e=!0},p(a,l){if(l&2496){n=a[11];let c;for(c=0;c<n.length;c+=1){const d=zo(a,n,c);s[c]?(s[c].p(d,l),i.transition_in(s[c],1)):(s[c]=To(d),s[c].c(),i.transition_in(s[c],1),s[c].m(t.parentNode,t))}for(i.group_outros(),c=n.length;c<s.length;c+=1)r(c);i.check_outros()}},i(a){if(!e){for(let l=0;l<n.length;l+=1)i.transition_in(s[l]);e=!0}},o(a){s=s.filter(Boolean);for(let l=0;l<s.length;l+=1)i.transition_out(s[l]);e=!1},d(a){i.destroy_each(s,a),a&&i.detach(t)}}}function Ef(o){let t,e,n=o[4]&&Mo(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[4]?n?(n.p(s,r),r&16&&i.transition_in(n,1)):(n=Mo(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function Pf(o,t,e){let n,s,r,{tag:a}=t,{mediaData:l}=t,{inDelay:c=0}=t,{outDelay:d=0}=t,{duration:u=0}=t,{unfolded:f=!0}=t,{animation:h=!0}=t,{playButtonIfNeed:p="small"}=t,{canPlay:g=!0}=t,{objectFit:A="cover"}=t,{enableCarousel:b=!0}=t,{autoplayConfig:v={autoplay:!0,autoplayVideo:!1}}=t;const y=Z.getContext("mediaStore"),w=Z.getContext("hooks");let I;function k(_){!n||!I||(y.set({currentMediaUrl:this.src}),w.emit("playStateChange",{event:_,state:"playing",tag:a,mediaInstance:this}),I.autoplay.stop())}function C(_){!n||!I||(w.emit("playStateChange",{event:_,state:"paused",tag:a,mediaInstance:this}),I.autoplay.running||I.autoplay.start())}let D=null;const x=_=>{e(10,I=_.detail[0])},z=_=>F(this,null,function*(){var B,R,G;if(!r||!v.autoplayVideo)return;const T=_.detail[0];if(!T)return;const H=T.realIndex;if(H===D)return;e(12,D=H);const E=s[H];if(!E||E.type!=="Video")return;T.autoplay.stop(),T.slides.map(Q=>Q.querySelector("video")).filter(Ue).forEach(Q=>Q.pause());const L=(B=T.slides[T.activeIndex])==null?void 0:B.querySelector("video");if(L&&(L.removeEventListener("play",k),L.removeEventListener("pause",C),L.addEventListener("play",k),L.addEventListener("pause",C)),L){L.addEventListener("click",()=>L.pause());const Q=(G=(R=L.parentElement)==null?void 0:R.getElementsByClassName("video-play-button-container"))==null?void 0:G[0];L.addEventListener("play",()=>Q==null?void 0:Q.classList.remove("showPlayButton")),L.addEventListener("pause",()=>Q==null?void 0:Q.classList.add("showPlayButton")),Q&&(L.paused?Q.classList.add("showPlayButton"):Q.classList.remove("showPlayButton"),Q.addEventListener("click",()=>L.play()))}});return o.$$set=_=>{"tag"in _&&e(17,a=_.tag),"mediaData"in _&&e(0,l=_.mediaData),"inDelay"in _&&e(1,c=_.inDelay),"outDelay"in _&&e(2,d=_.outDelay),"duration"in _&&e(3,u=_.duration),"unfolded"in _&&e(4,f=_.unfolded),"animation"in _&&e(5,h=_.animation),"playButtonIfNeed"in _&&e(6,p=_.playButtonIfNeed),"canPlay"in _&&e(7,g=_.canPlay),"objectFit"in _&&e(8,A=_.objectFit),"enableCarousel"in _&&e(18,b=_.enableCarousel),"autoplayConfig"in _&&e(9,v=_.autoplayConfig)},o.$$.update=()=>{o.$$.dirty&262145&&e(13,n=b&&(l==null?void 0:l.length)>1),o.$$.dirty&1&&e(11,s=l),o.$$.dirty&2560&&e(14,r=s.length>1&&v.autoplay),o.$$.dirty&1024&&I&&I.slides.forEach(_=>{const T=_.querySelector("video");T&&y.subscribe(({currentMediaUrl:H})=>{H!==T.src&&T.pause()})})},[l,c,d,u,f,h,p,g,A,v,I,s,D,n,r,k,C,a,b,x,z]}class er extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Pf,Ef,i.safe_not_equal,{tag:17,mediaData:0,inDelay:1,outDelay:2,duration:3,unfolded:4,animation:5,playButtonIfNeed:6,canPlay:7,objectFit:8,enableCarousel:18,autoplayConfig:9},vf)}}function If(o){i.append_styles(o,"svelte-1f7m1lj",".line.svelte-1f7m1lj{position:absolute;width:6.5625rem;height:1.3125rem;transform:translateY(-100%)}.text.svelte-1f7m1lj{position:absolute;width:6.25rem;left:1rem;bottom:0.0625rem;font-weight:600}.media-wrapper.svelte-1f7m1lj{position:absolute;left:0.875rem;top:-5.3125rem;width:5.625rem;height:3.75rem;font-weight:600}")}function jo(o,t,e){const n=o.slice();return n[5]=t[e].id,n[1]=t[e].content,n}function Bo(o){let t,e,n,s,r,a=[],l=new Map,c,d,u;t=new ve({props:{visible:o[4],left:61,bottom:57,width:2,blurRadius:150,spreadRadius:75}}),s=new Yh({props:{unfolded:o[4],duration:1e3,outDelay:400}});let f=o[2];const h=g=>g[5];for(let g=0;g<f.length;g+=1){let A=jo(o,f,g),b=h(A);l.set(b,a[g]=Qo(b,A))}let p=o[3]&&Ro(o);return{c(){i.create_component(t.$$.fragment),e=i.space(),n=i.element("div"),i.create_component(s.$$.fragment),r=i.space();for(let g=0;g<a.length;g+=1)a[g].c();c=i.space(),p&&p.c(),d=i.empty(),i.attr(n,"class","line svelte-1f7m1lj")},m(g,A){i.mount_component(t,g,A),i.insert(g,e,A),i.insert(g,n,A),i.mount_component(s,n,null),i.insert(g,r,A);for(let b=0;b<a.length;b+=1)a[b].m(g,A);i.insert(g,c,A),p&&p.m(g,A),i.insert(g,d,A),u=!0},p(g,A){const b={};A&16&&(b.visible=g[4]),t.$set(b);const v={};A&16&&(v.unfolded=g[4]),s.$set(v),A&20&&(f=g[2],i.group_outros(),a=i.update_keyed_each(a,A,h,1,g,f,l,c.parentNode,i.outro_and_destroy_block,Qo,c,jo),i.check_outros()),g[3]?p?(p.p(g,A),A&8&&i.transition_in(p,1)):(p=Ro(g),p.c(),i.transition_in(p,1),p.m(d.parentNode,d)):p&&(i.group_outros(),i.transition_out(p,1,1,()=>{p=null}),i.check_outros())},i(g){if(!u){i.transition_in(t.$$.fragment,g),i.transition_in(s.$$.fragment,g);for(let A=0;A<f.length;A+=1)i.transition_in(a[A]);i.transition_in(p),u=!0}},o(g){i.transition_out(t.$$.fragment,g),i.transition_out(s.$$.fragment,g);for(let A=0;A<a.length;A+=1)i.transition_out(a[A]);i.transition_out(p),u=!1},d(g){i.destroy_component(t,g),g&&i.detach(e),g&&i.detach(n),i.destroy_component(s),g&&i.detach(r);for(let A=0;A<a.length;A+=1)a[A].d(g);g&&i.detach(c),p&&p.d(g),g&&i.detach(d)}}}function Qo(o,t){let e,n,s;return n=new Zs({props:{unfolded:t[4],content:t[1],inDelay:500}}),{key:o,first:null,c(){e=i.element("div"),i.create_component(n.$$.fragment),i.attr(e,"class","text svelte-1f7m1lj"),this.first=e},m(r,a){i.insert(r,e,a),i.mount_component(n,e,null),s=!0},p(r,a){t=r;const l={};a&16&&(l.unfolded=t[4]),a&4&&(l.content=t[1]),n.$set(l)},i(r){s||(i.transition_in(n.$$.fragment,r),s=!0)},o(r){i.transition_out(n.$$.fragment,r),s=!1},d(r){r&&i.detach(e),i.destroy_component(n)}}}function Ro(o){let t,e,n;return e=new er({props:{autoplayConfig:{autoplay:!1},unfolded:o[4],mediaData:o[3],tag:o[0],enableCarousel:!1,canPlay:!1,playButtonIfNeed:"small",inDelay:500,duration:500}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),i.attr(t,"class","media-wrapper svelte-1f7m1lj")},m(s,r){i.insert(s,t,r),i.mount_component(e,t,null),n=!0},p(s,r){const a={};r&16&&(a.unfolded=s[4]),r&8&&(a.mediaData=s[3]),r&1&&(a.tag=s[0]),e.$set(a)},i(s){n||(i.transition_in(e.$$.fragment,s),n=!0)},o(s){i.transition_out(e.$$.fragment,s),n=!1},d(s){s&&i.detach(t),i.destroy_component(e)}}}function kf(o){let t,e,n=o[0].state&&Bo(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[0].state?n?(n.p(s,r),r&1&&i.transition_in(n,1)):(n=Bo(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function xf(o,t,e){let n,s,r,{tag:a}=t,l;return o.$$set=c=>{"tag"in c&&e(0,a=c.tag)},o.$$.update=()=>{var c,d,u;o.$$.dirty&1&&e(4,n=a.state?a.state.unfolded:!1),o.$$.dirty&1&&e(1,s=((d=(c=a.data.text)==null?void 0:c.length)!=null?d:0)>7?((u=a.data.text)==null?void 0:u.substring(0,6))+"...":a.data.text),o.$$.dirty&1&&e(3,r=a.data.mediaData),o.$$.dirty&2&&e(2,l=s?[{id:ue(),content:s}]:[])},[a,s,l,r,n]}class Df extends i.SvelteComponent{constructor(t){super(),i.init(this,t,xf,kf,i.safe_not_equal,{tag:0},If)}}function Sf(o){i.append_styles(o,"svelte-8mby9k",".svelte-8mby9k.svelte-8mby9k{box-sizing:border-box}.marketing.svelte-8mby9k.svelte-8mby9k{transform:translateY(-100%)}.content.svelte-8mby9k .headerImage.svelte-8mby9k{position:absolute;width:100%;top:0.25rem;transform:translateY(-100%);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem}.line.svelte-8mby9k.svelte-8mby9k{position:absolute;height:2.0625rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.content.svelte-8mby9k.svelte-8mby9k{background-color:white;position:relative;display:flex;flex-direction:column;min-width:11.125rem;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;border-radius:0.25rem;top:-1.875rem;left:-1rem;padding:0.5rem 0rem 0.5625rem;transition:all 500ms}.title.svelte-8mby9k.svelte-8mby9k{position:absolute;background-color:white;border-radius:0.25rem;width:100%;top:0.5rem;padding-left:0.75rem;padding-right:0.75rem}.title.svelte-8mby9k .text.svelte-8mby9k{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;font-weight:bold;line-height:1.125rem;color:#000}.footer.svelte-8mby9k.svelte-8mby9k{position:relative;padding-left:0.75rem;padding-right:0.75rem;width:100%;height:1.375rem;display:flex;align-items:center}.footer.svelte-8mby9k .goto-button.svelte-8mby9k{flex-shrink:0;white-space:nowrap;background-image:linear-gradient(to right, rgba(87, 144, 253, 1) 0, rgba(42, 114, 254, 1) 100%);color:#fff;font-size:0.625rem;border-radius:0.875rem;font-weight:bold;padding-left:0.5rem;padding-right:0.5rem;height:1.25rem;margin-left:auto;display:flex;align-items:center}.footer.svelte-8mby9k .goto-icon.svelte-8mby9k::after{content:'';display:inline-block;width:0.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAeFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////GqOSsAAAAJ3RSTlMAFNO2pYt4bErz8uP6ysawgVtBPDcR5C4s2L6ZmJBzZGJXUyEeDws/0G2zAAAAkklEQVQ4y+3TRw6DMBAF0OAeJ3QCpCe0uf8NwRILLBYfiS1/aT3JoymnI+sERZ5VCH0iVto3QDfBLmeSSMUTogRV9bBEpJAKaYpGijn13aTSLeraeG9D0NZFZv4/rRL5FDHnITlllqjv6tykWsmX4JHr05y7j6oFKq2P8He48B0tAM0EY0EDxquClw6vLz6EI35GmwwSZpe+WOgAAAAASUVORK5CYII=);background-size:100% auto;background-repeat:no-repeat}.price.svelte-8mby9k.svelte-8mby9k{flex-shrink:0;margin-right:0.75rem;white-space:nowrap;color:#ff6600;display:flex;align-items:baseline}.price.svelte-8mby9k .value.svelte-8mby9k{position:relative;top:0.0625rem;font-size:1.125rem;line-height:1.375rem;font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0rem}.price.svelte-8mby9k .unit.svelte-8mby9k{padding-left:0.125rem;font-size:0.625rem}.tag.svelte-8mby9k.svelte-8mby9k{position:relative;background-color:white;display:flex;width:-moz-max-content;width:max-content;padding-left:0.75rem;padding-right:0.75rem;min-height:1.75rem}.tag.svelte-8mby9k .base-tag.svelte-8mby9k{height:1rem;margin-top:1.375rem;margin-bottom:0.5rem;margin-right:0.25rem;font-size:0.625rem;line-height:0.875rem;padding:0.0625rem 0.25rem;border-radius:0.125rem;overflow:hidden}.tag.svelte-8mby9k .primary-tag.svelte-8mby9k{background:#e5eefe;color:#0055ff}.tag.svelte-8mby9k .secondary-tag.svelte-8mby9k{background:rgba(255, 102, 0, 0.08);color:rgba(255, 102, 0, 1)}.unfolded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 1)}.folded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.unfolded.svelte-8mby9k .content.svelte-8mby9k{opacity:1}.folded.svelte-8mby9k .content.svelte-8mby9k{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}")}function Oo(o,t,e){const n=o.slice();return n[0]=t[e],n}function Ho(o,t,e){const n=o.slice();return n[0]=t[e],n}function Fo(o){let t,e=o[0]+"",n;return{c(){t=i.element("div"),n=i.text(e),i.attr(t,"class","base-tag primary-tag svelte-8mby9k")},m(s,r){i.insert(s,t,r),i.append(t,n)},p(s,r){r&4&&e!==(e=s[0]+"")&&i.set_data(n,e)},d(s){s&&i.detach(t)}}}function Go(o){let t,e=o[0]&&Fo(o);return{c(){e&&e.c(),t=i.empty()},m(n,s){e&&e.m(n,s),i.insert(n,t,s)},p(n,s){n[0]?e?e.p(n,s):(e=Fo(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(n){e&&e.d(n),n&&i.detach(t)}}}function No(o){let t,e=o[0]+"",n;return{c(){t=i.element("div"),n=i.text(e),i.attr(t,"class","base-tag secondary-tag svelte-8mby9k")},m(s,r){i.insert(s,t,r),i.append(t,n)},p(s,r){r&4&&e!==(e=s[0]+"")&&i.set_data(n,e)},d(s){s&&i.detach(t)}}}function Wo(o){let t,e=o[0]&&No(o);return{c(){e&&e.c(),t=i.empty()},m(n,s){e&&e.m(n,s),i.insert(n,t,s)},p(n,s){n[0]?e?e.p(n,s):(e=No(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(n){e&&e.d(n),n&&i.detach(t)}}}function Xo(o){let t,e,n=o[2].price.value+"",s,r,a=o[2].price.unit&&Yo(o);return{c(){t=i.element("div"),e=i.element("span"),s=i.text(n),r=i.space(),a&&a.c(),i.attr(e,"class","value svelte-8mby9k"),i.attr(t,"class","price svelte-8mby9k")},m(l,c){i.insert(l,t,c),i.append(t,e),i.append(e,s),i.append(t,r),a&&a.m(t,null)},p(l,c){c&4&&n!==(n=l[2].price.value+"")&&i.set_data(s,n),l[2].price.unit?a?a.p(l,c):(a=Yo(l),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},d(l){l&&i.detach(t),a&&a.d()}}}function Yo(o){let t,e=o[2].price.unit+"",n;return{c(){t=i.element("span"),n=i.text(e),i.attr(t,"class","unit svelte-8mby9k")},m(s,r){i.insert(s,t,r),i.append(t,n)},p(s,r){r&4&&e!==(e=s[2].price.unit+"")&&i.set_data(n,e)},d(s){s&&i.detach(t)}}}function Uo(o){let t,e=o[2].highlightText+"",n;return{c(){t=i.element("div"),n=i.text(e),i.attr(t,"class","goto-button goto-icon svelte-8mby9k")},m(s,r){i.insert(s,t,r),i.append(t,n)},p(s,r){r&4&&e!==(e=s[2].highlightText+"")&&i.set_data(n,e)},d(s){s&&i.detach(t)}}}function Lf(o){var T,H;let t,e,n,s,r,a,l,c,d,u,f,h,p,g,A=o[2].title+"",b,v,y,w,I;e=new ve({props:{visible:o[1],outDelay:500,left:61,bottom:87,blurRadius:150,spreadRadius:75}});let k=o[2].brandTags||[],C=[];for(let E=0;E<k.length;E+=1)C[E]=Go(Ho(o,k,E));let D=o[2].tags||[],x=[];for(let E=0;E<D.length;E+=1)x[E]=Wo(Oo(o,D,E));let z=((T=o[2].price)==null?void 0:T.value)!==void 0&&((H=o[2].price)==null?void 0:H.value)!==null&&Xo(o),_=o[2].highlightText&&Uo(o);return{c(){var E,S;t=i.element("div"),i.create_component(e.$$.fragment),n=i.space(),s=i.element("div"),r=i.space(),a=i.element("div"),l=i.element("img"),d=i.space(),u=i.element("div");for(let L=0;L<C.length;L+=1)C[L].c();f=i.space();for(let L=0;L<x.length;L+=1)x[L].c();h=i.space(),p=i.element("div"),g=i.element("div"),b=i.text(A),v=i.space(),y=i.element("div"),z&&z.c(),w=i.space(),_&&_.c(),i.attr(s,"class","line svelte-8mby9k"),i.set_style(s,"transition-delay",o[1]?xt+"ms":Dt+Jo-Vo-40+"ms",!1),i.attr(l,"class","headerImage svelte-8mby9k"),i.src_url_equal(l.src,c=o[2].headerPictureUrl)||i.attr(l,"src",c),i.attr(l,"alt",""),i.attr(u,"class","tag svelte-8mby9k"),i.attr(g,"class","text svelte-8mby9k"),i.attr(p,"class","title svelte-8mby9k"),i.attr(y,"class","footer svelte-8mby9k"),i.set_style(y,"height",((E=o[2].price)==null?void 0:E.value)!==void 0&&((S=o[2].price)==null?void 0:S.value)!==null&&o[2].highlightText?void 0:"1rem",!1),i.attr(a,"class","content svelte-8mby9k"),i.set_style(a,"transition-delay",o[1]?xt+Dt+"ms":"0ms",!1),i.attr(t,"class","marketing svelte-8mby9k"),i.toggle_class(t,"unfolded",o[1]),i.toggle_class(t,"folded",o[3])},m(E,S){i.insert(E,t,S),i.mount_component(e,t,null),i.append(t,n),i.append(t,s),i.append(t,r),i.append(t,a),i.append(a,l),i.append(a,d),i.append(a,u);for(let L=0;L<C.length;L+=1)C[L].m(u,null);i.append(u,f);for(let L=0;L<x.length;L+=1)x[L].m(u,null);i.append(a,h),i.append(a,p),i.append(p,g),i.append(g,b),i.append(a,v),i.append(a,y),z&&z.m(y,null),i.append(y,w),_&&_.m(y,null),I=!0},p(E,[S]){var B,R,G,Q;const L={};if(S&2&&(L.visible=E[1]),e.$set(L),S&2&&i.set_style(s,"transition-delay",E[1]?xt+"ms":Dt+Jo-Vo-40+"ms",!1),(!I||S&4&&!i.src_url_equal(l.src,c=E[2].headerPictureUrl))&&i.attr(l,"src",c),S&4){k=E[2].brandTags||[];let O;for(O=0;O<k.length;O+=1){const X=Ho(E,k,O);C[O]?C[O].p(X,S):(C[O]=Go(X),C[O].c(),C[O].m(u,f))}for(;O<C.length;O+=1)C[O].d(1);C.length=k.length}if(S&4){D=E[2].tags||[];let O;for(O=0;O<D.length;O+=1){const X=Oo(E,D,O);x[O]?x[O].p(X,S):(x[O]=Wo(X),x[O].c(),x[O].m(u,null))}for(;O<x.length;O+=1)x[O].d(1);x.length=D.length}(!I||S&4)&&A!==(A=E[2].title+"")&&i.set_data(b,A),((B=E[2].price)==null?void 0:B.value)!==void 0&&((R=E[2].price)==null?void 0:R.value)!==null?z?z.p(E,S):(z=Xo(E),z.c(),z.m(y,w)):z&&(z.d(1),z=null),E[2].highlightText?_?_.p(E,S):(_=Uo(E),_.c(),_.m(y,null)):_&&(_.d(1),_=null),S&4&&i.set_style(y,"height",((G=E[2].price)==null?void 0:G.value)!==void 0&&((Q=E[2].price)==null?void 0:Q.value)!==null&&E[2].highlightText?void 0:"1rem",!1),S&2&&i.set_style(a,"transition-delay",E[1]?xt+Dt+"ms":"0ms",!1),S&2&&i.toggle_class(t,"unfolded",E[1]),S&8&&i.toggle_class(t,"folded",E[3])},i(E){I||(i.transition_in(e.$$.fragment,E),I=!0)},o(E){i.transition_out(e.$$.fragment,E),I=!1},d(E){E&&i.detach(t),i.destroy_component(e),i.destroy_each(C,E),i.destroy_each(x,E),z&&z.d(),_&&_.d()}}}const xt=400,Vo=500,Dt=180,Jo=500;function _f(o,t,e){let n,s,r,{tag:a}=t;return o.$$set=l=>{"tag"in l&&e(0,a=l.tag)},o.$$.update=()=>{var l,c;o.$$.dirty&1&&e(1,n=(c=(l=a.state)==null?void 0:l.unfolded)!=null?c:!1),o.$$.dirty&2&&e(3,s=!n),o.$$.dirty&1&&e(2,r=a.data)},[a,n,r,s]}class zf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,_f,Lf,i.safe_not_equal,{tag:0},Sf)}}function Mf(o){i.append_styles(o,"svelte-1ku3wt4",`.audio.svelte-1ku3wt4.svelte-1ku3wt4{position:relative;width:100%;height:100%;cursor:pointer}@keyframes svelte-1ku3wt4-playing{25%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='8' transform='translate(-1 -1)' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}50%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.533 6.685L4.169 8.049l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}75%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.656 4.874l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .875-.333 1.67-.88 2.268l.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}}.paused.svelte-1ku3wt4 .audio-icon.svelte-1ku3wt4{animation:none}.audio-icon.svelte-1ku3wt4.svelte-1ku3wt4{width:100%;height:100%;border-radius:50%;background-size:100%;animation:svelte-1ku3wt4-playing 2s steps(1) infinite;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm1.428 2.79l-.953.952a6.222 6.222 0 0 1 1.775 4.36c0 1.571-.58 3.006-1.538 4.103l-.184.202.793.794a7.344 7.344 0 0 0 2.21-5.26A7.341 7.341 0 0 0 9.428 2.79zM7.344 4.873l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .802-.28 1.537-.748 2.115l-.132.153.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}`)}function Zo(o){let t,e,n,s,r,a,l,c=!0,d,u,f,h,p;return e=new ve({props:{center:!0,blurRadius:15,spreadRadius:6}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),n=i.space(),s=i.element("div"),r=i.space(),a=i.element("audio"),i.attr(s,"class","audio-icon svelte-1ku3wt4"),a.controls=!1,i.attr(a,"playsinline",""),i.src_url_equal(a.src,l=o[3])||i.attr(a,"src",l),i.attr(t,"class","audio svelte-1ku3wt4"),i.toggle_class(t,"paused",o[6])},m(g,A){i.insert(g,t,A),i.mount_component(e,t,null),i.append(t,n),i.append(t,s),i.append(t,r),i.append(t,a),o[9](a),f=!0,h||(p=[i.listen(a,"play",o[10]),i.listen(a,"pause",o[10]),i.listen(t,"click",i.stop_propagation(o[7]))],h=!0)},p(g,A){o=g,(!f||A&8&&!i.src_url_equal(a.src,l=o[3]))&&i.attr(a,"src",l),A&64&&c!==(c=o[6])&&a[c?"pause":"play"](),A&64&&i.toggle_class(t,"paused",o[6])},i(g){f||(i.transition_in(e.$$.fragment,g),g&&i.add_render_callback(()=>{u&&u.end(1),d=i.create_in_transition(t,me.fade,{duration:o[2],delay:o[0],easing:Se.cubicInOut}),d.start()}),f=!0)},o(g){i.transition_out(e.$$.fragment,g),d&&d.invalidate(),g&&(u=i.create_out_transition(t,me.fade,{duration:o[2],delay:o[1],easing:Se.cubicInOut})),f=!1},d(g){g&&i.detach(t),i.destroy_component(e),o[9](null),g&&u&&u.end(),h=!1,i.run_all(p)}}}function Tf(o){let t,e,n=o[4]&&Zo(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[4]?n?(n.p(s,r),r&16&&i.transition_in(n,1)):(n=Zo(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function jf(o,t,e){let{inDelay:n=0}=t,{outDelay:s=0}=t,{duration:r=0}=t,{url:a}=t,{unfolded:l}=t,{hooksInfo:c={}}=t;const d=Z.getContext("hooks"),u=Z.getContext("mediaStore");let f,h=!0;u.subscribe(({currentMediaUrl:b})=>{b!==a&&(f==null||f.pause())});function p(b){u.set({currentMediaUrl:a}),f&&(d.emit("click",j({event:b,target:"AudioTagPlayIcon",audioInstance:f},c)),f.paused?f.play():f.pause(),e(5,f.onplay=v=>d.emit("playStateChange",j({event:v,state:"playing",mediaInstance:f},c)),f),e(5,f.onpause=v=>d.emit("playStateChange",j({event:v,state:"paused",mediaInstance:f},c)),f))}function g(b){i.binding_callbacks[b?"unshift":"push"](()=>{f=b,e(5,f)})}function A(){h=this.paused,e(6,h)}return o.$$set=b=>{"inDelay"in b&&e(0,n=b.inDelay),"outDelay"in b&&e(1,s=b.outDelay),"duration"in b&&e(2,r=b.duration),"url"in b&&e(3,a=b.url),"unfolded"in b&&e(4,l=b.unfolded),"hooksInfo"in b&&e(8,c=b.hooksInfo)},o.$$.update=()=>{o.$$.dirty&48&&(l||f==null||f.pause())},[n,s,r,a,l,f,h,p,c,g,A]}class Bf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,jf,Tf,i.safe_not_equal,{inDelay:0,outDelay:1,duration:2,url:3,unfolded:4,hooksInfo:8},Mf)}}function Qf(o){i.append_styles(o,"svelte-4r8s18",".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}")}function qo(o){var y,w,I,k;let t,e,n,s,r,a,l,c,d,u,f,h,p,g,A,b,v;return e=new ve({props:{visible:o[5],left:o[2]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),r=new Js({props:{unfolded:o[5],duration:1e3,outDelay:o[4]+20*Math.min((w=(y=o[3][0])==null?void 0:y.content.length)!=null?w:10,15)}}),u=new Bf({props:{unfolded:o[5],url:o[0].data.audioUrl,duration:1e3,outDelay:20*Math.min((k=(I=o[3][0])==null?void 0:I.content.length)!=null?k:10,15),hooksInfo:{tag:o[0]}}}),p=new qs({props:{visible:o[5],textUnfolded:o[1],textItems:o[3]}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),n=i.space(),s=i.element("div"),i.create_component(r.$$.fragment),a=i.space(),l=i.element("div"),c=i.element("div"),d=i.element("div"),i.create_component(u.$$.fragment),f=i.space(),h=i.element("div"),i.create_component(p.$$.fragment),i.attr(s,"class","line svelte-4r8s18"),i.set_style(s,"width",o[2]+"px",!1),i.attr(d,"class","audio-icon svelte-4r8s18"),i.set_style(h,"display","inline-block",!1),i.attr(c,"class","wrapper svelte-4r8s18"),i.attr(l,"class","content svelte-4r8s18"),i.add_render_callback(()=>o[8].call(l)),i.attr(t,"class","audio-tag svelte-4r8s18"),i.toggle_class(t,"unfolded",o[5])},m(C,D){i.insert(C,t,D),i.mount_component(e,t,null),i.append(t,n),i.append(t,s),i.mount_component(r,s,null),i.append(t,a),i.append(t,l),i.append(l,c),i.append(c,d),i.mount_component(u,d,null),i.append(c,f),i.append(c,h),i.mount_component(p,h,null),g=i.add_resize_listener(l,o[8].bind(l)),A=!0,b||(v=i.listen(h,"click",o[6]),b=!0)},p(C,D){var H,E,S,L;const x={};D&32&&(x.visible=C[5]),D&4&&(x.left=C[2]/2+"px"),e.$set(x);const z={};D&32&&(z.unfolded=C[5]),D&24&&(z.outDelay=C[4]+20*Math.min((E=(H=C[3][0])==null?void 0:H.content.length)!=null?E:10,15)),r.$set(z),D&4&&i.set_style(s,"width",C[2]+"px",!1);const _={};D&32&&(_.unfolded=C[5]),D&1&&(_.url=C[0].data.audioUrl),D&8&&(_.outDelay=20*Math.min((L=(S=C[3][0])==null?void 0:S.content.length)!=null?L:10,15)),D&1&&(_.hooksInfo={tag:C[0]}),u.$set(_);const T={};D&32&&(T.visible=C[5]),D&2&&(T.textUnfolded=C[1]),D&8&&(T.textItems=C[3]),p.$set(T),D&32&&i.toggle_class(t,"unfolded",C[5])},i(C){A||(i.transition_in(e.$$.fragment,C),i.transition_in(r.$$.fragment,C),i.transition_in(u.$$.fragment,C),i.transition_in(p.$$.fragment,C),A=!0)},o(C){i.transition_out(e.$$.fragment,C),i.transition_out(r.$$.fragment,C),i.transition_out(u.$$.fragment,C),i.transition_out(p.$$.fragment,C),A=!1},d(C){C&&i.detach(t),i.destroy_component(e),i.destroy_component(r),i.destroy_component(u),i.destroy_component(p),g(),b=!1,v()}}}function Rf(o){let t,e,n=o[0].state&&qo(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[0].state?n?(n.p(s,r),r&1&&i.transition_in(n,1)):(n=qo(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function Of(o,t,e){let n,s,r,{tag:a}=t,l=!1,c,d=[];function u(){e(1,l=!l)}function f(){c=this.clientWidth,e(2,c)}return o.$$set=h=>{"tag"in h&&e(0,a=h.tag)},o.$$.update=()=>{var h;o.$$.dirty&1&&e(5,n=!!((h=a.state)!=null&&h.unfolded)),o.$$.dirty&1&&e(7,s=a.data.text),o.$$.dirty&128&&e(3,d=[{id:ue(),content:s}]),o.$$.dirty&2&&e(4,r=l?450:0)},[a,l,c,d,r,n,u,s,f]}class Hf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Of,Rf,i.safe_not_equal,{tag:0},Qf)}}function Ff(o){i.append_styles(o,"svelte-10cw0el",".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}")}function Ko(o){let t,e,n;return e=new er({props:{unfolded:o[5],mediaData:o[4],objectFit:o[2],enableCarousel:o[1],autoplayConfig:o[3],tag:o[0],canPlay:!0,playButtonIfNeed:"large",inDelay:500,duration:500}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),i.attr(t,"class","media-wrapper svelte-10cw0el")},m(s,r){i.insert(s,t,r),i.mount_component(e,t,null),n=!0},p(s,r){const a={};r&32&&(a.unfolded=s[5]),r&16&&(a.mediaData=s[4]),r&4&&(a.objectFit=s[2]),r&2&&(a.enableCarousel=s[1]),r&8&&(a.autoplayConfig=s[3]),r&1&&(a.tag=s[0]),e.$set(a)},i(s){n||(i.transition_in(e.$$.fragment,s),n=!0)},o(s){i.transition_out(e.$$.fragment,s),n=!1},d(s){s&&i.detach(t),i.destroy_component(e)}}}function Gf(o){let t,e,n=o[0].state&&o[4]&&Ko(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[0].state&&s[4]?n?(n.p(s,r),r&17&&i.transition_in(n,1)):(n=Ko(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function Nf(o,t,e){let n,s,r,a,l,{tag:c}=t;return o.$$set=d=>{"tag"in d&&e(0,c=d.tag)},o.$$.update=()=>{var d,u;o.$$.dirty&1&&e(5,n=c.state?c.state.unfolded:!1),o.$$.dirty&1&&e(4,s=c.data.mediaData),o.$$.dirty&1&&e(1,r=c.data.enableCarousel),o.$$.dirty&3&&e(3,a=(d=c.data.autoplayConfig)!=null?d:{autoplay:r!=null?r:!0,autoplayVideo:!0}),o.$$.dirty&1&&e(2,l=(u=c.data.objectFit)!=null?u:(()=>c.data.adaptationMode==="stretch"?"cover":c.data.adaptationMode==="proportional"?"contain":void 0)())},[c,r,l,a,s,n]}class Wf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Nf,Gf,i.safe_not_equal,{tag:0},Ff)}}function Xf(o){i.append_styles(o,"svelte-7x7u86",".wrapper.svelte-7x7u86{font-weight:600;cursor:pointer;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.text-wrapper.svelte-7x7u86{position:relative;display:flex;align-items:center;justify-content:center}.icon.svelte-7x7u86{position:relative;margin-bottom:0.6875rem}.arrow0.svelte-7x7u86,.arrow1.svelte-7x7u86,.arrow2.svelte-7x7u86{position:absolute;width:1.625rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAAkCAYAAAAnxQwhAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAATqADAAQAAAABAAAAJAAAAABrx2urAAAGm0lEQVRoBd2ZXbCVUxjH26QSfSCS0JwoFNEZ0cc45iSmUUaqC+KCwUUXxYUZw4yrLhozLlDDRWa6oW5yOFTT0IcyKn1JnIjDKelLPipJcXT8fttaZ95qd+yzv+uZ+e211rvfd61n/ddaz1rv3qkOFWgtL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U56pFC8augMudoSHoziWcdSmIOA8e3Da6dYm8Ihmu+Zz8H14ckYWHONZ19Qz4+go53A9qNYLvtPYBlON5C2Gn4MpuDsHgVxecXvHQQH8krw7JiLuUnohz5pX8NM/PB9N6OdVjicNaa8AHFJROeqMtZ0+ovGk2/AI0o3iGKRTcey9aSO8locbXN3wyc75k4+BoaBYSNZ3yHKHj2ug6uhPdbEzQ6qK0ARXQ0z8MmYe4plFA4Hx3Hn0xB3Hiv0V9qTYxCXMpoie2LX+vyXnPDpiH4Ay3HMe9tt+NiTh0bDPRBXRLIed07tZvDebEzhN4CzV3O5voyPi9KlxMcJwuGMQj0FE8M9Ku9I1MIJ94bvk4mNGORdcr41GLd8xjpM94HxZAmO7CAtmOF3Pyoz5srJ8bCZaw68M95NJU4GshlNf1dAf4i+15F/Bb9b416rGDRuPHsRHCHN2PEz3GahDXMq/wR9wfgTGyObFnE56ULwDxW/K5rRB/tTDa4YY2Imf3Zx/TIwFLVl6/iyF8SNxxX0LH1Ix720cDRoTJgNcbT2hwdUPZPZeCNYsc9EQazPEV4NTm9/zjlKWnKjT11otBYUcRS4AuKgmjrYToxrwUHPZN9z0Ql0afhyL+k0+rQtRQOu/3qIAhjIB0IPSJrrvwEcARvTko44896DhXFUvKESjD66msbD/eBMSw60eQVygAfDyXH8INe2gZPLiaF4ExTucTLPg2aMGg7uVpqzZwu4tm8Ad7UoFtn0q4ti1SHWt16odKO/A/DxAZgAcYVFt+3nV2AcHAIdQTsOa6Ea7P9MhZtB5jHQmsDltwMM8qrszFPpaEfILIYF4H+ZVnrGGf12coyEyXAvdIU4KUydaa4+r/cDl3UVaHMVzun7erp4+g/FWQWK5a6oeGeNoYHijAVFrIG44shmtKkK52x6FSZluMW4pVjvIJbHibPe0MPl61JWxEEZOvw216a3LkEeGMGFO0D1d8KqMyVu4WtRDE2Mh85Az6Wuso/RZA1ph38BBMvNbHuq7kAAAAAASUVORK5CYII=);background-repeat:no-repeat;background-size:contain;animation-fill-mode:backwards;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.2s}.arrow1.svelte-7x7u86{position:relative}.arrow0.svelte-7x7u86{top:-0.75rem;animation-name:svelte-7x7u86-up0}.arrow1.svelte-7x7u86{animation-name:svelte-7x7u86-up1}.arrow2.svelte-7x7u86{top:0.75rem;animation-name:svelte-7x7u86-up2}.text.svelte-7x7u86{position:absolute;top:0;font-size:0.875rem;color:#ffffff;letter-spacing:0;text-align:center;max-width:8.75rem;width:-moz-max-content;width:max-content;word-break:break-all;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}@keyframes svelte-7x7u86-up0{0%{opacity:0.8;transform:translate3d(0, 0, 0) scale(0.84)}33.33%,100%{opacity:0;transform:translate3d(0, -0.75rem, 0) scale(0.84)}}@keyframes svelte-7x7u86-up1{0%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}33.33%,100%{opacity:0.8;transform:translate3d(0, -0.75rem, 0) scale(0.84)}}@keyframes svelte-7x7u86-up2{0%{opacity:0}33.33%,100%{opacity:1;transform:translate3d(0, -0.75rem, 0)}}.link.svelte-7x7u86{position:relative;width:1.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAkCAMAAAAgl+0yAAAAnFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+TINBkAAAAM3RSTlMAjLy6ILM2Fi+Zng3BrPvao4VC9ceneQfKkmNdV1AbEeLOsHA77ujUtn5JLnRraSUUjVLj/+RVAAABhElEQVRIx63V2W6CQBiGYUBUQGDYdwTZQZZa7v/eimik/ket/7yZ4yeTTCYf8+dOX8etxGVoxAvCVbguR3g0uRTMA0w4odGi+CbzFnGKosCqrmHc5rdEwzCwqtGFJlC7DqtOcTxANY67BHnVKOpVoEZRjFPdLgxbqIZhhFTjINChGgThF06NhpGd35OGMcCppyDPfajm+YhUR8cRoeo4+RGlJnnbalBt2x6nHh1dt4Gq6bqDU886y2ZQZVn9jFJ51vcbqPo+Up18UeSgKoo3nHqVJEkGqi1JPk49aLZmQdW2xXf1zP+vUFHsC1QVReK33xdk+w9SaqAq+732UvvdZ2UEqrud8lR5Wc4a7pO8GaoL9VBjy7rMlMosq1lV43LhZlrtF+yuJlbtEXpqXXP3NYwI8VJqakOIziw5aepV1FQuTdfhvlWVZdJCrao6MPe0spRpqV5ZFivqNqYpq3RQ2TST5/h4quoRCmwqq6rymol6plV53IZSomTKE/MroWfxDevL/wAEdPq1eGDh4AAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-size:contain;animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:1.2s;animation-name:svelte-7x7u86-left-right}@keyframes svelte-7x7u86-left-right{0%,100%{opacity:0.8;transform:translateX(-0.3125rem)}50%{opacity:1;transform:translateX(0)}}")}function Yf(o){let t,e,n,s;return t=new ve({props:{visible:!0,outDelay:0,inDelay:0,width:1.4,left:13,bottom:"auto",blurRadius:50,spreadRadius:18}}),{c(){i.create_component(t.$$.fragment),e=i.space(),n=i.element("div"),i.attr(n,"class","link svelte-7x7u86")},m(r,a){i.mount_component(t,r,a),i.insert(r,e,a),i.insert(r,n,a),s=!0},i(r){s||(i.transition_in(t.$$.fragment,r),s=!0)},o(r){i.transition_out(t.$$.fragment,r),s=!1},d(r){i.destroy_component(t,r),r&&i.detach(e),r&&i.detach(n)}}}function Uf(o){let t,e,n,s,r,a,l,c;return t=new ve({props:{visible:!0,outDelay:0,inDelay:0,height:1.2,left:13,bottom:12,blurRadius:50,spreadRadius:18}}),{c(){i.create_component(t.$$.fragment),e=i.space(),n=i.element("div"),s=i.space(),r=i.element("div"),a=i.space(),l=i.element("div"),i.attr(n,"class","arrow0 svelte-7x7u86"),i.attr(r,"class","arrow1 svelte-7x7u86"),i.attr(l,"class","arrow2 svelte-7x7u86")},m(d,u){i.mount_component(t,d,u),i.insert(d,e,u),i.insert(d,n,u),i.insert(d,s,u),i.insert(d,r,u),i.insert(d,a,u),i.insert(d,l,u),c=!0},i(d){c||(i.transition_in(t.$$.fragment,d),c=!0)},o(d){i.transition_out(t.$$.fragment,d),c=!1},d(d){i.destroy_component(t,d),d&&i.detach(e),d&&i.detach(n),d&&i.detach(s),d&&i.detach(r),d&&i.detach(a),d&&i.detach(l)}}}function Vf(o){let t,e,n,s,r,a,l,c,d,u=o[0].text+"",f,h;const p=[Uf,Yf],g=[];function A(b,v){return b[0].linkType===Ot.VrLink?0:b[0].linkType===Ot.NormalLink?1:-1}return~(n=A(o))&&(s=g[n]=p[n](o)),l=new ve({props:{visible:!0,outDelay:0,inDelay:0,left:"auto",bottom:"auto",width:"80%",blurRadius:40,spreadRadius:16,opacity:.08}}),{c(){t=i.element("div"),e=i.element("div"),s&&s.c(),r=i.space(),a=i.element("div"),i.create_component(l.$$.fragment),c=i.space(),d=i.element("div"),f=i.text(u),i.attr(e,"class","icon svelte-7x7u86"),i.attr(d,"class","text svelte-7x7u86"),i.attr(a,"class","text-wrapper svelte-7x7u86"),i.attr(t,"class","wrapper svelte-7x7u86")},m(b,v){i.insert(b,t,v),i.append(t,e),~n&&g[n].m(e,null),i.append(t,r),i.append(t,a),i.mount_component(l,a,null),i.append(a,c),i.append(a,d),i.append(d,f),h=!0},p(b,[v]){let y=n;n=A(b),n!==y&&(s&&(i.group_outros(),i.transition_out(g[y],1,1,()=>{g[y]=null}),i.check_outros()),~n?(s=g[n],s||(s=g[n]=p[n](b),s.c()),i.transition_in(s,1),s.m(e,null)):s=null),(!h||v&1)&&u!==(u=b[0].text+"")&&i.set_data(f,u)},i(b){h||(i.transition_in(s),i.transition_in(l.$$.fragment,b),h=!0)},o(b){i.transition_out(s),i.transition_out(l.$$.fragment,b),h=!1},d(b){b&&i.detach(t),~n&&g[n].d(),i.destroy_component(l)}}}function Jf(o,t,e){let n,{tag:s}=t;return o.$$set=r=>{"tag"in r&&e(1,s=r.tag)},o.$$.update=()=>{o.$$.dirty&2&&e(0,n=s.data)},[n,s]}class Zf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Jf,Vf,i.safe_not_equal,{tag:1},Xf)}}function qf(o){i.append_styles(o,"svelte-kzl2aj",".customElement__container.svelte-kzl2aj{position:relative}")}function $o(o){let t,e=o[0].element+"",n;return{c(){t=new i.HtmlTag(!1),n=i.empty(),t.a=n},m(s,r){t.m(e,s,r),i.insert(s,n,r)},p(s,r){r&1&&e!==(e=s[0].element+"")&&t.p(e)},d(s){s&&i.detach(n),s&&t.d()}}}function Kf(o){let t,e=typeof o[0].element=="string"&&$o(o);return{c(){t=i.element("div"),e&&e.c(),i.attr(t,"class","customElement__container svelte-kzl2aj")},m(n,s){i.insert(n,t,s),e&&e.m(t,null),o[2](t)},p(n,[s]){typeof n[0].element=="string"?e?e.p(n,s):(e=$o(n),e.c(),e.m(t,null)):e&&(e.d(1),e=null)},i:i.noop,o:i.noop,d(n){n&&i.detach(t),e&&e.d(),o[2](null)}}}function $f(o,t,e){let{tag:n}=t,s,r;Z.onMount(()=>{if(s){if(n.element instanceof Element){const l=n.element;s.appendChild(l),r=()=>s==null?void 0:s.removeChild(l)}else if(typeof n.element=="function"){const l=n.element;r=l(s)}}}),Z.onDestroy(()=>{r==null||r()});function a(l){i.binding_callbacks[l?"unshift":"push"](()=>{s=l,e(1,s)})}return o.$$set=l=>{"tag"in l&&e(0,n=l.tag)},[n,s,a]}class em extends i.SvelteComponent{constructor(t){super(),i.init(this,t,$f,Kf,i.safe_not_equal,{tag:0},qf)}}function tm(o){i.append_styles(o,"svelte-95x526",`@font-face{font-family:'TG-TYPE';font-style:normal;font-weight:400;src:local('TG-TYPE-Bold'),
|
|
539
|
+
`))&&i.attr(t,"style",e),l&8&&i.set_style(t,"width",pe(o[3]),!1),l&16&&i.set_style(t,"height",pe(o[4]),!1),l&8192&&i.set_style(t,"z-index",o[13],!1)},i(a){r||(a&&i.add_render_callback(()=>{s&&s.end(1),n=i.create_in_transition(t,me.fade,{duration:o[0]}),n.start()}),r=!0)},o(a){n&&n.invalidate(),a&&(s=i.create_out_transition(t,me.fade,{duration:o[1]})),r=!1},d(a){a&&i.detach(t),a&&s&&s.end()}}}function Ph(o){let t,e=o[2]&&lo(o);return{c(){e&&e.c(),t=i.empty()},m(n,s){e&&e.m(n,s),i.insert(n,t,s)},p(n,[s]){n[2]?e?(e.p(n,s),s&4&&i.transition_in(e,1)):(e=lo(n),e.c(),i.transition_in(e,1),e.m(t.parentNode,t)):e&&(i.group_outros(),i.transition_out(e,1,1,()=>{e=null}),i.check_outros())},i(n){i.transition_in(e)},o(n){i.transition_out(e)},d(n){e&&e.d(n),n&&i.detach(t)}}}function pe(o){return typeof o=="number"?o/16+"rem":o}function Ih(o,t,e){let{inDelay:n=1e3}=t,{outDelay:s=1e3}=t,{visible:r=!0}=t,{width:a=0}=t,{height:l=0}=t,{left:c=0}=t,{bottom:d=0}=t,{center:u=!1}=t,{horizontalCenter:f=!1}=t,{verticalCenter:h=!1}=t,{blurRadius:p}=t,{spreadRadius:g}=t,{opacity:A=.15}=t,{zIndex:b=void 0}=t;return o.$$set=v=>{"inDelay"in v&&e(0,n=v.inDelay),"outDelay"in v&&e(1,s=v.outDelay),"visible"in v&&e(2,r=v.visible),"width"in v&&e(3,a=v.width),"height"in v&&e(4,l=v.height),"left"in v&&e(5,c=v.left),"bottom"in v&&e(6,d=v.bottom),"center"in v&&e(7,u=v.center),"horizontalCenter"in v&&e(8,f=v.horizontalCenter),"verticalCenter"in v&&e(9,h=v.verticalCenter),"blurRadius"in v&&e(10,p=v.blurRadius),"spreadRadius"in v&&e(11,g=v.spreadRadius),"opacity"in v&&e(12,A=v.opacity),"zIndex"in v&&e(13,b=v.zIndex)},[n,s,r,a,l,c,d,u,f,h,p,g,A,b]}class ve extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Ih,Ph,i.safe_not_equal,{inDelay:0,outDelay:1,visible:2,width:3,height:4,left:5,bottom:6,center:7,horizontalCenter:8,verticalCenter:9,blurRadius:10,spreadRadius:11,opacity:12,zIndex:13},Eh)}}function kh(){return Math.random().toString(36).slice(-6)}const co=kh();function xh(o){i.append_styles(o,"svelte-1b2n9wi",".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function uo(o,t,e){const n=o.slice();return n[10]=t[e],n[11]=t,n[12]=e,n}function ho(o){let t,e=o[10]+"",n,s=o[12];const r=()=>o[6](t,s),a=()=>o[6](null,s);return{c(){t=i.element("span"),n=i.text(e),i.attr(t,"class","text-char svelte-1b2n9wi")},m(l,c){i.insert(l,t,c),i.append(t,n),r()},p(l,c){o=l,c&2&&e!==(e=o[10]+"")&&i.set_data(n,e),s!==o[12]&&(a(),s=o[12],r())},d(l){l&&i.detach(t),a()}}}function Dh(o){let t,e=o[1],n=[];for(let s=0;s<e.length;s+=1)n[s]=ho(uo(o,e,s));return{c(){for(let s=0;s<n.length;s+=1)n[s].c();t=i.empty()},m(s,r){for(let a=0;a<n.length;a+=1)n[a].m(s,r);i.insert(s,t,r)},p(s,[r]){if(r&3){e=s[1];let a;for(a=0;a<e.length;a+=1){const l=uo(s,e,a);n[a]?n[a].p(l,r):(n[a]=ho(l),n[a].c(),n[a].m(t.parentNode,t))}for(;a<n.length;a+=1)n[a].d(1);n.length=e.length}},i:i.noop,o:i.noop,d(s){i.destroy_each(n,s),s&&i.detach(t)}}}function Sh(o,t,e){let n,{inDelay:s=0}=t,{outDelay:r=0}=t,{content:a}=t,{unfolded:l}=t,c,d=[],u;function f(p){clearTimeout(c),c=setTimeout(function(){!u||(p&&u.reversed||!p&&!u.reversed)&&(u.reverse(),u.play())},p?s:r)}Z.onMount(function(){const p=(()=>{const g=bh(A=>d[A].getBoundingClientRect().x,[Math.min(d.length-1,10),Math.min(d.length-1,30)]);if(g>0)return g})();u=Wn.default({targets:d.filter(Ue).slice(0,p),autoplay:!1,duration:400,scale:[.7,1],rotate:[20,0],opacity:[0,1],translateX:[4,0],translateY:[10,0],delay:Wn.default.stagger(50),easing:"easeInOutCubic"}),l&&u.seek(u.duration)});function h(p,g){i.binding_callbacks[p?"unshift":"push"](()=>{d[g]=p,e(0,d)})}return o.$$set=p=>{"inDelay"in p&&e(2,s=p.inDelay),"outDelay"in p&&e(3,r=p.outDelay),"content"in p&&e(4,a=p.content),"unfolded"in p&&e(5,l=p.unfolded)},o.$$.update=()=>{o.$$.dirty&16&&e(1,n=(()=>{const p=[],g=new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)","gu")),A=`__EMOJI_SPLIT_${co}__`,b=`__EMOJI_${co}__`;return a.slice().replace(g,v=>`${A}${b}${v}${A}`).split(A).forEach(v=>v.startsWith(b)?p.push(v.slice(b.length)):p.push(...v.split(""))),p.filter(Boolean)})()),o.$$.dirty&32&&f(l)},[d,n,s,r,a,l,h]}class Zs extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Sh,Dh,i.safe_not_equal,{inDelay:2,outDelay:3,content:4,unfolded:5},xh)}}const Lh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAAKgAAAADUGqULAAAB0ElEQVRYCe2WSUoEQRBFLVHEiVZU1I03cKW38SSewRt4A5fiTty5cQIFR9pZQWkcUNSe2/Z9yISiSGxRkUAy4BGZSVX168gistraYsQKxArECsQKxApYqkDyU5lmsznMM+ZgAGpQhaUkSRbINgLJCXiCBtSgAkVYtGGIBTKj8AgKSVahDNvQa0IUkUG4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LtGkjIfmIlMnJ+K/MojfzIrl8B3kpU1osxJSYtTAL8wKf4EYJQFk+JeQMlvE3UcLRmTkkUANm1ZOZmE24dqGU5gOfCyZkyGWQT+IykW8zmSz0IpiLNN8t5iTmdTkgGTrInI7JcfULaH10Qnh/4IMVjAxNk6jxwajuUb8lqOZRT3S/lx06RY1g8C4akfiEJAOZdFKzsq/nNjIssdufjbhQAEAUodOGDWp4m8S0oHEhb+YexGkD4EBUpdVMrfl/E/RhNJnsjF/ls0r980YRQDlAqBylIqylcCzf4lHecB5veigSfmYoBycaxN2SHgT8e7pWKZwCzqzZpigUr9DlRuoIxXn8pIZJgHtkwpa8togHIiw587LeNx9mc2ZwIK5DOlXJaMFqhWwoMp/Ax+1W+ToOXTHGKNrDMLLo38LmKsQKmbdSrWil+N82UJaS40YTuJv/RdtAdpzet+aJDzvMpQV71oo2gYX5RXG2HnYZXtouzNRzXE3R0KE6jWjZU2iaZ9u8pqpU3UfvwrYSgSBVDtGDurBlHn/zj0QMIh7qlDNOfmcBj9ihKo9o+l1euiWGxSE5eun3na6jxQk3joEgdQ7TR+FWutE43lhQpph3sQvISAVRa9ppRzipY4gZqdw8/WigIWDWt1gD8EIsqSLlT/KPUVlKSAujs2XTLYeRHiIlA2DVi1qkRtK8PSULaEDF+Ue7ashwkTlf8DQc/cITdx9+UAAAAASUVORK5CYII=";function _h(o){i.append_styles(o,"svelte-1ogmlqq",".arrow.svelte-1ogmlqq{width:100%;height:100%;background-size:100%;transition:transform 400ms ease-in-out;cursor:pointer;pointer-events:auto}.arrow-wrapper.svelte-1ogmlqq{position:relative;width:100%;height:100%}.arrow.left.svelte-1ogmlqq{transform:rotate(0deg)}.arrow.right.svelte-1ogmlqq{transform:rotate(-180deg)}.arrow.top.svelte-1ogmlqq{transform:rotate(90deg)}.arrow.bottom.svelte-1ogmlqq{transform:rotate(-90deg)}")}function po(o){let t,e,n,s,r,a,l,c,d,u;return e=new ve({props:{center:!0,blurRadius:9,spreadRadius:3}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),n=i.space(),s=i.element("div"),i.attr(s,"class",r="arrow "+o[0]+" svelte-1ogmlqq"),i.set_style(s,"background-image","url("+Lh+")"),i.attr(t,"class","arrow-wrapper svelte-1ogmlqq")},m(f,h){i.insert(f,t,h),i.mount_component(e,t,null),i.append(t,n),i.append(t,s),c=!0,d||(u=i.listen(s,"click",o[5]),d=!0)},p(f,h){o=f,(!c||h&1&&r!==(r="arrow "+o[0]+" svelte-1ogmlqq"))&&i.attr(s,"class",r)},i(f){c||(i.transition_in(e.$$.fragment,f),f&&i.add_render_callback(()=>{l&&l.end(1),a=i.create_in_transition(s,me.fade,{duration:o[2],delay:o[3],easing:Se.cubicInOut}),a.start()}),c=!0)},o(f){i.transition_out(e.$$.fragment,f),a&&a.invalidate(),f&&(l=i.create_out_transition(s,me.fade,{duration:o[2],delay:o[4],easing:Se.cubicInOut})),c=!1},d(f){f&&i.detach(t),i.destroy_component(e),f&&l&&l.end(),d=!1,u()}}}function zh(o){let t,e,n=o[1]&&po(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[1]?n?(n.p(s,r),r&2&&i.transition_in(n,1)):(n=po(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function Mh(o,t,e){let{direction:n="right"}=t,{visible:s=!0}=t,{duration:r=0}=t,{inDelay:a=0}=t,{outDelay:l=0}=t;function c(d){i.bubble.call(this,o,d)}return o.$$set=d=>{"direction"in d&&e(0,n=d.direction),"visible"in d&&e(1,s=d.visible),"duration"in d&&e(2,r=d.duration),"inDelay"in d&&e(3,a=d.inDelay),"outDelay"in d&&e(4,l=d.outDelay)},[n,s,r,a,l,c]}class Th extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Mh,zh,i.safe_not_equal,{direction:0,visible:1,duration:2,inDelay:3,outDelay:4},_h)}}function jh(o,t,e=20,n=5){return new Promise((s,r)=>{let a=0;const l=setInterval(()=>{const c=o();t(c)?(clearInterval(l),s(c)):a>=n&&(clearInterval(l),r(c)),a++},e)})}function Bh(o){i.append_styles(o,"svelte-1fuzm7v",".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}")}function go(o,t,e){const n=o.slice();return n[11]=t[e].id,n[12]=t[e].content,n}function Ao(o,t){let e,n,s;return n=new Zs({props:{unfolded:t[0],content:t[12],inDelay:500,outDelay:t[5]}}),{key:o,first:null,c(){e=i.element("div"),i.create_component(n.$$.fragment),i.attr(e,"class","text svelte-1fuzm7v"),i.set_style(e,"transform",t[7],!1),this.first=e},m(r,a){i.insert(r,e,a),i.mount_component(n,e,null),t[10](e),s=!0},p(r,a){t=r;const l={};a&1&&(l.unfolded=t[0]),a&2&&(l.content=t[12]),a&32&&(l.outDelay=t[5]),n.$set(l),a&128&&i.set_style(e,"transform",t[7],!1)},i(r){s||(i.transition_in(n.$$.fragment,r),s=!0)},o(r){i.transition_out(n.$$.fragment,r),s=!1},d(r){r&&i.detach(e),i.destroy_component(n),t[10](null)}}}function vo(o){let t,e,n;return e=new Th({props:{direction:o[6],visible:o[0],inDelay:600,duration:1e3}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),i.attr(t,"class","arrow svelte-1fuzm7v")},m(s,r){i.insert(s,t,r),i.mount_component(e,t,null),n=!0},p(s,r){const a={};r&64&&(a.direction=s[6]),r&1&&(a.visible=s[0]),e.$set(a)},i(s){n||(i.transition_in(e.$$.fragment,s),n=!0)},o(s){i.transition_out(e.$$.fragment,s),n=!1},d(s){s&&i.detach(t),i.destroy_component(e)}}}function Qh(o){let t=[],e=new Map,n,s,r,a=o[1];const l=d=>d[11];for(let d=0;d<a.length;d+=1){let u=go(o,a,d),f=l(u);e.set(f,t[d]=Ao(f,u))}let c=o[3]<o[4]&&vo(o);return{c(){for(let d=0;d<t.length;d+=1)t[d].c();n=i.space(),c&&c.c(),s=i.empty()},m(d,u){for(let f=0;f<t.length;f+=1)t[f].m(d,u);i.insert(d,n,u),c&&c.m(d,u),i.insert(d,s,u),r=!0},p(d,[u]){u&167&&(a=d[1],i.group_outros(),t=i.update_keyed_each(t,u,l,1,d,a,e,n.parentNode,i.outro_and_destroy_block,Ao,n,go),i.check_outros()),d[3]<d[4]?c?(c.p(d,u),u&24&&i.transition_in(c,1)):(c=vo(d),c.c(),i.transition_in(c,1),c.m(s.parentNode,s)):c&&(i.group_outros(),i.transition_out(c,1,1,()=>{c=null}),i.check_outros())},i(d){if(!r){for(let u=0;u<a.length;u+=1)i.transition_in(t[u]);i.transition_in(c),r=!0}},o(d){for(let u=0;u<t.length;u+=1)i.transition_out(t[u]);i.transition_out(c),r=!1},d(d){for(let u=0;u<t.length;u+=1)t[u].d(d);d&&i.detach(n),c&&c.d(d),d&&i.detach(s)}}}function Rh(o,t,e){let n,s,r,{visible:a=!1}=t,{textUnfolded:l=!1}=t,{textItems:c}=t,d,u=0,f=0,h=0;function p(g){i.binding_callbacks[g?"unshift":"push"](()=>{d=g,e(2,d)})}return o.$$set=g=>{"visible"in g&&e(0,a=g.visible),"textUnfolded"in g&&e(8,l=g.textUnfolded),"textItems"in g&&e(1,c=g.textItems)},o.$$.update=()=>{if(o.$$.dirty&5&&d&&a){const{lineHeight:g}=getComputedStyle(d);e(4,h=d.offsetHeight),jh(()=>d==null?void 0:d.offsetHeight,Boolean).then(()=>{e(4,h=d.offsetHeight)}),e(3,f=Number(g.replace("px","")))}o.$$.dirty&280&&e(9,u=l?f-h:0),o.$$.dirty&512&&e(7,n=`translateY(${u}px)`),o.$$.dirty&256&&e(6,s=l?"left":"right"),o.$$.dirty&256&&e(5,r=l?450:0)},[a,c,d,f,h,r,s,n,l,u,p]}class qs extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Rh,Qh,i.safe_not_equal,{visible:0,textUnfolded:8,textItems:1},Bh)}}function Oh(o){i.append_styles(o,"svelte-18yy5x8",".line.svelte-18yy5x8{position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-18yy5x8{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}")}function bo(o){var h,p;let t,e,n,s,r,a,l,c,d,u,f;return t=new ve({props:{visible:o[2],left:o[3]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),s=new Js({props:{unfolded:o[2],duration:1e3,outDelay:o[5]+40*Math.min((p=(h=o[4][0])==null?void 0:h.content.length)!=null?p:10,15)}}),l=new qs({props:{visible:o[2],textUnfolded:o[1],textItems:o[4]}}),{c(){i.create_component(t.$$.fragment),e=i.space(),n=i.element("div"),i.create_component(s.$$.fragment),r=i.space(),a=i.element("div"),i.create_component(l.$$.fragment),i.attr(n,"class","line svelte-18yy5x8"),i.set_style(n,"width",o[3]+"px",!1),i.attr(a,"class","content svelte-18yy5x8"),i.add_render_callback(()=>o[8].call(a))},m(g,A){i.mount_component(t,g,A),i.insert(g,e,A),i.insert(g,n,A),i.mount_component(s,n,null),i.insert(g,r,A),i.insert(g,a,A),i.mount_component(l,a,null),c=i.add_resize_listener(a,o[8].bind(a)),d=!0,u||(f=i.listen(a,"click",o[6]),u=!0)},p(g,A){var w,I;const b={};A&4&&(b.visible=g[2]),A&8&&(b.left=g[3]/2+"px"),t.$set(b);const v={};A&4&&(v.unfolded=g[2]),A&48&&(v.outDelay=g[5]+40*Math.min((I=(w=g[4][0])==null?void 0:w.content.length)!=null?I:10,15)),s.$set(v),A&8&&i.set_style(n,"width",g[3]+"px",!1);const y={};A&4&&(y.visible=g[2]),A&2&&(y.textUnfolded=g[1]),A&16&&(y.textItems=g[4]),l.$set(y)},i(g){d||(i.transition_in(t.$$.fragment,g),i.transition_in(s.$$.fragment,g),i.transition_in(l.$$.fragment,g),d=!0)},o(g){i.transition_out(t.$$.fragment,g),i.transition_out(s.$$.fragment,g),i.transition_out(l.$$.fragment,g),d=!1},d(g){i.destroy_component(t,g),g&&i.detach(e),g&&i.detach(n),i.destroy_component(s),g&&i.detach(r),g&&i.detach(a),i.destroy_component(l),c(),u=!1,f()}}}function Hh(o){let t,e,n=o[0].state&&bo(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[0].state?n?(n.p(s,r),r&1&&i.transition_in(n,1)):(n=bo(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function Fh(o,t,e){let n,s,r,{tag:a}=t,l,c=!1,d=[];function u(){e(1,c=!c)}function f(){l=this.clientWidth,e(3,l)}return o.$$set=h=>{"tag"in h&&e(0,a=h.tag)},o.$$.update=()=>{var h;o.$$.dirty&1&&e(2,n=!!((h=a.state)!=null&&h.unfolded)),o.$$.dirty&1&&e(7,s=a.data.text),o.$$.dirty&128&&e(4,d=[{id:ue(),content:s}]),o.$$.dirty&4&&(n||setTimeout(()=>{e(1,c=!1)},20)),o.$$.dirty&2&&e(5,r=c?450:0)},[a,c,n,l,d,r,u,s,f]}class Gh extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Fh,Hh,i.safe_not_equal,{tag:0},Oh)}}function Nh(o){i.append_styles(o,"svelte-e72ouh",".line.svelte-e72ouh{width:100%;height:100%;overflow:visible}")}function yo(o){let t,e,n,s;return{c(){t=i.svg_element("path"),i.attr(t,"fill","none"),i.attr(t,"stroke","url(#"+o[4]+")"),i.attr(t,"stroke-width","1"),i.attr(t,"d","M0 21 L14 0.5 L105 0.5")},m(r,a){i.insert(r,t,a),s=!0},p(r,a){o=r},i(r){s||(r&&i.add_render_callback(()=>{n&&n.end(1),e=i.create_in_transition(t,me.draw,{duration:o[1],delay:o[0],easing:Se.cubicOut}),e.start()}),s=!0)},o(r){e&&e.invalidate(),r&&(n=i.create_out_transition(t,me.draw,{duration:o[1],delay:o[2],easing:Se.cubicInOut})),s=!1},d(r){r&&i.detach(t),r&&n&&n.end()}}}function Wh(o){let t,e,n,s,r,a=o[3]&&yo(o);return{c(){t=i.svg_element("svg"),e=i.svg_element("defs"),n=i.svg_element("linearGradient"),s=i.svg_element("stop"),r=i.svg_element("stop"),a&&a.c(),i.attr(s,"offset","25%"),i.attr(s,"stop-color","white"),i.attr(s,"stop-opacity","1"),i.attr(r,"offset","100%"),i.attr(r,"stop-color","white"),i.attr(r,"stop-opacity","0.5"),i.attr(n,"id",o[4]),i.attr(n,"gradientUnits","userSpaceOnUse"),i.attr(t,"class","line svelte-e72ouh"),i.attr(t,"viewBox","0 0 105 21")},m(l,c){i.insert(l,t,c),i.append(t,e),i.append(e,n),i.append(n,s),i.append(n,r),a&&a.m(t,null)},p(l,[c]){l[3]?a?(a.p(l,c),c&8&&i.transition_in(a,1)):(a=yo(l),a.c(),i.transition_in(a,1),a.m(t,null)):a&&(i.group_outros(),i.transition_out(a,1,1,()=>{a=null}),i.check_outros())},i(l){i.transition_in(a)},o(l){i.transition_out(a)},d(l){l&&i.detach(t),a&&a.d()}}}function Xh(o,t,e){let{inDelay:n=0}=t,{duration:s=0}=t,{outDelay:r=0}=t,{unfolded:a}=t;const l=ue();return o.$$set=c=>{"inDelay"in c&&e(0,n=c.inDelay),"duration"in c&&e(1,s=c.duration),"outDelay"in c&&e(2,r=c.outDelay),"unfolded"in c&&e(3,a=c.unfolded)},[n,s,r,a,l]}class Yh extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Xh,Wh,i.safe_not_equal,{inDelay:0,duration:1,outDelay:2,unfolded:3},Nh)}}function Ve(o){return typeof o=="object"&&o!==null&&o.constructor&&Object.prototype.toString.call(o).slice(8,-1)==="Object"}function Te(o,t){const e=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>e.indexOf(n)<0).forEach(n=>{typeof o[n]=="undefined"?o[n]=t[n]:Ve(t[n])&&Ve(o[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?o[n]=t[n]:Te(o[n],t[n]):o[n]=t[n]})}function yn(o={}){return o.navigation&&typeof o.navigation.nextEl=="undefined"&&typeof o.navigation.prevEl=="undefined"}function wn(o={}){return o.pagination&&typeof o.pagination.el=="undefined"}function Cn(o={}){return o.scrollbar&&typeof o.scrollbar.el=="undefined"}function Ht(o=""){const t=o.split(" ").map(n=>n.trim()).filter(n=>!!n),e=[];return t.forEach(n=>{e.indexOf(n)<0&&e.push(n)}),e.join(" ")}const Ks=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function Uh(o={},t=!0){const e={on:{}},n={},s={};Te(e,mn.default.defaults),Te(e,mn.default.extendedDefaults),e._emitClasses=!0,e.init=!1;const r={},a=Ks.map(c=>c.replace(/_/,"")),l=Object.assign({},o);return Object.keys(l).forEach(c=>{typeof o[c]!="undefined"&&(a.indexOf(c)>=0?Ve(o[c])?(e[c]={},s[c]={},Te(e[c],o[c]),Te(s[c],o[c])):(e[c]=o[c],s[c]=o[c]):c.search(/on[A-Z]/)===0&&typeof o[c]=="function"?t?n[`${c[2].toLowerCase()}${c.substr(3)}`]=o[c]:e.on[`${c[2].toLowerCase()}${c.substr(3)}`]=o[c]:r[c]=o[c])}),["navigation","pagination","scrollbar"].forEach(c=>{e[c]===!0&&(e[c]={}),e[c]===!1&&delete e[c]}),{params:e,passedParams:s,rest:r,events:n}}function Vh({el:o,nextEl:t,prevEl:e,paginationEl:n,scrollbarEl:s,swiper:r},a){yn(a)&&t&&e&&(r.params.navigation.nextEl=t,r.originalParams.navigation.nextEl=t,r.params.navigation.prevEl=e,r.originalParams.navigation.prevEl=e),wn(a)&&n&&(r.params.pagination.el=n,r.originalParams.pagination.el=n),Cn(a)&&s&&(r.params.scrollbar.el=s,r.originalParams.scrollbar.el=s),r.init(o)}function Jh(o,t,e,n,s){const r=[];if(!t)return r;const a=c=>{r.indexOf(c)<0&&r.push(c)};if(e&&n){const c=n.map(s),d=e.map(s);c.join("")!==d.join("")&&a("children"),n.length!==e.length&&a("children")}return Ks.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in o&&c in t)if(Ve(o[c])&&Ve(t[c])){const d=Object.keys(o[c]),u=Object.keys(t[c]);d.length!==u.length?a(c):(d.forEach(f=>{o[c][f]!==t[c][f]&&a(c)}),u.forEach(f=>{o[c][f]!==t[c][f]&&a(c)}))}else o[c]!==t[c]&&a(c)}),r}function Zh({swiper:o,slides:t,passedParams:e,changedParams:n,nextEl:s,prevEl:r,scrollbarEl:a,paginationEl:l}){const c=n.filter(k=>k!=="children"&&k!=="direction"),{params:d,pagination:u,navigation:f,scrollbar:h,virtual:p,thumbs:g}=o;let A,b,v,y,w;n.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(A=!0),n.includes("controller")&&e.controller&&e.controller.control&&d.controller&&!d.controller.control&&(b=!0),n.includes("pagination")&&e.pagination&&(e.pagination.el||l)&&(d.pagination||d.pagination===!1)&&u&&!u.el&&(v=!0),n.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||a)&&(d.scrollbar||d.scrollbar===!1)&&h&&!h.el&&(y=!0),n.includes("navigation")&&e.navigation&&(e.navigation.prevEl||r)&&(e.navigation.nextEl||s)&&(d.navigation||d.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const I=k=>{!o[k]||(o[k].destroy(),k==="navigation"?(d[k].prevEl=void 0,d[k].nextEl=void 0,o[k].prevEl=void 0,o[k].nextEl=void 0):(d[k].el=void 0,o[k].el=void 0))};c.forEach(k=>{if(Ve(d[k])&&Ve(e[k]))Te(d[k],e[k]);else{const C=e[k];(C===!0||C===!1)&&(k==="navigation"||k==="pagination"||k==="scrollbar")?C===!1&&I(k):d[k]=e[k]}}),c.includes("controller")&&!b&&o.controller&&o.controller.control&&d.controller&&d.controller.control&&(o.controller.control=d.controller.control),n.includes("children")&&t&&p&&d.virtual.enabled?(p.slides=t,p.update(!0)):n.includes("children")&&o.lazy&&o.params.lazy.enabled&&o.lazy.load(),A&&g.init()&&g.update(!0),b&&(o.controller.control=d.controller.control),v&&(l&&(d.pagination.el=l),u.init(),u.render(),u.update()),y&&(a&&(d.scrollbar.el=a),h.init(),h.updateSize(),h.setTranslate()),w&&(s&&(d.navigation.nextEl=s),r&&(d.navigation.prevEl=r),f.init(),f.update()),n.includes("allowSlideNext")&&(o.allowSlideNext=e.allowSlideNext),n.includes("allowSlidePrev")&&(o.allowSlidePrev=e.allowSlidePrev),n.includes("direction")&&o.changeDirection(e.direction,!1),o.update()}const qh=o=>({virtualData:o&512}),wo=o=>({virtualData:o[9]}),Kh=o=>({virtualData:o&512}),Co=o=>({virtualData:o[9]}),$h=o=>({virtualData:o&512}),Eo=o=>({virtualData:o[9]}),ef=o=>({virtualData:o&512}),Po=o=>({virtualData:o[9]}),tf=o=>({virtualData:o&512}),Io=o=>({virtualData:o[9]});function ko(o){let t,e,n;return{c(){t=i.element("div"),e=i.space(),n=i.element("div"),i.attr(t,"class","swiper-button-prev"),i.attr(n,"class","swiper-button-next")},m(s,r){i.insert(s,t,r),o[13](t),i.insert(s,e,r),i.insert(s,n,r),o[14](n)},p:i.noop,d(s){s&&i.detach(t),o[13](null),s&&i.detach(e),s&&i.detach(n),o[14](null)}}}function xo(o){let t;return{c(){t=i.element("div"),i.attr(t,"class","swiper-scrollbar")},m(e,n){i.insert(e,t,n),o[15](t)},p:i.noop,d(e){e&&i.detach(t),o[15](null)}}}function Do(o){let t;return{c(){t=i.element("div"),i.attr(t,"class","swiper-pagination")},m(e,n){i.insert(e,t,n),o[16](t)},p:i.noop,d(e){e&&i.detach(t),o[16](null)}}}function nf(o){let t,e,n,s,r,a,l=yn(o[2]),c,d=Cn(o[2]),u,f=wn(o[2]),h,p,g;const A=o[12]["container-start"],b=i.create_slot(A,o,o[11],Io),v=o[12]["wrapper-start"],y=i.create_slot(v,o,o[11],Po),w=o[12].default,I=i.create_slot(w,o,o[11],Eo),k=o[12]["wrapper-end"],C=i.create_slot(k,o,o[11],Co);let D=l&&ko(o),x=d&&xo(o),z=f&&Do(o);const _=o[12]["container-end"],T=i.create_slot(_,o,o[11],wo);let H=[{class:p=Ht(`${o[1]}${o[0]?` ${o[0]}`:""}`)},o[3]],E={};for(let S=0;S<H.length;S+=1)E=i.assign(E,H[S]);return{c(){t=i.element("div"),b&&b.c(),e=i.space(),n=i.element("div"),y&&y.c(),s=i.space(),I&&I.c(),r=i.space(),C&&C.c(),a=i.space(),D&&D.c(),c=i.space(),x&&x.c(),u=i.space(),z&&z.c(),h=i.space(),T&&T.c(),i.attr(n,"class","swiper-wrapper"),i.set_attributes(t,E)},m(S,L){i.insert(S,t,L),b&&b.m(t,null),i.append(t,e),i.append(t,n),y&&y.m(n,null),i.append(n,s),I&&I.m(n,null),i.append(n,r),C&&C.m(n,null),i.append(t,a),D&&D.m(t,null),i.append(t,c),x&&x.m(t,null),i.append(t,u),z&&z.m(t,null),i.append(t,h),T&&T.m(t,null),o[17](t),g=!0},p(S,[L]){b&&b.p&&(!g||L&2560)&&i.update_slot_base(b,A,S,S[11],g?i.get_slot_changes(A,S[11],L,tf):i.get_all_dirty_from_scope(S[11]),Io),y&&y.p&&(!g||L&2560)&&i.update_slot_base(y,v,S,S[11],g?i.get_slot_changes(v,S[11],L,ef):i.get_all_dirty_from_scope(S[11]),Po),I&&I.p&&(!g||L&2560)&&i.update_slot_base(I,w,S,S[11],g?i.get_slot_changes(w,S[11],L,$h):i.get_all_dirty_from_scope(S[11]),Eo),C&&C.p&&(!g||L&2560)&&i.update_slot_base(C,k,S,S[11],g?i.get_slot_changes(k,S[11],L,Kh):i.get_all_dirty_from_scope(S[11]),Co),L&4&&(l=yn(S[2])),l?D?D.p(S,L):(D=ko(S),D.c(),D.m(t,c)):D&&(D.d(1),D=null),L&4&&(d=Cn(S[2])),d?x?x.p(S,L):(x=xo(S),x.c(),x.m(t,u)):x&&(x.d(1),x=null),L&4&&(f=wn(S[2])),f?z?z.p(S,L):(z=Do(S),z.c(),z.m(t,h)):z&&(z.d(1),z=null),T&&T.p&&(!g||L&2560)&&i.update_slot_base(T,_,S,S[11],g?i.get_slot_changes(_,S[11],L,qh):i.get_all_dirty_from_scope(S[11]),wo),i.set_attributes(t,E=i.get_spread_update(H,[(!g||L&3&&p!==(p=Ht(`${S[1]}${S[0]?` ${S[0]}`:""}`)))&&{class:p},L&8&&S[3]]))},i(S){g||(i.transition_in(b,S),i.transition_in(y,S),i.transition_in(I,S),i.transition_in(C,S),i.transition_in(T,S),g=!0)},o(S){i.transition_out(b,S),i.transition_out(y,S),i.transition_out(I,S),i.transition_out(C,S),i.transition_out(T,S),g=!1},d(S){S&&i.detach(t),b&&b.d(S),y&&y.d(S),I&&I.d(S),C&&C.d(S),D&&D.d(),x&&x.d(),z&&z.d(),T&&T.d(S),o[17](null)}}}function of(o,t,e){const n=["class","swiper"];let s=i.compute_rest_props(t,n),{$$slots:r={},$$scope:a}=t;const l=Z.createEventDispatcher();let{class:c=void 0}=t,d="swiper",u=!1,f=null,h=null,p,g,A,b,v=null,y=null,w=null,I=null,k=null,C={slides:[]};function D(){return f}const x=B=>{e(9,C=B),Z.tick().then(()=>{f.$wrapperEl.children(".swiper-slide").each(R=>{R.onSwiper&&R.onSwiper(f)}),f.updateSlides(),f.updateProgress(),f.updateSlidesClasses(),f.lazy&&f.params.lazy.enabled&&f.lazy.load()})},z=()=>{p=Uh(s),e(2,g=p.params),A=p.passedParams,e(3,b=p.rest)};z(),h=A;const _=()=>{u=!0};if(g.onAny=(B,...R)=>{l(B,R)},Object.assign(g.on,{_beforeBreakpoint:_,_containerClasses(B,R){e(1,d=R)}}),f=new mn.default(g),Z.setContext("swiper",f),f.virtual&&f.params.virtual.enabled){const B={cache:!1,renderExternal:R=>{x(R),g.virtual&&g.virtual.renderExternal&&g.virtual.renderExternal(R)},renderExternalUpdate:!1};Te(f.params.virtual,B),Te(f.originalParams.virtual,B)}Z.onMount(()=>{!v||(Vh({el:v,nextEl:w,prevEl:y,paginationEl:k,scrollbarEl:I,swiper:f},g),l("swiper",[f]),!g.virtual&&f.slides.each(B=>{B.onSwiper&&B.onSwiper(f)}))}),Z.afterUpdate(()=>{if(!f)return;z();const B=Jh(A,h);(B.length||u)&&f&&!f.destroyed&&Zh({swiper:f,passedParams:A,changedParams:B,nextEl:w,prevEl:y,scrollbarEl:I,paginationEl:k}),u=!1,h=A}),Z.onDestroy(()=>{typeof window!="undefined"&&f&&!f.destroyed&&f.destroy(!0,!1)});function T(B){i.binding_callbacks[B?"unshift":"push"](()=>{y=B,e(5,y)})}function H(B){i.binding_callbacks[B?"unshift":"push"](()=>{w=B,e(6,w)})}function E(B){i.binding_callbacks[B?"unshift":"push"](()=>{I=B,e(7,I)})}function S(B){i.binding_callbacks[B?"unshift":"push"](()=>{k=B,e(8,k)})}function L(B){i.binding_callbacks[B?"unshift":"push"](()=>{v=B,e(4,v)})}return o.$$set=B=>{t=i.assign(i.assign({},t),i.exclude_internal_props(B)),e(27,s=i.compute_rest_props(t,n)),"class"in B&&e(0,c=B.class),"$$scope"in B&&e(11,a=B.$$scope)},[c,d,g,b,v,y,w,I,k,C,D,a,r,T,H,E,S,L]}class sf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,of,nf,i.safe_not_equal,{class:0,swiper:10})}get swiper(){return this.$$.ctx[10]}}const rf=o=>({data:o&32}),So=o=>({data:o[5]}),af=o=>({data:o&32}),Lo=o=>({data:o[5]});function lf(o){let t;const e=o[8].default,n=i.create_slot(e,o,o[7],So);return{c(){n&&n.c()},m(s,r){n&&n.m(s,r),t=!0},p(s,r){n&&n.p&&(!t||r&160)&&i.update_slot_base(n,e,s,s[7],t?i.get_slot_changes(e,s[7],r,rf):i.get_all_dirty_from_scope(s[7]),So)},i(s){t||(i.transition_in(n,s),t=!0)},o(s){i.transition_out(n,s),t=!1},d(s){n&&n.d(s)}}}function cf(o){let t,e,n;const s=o[8].default,r=i.create_slot(s,o,o[7],Lo);return{c(){t=i.element("div"),r&&r.c(),i.attr(t,"class","swiper-zoom-container"),i.attr(t,"data-swiper-zoom",e=typeof o[0]=="number"?o[0]:void 0)},m(a,l){i.insert(a,t,l),r&&r.m(t,null),n=!0},p(a,l){r&&r.p&&(!n||l&160)&&i.update_slot_base(r,s,a,a[7],n?i.get_slot_changes(s,a[7],l,af):i.get_all_dirty_from_scope(a[7]),Lo),(!n||l&1&&e!==(e=typeof a[0]=="number"?a[0]:void 0))&&i.attr(t,"data-swiper-zoom",e)},i(a){n||(i.transition_in(r,a),n=!0)},o(a){i.transition_out(r,a),n=!1},d(a){a&&i.detach(t),r&&r.d(a)}}}function df(o){let t,e,n,s,r;const a=[cf,lf],l=[];function c(f,h){return f[0]?0:1}e=c(o),n=l[e]=a[e](o);let d=[{class:s=Ht(`${o[3]}${o[2]?` ${o[2]}`:""}`)},{"data-swiper-slide-index":o[1]},o[6]],u={};for(let f=0;f<d.length;f+=1)u=i.assign(u,d[f]);return{c(){t=i.element("div"),n.c(),i.set_attributes(t,u)},m(f,h){i.insert(f,t,h),l[e].m(t,null),o[9](t),r=!0},p(f,[h]){let p=e;e=c(f),e===p?l[e].p(f,h):(i.group_outros(),i.transition_out(l[p],1,1,()=>{l[p]=null}),i.check_outros(),n=l[e],n?n.p(f,h):(n=l[e]=a[e](f),n.c()),i.transition_in(n,1),n.m(t,null)),i.set_attributes(t,u=i.get_spread_update(d,[(!r||h&12&&s!==(s=Ht(`${f[3]}${f[2]?` ${f[2]}`:""}`)))&&{class:s},(!r||h&2)&&{"data-swiper-slide-index":f[1]},h&64&&f[6]]))},i(f){r||(i.transition_in(n),r=!0)},o(f){i.transition_out(n),r=!1},d(f){f&&i.detach(t),l[e].d(),o[9](null)}}}function uf(o,t,e){let n;const s=["zoom","virtualIndex","class"];let r=i.compute_rest_props(t,s),{$$slots:a={},$$scope:l}=t,{zoom:c=void 0}=t,{virtualIndex:d=void 0}=t,{class:u=void 0}=t,f=null,h="swiper-slide",p=Z.getContext("swiper"),g=!1;const A=(w,I,k)=>{I===f&&e(3,h=k)},b=()=>{!p||g||(p.on("_slideClass",A),g=!0)},v=()=>{!p||(p.off("_slideClass",A),g=!1)};Z.onMount(()=>{typeof d!="undefined"&&(e(4,f.onSwiper=w=>{p=w,b()},f),b())}),Z.afterUpdate(()=>{if(!(!f||!p)){if(p.destroyed){h!=="swiper-slide"&&e(3,h="swiper-slide");return}b()}}),Z.beforeUpdate(()=>{b()}),Z.onDestroy(()=>{!p||v()});function y(w){i.binding_callbacks[w?"unshift":"push"](()=>{f=w,e(4,f)})}return o.$$set=w=>{t=i.assign(i.assign({},t),i.exclude_internal_props(w)),e(6,r=i.compute_rest_props(t,s)),"zoom"in w&&e(0,c=w.zoom),"virtualIndex"in w&&e(1,d=w.virtualIndex),"class"in w&&e(2,u=w.class),"$$scope"in w&&e(7,l=w.$$scope)},o.$$.update=()=>{o.$$.dirty&8&&e(5,n={isActive:h.indexOf("swiper-slide-active")>=0||h.indexOf("swiper-slide-duplicate-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isDuplicate:h.indexOf("swiper-slide-duplicate")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0||h.indexOf("swiper-slide-duplicate-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0||h.indexOf("swiper-slide-duplicate-next")>=0})},[c,d,u,h,f,n,r,l,a,y]}class hf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,uf,df,i.safe_not_equal,{zoom:0,virtualIndex:1,class:2})}}function ff(o){i.append_styles(o,"svelte-cwtvzu",".media-item.svelte-cwtvzu.svelte-cwtvzu{height:100%}.media-content.svelte-cwtvzu.svelte-cwtvzu{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-cwtvzu.svelte-cwtvzu{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-cwtvzu.svelte-cwtvzu{display:none;pointer-events:auto;position:absolute;width:100%;height:100%;top:0;left:0}.video-play-button-container.showPlayButton.svelte-cwtvzu.svelte-cwtvzu{display:block}.video-icon.large.svelte-cwtvzu.svelte-cwtvzu{width:12.5rem;height:6.25rem}.video-icon.small.svelte-cwtvzu.svelte-cwtvzu{width:1.75rem;height:1.75rem}.video-icon.svelte-cwtvzu .video-icon-img.svelte-cwtvzu{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-cwtvzu .video-icon-img.canPlay.svelte-cwtvzu{cursor:pointer}")}function _o(o){let t;function e(r,a){if(r[0].type==="Image")return pf;if(r[0].type==="Video")return mf}let n=e(o),s=n&&n(o);return{c(){t=i.element("div"),s&&s.c(),i.attr(t,"class","media-item svelte-cwtvzu")},m(r,a){i.insert(r,t,a),s&&s.m(t,null)},p(r,a){n===(n=e(r))&&s?s.p(r,a):(s&&s.d(1),s=n&&n(r),s&&(s.c(),s.m(t,null)))},d(r){r&&i.detach(t),s&&s.d()}}}function mf(o){let t,e,n,s,r,a,l,c,d,u,f;return{c(){var h;t=i.element("video"),a=i.space(),l=i.element("div"),c=i.element("div"),d=i.element("div"),i.attr(t,"class","media-content svelte-cwtvzu"),i.attr(t,"style",e=`object-fit: ${o[3]};`),i.src_url_equal(t.src,n=o[0].url+"#t=0.1")||i.attr(t,"src",n),i.attr(t,"poster",s=(h=o[0].videoCoverUrl)!=null?h:void 0),i.attr(t,"preload",r=o[0].videoCoverUrl?void 0:"auto"),t.playsInline=!0,i.attr(t,"paused",""),t.loop=!1,i.attr(t,"crossorigin",""),t.controls=!1,i.toggle_class(t,"showPlayButton",o[5]),i.attr(d,"class","video-icon-img svelte-cwtvzu"),i.set_style(d,"background-image","url("+(o[1]==="large"?fo:mo)+")"),i.toggle_class(d,"canPlay",o[2]),i.attr(c,"class","video-icon svelte-cwtvzu"),i.toggle_class(c,"large",o[1]==="large"),i.toggle_class(c,"small",o[1]==="small"),i.attr(l,"class","video-play-button-container svelte-cwtvzu"),i.toggle_class(l,"showPlayButton",o[5])},m(h,p){i.insert(h,t,p),o[7](t),i.insert(h,a,p),i.insert(h,l,p),i.append(l,c),i.append(c,d),u||(f=[i.listen(t,"click",o[6]),i.listen(d,"click",o[8])],u=!0)},p(h,p){var g;p&8&&e!==(e=`object-fit: ${h[3]};`)&&i.attr(t,"style",e),p&1&&!i.src_url_equal(t.src,n=h[0].url+"#t=0.1")&&i.attr(t,"src",n),p&1&&s!==(s=(g=h[0].videoCoverUrl)!=null?g:void 0)&&i.attr(t,"poster",s),p&1&&r!==(r=h[0].videoCoverUrl?void 0:"auto")&&i.attr(t,"preload",r),p&32&&i.toggle_class(t,"showPlayButton",h[5]),p&2&&i.set_style(d,"background-image","url("+(h[1]==="large"?fo:mo)+")"),p&4&&i.toggle_class(d,"canPlay",h[2]),p&2&&i.toggle_class(c,"large",h[1]==="large"),p&2&&i.toggle_class(c,"small",h[1]==="small"),p&32&&i.toggle_class(l,"showPlayButton",h[5])},d(h){h&&i.detach(t),o[7](null),h&&i.detach(a),h&&i.detach(l),u=!1,i.run_all(f)}}}function pf(o){let t,e,n,s;return{c(){t=i.element("img"),i.attr(t,"class","media-content svelte-cwtvzu"),i.attr(t,"style",e=`object-fit: ${o[3]};`),i.src_url_equal(t.src,n=o[0].url)||i.attr(t,"src",n),i.attr(t,"alt",s=o[0].name)},m(r,a){i.insert(r,t,a)},p(r,a){a&8&&e!==(e=`object-fit: ${r[3]};`)&&i.attr(t,"style",e),a&1&&!i.src_url_equal(t.src,n=r[0].url)&&i.attr(t,"src",n),a&1&&s!==(s=r[0].name)&&i.attr(t,"alt",s)},d(r){r&&i.detach(t)}}}function gf(o){let t,e=o[0]&&_o(o);return{c(){e&&e.c(),t=i.empty()},m(n,s){e&&e.m(n,s),i.insert(n,t,s)},p(n,[s]){n[0]?e?e.p(n,s):(e=_o(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:i.noop,o:i.noop,d(n){e&&e.d(n),n&&i.detach(t)}}}function Af(o,t,e){let{media:n}=t,{playButtonIfNeed:s="small"}=t,{canPlay:r=!0}=t,{objectFit:a="cover"}=t,l,c=!1;const d=()=>l==null?void 0:l.pause();function u(h){i.binding_callbacks[h?"unshift":"push"](()=>{l=h,e(4,l)})}const f=()=>{!r||l&&l.play()};return o.$$set=h=>{"media"in h&&e(0,n=h.media),"playButtonIfNeed"in h&&e(1,s=h.playButtonIfNeed),"canPlay"in h&&e(2,r=h.canPlay),"objectFit"in h&&e(3,a=h.objectFit)},o.$$.update=()=>{o.$$.dirty&16&&l&&(e(5,c=l.paused),l.addEventListener("play",()=>{e(5,c=!1)}),l.addEventListener("pause",()=>{e(5,c=!0)}))},[n,s,r,a,l,c,d,u,f]}class $s extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Af,gf,i.safe_not_equal,{media:0,playButtonIfNeed:1,canPlay:2,objectFit:3},ff)}}function vf(o){i.append_styles(o,"svelte-ai0lv9",".media.svelte-ai0lv9{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}")}function zo(o,t,e){const n=o.slice();return n[23]=t[e],n}function Mo(o){let t,e,n,s,r,a;const l=[yf,bf],c=[];function d(u,f){return u[13]?0:1}return e=d(o),n=c[e]=l[e](o),{c(){t=i.element("div"),n.c(),i.attr(t,"class","media svelte-ai0lv9"),i.toggle_class(t,"unfolded",o[4])},m(u,f){i.insert(u,t,f),c[e].m(t,null),a=!0},p(u,f){o=u;let h=e;e=d(o),e===h?c[e].p(o,f):(i.group_outros(),i.transition_out(c[h],1,1,()=>{c[h]=null}),i.check_outros(),n=c[e],n?n.p(o,f):(n=c[e]=l[e](o),n.c()),i.transition_in(n,1),n.m(t,null)),f&16&&i.toggle_class(t,"unfolded",o[4])},i(u){a||(i.transition_in(n),u&&i.add_render_callback(()=>{r&&r.end(1),s=i.create_in_transition(t,me.fly,o[5]?{y:4,duration:o[3],delay:o[1],easing:Se.linear}:void 0),s.start()}),a=!0)},o(u){i.transition_out(n),s&&s.invalidate(),u&&(r=i.create_out_transition(t,me.fly,o[5]?{y:4,duration:o[3],delay:o[2],easing:Se.linear}:void 0)),a=!1},d(u){u&&i.detach(t),c[e].d(),u&&r&&r.end()}}}function bf(o){let t,e;return t=new $s({props:{media:o[0][0],objectFit:o[8],playButtonIfNeed:o[6],canPlay:o[7]}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&1&&(r.media=n[0][0]),s&256&&(r.objectFit=n[8]),s&64&&(r.playButtonIfNeed=n[6]),s&128&&(r.canPlay=n[7]),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function yf(o){let t,e;return t=new sf({props:{style:"height: 100%",modules:[ds.Autoplay],spaceBetween:30,autoplay:o[14]?re({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1,loop:!0,$$slots:{default:[Cf]},$$scope:{ctx:o}}}),t.$on("init",o[19]),t.$on("slideChange",o[20]),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&16384&&(r.autoplay=n[14]?re({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1),s&67111360&&(r.$$scope={dirty:s,ctx:n}),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function wf(o){let t,e,n;return t=new $s({props:{media:o[23],objectFit:o[8],playButtonIfNeed:o[6],canPlay:o[7]}}),{c(){i.create_component(t.$$.fragment),e=i.space()},m(s,r){i.mount_component(t,s,r),i.insert(s,e,r),n=!0},p(s,r){const a={};r&2048&&(a.media=s[23]),r&256&&(a.objectFit=s[8]),r&64&&(a.playButtonIfNeed=s[6]),r&128&&(a.canPlay=s[7]),t.$set(a)},i(s){n||(i.transition_in(t.$$.fragment,s),n=!0)},o(s){i.transition_out(t.$$.fragment,s),n=!1},d(s){i.destroy_component(t,s),s&&i.detach(e)}}}function To(o){let t,e;return t=new hf({props:{$$slots:{default:[wf]},$$scope:{ctx:o}}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&67111360&&(r.$$scope={dirty:s,ctx:n}),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function Cf(o){let t,e,n=o[11],s=[];for(let a=0;a<n.length;a+=1)s[a]=To(zo(o,n,a));const r=a=>i.transition_out(s[a],1,1,()=>{s[a]=null});return{c(){for(let a=0;a<s.length;a+=1)s[a].c();t=i.empty()},m(a,l){for(let c=0;c<s.length;c+=1)s[c].m(a,l);i.insert(a,t,l),e=!0},p(a,l){if(l&2496){n=a[11];let c;for(c=0;c<n.length;c+=1){const d=zo(a,n,c);s[c]?(s[c].p(d,l),i.transition_in(s[c],1)):(s[c]=To(d),s[c].c(),i.transition_in(s[c],1),s[c].m(t.parentNode,t))}for(i.group_outros(),c=n.length;c<s.length;c+=1)r(c);i.check_outros()}},i(a){if(!e){for(let l=0;l<n.length;l+=1)i.transition_in(s[l]);e=!0}},o(a){s=s.filter(Boolean);for(let l=0;l<s.length;l+=1)i.transition_out(s[l]);e=!1},d(a){i.destroy_each(s,a),a&&i.detach(t)}}}function Ef(o){let t,e,n=o[4]&&Mo(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[4]?n?(n.p(s,r),r&16&&i.transition_in(n,1)):(n=Mo(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function Pf(o,t,e){let n,s,r,{tag:a}=t,{mediaData:l}=t,{inDelay:c=0}=t,{outDelay:d=0}=t,{duration:u=0}=t,{unfolded:f=!0}=t,{animation:h=!0}=t,{playButtonIfNeed:p="small"}=t,{canPlay:g=!0}=t,{objectFit:A="cover"}=t,{enableCarousel:b=!0}=t,{autoplayConfig:v={autoplay:!0,autoplayVideo:!1}}=t;const y=Z.getContext("mediaStore"),w=Z.getContext("hooks");let I;function k(_){!n||!I||(y.set({currentMediaUrl:this.src}),w.emit("playStateChange",{event:_,state:"playing",tag:a,mediaInstance:this}),I.autoplay.stop())}function C(_){!n||!I||(w.emit("playStateChange",{event:_,state:"paused",tag:a,mediaInstance:this}),I.autoplay.running||I.autoplay.start())}let D=null;const x=_=>{e(10,I=_.detail[0])},z=_=>F(this,null,function*(){var B,R,G;if(!r||!v.autoplayVideo)return;const T=_.detail[0];if(!T)return;const H=T.realIndex;if(H===D)return;e(12,D=H);const E=s[H];if(!E||E.type!=="Video")return;T.autoplay.stop(),T.slides.map(Q=>Q.querySelector("video")).filter(Ue).forEach(Q=>Q.pause());const L=(B=T.slides[T.activeIndex])==null?void 0:B.querySelector("video");if(L&&(L.removeEventListener("play",k),L.removeEventListener("pause",C),L.addEventListener("play",k),L.addEventListener("pause",C)),L){L.addEventListener("click",()=>L.pause());const Q=(G=(R=L.parentElement)==null?void 0:R.getElementsByClassName("video-play-button-container"))==null?void 0:G[0];L.addEventListener("play",()=>Q==null?void 0:Q.classList.remove("showPlayButton")),L.addEventListener("pause",()=>Q==null?void 0:Q.classList.add("showPlayButton")),Q&&(L.paused?Q.classList.add("showPlayButton"):Q.classList.remove("showPlayButton"),Q.addEventListener("click",()=>L.play()))}});return o.$$set=_=>{"tag"in _&&e(17,a=_.tag),"mediaData"in _&&e(0,l=_.mediaData),"inDelay"in _&&e(1,c=_.inDelay),"outDelay"in _&&e(2,d=_.outDelay),"duration"in _&&e(3,u=_.duration),"unfolded"in _&&e(4,f=_.unfolded),"animation"in _&&e(5,h=_.animation),"playButtonIfNeed"in _&&e(6,p=_.playButtonIfNeed),"canPlay"in _&&e(7,g=_.canPlay),"objectFit"in _&&e(8,A=_.objectFit),"enableCarousel"in _&&e(18,b=_.enableCarousel),"autoplayConfig"in _&&e(9,v=_.autoplayConfig)},o.$$.update=()=>{o.$$.dirty&262145&&e(13,n=b&&(l==null?void 0:l.length)>1),o.$$.dirty&1&&e(11,s=l),o.$$.dirty&2560&&e(14,r=s.length>1&&v.autoplay),o.$$.dirty&1024&&I&&I.slides.forEach(_=>{const T=_.querySelector("video");T&&y.subscribe(({currentMediaUrl:H})=>{H!==T.src&&T.pause()})})},[l,c,d,u,f,h,p,g,A,v,I,s,D,n,r,k,C,a,b,x,z]}class er extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Pf,Ef,i.safe_not_equal,{tag:17,mediaData:0,inDelay:1,outDelay:2,duration:3,unfolded:4,animation:5,playButtonIfNeed:6,canPlay:7,objectFit:8,enableCarousel:18,autoplayConfig:9},vf)}}function If(o){i.append_styles(o,"svelte-1f7m1lj",".line.svelte-1f7m1lj{position:absolute;width:6.5625rem;height:1.3125rem;transform:translateY(-100%)}.text.svelte-1f7m1lj{position:absolute;width:6.25rem;left:1rem;bottom:0.0625rem;font-weight:600}.media-wrapper.svelte-1f7m1lj{position:absolute;left:0.875rem;top:-5.3125rem;width:5.625rem;height:3.75rem;font-weight:600}")}function jo(o,t,e){const n=o.slice();return n[5]=t[e].id,n[1]=t[e].content,n}function Bo(o){let t,e,n,s,r,a=[],l=new Map,c,d,u;t=new ve({props:{visible:o[4],left:61,bottom:57,width:2,blurRadius:150,spreadRadius:75}}),s=new Yh({props:{unfolded:o[4],duration:1e3,outDelay:400}});let f=o[2];const h=g=>g[5];for(let g=0;g<f.length;g+=1){let A=jo(o,f,g),b=h(A);l.set(b,a[g]=Qo(b,A))}let p=o[3]&&Ro(o);return{c(){i.create_component(t.$$.fragment),e=i.space(),n=i.element("div"),i.create_component(s.$$.fragment),r=i.space();for(let g=0;g<a.length;g+=1)a[g].c();c=i.space(),p&&p.c(),d=i.empty(),i.attr(n,"class","line svelte-1f7m1lj")},m(g,A){i.mount_component(t,g,A),i.insert(g,e,A),i.insert(g,n,A),i.mount_component(s,n,null),i.insert(g,r,A);for(let b=0;b<a.length;b+=1)a[b].m(g,A);i.insert(g,c,A),p&&p.m(g,A),i.insert(g,d,A),u=!0},p(g,A){const b={};A&16&&(b.visible=g[4]),t.$set(b);const v={};A&16&&(v.unfolded=g[4]),s.$set(v),A&20&&(f=g[2],i.group_outros(),a=i.update_keyed_each(a,A,h,1,g,f,l,c.parentNode,i.outro_and_destroy_block,Qo,c,jo),i.check_outros()),g[3]?p?(p.p(g,A),A&8&&i.transition_in(p,1)):(p=Ro(g),p.c(),i.transition_in(p,1),p.m(d.parentNode,d)):p&&(i.group_outros(),i.transition_out(p,1,1,()=>{p=null}),i.check_outros())},i(g){if(!u){i.transition_in(t.$$.fragment,g),i.transition_in(s.$$.fragment,g);for(let A=0;A<f.length;A+=1)i.transition_in(a[A]);i.transition_in(p),u=!0}},o(g){i.transition_out(t.$$.fragment,g),i.transition_out(s.$$.fragment,g);for(let A=0;A<a.length;A+=1)i.transition_out(a[A]);i.transition_out(p),u=!1},d(g){i.destroy_component(t,g),g&&i.detach(e),g&&i.detach(n),i.destroy_component(s),g&&i.detach(r);for(let A=0;A<a.length;A+=1)a[A].d(g);g&&i.detach(c),p&&p.d(g),g&&i.detach(d)}}}function Qo(o,t){let e,n,s;return n=new Zs({props:{unfolded:t[4],content:t[1],inDelay:500}}),{key:o,first:null,c(){e=i.element("div"),i.create_component(n.$$.fragment),i.attr(e,"class","text svelte-1f7m1lj"),this.first=e},m(r,a){i.insert(r,e,a),i.mount_component(n,e,null),s=!0},p(r,a){t=r;const l={};a&16&&(l.unfolded=t[4]),a&4&&(l.content=t[1]),n.$set(l)},i(r){s||(i.transition_in(n.$$.fragment,r),s=!0)},o(r){i.transition_out(n.$$.fragment,r),s=!1},d(r){r&&i.detach(e),i.destroy_component(n)}}}function Ro(o){let t,e,n;return e=new er({props:{autoplayConfig:{autoplay:!1},unfolded:o[4],mediaData:o[3],tag:o[0],enableCarousel:!1,canPlay:!1,playButtonIfNeed:"small",inDelay:500,duration:500}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),i.attr(t,"class","media-wrapper svelte-1f7m1lj")},m(s,r){i.insert(s,t,r),i.mount_component(e,t,null),n=!0},p(s,r){const a={};r&16&&(a.unfolded=s[4]),r&8&&(a.mediaData=s[3]),r&1&&(a.tag=s[0]),e.$set(a)},i(s){n||(i.transition_in(e.$$.fragment,s),n=!0)},o(s){i.transition_out(e.$$.fragment,s),n=!1},d(s){s&&i.detach(t),i.destroy_component(e)}}}function kf(o){let t,e,n=o[0].state&&Bo(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[0].state?n?(n.p(s,r),r&1&&i.transition_in(n,1)):(n=Bo(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function xf(o,t,e){let n,s,r,{tag:a}=t,l;return o.$$set=c=>{"tag"in c&&e(0,a=c.tag)},o.$$.update=()=>{var c,d,u;o.$$.dirty&1&&e(4,n=a.state?a.state.unfolded:!1),o.$$.dirty&1&&e(1,s=((d=(c=a.data.text)==null?void 0:c.length)!=null?d:0)>7?((u=a.data.text)==null?void 0:u.substring(0,6))+"...":a.data.text),o.$$.dirty&1&&e(3,r=a.data.mediaData),o.$$.dirty&2&&e(2,l=s?[{id:ue(),content:s}]:[])},[a,s,l,r,n]}class Df extends i.SvelteComponent{constructor(t){super(),i.init(this,t,xf,kf,i.safe_not_equal,{tag:0},If)}}function Sf(o){i.append_styles(o,"svelte-8mby9k",".svelte-8mby9k.svelte-8mby9k{box-sizing:border-box}.marketing.svelte-8mby9k.svelte-8mby9k{transform:translateY(-100%)}.content.svelte-8mby9k .headerImage.svelte-8mby9k{position:absolute;width:100%;top:0.25rem;transform:translateY(-100%);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem}.line.svelte-8mby9k.svelte-8mby9k{position:absolute;height:2.0625rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.content.svelte-8mby9k.svelte-8mby9k{background-color:white;position:relative;display:flex;flex-direction:column;min-width:11.125rem;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;border-radius:0.25rem;top:-1.875rem;left:-1rem;padding:0.5rem 0rem 0.5625rem;transition:all 500ms}.title.svelte-8mby9k.svelte-8mby9k{position:absolute;background-color:white;border-radius:0.25rem;width:100%;top:0.5rem;padding-left:0.75rem;padding-right:0.75rem}.title.svelte-8mby9k .text.svelte-8mby9k{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;font-weight:bold;line-height:1.125rem;color:#000}.footer.svelte-8mby9k.svelte-8mby9k{position:relative;padding-left:0.75rem;padding-right:0.75rem;width:100%;height:1.375rem;display:flex;align-items:center}.footer.svelte-8mby9k .goto-button.svelte-8mby9k{flex-shrink:0;white-space:nowrap;background-image:linear-gradient(to right, rgba(87, 144, 253, 1) 0, rgba(42, 114, 254, 1) 100%);color:#fff;font-size:0.625rem;border-radius:0.875rem;font-weight:bold;padding-left:0.5rem;padding-right:0.5rem;height:1.25rem;margin-left:auto;display:flex;align-items:center}.footer.svelte-8mby9k .goto-icon.svelte-8mby9k::after{content:'';display:inline-block;width:0.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAeFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////GqOSsAAAAJ3RSTlMAFNO2pYt4bErz8uP6ysawgVtBPDcR5C4s2L6ZmJBzZGJXUyEeDws/0G2zAAAAkklEQVQ4y+3TRw6DMBAF0OAeJ3QCpCe0uf8NwRILLBYfiS1/aT3JoymnI+sERZ5VCH0iVto3QDfBLmeSSMUTogRV9bBEpJAKaYpGijn13aTSLeraeG9D0NZFZv4/rRL5FDHnITlllqjv6tykWsmX4JHr05y7j6oFKq2P8He48B0tAM0EY0EDxquClw6vLz6EI35GmwwSZpe+WOgAAAAASUVORK5CYII=);background-size:100% auto;background-repeat:no-repeat}.price.svelte-8mby9k.svelte-8mby9k{flex-shrink:0;margin-right:0.75rem;white-space:nowrap;color:#ff6600;display:flex;align-items:baseline}.price.svelte-8mby9k .value.svelte-8mby9k{position:relative;top:0.0625rem;font-size:1.125rem;line-height:1.375rem;font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0rem}.price.svelte-8mby9k .unit.svelte-8mby9k{padding-left:0.125rem;font-size:0.625rem}.tag.svelte-8mby9k.svelte-8mby9k{position:relative;background-color:white;display:flex;width:-moz-max-content;width:max-content;padding-left:0.75rem;padding-right:0.75rem;min-height:1.75rem}.tag.svelte-8mby9k .base-tag.svelte-8mby9k{height:1rem;margin-top:1.375rem;margin-bottom:0.5rem;margin-right:0.25rem;font-size:0.625rem;line-height:0.875rem;padding:0.0625rem 0.25rem;border-radius:0.125rem;overflow:hidden}.tag.svelte-8mby9k .primary-tag.svelte-8mby9k{background:#e5eefe;color:#0055ff}.tag.svelte-8mby9k .secondary-tag.svelte-8mby9k{background:rgba(255, 102, 0, 0.08);color:rgba(255, 102, 0, 1)}.unfolded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 1)}.folded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.unfolded.svelte-8mby9k .content.svelte-8mby9k{opacity:1}.folded.svelte-8mby9k .content.svelte-8mby9k{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}")}function Oo(o,t,e){const n=o.slice();return n[0]=t[e],n}function Ho(o,t,e){const n=o.slice();return n[0]=t[e],n}function Fo(o){let t,e=o[0]+"",n;return{c(){t=i.element("div"),n=i.text(e),i.attr(t,"class","base-tag primary-tag svelte-8mby9k")},m(s,r){i.insert(s,t,r),i.append(t,n)},p(s,r){r&4&&e!==(e=s[0]+"")&&i.set_data(n,e)},d(s){s&&i.detach(t)}}}function Go(o){let t,e=o[0]&&Fo(o);return{c(){e&&e.c(),t=i.empty()},m(n,s){e&&e.m(n,s),i.insert(n,t,s)},p(n,s){n[0]?e?e.p(n,s):(e=Fo(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(n){e&&e.d(n),n&&i.detach(t)}}}function No(o){let t,e=o[0]+"",n;return{c(){t=i.element("div"),n=i.text(e),i.attr(t,"class","base-tag secondary-tag svelte-8mby9k")},m(s,r){i.insert(s,t,r),i.append(t,n)},p(s,r){r&4&&e!==(e=s[0]+"")&&i.set_data(n,e)},d(s){s&&i.detach(t)}}}function Wo(o){let t,e=o[0]&&No(o);return{c(){e&&e.c(),t=i.empty()},m(n,s){e&&e.m(n,s),i.insert(n,t,s)},p(n,s){n[0]?e?e.p(n,s):(e=No(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(n){e&&e.d(n),n&&i.detach(t)}}}function Xo(o){let t,e,n=o[2].price.value+"",s,r,a=o[2].price.unit&&Yo(o);return{c(){t=i.element("div"),e=i.element("span"),s=i.text(n),r=i.space(),a&&a.c(),i.attr(e,"class","value svelte-8mby9k"),i.attr(t,"class","price svelte-8mby9k")},m(l,c){i.insert(l,t,c),i.append(t,e),i.append(e,s),i.append(t,r),a&&a.m(t,null)},p(l,c){c&4&&n!==(n=l[2].price.value+"")&&i.set_data(s,n),l[2].price.unit?a?a.p(l,c):(a=Yo(l),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},d(l){l&&i.detach(t),a&&a.d()}}}function Yo(o){let t,e=o[2].price.unit+"",n;return{c(){t=i.element("span"),n=i.text(e),i.attr(t,"class","unit svelte-8mby9k")},m(s,r){i.insert(s,t,r),i.append(t,n)},p(s,r){r&4&&e!==(e=s[2].price.unit+"")&&i.set_data(n,e)},d(s){s&&i.detach(t)}}}function Uo(o){let t,e=o[2].highlightText+"",n;return{c(){t=i.element("div"),n=i.text(e),i.attr(t,"class","goto-button goto-icon svelte-8mby9k")},m(s,r){i.insert(s,t,r),i.append(t,n)},p(s,r){r&4&&e!==(e=s[2].highlightText+"")&&i.set_data(n,e)},d(s){s&&i.detach(t)}}}function Lf(o){var T,H;let t,e,n,s,r,a,l,c,d,u,f,h,p,g,A=o[2].title+"",b,v,y,w,I;e=new ve({props:{visible:o[1],outDelay:500,left:61,bottom:87,blurRadius:150,spreadRadius:75}});let k=o[2].brandTags||[],C=[];for(let E=0;E<k.length;E+=1)C[E]=Go(Ho(o,k,E));let D=o[2].tags||[],x=[];for(let E=0;E<D.length;E+=1)x[E]=Wo(Oo(o,D,E));let z=((T=o[2].price)==null?void 0:T.value)!==void 0&&((H=o[2].price)==null?void 0:H.value)!==null&&Xo(o),_=o[2].highlightText&&Uo(o);return{c(){var E,S;t=i.element("div"),i.create_component(e.$$.fragment),n=i.space(),s=i.element("div"),r=i.space(),a=i.element("div"),l=i.element("img"),d=i.space(),u=i.element("div");for(let L=0;L<C.length;L+=1)C[L].c();f=i.space();for(let L=0;L<x.length;L+=1)x[L].c();h=i.space(),p=i.element("div"),g=i.element("div"),b=i.text(A),v=i.space(),y=i.element("div"),z&&z.c(),w=i.space(),_&&_.c(),i.attr(s,"class","line svelte-8mby9k"),i.set_style(s,"transition-delay",o[1]?xt+"ms":Dt+Jo-Vo-40+"ms",!1),i.attr(l,"class","headerImage svelte-8mby9k"),i.src_url_equal(l.src,c=o[2].headerPictureUrl)||i.attr(l,"src",c),i.attr(l,"alt",""),i.attr(u,"class","tag svelte-8mby9k"),i.attr(g,"class","text svelte-8mby9k"),i.attr(p,"class","title svelte-8mby9k"),i.attr(y,"class","footer svelte-8mby9k"),i.set_style(y,"height",((E=o[2].price)==null?void 0:E.value)!==void 0&&((S=o[2].price)==null?void 0:S.value)!==null&&o[2].highlightText?void 0:"1rem",!1),i.attr(a,"class","content svelte-8mby9k"),i.set_style(a,"transition-delay",o[1]?xt+Dt+"ms":"0ms",!1),i.attr(t,"class","marketing svelte-8mby9k"),i.toggle_class(t,"unfolded",o[1]),i.toggle_class(t,"folded",o[3])},m(E,S){i.insert(E,t,S),i.mount_component(e,t,null),i.append(t,n),i.append(t,s),i.append(t,r),i.append(t,a),i.append(a,l),i.append(a,d),i.append(a,u);for(let L=0;L<C.length;L+=1)C[L].m(u,null);i.append(u,f);for(let L=0;L<x.length;L+=1)x[L].m(u,null);i.append(a,h),i.append(a,p),i.append(p,g),i.append(g,b),i.append(a,v),i.append(a,y),z&&z.m(y,null),i.append(y,w),_&&_.m(y,null),I=!0},p(E,[S]){var B,R,G,Q;const L={};if(S&2&&(L.visible=E[1]),e.$set(L),S&2&&i.set_style(s,"transition-delay",E[1]?xt+"ms":Dt+Jo-Vo-40+"ms",!1),(!I||S&4&&!i.src_url_equal(l.src,c=E[2].headerPictureUrl))&&i.attr(l,"src",c),S&4){k=E[2].brandTags||[];let O;for(O=0;O<k.length;O+=1){const X=Ho(E,k,O);C[O]?C[O].p(X,S):(C[O]=Go(X),C[O].c(),C[O].m(u,f))}for(;O<C.length;O+=1)C[O].d(1);C.length=k.length}if(S&4){D=E[2].tags||[];let O;for(O=0;O<D.length;O+=1){const X=Oo(E,D,O);x[O]?x[O].p(X,S):(x[O]=Wo(X),x[O].c(),x[O].m(u,null))}for(;O<x.length;O+=1)x[O].d(1);x.length=D.length}(!I||S&4)&&A!==(A=E[2].title+"")&&i.set_data(b,A),((B=E[2].price)==null?void 0:B.value)!==void 0&&((R=E[2].price)==null?void 0:R.value)!==null?z?z.p(E,S):(z=Xo(E),z.c(),z.m(y,w)):z&&(z.d(1),z=null),E[2].highlightText?_?_.p(E,S):(_=Uo(E),_.c(),_.m(y,null)):_&&(_.d(1),_=null),S&4&&i.set_style(y,"height",((G=E[2].price)==null?void 0:G.value)!==void 0&&((Q=E[2].price)==null?void 0:Q.value)!==null&&E[2].highlightText?void 0:"1rem",!1),S&2&&i.set_style(a,"transition-delay",E[1]?xt+Dt+"ms":"0ms",!1),S&2&&i.toggle_class(t,"unfolded",E[1]),S&8&&i.toggle_class(t,"folded",E[3])},i(E){I||(i.transition_in(e.$$.fragment,E),I=!0)},o(E){i.transition_out(e.$$.fragment,E),I=!1},d(E){E&&i.detach(t),i.destroy_component(e),i.destroy_each(C,E),i.destroy_each(x,E),z&&z.d(),_&&_.d()}}}const xt=400,Vo=500,Dt=180,Jo=500;function _f(o,t,e){let n,s,r,{tag:a}=t;return o.$$set=l=>{"tag"in l&&e(0,a=l.tag)},o.$$.update=()=>{var l,c;o.$$.dirty&1&&e(1,n=(c=(l=a.state)==null?void 0:l.unfolded)!=null?c:!1),o.$$.dirty&2&&e(3,s=!n),o.$$.dirty&1&&e(2,r=a.data)},[a,n,r,s]}class zf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,_f,Lf,i.safe_not_equal,{tag:0},Sf)}}function Mf(o){i.append_styles(o,"svelte-1ku3wt4",`.audio.svelte-1ku3wt4.svelte-1ku3wt4{position:relative;width:100%;height:100%;cursor:pointer}@keyframes svelte-1ku3wt4-playing{25%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='8' transform='translate(-1 -1)' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}50%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.533 6.685L4.169 8.049l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}75%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.656 4.874l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .875-.333 1.67-.88 2.268l.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}}.paused.svelte-1ku3wt4 .audio-icon.svelte-1ku3wt4{animation:none}.audio-icon.svelte-1ku3wt4.svelte-1ku3wt4{width:100%;height:100%;border-radius:50%;background-size:100%;animation:svelte-1ku3wt4-playing 2s steps(1) infinite;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm1.428 2.79l-.953.952a6.222 6.222 0 0 1 1.775 4.36c0 1.571-.58 3.006-1.538 4.103l-.184.202.793.794a7.344 7.344 0 0 0 2.21-5.26A7.341 7.341 0 0 0 9.428 2.79zM7.344 4.873l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .802-.28 1.537-.748 2.115l-.132.153.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}`)}function Zo(o){let t,e,n,s,r,a,l,c=!0,d,u,f,h,p;return e=new ve({props:{center:!0,blurRadius:15,spreadRadius:6}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),n=i.space(),s=i.element("div"),r=i.space(),a=i.element("audio"),i.attr(s,"class","audio-icon svelte-1ku3wt4"),a.controls=!1,i.attr(a,"playsinline",""),i.src_url_equal(a.src,l=o[3])||i.attr(a,"src",l),i.attr(t,"class","audio svelte-1ku3wt4"),i.toggle_class(t,"paused",o[6])},m(g,A){i.insert(g,t,A),i.mount_component(e,t,null),i.append(t,n),i.append(t,s),i.append(t,r),i.append(t,a),o[9](a),f=!0,h||(p=[i.listen(a,"play",o[10]),i.listen(a,"pause",o[10]),i.listen(t,"click",i.stop_propagation(o[7]))],h=!0)},p(g,A){o=g,(!f||A&8&&!i.src_url_equal(a.src,l=o[3]))&&i.attr(a,"src",l),A&64&&c!==(c=o[6])&&a[c?"pause":"play"](),A&64&&i.toggle_class(t,"paused",o[6])},i(g){f||(i.transition_in(e.$$.fragment,g),g&&i.add_render_callback(()=>{u&&u.end(1),d=i.create_in_transition(t,me.fade,{duration:o[2],delay:o[0],easing:Se.cubicInOut}),d.start()}),f=!0)},o(g){i.transition_out(e.$$.fragment,g),d&&d.invalidate(),g&&(u=i.create_out_transition(t,me.fade,{duration:o[2],delay:o[1],easing:Se.cubicInOut})),f=!1},d(g){g&&i.detach(t),i.destroy_component(e),o[9](null),g&&u&&u.end(),h=!1,i.run_all(p)}}}function Tf(o){let t,e,n=o[4]&&Zo(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[4]?n?(n.p(s,r),r&16&&i.transition_in(n,1)):(n=Zo(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function jf(o,t,e){let{inDelay:n=0}=t,{outDelay:s=0}=t,{duration:r=0}=t,{url:a}=t,{unfolded:l}=t,{hooksInfo:c={}}=t;const d=Z.getContext("hooks"),u=Z.getContext("mediaStore");let f,h=!0;u.subscribe(({currentMediaUrl:b})=>{b!==a&&(f==null||f.pause())});function p(b){u.set({currentMediaUrl:a}),f&&(d.emit("click",j({event:b,target:"AudioTagPlayIcon",audioInstance:f},c)),f.paused?f.play():f.pause(),e(5,f.onplay=v=>d.emit("playStateChange",j({event:v,state:"playing",mediaInstance:f},c)),f),e(5,f.onpause=v=>d.emit("playStateChange",j({event:v,state:"paused",mediaInstance:f},c)),f))}function g(b){i.binding_callbacks[b?"unshift":"push"](()=>{f=b,e(5,f)})}function A(){h=this.paused,e(6,h)}return o.$$set=b=>{"inDelay"in b&&e(0,n=b.inDelay),"outDelay"in b&&e(1,s=b.outDelay),"duration"in b&&e(2,r=b.duration),"url"in b&&e(3,a=b.url),"unfolded"in b&&e(4,l=b.unfolded),"hooksInfo"in b&&e(8,c=b.hooksInfo)},o.$$.update=()=>{o.$$.dirty&48&&(l||f==null||f.pause())},[n,s,r,a,l,f,h,p,c,g,A]}class Bf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,jf,Tf,i.safe_not_equal,{inDelay:0,outDelay:1,duration:2,url:3,unfolded:4,hooksInfo:8},Mf)}}function Qf(o){i.append_styles(o,"svelte-4r8s18",".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}")}function qo(o){var y,w,I,k;let t,e,n,s,r,a,l,c,d,u,f,h,p,g,A,b,v;return e=new ve({props:{visible:o[5],left:o[2]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),r=new Js({props:{unfolded:o[5],duration:1e3,outDelay:o[4]+20*Math.min((w=(y=o[3][0])==null?void 0:y.content.length)!=null?w:10,15)}}),u=new Bf({props:{unfolded:o[5],url:o[0].data.audioUrl,duration:1e3,outDelay:20*Math.min((k=(I=o[3][0])==null?void 0:I.content.length)!=null?k:10,15),hooksInfo:{tag:o[0]}}}),p=new qs({props:{visible:o[5],textUnfolded:o[1],textItems:o[3]}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),n=i.space(),s=i.element("div"),i.create_component(r.$$.fragment),a=i.space(),l=i.element("div"),c=i.element("div"),d=i.element("div"),i.create_component(u.$$.fragment),f=i.space(),h=i.element("div"),i.create_component(p.$$.fragment),i.attr(s,"class","line svelte-4r8s18"),i.set_style(s,"width",o[2]+"px",!1),i.attr(d,"class","audio-icon svelte-4r8s18"),i.set_style(h,"display","inline-block",!1),i.attr(c,"class","wrapper svelte-4r8s18"),i.attr(l,"class","content svelte-4r8s18"),i.add_render_callback(()=>o[8].call(l)),i.attr(t,"class","audio-tag svelte-4r8s18"),i.toggle_class(t,"unfolded",o[5])},m(C,D){i.insert(C,t,D),i.mount_component(e,t,null),i.append(t,n),i.append(t,s),i.mount_component(r,s,null),i.append(t,a),i.append(t,l),i.append(l,c),i.append(c,d),i.mount_component(u,d,null),i.append(c,f),i.append(c,h),i.mount_component(p,h,null),g=i.add_resize_listener(l,o[8].bind(l)),A=!0,b||(v=i.listen(h,"click",o[6]),b=!0)},p(C,D){var H,E,S,L;const x={};D&32&&(x.visible=C[5]),D&4&&(x.left=C[2]/2+"px"),e.$set(x);const z={};D&32&&(z.unfolded=C[5]),D&24&&(z.outDelay=C[4]+20*Math.min((E=(H=C[3][0])==null?void 0:H.content.length)!=null?E:10,15)),r.$set(z),D&4&&i.set_style(s,"width",C[2]+"px",!1);const _={};D&32&&(_.unfolded=C[5]),D&1&&(_.url=C[0].data.audioUrl),D&8&&(_.outDelay=20*Math.min((L=(S=C[3][0])==null?void 0:S.content.length)!=null?L:10,15)),D&1&&(_.hooksInfo={tag:C[0]}),u.$set(_);const T={};D&32&&(T.visible=C[5]),D&2&&(T.textUnfolded=C[1]),D&8&&(T.textItems=C[3]),p.$set(T),D&32&&i.toggle_class(t,"unfolded",C[5])},i(C){A||(i.transition_in(e.$$.fragment,C),i.transition_in(r.$$.fragment,C),i.transition_in(u.$$.fragment,C),i.transition_in(p.$$.fragment,C),A=!0)},o(C){i.transition_out(e.$$.fragment,C),i.transition_out(r.$$.fragment,C),i.transition_out(u.$$.fragment,C),i.transition_out(p.$$.fragment,C),A=!1},d(C){C&&i.detach(t),i.destroy_component(e),i.destroy_component(r),i.destroy_component(u),i.destroy_component(p),g(),b=!1,v()}}}function Rf(o){let t,e,n=o[0].state&&qo(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[0].state?n?(n.p(s,r),r&1&&i.transition_in(n,1)):(n=qo(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function Of(o,t,e){let n,s,r,{tag:a}=t,l=!1,c,d=[];function u(){e(1,l=!l)}function f(){c=this.clientWidth,e(2,c)}return o.$$set=h=>{"tag"in h&&e(0,a=h.tag)},o.$$.update=()=>{var h;o.$$.dirty&1&&e(5,n=!!((h=a.state)!=null&&h.unfolded)),o.$$.dirty&1&&e(7,s=a.data.text),o.$$.dirty&128&&e(3,d=[{id:ue(),content:s}]),o.$$.dirty&2&&e(4,r=l?450:0)},[a,l,c,d,r,n,u,s,f]}class Hf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Of,Rf,i.safe_not_equal,{tag:0},Qf)}}function Ff(o){i.append_styles(o,"svelte-10cw0el",".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}")}function Ko(o){let t,e,n;return e=new er({props:{unfolded:o[5],mediaData:o[4],objectFit:o[2],enableCarousel:o[1],autoplayConfig:o[3],tag:o[0],canPlay:!0,playButtonIfNeed:"large",inDelay:500,duration:500}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),i.attr(t,"class","media-wrapper svelte-10cw0el")},m(s,r){i.insert(s,t,r),i.mount_component(e,t,null),n=!0},p(s,r){const a={};r&32&&(a.unfolded=s[5]),r&16&&(a.mediaData=s[4]),r&4&&(a.objectFit=s[2]),r&2&&(a.enableCarousel=s[1]),r&8&&(a.autoplayConfig=s[3]),r&1&&(a.tag=s[0]),e.$set(a)},i(s){n||(i.transition_in(e.$$.fragment,s),n=!0)},o(s){i.transition_out(e.$$.fragment,s),n=!1},d(s){s&&i.detach(t),i.destroy_component(e)}}}function Gf(o){let t,e,n=o[0].state&&o[4]&&Ko(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[0].state&&s[4]?n?(n.p(s,r),r&17&&i.transition_in(n,1)):(n=Ko(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function Nf(o,t,e){let n,s,r,a,l,{tag:c}=t;return o.$$set=d=>{"tag"in d&&e(0,c=d.tag)},o.$$.update=()=>{var d,u;o.$$.dirty&1&&e(5,n=c.state?c.state.unfolded:!1),o.$$.dirty&1&&e(4,s=c.data.mediaData),o.$$.dirty&1&&e(1,r=c.data.enableCarousel),o.$$.dirty&3&&e(3,a=(d=c.data.autoplayConfig)!=null?d:{autoplay:r!=null?r:!0,autoplayVideo:!0}),o.$$.dirty&1&&e(2,l=(u=c.data.objectFit)!=null?u:(()=>c.data.adaptationMode==="stretch"?"cover":c.data.adaptationMode==="proportional"?"contain":void 0)())},[c,r,l,a,s,n]}class Wf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Nf,Gf,i.safe_not_equal,{tag:0},Ff)}}function Xf(o){i.append_styles(o,"svelte-7x7u86",".wrapper.svelte-7x7u86{font-weight:600;cursor:pointer;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.text-wrapper.svelte-7x7u86{position:relative;display:flex;align-items:center;justify-content:center}.icon.svelte-7x7u86{position:relative;margin-bottom:0.6875rem}.arrow0.svelte-7x7u86,.arrow1.svelte-7x7u86,.arrow2.svelte-7x7u86{position:absolute;width:1.625rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAAkCAYAAAAnxQwhAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAATqADAAQAAAABAAAAJAAAAABrx2urAAAGm0lEQVRoBd2ZXbCVUxjH26QSfSCS0JwoFNEZ0cc45iSmUUaqC+KCwUUXxYUZw4yrLhozLlDDRWa6oW5yOFTT0IcyKn1JnIjDKelLPipJcXT8fttaZ95qd+yzv+uZ+e211rvfd61n/ddaz1rv3qkOFWgtLS3n4Vb34NqhVCr1d6W5mao0hxBNwfrCOcG346S7Ee9gKFdEUjHCIZi+XA69E8p4rQVM98EeBLRcdqsI4RCtI0r0h4uCIvo1BZx1b4GzTjsA3yFec7pUxo+yC4doXen/IDg/6GB5GlSH8mbSWXA4lI+SNiDekVAuS1JW4RCtF72+EWI8c6k+A6ZJc5m+BHvCxX9ItyLe/lAueVIW4UI8u4beDkj02FnnTOuUuJb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Ye4plFA4Hx3Hn0xB3Hiv0V9qTYxCXMpoie2LX+vyXnPDpiH4Ay3HMe9tt+NiTh0bDPRBXRLIed07tZvDebEzhN4CzV3O5voyPi9KlxMcJwuGMQj0FE8M9Ku9I1MIJ94bvk4mNGORdcr41GLd8xjpM94HxZAmO7CAtmOF3Pyoz5srJ8bCZaw68M95NJU4GshlNf1dAf4i+15F/Bb9b416rGDRuPHsRHCHN2PEz3GahDXMq/wR9wfgTGyObFnE56ULwDxW/K5rRB/tTDa4YY2Imf3Zx/TIwFLVl6/iyF8SNxxX0LH1Ix720cDRoTJgNcbT2hwdUPZPZeCNYsc9EQazPEV4NTm9/zjlKWnKjT11otBYUcRS4AuKgmjrYToxrwUHPZN9z0Ql0afhyL+k0+rQtRQOu/3qIAhjIB0IPSJrrvwEcARvTko44896DhXFUvKESjD66msbD/eBMSw60eQVygAfDyXH8INe2gZPLiaF4ExTucTLPg2aMGg7uVpqzZwu4tm8Ad7UoFtn0q4ti1SHWt16odKO/A/DxAZgAcYVFt+3nV2AcHAIdQTsOa6Ea7P9MhZtB5jHQmsDltwMM8qrszFPpaEfILIYF4H+ZVnrGGf12coyEyXAvdIU4KUydaa4+r/cDl3UVaHMVzun7erp4+g/FWQWK5a6oeGeNoYHijAVFrIG44shmtKkK52x6FSZluMW4pVjvIJbHibPe0MPl61JWxEEZOvw216a3LkEeGMGFO0D1d8KqMyVu4WtRDE2Mh85Az6Wuso/RZA1ph38BBMvNbHuq7kAAAAAASUVORK5CYII=);background-repeat:no-repeat;background-size:contain;animation-fill-mode:backwards;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.2s}.arrow1.svelte-7x7u86{position:relative}.arrow0.svelte-7x7u86{top:-0.75rem;animation-name:svelte-7x7u86-up0}.arrow1.svelte-7x7u86{animation-name:svelte-7x7u86-up1}.arrow2.svelte-7x7u86{top:0.75rem;animation-name:svelte-7x7u86-up2}.text.svelte-7x7u86{position:absolute;top:0;font-size:0.875rem;color:#ffffff;letter-spacing:0;text-align:center;max-width:8.75rem;width:-moz-max-content;width:max-content;word-break:break-all;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}@keyframes svelte-7x7u86-up0{0%{opacity:0.8;transform:translate3d(0, 0, 0) scale(0.84)}33.33%,100%{opacity:0;transform:translate3d(0, -0.75rem, 0) scale(0.84)}}@keyframes svelte-7x7u86-up1{0%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}33.33%,100%{opacity:0.8;transform:translate3d(0, -0.75rem, 0) scale(0.84)}}@keyframes svelte-7x7u86-up2{0%{opacity:0}33.33%,100%{opacity:1;transform:translate3d(0, -0.75rem, 0)}}.link.svelte-7x7u86{position:relative;width:1.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAkCAMAAAAgl+0yAAAAnFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+TINBkAAAAM3RSTlMAjLy6ILM2Fi+Zng3BrPvao4VC9ceneQfKkmNdV1AbEeLOsHA77ujUtn5JLnRraSUUjVLj/+RVAAABhElEQVRIx63V2W6CQBiGYUBUQGDYdwTZQZZa7v/eimik/ket/7yZ4yeTTCYf8+dOX8etxGVoxAvCVbguR3g0uRTMA0w4odGi+CbzFnGKosCqrmHc5rdEwzCwqtGFJlC7DqtOcTxANY67BHnVKOpVoEZRjFPdLgxbqIZhhFTjINChGgThF06NhpGd35OGMcCppyDPfajm+YhUR8cRoeo4+RGlJnnbalBt2x6nHh1dt4Gq6bqDU886y2ZQZVn9jFJ51vcbqPo+Up18UeSgKoo3nHqVJEkGqi1JPk49aLZmQdW2xXf1zP+vUFHsC1QVReK33xdk+w9SaqAq+732UvvdZ2UEqrud8lR5Wc4a7pO8GaoL9VBjy7rMlMosq1lV43LhZlrtF+yuJlbtEXpqXXP3NYwI8VJqakOIziw5aepV1FQuTdfhvlWVZdJCrao6MPe0spRpqV5ZFivqNqYpq3RQ2TST5/h4quoRCmwqq6rymol6plV53IZSomTKE/MroWfxDevL/wAEdPq1eGDh4AAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-size:contain;animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:1.2s;animation-name:svelte-7x7u86-left-right}@keyframes svelte-7x7u86-left-right{0%,100%{opacity:0.8;transform:translateX(-0.3125rem)}50%{opacity:1;transform:translateX(0)}}")}function Yf(o){let t,e,n,s;return t=new ve({props:{visible:!0,outDelay:0,inDelay:0,width:1.4,left:13,bottom:"auto",blurRadius:50,spreadRadius:18}}),{c(){i.create_component(t.$$.fragment),e=i.space(),n=i.element("div"),i.attr(n,"class","link svelte-7x7u86")},m(r,a){i.mount_component(t,r,a),i.insert(r,e,a),i.insert(r,n,a),s=!0},i(r){s||(i.transition_in(t.$$.fragment,r),s=!0)},o(r){i.transition_out(t.$$.fragment,r),s=!1},d(r){i.destroy_component(t,r),r&&i.detach(e),r&&i.detach(n)}}}function Uf(o){let t,e,n,s,r,a,l,c;return t=new ve({props:{visible:!0,outDelay:0,inDelay:0,height:1.2,left:13,bottom:12,blurRadius:50,spreadRadius:18}}),{c(){i.create_component(t.$$.fragment),e=i.space(),n=i.element("div"),s=i.space(),r=i.element("div"),a=i.space(),l=i.element("div"),i.attr(n,"class","arrow0 svelte-7x7u86"),i.attr(r,"class","arrow1 svelte-7x7u86"),i.attr(l,"class","arrow2 svelte-7x7u86")},m(d,u){i.mount_component(t,d,u),i.insert(d,e,u),i.insert(d,n,u),i.insert(d,s,u),i.insert(d,r,u),i.insert(d,a,u),i.insert(d,l,u),c=!0},i(d){c||(i.transition_in(t.$$.fragment,d),c=!0)},o(d){i.transition_out(t.$$.fragment,d),c=!1},d(d){i.destroy_component(t,d),d&&i.detach(e),d&&i.detach(n),d&&i.detach(s),d&&i.detach(r),d&&i.detach(a),d&&i.detach(l)}}}function Vf(o){let t,e,n,s,r,a,l,c,d,u=o[0].text+"",f,h;const p=[Uf,Yf],g=[];function A(b,v){return b[0].linkType===Ot.VrLink?0:b[0].linkType===Ot.NormalLink?1:-1}return~(n=A(o))&&(s=g[n]=p[n](o)),l=new ve({props:{visible:!0,outDelay:0,inDelay:0,left:"auto",bottom:"auto",width:"80%",blurRadius:40,spreadRadius:16,opacity:.08}}),{c(){t=i.element("div"),e=i.element("div"),s&&s.c(),r=i.space(),a=i.element("div"),i.create_component(l.$$.fragment),c=i.space(),d=i.element("div"),f=i.text(u),i.attr(e,"class","icon svelte-7x7u86"),i.attr(d,"class","text svelte-7x7u86"),i.attr(a,"class","text-wrapper svelte-7x7u86"),i.attr(t,"class","wrapper svelte-7x7u86")},m(b,v){i.insert(b,t,v),i.append(t,e),~n&&g[n].m(e,null),i.append(t,r),i.append(t,a),i.mount_component(l,a,null),i.append(a,c),i.append(a,d),i.append(d,f),h=!0},p(b,[v]){let y=n;n=A(b),n!==y&&(s&&(i.group_outros(),i.transition_out(g[y],1,1,()=>{g[y]=null}),i.check_outros()),~n?(s=g[n],s||(s=g[n]=p[n](b),s.c()),i.transition_in(s,1),s.m(e,null)):s=null),(!h||v&1)&&u!==(u=b[0].text+"")&&i.set_data(f,u)},i(b){h||(i.transition_in(s),i.transition_in(l.$$.fragment,b),h=!0)},o(b){i.transition_out(s),i.transition_out(l.$$.fragment,b),h=!1},d(b){b&&i.detach(t),~n&&g[n].d(),i.destroy_component(l)}}}function Jf(o,t,e){let n,{tag:s}=t;return o.$$set=r=>{"tag"in r&&e(1,s=r.tag)},o.$$.update=()=>{o.$$.dirty&2&&e(0,n=s.data)},[n,s]}class Zf extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Jf,Vf,i.safe_not_equal,{tag:1},Xf)}}function qf(o){i.append_styles(o,"svelte-kzl2aj",".customElement__container.svelte-kzl2aj{position:relative}")}function $o(o){let t,e=o[0].element+"",n;return{c(){t=new i.HtmlTag(!1),n=i.empty(),t.a=n},m(s,r){t.m(e,s,r),i.insert(s,n,r)},p(s,r){r&1&&e!==(e=s[0].element+"")&&t.p(e)},d(s){s&&i.detach(n),s&&t.d()}}}function Kf(o){let t,e=typeof o[0].element=="string"&&$o(o);return{c(){t=i.element("div"),e&&e.c(),i.attr(t,"class","customElement__container svelte-kzl2aj")},m(n,s){i.insert(n,t,s),e&&e.m(t,null),o[2](t)},p(n,[s]){typeof n[0].element=="string"?e?e.p(n,s):(e=$o(n),e.c(),e.m(t,null)):e&&(e.d(1),e=null)},i:i.noop,o:i.noop,d(n){n&&i.detach(t),e&&e.d(),o[2](null)}}}function $f(o,t,e){let{tag:n}=t,s,r;Z.onMount(()=>{if(s){if(n.element instanceof Element){const l=n.element;s.appendChild(l),r=()=>s==null?void 0:s.removeChild(l)}else if(typeof n.element=="function"){const l=n.element;r=l(s)}}}),Z.onDestroy(()=>{r==null||r()});function a(l){i.binding_callbacks[l?"unshift":"push"](()=>{s=l,e(1,s)})}return o.$$set=l=>{"tag"in l&&e(0,n=l.tag)},[n,s,a]}class em extends i.SvelteComponent{constructor(t){super(),i.init(this,t,$f,Kf,i.safe_not_equal,{tag:0},qf)}}function tm(o){i.append_styles(o,"svelte-95x526",`@font-face{font-family:'TG-TYPE';font-style:normal;font-weight:400;src:local('TG-TYPE-Bold'),
|
|
540
540
|
url(data:application/font-woff2;charset=utf-8;base64,T1RUTwAKAIAAAwAgQ0ZGINFD4CEAAAaQAAAHC0dTVUIAAQAAAAANnAAAAApPUy8yaB5pEwAAAjQAAABgY21hcEItjGUAAAT0AAABfGhlYWQS1WWOAAAAtAAAADZoaGVhBfMBxwAAAhAAAAAkaG10eJ9gBO8AAADsAAABJG1heHAASVAAAAAArAAAAAZuYW1lqczkZQAAApQAAAJecG9zdP+4ADIAAAZwAAAAIAAAUAAASQAAAAEAAAABAADkeHeyXw889QADA+gAAAAA2NoRKwAAAADY2hErACn/OAHgAyAAAQADAAIAAAAAAAAB9ABdAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAA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BvtK/CMFfnCFbm0aZJVnnmoeSrLPYdobsq6Vnqwfy7K10dgasoGueKwey2RHtT4b+9YETlu7yMe8vcfHvVlPT1laTx8OmIr5UQG/+B8D93iKFfsIBvdo+OYF+6T2+B8oBg6iifL3bPX3QPEStvNB8vc/8jXxE/L4EvgHFRPss7Cnu78arYOreqgexWpNr0YbaWyDem4fUmlmTUcaXqBftGAeE/JWYmROSxpklWieax5Ksc9i2BuxrpWerB/LsbTP2BrHaMVath4T7PsN93QVu7FjXFtlZltcZbC7urGzuh8T8oX8ghVPW7zHx7q6yMa9W1BPWVpQHw6i96Tz92/0AbTz93DzA/hp+HkVsIGveKwezmNFtUAbZGeBeGofSmNiRT8aZJVnnmseSrHPYtoboAb7EvukBfcHBvdL+CEFmaySqaQa+9gWxry+yJ6dhoGcHq12oWZmGk5YW1BMXLnKHg4gCiEK+11L91IlCvdiyhWtb6hpJgoeJAoOIQogCqz3pe/3b/UBufX3bfQD+G74dxWyga94rB7NZEW0PhtlaIF4ah9KY2FFPxo7tkTPZh6MjIqKjB+TiJCIjYoIjgaCoKGHoRuanY6QoB+IgfsB+6QF9wcG9y/4IgWYppGnqhr7a/sCFVBbvMjHu7zGyLxbTk5aWk4fDvtd+AojCoz7jBUmCh8kCq1vqGkeDvtdi/cS94wjCvwKBCIKDiD3ru8BvPeuA7z4EhUn967vBw4eoDf/DAmLDAv47BT4exWcEwAHAQFBXW97ipCarPcv8+7yAfdl8gP4aPf6FfIjB+r3gwUiBi77gwWHBjH3gwUkBuP7gwUnJPcxKPsxI/cx+y/y9y/3MPP7MO4GDvtdi/cSJQr3JBZkcqOzsKSksrCkcWdlcnFmHw6up6eurm+naGhvb2hop2+uHwv3EiUK9yP4ChUiCgt3SgWxBrnmBZGVj5eZGgsB2/cSAwtobm5paqBzqoYLAAABAAAAAAAAAAAAAA==)
|
|
541
541
|
format('woff2')}.content__container.svelte-95x526{position:relative;left:50%;top:50%;transform:translate(-50%, -50%);font-family:PingFangSC, Segoe UI, Rototo, sans-serif}.content__container.unClickable.svelte-95x526{pointer-events:none !important}.content__container.unClickable.svelte-95x526 *{pointer-events:none !important}*{-webkit-tap-highlight-color:transparent}.content__wrapper.svelte-95x526{pointer-events:none;width:100%;height:100%}.withAnimation.svelte-95x526{transition:opacity 0.3s linear}.content__container.hide.svelte-95x526{opacity:0;pointer-events:none}.content__container.hide.svelte-95x526 *{pointer-events:none !important}.content__container.disable.svelte-95x526{display:none}.content__container.hide.svelte-95x526 *{pointer-events:none}.content.svelte-95x526{position:relative;width:100%;height:100%;font-size:0.75rem;line-height:1.125rem;color:#fff}.content.svelte-95x526:not(.unfolded){pointer-events:none}.content.svelte-95x526:not(.unfolded) *{pointer-events:none !important}.content.unfolded.svelte-95x526{pointer-events:auto}`)}function nm(o){let t,e;return t=new Wf({props:{tag:re(o[1])}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&2&&(r.tag=re(n[1])),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function im(o){let t,e;return t=new Zf({props:{tag:re(o[1])}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&2&&(r.tag=re(n[1])),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function om(o){let t,e;return t=new zf({props:{tag:re(o[1])}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&2&&(r.tag=re(n[1])),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function sm(o){let t,e;return t=new Hf({props:{tag:re(o[1])}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&2&&(r.tag=re(n[1])),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function rm(o){let t,e;return t=new Df({props:{tag:re(o[1])}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&2&&(r.tag=re(n[1])),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function am(o){let t,e;return t=new Gh({props:{tag:re(o[1])}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&2&&(r.tag=re(n[1])),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function lm(o){let t,e;return t=new em({props:{tag:re(o[1])}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&2&&(r.tag=re(n[1])),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function cm(o){let t,e,n,s,r,a,l,c,d;const u=[lm,am,rm,sm,om,im,nm],f=[];function h(p,g){return p[1].element?0:p[1].contentType===ge.Text?1:p[1].contentType===ge.ImageText?2:p[1].contentType===ge.Audio?3:p[1].contentType===ge.Marketing?4:p[1].contentType===ge.Link?5:p[1].contentType===ge.MediaPlane?6:-1}return~(s=h(o))&&(r=f[s]=u[s](o)),{c(){var p,g,A;t=i.element("div"),e=i.element("div"),n=i.element("div"),r&&r.c(),i.attr(n,"class","content svelte-95x526"),i.toggle_class(n,"unfolded",(p=o[1].state)==null?void 0:p.unfolded),i.attr(e,"class","content__wrapper svelte-95x526"),i.attr(t,"class","content__container svelte-95x526"),i.attr(t,"data-id",a=o[1].id),i.toggle_class(t,"disable",o[1].enabled===!1||((g=o[1].temporaryState)==null?void 0:g.visible)===!1),i.toggle_class(t,"hide",!o[3].visible||!o[3].enabled||!o[4].visible||!((A=o[1].state)!=null&&A.visible)),i.toggle_class(t,"withAnimation",o[0]),i.toggle_class(t,"unClickable",o[1].clickable===!1),i.set_style(t,"width",o[1].pointType==="PointTag"?0:"100%",!1),i.set_style(t,"height",o[1].pointType==="PointTag"?0:"100%",!1)},m(p,g){i.insert(p,t,g),i.append(t,e),i.append(e,n),~s&&f[s].m(n,null),l=!0,c||(d=i.listen(t,"click",i.stop_propagation(o[11])),c=!0)},p(p,[g]){var b,v,y;let A=s;s=h(p),s===A?~s&&f[s].p(p,g):(r&&(i.group_outros(),i.transition_out(f[A],1,1,()=>{f[A]=null}),i.check_outros()),~s?(r=f[s],r?r.p(p,g):(r=f[s]=u[s](p),r.c()),i.transition_in(r,1),r.m(n,null)):r=null),g&2&&i.toggle_class(n,"unfolded",(b=p[1].state)==null?void 0:b.unfolded),(!l||g&2&&a!==(a=p[1].id))&&i.attr(t,"data-id",a),g&2&&i.toggle_class(t,"disable",p[1].enabled===!1||((v=p[1].temporaryState)==null?void 0:v.visible)===!1),g&26&&i.toggle_class(t,"hide",!p[3].visible||!p[3].enabled||!p[4].visible||!((y=p[1].state)!=null&&y.visible)),g&1&&i.toggle_class(t,"withAnimation",p[0]),g&2&&i.toggle_class(t,"unClickable",p[1].clickable===!1),g&2&&i.set_style(t,"width",p[1].pointType==="PointTag"?0:"100%",!1),g&2&&i.set_style(t,"height",p[1].pointType==="PointTag"?0:"100%",!1)},i(p){l||(i.transition_in(r),l=!0)},o(p){i.transition_out(r),l=!1},d(p){p&&i.detach(t),~s&&f[s].d(),c=!1,d()}}}function dm(o,t,e){let n,s,r,a,{withAnimation:l=!1}=t,{tag:c}=t,{hooks:d}=t,{state:u}=t,{mediaStore:f}=t,{temporaryState:h}=t;Z.setContext("hooks",d),Z.setContext("mediaStore",f);let p,g;function A(v){v?d.emit("exposure",{id:a,type:"start"}):d.emit("exposure",{id:a,type:"end"})}const b=v=>d.emit("click",{event:v,target:"TagContent",tag:c});return o.$$set=v=>{"withAnimation"in v&&e(0,l=v.withAnimation),"tag"in v&&e(1,c=v.tag),"hooks"in v&&e(2,d=v.hooks),"state"in v&&e(3,u=v.state),"mediaStore"in v&&e(5,f=v.mediaStore),"temporaryState"in v&&e(4,h=v.temporaryState)},o.$$.update=()=>{var v,y;o.$$.dirty&2&&e(9,n=(v=c.state)==null?void 0:v.unfolded),o.$$.dirty&2&&e(8,s=(y=c.state)==null?void 0:y.visible),o.$$.dirty&280&&e(10,r=u.visible&&h.visible&&s),o.$$.dirty&2&&(a=c.id),o.$$.dirty&1024&&A(r),o.$$.dirty&962&&c.hooks&&(n!==void 0&&n!==g&&(e(7,g=n),n?c.hooks.emit("unfolded"):c.hooks.emit("folded")),s!==void 0&&s!==p&&(e(6,p=s),s?c.hooks.emit("show"):c.hooks.emit("hide")))},[l,c,d,u,h,f,p,g,s,n,r,b]}class tr extends i.SvelteComponent{constructor(t){super(),i.init(this,t,dm,cm,i.safe_not_equal,{withAnimation:0,tag:1,hooks:2,state:3,mediaStore:5,temporaryState:4},tm)}}function um(o){i.append_styles(o,"svelte-fuismw",".point.svelte-fuismw.svelte-fuismw{pointer-events:none;width:1.5rem;height:1.5rem}.small-point.svelte-fuismw.svelte-fuismw,.big-point.svelte-fuismw.svelte-fuismw{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all 500ms}.big-point.svelte-fuismw.svelte-fuismw{background-color:rgba(0, 0, 0, 0.1)}.folded.point.svelte-fuismw.svelte-fuismw{animation:svelte-fuismw-breathing 2s linear infinite}.big-point.svelte-fuismw.svelte-fuismw::before,.big-point.svelte-fuismw.svelte-fuismw::after{content:'';display:block;position:absolute;background-size:contain;background-repeat:no-repeat;pointer-events:none}.big-point.svelte-fuismw.svelte-fuismw::before{width:100%;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAqFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8j1z1tAAAAOHRSTlMABgoNFBsYIhEmHyksMoJ6RZ5aXzpnU03AtqaZjLuGN+zcifnW0cjEqnA+lOZzbWLhkH6i8rGuagnOwPMAAAQOSURBVFjDrZiHctpAEIYXYzvGOvXeUe+IYuD93ywrJAIhFJX8M8zoBHzz757utHvwTETJHJPfGQZfWJXILWCMPuqNbuu6vj+khrHjed40TWvFfQ2jvCl8nGha6lQCl7s07UqcUlfOZrOxVtKsN2a+0uJYK+ScEIqiFifhBSGSsnJ8f8u99cLMVnEUHTKXIOMX6vuk5gpphFYyhmHzHpzcDqNUJGgEER+oz5OaK8ShNcIdt+zx1ys7lhdqiDlRkPF+JaSdWIhasaz6lLPQ1qFDIwYpDeTr62veCS8bGLIQRSsVK78/5nDeOlYIYhovHeOtU0dDXw2KSGiKesQRyjJ10Q66QcyZMTvpTEMUumpMieyWvs9ZLZcmodAOYlorsysBflpjiEJTFBEY5+7sicul34T1iak5U25momN9Ya4wPCT57r8cteW0dk4YuKMTqjXVkgjciFr+8B3ngnmM6kii5X/efB0F+jUHnuiatLJY+Et84EnUNacfiaKZjQhX4oJAwPlqOB3mJaoh4dxxG5Nc3Q8DkywunP6kBalN53J7G3g0JqiNC3qpjQ7TRPvmn2U3L3/kU4JaTn/SKU0qb76dDf0kGNjHJbD+wX1gcMxO6fZVrzXUcQaROkvt3+pljIYugQ0LDi1ZBgeN9JK9MjTCkmgwgPou19I5QzBI5yy5RvqOw6xMMbKzoeGWmnQfBBwa6woj6wyNsYSx7R0chWuOwsjOqR6aboyNyvcpgOsl3ZzNhoNm3bztdAK1x5NuzmCwunkjjq4AEzKXFI1NUmVnwIfydJBoW7CPVAR1uR6XbVwlmgF2xF1yPTbbubYHLZamgyTNhiSmp4PoJIEk+R+gOAFb+x+hxRoctHw6iItsMLT/Mf3RHixbnP5AyhEPmZ1NB+E6A0V3pi9aPqyB6Pz0bSTxXID0kE/d2DgvxBFzEKdutdXawJGSMlM3/3Sd4fA93bnTXkfSuvwGFGOI016QbKm3VdbOn/bKjpd1e6Pg1SlFhPzjdXWNwjNTyprkhz33i4Wpji600FA5h05q4Ywv/bxge7mNRe7YYtQMwqt/kMLixpXHQhBwcCXBYukxBbvkBTv4S5V/HNNC6EF089tPxxGHNzV8sKTgRhSzVYa2Wf5yeadHphlWGdb4IUeEO5K2SHrUiqJuW9GiLFdwVzRbCXTf5tg11mvhYdufZbLUr11XEi/k4KHexUxWSY8DBCby7AU8E3eUhfzVkYZgR6H/agF8C3KNqCeHLIIRR7oEr0XXsixy9P1jH/doJLF2nPXbIlw5y1aC6t4eROW1pduaLs/7b6NEqFiWrWpBzaXuaOy4Nfe6bRfqGwzSXBJZhnF8y9oUhcnzOyM9pI7wCWP0LSkyy1iFWWwsFp8LeKLfd4doRyTLRacAAAAASUVORK5CYII=)}.folded.svelte-fuismw .big-point.svelte-fuismw::before{animation:svelte-fuismw-rotate 2s linear infinite}.big-point.svelte-fuismw.svelte-fuismw::after{position:absolute;width:1rem;height:1rem;background-image:var(--iconUrl)}.small-point.svelte-fuismw.svelte-fuismw::before{content:'';display:block;position:absolute;pointer-events:none;width:0.25rem;height:0.25rem;border-radius:100%;background-color:white}.folded.svelte-fuismw .big-point.svelte-fuismw{opacity:1;scale:1}.unfolded.svelte-fuismw .big-point.svelte-fuismw{opacity:0;scale:0}.folded.svelte-fuismw .small-point.svelte-fuismw{opacity:0;scale:6}.unfolded.svelte-fuismw .small-point.svelte-fuismw{opacity:1;scale:1}@keyframes svelte-fuismw-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes svelte-fuismw-breathing{0%{transform:scale(1)}25%{transform:scale(0.9)}50%{transform:scale(1)}}")}function hm(o){let t,e,n,s,r,a,l;return e=new ve({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),n=i.space(),s=i.element("div"),r=i.space(),a=i.element("div"),i.attr(s,"class","small-point svelte-fuismw"),i.set_style(s,"transition-delay",o[3]?o[2]+"ms":"0ms",!1),i.attr(a,"class","big-point svelte-fuismw"),i.set_style(a,"--iconUrl","url("+o[1]+")"),i.set_style(a,"transition-delay",o[3]?o[2]+"ms":"0ms",!1),i.attr(t,"class","point svelte-fuismw"),i.toggle_class(t,"folded",o[3]),i.toggle_class(t,"unfolded",o[0])},m(c,d){i.insert(c,t,d),i.mount_component(e,t,null),i.append(t,n),i.append(t,s),i.append(t,r),i.append(t,a),l=!0},p(c,[d]){d&12&&i.set_style(s,"transition-delay",c[3]?c[2]+"ms":"0ms",!1),(!l||d&2)&&i.set_style(a,"--iconUrl","url("+c[1]+")"),d&12&&i.set_style(a,"transition-delay",c[3]?c[2]+"ms":"0ms",!1),d&8&&i.toggle_class(t,"folded",c[3]),d&1&&i.toggle_class(t,"unfolded",c[0])},i(c){l||(i.transition_in(e.$$.fragment,c),l=!0)},o(c){i.transition_out(e.$$.fragment,c),l=!1},d(c){c&&i.detach(t),i.destroy_component(e)}}}function fm(o,t,e){let n,{unfolded:s}=t,{iconUrl:r}=t,{foldDelay:a=800}=t;return o.$$set=l=>{"unfolded"in l&&e(0,s=l.unfolded),"iconUrl"in l&&e(1,r=l.iconUrl),"foldDelay"in l&&e(2,a=l.foldDelay)},o.$$.update=()=>{o.$$.dirty&1&&e(3,n=!s)},[s,r,a,n]}class mm extends i.SvelteComponent{constructor(t){super(),i.init(this,t,fm,hm,i.safe_not_equal,{unfolded:0,iconUrl:1,foldDelay:2},um)}}function pm(o){i.append_styles(o,"svelte-jzvcn0",".point.svelte-jzvcn0.svelte-jzvcn0{pointer-events:none;width:1rem;height:1rem}.small-point.svelte-jzvcn0.svelte-jzvcn0,.big-point.svelte-jzvcn0.svelte-jzvcn0{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all 500ms}.big-point.svelte-jzvcn0.svelte-jzvcn0::before,.big-point.svelte-jzvcn0.svelte-jzvcn0::after{content:'';display:block;position:absolute;background-size:contain;background-repeat:no-repeat;pointer-events:none}.big-point.svelte-jzvcn0.svelte-jzvcn0::before{width:100%;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAqFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8j1z1tAAAAOHRSTlMABgoNFBsYIhEmHyksMoJ6RZ5aXzpnU03AtqaZjLuGN+zcifnW0cjEqnA+lOZzbWLhkH6i8rGuagnOwPMAAAQOSURBVFjDrZiHctpAEIYXYzvGOvXeUe+IYuD93ywrJAIhFJX8M8zoBHzz757utHvwTETJHJPfGQZfWJXILWCMPuqNbuu6vj+khrHjed40TWvFfQ2jvCl8nGha6lQCl7s07UqcUlfOZrOxVtKsN2a+0uJYK+ScEIqiFifhBSGSsnJ8f8u99cLMVnEUHTKXIOMX6vuk5gpphFYyhmHzHpzcDqNUJGgEER+oz5OaK8ShNcIdt+zx1ys7lhdqiDlRkPF+JaSdWIhasaz6lLPQ1qFDIwYpDeTr62veCS8bGLIQRSsVK78/5nDeOlYIYhovHeOtU0dDXw2KSGiKesQRyjJ10Q66QcyZMTvpTEMUumpMieyWvs9ZLZcmodAOYlorsysBflpjiEJTFBEY5+7sicul34T1iak5U25momN9Ya4wPCT57r8cteW0dk4YuKMTqjXVkgjciFr+8B3ngnmM6kii5X/efB0F+jUHnuiatLJY+Et84EnUNacfiaKZjQhX4oJAwPlqOB3mJaoh4dxxG5Nc3Q8DkywunP6kBalN53J7G3g0JqiNC3qpjQ7TRPvmn2U3L3/kU4JaTn/SKU0qb76dDf0kGNjHJbD+wX1gcMxO6fZVrzXUcQaROkvt3+pljIYugQ0LDi1ZBgeN9JK9MjTCkmgwgPou19I5QzBI5yy5RvqOw6xMMbKzoeGWmnQfBBwa6woj6wyNsYSx7R0chWuOwsjOqR6aboyNyvcpgOsl3ZzNhoNm3bztdAK1x5NuzmCwunkjjq4AEzKXFI1NUmVnwIfydJBoW7CPVAR1uR6XbVwlmgF2xF1yPTbbubYHLZamgyTNhiSmp4PoJIEk+R+gOAFb+x+hxRoctHw6iItsMLT/Mf3RHixbnP5AyhEPmZ1NB+E6A0V3pi9aPqyB6Pz0bSTxXID0kE/d2DgvxBFzEKdutdXawJGSMlM3/3Sd4fA93bnTXkfSuvwGFGOI016QbKm3VdbOn/bKjpd1e6Pg1SlFhPzjdXWNwjNTyprkhz33i4Wpji600FA5h05q4Ywv/bxge7mNRe7YYtQMwqt/kMLixpXHQhBwcCXBYukxBbvkBTv4S5V/HNNC6EF089tPxxGHNzV8sKTgRhSzVYa2Wf5yeadHphlWGdb4IUeEO5K2SHrUiqJuW9GiLFdwVzRbCXTf5tg11mvhYdufZbLUr11XEi/k4KHexUxWSY8DBCby7AU8E3eUhfzVkYZgR6H/agF8C3KNqCeHLIIRR7oEr0XXsixy9P1jH/doJLF2nPXbIlw5y1aC6t4eROW1pduaLs/7b6NEqFiWrWpBzaXuaOy4Nfe6bRfqGwzSXBJZhnF8y9oUhcnzOyM9pI7wCWP0LSkyy1iFWWwsFp8LeKLfd4doRyTLRacAAAAASUVORK5CYII=);background-size:contain;background-repeat:no-repeat}.small-point.svelte-jzvcn0.svelte-jzvcn0::before{content:'';display:block;position:absolute;pointer-events:none;width:0.375rem;height:0.375rem;border-radius:100%;background-color:white}.unfolded.svelte-jzvcn0 .big-point.svelte-jzvcn0{opacity:0;transform:scale(0)}.folded.svelte-jzvcn0 .big-point.svelte-jzvcn0{opacity:1;transform:scale(1)}.unfolded.svelte-jzvcn0 .small-point.svelte-jzvcn0{transform:scale(0.6)}.folded.svelte-jzvcn0 .small-point.svelte-jzvcn0{transform:scale(1)}")}function gm(o){let t,e,n,s,r,a,l;return e=new ve({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),n=i.space(),s=i.element("div"),r=i.space(),a=i.element("div"),i.attr(s,"class","small-point svelte-jzvcn0"),i.set_style(s,"transition-delay",o[2]?o[1]+"ms":"0ms",!1),i.attr(a,"class","big-point svelte-jzvcn0"),i.set_style(a,"transition-delay",o[2]?o[1]+"ms":"0ms",!1),i.attr(t,"class","point svelte-jzvcn0"),i.toggle_class(t,"unfolded",o[0]),i.toggle_class(t,"folded",o[2])},m(c,d){i.insert(c,t,d),i.mount_component(e,t,null),i.append(t,n),i.append(t,s),i.append(t,r),i.append(t,a),l=!0},p(c,[d]){d&6&&i.set_style(s,"transition-delay",c[2]?c[1]+"ms":"0ms",!1),d&6&&i.set_style(a,"transition-delay",c[2]?c[1]+"ms":"0ms",!1),d&1&&i.toggle_class(t,"unfolded",c[0]),d&4&&i.toggle_class(t,"folded",c[2])},i(c){l||(i.transition_in(e.$$.fragment,c),l=!0)},o(c){i.transition_out(e.$$.fragment,c),l=!1},d(c){c&&i.detach(t),i.destroy_component(e)}}}function Am(o,t,e){let n,{unfolded:s}=t,{foldDelay:r=800}=t;return o.$$set=a=>{"unfolded"in a&&e(0,s=a.unfolded),"foldDelay"in a&&e(1,r=a.foldDelay)},o.$$.update=()=>{o.$$.dirty&1&&e(2,n=!s)},[s,r,n]}class vm extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Am,gm,i.safe_not_equal,{unfolded:0,foldDelay:1},pm)}}function bm(o){i.append_styles(o,"svelte-8en2lj",".point-click-helper.svelte-8en2lj{position:absolute;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}")}function es(o){let t,e,n=o[0].contentType!==ge.Link&&ts(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,r){s[0].contentType!==ge.Link?n?(n.p(s,r),r&1&&i.transition_in(n,1)):(n=ts(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function ts(o){let t,e,n,s,r,a;const l=[wm,ym],c=[];function d(u,f){var h,p,g,A;return((p=(h=u[0].style)==null?void 0:h.point)==null?void 0:p.style)==="CustomIcon"&&((A=(g=u[0].style)==null?void 0:g.point)==null?void 0:A.iconUrl)?0:1}return n=d(o),s=c[n]=l[n](o),{c(){t=i.element("div"),e=i.space(),s.c(),r=i.empty(),i.attr(t,"class","point-click-helper svelte-8en2lj")},m(u,f){i.insert(u,t,f),i.insert(u,e,f),c[n].m(u,f),i.insert(u,r,f),a=!0},p(u,f){let h=n;n=d(u),n===h?c[n].p(u,f):(i.group_outros(),i.transition_out(c[h],1,1,()=>{c[h]=null}),i.check_outros(),s=c[n],s?s.p(u,f):(s=c[n]=l[n](u),s.c()),i.transition_in(s,1),s.m(r.parentNode,r))},i(u){a||(i.transition_in(s),a=!0)},o(u){i.transition_out(s),a=!1},d(u){u&&i.detach(t),u&&i.detach(e),c[n].d(u),u&&i.detach(r)}}}function ym(o){let t,e;return t=new vm({props:{unfolded:o[0].state.unfolded,foldDelay:o[1]}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&1&&(r.unfolded=n[0].state.unfolded),s&2&&(r.foldDelay=n[1]),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function wm(o){let t,e;return t=new mm({props:{iconUrl:o[0].style.point.iconUrl,unfolded:o[0].state.unfolded,foldDelay:o[1]}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&1&&(r.iconUrl=n[0].style.point.iconUrl),s&1&&(r.unfolded=n[0].state.unfolded),s&2&&(r.foldDelay=n[1]),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function Cm(o){var s,r,a;let t,e,n=((s=o[0].pointTagStyle)==null?void 0:s.leftPercent)&&((r=o[0].pointTagStyle)==null?void 0:r.topPercent)&&o[0].enabled!==!1&&o[0].state&&((a=o[0].temporaryState)==null?void 0:a.visible)!==!1&&es(o);return{c(){n&&n.c(),t=i.empty()},m(l,c){n&&n.m(l,c),i.insert(l,t,c),e=!0},p(l,[c]){var d,u,f;((d=l[0].pointTagStyle)==null?void 0:d.leftPercent)&&((u=l[0].pointTagStyle)==null?void 0:u.topPercent)&&l[0].enabled!==!1&&l[0].state&&((f=l[0].temporaryState)==null?void 0:f.visible)!==!1?n?(n.p(l,c),c&1&&i.transition_in(n,1)):(n=es(l),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(l){e||(i.transition_in(n),e=!0)},o(l){i.transition_out(n),e=!1},d(l){n&&n.d(l),l&&i.detach(t)}}}function Em(o,t,e){let n,{tag:s}=t;return o.$$set=r=>{"tag"in r&&e(0,s=r.tag)},o.$$.update=()=>{var r,a;o.$$.dirty&1&&e(1,n=(a=(r=s.style)==null?void 0:r.foldedPointDelay)!=null?a:s.contentType===ge.Marketing?600:void 0)},[s,n]}class Pm extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Em,Cm,i.safe_not_equal,{tag:0},bm)}}function Im(o){i.append_styles(o,"svelte-1vzhbu2",".wrapper.svelte-1vzhbu2{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}.point.svelte-1vzhbu2{-webkit-tap-highlight-color:transparent;position:absolute;transform:translate(-50%, -50%);left:50%;top:50%}")}function ns(o){let t,e;return t=new tr({props:{mediaStore:o[4],withAnimation:o[0],tag:re(o[1]),hooks:o[2],state:o[3],temporaryState:o[5]}}),{c(){i.create_component(t.$$.fragment)},m(n,s){i.mount_component(t,n,s),e=!0},p(n,s){const r={};s&16&&(r.mediaStore=n[4]),s&1&&(r.withAnimation=n[0]),s&2&&(r.tag=re(n[1])),s&4&&(r.hooks=n[2]),s&8&&(r.state=n[3]),s&32&&(r.temporaryState=n[5]),t.$set(r)},i(n){e||(i.transition_in(t.$$.fragment,n),e=!0)},o(n){i.transition_out(t.$$.fragment,n),e=!1},d(n){i.destroy_component(t,n)}}}function is(o){let t,e,n,s,r;return e=new Pm({props:{tag:o[1]}}),{c(){t=i.element("div"),i.create_component(e.$$.fragment),i.attr(t,"class","point svelte-1vzhbu2")},m(a,l){i.insert(a,t,l),i.mount_component(e,t,null),n=!0,s||(r=i.listen(t,"click",i.stop_propagation(o[11])),s=!0)},p(a,l){const c={};l&2&&(c.tag=a[1]),e.$set(c)},i(a){n||(i.transition_in(e.$$.fragment,a),n=!0)},o(a){i.transition_out(e.$$.fragment,a),n=!1},d(a){a&&i.detach(t),i.destroy_component(e),s=!1,r()}}}function km(o){var l,c;let t,e,n,s,r=o[1].dimensionType===Ae.Two&&ns(o),a=o[1].pointType===fe.PointTag&&((c=(l=o[1].style)==null?void 0:l.point)==null?void 0:c.style)!=="noPoint"&&is(o);return{c(){t=i.element("div"),r&&r.c(),e=i.space(),a&&a.c(),i.attr(t,"class","wrapper svelte-1vzhbu2"),i.attr(t,"data-id",n=o[1].id),i.toggle_class(t,"hide",o[10]),i.toggle_class(t,"unfolded",o[6]),i.set_style(t,"left",o[9],!1),i.set_style(t,"top",o[8],!1),i.set_style(t,"z-index",o[7],!1)},m(d,u){i.insert(d,t,u),r&&r.m(t,null),i.append(t,e),a&&a.m(t,null),s=!0},p(d,[u]){var f,h;d[1].dimensionType===Ae.Two?r?(r.p(d,u),u&2&&i.transition_in(r,1)):(r=ns(d),r.c(),i.transition_in(r,1),r.m(t,e)):r&&(i.group_outros(),i.transition_out(r,1,1,()=>{r=null}),i.check_outros()),d[1].pointType===fe.PointTag&&((h=(f=d[1].style)==null?void 0:f.point)==null?void 0:h.style)!=="noPoint"?a?(a.p(d,u),u&2&&i.transition_in(a,1)):(a=is(d),a.c(),i.transition_in(a,1),a.m(t,null)):a&&(i.group_outros(),i.transition_out(a,1,1,()=>{a=null}),i.check_outros()),(!s||u&2&&n!==(n=d[1].id))&&i.attr(t,"data-id",n),u&1024&&i.toggle_class(t,"hide",d[10]),u&64&&i.toggle_class(t,"unfolded",d[6]),u&512&&i.set_style(t,"left",d[9],!1),u&256&&i.set_style(t,"top",d[8],!1),u&128&&i.set_style(t,"z-index",d[7],!1)},i(d){s||(i.transition_in(r),i.transition_in(a),s=!0)},o(d){i.transition_out(r),i.transition_out(a),s=!1},d(d){d&&i.detach(t),r&&r.d(),a&&a.d()}}}function xm(o,t,e){let n,s,r,a,l,c,{withAnimation:d=!1}=t,{tag:u}=t,{hooks:f}=t,{state:h}=t,{mediaStore:p}=t,{temporaryState:g}=t,A,b=!1;function v(w){A!==void 0&&clearTimeout(A),b=!0,A=setTimeout(()=>{b=!1},800)}const y=w=>{b||f.emit("click",{event:w,target:"TagPoint",tag:u})};return o.$$set=w=>{"withAnimation"in w&&e(0,d=w.withAnimation),"tag"in w&&e(1,u=w.tag),"hooks"in w&&e(2,f=w.hooks),"state"in w&&e(3,h=w.state),"mediaStore"in w&&e(4,p=w.mediaStore),"temporaryState"in w&&e(5,g=w.temporaryState)},o.$$.update=()=>{var w,I,k,C;o.$$.dirty&2&&e(12,n=(w=u.state)==null?void 0:w.visible),o.$$.dirty&4096&&e(10,s=!n),o.$$.dirty&2&&e(6,r=(I=u.state)==null?void 0:I.unfolded),o.$$.dirty&2&&e(9,a=((k=u.pointTagStyle)==null?void 0:k.leftPercent)+"%"),o.$$.dirty&2&&e(8,l=((C=u.pointTagStyle)==null?void 0:C.topPercent)+"%"),o.$$.dirty&2&&e(7,c=u.contentType===ge.Link?1:0),o.$$.dirty&64&&v()},[d,u,f,h,p,g,r,c,l,a,s,y,n]}class Dm extends i.SvelteComponent{constructor(t){super(),i.init(this,t,xm,km,i.safe_not_equal,{withAnimation:0,tag:1,hooks:2,state:3,mediaStore:4,temporaryState:5},Im)}}function Sm(o){i.append_styles(o,"svelte-1eci49s",".tag--container.svelte-1eci49s{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tag.hide.svelte-1eci49s{display:none}.withAnimation.svelte-1eci49s{transition:opacity 0.3s linear}.tag--container.hide.svelte-1eci49s{opacity:0;pointer-events:none}.tag--container.hide.svelte-1eci49s *{pointer-events:none}")}function os(o,t,e){const n=o.slice();return n[6]=t[e],n}function ss(o){let t,e=[],n=new Map,s,r=o[1];const a=l=>l[6].id;for(let l=0;l<r.length;l+=1){let c=os(o,r,l),d=a(c);n.set(d,e[l]=rs(d,c))}return{c(){t=i.element("div");for(let l=0;l<e.length;l+=1)e[l].c();i.attr(t,"class","tag--container svelte-1eci49s"),i.toggle_class(t,"hide",!o[3].visible||!o[5].visible),i.toggle_class(t,"withAnimation",o[0])},m(l,c){i.insert(l,t,c);for(let d=0;d<e.length;d+=1)e[d].m(t,null);s=!0},p(l,c){c&63&&(r=l[1],i.group_outros(),e=i.update_keyed_each(e,c,a,1,l,r,n,t,i.outro_and_destroy_block,rs,null,os),i.check_outros()),c&40&&i.toggle_class(t,"hide",!l[3].visible||!l[5].visible),c&1&&i.toggle_class(t,"withAnimation",l[0])},i(l){if(!s){for(let c=0;c<r.length;c+=1)i.transition_in(e[c]);s=!0}},o(l){for(let c=0;c<e.length;c+=1)i.transition_out(e[c]);s=!1},d(l){l&&i.detach(t);for(let c=0;c<e.length;c+=1)e[c].d()}}}function rs(o,t){let e,n,s,r;const a=[{tag:t[6],hooks:t[2],state:t[3],mediaStore:t[4],temporaryState:t[5],withAnimation:t[0]}];let l={};for(let c=0;c<a.length;c+=1)l=i.assign(l,a[c]);return n=new Dm({props:l}),{key:o,first:null,c(){var c,d,u;e=i.element("div"),i.create_component(n.$$.fragment),s=i.space(),i.attr(e,"class","tag svelte-1eci49s"),i.toggle_class(e,"hide",!((c=t[6].pointTagStyle)!=null&&c.leftPercent)||!((d=t[6].pointTagStyle)!=null&&d.topPercent)||t[6].enabled===!1||!t[6].state||((u=t[6].temporaryState)==null?void 0:u.visible)===!1),this.first=e},m(c,d){i.insert(c,e,d),i.mount_component(n,e,null),i.append(e,s),r=!0},p(c,d){var f,h,p;t=c;const u=d&63?i.get_spread_update(a,[{tag:t[6],hooks:t[2],state:t[3],mediaStore:t[4],temporaryState:t[5],withAnimation:t[0]}]):{};n.$set(u),d&2&&i.toggle_class(e,"hide",!((f=t[6].pointTagStyle)!=null&&f.leftPercent)||!((h=t[6].pointTagStyle)!=null&&h.topPercent)||t[6].enabled===!1||!t[6].state||((p=t[6].temporaryState)==null?void 0:p.visible)===!1)},i(c){r||(i.transition_in(n.$$.fragment,c),r=!0)},o(c){i.transition_out(n.$$.fragment,c),r=!1},d(c){c&&i.detach(e),i.destroy_component(n)}}}function Lm(o){let t,e,n=o[3].enabled&&ss(o);return{c(){n&&n.c(),t=i.empty()},m(s,r){n&&n.m(s,r),i.insert(s,t,r),e=!0},p(s,[r]){s[3].enabled?n?(n.p(s,r),r&8&&i.transition_in(n,1)):(n=ss(s),n.c(),i.transition_in(n,1),n.m(t.parentNode,t)):n&&(i.group_outros(),i.transition_out(n,1,1,()=>{n=null}),i.check_outros())},i(s){e||(i.transition_in(n),e=!0)},o(s){i.transition_out(n),e=!1},d(s){n&&n.d(s),s&&i.detach(t)}}}function _m(o,t,e){let{withAnimation:n=!1}=t,{tags:s=[]}=t,{hooks:r}=t,{state:a}=t,{mediaStore:l}=t,{temporaryState:c}=t;return o.$$set=d=>{"withAnimation"in d&&e(0,n=d.withAnimation),"tags"in d&&e(1,s=d.tags),"hooks"in d&&e(2,r=d.hooks),"state"in d&&e(3,a=d.state),"mediaStore"in d&&e(4,l=d.mediaStore),"temporaryState"in d&&e(5,c=d.temporaryState)},[n,s,r,a,l,c]}class zm extends i.SvelteComponent{constructor(t){super(),i.init(this,t,_m,Lm,i.safe_not_equal,{withAnimation:0,tags:1,hooks:2,state:3,mediaStore:4,temporaryState:5},Sm)}}const Mm={globalConfig:{initialState:{},visibleConfig:{visibleDistance:{max:5},angleRange:{min:-45,max:45}},unfoldedConfig:{autoUnfold:{strategy:"MinimumDistance"}},tag3DConfig:{ratio:.0035}},contentTypeConfig:{"Any-Link-Any":{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},"Any-Marketing-Any":{unfoldedConfig:void 0},"3D-MediaPlane-PlaneTag":{unfoldedConfig:{keep:"unfolded"},visibleConfig:{alwaysShowWhenMovePano:!0,angleRange:void 0,visibleDistance:void 0}}}};class Tm extends Xt{constructor(e){super(e);m(this,"tagCacheByPanoIndex",{})}getCaches({panoIndex:e,id:n,key:s}){var d,u,f,h;const{five:r}=this,a=(d=r.panoIndex)!=null?d:e;if(a===void 0)throw new Error(`TagCacheController getCache(): fivePanoIndex is ${a}`);const l=`${(f=(u=r.work)==null?void 0:u.workCode)!=null?f:r.model.uuid}-${a}`;let c=this.tagCacheByPanoIndex[l];if(c||(c=new Map,this.tagCacheByPanoIndex[l]=c),n===void 0)return c;if(s===void 0){const p=c.get(n);return p||(c.set(n,{}),c.get(n))}return(h=c.get(n))==null?void 0:h[s]}clearCache(){this.tagCacheByPanoIndex={}}}class jm extends Tm{constructor(e){super(e);m(this,"tags",[]);m(this,"config",Mm);m(this,"raycaster",new P.Raycaster)}getTagById(e){const n=this.tags.find(s=>s.id===e);if(!n){console.error(`getTagById(): tag is ${n}, id is ${e}`);return}return n}changeConfig(e,n=!0){n?this.config=Ne.default({},this.config,e):this.config=e,this.clearCache()}changeGlobalConfig(e,n=!0){n?this.config.globalConfig=Ne.default({},this.config.globalConfig,e):this.config.globalConfig=e,this.clearCache()}changeContentTypeConfig(e,n,s=!0){this.config.contentTypeConfig||(this.config.contentTypeConfig={}),s?this.config.contentTypeConfig[e]=Ne.default({},this.config.contentTypeConfig[e],n):this.config.contentTypeConfig[e]=n,this.clearCache()}getVisibleByPanoIndex(e,n){var a;const s=this.getCaches({panoIndex:n,id:e.id}),r=(a=this.five.panoIndex)!=null?a:n;if(s.visible!==void 0)return s.visible;{const l=(()=>{var u,f,h,p,g;const c=(u=this.getTagConfig(e).visibleConfig)!=null?u:{},d=this.getDistance(e);if(typeof c=="function")return c(this.five,{tag:e,distance:d});if(c.keep==="hidden")return!1;if(c.keep==="visible")return!0;if(c.visiblePanoIndex!==void 0&&(r===void 0||!c.visiblePanoIndex.includes(r))||c.visibleDistance!==void 0&&c.visibleDistance!=="unLimited"&&kt(d,c.visibleDistance)===!1)return!1;if(((f=c.intersectRaycaster)==null?void 0:f.enabled)!==!1){if(r===void 0)return!1;const A=(h=this.five.work.observers[r])==null?void 0:h.position;if(A===void 0)throw new Error(`getVisible(): observerPosition is ${A}`);const b=It(e.position).sub(A).normalize();this.raycaster.set(A,b);const[v]=this.five.model.intersectRaycaster(this.raycaster),y=(g=(p=c.intersectRaycaster)==null?void 0:p.distanceAccuracy)!=null?g:.01;if(v&&v.distance+y<d)return!1}return!(c.angleRange&&e.dimensionType===Ae.Three&&kt(this.getAngle(e),c.angleRange)===!1)})();return s.visible=l,s.visible}}getUnfoldedByPanoIndex(e,n){if(!this.getVisibleByPanoIndex(e))return;const r=this.getCaches({panoIndex:n,id:e.id});if(r.unfolded!==void 0)return r.unfolded;{const a=this.getTagConfig(e).unfoldedConfig;if(!a)return;const l=(()=>{const d=this.getDistance(e);if(typeof a=="function")return a(this.five,{tag:e,distance:d});if(a.keep==="folded")return!1;if(a.keep==="unfolded")return!0;if(a.disableUnfold===!0)return!1;if(a.disableFold===!0)return!0;if(a.unfoldDistance&&kt(d,a.unfoldDistance)===!1)return!1})();r.unfolded=l;const c=this.getUnfoldedByCamera(e);return c!==void 0?c:r.unfolded}}getUnfoldedByCamera(e){return this.getVisibleByPanoIndex(e)?(()=>{var l;const r=this.getDistance(e),a=this.getTagConfig(e).unfoldedConfig;if(!!a){if(typeof a=="function")return a(this.five,{tag:e,distance:r});if(a.keep==="folded")return!1;if(a.keep==="unfolded")return!0;if(a.disableUnfold===!0)return!1;if(a.disableFold===!0)return!0;if(a.autoUnfold===void 0)return;if(a.autoUnfold.strategy==="ScreenPostion"){const c=this.getTagProject(e);if(c&&kt(c.x,a.autoUnfold.autoUnfoldProjectX)===!1)return!1}if(a.autoUnfold.strategy==="MinimumDistance"){const u=this.filterPointTag().filter(h=>this.getVisibleByPanoIndex(h)).filter(h=>{const p=this.getTagProject(h);if(!p)return!1;const{x:g,y:A,z:b}=p;return!(Math.abs(b)>1||Math.abs(g)>1||Math.abs(A)>1)}).filter(h=>{var g;const p=this.getTagConfig(h).unfoldedConfig;return typeof p=="object"&&((g=p.autoUnfold)==null?void 0:g.strategy)==="MinimumDistance"}).map(h=>({id:h.id,distance:this.getDistance(h)})).filter(h=>h.distance!==void 0).sort((h,p)=>h.distance-p.distance).findIndex(h=>h.id===e.id);if(u===-1||u<=((l=a.autoUnfold.maxNumber)!=null?l:1)-1===!1)return!1}return!0}})():void 0}getDistance(e,n){var a,l,c;const s=(a=this.five.panoIndex)!=null?a:n;if(s===void 0)throw new Error(`getDistance(): fivePanoIndex is ${s}`);const r=this.getCaches({panoIndex:n,id:e.id});if(r.distance!==void 0)return r.distance;{const d=(c=(l=this.five.work)==null?void 0:l.observers[s])==null?void 0:c.position;if(d===void 0)throw new Error(`getDistance(): observerPosition is ${d}`);const u=(()=>e.pointType===fe.PointTag?De(e==null?void 0:e.position):It(e.position))(),f=d.distanceTo(u);return r.distance=f,f}}getAngle(e,n){var a,l,c;const s=(a=this.five.panoIndex)!=null?a:n;if(s===void 0)throw new Error(`getDistance(): fivePanoIndex is ${s}`);const r=this.getCaches({panoIndex:n,id:e.id});if(r.angle!==void 0)return r.angle;{const d=(c=(l=this.five.work)==null?void 0:l.observers[s])==null?void 0:c.position;if(d===void 0)throw new Error(`getAngleRange(): observerPosition is ${d}`);const u=(()=>e.pointType===fe.PointTag?ct(e.normal):Vs(e.position))();if(!u)return;const f=new P.Vector3().copy(d).sub(It(e.position)),h=u.angleTo(f)*180/Math.PI;return r.angle=h,r.angle}}getTagConfig(e){var r;if(!e)return(r=this.config.globalConfig)!=null?r:{};const n={};return this.config.contentTypeConfig&&Object.keys(this.config.contentTypeConfig).forEach(a=>{const l=a;if(n[l])return;const c=l.split("-"),[d="Any",u="Any",f="Any"]=c||[];(e.dimensionType===d||d==="Any")&&(e.contentType===u||u==="Any")&&(e.pointType===f||f==="Any")&&(n[l]=this.config.contentTypeConfig[l])}),Ne.default({},this.config.globalConfig,...Object.values(n),e.config)}canBe(e,n){const s=this.getTagConfig(n);if(!s||typeof s!="object")return!0;if(e==="show"||e==="hide"){if(!s.visibleConfig||typeof s.visibleConfig!="object")return!0;if(e==="show"&&s.visibleConfig.keep==="hidden"||e==="hide"&&(s.visibleConfig.keep==="visible"||s.visibleConfig.alwaysShowWhenMovePano))return!1}if(e==="fold"||e==="unfold"){if(!s.unfoldedConfig||typeof s.unfoldedConfig!="object")return!0;if(e==="fold"&&(s.unfoldedConfig.disableFold||s.unfoldedConfig.keep==="unfolded")||e==="unfold"&&(s.unfoldedConfig.disableUnfold||s.unfoldedConfig.keep==="folded"))return!1}return!0}setPointTagPosition(){const e=this.filterPointTag();e.length!==0&&e.forEach(n=>{var r;if(!((r=n.state)!=null&&r.visible)){n.pointTagStyle=void 0;return}const s=this.getTagProject(n);if(!s){n.pointTagStyle=void 0;return}n.pointTagStyle={leftPercent:(s.x+1)/2*100,topPercent:(-s.y+1)/2*100}})}setVisibleByPanoIndex(){this.tags.forEach(e=>{const n=this.getVisibleByPanoIndex(e);e.state&&(e.state.visible=n)})}setUnfoldedByPanoIndex(){this.tags.forEach(e=>{const n=this.getUnfoldedByPanoIndex(e);if(!!e.state&&(n!==void 0&&(e.state.unfolded=n),n&&!e.state.visible)){const s=this.getTagConfig(e);typeof s.unfoldedConfig=="object"&&s.unfoldedConfig.autoUnfoldWhenHide!==!1&&(e.state.unfolded=!1)}})}getTagProject(e){if(!this.getVisibleByPanoIndex(e))return;const s=It(e.position),{x:r,y:a,z:l}=s.project(this.five.camera);if(!(l>1))return{x:r,y:a,z:l}}filterPointTag(){return this.tags.filter(e=>e.pointType===fe.PointTag)}filterTag2D(){return this.tags.filter(e=>e.dimensionType===Ae.Two)}filter3DPointTag(){return this.tags.filter(e=>e.dimensionType===Ae.Three&&e.pointType===fe.PointTag)}filter3DTag(){return this.tags.filter(e=>e.dimensionType===Ae.Three)}filterPlaneTag(){return this.tags.filter(e=>e.dimensionType===Ae.Three&&e.pointType===fe.PlaneTag)}}const nr="1.2.6",En=`DnalogelPlugin-PanoTagPlugin@${nr}`,Bm=!1,Qm=o=>`${En}--${o}`;class ir extends jm{constructor(e,n){super(e);m(this,"version",nr);m(this,"state",{enabled:!0,visible:!0});m(this,"params");m(this,"debug");m(this,"css3DRenderPlugin");m(this,"TagContainerSvelte");m(this,"temporaryState",{visible:!0});m(this,"mediaStore",kn.writable({currentMediaUrl:""}));m(this,"store",{disposers:[],disposed:!1,resizeObserverDisposerAdding:!1,css3DRenderDisposer:new Map});m(this,"staticUrl");m(this,"disposedErrorLog",()=>{console.error(`${En} is disposed`)});this.params=j({debug:!1,mergePluginDefaultConfigToLoadDataConfig:!1,config:this.config,staticConfig:{host:"vrlab-static.ljcdn.com"}},n),this.debug=this.params.debug,this.config=this.params.config,this.staticUrl=(()=>{var r;const s=this.params.staticConfig;if(typeof s=="string")return s;{const a=s.protocol?s.protocol+":":"",l=(r=s.host)!=null?r:"vrlab-static.ljcdn.com",c=s.port?":"+s.port:"";return`${a}//${l}${c}`}})(),Object.assign(window,{__PANOTAGPLUGIN_DEBUG__:this})}load(e,n){var s,r;this.clearTags(),console.log(En,"load:",{data:e}),this.params.mergePluginDefaultConfigToLoadDataConfig?this.config=Ne.default({},this.config,{globalConfig:(s=e.globalConfig)!=null?s:{},contentTypeConfig:(r=e.contentTypeConfig)!=null?r:{}}):(e.globalConfig&&(this.config.globalConfig=e.globalConfig),e.contentTypeConfig&&(this.config.contentTypeConfig=e.contentTypeConfig)),this.addTag(e.tagList,n),this.debug&&ph(this.five,this.tags)}addTag(e,n){const r=(Array.isArray(e)?e:[e]).map(a=>{const l=this.getTagConfig(a);return V(j({},a),{state:j({visible:void 0,unfolded:Bm},l.initialState),hooks:new ee.Subscribe,clickable:l.clickable})}).filter(a=>a.position);this.tags.push(...r),gh(this.five,()=>{var a,l,c;this.store.eventListenerDisposer&&((l=(a=this.store).eventListenerDisposer)==null||l.call(a)),this.state.enabled&&(this.store.eventListenerDisposer=this.addEventListener()),this.addResizeListener(),this.checkPanelTag(),this.setVisibleAndUnfolded({withAnimation:(c=n==null?void 0:n.withAnimation)!=null?c:!0}).then(()=>this.updateRenderAllTags()),this.updateRenderAllTags()})}clearTags(){this.tags=[],this.clearCache(),this.disposeAllCSS3DContainer(),this.updateRenderAllTags()}show(e){return F(this,null,function*(){const{userAction:n=!0,withAnimation:s=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!0},{userAction:n,visibleWithAnimation:s}),this.hooks.emit("show",{userAction:n,withAnimation:s})})}hide(e){return F(this,null,function*(){const{userAction:n=!0,withAnimation:s=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!1},{userAction:n,visibleWithAnimation:s}),this.hooks.emit("hide",{userAction:n,withAnimation:s})})}enable(e){const{userAction:n=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!0},{userAction:n}),this.hooks.emit("enable",{userAction:n})}disable(e){const{userAction:n=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!1},{userAction:n}),this.hooks.emit("disable",{userAction:n})}dispose(){var e,n,s,r,a,l;this.disposeAllCSS3DContainer(),(e=this.TagContainerSvelte)==null||e.$destroy(),this.filter3DTag().forEach(c=>{var d;return(d=c.tag3DContentSvelte)==null?void 0:d.svelteApp.$destroy()}),this.tags=[],(n=this.store.disposers)==null||n.forEach(c=>c==null?void 0:c()),this.store.disposers=[],this.store.disposed=!0,(r=(s=this.store).eventListenerDisposer)==null||r.call(s),this.store.eventListenerDisposer=void 0,(l=(a=this.store).resizeObserverDisposer)==null||l.call(a),this.store.resizeObserverDisposer=void 0,this.store.resizeObserverDisposerAdding=!1,this.clearCache(),this.hooks.emit("dispose")}setState(e,n){if(this.store.disposed)return this.disposedErrorLog();const{userAction:s=!0,visibleWithAnimation:r=!1}=n,a=j({},this.state);this.state=Object.assign(this.state,e),this.store.visibleWithAnimation=r,a.visible!==this.state.visible&&(e.visible?this.handleShow():this.handleHide()),a.enabled!==this.state.enabled&&(e.enabled?this.handleEnable():this.handleDisable()),this.hooks.emit("stateChange",{state:this.state,prevState:a,userAction:s})}changeTagNormalById(e,n){const s=this.getTagById(e);!s||!s.tag3DContentSvelte||(s.tag3DContentSvelte.currentNormal=De(n),this.updateRenderPlaneTag())}changeDataById(e,n,s=!0){const r=this.getTagById(e);!r||(s?r.data=Ne.default({},r.data,n):Object.assign(r.data,n),this.checkPanelTag(),this.updateRenderAllTags())}changeTagById(e,n,s=!0){const r=this.getTagById(e);!n||(s?Ne.default(r,n):Object.assign(r,n),(r==null?void 0:r.tag3DContentSvelte)&&(n==null?void 0:n.normal)&&(r.tag3DContentSvelte.currentNormal=De(n.normal)),this.updateRenderAllTags(),this.checkPanelTag())}destroyTagById(e){(Array.isArray(e)?e:[e]).forEach(s=>{const r=this.tags.findIndex(a=>a.id===s);r!==-1&&this.tags.splice(r,1)}),this.updateRenderAllTags()}pauseCurrentMedia(){this.mediaStore.set({currentMediaUrl:""})}setVisibleAndUnfolded(){return F(this,arguments,function*({withAnimation:e}={withAnimation:!1}){return this.setVisibleByPanoIndex(),e?new Promise((n,s)=>{setTimeout(()=>{this.setUnfoldedByPanoIndex(),n()},10)}):(this.setUnfoldedByPanoIndex(),Promise.resolve())})}handleShow(){this.state.visible=!0,this.updateTagContainerVisible()}handleHide(){this.state.visible=!1,this.updateTagContainerVisible()}handleEnable(){this.state.enabled=!0,this.store.eventListenerDisposer=this.addEventListener(),this.updateRenderAllTags()}handleDisable(){var e,n,s;this.state.enabled=!1,(n=(e=this.store).eventListenerDisposer)==null||n.call(e),(s=this.TagContainerSvelte)==null||s.$set({tags:[]}),this.filter3DTag().forEach(r=>{var a;(a=r.tag3DContentSvelte)==null||a.svelteApp.$destroy(),r.tag3DContentSvelte=void 0})}addEventListener(){const{five:e,hooks:n}=this,s=this.handleFiveWantsMoveToPano.bind(this),r=this.handleFiveModeChange.bind(this),a=this.handleFiveCameraUpdate.bind(this),l=this.handleFiveCameraUpdateDebounce(),c=this.handleFivePanoArrived.bind(this),d=this.clickhandler.bind(this);return e.on("wantsMoveToPano",s),e.on("modeChange",r),e.on("cameraUpdate",a),e.on("cameraUpdate",l),e.on("panoArrived",c),n.on("click",d),()=>{e.off("wantsMoveToPano",s),e.off("modeChange",r),e.off("cameraUpdate",a),e.off("cameraUpdate",l),e.off("panoArrived",c),n.off("click",d),this.store.eventListenerDisposer=void 0}}addResizeListener(){if(!this.store.resizeObserverDisposer&&!this.store.resizeObserverDisposerAdding){const e=this.addResizeObserver();this.store.resizeObserverDisposerAdding=!0,setTimeout(()=>{this.store.resizeObserverDisposer=e,this.store.resizeObserverDisposerAdding=!1},200)}}addResizeObserver(){if(!this.store.disposed)return;const e=this.five.getElement(),n=()=>{!this.state.enabled||(this.show(),this.updateRenderAllTags())},s=()=>{!this.state.enabled||this.hide()},{observe:r,unobserve:a}=ro(vh(()=>{!this.store.resizeObserverDisposer||s()},500),e),{observe:l,unobserve:c}=ro(so(()=>n(),400),e);return r(),l(),()=>{a(),c()}}handleFiveModeChange(e){e==="Panorama"?this.five.once("panoArrived",()=>this.temporaryShow()):this.temporaryHide()}handleFiveWantsMoveToPano(){this.tags.forEach(e=>{const n=this.getTagConfig(e);typeof n.visibleConfig=="object"&&n.visibleConfig.keep?e.temporaryState=V(j({},e.temporaryState),{visible:n.visibleConfig.keep==="visible"}):typeof n.visibleConfig=="object"&&n.visibleConfig.alwaysShowWhenMovePano?e.temporaryState=V(j({},e.temporaryState),{visible:!0}):e.temporaryState=V(j({},e.temporaryState),{visible:!1})}),this.updateRenderAllTags()}temporaryShow(){this.temporaryState.visible=!0}temporaryHide(){this.temporaryState.visible=!1}clickhandler(e){if(e.target!=="TagPoint")return;if(!e.tag.state)return console.warn("Clickhandler: params.tag.state is undefined");const n=this.canBe("fold",e.tag),s=this.canBe("unfold",e.tag);n&&s&&(e.tag.state.unfolded=!e.tag.state.unfolded,e.tag.state.unfolded&&this.tags.forEach(r=>{r.id!==e.tag.id&&r.state&&this.canBe("fold",r)&&(r.state.unfolded=!1)}),this.updateRenderAllTags())}updateRenderAllTags(){this.updateRenderPointTag(),this.updateRenderPlaneTag()}updateTagContainerVisible(){var e;(e=this.TagContainerSvelte)==null||e.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation}),this.filter3DTag().forEach(n=>{var s;(s=n.tag3DContentSvelte)==null||s.svelteApp.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation})})}handleFiveCameraUpdateDebounce(){return so(()=>{this.setUnfoldedByCamera(),this.updateRenderAllTags()},100)}handleFiveCameraUpdate(){this.updateRenderPointTag()}handleFivePanoArrived(){return F(this,null,function*(){yield this.setVisibleAndUnfolded(),this.tags.forEach(e=>{e.temporaryState=V(j({},e.temporaryState),{visible:!0})}),this.updateRenderAllTags()})}setUnfoldedByCamera(){let e=!1;this.tags.forEach(n=>{const s=this.getUnfoldedByCamera(n);!n.state||s!==void 0&&(s===!0&&(e=!0),n.state.unfolded=s)}),e&&this.tags.forEach(n=>{const s=this.getTagConfig(n).unfoldedConfig;typeof s=="object"&&(s.autoUnfold||s.disableFold||s.keep)||n.state&&(n.state.unfolded=!1)})}updateRenderPointTag(){var n;const e=this.filterPointTag();if(this.setPointTagPosition(),this.TagContainerSvelte)this.TagContainerSvelte.$set({tags:e,state:this.state,temporaryState:this.temporaryState});else{const s=(n=this.five.getElement())==null?void 0:n.parentElement;if(!s)return console.error("updateRenderPlaneTag: tag2DContainer not found");this.TagContainerSvelte=new zm({target:s,props:{hooks:this.hooks,tags:e,state:this.state,temporaryState:this.temporaryState,mediaStore:this.mediaStore}})}}updateRenderPlaneTag(){[...this.filterPlaneTag(),...this.filter3DPointTag()].forEach(n=>{var s;if(n.tag3DContentSvelte){const{svelteApp:r,domContainer:a,initialNormal:l,currentNormal:c}=n.tag3DContentSvelte;if(r.$set({tag:n,hooks:this.hooks,state:this.state,temporaryState:this.temporaryState}),!l.equals(c)){const d=new M.Quaternion().setFromUnitVectors(l,c);a.css3DObject.setRotationFromQuaternion(d)}}else{if(((s=n.state)==null?void 0:s.visible)===!1)return;if(this.css3DRenderPlugin||(this.css3DRenderPlugin=nt(this.five)),n.pointType===fe.PointTag&&!n.normal)return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");const r=n.pointType===fe.PlaneTag?n.position:Ah(this.five.camera.position,De(n.position),De(n.normal)),a=n.pointType===fe.PlaneTag?Vs(n.position):De(n.normal),l=this.getTagConfig(n).tag3DConfig,c=this.css3DRenderPlugin.create3DDomContainer(r,l);if(!c)return;this.store.css3DRenderDisposer.set(n.id,c.dispose),n.tag3DContentSvelte={svelteApp:new tr({target:c.container,props:{tag:n,hooks:this.hooks,state:this.state,mediaStore:this.mediaStore,temporaryState:this.temporaryState}}),domContainer:c,initialNormal:a,currentNormal:a}}}),this.checkPanelTag()}disposeAllCSS3DContainer(){for(const[e,n]of this.store.css3DRenderDisposer)n==null||n();this.store.css3DRenderDisposer=new Map}checkPanelTag(){this.tags.forEach(e=>{var n;e.dimensionType===Ae.Two&&e.pointType===fe.PointTag&&((n=e.tag3DContentSvelte)==null||n.domContainer.dispose(),e.tag3DContentSvelte=void 0)});for(const[e,n]of this.store.css3DRenderDisposer){const s=this.getTagById(e);(!s||s.dimensionType!==Ae.Three)&&(n==null||n(),this.store.css3DRenderDisposer.delete(e))}}}const Rm=(o,t)=>new ir(o,t);class Qn extends M.Object3D{constructor(e,n){var s;super();m(this,"originObject3D");m(this,"onRender");this.originObject3D=e,this.onRender=(s=n==null?void 0:n.onRender)!=null?s:()=>{}}get helperObject(){return this}render(){this.onRender()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}updatePosition(){this.position.copy(this.originObject3D.position)}updateQuaternion(){this.quaternion.copy(this.originObject3D.quaternion)}applyHelperScaleMatrix4(e,n){this.scale.applyMatrix4(e)}applyHelperQuaternion(e,n){this.applyQuaternion(e)}}class Om extends Qn{}class Hm extends Qn{}class Fm extends Qn{}class Gm extends Fm{}class Nm extends P.Group{constructor(e){super();m(this,"direction");this.direction=e||"x"}}class as extends P.Mesh{constructor(e,n,s){super(e,n);m(this,"direction");this.direction=s||"x"}}function Wm(o,t){const{offsetWidth:e,offsetHeight:n}=t,{top:s,left:r}=t.getBoundingClientRect();return Object.assign(new P.Vector2,{x:(o.x-r)/e*2-1,y:-(o.y-s)/n*2+1})}function Rn(o,t,e){if(!t||!e||!o)return;const n=Wm(t,e);if(Math.abs(n.x)===1||Math.abs(n.y)===1)return;const s=new P.Raycaster;return s.setFromCamera(n,o),s}function Xm(o,t){return!(Math.abs(o.x-t.x)>1e-5||Math.abs(o.y-t.y)>1e-5||Math.abs(o.z-t.z)>1e-5)}class ln extends Nm{constructor(e){var u;super(e.direction);m(this,"line");m(this,"arrow");m(this,"lineHeight",.4);m(this,"arrowHeight",.1);this.name="ArrowGroup";const n=new P.Color((u=e.color)!=null?u:16214315),s=new P.MeshBasicMaterial({color:n,depthTest:!1,opacity:1,transparent:!0,side:P.DoubleSide}),r=new P.ConeGeometry(.04,.1,32),a=new as(r,s.clone(),e.direction);a.name=`arrow-${e.direction}`,this.arrow=a;const l=.004,c=new P.CylinderGeometry(l,l,.4,32),d=new as(c,s.clone(),e.direction);d.name=`line-${e.direction}`,this.line=d,this.formatArrow(),this.formatLine(),this.add(this.arrow,this.line)}formatArrow(){this.arrow.geometry.translate(0,this.lineHeight+this.arrowHeight/2,0),this.direction==="x"?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.arrow.geometry.rotateX(Math.PI/2)}formatLine(){this.line.geometry.translate(0,this.lineHeight/2,0),this.direction==="x"?(this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.line.geometry.rotateX(Math.PI/2)}}const cn={X:15618642,Y:4765519,Z:4227839};class xe{static get X(){return new P.Color(cn.X).convertSRGBToLinear().clone()}static get Y(){return new P.Color(cn.Y).convertSRGBToLinear().clone()}static get Z(){return new P.Color(cn.Z).convertSRGBToLinear().clone()}}class Ym extends Om{constructor(e){super(e);m(this,"xArrow",new ln({direction:"x",color:xe.X}));m(this,"yArrow",new ln({direction:"y",color:xe.Y}));m(this,"zArrow",new ln({direction:"z",color:xe.Z}));this.add(this.xArrow),this.add(this.yArrow),this.add(this.zArrow)}show(){super.show(),this.xArrow.visible=!0,this.yArrow.visible=!0,this.zArrow.visible=!0}showDraggingHelper(e){this.xArrow.visible=e.includes("x"),this.yArrow.visible=e.includes("y"),this.zArrow.visible=e.includes("z")}dispose(){this.remove(this.xArrow,this.yArrow,this.zArrow)}}function Ye(o,t){return Um(document.createElement(t!=null?t:"div"),o)}function Um(o,t){if(!t)return o;for(const e in t)e&&t[e]&&(o.style[e]=t[e]);return o}function Vm(o){const t=Ye(j({position:"absolute",display:"block",borderRadius:"4px",paddingTop:"1px",paddingBottom:"1px",paddingLeft:"4px",paddingRight:"4px",pointerEvents:"none",userSelect:"none",zIndex:"9999",backgroundColor:"rgba(0,0,0,0.7)",fontSize:"12px",color:"#fff",letterSpacing:"0",lineHeight:"18px"},o)),e=()=>{t.style.display!=="block"&&(!t.style.top||!t.style.left||(t.style.display="block"))};return{element:t,show:e,hide:()=>{t.style.display="none",t.style.top="",t.style.left=""},setLeftTop:(r,a)=>{t.style.left=r,t.style.top=a,e()}}}class Jm extends Hm{constructor(e,n){var s;super(e);m(this,"yzCircle",new dn({direction:"x",color:xe.X}));m(this,"xzCircle",new dn({direction:"y",color:xe.Y}));m(this,"xyCircle",new dn({direction:"z",color:xe.Z}));m(this,"xRingHelper",new un({direction:"x"}));m(this,"yRingHelper",new un({direction:"y"}));m(this,"zRingHelper",new un({direction:"z"}));m(this,"xAngleHelper",new hn({direction:"x",color:xe.X}));m(this,"yAngleHelper",new hn({direction:"y",color:xe.Y}));m(this,"zAngleHelper",new hn({direction:"z",color:xe.Z}));m(this,"angleTips");m(this,"container");n&&(this.container=n==null?void 0:n.container,this.angleTips=Vm({display:"none"}),(s=this.container)==null||s.appendChild(this.angleTips.element)),this.show()}updateAngleHelperQuaternion(){this.xAngleHelper.quaternion.copy(this.yzCircle.quaternion),this.yAngleHelper.quaternion.copy(this.xzCircle.quaternion),this.zAngleHelper.quaternion.copy(this.xyCircle.quaternion),this.xRingHelper.quaternion.copy(this.yzCircle.quaternion),this.yRingHelper.quaternion.copy(this.xzCircle.quaternion),this.zRingHelper.quaternion.copy(this.xyCircle.quaternion)}applyHelperQuaternion(e,n){this.yzCircle.applyQuaternion(e),this.xzCircle.applyQuaternion(e),this.xyCircle.applyQuaternion(e),this.xAngleHelper.baseAxes.applyQuaternion(e),this.yAngleHelper.baseAxes.applyQuaternion(e),this.zAngleHelper.baseAxes.applyQuaternion(e)}hide(){this.remove(this.yzCircle,this.xzCircle,this.xyCircle,this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper)}show(){var e;this.add(this.xyCircle,this.xzCircle,this.yzCircle),this.remove(this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper),(e=this.angleTips)==null||e.hide()}showDraggingHelper(e){var n;this.hide(),this.add(...this.filterRingHelper(e)),this.add(...this.filterAngleHelper(e)),(n=this.angleTips)==null||n.show()}dispose(){var e,n;this.remove(this.yzCircle,this.xzCircle,this.xyCircle,this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper),(e=this.angleTips)!=null&&e.element&&((n=this.container)==null||n.removeChild(this.angleTips.element))}filterRingHelper(e){return[this.xRingHelper,this.yRingHelper,this.zRingHelper].filter(n=>e.includes(n.direction))}filterAngleHelper(e){return[this.xAngleHelper,this.yAngleHelper,this.zAngleHelper].filter(n=>e.includes(n.direction))}}class dn extends P.Mesh{constructor(e){var n;super();m(this,"direction");m(this,"gapAngle",.02);m(this,"geometry",new P.RingGeometry(.25,.3,20,8,this.gapAngle,Math.PI/2-this.gapAngle*2));this.material=new P.MeshBasicMaterial({opacity:.6,color:(n=e.color)!=null?n:16777215,transparent:!0,side:P.DoubleSide,depthTest:!1}),this.direction=e.direction,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`,this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}class un extends P.Group{constructor(e){super();m(this,"direction");this.direction=e.direction;const n=.015,s=new Array(8).fill(null).map((r,a)=>{const l=new P.RingGeometry(.25,.3,20,8,Math.PI/4*a+n,Math.PI/4-n*2),c=new P.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,transparent:!0,side:P.DoubleSide}),d=new P.Mesh(l,c);return d.name=`AxesDashedRing-${this.direction}-${a}`,d});this.add(...s),this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}class hn extends P.Mesh{constructor(e){var s;super();m(this,"direction");m(this,"baseAxes");switch(e.direction){case"x":this.baseAxes=new P.Vector3(0,0,1);break;case"y":this.baseAxes=new P.Vector3(1,0,0);break;case"z":this.baseAxes=new P.Vector3(1,0,0);break}const n=.3+5e-4;this.geometry=new P.CircleGeometry(n,48,0,1e-4),this.material=new P.MeshBasicMaterial({opacity:.4,color:(s=e.color)!=null?s:16777215,depthTest:!1,transparent:!0,side:P.DoubleSide}),this.direction=e.direction,this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}function Zm(){const o=Ye({width:"100%",height:"100%",left:"0",top:"0",position:"absolute",pointerEvents:"none"}),t=Ye({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}),e=Ye({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"absolute",border:"1px solid rgba(255,255,255,0.4)"});o.appendChild(t),t.appendChild(e);const n="-4px",s={direction:"nesw",element:Me({cursor:"nesw-resize",left:n,bottom:n})},r={direction:"ns",element:Me({cursor:"ns-resize",bottom:n})},a={direction:"nwse",element:Me({cursor:"nwse-resize",right:n,bottom:n})},l={direction:"ew",element:Me({cursor:"ew-resize",right:n})},c={direction:"nesw",element:Me({cursor:"nesw-resize",right:n,top:n})},d={direction:"ns",element:Me({cursor:"ns-resize",top:n})},u={direction:"nwse",element:Me({cursor:"nwse-resize",left:n,top:n})},f={direction:"ew",element:Me({cursor:"ew-resize",left:n})};return new Array(r,l,d,f,s,a,c,u).forEach(p=>t.appendChild(p.element)),{container:o,squares:[s,r,a,l,c,d,u,f]}}function Me(o){const t=Ye(j({background:"#FFFFFF",width:"9px",height:"9px",position:"absolute",pointerEvents:"none"},o)),e=Ye({width:"15px",height:"15px",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"}),n=Ye({width:"15px",height:"15px",cursor:o==null?void 0:o.cursor,pointerEvents:"auto",background:"transparent"});return n.draggable=!0,e.appendChild(n),t.appendChild(e),t}class qm extends Gm{constructor(e,n,s,r){super(e);m(this,"points",[]);m(this,"cornerPositions",[]);m(this,"css3DInstance");m(this,"plane");m(this,"css3DRenderer",new As);m(this,"camera");m(this,"scene");m(this,"container");m(this,"enabled",!1);this.camera=s,this.scene=r,this.container=n,this.initRectangleScaleHelper()}get helperObject(){var e;if(!((e=this.css3DInstance)!=null&&e.css3DObject))throw new Error("css3DInstance is not initialized");return this.css3DInstance.css3DObject}updatePosition(){var e;this.helperObject.position.copy(this.originObject3D.position),(e=this.plane)==null||e.position.copy(this.originObject3D.position)}updateQuaternion(){var e;(e=this.plane)==null||e.quaternion.copy(this.originObject3D.quaternion)}applyMatrix4(e){var n;super.applyMatrix4(e),this.helperObject.applyMatrix4(e),(n=this.plane)==null||n.applyMatrix4(e),this.cornerPositions.forEach(s=>s.applyMatrix4(e))}showDraggingHelper(){}applyHelperScaleMatrix4(e,n){var s;(s=this.plane)==null||s.scale.applyMatrix4(e),this.helperObject.applyScaleMatrix4(e)}updatePoints(){const e=this.calculatePointPosition(this.cornerPositions);this.points.forEach((n,s)=>{n.position.copy(e[s])})}applyHelperQuaternion(e,n){var r;const s=(r=this.css3DInstance)==null?void 0:r.css3DObject;if(s){const a=new P.Vector3().subVectors(s.position,n).applyQuaternion(e).add(n);s.position.copy(a),s.applyQuaternion(e)}if(this.plane){const a=new P.Vector3().subVectors(this.plane.position,n).applyQuaternion(e).add(n);this.plane.position.copy(a),this.plane.applyQuaternion(e)}this.cornerPositions.forEach(a=>{const l=new P.Vector3().subVectors(a,n).applyQuaternion(e).add(n);a.copy(l)})}enable(){var e;this.enabled||(this.enabled=!0,(e=this.css3DInstance)==null||e.enable(),this.plane&&this.scene.add(this.plane))}disable(){var e;!this.enabled||(this.enabled=!1,(e=this.css3DInstance)==null||e.disable(),this.plane&&this.scene.remove(this.plane))}show(){var e;(e=this.css3DInstance)==null||e.show(),this.plane&&(this.plane.visible=!0)}hide(){var e;(e=this.css3DInstance)==null||e.hide(),this.plane&&(this.plane.visible=!1)}dispose(){this.disable(),this.css3DRenderer.dispose()}initRectangleScaleHelper(){var u;const e=this.getCornerPositions();if(!e)return;this.cornerPositions=e;const n=this.css3DRenderer.create3DElement(this.camera,e,{ratio:.003});if(!n)return;this.css3DInstance=n,n.appendToElement(this.container);const s=n.css3DObject.container,{container:r,squares:a}=Zm();this.points=a.map((f,h)=>({direction:f.direction,point:f.element,position:this.calculatePointPosition(e)[h]})),s.insertBefore(r,(u=s.children[0])!=null?u:null);const l=new P.PlaneGeometry(n.css3DObject.width,n.css3DObject.height),c=new P.MeshBasicMaterial({color:0,opacity:.15,transparent:!0,side:P.DoubleSide}),d=new P.Mesh(l,c);this.scene.add(d),this.updatePosition()}getCornerPositions(){const{originObject3D:e}=this;if(e instanceof Mt.CSS3DObject){if(e.isCSS3DObjectPlus)return e.cornerPoints;console.error("\u6682\u65F6\u53EA\u652F\u6301 CSS3DRenderPlugin \u751F\u6210\u7684\u7269\u4F53")}else console.error("\u5F53\u524D\u7269\u4F53\u6682\u65F6\u4E0D\u652F\u6301 ScaleHelper")}calculatePointPosition(e){return[e[0].clone(),e[0].clone().add(e[1]).divideScalar(2),e[1].clone(),e[1].clone().add(e[2]).divideScalar(2),e[2].clone(),e[2].clone().add(e[3]).divideScalar(2),e[3].clone(),e[3].clone().add(e[0]).divideScalar(2)]}}new P.Vector3;function q(o,t){this._camera=o||null,this._domElement=t||document,this._raycaster=new P.Raycaster,this._selected=null,this._boundObjs={};var e=this;this._$onClick=function(){e._onClick.apply(e,arguments)},this._$onDblClick=function(){e._onDblClick.apply(e,arguments)},this._$onMouseMove=function(){e._onMouseMove.apply(e,arguments)},this._$onMouseDown=function(){e._onMouseDown.apply(e,arguments)},this._$onMouseUp=function(){e._onMouseUp.apply(e,arguments)},this._$onTouchMove=function(){e._onTouchMove.apply(e,arguments)},this._$onTouchStart=function(){e._onTouchStart.apply(e,arguments)},this._$onTouchEnd=function(){e._onTouchEnd.apply(e,arguments)},this._$onContextmenu=function(){e._onContextmenu.apply(e,arguments)},this._domElement.addEventListener("click",this._$onClick,!1),this._domElement.addEventListener("dblclick",this._$onDblClick,!1),this._domElement.addEventListener("mousemove",this._$onMouseMove,!1),this._domElement.addEventListener("mousedown",this._$onMouseDown,!1),this._domElement.addEventListener("mouseup",this._$onMouseUp,!1),this._domElement.addEventListener("touchmove",this._$onTouchMove,!1),this._domElement.addEventListener("touchstart",this._$onTouchStart,!1),this._domElement.addEventListener("touchend",this._$onTouchEnd,!1),this._domElement.addEventListener("contextmenu",this._$onContextmenu,!1)}q.prototype.destroy=function(){this._domElement.removeEventListener("click",this._$onClick,!1),this._domElement.removeEventListener("dblclick",this._$onDblClick,!1),this._domElement.removeEventListener("mousemove",this._$onMouseMove,!1),this._domElement.removeEventListener("mousedown",this._$onMouseDown,!1),this._domElement.removeEventListener("mouseup",this._$onMouseUp,!1),this._domElement.removeEventListener("touchmove",this._$onTouchMove,!1),this._domElement.removeEventListener("touchstart",this._$onTouchStart,!1),this._domElement.removeEventListener("touchend",this._$onTouchEnd,!1),this._domElement.removeEventListener("contextmenu",this._$onContextmenu,!1)};q.eventNames=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu","touchstart","touchend"];q.prototype._getRelativeMouseXY=function(o){var t=o.target||o.srcElement;t.nodeType===3&&(t=t.parentNode);var e={x:0,y:0},n=t,s=getComputedStyle(n,null);e.y+=parseInt(s.getPropertyValue("padding-top"),10),e.x+=parseInt(s.getPropertyValue("padding-left"),10);do e.x+=n.offsetLeft,e.y+=n.offsetTop,s=getComputedStyle(n,null),e.x+=parseInt(s.getPropertyValue("border-left-width"),10),e.y+=parseInt(s.getPropertyValue("border-top-width"),10);while(n=n.offsetParent);var r={width:t===window?window.innerWidth:t.offsetWidth,height:t===window?window.innerHeight:t.offsetHeight};return{x:Number((o.pageX-e.x)/r.width)*2-1,y:-((o.pageY-e.y)/r.height)*2+1}};q.prototype._objectCtxInit=function(o){o._3xDomEvent={}};q.prototype._objectCtxDeinit=function(o){delete o._3xDomEvent};q.prototype._objectCtxIsInit=function(o){return!!o._3xDomEvent};q.prototype._objectCtxGet=function(o){return o._3xDomEvent};q.prototype.camera=function(o){return o&&(this._camera=o),this._camera};q.prototype.bind=function(o,t,e,n){console.assert(q.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(o)||this._objectCtxInit(o);var s=this._objectCtxGet(o);s[t+"Handlers"]||(s[t+"Handlers"]=[]),s[t+"Handlers"].push({callback:e,useCapture:n}),this._boundObjs[t]===void 0&&(this._boundObjs[t]=[]),this._boundObjs[t].push(o)};q.prototype.addEventListener=q.prototype.bind;q.prototype.unbind=function(o,t,e,n){console.assert(q.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(o)||this._objectCtxInit(o);var s=this._objectCtxGet(o);s[t+"Handlers"]||(s[t+"Handlers"]=[]);for(var r=s[t+"Handlers"],a=0;a<r.length;a++){var l=r[a];if(e==l.callback&&n==l.useCapture){r.splice(a,1);break}}var c=this._boundObjs[t].indexOf(o);console.assert(c!==-1),this._boundObjs[t].splice(c,1)};q.prototype.removeEventListener=q.prototype.unbind;q.prototype._bound=function(o,t){var e=this._objectCtxGet(t);return e?!!e[o+"Handlers"]:!1};q.prototype._onMove=function(o,t,e,n){var s=this._boundObjs[o];if(!(s===void 0||s.length===0)){var r=new P.Vector2;r.set(t,e),this._raycaster.setFromCamera(r,this._camera);var a=this._raycaster.intersectObjects(s),l=this._selected;if(a.length>0){var c,d,u,f=a[0],h=f.object;this._selected=h,u=this._bound("mousemove",h),l!=h&&(c=this._bound("mouseover",h),d=l&&this._bound("mouseout",l))}else d=l&&this._bound("mouseout",l),this._selected=null;u&&this._notify("mousemove",h,n,f),c&&this._notify("mouseover",h,n,f),d&&this._notify("mouseout",l,n,f)}};q.prototype._onEvent=function(o,t,e,n){var s=this._boundObjs[o];if(!(s===void 0||s.length===0)){var r=new P.Vector2;r.set(t,e),this._raycaster.setFromCamera(r,this._camera);var a=this._raycaster.intersectObjects(s,!0);if(a.length!==0){for(var l=a[0],c=l.object,d=this._objectCtxGet(c),u=c.parent;typeof d=="undefined"&&u;)d=this._objectCtxGet(u),u=u.parent;!d||this._notify(o,c,n,l)}}};q.prototype._notify=function(o,t,e,n){var s=this._objectCtxGet(t),r=s?s[o+"Handlers"]:null;if(console.assert(arguments.length===4),!s||!r||r.length===0){t.parent&&this._notify(o,t.parent,e,n);return}for(var r=s[o+"Handlers"],a=0;a<r.length;a++){var l=r[a],c=!0;l.callback({type:o,target:t,origDomEvent:e,intersect:n,stopPropagation:function(){c=!1}}),!!c&&l.useCapture===!1&&t.parent&&this._notify(o,t.parent,e,n)}};q.prototype._onMouseDown=function(o){return this._onMouseEvent("mousedown",o)};q.prototype._onMouseUp=function(o){return this._onMouseEvent("mouseup",o)};q.prototype._onMouseEvent=function(o,t){var e=this._getRelativeMouseXY(t);this._onEvent(o,e.x,e.y,t)};q.prototype._onMouseMove=function(o){var t=this._getRelativeMouseXY(o);this._onMove("mousemove",t.x,t.y,o),this._onMove("mouseover",t.x,t.y,o),this._onMove("mouseout",t.x,t.y,o)};q.prototype._onClick=function(o){this._onMouseEvent("click",o)};q.prototype._onDblClick=function(o){this._onMouseEvent("dblclick",o)};q.prototype._onContextmenu=function(o){this._onMouseEvent("contextmenu",o)};q.prototype._onTouchStart=function(o){return this._onTouchEvent("touchstart",o)};q.prototype._onTouchEnd=function(o){return this._onTouchEvent("touchend",o)};q.prototype._onTouchMove=function(o){if(o.touches.length==1){o.preventDefault();var t=Number(o.touches[0].pageX/window.innerWidth)*2-1,e=-(o.touches[0].pageY/window.innerHeight)*2+1;this._onMove("mousemove",t,e,o),this._onMove("mouseover",t,e,o),this._onMove("mouseout",t,e,o)}};q.prototype._onTouchEvent=function(o,t){if(t.touches.length==1){t.preventDefault();var e=Number(t.touches[0].pageX/window.innerWidth)*2-1,n=-(t.touches[0].pageY/window.innerHeight)*2+1;this._onEvent(o,e,n,t)}};let Fe=null;class On{constructor(t,e,n,s,r,a,l){m(this,"hooks",new ht);m(this,"helperObject3D");m(this,"originObject3D");m(this,"camera");m(this,"model");m(this,"scene");m(this,"container");m(this,"domEvents");m(this,"isDragging",!1);m(this,"onRender");m(this,"enabled",!1);m(this,"onWantsTapGesture",t=>{if(this.getIntersectObject(t))return!1});this.camera=t,this.model=e,this.originObject3D=n,this.helperObject3D=s,this.container=r,this.scene=a,this.domEvents=new q(t,r),this.onRender=l!=null?l:()=>{},this.initialHelperPosition(),this.initialHelperQuaternion(),this.enable()}initialHelperPosition(){this.helperObject3D.updatePosition()}initialHelperQuaternion(){this.helperObject3D.updateQuaternion()}enable(){this.enabled||(this.enabled=!0,this.scene.add(this.helperObject3D),this.render())}disable(){!this.enabled||(this.enabled=!1,this.scene.remove(this.helperObject3D),this.render())}show(){this.helperObject3D.show(),this.render()}hide(){this.helperObject3D.hide(),this.render()}dispose(){this.helperObject3D.dispose(),this.scene.remove(this.helperObject3D),this.render()}setOpacity(t){this.setOriginOpacityProperty();const e=this.originObject3D;if(e instanceof P.Mesh&&(e.material.opacity=t),e.isCSS3DObjectPlus){const n=e;n.container.style.opacity=t.toString()}this.render()}restoreOpacity(){if(Fe===null)return;const t=this.originObject3D;if(t instanceof P.Mesh&&(t.material.opacity=Fe.opacity),t.isCSS3DObjectPlus){const e=t;e.container.style.opacity=Fe.opacity.toString()}this.render()}setOriginOpacityProperty(){var t,e;if(Fe===null){const n=this.originObject3D;n instanceof P.Mesh&&(Fe={opacity:n.material.opacity}),n instanceof ps&&(Fe={opacity:(t=n.container.style.opacity)!=null?t:1}),n.isCSS3DObjectPlus&&(Fe={opacity:Number((e=n.container.style.opacity)!=null?e:1)})}}updateHelperPosition(){this.helperObject3D.updatePosition()}updateHelperQuaternion(){this.helperObject3D.updateQuaternion()}applyHelperMatrix4(t){this.helperObject3D.applyMatrix4(t)}applyHelperQuaternion(t,e){this.helperObject3D.applyHelperQuaternion(t,e)}applyHelperScaleMatrix4(t,e){this.helperObject3D.applyHelperScaleMatrix4(t,e)}onWantsGesture(t,e,n){if(this.isDragging)return!1}render(){this.onRender()}hoverListener(t,e=16777215,n=1){const s=(Array.isArray(t)?t:[t]).filter(Ue),r=[];for(const a of s)if(a instanceof P.Mesh||a instanceof P.Group){const l=a instanceof P.Group?a.children.filter(h=>h instanceof P.Mesh):[a];l.forEach(h=>{h.__originalColor__=h.material.color.clone(),h.__originalOpacity__=h.material.opacity});const c=()=>{l.forEach(h=>{h.material.color.set(e),h.material.opacity=n}),this.render()},d=()=>{l.forEach(h=>{h.material.color.copy(h.__originalColor__),h.material.opacity=h.__originalOpacity__}),this.render()},u=()=>{this.isDragging||c()},f=()=>{this.isDragging||d()};for(const h of l)this.domEvents.addEventListener(h,"mouseover",u),this.domEvents.addEventListener(h,"mouseout",f),this.hooks.on("moveStart",c),this.hooks.on("moveEnd",d),this.hooks.on("rotateEnd",d),r.push(()=>{this.domEvents.removeEventListener(h,"mouseover",u),this.domEvents.removeEventListener(h,"mouseout",f),this.hooks.off("moveStart",c),this.hooks.off("moveEnd",d),this.hooks.off("rotateEnd",d)})}return()=>r.forEach(a=>a==null?void 0:a())}getIntersectObject(t){const e=this.camera.position,n=this.helperObject3D;if(!n)return;let s;const r=t.intersectObject(n,!0)[0];if(!!r&&(s=r,s.object=n,!!s)){if(this.model.intersectRaycaster){const a=this.model.intersectRaycaster(t)[0];if(a&&a.point.distanceTo(e)<s.point.distanceTo(e))return}return s.object}}}class Km extends On{constructor(...e){super(...e);m(this,"startInfo");const n=this.helperObject3D;this.hoverListener([n.xArrow,n.yArrow,n.zArrow]);const s=this.dragStart.bind(this),r=this.dragging.bind(this),a=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",s),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)}dragStart(e){if(this.isDragging)return;const n=e==null?void 0:e.intersect;if(!n)return this.dragEnd();const s=(n==null?void 0:n.object).direction;if(!s)return this.dragEnd();const r=new P.Vector3(1,0,0).applyQuaternion(this.helperObject3D.quaternion),a=new P.Vector3(0,1,0).applyQuaternion(this.helperObject3D.quaternion),l=new P.Vector3(0,0,1).applyQuaternion(this.helperObject3D.quaternion),c=(()=>{switch(s){case"x":return r;case"y":return a;case"z":return l}})(),d=(()=>{switch(s){case"x":case"y":return l;case"z":return r}})(),u=n.point.clone(),f=new P.Plane;f.setFromNormalAndCoplanarPoint(d,u),this.startInfo={startVectorProject:u.clone().projectOnVector(c),directionVector:c,plane:f},this.helperObject3D.showDraggingHelper([s]),this.hooks.emit("moveStart"),this.isDragging=!0,console.log("%c MoveController dragStart","color: #e5af2e")}dragging(e){if(!this.isDragging||!this.startInfo)return;const n=Rn(this.camera,e,this.container);return n?(console.log("%c RotateController dragging","color: #49de1b"),this.move(n),!1):this.dragEnd()}move(e){if(!this.startInfo)return this.dragEnd();const{plane:n,directionVector:s,startVectorProject:r}=this.startInfo,a=this.originObject3D,l=e.ray.intersectPlane(n,new P.Vector3);if(!l)return;const c=l.clone().projectOnVector(s),d=c.clone().sub(r),u=new P.Matrix4;u.setPosition(d),a.applyMatrix4(u),this.helperObject3D.applyMatrix4(u),r.copy(c),this.hooks.emit("positionUpdate",{matrix4:u})}dragEnd(){!this.isDragging||(console.log("%c MoveController dragEnd","color: #e94e4e"),this.startInfo=void 0,this.isDragging=!1,this.helperObject3D.show(),this.hooks.emit("moveEnd"))}}class fn{constructor(t,e,n,s){m(this,"helperController");m(this,"five");m(this,"onFiveWantsTapGesture",t=>{if(!this.helperController)return;const e=this.helperController.onWantsTapGesture(t);return this.five.needsRender=!0,e});m(this,"onFiveWantsGesture",(...t)=>{if(!this.helperController)return;const e=this.helperController.onWantsGesture(...t);return this.five.needsRender=!0,e});const{camera:r,model:a,scene:l}=t,c=t.getElement();if(this.five=t,!r||!a||!c||!l)return;const d=()=>{t.needsRender=!0};this.helperController=new e(r,a,n,s,c,l,d),t.on("wantsTapGesture",this.onFiveWantsTapGesture),t.on("wantsGesture",this.onFiveWantsGesture)}}const $m="v1.0.1",ep="Object3DHelper",Hn=`${ep}@${$m}`,tp=()=>{console.error(`${Hn} is disposed`)},np=()=>{console.warn(`${Hn} is disabled`)},ip=()=>{console.error(`${Hn} is disabled`)};class op{constructor(t,e){m(this,"controllers",{});m(this,"state",{visible:!0,enabled:!0,disposed:!1});m(this,"hooks",new ht);m(this,"helpers");m(this,"eventListener",{});m(this,"handlePositionUpdate",(t,...e)=>{var r,a,l,c;const[n]=e,s=n==null?void 0:n.matrix4;s&&(t!==this.controllers.moveController&&((r=this.controllers.moveController)==null||r.applyHelperMatrix4(s)),t!==this.controllers.rotateController&&((a=this.controllers.rotateController)==null||a.applyHelperMatrix4(s)),t!==this.controllers.scaleController&&((l=this.controllers.scaleController)==null||l.applyHelperMatrix4(s)),(c=this.helpers.outlineHelper)==null||c.applyMatrix4(s))});m(this,"handleScaleUpdate",(t,...e)=>{var r,a;const[n]=e,s=n==null?void 0:n.matrix4;s&&((r=this.controllers.scaleController)==null||r.applyHelperScaleMatrix4(s,n),(a=this.helpers.outlineHelper)==null||a.scale.applyMatrix4(s))});m(this,"handleRotateUpdate",(t,...e)=>{var s,r,a,l;const[n]=e;if(n){const{quaternion:c,origin:d}=n;c&&(t!==this.controllers.moveController&&((s=this.controllers.moveController)==null||s.applyHelperQuaternion(c,d)),t!==this.controllers.rotateController&&((r=this.controllers.rotateController)==null||r.applyHelperQuaternion(c,d)),t!==this.controllers.scaleController&&((a=this.controllers.scaleController)==null||a.applyHelperQuaternion(c,d)),(l=this.helpers.outlineHelper)==null||l.applyQuaternion(c))}});t&&this.addControllers(t),this.helpers=e!=null?e:{},this.setState(this.state)}show(t){return F(this,null,function*(){this.setState({visible:!0},t)})}hide(t){return F(this,null,function*(){this.setState({visible:!1},t)})}enable(t){this.setState({enabled:!0},t)}disable(t){this.setState({enabled:!1},t)}dispose(){this.setState({disposed:!0})}setState(t,e){if(this.state.disposed)return tp();if(!this.state.enabled&&t.enabled!==!0&&t.disposed!==!0)return ip();const n=j({},this.state);this.state=j(j({},this.state),t),t.disposed!==void 0&&t.disposed!==n.disposed&&t.disposed&&this.handleDispose(),t.visible!==void 0&&this.handleVisible(t.visible),t.enabled!==void 0&&this.handleEnable(t.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:n})}addControllers(t){this.controllers=j(j({},this.controllers),t),this.addEventListener(),this.setState(this.state)}addHelpers(t){this.helpers=j(j({},this.helpers),t)}getCurrentState(){return this.state}addEventListener(){for(const t in this.controllers){if(!t)continue;const e=t;this.eventListener[e]||(this.eventListener[e]=(()=>{const n=this.controllers[e];if(!n)return;const s=()=>this.handleStart(n),r=()=>this.handleEnd(n),a=(...d)=>this.handlePositionUpdate(n,...d),l=(...d)=>this.handleRotateUpdate(n,...d),c=(...d)=>this.handleScaleUpdate(n,...d);return n.hooks.on("moveStart",s),n.hooks.on("rotateStart",s),n.hooks.on("scaleStart",s),n.hooks.on("positionUpdate",a),n.hooks.on("rotateUpdate",l),n.hooks.on("scaleUpdate",c),n.hooks.on("moveEnd",r),n.hooks.on("rotateEnd",r),n.hooks.on("scaleEnd",r),()=>{n.hooks.off("moveStart",s),n.hooks.off("rotateStart",s),n.hooks.off("scaleStart",s),n.hooks.off("positionUpdate",a),n.hooks.off("rotateUpdate",l),n.hooks.off("scaleUpdate",c),n.hooks.off("moveEnd",r),n.hooks.off("rotateEnd",r),n.hooks.off("scaleEnd",r)}})())}}handleEnd(t){t&&this.setOtherHelpersVisible(!0,t)}handleStart(t){t&&this.setOtherHelpersVisible(!1,t)}setOtherHelpersVisible(t,e){var n,s,r,a;t?((r=this.controllers.moveController)==null||r.helperObject3D.show(),(a=this.controllers.rotateController)==null||a.helperObject3D.show()):(e!==this.controllers.moveController&&((n=this.controllers.moveController)==null||n.helperObject3D.hide()),e!==this.controllers.rotateController&&((s=this.controllers.rotateController)==null||s.helperObject3D.hide()))}handleEnable(t,e=!0){t?(this.everyControllerDo(n=>{n.enable()}),this.hooks.emit("enable",{userAction:e})):(this.everyControllerDo(n=>{n.disable(),n.restoreOpacity()}),this.hooks.emit("disable",{userAction:e})),this.state.enabled=t}handleVisible(t,e=!0){t?(this.everyControllerDo(n=>{n.show()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:e}))):(this.everyControllerDo(n=>{n.hide(),n.restoreOpacity()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:e}))),this.state.visible=t}everyControllerDo(t){Object.values(this.controllers).forEach(e=>{e&&t(e)})}handleDispose(){var t,e;Object.values(this.controllers).forEach(n=>{n==null||n.dispose(),n==null||n.restoreOpacity()});for(const n in this.controllers){if(!n)continue;const s=n;(e=(t=this.eventListener)[s])==null||e.call(t)}}actionIfStateIsEnabled(t,e){if(this.state.enabled)return t();e!=null&&e.warnLog&&np()}}class sp extends On{constructor(...e){super(...e);m(this,"startInfo");m(this,"lastRotation");m(this,"rotations",[]);m(this,"helperObject3DQuaternion",this.originObject3D.quaternion.clone());const n=this.helperObject3D;this.hoverListener([n.xyCircle,n.xzCircle,n.yzCircle]);const s=this.dragStart.bind(this),r=this.dragging.bind(this),a=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",s),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)}initialHelperQuaternion(){this.helperObject3D.updateAngleHelperQuaternion(),this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion)}dragStart(e){if(this.isDragging)return;const n=e==null?void 0:e.intersect;if(!n)return this.dragEnd();const s=(n==null?void 0:n.object).direction;if(!s)return this.dragEnd();this.helperObject3D.updateAngleHelperQuaternion();const r=n.point,a=this.originObject3D.position.clone(),l=this.getAngleHelper(s);this.setTipsAngle(0);const c=r.clone();c.y+=.2,this.setTipsPosition(c);const d=new P.Vector3(1,0,0).applyQuaternion(this.helperObject3DQuaternion),u=new P.Vector3(0,1,0).applyQuaternion(this.helperObject3DQuaternion),f=new P.Vector3(0,0,1).applyQuaternion(this.helperObject3DQuaternion),h=(()=>{switch(s){case"x":return d;case"y":return u;case"z":return f}})(),p=new P.Plane().setFromNormalAndCoplanarPoint(h,r),g=new P.Vector3;p.projectPoint(r.clone(),g);const A=g.clone().sub(a),b=A.clone(),v=A.angleTo(l.baseAxes);this.setAngleHelperStart(s,v),this.setAngleHelperLength(s,0),this.rotations.push({vector:A.clone(),direction:!0}),this.startInfo={direction:s,startVector:A,staticStartVector:b,plane:p,angleHelper:l},this.helperObject3D.showDraggingHelper([s]),this.hooks.emit("rotateStart"),this.isDragging=!0,console.log(`%c RotateController dragStart ${s}`,"color: #e5af2e")}dragging(e){var s;if(!this.isDragging)return;const n=Rn(this.camera,e,this.container);return n?(console.log(`%c RotateController dragging ${(s=this.startInfo)==null?void 0:s.direction}`,"color: #49de1b"),this.rotate(n),!1):this.dragEnd()}rotate(e){if(!this.startInfo)return this.dragEnd();const{startVector:n,plane:s,angleHelper:r,staticStartVector:a,direction:l}=this.startInfo,c=this.originObject3D,d=e.ray.intersectPlane(s,new P.Vector3);if(!d)return;const u=c.position.clone(),f=new P.Vector3;s.projectPoint(d.clone(),f);const h=f.clone().sub(u);if(n.angleTo(h)===0||(this.lastRotation===void 0&&(this.lastRotation={angle:0}),this.rotations.length===0))return;const p=(()=>{if(this.rotations.length===1)return h.angleTo(r.baseAxes)>a.angleTo(r.baseAxes);{const A=this.rotations[this.rotations.length-1],b=this.rotations[this.rotations.length-2],v=h.angleTo(b.vector),y=h.angleTo(A.vector),w=A.vector.angleTo(b.vector);if(w===0||y===0||v===0)return;if(v>y&&v>w)return A.direction;if(v<w&&y<w||v<y&&y>w)return!A.direction}})();if(p===void 0)return console.warn("rotationDirection is undefined");this.rotations.push({vector:h,direction:p}),this.rotations=this.rotations.slice(-2),this.lastRotation.angle=this.lastRotation.angle+h.angleTo(n)*(p?1:-1),this.setAngleHelperLength(l,this.lastRotation.angle),this.setTipsAngle(this.lastRotation.angle/Math.PI*180);const g=new P.Quaternion().setFromUnitVectors(n.clone().normalize(),h.clone().normalize());c.applyQuaternion(g),this.helperObject3D.applyHelperQuaternion(g),this.helperObject3DQuaternion.premultiply(g),this.hooks.emit("rotateUpdate",{quaternion:g,origin:u}),this.startInfo.startVector=h}dragEnd(){!this.isDragging||(console.log("%c RotateController dragEnd","color: #e94e4e"),this.startInfo=void 0,this.isDragging=!1,this.lastRotation=void 0,this.rotations=[],this.helperObject3D.show(),this.hooks.emit("rotateEnd"))}getAngleHelper(e){switch(e){case"x":return this.helperObject3D.xAngleHelper;case"y":return this.helperObject3D.yAngleHelper;case"z":return this.helperObject3D.zAngleHelper}}setAngleHelperStart(e,n){const s=this.getAngleHelper(e);if(s instanceof P.Mesh&&s.geometry instanceof P.CircleGeometry){const{radius:r,segments:a,thetaLength:l}=s.geometry.parameters;s.geometry=new P.CircleGeometry(r,a,n,l)}else console.warn("only support THREE.CircleGeometry")}setAngleHelperLength(e,n){const r=n>=0?Math.max(n,.001):Math.min(n,-.001),a=this.getAngleHelper(e);if(a instanceof P.Mesh&&a.geometry instanceof P.CircleGeometry){const{radius:l,thetaStart:c}=a.geometry.parameters,d=Math.ceil(Math.abs(r)*(40/(2*Math.PI)));a.geometry=new P.CircleGeometry(l,d,c,r)}else console.warn("only support THREE.CircleGeometry")}setTipsAngle(e){var s;const n=(s=this.helperObject3D.angleTips)==null?void 0:s.element;!n||(n.innerText=`${e.toFixed(0)}\xB0`)}setTipsPosition(e){const n=this.helperObject3D.angleTips;if(!n)return;const s=e.project(this.camera),{x:r,y:a,z:l}=s;if(l>1)return;const c=(r+1)/2*100+"%",d=(-a+1)/2*100+"%";n.setLeftTop(c,d)}}class rp extends On{constructor(...e){super(...e);m(this,"startInfo")}enable(){this.helperObject3D.enable(),super.enable()}disable(){this.helperObject3D.disable(),super.disable()}show(){this.helperObject3D.show(),super.show()}hide(){this.helperObject3D.hide(),super.hide()}getDragPlane(){const e=new P.Plane,n=this.helperObject3D.cornerPositions;if(n.length!==0)return n.length<3?e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new M.Vector3),n[0]):e.setFromCoplanarPoints(n[0],n[1],n[2]),e}dragStart(e,n){var r,a;(a=(r=this.helperObject3D).updatePoints)==null||a.call(r);const s=this.getDragPlane();if(!s)return this.dragEnd();this.startInfo={startPoint:{position:n.position.clone(),direction:n.direction},plane:s},this.hooks.emit("scaleStart"),this.render(),this.isDragging=!0,console.log("%c RectangleScaleController dragStart","color: #e5af2e")}dragging(e){if(!this.isDragging)return;const n=Rn(this.camera,e,this.container);if(!n)return this.dragEnd();this.scale(n),console.log("%c RectangleScaleController dragging","color: #49de1b")}scale(e){var z,_;if(!this.startInfo)return;const n=this.originObject3D,{startPoint:s,plane:r}=this.startInfo,a=this.helperObject3D.cornerPositions;if(a.length<4)return this.dragEnd();const l=e.ray.intersectPlane(r,new M.Vector3);if(!l||Xm(l,this.camera.position))return;const c=new M.Vector3().addVectors(a[0],a[2]).divideScalar(2),{position:d,direction:u}=s,f=new M.Vector3().subVectors(a[1],a[0]),h=new M.Vector3().subVectors(a[3],a[0]),p=T=>{const H=new M.Vector3(0,0,0);if(!this.startInfo)return H;const E=(T==="ew"?f:h).clone(),S=d.clone().projectOnVector(E),L=l.clone().projectOnVector(E),B=c.clone().projectOnVector(E);if(L.equals(S))return H;if(T==="ns"&&typeof this.startInfo.dragPointInCenterBottom!="boolean"){const Q=new M.Vector3().subVectors(L,B),O=Q.x<0&&E.x>=0,X=Q.y<0&&E.y>=0,Y=Q.z<0&&E.z>=0;this.startInfo.dragPointInCenterBottom=O||X||Y}if(T==="ew"&&typeof this.startInfo.dragPointInCenterLeft!="boolean"){const Q=new M.Vector3().subVectors(L,B),O=Q.x<0&&E.x>=0,X=Q.y<0&&E.y>=0,Y=Q.z<0&&E.z>=0;this.startInfo.dragPointInCenterLeft=O||X||Y}const R=new M.Vector3().subVectors(L,S),G=R.length();return G>.3?(console.warn("offset.length() > 0.3, skipped",G),H):R},g=p("ew"),A=p("ns"),b=()=>{const T=g;this.helperObject3D.cornerPositions.forEach((H,E)=>{var S;(S=this.startInfo)!=null&&S.dragPointInCenterLeft?(E===0||E===3)&&H.add(T):(E===1||E===2)&&H.add(T)})},v=()=>{const T=A;this.helperObject3D.cornerPositions.forEach((H,E)=>{var S;(S=this.startInfo)!=null&&S.dragPointInCenterBottom?(E===0||E===1)&&H.add(T):(E===2||E===3)&&H.add(T)})};switch(u){case"ew":b();break;case"ns":v();break;case"nesw":case"nwse":b(),v()}const y=new M.Vector3().subVectors(a[1],a[0]).length()/f.length(),w=new M.Vector3().subVectors(a[3],a[0]).length()/h.length(),I=new M.Vector3(y,w,1),k=new P.Matrix4().scale(I);n.isCSS3DObjectPlus?n.applyScaleMatrix4(k):n.scale.applyMatrix4(k),s.position.copy(l);const C=new M.Vector3().addVectors(a[0],a[2]).divideScalar(2),D=new M.Vector3().subVectors(C,c),x=new P.Matrix4().setPosition(D);n.applyMatrix4(x),(z=this.helperObject3D.css3DInstance)==null||z.css3DObject.applyMatrix4(x),(_=this.helperObject3D.plane)==null||_.applyMatrix4(x),this.hooks.emit("scaleUpdate",{matrix4:k,helperOrigin:c}),this.hooks.emit("positionUpdate",{matrix4:x}),this.render()}dragEnd(){!this.isDragging||(this.startInfo=void 0,this.isDragging=!1,this.hooks.emit("scaleEnd"),this.render(),console.log("%c RectangleScaleController dragEnd","color: #e94e4e"))}}class ap extends rp{constructor(...t){super(...t),this.addHTMLEventListener()}addHTMLEventListener(){this.helperObject3D.points.forEach(t=>{if(!t)return;const e=t.point,n=a=>this.dragStart(a,t),s=this.dragging.bind(this),r=this.dragEnd.bind(this);e.addEventListener("dragstart",n),e.addEventListener("drag",s),e.addEventListener("dragend",r)})}}const Fn="v1.0.0",Pn="Object3DHelperPlugin",Zt=`${Pn}@${Fn}`,lp=()=>{console.error(`${Zt} is disposed`)},cp=()=>{console.warn(`${Zt} is disabled`)},dp=()=>{console.error(`${Zt} is disabled`)};class or extends Xt{constructor(e){super(e);m(this,"version",Fn);m(this,"name",Pn);m(this,"state",{visible:!0,enabled:!0,disposed:!1});m(this,"objectHelperMap",new Map);this.five=e,console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"),Object.assign(window,{[`__${Pn.toUpperCase()}_DEBUG__`]:this})}show(e){return F(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return F(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,n){if(this.state.disposed)return lp();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return dp();const s=j({},this.state);this.state=j(j({},this.state),e),e.disposed!==void 0&&e.disposed!==s.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==s.visible&&this.handleVisible(e.visible),e.enabled!==void 0&&e.enabled!==s.enabled&&this.handleEnable(e.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:s})}getObject3DHelper(e){return this.objectHelperMap.get(e)}addObject3DHelper(e,n={}){var u;if(!e)return console.error("Object3D is undefined");if(this.objectHelperMap.has(e)){console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);return}const s=new op;this.objectHelperMap.set(e,s);const r=(u=this.five.getElement())==null?void 0:u.parentElement,a=this.five.camera,{moveHelper:l=!0,rotateHelper:c=!0,scaleHelper:d=!0}=n;if(l){const f=new Ym(e),h=new fn(this.five,Km,e,f);s.addControllers({moveController:h.helperController})}if(c){let f;r&&a&&(f={container:r});const h=new Jm(e,f),p=new fn(this.five,sp,e,h);s.addControllers({rotateController:p.helperController})}if(d&&r){const f=new qm(e,r,a,this.five.scene),h=new fn(this.five,ap,e,f);s.addControllers({scaleController:h.helperController})}e.isCSS3DObjectPlus&&e.changeMode("behind",this.five.scene)}removeObject3DHelper(e){const n=this.objectHelperMap.get(e);!n||(e.isCSS3DObjectPlus&&e.changeMode("front"),this.objectHelperMap.delete(e),n.dispose())}handleEnable(e,n=!0){e?(this.everyHelperDo(s=>s.enable()),this.hooks.emit("enable",{userAction:n})):(this.everyHelperDo(s=>s.disable()),this.hooks.emit("disable",{userAction:n})),this.state.enabled=e}handleVisible(e,n=!0){e?(this.everyHelperDo(s=>s.show()),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:n}))):(this.everyHelperDo(s=>s.hide()),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:n}))),this.state.visible=e}handleDispose(){this.everyHelperDo(e=>e.dispose())}everyHelperDo(e){this.objectHelperMap.forEach(n=>{n&&e(n)})}actionIfStateIsEnabled(e,n){if(this.state.enabled)return e();n!=null&&n.warnLog&&cp()}}const up=o=>new or(o);class In{constructor(t=0,e=0){m(this,"min");m(this,"max");m(this,"isInterval",!0);this.min=t,this.max=e}fromArray(t){return this.min=t[0],this.max=t[1],this}isOverlap(t){return Math.min(this.max,t.max)<Math.max(this.min,t.min)}contains(t){return this.min<t.min&&this.max>t.max}}class hp{constructor(t,e){m(this,"min");m(this,"max");m(this,"xInterval");m(this,"yInterval");m(this,"isRectangle",!0);this.min=t,this.max=e,this.xInterval=new In(this.min.x,this.max.x),this.yInterval=new In(this.min.y,this.max.y)}isOverlapWithRectangle(t){return!this.xInterval.isOverlap(t.xInterval)&&!this.yInterval.isOverlap(t.yInterval)}containsRect(t){return this.xInterval.contains(t.xInterval)&&this.yInterval.contains(t.yInterval)}}function St(o,t,e){const n=o[t],s=o[e];!n||!s||(o[t]=s,o[e]=n)}function fp(o,t,e){const n=e/2;for(let s=1;s<=n;s++){const r=e-(s-1);for(let a=1;a<=t;a++){const l=(s-1)*t+a-1,c=(r-1)*t+a-1;St(o,l*4+0,c*4+0),St(o,l*4+1,c*4+1),St(o,l*4+2,c*4+2),St(o,l*4+3,c*4+3)}}}class sr{constructor(t,e){m(this,"width");m(this,"height");m(this,"containerDom");m(this,"hooks",new ee.Subscribe);m(this,"canvas",document.createElement("canvas"));m(this,"five");m(this,"scale");m(this,"config");m(this,"offset",{x:0,y:0});m(this,"context");m(this,"renderCenter",new P.Vector3);m(this,"hammer");m(this,"state",{enabled:!1});m(this,"onPan",t=>{if(!this.containerDom||this.hooks.emit("wantsPanGesture",t))return;const n=this.offset.x+t.deltaX,s=this.offset.y+t.deltaY;this.canvas.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)",this.canvas.style.transform=`translate3d(${n}px, ${s}px, 100px)`});m(this,"onPanEnd",t=>{this.offset={x:this.offset.x+t.deltaX,y:this.offset.y+t.deltaY},this.canvas.style.boxShadow="none"});var s,r,a;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(s=e==null?void 0:e.scale)!=null?s:2,this.width=(r=e==null?void 0:e.width)!=null?r:190,this.height=(a=e==null?void 0:e.height)!=null?a:190,this.config={dragEnabled:(e==null?void 0:e.dragEnabled)||!1,autoFixPCPosition:(e==null?void 0:e.autoFixPCPosition)||!1,initialPosition:(e==null?void 0:e.initialPosition)||{left:"0",top:"0"}};const n=this.canvas.getContext("2d");if(!n)throw new Error("CANNOT CREATE CONTEXT2D");this.context=n,this.config.dragEnabled&&(this.hammer=new ut.default(this.canvas),this.hammer.on("pan",this.onPan),this.hammer.on("panend",this.onPanEnd)),this.initStyle()}dispose(){var t;this.clear(),this.disable(),(t=this.hammer)==null||t.destroy()}enable(){var t;if(!this.state.enabled)return this.state.enabled=!0,(t=this.containerDom)==null||t.append(this.canvas),this}disable(){if(!!this.state.enabled)return this.state.enabled=!1,this.canvas.remove(),this}appendTo(t){var e;return this.containerDom&&((e=this.containerDom)==null||e.removeChild(this.canvas)),this.containerDom=t,this.state.enabled&&t.append(this.canvas),this}clear(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}renderWithPoint(t){!this.containerDom||!this.state.enabled||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}autoFixPCPosition(){if(!this.containerDom)return;const{width:t,height:e}=this,n=this.renderCenter.clone().project(this.five.camera),s=(n.x+1)/2*this.containerDom.clientWidth,r=-(n.x-1)/2*this.containerDom.clientWidth,a=-(n.y-1)/2*this.containerDom.clientHeight;s<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):a<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):r<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=-t-90+"px"):(this.canvas.style.left=-t/2+"px",this.canvas.style.top=-e-90+"px"),this.canvas.style.transform=`translate3d(${s}px, ${a}px, 10px)`,this.offset={x:s,y:a}}render(){if(!this.five.renderer||!this.containerDom)return;const{scale:t,context:e,width:n,height:s}=this,r=this.renderCenter.clone().project(this.five.camera),a=this.five.renderer.getSize(new P.Vector2),l=1,c=n/t,d=s/t,u=l*t,f=(r.x+1)/2*a.x,h=(r.y+1)/2*a.y,p=this.five.getPixels(f-c/2,h-c/2,c,d,u),g=Math.floor(n*l),A=Math.floor(s*l);fp(p,g,A);const b=new ImageData(g,A);b.data.set(p),e.putImageData(b,0,0)}initStyle(){const t=this.canvas;t.classList.add("five-plugin__magnifier"),t.style.position="absolute",t.style.pointerEvents="all",t.style.borderRadius="50%",t.style.zIndex="99";const e=1;t.setAttribute("width",(this.width*e).toString()),t.setAttribute("height",(this.height*e).toString()),t.style.border="2px solid rgba(255,255,255,0.20)",t.style.width=this.width+"px",t.style.height=this.height+"px",t.style.top=this.config.initialPosition.top,t.style.left=this.config.initialPosition.left,t.style.transform="translate(0,0,100px)",this.config.dragEnabled&&(this.canvas.style.cursor="pointer")}}function mp(o,t){const{offsetWidth:e,offsetHeight:n}=t,{top:s,left:r}=t.getBoundingClientRect();return new P.Vector2().set((o.x-r)/e*2-1,-(o.y-s)/n*2+1)}function rr(o,t){const{offsetWidth:e,offsetHeight:n}=t;return new P.Vector2().set(o.x/e*2-1,-o.y/n*2+1)}function pp(o,t){const e=o.getElement();if(!e)return;const n=rr(t,e),s=new P.Raycaster;return s.setFromCamera(n,o.camera),s}function gp(o,t){const{x:e,y:n}=t,s=e*2-1,r=n*2-1,a=new P.Vector2().fromArray([s,r]),l=new P.Raycaster;return l.setFromCamera(a,o.camera),o.model.intersectRaycaster(l)[0]}const Ap="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAA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